PNG IHDR x sBIT|d pHYs + tEXtSoftware www.inkscape.org< ,tEXtComment
!function(){"use strict";function e(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"==t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}function t(e){return g((function(t,n){if(t.length!==n.length)return!1;for(var o=t.length,r=0;r<o;r++)if(!e.eq(t[r],n[r]))return!1;return!0}))}function n(e){return g((function(n,o){var r,i,a=Object.keys(n),u=Object.keys(o);if(r=t(h),i=function(e){return void 0,Array.prototype.slice.call(e).sort(void 0)},!g((function(e,t){return r.eq(i(e),i(t))})).eq(a,u))return!1;for(var c=a.length,s=0;s<c;s++){var l=a[s];if(!e.eq(n[l],o[l]))return!1}return!0}))}function o(e){return function(t){return o=typeof(n=t),(null===n?"null":"object"==o&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==o&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":o)===e;var n,o}}function r(e){return function(t){return typeof t===e}}function i(e){return function(t){return e===t}}function a(e){return null==e}function u(e){return!a(e)}function c(){}function s(e,t){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return e(t.apply(null,n))}}function l(e,t){return function(n){return e(t(n))}}function f(e){return function(){return e}}function d(e){return e}function m(e,t){return e===t}var g=function(e){return{eq:e}},h=g((function(e,t){return e===t})),p=g((function(o,r){if(o===r)return!0;var i=e(o);return i===e(r)&&(-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(i)?o===r:"array"===i?t(p).eq(o,r):"object"===i&&n(p).eq(o,r))})),v=o("string"),b=o("object"),y=o("array"),x=i(null),w=r("boolean"),C=i(void 0),S=r("function"),k=r("number");function _(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var r=t.concat(n);return e.apply(null,r)}}function O(e){return function(t){return!e(t)}}function E(e){return e()}function z(e){e()}function T(){return A}var M=f(!1),D=f(!0),A={fold:function(e,t){return e()},isSome:M,isNone:D,getOr:d,getOrThunk:N,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:d,orThunk:N,map:T,each:c,bind:T,exists:M,forall:D,filter:function(){return A},toArray:function(){return[]},toString:f("none()")};function N(e){return e()}function B(e,t){return ye.call(e,t)}function R(e,t){return-1<B(e,t)}function H(e,t){for(var n=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1}function L(e,t){for(var n=e.length,o=new Array(n),r=0;r<n;r++){var i=e[r];o[r]=t(i,r)}return o}function V(e,t){for(var n=0,o=e.length;n<o;n++)t(e[n],n)}function P(e,t){for(var n=e.length-1;0<=n;n--)t(e[n],n)}function I(e,t){for(var n=[],o=[],r=0,i=e.length;r<i;r++){var a=e[r];(t(a,r)?n:o).push(a)}return{pass:n,fail:o}}function F(e,t){for(var n=[],o=0,r=e.length;o<r;o++){var i=e[o];t(i,o)&&n.push(i)}return n}function U(e,t,n){return P(e,(function(e,o){n=t(n,e,o)})),n}function j(e,t,n){return V(e,(function(e,o){n=t(n,e,o)})),n}function W(e,t,n){for(var o=0,r=e.length;o<r;o++){var i=e[o];if(t(i,o))return ve.some(i);if(n(i,o))break}return ve.none()}function q(e,t){return W(e,t,M)}function G(e,t){for(var n=0,o=e.length;n<o;n++)if(t(e[n],n))return ve.some(n);return ve.none()}function $(e,t){return function(e){for(var t=[],n=0,o=e.length;n<o;++n){if(!y(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);xe.apply(t,e[n])}return t}(L(e,t))}function X(e,t){for(var n=0,o=e.length;n<o;++n)if(!0!==t(e[n],n))return!1;return!0}function K(e){var t=be.call(e,0);return t.reverse(),t}function Y(e,t){return F(e,(function(e){return!R(t,e)}))}function J(e,t){var n=be.call(e,0);return n.sort(t),n}function Q(e,t){return 0<=t&&t<e.length?ve.some(e[t]):ve.none()}function Z(e){return Q(e,0)}function ee(e){return Q(e,e.length-1)}function te(e,t){for(var n=0;n<e.length;n++){var o=t(e[n],n);if(o.isSome())return o}return ve.none()}function ne(e,t){for(var n=Ce(e),o=0,r=n.length;o<r;o++){var i=n[o];t(e[i],i)}}function oe(e,t){return ke(e,(function(e,n){return{k:n,v:t(e,n)}}))}function re(e){return function(t,n){e[n]=t}}function ie(e,t,n,o){return ne(e,(function(e,r){(t(e,r)?n:o)(e,r)})),1}function ae(e,t){var n={};return ie(e,t,re(n),c),n}function ue(e,t){return _e(e,t)?ve.from(e[t]):ve.none()}function ce(e,t){return _e(e,t)&&void 0!==e[t]&&null!==e[t]}function se(e,t,n){var o,r;if(!e)return!1;if(n=n||e,void 0!==e.length){for(o=0,r=e.length;o<r;o++)if(!1===t.call(n,e[o],o,e))return!1}else for(o in e)if(_e(e,o)&&!1===t.call(n,e[o],o,e))return!1;return!0}function le(e,t){var n=[];return se(e,(function(o,r){n.push(t(o,r,e))})),n}function fe(e,t){var n=[];return se(e,(function(o,r){t&&!t(o,r,e)||n.push(o)})),n}function de(e,t){if(e)for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function me(e,t,n,o){for(var r=C(n)?e[0]:n,i=0;i<e.length;i++)r=t.call(o,r,e[i],i);return r}function ge(e,t,n){for(var o=0,r=e.length;o<r;o++)if(t.call(n,e[o],o,e))return o;return-1}function he(e){return e[e.length-1]}var pe=function(e){function t(){return r}function n(t){return t(e)}var o=f(e),r={fold:function(t,n){return n(e)},isSome:D,isNone:M,getOr:o,getOrThunk:o,getOrDie:o,getOrNull:o,getOrUndefined:o,or:t,orThunk:t,map:function(t){return pe(t(e))},each:function(t){t(e)},bind:n,exists:n,forall:n,filter:function(t){return t(e)?r:A},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return r},ve={some:pe,none:T,from:function(e){return null==e?A:pe(e)}},be=Array.prototype.slice,ye=Array.prototype.indexOf,xe=Array.prototype.push,we=S(Array.from)?Array.from:function(e){return be.call(e)},Ce=Object.keys,Se=Object.hasOwnProperty,ke=function(e,t){var n={};return ne(e,(function(e,o){var r=t(e,o);n[r.k]=r.v})),n},_e=function(e,t){return Se.call(e,t)},Oe=Array.isArray,Ee=function(){return(Ee=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function ze(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Te(e){var t,n=!1;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];return n||(n=!0,t=e.apply(null,o)),t}}function Me(e,t){var n=String(t).toLowerCase();return q(e,(function(e){return e.search(n)}))}function De(e,t){return-1!==e.indexOf(t)}function Ae(e){return function(t){return t.replace(e,"")}}function Ne(e){return 0<e.length}function Be(e){return!Ne(e)}function Re(e){return function(t){return De(t,e)}}function He(e){return window.matchMedia(e).matches}function Le(e){return null==e?"":(""+e).replace(Ct,"")}function Ve(e,t){return t?!("array"!==t||!Oe(e))||typeof e===t:void 0!==e}function Pe(e,t){for(var n=[],o=function(e){return n.push(e),t(e)},r=t(e);(r=r.bind(o)).isSome(););return n}function Ie(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var o=n;if(void 0!==o.matches)return o.matches(t);if(void 0!==o.msMatchesSelector)return o.msMatchesSelector(t);if(void 0!==o.webkitMatchesSelector)return o.webkitMatchesSelector(t);if(void 0!==o.mozMatchesSelector)return o.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}function Fe(e){return 1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount}function Ue(e,t){return e.dom===t.dom}function je(e,t){return dt().browser.isIE()?(n=e.dom,o=t.dom,r=Node.DOCUMENT_POSITION_CONTAINED_BY,0!=(n.compareDocumentPosition(o)&r)):(i=e.dom)!==(a=t.dom)&&i.contains(a);var n,o,r,i,a}function We(){return Xe(0,0)}function qe(e){function t(e){return function(){return n===e}}var n=e.current,o=e.version;return{current:n,version:o,isEdge:t("Edge"),isChrome:t("Chrome"),isIE:t("IE"),isOpera:t("Opera"),isFirefox:t(nt),isSafari:t("Safari")}}function Ge(e){function t(e){return function(){return n===e}}var n=e.current,o=e.version;return{current:n,version:o,isWindows:t(it),isiOS:t("iOS"),isAndroid:t(at),isOSX:t("OSX"),isLinux:t("Linux"),isSolaris:t(ut),isFreeBSD:t(ct),isChromeOS:t(st)}}function $e(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}}var Xe=function(e,t){return{major:e,minor:t}},Ke={nu:Xe,detect:function(e,t){var n,o,r=String(t).toLowerCase();return 0===e.length?We():(o=function(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(o.test(t))return o}}(e,n=r))?Xe(i(1),i(2)):{major:0,minor:0};function i(e){return Number(n.replace(o,"$"+e))}},unknown:We},Ye=function(e,t){return""===(n=t)||e.length>=n.length&&e.substr(0,0+n.length)===n;var n},Je=Ae(/^\s+|\s+$/g),Qe=Ae(/^\s+/g),Ze=Ae(/\s+$/g),et=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,tt={browsers:f([{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return De(e,"edge/")&&De(e,"chrome")&&De(e,"safari")&&De(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,et],search:function(e){return De(e,"chrome")&&!De(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return De(e,"msie")||De(e,"trident")}},{name:"Opera",versionRegexes:[et,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Re("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Re("firefox")},{name:"Safari",versionRegexes:[et,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(De(e,"safari")||De(e,"mobile/"))&&De(e,"applewebkit")}}]),oses:f([{name:"Windows",search:Re("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return De(e,"iphone")||De(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Re("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Re("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Re("linux"),versionRegexes:[]},{name:"Solaris",search:Re("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Re("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Re("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}])},nt="Firefox",ot=function(){return qe({current:void 0,version:Ke.unknown()})},rt=qe,it=(f("Edge"),f("Chrome"),f("IE"),f("Opera"),f(nt),f("Safari"),"Windows"),at="Android",ut="Solaris",ct="FreeBSD",st="ChromeOS",lt=function(){return Ge({current:void 0,version:Ke.unknown()})},ft=Ge,dt=(f(it),f("iOS"),f(at),f("Linux"),f("OSX"),f(ut),f(ct),f(st),Te((function(){return e=navigator.userAgent,t=ve.from(navigator.userAgentData),n=He,p=tt.browsers(),v=tt.oses(),{browser:b=t.bind((function(e){return t=p,te(e.brands,(function(e){var n=e.brand.toLowerCase();return q(t,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(t){return{current:t.name,version:Ke.nu(parseInt(e.version,10),0)}}))}));var t})).orThunk((function(){return Me(p,t=e).map((function(e){var n=Ke.detect(e.versionRegexes,t);return{current:e.name,version:n}}));var t})).fold(ot,rt),os:y=Me(v,o=e).map((function(e){var t=Ke.detect(e.versionRegexes,o);return{current:e.name,version:t}})).fold(lt,ft),deviceType:(i=b,a=e,u=n,c=(r=y).isiOS()&&!0===/ipad/i.test(a),s=r.isiOS()&&!c,d=(l=r.isiOS()||r.isAndroid())||u("(pointer:coarse)"),m=c||!s&&l&&u("(min-device-width:768px)"),g=s||l&&!m,h=i.isSafari()&&r.isiOS()&&!1===/safari/i.test(a),{isiPad:f(c),isiPhone:f(s),isTablet:f(m),isPhone:f(g),isTouch:f(d),isAndroid:r.isAndroid,isiOS:r.isiOS,isWebView:f(h),isDesktop:f(!g&&!m&&!h)})};var e,t,n,o,r,i,a,u,c,s,l,d,m,g,h,p,v,b,y}))),mt=navigator.userAgent,gt=dt(),ht=gt.browser,pt=gt.os,vt=gt.deviceType,bt=/WebKit/.test(mt)&&!ht.isEdge(),yt="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,xt=-1!==mt.indexOf("Windows Phone"),wt={opera:ht.isOpera(),webkit:bt,ie:!(!ht.isIE()&&!ht.isEdge())&&ht.version.major,gecko:ht.isFirefox(),mac:pt.isOSX()||pt.isiOS(),iOS:vt.isiPad()||vt.isiPhone(),android:pt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:ht.isIE()?document.documentMode||7:10,fileApi:yt,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!ht.isIE(),desktop:vt.isDesktop(),windowsPhone:xt,browser:{current:ht.current,version:ht.version,isChrome:ht.isChrome,isEdge:ht.isEdge,isFirefox:ht.isFirefox,isIE:ht.isIE,isOpera:ht.isOpera,isSafari:ht.isSafari},os:{current:pt.current,version:pt.version,isAndroid:pt.isAndroid,isChromeOS:pt.isChromeOS,isFreeBSD:pt.isFreeBSD,isiOS:pt.isiOS,isLinux:pt.isLinux,isOSX:pt.isOSX,isSolaris:pt.isSolaris,isWindows:pt.isWindows},deviceType:{isDesktop:vt.isDesktop,isiPad:vt.isiPad,isiPhone:vt.isiPhone,isPhone:vt.isPhone,isTablet:vt.isTablet,isTouch:vt.isTouch,isWebView:vt.isWebView}},Ct=/^\s*|\s*$/g,St=function(e,t,n,o){o=o||this,e&&se(e=n?e[n]:e,(function(e,r){return!1!==t.call(o,e,r,n)&&void St(e,t,n,o)}))},kt={trim:Le,isArray:Oe,is:Ve,toArray:function(e){if(Oe(e))return e;for(var t=[],n=0,o=e.length;n<o;n++)t[n]=e[n];return t},makeMap:function(e,t,n){var o;for(t=t||",",n=n||{},o=(e="string"==typeof(e=e||[])?e.split(t):e).length;o--;)n[e[o]]={};return n},each:se,map:le,grep:fe,inArray:de,hasOwn:_e,extend:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0;o<t.length;o++){var r,i,a=t[o];for(r in a)!_e(a,r)||void 0!==(i=a[r])&&(e[r]=i)}return e},create:function(e,t,n){var o,r,i,a=this,u=0,c=(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e))[3].match(/(^|\.)(\w+)$/i)[2],s=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!s[c]){if("static"===e[2])return s[c]=t,void(this.onCreate&&this.onCreate(e[2],e[3],s[c]));t[c]||(t[c]=function(){},u=1),s[c]=t[c],a.extend(s[c].prototype,t),e[5]&&(o=a.resolve(e[5]).prototype,r=e[5].match(/\.(\w+)$/i)[1],i=s[c],s[c]=u?function(){return o[r].apply(this,arguments)}:function(){return this.parent=o[r],i.apply(this,arguments)},s[c].prototype[c]=s[c],a.each(o,(function(e,t){s[c].prototype[t]=o[t]})),a.each(t,(function(e,t){o[t]?s[c].prototype[t]=function(){return this.parent=o[t],e.apply(this,arguments)}:t!==c&&(s[c].prototype[t]=e)}))),a.each(t.static,(function(e,t){s[c][t]=e}))}},walk:St,createNS:function(e,t){var n,o;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)t[o=e[n]]||(t[o]={}),t=t[o];return t},resolve:function(e,t){var n,o;for(t=t||window,n=0,o=(e=e.split(".")).length;n<o&&(t=t[e[n]]);n++);return t},explode:function(e,t){return!e||Ve(e,"array")?e:le(e.split(t||","),Le)},_addCacheSuffix:function(e){var t=wt.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},_t={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||1<n.childNodes.length)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return $e(n.childNodes[0])},fromTag:function(e,t){return $e((t||document).createElement(e))},fromText:function(e,t){return $e((t||document).createTextNode(e))},fromDom:$e,fromPoint:function(e,t,n){return ve.from(e.dom.elementFromPoint(t,n)).map($e)}};function Ot(e){return e.dom.nodeName.toLowerCase()}function Et(e){return e.dom.nodeType}function zt(e){return function(t){return Et(t)===e}}function Tt(e){return _t.fromDom(e.dom.ownerDocument)}function Mt(e){return En(e)?e:Tt(e)}function Dt(e){return _t.fromDom(Mt(e).dom.defaultView)}function At(e){return ve.from(e.dom.parentNode).map(_t.fromDom)}function Nt(e){return ve.from(e.dom.previousSibling).map(_t.fromDom)}function Bt(e){return ve.from(e.dom.nextSibling).map(_t.fromDom)}function Rt(e){return K(Pe(e,Nt))}function Ht(e){return Pe(e,Bt)}function Lt(e,t){var n=e.dom.childNodes;return ve.from(n[t]).map(_t.fromDom)}function Vt(e){return Lt(e,0)}function Pt(e){return Lt(e,e.dom.childNodes.length-1)}function It(e){return e.dom.childNodes.length}function Ft(e){return zn(e)&&u(e.dom.host)}function Ut(e){return Ft(e)?e:function(){var t=Mt(e).dom.head;if(null==t)throw new Error("Head is not available yet");return _t.fromDom(t)}()}function jt(e){return _t.fromDom(e.dom.host)}function Wt(e,t){At(e).each((function(n){n.dom.insertBefore(t.dom,e.dom)}))}function qt(e,t){Bt(e).fold((function(){At(e).each((function(e){Nn(e,t)}))}),(function(e){Wt(e,t)}))}function Gt(e,t){Vt(e).fold((function(){Nn(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))}function $t(e,t){V(t,(function(t){Nn(e,t)}))}function Xt(e){e.dom.textContent="",V(Tn(e),(function(e){Bn(e)}))}function Kt(e){var t,n=Tn(e);0<n.length&&(t=e,V(n,(function(e){Wt(t,e)}))),Bn(e)}function Yt(e,t){return void 0!==e?e:void 0!==t?t:0}function Jt(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,o=t.body.scrollTop||t.documentElement.scrollTop;return Ln(n,o)}function Qt(e,t,n){var o=(void 0!==n?n.dom:document).defaultView;o&&o.scrollTo(e,t)}function Zt(e,t){dt().browser.isSafari()&&S(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)}function en(e,t,n,o){return{x:e,y:t,width:n,height:o,right:e+n,bottom:t+o}}function tn(e){var t=void 0===e?window:e,n=t.document,o=Jt(_t.fromDom(n)),r=void 0===t?window:t;return(dt().browser.isFirefox()?ve.none():ve.from(r.visualViewport)).fold((function(){var e=t.document.documentElement,n=e.clientWidth,r=e.clientHeight;return en(o.left,o.top,n,r)}),(function(e){return en(Math.max(e.pageLeft,o.left),Math.max(e.pageTop,o.top),e.width,e.height)}))}function nn(e){return function(t){return!!t&&t.nodeType===e}}function on(e){return e&&!Object.getPrototypeOf(e)}function rn(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return R(t,n)}return!1}}function an(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Pn(t))for(var o=0;o<n.length;o++){var r=t.ownerDocument.defaultView.getComputedStyle(t,null);if((r?r.getPropertyValue(e):null)===n[o])return!0}return!1}}function un(e){return function(t){return Pn(t)&&t.hasAttribute(e)}}function cn(e){return Pn(e)&&e.hasAttribute("data-mce-bogus")}function sn(e){return Pn(e)&&"TABLE"===e.tagName}function ln(e){return function(t){if(Pn(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}}function fn(e,t,n){return void 0===n&&(n=m),e.exists((function(e){return n(e,t)}))}function dn(e,t,n){return e.isSome()&&t.isSome()?ve.some(n(e.getOrDie(),t.getOrDie())):ve.none()}function mn(e){return void 0!==e.style&&S(e.style.getPropertyValue)}function gn(e,t,n){if(!(v(n)||w(n)||k(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}function hn(e,t,n){gn(e.dom,t,n)}function pn(e,t){var n=e.dom;ne(t,(function(e,t){gn(n,t,e)}))}function vn(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n}function bn(e,t){return ve.from(vn(e,t))}function yn(e,t){e.dom.removeAttribute(t)}function xn(e,t){var n=e.dom,o=window.getComputedStyle(n).getPropertyValue(t);return""!==o||Rn(e)?o:Jn(n,t)}function wn(e,t){var n=e.dom,o=Jn(n,t);return ve.from(o).filter((function(e){return 0<e.length}))}function Cn(e){var t={},n=e.dom;if(mn(n))for(var o=0;o<n.style.length;o++){var r=n.style.item(o);t[r]=n.style[r]}return t}function Sn(e){return q(e,_n)}function kn(e,t){return e.children&&R(e.children,t)}"undefined"!=typeof window||Function("return this;")();var _n=zt(1),On=zt(3),En=zt(9),zn=zt(11),Tn=function(e){return L(e.dom.childNodes,_t.fromDom)},Mn=S(Element.prototype.attachShadow)&&S(Node.prototype.getRootNode),Dn=f(Mn),An=Mn?function(e){return _t.fromDom(e.dom.getRootNode())}:Mt,Nn=function(e,t){e.dom.appendChild(t.dom)},Bn=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Rn=function(e){var t=On(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;var n=t.ownerDocument,o=_t.fromDom(t),r=An(o);return(Ft(r)?ve.some(r):ve.none()).fold((function(){return n.body.contains(t)}),l(Rn,jt))},Hn=function(e,t){return{left:e,top:t,translate:function(n,o){return Hn(e+n,t+o)}}},Ln=Hn,Vn=function(e){var t,n=e.dom,o=n.ownerDocument.body;return o===n?Ln(o.offsetLeft,o.offsetTop):Rn(e)?(t=n.getBoundingClientRect(),Ln(t.left,t.top)):Ln(0,0)},Pn=nn(1),In=rn(["textarea","input"]),Fn=nn(3),Un=nn(8),jn=nn(9),Wn=nn(11),qn=rn(["br"]),Gn=rn(["img"]),$n=ln("true"),Xn=ln("false"),Kn=rn(["td","th"]),Yn=rn(["video","audio","object","embed"]),Jn=function(e,t){return mn(e)?e.style.getPropertyValue(t):""},Qn=dt().browser,Zn={},eo={exports:Zn};function to(e){setTimeout((function(){throw e}),0)}function no(e){return uo((function(){return new ro(e)}))}function oo(e){if(!y(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return V(e,(function(o,r){var i=Ce(o);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],u=o[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!y(u))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n.length;if(i!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+i);return{fold:function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);return t[r].apply(null,n)},match:function(e){var o=Ce(e);if(t.length!==o.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+o.join(","));if(!X(t,(function(e){return R(o,e)})))throw new Error("Not all branches were specified when using match. Specified: "+o.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)},log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n}!function(){var e=this,t=function(){var e,t,n,o={exports:{}};function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function a(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n,o=1===e._state?t.onFulfilled:t.onRejected;if(null!==o){try{n=o(e._value)}catch(n){return void c(t.promise,n)}u(t.promise,n)}else(1===e._state?u:c)(t.promise,e._value)}))):e._deferreds.push(t)}function u(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"==typeof n)return void f((o=n,r=t,function(){o.apply(r,arguments)}),e)}e._state=1,e._value=t,s(e)}catch(t){c(e,t)}var o,r}function c(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,u(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(e){if(n)return;n=!0,c(t,e)}}e=o,t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=setTimeout,i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i((function(e,n){if(0===t.length)return e([]);for(var o=t.length,r=0;r<t.length;r++)!function r(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return u.call(a,(function(e){r(i,e)}),n),0}t[i]=a,0==--o&&e(t)}catch(a){n(a)}}(r,t[r])}))},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){for(var o=0,r=e.length;o<r;o++)e[o].then(t,n)}))},i._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},e.exports?e.exports=i:t.Promise||(t.Promise=i);var d=o.exports;return{boltExport:("undefined"!=typeof window?window:Function("return this;")()).Promise||d}};"object"==typeof Zn&&void 0!==eo?eo.exports=t():(e="undefined"!=typeof globalThis?globalThis:e||self).EphoxContactWrapper=t()}();var ro=eo.exports.boltExport,io=function(e){function t(e){r()?i(e):o.push(e)}var n=ve.none(),o=[],r=function(){return n.isSome()},i=function(e){n.each((function(t){setTimeout((function(){e(t)}),0)}))};return e((function(e){r()||(n=ve.some(e),V(o,i),o=[])})),{get:t,map:function(e){return io((function(n){t((function(t){n(e(t))}))}))},isReady:r}},ao={nu:io,pure:function(e){return io((function(t){t(e)}))}},uo=function(e){function t(t){e().then(t,to)}return{map:function(t){return uo((function(){return e().then(t)}))},bind:function(t){return uo((function(){return e().then((function(e){return t(e).toPromise()}))}))},anonBind:function(t){return uo((function(){return e().then((function(){return t.toPromise()}))}))},toLazy:function(){return ao.nu(t)},toCached:function(){var t=null;return uo((function(){return t=null===t?e():t}))},toPromise:e,get:t}},co=function(e){return{isValue:D,isError:M,getOr:f(e),getOrThunk:f(e),getOrDie:f(e),or:function(t){return co(e)},orThunk:function(t){return co(e)},fold:function(t,n){return n(e)},map:function(t){return co(t(e))},mapError:function(t){return co(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOptional:function(){return ve.some(e)}}},so=function(e){return{isValue:M,isError:D,getOr:d,getOrThunk:function(e){return e()},getOrDie:function(){return t=String(e),function(){throw new Error(t)}();var t},or:d,orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return so(e)},mapError:function(t){return so(t(e))},each:c,bind:function(t){return so(e)},exists:M,forall:D,toOptional:ve.none}},lo={value:co,error:so,fromOption:function(e,t){return e.fold((function(){return so(t)}),co)}};function fo(e){return e.fold(d,d)}function mo(e,t,n,o,r){return e(n,o)?ve.some(n):S(r)&&r(n)?ve.none():t(n,o,r)}function go(e,t,n){for(var o=e.dom,r=S(n)?n:M;o.parentNode;){o=o.parentNode;var i=_t.fromDom(o);if(t(i))return ve.some(i);if(r(i))break}return ve.none()}function ho(e,t,n){return mo((function(e,t){return t(e)}),go,e,t,n)}function po(e,t,n){return go(e,(function(e){return Ie(e,t)}),n)}function vo(e,t){return n=t,Fe(o=void 0===e?document:e.dom)?ve.none():ve.from(o.querySelector(n)).map(_t.fromDom);var n,o}function bo(e,t,n){return mo(Ie,po,e,t,n)}function yo(e,t){return"number"!=typeof t&&(t=0),setTimeout(e,t)}function xo(e,t){return"number"!=typeof t&&(t=1),setInterval(e,t)}function wo(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];clearTimeout(o),o=yo((function(){e.apply(this,n)}),t)}var o;return n.stop=function(){clearTimeout(o)},n}function Co(e,t){function n(n,o,r){var s,f=kt._addCacheSuffix(n),d=ue(a,f).getOrThunk((function(){return{id:"mce-u"+i++,passed:[],failed:[],count:0}}));function m(e,t){for(var n=e.length;n--;)e[n]();d.status=t,d.passed=[],d.failed=[],s&&(s.onload=null,s.onerror=null,s=null)}function g(){return m(d.passed,2),0}function h(){return m(d.failed,3)}(a[f]=d).count++;var p,v,b,y=function(){var t=y;!function(){for(var t=e.styleSheets,n=t.length;n--;){var o=t[n].ownerNode;if(o&&o.id===s.id)return g(),1}}()&&(Date.now()-v<l?Oo.setTimeout(t):h())};o&&d.passed.push(o),r&&d.failed.push(r),1!==d.status&&(2!==d.status?3!==d.status?(d.status=1,pn(p=_t.fromTag("link",c.dom),{rel:"stylesheet",type:"text/css",id:d.id}),v=Date.now(),t.contentCssCors&&hn(p,"crossOrigin","anonymous"),t.referrerPolicy&&hn(p,"referrerpolicy",t.referrerPolicy),(s=p.dom).onload=y,s.onerror=h,b=p,Nn(Ut(u),b),hn(p,"href",f)):h():g())}function o(e){return no((function(t){n(e,s(t,f(lo.value(e))),s(t,f(lo.error(e))))}))}function r(e){var t=kt._addCacheSuffix(e);ue(a,t).each((function(e){var n;0==--e.count&&(delete a[t],n=e.id,vo(Ut(u),"#"+n).each(Bn))}))}void 0===t&&(t={});var i=0,a={},u=_t.fromDom(e),c=Mt(u),l=t.maxLoadTime||5e3;return{load:n,loadAll:function(e,t,n){var r,i=L(e,o);r=i,no((function(e){var t=[],n=0;0===r.length?e([]):V(r,(function(o,i){var a;o.get((a=i,function(o){t[a]=o,++n>=r.length&&e(t)}))}))})).get((function(e){var o=I(e,(function(e){return e.isValue()}));0<o.fail.length?n(o.fail.map(fo)):t(o.pass.map(fo))}))},unload:r,unloadAll:function(e){V(e,(function(e){r(e)}))},_setReferrerPolicy:function(e){t.referrerPolicy=e}}}oo([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var So,ko,_o=window.Promise||ro,Oo={requestAnimationFrame:function(e,t){So?So.then(e):So=new _o((function(e){!function(e,t){for(var n=window.requestAnimationFrame,o=["ms","moz","webkit"],r=0;r<o.length&&!n;r++)n=window[o[r]+"RequestAnimationFrame"];(n=n||function(e){window.setTimeout(e,0)})(e,t)}(e,t=t||document.body)})).then(e)},setTimeout:yo,setInterval:xo,setEditorTimeout:function(e,t,n){return yo((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var o=xo((function(){e.removed?clearInterval(o):t()}),n);return o},debounce:wo,throttle:wo,clearInterval:function(e){return clearInterval(e)},clearTimeout:function(e){return clearTimeout(e)}},Eo=(ko=new WeakMap,{forElement:function(e,t){var n=An(e).dom;return ve.from(ko.get(n)).getOrThunk((function(){var e=Co(n,t);return ko.set(n,e),e}))}}),zo=(To.prototype.current=function(){return this.node},To.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},To.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},To.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},To.prototype.findSibling=function(e,t,n,o){var r,i;if(e){if(!o&&e[t])return e[t];if(e!==this.rootNode){if(r=e[n])return r;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(r=i[n])return r}}},To.prototype.findPreviousNode=function(e,t,n,o){var r,i,a;if(e&&(r=e[n],!this.rootNode||r!==this.rootNode)){if(r){if(!o)for(a=r[t];a;a=a[t])if(!a[t])return a;return r}return(i=e.parentNode)&&i!==this.rootNode?i:void 0}},To);function To(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)}function Mo(e){var t;return function(n){return t=t||function(e,t){for(var n={},o=0,r=e.length;o<r;o++){var i=e[o];n[String(i)]=t(i,o)}return n}(e,D),_e(t,Ot(n))}}function Do(e){return _n(e)&&!sr(e)}function Ao(e){return _n(e)&&"br"===Ot(e)}function No(e){return Cr(e)&&(e=e.parentNode),wr(e)&&e.hasAttribute("data-mce-caret")}function Bo(e){return Cr(e)&&yr(e.data)}function Ro(e){return No(e)||Bo(e)}function Ho(e){return e.firstChild!==e.lastChild||!qn(e.firstChild)}function Lo(e){var t=e.container();return!!Fn(t)&&(t.data.charAt(e.offset())===br||e.isAtStart()&&Bo(t.previousSibling))}function Vo(e){var t=e.container();return!!Fn(t)&&(t.data.charAt(e.offset()-1)===br||e.isAtEnd()&&Bo(t.nextSibling))}function Po(e){return e&&e.hasAttribute("data-mce-caret")?(cn(n=(t=e.getElementsByTagName("br"))[t.length-1])&&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}function Io(e){return No(e.startContainer)}function Fo(e){return!Ar(e)&&(zr(e)?!Tr(e.parentNode):Mr(e)||Er(e)||Dr(e)||Nr(e))}function Uo(e,t){return Fo(e)&&function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Nr(e))return!1;if(_r(e))return!0}return!0}(e,t)}function jo(e){return Br.test(e)}function Wo(e,t){return Fo(e)&&!1===(a=t,Fn(i=e)&&jo(i.data)&&!1===(n=i,o=_t.fromDom(a),po(_t.fromDom(n),"pre,code",_(Ue,o)).isSome()))||Pn(r=e)&&"A"===r.nodeName&&!r.hasAttribute("href")&&(r.hasAttribute("name")||r.hasAttribute("id"))||Rr(e);var n,o,r,i,a}function qo(e,t){return function(e,t){var n=0;if(Wo(e,e))return!1;var o=e.firstChild;if(!o)return!0;var r=new zo(o,e);do{if(t){if(Lr(o)){o=r.next(!0);continue}if(Hr(o)){o=r.next();continue}}if(qn(o))n++,o=r.next();else{if(Wo(o,e))return!1;o=r.next()}}while(o);return n<=1}(e.dom,t=void 0===t||t)}function Go(e,t){return u(e)&&(Wo(e,t)||Do(_t.fromDom(e)))}function $o(e){return"span"===e.nodeName.toLowerCase()&&"bookmark"===e.getAttribute("data-mce-type")}function Xo(e,t){var n,o,r,i={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)o=String.fromCharCode(parseInt(e[n],t)),qr[o]||(r="&"+e[n+1]+";",i[o]=r,i[r]=o);return i}}function Ko(e,t){return e.replace(t?Ir:Fr,(function(e){return qr[e]||e}))}function Yo(e,t){return e.replace(t?Ir:Fr,(function(e){return 1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":qr[e]||"&#"+e.charCodeAt(0)+";"}))}function Jo(e,t,n){return n=n||$r,e.replace(t?Ir:Fr,(function(e){return qr[e]||n[e]||e}))}function Qo(e,t){return(e=kt.trim(e))?e.split(t||" "):[]}function Zo(e,t){var n;return e&&(n={},Qr(e="string"==typeof e?{"*":e}:e,(function(e,o){n[o]=n[o.toUpperCase()]=("map"===t?Jr:ei)(e,/[, ]/)}))),n}function er(e){function t(t,n,o){var r=e[t];return r?r=Jr(r,/[, ]/,Jr(r.toUpperCase(),/[, ]/)):(r=Kr[t])||(r=Jr(n," ",Jr(n.toUpperCase()," ")),r=Zr(r,o),Kr[t]=r),r}var n,o,r,i,a,u,c,s,l={},d={},m=[],g={},h={},p=(n=(e=e||{}).schema,s={},Kr[n]||(o="id accesskey class dir lang style tabindex title role",r="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",i="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"!==n&&(o+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",r+=" article aside details dialog figure main header footer hgroup section nav",i+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==n&&(o+=" xml:lang",i=[i,c="acronym applet basefont big font strike tt"].join(" "),Qr(Qo(c),(function(e){v(e,"",i)})),r=[r,u="center dir isindex noframes"].join(" "),a=[r,i].join(" "),Qr(Qo(u),(function(e){v(e,"",a)}))),a=a||[r,i].join(" "),v("html","manifest","head body"),v("head","","base command link meta noscript script style title"),v("title hr noscript br"),v("base","href target"),v("link","href rel media hreflang type sizes hreflang"),v("meta","name http-equiv content charset"),v("style","media type scoped"),v("script","src async defer type charset"),v("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",a),v("address dt dd div caption","",a),v("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","",i),v("blockquote","cite",a),v("ol","reversed start type","li"),v("ul","","li"),v("li","value",a),v("dl","","dt dd"),v("a","href target rel media hreflang type",i),v("q","cite",i),v("ins del","cite datetime",a),v("img","src sizes srcset alt usemap ismap width height"),v("iframe","src name width height",a),v("embed","src type width height"),v("object","data type typemustmatch name usemap form width height",[a,"param"].join(" ")),v("param","name value"),v("map","name",[a,"area"].join(" ")),v("area","alt coords shape href target rel media hreflang type"),v("table","border","caption colgroup thead tfoot tbody tr"+("html4"===n?" col":"")),v("colgroup","span","col"),v("col","span"),v("tbody thead tfoot","","tr"),v("tr","","td th"),v("td","colspan rowspan headers",a),v("th","colspan rowspan headers scope abbr",a),v("form","accept-charset action autocomplete enctype method name novalidate target",a),v("fieldset","disabled form name",[a,"legend"].join(" ")),v("label","form for",i),v("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"),v("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===n?a:i),v("select","disabled form multiple name required size","option optgroup"),v("optgroup","disabled label","option"),v("option","disabled label selected value"),v("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),v("menu","type label",[a,"li"].join(" ")),v("noscript","",a),"html4"!==n&&(v("wbr"),v("ruby","",[i,"rt rp"].join(" ")),v("figcaption","",a),v("mark rt rp summary bdi","",i),v("canvas","width height",a),v("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[a,"track source"].join(" ")),v("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[a,"track source"].join(" ")),v("picture","","img source"),v("source","src srcset type media sizes"),v("track","kind src srclang label default"),v("datalist","",[i,"option"].join(" ")),v("article section nav aside main header footer","",a),v("hgroup","","h1 h2 h3 h4 h5 h6"),v("figure","",[a,"figcaption"].join(" ")),v("time","datetime",i),v("dialog","open",a),v("command","type label icon disabled checked radiogroup command"),v("output","for form name",i),v("progress","value max",i),v("meter","value min max low high optimum",i),v("details","open",[a,"summary"].join(" ")),v("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==n&&(b("script","language xml:space"),b("style","xml:space"),b("object","declare classid code codebase codetype archive standby align border hspace vspace"),b("embed","align name hspace vspace"),b("param","valuetype type"),b("a","charset name rev shape coords"),b("br","clear"),b("applet","codebase archive code object alt name width height align hspace vspace"),b("img","name longdesc align border hspace vspace"),b("iframe","longdesc frameborder marginwidth marginheight scrolling align"),b("font basefont","size color face"),b("input","usemap align"),b("select"),b("textarea"),b("h1 h2 h3 h4 h5 h6 div p legend caption","align"),b("ul","type compact"),b("li","type"),b("ol dl menu dir","compact"),b("pre","width xml:space"),b("hr","align noshade size width"),b("isindex","prompt"),b("table","summary width frame rules cellspacing cellpadding align bgcolor"),b("col","width align char charoff valign"),b("colgroup","width align char charoff valign"),b("thead","align char charoff valign"),b("tr","align char charoff valign bgcolor"),b("th","axis align char charoff valign nowrap bgcolor width height"),b("form","accept"),b("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),b("tfoot","align char charoff valign"),b("tbody","align char charoff valign"),b("area","nohref"),b("body","background bgcolor text link vlink alink")),"html4"!==n&&(b("input button select textarea","autofocus"),b("input textarea","placeholder"),b("a","download"),b("link script img","crossorigin"),b("img","loading"),b("iframe","sandbox seamless allowfullscreen loading")),Qr(Qo("a form meter progress dfn"),(function(e){s[e]&&delete s[e].children[e]})),delete s.caption.children.table,delete s.script,Kr[n]=s));function v(e,t,n){function r(e,t){for(var n={},o=0,r=e.length;o<r;o++)n[e[o]]=t||{};return n}var i,a;t=t||"","string"==typeof(n=n||[])&&(n=Qo(n));for(var u=Qo(e),c=u.length;c--;)a={attributes:r(i=Qo([o,t].join(" "))),attributesOrder:i,children:r(n,Yr)},s[u[c]]=a}function b(e,t){for(var n,o,r,i=Qo(e),a=i.length,u=Qo(t);a--;)for(n=s[i[a]],o=0,r=u.length;o<r;o++)n.attributes[u[o]]={},n.attributesOrder.push(u[o])}!1===e.verify_html&&(e.valid_elements="*[*]");var y=Zo(e.valid_styles),x=Zo(e.invalid_styles,"map"),w=Zo(e.valid_classes,"map"),C=t("whitespace_elements","pre script noscript style textarea video audio iframe object code"),S=t("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),k=t("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),_=t("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),O="td th iframe video audio object script code",E=t("non_empty_elements",O+" pre",k),z=t("move_caret_before_on_enter_elements",O+" table",k),T=t("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"),M=t("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",T),D=t("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp");function A(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")}function N(e){var t,n,o,r,i,a,u,c,s,f,d,g,h,p,v,b,y,x,w=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,C=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,S=/[*?+]/;if(e){var k=Qo(e,",");for(l["@"]&&(b=l["@"].attributes,y=l["@"].attributesOrder),t=0,n=k.length;t<n;t++)if(i=w.exec(k[t])){if(p=i[1],s=i[2],v=i[3],c=i[5],a={attributes:g={},attributesOrder:h=[]},"#"===p&&(a.paddEmpty=!0),"-"===p&&(a.removeEmpty=!0),"!"===i[4]&&(a.removeEmptyAttrs=!0),b&&(ne(b,(function(e,t){g[t]=e})),h.push.apply(h,y)),c)for(o=0,r=(c=Qo(c,"|")).length;o<r;o++)(i=C.exec(c[o]))&&(u={},d=i[1],f=i[2].replace(/[\\:]:/g,":"),p=i[3],x=i[4],"!"===d&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(f),u.required=!0),"-"!==d?(p&&("="===p&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:f,value:x}),u.defaultValue=x),":"===p&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:f,value:x}),u.forcedValue=x),"<"===p&&(u.validValues=Jr(x,"?"))),S.test(f)?(a.attributePatterns=a.attributePatterns||[],u.pattern=A(f),a.attributePatterns.push(u)):(g[f]||h.push(f),g[f]=u)):(delete g[f],h.splice(ti(h,f),1)));b||"@"!==s||(b=g,y=h),v&&(a.outputName=s,l[v]=a),S.test(s)?(a.pattern=A(s),m.push(a)):l[s]=a}}}function B(e){l={},m=[],N(e),Qr(p,(function(e,t){d[t]=e.children}))}function R(e){var t=/^(~)?(.+)$/;e&&(Kr.text_block_elements=Kr.block_elements=null,Qr(Qo(e,","),(function(e){var n,o=t.exec(e),r="~"===o[1],i=r?"span":"div",a=o[2];d[a]=d[i],g[a]=i,r||(M[a.toUpperCase()]={},M[a]={}),l[a]||(n=l[i],delete(n=Zr({},n)).removeEmptyAttrs,delete n.removeEmpty,l[a]=n),Qr(d,(function(e,t){e[i]&&(d[t]=e=Zr({},d[t]),e[a]=e[i])}))})))}function H(t){var n=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;Kr[e.schema]=null,t&&Qr(Qo(t,","),(function(e){var t,o,r=n.exec(e);r&&(o=r[1],t=o?d[r[2]]:d[r[2]]={"#comment":{}},t=d[r[2]],Qr(Qo(r[3],"|"),(function(e){"-"===o?delete t[e]:t[e]={}})))}))}function L(e){var t,n=l[e];if(n)return n;for(t=m.length;t--;)if((n=m[t]).pattern.test(e))return n}Qr((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){h[e]=new RegExp("</"+e+"[^>]*>","gi")})),e.valid_elements?B(e.valid_elements):(Qr(p,(function(e,t){l[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},d[t]=e.children})),"html5"!==e.schema&&Qr(Qo("strong/b em/i"),(function(e){var t=Qo(e,"/");l[t[1]].outputName=t[0]})),Qr(Qo("ol ul sub sup blockquote span font a table tbody strong em b i"),(function(e){l[e]&&(l[e].removeEmpty=!0)})),Qr(Qo("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){l[e].paddEmpty=!0})),Qr(Qo("span"),(function(e){l[e].removeEmptyAttrs=!0}))),R(e.custom_elements),H(e.valid_children),N(e.extended_valid_elements),H("+ol[ul|ol],+ul[ul|ol]"),Qr({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){l[t]&&(l[t].parentsRequired=Qo(e))})),e.invalid_elements&&Qr(ei(e.invalid_elements),(function(e){l[e]&&delete l[e]})),L("span")||N("span[!data-mce-type|*]");var V=f(y),P=f(x),I=f(w),F=f(_),U=f(M),j=f(T),W=f(D),q=f(k),G=f(S),$=f(E),X=f(z),K=f(C),Y=f(h),J=f(g);return{children:d,elements:l,getValidStyles:V,getValidClasses:I,getBlockElements:U,getInvalidStyles:P,getShortEndedElements:q,getTextBlockElements:j,getTextInlineElements:W,getBoolAttrs:F,getElementRule:L,getSelfClosingElements:G,getNonEmptyElements:$,getMoveCaretBeforeOnEnterElements:X,getWhiteSpaceElements:K,getSpecialElements:Y,isValidChild:function(e,t){var n=d[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:function(e,t){var n,o,r=L(e);if(r){if(!t)return!0;if(r.attributes[t])return!0;if(n=r.attributePatterns)for(o=n.length;o--;)if(n[o].pattern.test(e))return!0}return!1},getCustomElements:J,addValidElements:N,setValidElements:B,addCustomElements:R,addValidChildren:H}}function tr(e,t,n,o){function r(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e}return"#"+r(t)+r(n)+r(o)}function nr(e,t){var n,o,r=this,i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,a=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,u=/\s*([^:]+):\s*([^;]+);?/g,c=/\s+$/,s={},l=pr;e=e||{},t&&(n=t.getValidStyles(),o=t.getInvalidStyles());for(var f=("\\\" \\' \\; \\: ; : "+l).split(" "),d=0;d<f.length;d++)s[f[d]]=l+d,s[l+d]=f[d];return{toHex:function(e){return e.replace(i,tr)},parse:function(t){function n(e,t,n){var o=k[e+"-top"+t];if(o){var r=k[e+"-right"+t];if(r){var i=k[e+"-bottom"+t];if(i){var a=k[e+"-left"+t];if(a){var u=[o,r,i,a];for(d=u.length-1;d--&&u[d]===u[d+1];);-1<d&&n||(k[e+t]=-1===d?u[0]:u.join(" "),delete k[e+"-top"+t],delete k[e+"-right"+t],delete k[e+"-bottom"+t],delete k[e+"-left"+t])}}}}}function o(e){var t,n=k[e];if(n){for(t=(n=n.split(" ")).length;t--;)if(n[t]!==n[0])return;return k[e]=n[0],1}}function f(e){return x=!0,s[e]}function m(e,t){return x&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return s[e]}))),t?e:e.replace(/\\([\'\";:])/g,"$1")}function g(e){return String.fromCharCode(parseInt(e.slice(1),16))}function h(e){return e.replace(/\\[0-9a-f]+/gi,g)}function p(t,n,o,r,i,a){if(i=i||a)return"'"+(i=m(i)).replace(/\'/g,"\\'")+"'";if(n=m(n||o||r),!e.allow_script_urls){var u=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(u))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(u))return""}return"url('"+(n=_?_.call(O,n,"style"):n).replace(/\'/g,"\\'")+"')"}var v,b,y,x,w,C,S,k={},_=e.url_converter,O=e.url_converter_scope||r;if(t){for(t=(t=t.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,f).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,f)}));v=u.exec(t);)u.lastIndex=v.index+v[0].length,b=v[1].replace(c,"").toLowerCase(),y=v[2].replace(c,""),b&&y&&(b=h(b),y=h(y),-1===b.indexOf(l)&&-1===b.indexOf('"')&&(e.allow_script_urls||"behavior"!==b&&!/expression\s*\(|\/\*|\*\//.test(y))&&("font-weight"===b&&"700"===y?y="bold":"color"!==b&&"background-color"!==b||(y=y.toLowerCase()),y=(y=y.replace(i,tr)).replace(a,p),k[b]=x?m(y,!0):y));n("border","",!0),n("border","-width"),n("border","-color"),n("border","-style"),n("padding",""),n("margin",""),C="border-style",S="border-color",o(w="border-width")&&o(C)&&o(S)&&(k.border=k[w]+" "+k[C]+" "+k[S],delete k[w],delete k[C],delete k[S]),"medium none"===k.border&&delete k.border,"none"===k["border-image"]&&delete k["border-image"]}return k},serialize:function(e,t){function r(t){var o,r=n[t];if(r)for(var a=0,u=r.length;a<u;a++)t=r[a],(o=e[t])&&(i+=(0<i.length?" ":"")+t+": "+o+";")}var i="";return t&&n?(r("*"),r(t)):ne(e,(function(e,n){var r;!e||o&&((r=o["*"])&&r[n]||(r=o[t])&&r[n])||(i+=(0<i.length?" ":"")+n+": "+e+";")})),i}}}function or(e){return e instanceof Event||S(e.initEvent)}function rr(e,t,n,o){var r,i,c=function(e){var t,n=null!=o?o:{};for(t in e)_e(ni,t)||(n[t]=e[t]);return u(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n}(t);return c.type=e,a(c.target)&&(c.target=null!==(r=c.srcElement)&&void 0!==r?r:n),(a((i=t).preventDefault)||or(i))&&(c.preventDefault=function(){c.defaultPrevented=!0,c.isDefaultPrevented=D,S(t.preventDefault)?t.preventDefault():or(t)&&(t.returnValue=!1)},c.stopPropagation=function(){c.cancelBubble=!0,c.isPropagationStopped=D,S(t.stopPropagation)?t.stopPropagation():or(t)&&(t.cancelBubble=!0)},c.stopImmediatePropagation=function(){c.isImmediatePropagationStopped=D,c.stopPropagation()},c.isDefaultPrevented!==D&&c.isDefaultPrevented!==M&&(c.isDefaultPrevented=!0===c.defaultPrevented?D:M,c.isPropagationStopped=!0===c.cancelBubble?D:M,c.isImmediatePropagationStopped=M)),c}function ir(e,t,n,o){e.addEventListener?e.addEventListener(t,n,o||!1):e.attachEvent&&e.attachEvent("on"+t,n)}function ar(e,t,n,o){e.removeEventListener?e.removeEventListener(t,n,o||!1):e.detachEvent&&e.detachEvent("on"+t,n)}function ur(e,t){var n,o,r,i,a=rr(e.type,e,document,t);return u(i=e)&&oi.test(i.type)&&C(e.pageX)&&!C(e.clientX)&&(o=(n=a.target.ownerDocument||document).documentElement,r=n.body,a.pageX=e.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),a.pageY=e.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),C(a.metaKey)&&(a.metaKey=!1),a}var cr=Mo(["h1","h2","h3","h4","h5","h6"]),sr=Mo(["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"]),lr=Mo(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),fr=Mo(["ul","ol","dl"]),dr=Mo(["li","dd","dt"]),mr=Mo(["thead","tbody","tfoot"]),gr=Mo(["td","th"]),hr=Mo(["pre","script","textarea","style"]),pr="\ufeff",vr=" ",br=pr,yr=function(e){return e===pr},xr=function(e){return e.replace(/\uFEFF/g,"")},wr=Pn,Cr=Fn,Sr=function(e){return Cr(e)&&e.data[0]===br},kr=function(e){return Cr(e)&&e.data[e.data.length-1]===br},_r=$n,Or=Xn,Er=qn,zr=Fn,Tr=rn(["script","style","textarea"]),Mr=rn(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Dr=rn(["table"]),Ar=Ro,Nr=function(e){return!1===(Pn(t=e)&&"true"===t.getAttribute("unselectable"))&&Or(e);var t},Br=/^[ \t\r\n]*$/,Rr=un("data-mce-bookmark"),Hr=un("data-mce-bogus"),Lr=function(e){return Pn(e)&&"all"===e.getAttribute("data-mce-bogus")},Vr=function(e,t,n){var o=n||t;if(Pn(t)&&$o(t))return t;for(var r,i,a,u,c,s,l,f,d,m,g,h=t.childNodes,p=h.length-1;0<=p;p--)Vr(e,h[p],o);return!Pn(t)||1===(r=t.childNodes).length&&$o(r[0])&&t.parentNode.insertBefore(r[0],t),Wn(a=t)||jn(a)||Wo(t,o)||Pn(i=t)&&0<i.childNodes.length||(c=o,Fn(u=t)&&0<u.data.length&&(f=new zo(s=u,l=c).prev(!1),d=new zo(s,l).next(!1),m=C(f)||Go(f,l),g=C(d)||Go(d,l),m&&g))||e.remove(t),t},Pr=kt.makeMap,Ir=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fr=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ur=/[<>&\"\']/g,jr=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Wr={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},qr={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Gr={"<":"<",">":">","&":"&",""":'"',"'":"'"},$r=Xo("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),Xr={encodeRaw:Ko,encodeAllRaw:function(e){return(""+e).replace(Ur,(function(e){return qr[e]||e}))},encodeNumeric:Yo,encodeNamed:Jo,getEncodeFunc:function(e,t){var n=Xo(t)||$r,o=Pr(e.replace(/\+/g,","));return o.named&&o.numeric?function(e,t){return e.replace(t?Ir:Fr,(function(e){return void 0!==qr[e]?qr[e]:void 0!==n[e]?n[e]:1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))}:o.named?t?function(e,t){return Jo(e,t,n)}:Jo:o.numeric?Yo:Ko},decode:function(e){return e.replace(jr,(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))):Wr[t]||String.fromCharCode(t):Gr[e]||$r[e]||(n=e,(o=_t.fromTag("div").dom).innerHTML=n,o.textContent||o.innerText||n);var n,o}))}},Kr={},Yr={},Jr=kt.makeMap,Qr=kt.each,Zr=kt.extend,ei=kt.explode,ti=kt.inArray,ni={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},oi=/^(?:mouse|contextmenu)|click/,ri=(ii.prototype.bind=function(e,t,n,o){function r(e){f.executeHandlers(ur(e||d.event),i)}var i,a,u,c,s,l,f=this,d=window;if(e&&3!==e.nodeType&&8!==e.nodeType){e[f.expando]?i=e[f.expando]:(i=f.count++,e[f.expando]=i,f.events[i]={}),o=o||e;for(var m=t.split(" "),g=m.length;g--;)s=r,c=l=!1,"DOMContentLoaded"===(u=m[g])&&(u="ready"),f.domLoaded&&"ready"===u&&"complete"===e.readyState?n.call(o,ur({type:u})):(f.hasMouseEnterLeave||(c=f.mouseEnterLeave[u])&&(s=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else for(;n&&n!==t;)n=n.parentNode;n||((e=ur(e||d.event)).type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,f.executeHandlers(e,i))}),f.hasFocusIn||"focusin"!==u&&"focusout"!==u||(l=!0,c="focusin"===u?"focus":"blur",s=function(e){(e=ur(e||d.event)).type="focus"===e.type?"focusin":"focusout",f.executeHandlers(e,i)}),(a=f.events[i][u])?"ready"===u&&f.domLoaded?n(ur({type:u})):a.push({func:n,scope:o}):(f.events[i][u]=a=[{func:n,scope:o}],a.fakeName=c,a.capture=l,a.nativeHandler=s,"ready"===u?function(e,t,n){var o,r=e.document,i={type:"ready"};n.domLoaded?t(i):(o=function(){ar(e,"DOMContentLoaded",o),ar(e,"load",o),n.domLoaded||(n.domLoaded=!0,t(i)),e=null},"complete"===r.readyState||"interactive"===r.readyState&&r.body?o():ir(e,"DOMContentLoaded",o),n.domLoaded||ir(e,"load",o))}(e,s,f):ir(e,c||u,s,l)));return e=a=null,n}},ii.prototype.unbind=function(e,t,n){var o,r,i;if(!e||3===e.nodeType||8===e.nodeType)return this;var a=e[this.expando];if(a){if(i=this.events[a],t){for(var u,c,s,l,f=t.split(" "),d=f.length;d--;)if(l=i[r=f[d]]){if(n)for(o=l.length;o--;)l[o].func===n&&(u=l.nativeHandler,c=l.fakeName,s=l.capture,(l=l.slice(0,o).concat(l.slice(o+1))).nativeHandler=u,l.fakeName=c,l.capture=s,i[r]=l);n&&0!==l.length||(delete i[r],ar(e,l.fakeName||r,l.nativeHandler,l.capture))}}else ne(i,(function(t,n){ar(e,t.fakeName||n,t.nativeHandler,t.capture)})),i={};for(r in i)if(_e(i,r))return this;delete this.events[a];try{delete e[this.expando]}catch(t){e[this.expando]=null}}return this},ii.prototype.fire=function(e,t,n){var o;if(!e||3===e.nodeType||8===e.nodeType)return this;for(var r=ur({type:t,target:e},n);(o=e[this.expando])&&this.executeHandlers(r,o),(e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow)&&!r.isPropagationStopped(););return this},ii.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=e.getElementsByTagName?e:e.document)&&e.getElementsByTagName)for(this.unbind(e),t=(n=e.getElementsByTagName("*")).length;t--;)(e=n[t])[this.expando]&&this.unbind(e);return this},ii.prototype.destroy=function(){this.events={}},ii.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},ii.prototype.executeHandlers=function(e,t){var n=this.events[t],o=n&&n[e.type];if(o)for(var r=0,i=o.length;r<i;r++){var a=o[r];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},ii.Event=new ii,ii);function ii(){this.domLoaded=!1,this.events={},this.count=1,this.expando="mce-data-"+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}function ai(e,t,n){var o="0x"+t-65536;return o!=o||n?t:o<0?String.fromCharCode(65536+o):String.fromCharCode(o>>10|55296,1023&o|56320)}var ui,ci,si,li,fi,di,mi,gi,hi,pi,vi,bi,yi,xi,wi,Ci,Si,ki="sizzle"+-new Date,_i=window.document,Oi=0,Ei=0,zi=ia(),Ti=ia(),Mi=ia(),Di=function(e,t){return e===t&&(pi=!0),0},Ai="undefined",Ni={}.hasOwnProperty,Bi=[],Ri=Bi.pop,Hi=Bi.push,Li=Bi.push,Vi=Bi.slice,Pi=Bi.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},Ii="[\\x20\\t\\r\\n\\f]",Fi="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Ui="\\["+Ii+"*("+Fi+")(?:"+Ii+"*([*^$|!~]?=)"+Ii+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Fi+"))|)"+Ii+"*\\]",ji=":("+Fi+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ui+")*)|.*)\\)|)",Wi=new RegExp("^"+Ii+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ii+"+$","g"),qi=new RegExp("^"+Ii+"*,"+Ii+"*"),Gi=new RegExp("^"+Ii+"*([>+~]|"+Ii+")"+Ii+"*"),$i=new RegExp("="+Ii+"*([^\\]'\"]*?)"+Ii+"*\\]","g"),Xi=new RegExp(ji),Ki=new RegExp("^"+Fi+"$"),Yi={ID:new RegExp("^#("+Fi+")"),CLASS:new RegExp("^\\.("+Fi+")"),TAG:new RegExp("^("+Fi+"|[*])"),ATTR:new RegExp("^"+Ui),PSEUDO:new RegExp("^"+ji),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ii+"*(even|odd|(([+-]|)(\\d*)n|)"+Ii+"*(?:([+-]|)"+Ii+"*(\\d+)|))"+Ii+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+Ii+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ii+"*((?:-\\d)?\\d*)"+Ii+"*\\)|)(?=[^-]|$)","i")},Ji=/^(?:input|select|textarea|button)$/i,Qi=/^h\d$/i,Zi=/^[^{]+\{\s*\[native \w/,ea=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ta=/[+~]/,na=/'|\\/g,oa=new RegExp("\\\\([\\da-f]{1,6}"+Ii+"?|("+Ii+")|.)","ig");try{Li.apply(Bi=Vi.call(_i.childNodes),_i.childNodes),Bi[_i.childNodes.length].nodeType}catch(o){Li={apply:Bi.length?function(e,t){Hi.apply(e,Vi.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}var ra=function(e,t,n,o){var r,i,a,u,c,s,l,f,d,m;if((t?t.ownerDocument||t:_i)!==bi&&vi(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(u=(t=t||bi).nodeType)&&9!==u)return[];if(xi&&!o){if(r=ea.exec(e))if(a=r[1]){if(9===u){if(!(i=t.getElementById(a))||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&Si(t,i)&&i.id===a)return n.push(i),n}else{if(r[2])return Li.apply(n,t.getElementsByTagName(e)),n;if((a=r[3])&&ui.getElementsByClassName)return Li.apply(n,t.getElementsByClassName(a)),n}if(ui.qsa&&(!wi||!wi.test(e))){if(f=l=ki,d=t,m=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(s=fi(e),(l=t.getAttribute("id"))?f=l.replace(na,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",c=s.length;c--;)s[c]=f+fa(s[c]);d=ta.test(e)&&sa(t.parentNode)||t,m=s.join(",")}if(m)try{return Li.apply(n,d.querySelectorAll(m)),n}catch(e){}finally{l||t.removeAttribute("id")}}}return mi(e.replace(Wi,"$1"),t,n,o)};function ia(){var e=[];return function t(n,o){return e.push(n+" ")>ci.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function aa(e){return e[ki]=!0,e}function ua(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ca(e){return aa((function(t){return t=+t,aa((function(n,o){for(var r,i=e([],n.length,t),a=i.length;a--;)n[r=i[a]]&&(n[r]=!(o[r]=n[r]))}))}))}function sa(e){return e&&typeof e.getElementsByTagName!=Ai&&e}function la(){}function fa(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function da(e,t,n){var o=t.dir,r=n&&"parentNode"===o,i=Ei++;return t.first?function(t,n,i){for(;t=t[o];)if(1===t.nodeType||r)return e(t,n,i)}:function(t,n,a){var u,c,s=[Oi,i];if(a){for(;t=t[o];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[o];)if(1===t.nodeType||r){if((u=(c=t[ki]||(t[ki]={}))[o])&&u[0]===Oi&&u[1]===i)return s[2]=u[2];if((c[o]=s)[2]=e(t,n,a))return!0}}}function ma(e){return 1<e.length?function(t,n,o){for(var r=e.length;r--;)if(!e[r](t,n,o))return!1;return!0}:e[0]}function ga(e,t,n,o,r){for(var i,a=[],u=0,c=e.length,s=null!=t;u<c;u++)(i=e[u])&&(n&&!n(i,o,r)||(a.push(i),s&&t.push(u)));return a}function ha(e){return void 0!==e}function pa(e){return"string"==typeof e}function va(e,t){var n,o=(t=t||ka).createElement("div"),r=t.createDocumentFragment();for(o.innerHTML=e;n=o.firstChild;)r.appendChild(n);return r}function ba(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function ya(e,t,n){var o,r;return t=Wa(t)[0],e.each((function(){n&&o===this.parentNode||(o=this.parentNode,r=t.cloneNode(!1),this.parentNode.insertBefore(r,this)),r.appendChild(this)})),e}function xa(e,t){return new Wa.fn.init(e,t)}function wa(e){return null==e?"":(""+e).replace(La,"")}function Ca(e,t){var n,o,r,i;if(e)if(void 0===(n=e.length)){for(o in e)if(e.hasOwnProperty(o)&&(i=e[o],!1===t.call(i,o,i)))break}else for(r=0;r<n&&(i=e[r],!1!==t.call(i,r,i));r++);return e}function Sa(e,t){var n=[];return Ca(e,(function(e,o){t(o,e)&&n.push(o)})),n}ui=ra.support={},li=ra.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},vi=ra.setDocument=function(e){var t,n=e?e.ownerDocument||e:_i,o=n.defaultView;return n!==bi&&9===n.nodeType&&n.documentElement?(yi=(bi=n).documentElement,xi=!li(n),o&&o!==function(e){try{return e.top}catch(e){}return null}(o)&&(o.addEventListener?o.addEventListener("unload",(function(){vi()}),!1):o.attachEvent&&o.attachEvent("onunload",(function(){vi()}))),ui.attributes=!0,ui.getElementsByTagName=!0,ui.getElementsByClassName=Zi.test(n.getElementsByClassName),ui.getById=!0,ci.find.ID=function(e,t){if(typeof t.getElementById!=Ai&&xi){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},ci.filter.ID=function(e){var t=e.replace(oa,ai);return function(e){return e.getAttribute("id")===t}},ci.find.TAG=ui.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!=Ai)return t.getElementsByTagName(e)}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[r++];)1===n.nodeType&&o.push(n);return o},ci.find.CLASS=ui.getElementsByClassName&&function(e,t){if(xi)return t.getElementsByClassName(e)},Ci=[],wi=[],ui.disconnectedMatch=!0,wi=wi.length&&new RegExp(wi.join("|")),Ci=Ci.length&&new RegExp(Ci.join("|")),t=Zi.test(yi.compareDocumentPosition),Si=t||Zi.test(yi.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Di=t?function(e,t){return e===t?(pi=!0,0):(o=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(o=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!ui.sortDetached&&t.compareDocumentPosition(e)===o?e===n||e.ownerDocument===_i&&Si(_i,e)?-1:t===n||t.ownerDocument===_i&&Si(_i,t)?1:hi?Pi.call(hi,e)-Pi.call(hi,t):0:4&o?-1:1);var o}:function(e,t){if(e===t)return pi=!0,0;var o,r=0,i=e.parentNode,a=t.parentNode,u=[e],c=[t];if(!i||!a)return e===n?-1:t===n?1:i?-1:a?1:hi?Pi.call(hi,e)-Pi.call(hi,t):0;if(i===a)return ua(e,t);for(o=e;o=o.parentNode;)u.unshift(o);for(o=t;o=o.parentNode;)c.unshift(o);for(;u[r]===c[r];)r++;return r?ua(u[r],c[r]):u[r]===_i?-1:c[r]===_i?1:0},n):bi},ra.matches=function(e,t){return ra(e,null,null,t)},ra.matchesSelector=function(e,t){if((e.ownerDocument||e)!==bi&&vi(e),t=t.replace($i,"='$1']"),ui.matchesSelector&&xi&&(!Ci||!Ci.test(t))&&(!wi||!wi.test(t)))try{var n=(void 0).call(e,t);if(n||ui.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<ra(t,bi,null,[e]).length},ra.contains=function(e,t){return(e.ownerDocument||e)!==bi&&vi(e),Si(e,t)},ra.attr=function(e,t){(e.ownerDocument||e)!==bi&&vi(e);var n=ci.attrHandle[t.toLowerCase()],o=n&&Ni.call(ci.attrHandle,t.toLowerCase())?n(e,t,!xi):void 0;return void 0!==o?o:ui.attributes||!xi?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ra.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ra.uniqueSort=function(e){var t,n=[],o=0,r=0;if(pi=!ui.detectDuplicates,hi=!ui.sortStable&&e.slice(0),e.sort(Di),pi){for(;t=e[r++];)t===e[r]&&(o=n.push(r));for(;o--;)e.splice(n[o],1)}return hi=null,e},si=ra.getText=function(e){var t,n="",o=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=si(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[o++];)n+=si(t);return n},(ci=ra.selectors={cacheLength:50,createPseudo:aa,match:Yi,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(oa,ai),e[3]=(e[3]||e[4]||e[5]||"").replace(oa,ai),"~="===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]||ra.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]&&ra.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Yi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Xi.test(n)&&(t=fi(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(oa,ai).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=zi[e+" "];return t||(t=new RegExp("(^|"+Ii+")"+e+"("+Ii+"|$)"))&&zi(e,(function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!=Ai&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(o){var r=ra.attr(o,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&-1<r.indexOf(n):"$="===t?n&&r.slice(-n.length)===n:"~="===t?-1<(" "+r+" ").indexOf(n):"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,o,r){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),u="of-type"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,c){var s,l,f,d,m,g,h=i!=a?"nextSibling":"previousSibling",p=t.parentNode,v=u&&t.nodeName.toLowerCase(),b=!c&&!u;if(p){if(i){for(;h;){for(f=t;f=f[h];)if(u?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;g=h="only"===e&&!g&&"nextSibling"}return!0}if(g=[a?p.firstChild:p.lastChild],a&&b){for(m=(s=(l=p[ki]||(p[ki]={}))[e]||[])[0]===Oi&&s[1],d=s[0]===Oi&&s[2],f=m&&p.childNodes[m];f=++m&&f&&f[h]||(d=m=0)||g.pop();)if(1===f.nodeType&&++d&&f===t){l[e]=[Oi,m,d];break}}else if(b&&(s=(t[ki]||(t[ki]={}))[e])&&s[0]===Oi)d=s[1];else for(;(f=++m&&f&&f[h]||(d=m=0)||g.pop())&&((u?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(b&&((f[ki]||(f[ki]={}))[e]=[Oi,d]),f!==t)););return(d-=r)===o||d%o==0&&0<=d/o}}},PSEUDO:function(e,t){var n,o=ci.pseudos[e]||ci.setFilters[e.toLowerCase()]||ra.error("unsupported pseudo: "+e);return o[ki]?o(t):1<o.length?(n=[e,e,"",t],ci.setFilters.hasOwnProperty(e.toLowerCase())?aa((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=Pi.call(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:aa((function(e){var t=[],n=[],o=di(e.replace(Wi,"$1"));return o[ki]?aa((function(e,t,n,r){for(var i,a=o(e,null,r,[]),u=e.length;u--;)(i=a[u])&&(e[u]=!(t[u]=i))})):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}})),has:aa((function(e){return function(t){return 0<ra(e,t).length}})),contains:aa((function(e){return e=e.replace(oa,ai),function(t){return-1<(t.textContent||t.innerText||si(t)).indexOf(e)}})),lang:aa((function(e){return Ki.test(e||"")||ra.error("unsupported lang: "+e),e=e.replace(oa,ai).toLowerCase(),function(t){var n;do{if(n=xi?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===yi},focus:function(e){return e===bi.activeElement&&(!bi.hasFocus||bi.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!ci.pseudos.empty(e)},header:function(e){return Qi.test(e.nodeName)},input:function(e){return Ji.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:ca((function(){return[0]})),last:ca((function(e,t){return[t-1]})),eq:ca((function(e,t,n){return[n<0?n+t:n]})),even:ca((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ca((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ca((function(e,t,n){for(var o=n<0?n+t:n;0<=--o;)e.push(o);return e})),gt:ca((function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e}))}}).pseudos.nth=ci.pseudos.eq,V(["radio","checkbox","file","password","image"],(function(e){var t;ci.pseudos[e]=(t=e,function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t})})),V(["submit","reset"],(function(e){var t;ci.pseudos[e]=(t=e,function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t})})),la.prototype=ci.filters=ci.pseudos,ci.setFilters=new la,fi=ra.tokenize=function(e,t){var n,o,r,i,a,u,c,s=Ti[e+" "];if(s)return t?0:s.slice(0);for(a=e,u=[],c=ci.preFilter;a;){for(i in n&&!(o=qi.exec(a))||(o&&(a=a.slice(o[0].length)||a),u.push(r=[])),n=!1,(o=Gi.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(Wi," ")}),a=a.slice(n.length)),ci.filter)ci.filter.hasOwnProperty(i)&&(!(o=Yi[i].exec(a))||c[i]&&!(o=c[i](o))||(n=o.shift(),r.push({value:n,type:i,matches:o}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?ra.error(e):Ti(e,u).slice(0)},di=ra.compile=function(e,t){var n,o,r,i,a,u=[],c=[],s=Mi[e+" "];if(!s){for(n=(t=t||fi(e)).length;n--;)((s=function e(t){for(var n,o,r,i=t.length,a=ci.relative[t[0].type],u=a||ci.relative[" "],c=a?1:0,s=da((function(e){return e===n}),u,!0),l=da((function(e){return-1<Pi.call(n,e)}),u,!0),f=[function(e,t,o){var r=!a&&(o||t!==gi)||((n=t).nodeType?s:l)(e,t,o);return n=null,r}];c<i;c++)if(o=ci.relative[t[c].type])f=[da(ma(f),o)];else{if((o=ci.filter[t[c].type].apply(null,t[c].matches))[ki]){for(r=++c;r<i&&!ci.relative[t[r].type];r++);return function e(t,n,o,r,i,a){return r&&!r[ki]&&(r=e(r)),i&&!i[ki]&&(i=e(i,a)),aa((function(e,a,u,c){var s,l,f,d=[],m=[],g=a.length,h=e||function(e,t,n){for(var o=0,r=t.length;o<r;o++)ra(e,t[o],n);return n}(n||"*",u.nodeType?[u]:u,[]),p=!t||!e&&n?h:ga(h,d,t,u,c),v=o?i||(e?t:g||r)?[]:a:p;if(o&&o(p,v,u,c),r)for(s=ga(v,m),r(s,[],u,c),l=s.length;l--;)(f=s[l])&&(v[m[l]]=!(p[m[l]]=f));if(e){if(i||t){if(i){for(s=[],l=v.length;l--;)(f=v[l])&&s.push(p[l]=f);i(null,v=[],s,c)}for(l=v.length;l--;)(f=v[l])&&-1<(s=i?Pi.call(e,f):d[l])&&(e[s]=!(a[s]=f))}}else v=ga(v===a?v.splice(g,v.length):v),i?i(null,a,v,c):Li.apply(a,v)}))}(1<c&&ma(f),1<c&&fa(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(Wi,"$1"),o,c<r&&e(t.slice(c,r)),r<i&&e(t=t.slice(r)),r<i&&fa(t))}f.push(o)}return ma(f)}(t[n]))[ki]?u:c).push(s);(s=Mi(e,(o=c,i=0<(r=u).length,a=0<o.length,i?aa(l):l))).selector=e}function l(e,t,n,u,c){var s,l,f,d=0,m="0",g=e&&[],h=[],p=gi,v=e||a&&ci.find.TAG("*",c),b=Oi+=null==p?1:Math.random()||.1,y=v.length;for(c&&(gi=t!==bi&&t);m!==y&&null!=(s=v[m]);m++){if(a&&s){for(l=0;f=o[l++];)if(f(s,t,n)){u.push(s);break}c&&(Oi=b)}i&&((s=!f&&s)&&d--,e&&g.push(s))}if(d+=m,i&&m!==d){for(l=0;f=r[l++];)f(g,h,t,n);if(e){if(0<d)for(;m--;)g[m]||h[m]||(h[m]=Ri.call(u));h=ga(h)}Li.apply(u,h),c&&!e&&0<h.length&&1<d+r.length&&ra.uniqueSort(u)}return c&&(Oi=b,gi=p),g}return s},mi=ra.select=function(e,t,n,o){var r,i,a,u,c,s="function"==typeof e&&e,l=!o&&fi(e=s.selector||e);if(n=n||[],1===l.length){if(2<(i=l[0]=l[0].slice(0)).length&&"ID"===(a=i[0]).type&&ui.getById&&9===t.nodeType&&xi&&ci.relative[i[1].type]){if(!(t=(ci.find.ID(a.matches[0].replace(oa,ai),t)||[])[0]))return n;s&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(r=Yi.needsContext.test(e)?0:i.length;r--&&(a=i[r],!ci.relative[u=a.type]);)if((c=ci.find[u])&&(o=c(a.matches[0].replace(oa,ai),ta.test(i[0].type)&&sa(t.parentNode)||t))){if(i.splice(r,1),!(e=o.length&&fa(i)))return Li.apply(n,o),n;break}}return(s||di(e,l))(o,t,!xi,n,ta.test(e)&&sa(t.parentNode)||t),n},ui.sortStable=ki.split("").sort(Di).join("")===ki,ui.detectDuplicates=!!pi,vi(),ui.sortDetached=!0;var ka=document,_a=Array.prototype.push,Oa=Array.prototype.slice,Ea=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,za=ri.Event,Ta=kt.makeMap("children,contents,next,prev"),Ma=function(e,t,n,o){var r;if(pa(t))t=va(t,Va(e[0]));else if(t.length&&!t.nodeType){if(t=Wa.makeArray(t),o)for(r=t.length-1;0<=r;r--)Ma(e,t[r],n,o);else for(r=0;r<t.length;r++)Ma(e,t[r],n,o);return e}if(t.nodeType)for(r=e.length;r--;)n.call(e[r],t);return e},Da=kt.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),Aa=kt.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),Na={for:"htmlFor",class:"className",readonly:"readOnly"},Ba={float:"cssFloat"},Ra={},Ha={},La=/^\s*|\s*$/g,Va=function(e){return e?9===e.nodeType?e:e.ownerDocument:ka};function Pa(e,t,n){var o=[],r=e[t];for("string"!=typeof n&&n instanceof Wa&&(n=n[0]);r&&9!==r.nodeType;){if(void 0!==n){if(r===n)break;if("string"==typeof n&&Wa(r).is(n))break}1===r.nodeType&&o.push(r),r=r[t]}return o}function Ia(e,t,n,o){var r=[];for(o instanceof Wa&&(o=o[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==o){if(e===o)break;if("string"==typeof o&&Wa(e).is(o))break}r.push(e)}return r}function Fa(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null}function Ua(e,t){var n=t.attr("style"),o=e.serialize(e.parse(n),t[0].nodeName)||null;t.attr("data-mce-style",o)}function ja(e,t){var n,o,r=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)o=e.nodeType,(!t||3!==o||o!==n&&e.nodeValue.length)&&(r++,n=o);return r}xa.fn=xa.prototype={constructor:xa,selector:"",context:null,length:0,init:function(e,t){var n,o,r=this;if(!e)return r;if(e.nodeType)return r.context=r[0]=e,r.length=1,r;if(t&&t.nodeType)r.context=t;else{if(t)return Wa(e).attr(t);r.context=t=document}if(pa(e)){if(!(n="<"===(r.selector=e).charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Ea.exec(e)))return Wa(t).find(e);if(n[1])for(o=va(e,Va(t)).firstChild;o;)_a.call(r,o),o=o.nextSibling;else{if(!(o=Va(t).getElementById(n[2])))return r;if(o.id!==n[2])return r.find(e);r.length=1,r[0]=o}}else this.add(e,!1);return r},toArray:function(){return kt.toArray(this)},add:function(e,t){var n,o;if(pa(e))return this.add(Wa(e));if(!1!==t)for(n=Wa.unique(this.toArray().concat(Wa.makeArray(e))),this.length=n.length,o=0;o<n.length;o++)this[o]=n[o];else _a.apply(this,Wa.makeArray(e));return this},attr:function(e,t){var n,o=this;if("object"==typeof e)Ca(e,(function(e,t){o.attr(e,t)}));else{if(!ha(t)){if(o[0]&&1===o[0].nodeType){if((n=Ra[e])&&n.get)return n.get(o[0],e);if(Aa[e])return o.prop(e)?e:void 0;null===(t=o[0].getAttribute(e,2))&&(t=void 0)}return t}this.each((function(){var n;1===this.nodeType&&((n=Ra[e])&&n.set?n.set(this,t):null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2))}))}return o},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if("object"==typeof(e=Na[e]||e))Ca(e,(function(e,t){n.prop(e,t)}));else{if(!ha(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(e,t){function n(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))}function o(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))}var r,i,a=this;if("object"==typeof e)Ca(e,(function(e,t){a.css(e,t)}));else if(ha(t))e=n(e),"number"!=typeof t||Da[e]||(t=t.toString()+"px"),a.each((function(){var n=this.style;if((i=Ha[e])&&i.set)i.set(this,t);else{try{this.style[Ba[e]||e]=t}catch(n){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(o(e)):n.removeAttribute(e))}}));else{if(r=a[0],(i=Ha[e])&&i.get)return i.get(r);if(!r.ownerDocument.defaultView)return r.currentStyle?r.currentStyle[n(e)]:"";try{return r.ownerDocument.defaultView.getComputedStyle(r,null).getPropertyValue(o(e))}catch(n){return}}return a},remove:function(){for(var e,t=this.length;t--;)e=this[t],za.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;if(ha(e)){t=this.length;try{for(;t--;)this[t].innerHTML=e}catch(n){Wa(this[t]).empty().append(e)}return this}return this[0]?this[0].innerHTML:""},text:function(e){var t;if(ha(e)){for(t=this.length;t--;)"innerText"in this[t]?this[t].innerText=e:this[0].textContent=e;return this}return this[0]?this[0].innerText||this[0].textContent:""},append:function(){return Ma(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return Ma(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?Ma(this,arguments,(function(e){this.parentNode.insertBefore(e,this)})):this},after:function(){return this[0]&&this[0].parentNode?Ma(this,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):this},appendTo:function(e){return Wa(e).append(this),this},prependTo:function(e){return Wa(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return ya(this,e)},wrapAll:function(e){return ya(this,e,!0)},wrapInner:function(e){return this.each((function(){Wa(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Wa(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Wa(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!=typeof e||(-1!==e.indexOf(" ")?Ca(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,o){var r,i=ba(o,e);i!==t&&(r=o.className,i?o.className=wa((" "+r+" ").replace(" "+e+" "," ")):o.className+=r?" "+e:e)}))),n},hasClass:function(e){return ba(this[0],e)},each:function(e){return Ca(this,e)},on:function(e,t){return this.each((function(){za.bind(this,e,t)}))},off:function(e,t){return this.each((function(){za.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"==typeof e?za.fire(this,e.type,e):za.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Wa(Oa.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){for(var t=[],n=0,o=this.length;n<o;n++)Wa.find(e,this[n],t);return Wa(t)},filter:function(e){return Wa("function"==typeof e?Sa(this.toArray(),(function(t,n){return e(n,t)})):Wa.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Wa&&(e=e[0]),this.each((function(n,o){for(;o;){if("string"==typeof e&&Wa(o).is(e)){t.push(o);break}if(o===e){t.push(o);break}o=o.parentNode}})),Wa(t)},offset:function(e){var t,n,o,r,i=0,a=0;return e?this.css(e):((t=this[0])&&(o=(n=t.ownerDocument).documentElement,t.getBoundingClientRect&&(i=(r=t.getBoundingClientRect()).left+(o.scrollLeft||n.body.scrollLeft)-o.clientLeft,a=r.top+(o.scrollTop||n.body.scrollTop)-o.clientTop)),{left:i,top:a})},push:_a,sort:Array.prototype.sort,splice:Array.prototype.splice},kt.extend(xa,{extend:kt.extend,makeArray:function(e){return e&&e===e.window||e.nodeType?[e]:kt.toArray(e)},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:kt.isArray,each:Ca,trim:wa,grep:Sa,find:ra,expr:ra.selectors,unique:ra.uniqueSort,text:ra.getText,contains:ra.contains,filter:function(e,t,n){var o=t.length;for(n&&(e=":not("+e+")");o--;)1!==t[o].nodeType&&t.splice(o,1);return 1===t.length?Wa.find.matchesSelector(t[0],e)?[t[0]]:[]:Wa.find.matches(e,t)}}),Ca({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Pa(e,"parentNode")},next:function(e){return Fa(e,"nextSibling",1)},prev:function(e){return Fa(e,"previousSibling",1)},children:function(e){return Ia(e.firstChild,"nextSibling",1)},contents:function(e){return kt.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){xa.fn[e]=function(n){var o=[];this.each((function(){var e=t.call(o,this,n,o);e&&(Wa.isArray(e)?o.push.apply(o,e):o.push(e))})),1<this.length&&(Ta[e]||(o=Wa.unique(o)),0===e.indexOf("parents")&&(o=o.reverse()));var r=Wa(o);return n?r.filter(n):r}})),Ca({parentsUntil:function(e,t){return Pa(e,"parentNode",t)},nextUntil:function(e,t){return Ia(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Ia(e,"previousSibling",1,t).slice(1)}},(function(e,t){xa.fn[e]=function(n,o){var r=[];this.each((function(){var e=t.call(r,this,n,r);e&&(Wa.isArray(e)?r.push.apply(r,e):r.push(e))})),1<this.length&&(r=Wa.unique(r),0!==e.indexOf("parents")&&"prevUntil"!==e||(r=r.reverse()));var i=Wa(r);return o?i.filter(o):i}})),xa.fn.is=function(e){return!!e&&0<this.filter(e).length},xa.fn.init.prototype=xa.fn,xa.overrideDefaults=function(e){var t,n=function(o,r){return t=t||e(),0===arguments.length&&(o=t.element),r=r||t.context,new n.fn.init(o,r)};return Wa.extend(n,this),n},xa.attrHooks=Ra,xa.cssHooks=Ha;var Wa=xa,qa=kt.each,Ga=kt.grep,$a=wt.ie,Xa=/^([a-z0-9],?)+$/i,Ka=function(e,t){function n(t){return t&&e&&v(t)?e.getElementById(t):t}function o(e){return G("string"==typeof e?n(e):e)}function r(e,t,n){var r,i,a=o(e);return void 0===(i=a.length?(r=J[t])&&r.get?r.get(a,t):a.attr(t):i)?n||"":i}function i(e){var t=n(e);return t?t.attributes:[]}function u(e,n,r){""===r&&(r=null);var i,a=o(e),u=a.attr(n);a.length&&((i=J[n])&&i.set?i.set(a,r,n):a.attr(n,r),u!==r&&t.onSetAttrib&&t.onSetAttrib({attrElm:a,attrName:n,attrValue:r}))}function s(){return t.root_element||e.body}function l(t,o){return function(e,t,n){var o,r=0,i=0,a=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===xn(_t.fromDom(e),"position")){var u=t.getBoundingClientRect();return{x:r=u.left+(a.documentElement.scrollLeft||e.scrollLeft)-a.documentElement.clientLeft,y:i=u.top+(a.documentElement.scrollTop||e.scrollTop)-a.documentElement.clientTop}}for(var c=t;c&&c!==n&&c.nodeType&&!kn(c,n);){var s=c;r+=s.offsetLeft||0,i+=s.offsetTop||0,c=s.offsetParent}for(c=t.parentNode;c&&c!==n&&c.nodeType&&!kn(c,n);)r-=c.scrollLeft||0,i-=c.scrollTop||0,c=c.parentNode;i+=(o=_t.fromDom(t),Qn.isFirefox()&&"table"===Ot(o)?Sn(Tn(o)).filter((function(e){return"caption"===Ot(e)})).bind((function(e){return Sn(Ht(e)).map((function(t){var n=t.dom.offsetTop,o=e.dom.offsetTop,r=e.dom.offsetHeight;return n<=o?-r:0}))})).getOr(0):0)}return{x:r,y:i}}(e.body,n(t),o)}function d(e,t,n){var r=o(e);return n?r.css(t):("float"===(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})))&&(t=wt.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)}function m(e){var t=d(e=n(e),"width"),o=d(e,"height");return-1===t.indexOf("px")&&(t=0),-1===o.indexOf("px")&&(o=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(o,10)||e.offsetHeight||e.clientHeight}}function g(e,t){if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Xa.test(t)){for(var n=t.toLowerCase().split(/,/),o=e.nodeName.toLowerCase(),r=n.length-1;0<=r;r--)if(n[r]===o)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var i=Array.isArray(e)?e:[e];return 0<ra(t,i[0].ownerDocument||i[0],null,i).length}function h(e,t,o,r){var i,u=[],c=n(e);for(r=void 0===r,o=o||("BODY"!==s().nodeName?s().parentNode:null),kt.is(t,"string")&&(t="*"===(i=t)?function(e){return 1===e.nodeType}:function(e){return g(e,i)});c&&!(c===o||a(c.nodeType)||jn(c)||Wn(c));){if(!t||"function"==typeof t&&t(c)){if(!r)return[c];u.push(c)}c=c.parentNode}return r?u:null}function p(e,t,n){var o=t;if(e)for("string"==typeof t&&(o=function(e){return g(e,t)}),e=e[n];e;e=e[n])if("function"==typeof o&&o(e))return e;return null}function b(e,t,o){var r,i="string"==typeof e?n(e):e;return!!i&&(kt.isArray(i)&&(i.length||0===i.length)?(r=[],qa(i,(function(e,i){e&&r.push(t.call(o,"string"==typeof e?n(e):e,i))})),r):t.call(o||this,i))}function y(e,t){o(e).each((function(e,n){qa(t,(function(e,t){u(n,t,e)}))}))}function x(e,t){var n=o(e);$a?n.each((function(e,n){if(!1!==n.canHaveHTML){for(;n.firstChild;)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(e){Wa("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)}function w(t,n,o,r,i){return b(t,(function(t){var a="string"==typeof n?e.createElement(n):n;return y(a,o),r&&("string"!=typeof r&&r.nodeType?a.appendChild(r):"string"==typeof r&&x(a,r)),i?a:t.appendChild(a)}))}function C(t,n,o){return w(e.createElement(t),t,n,o,!0)}function S(e,t){var n=o(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)})):n).remove(),1<n.length?n.toArray():n[0]}function k(e,t,n){o(e).toggleClass(t,n).each((function(){""===this.className&&Wa(this).attr("class",null)}))}function _(e,t,n){return b(t,(function(t){return kt.is(t,"array")&&(e=e.cloneNode(!0)),n&&qa(Ga(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))}function O(e){if(Pn(e)){var t="a"===e.nodeName.toLowerCase()&&!r(e,"href")&&r(e,"id");return r(e,"name")||r(e,"data-mce-bookmark")||t?1:void 0}}function E(){return e.createRange()}function z(e){if(e&&Pn(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null}void 0===t&&(t={});var T,M,D,A,N,B,R={},H=window,L={},P=0,I=Eo.forElement(_t.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),F=[],U=t.schema||er({}),j=nr({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),W=t.ownEvents?new ri:ri.Event,q=U.getBlockElements(),G=Wa.overrideDefaults((function(){return{context:e,element:Y.getRoot()}})),$=Xr.encodeAllRaw,X=function(n,o,r,i){if(kt.isArray(n)){for(var a=n.length,u=[];a--;)u[a]=X(n[a],o,r,i);return u}return!t.collect||n!==e&&n!==H||F.push([n,o,r,i]),W.bind(n,o,r,i||Y)},K=function(t,n,o){if(kt.isArray(t)){for(var r=t.length,i=[];r--;)i[r]=K(t[r],n,o);return i}if(0<F.length&&(t===e||t===H))for(r=F.length;r--;){var a=F[r];t!==a[0]||n&&n!==a[1]||o&&o!==a[2]||W.unbind(a[0],a[1],a[2])}return W.unbind(t,n,o)},Y={doc:e,settings:t,win:H,files:L,stdMode:!0,boxModel:!0,styleSheetLoader:I,boundEvents:F,styles:j,schema:U,events:W,isBlock:function(e){if("string"==typeof e)return!!q[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!q[e.nodeName])}return!1},$:G,$$:o,root:null,clone:function(t,n){if(!$a||1!==t.nodeType||n)return t.cloneNode(n);var o=e.createElement(t.nodeName);return qa(i(t),(function(e){u(o,e.nodeName,r(t,e.nodeName))})),o},getRoot:s,getViewPort:function(e){var t=tn(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},getRect:function(e){var t=l(e=n(e)),o=m(e);return{x:t.x,y:t.y,w:o.w,h:o.h}},getSize:m,getParent:function(e,t,n){var o=h(e,t,n,!1);return o&&0<o.length?o[0]:null},getParents:h,get:n,getNext:function(e,t){return p(e,t,"nextSibling")},getPrev:function(e,t){return p(e,t,"previousSibling")},select:function(o,r){return ra(o,n(r)||t.root_element||e,[])},is:g,add:w,create:C,createHTML:function(e,t,n){var o,r="";for(o in r+="<"+e,t)ce(t,o)&&(r+=" "+o+'="'+$(t[o])+'"');return void 0!==n?r+">"+n+"</"+e+">":r+" />"},createFragment:function(t){var n,o=e.createElement("div"),r=e.createDocumentFragment();for(r.appendChild(o),t&&(o.innerHTML=t);n=o.firstChild;)r.appendChild(n);return r.removeChild(o),r},remove:S,setStyle:function(e,n,r){var i=v(n)?o(e).css(n,r):o(e).css(n);t.update_styles&&Ua(j,i)},getStyle:d,setStyles:function(e,n){var r=o(e).css(n);t.update_styles&&Ua(j,r)},removeAllAttribs:function(e){return b(e,(function(e){for(var t=e.attributes,n=t.length-1;0<=n;n--)e.removeAttributeNode(t.item(n))}))},setAttrib:u,setAttribs:y,getAttrib:r,getPos:l,parseStyle:function(e){return j.parse(e)},serializeStyle:function(e,t){return j.serialize(e,t)},addStyle:function(t){var n,o;if(Y!==Ka.DOM&&e===document){if(R[t])return;R[t]=!0}(o=e.getElementById("mceDefaultStyles"))||((o=e.createElement("style")).id="mceDefaultStyles",o.type="text/css",(n=e.getElementsByTagName("head")[0]).firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o)),o.styleSheet?o.styleSheet.cssText+=t:o.appendChild(e.createTextNode(t))},loadCSS:function(e){V((e=e||"").split(","),(function(e){L[e]=!0,I.load(e,c)}))},addClass:function(e,t){o(e).addClass(t)},removeClass:function(e,t){k(e,t,!1)},hasClass:function(e,t){return o(e).hasClass(t)},toggleClass:k,show:function(e){o(e).show()},hide:function(e){o(e).hide()},isHidden:function(e){return"none"===o(e).css("display")},uniqueId:function(e){return(e||"mce_")+P++},setHTML:x,getOuterHTML:function(e){var t="string"==typeof e?n(e):e;return Pn(t)?t.outerHTML:Wa("<div></div>").append(Wa(t).clone()).html()},setOuterHTML:function(e,t){o(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}S(Wa(this).html(t),!0)}))},decode:Xr.decode,encode:$,insertAfter:function(e,t){var o=n(t);return b(e,(function(e){var t=o.parentNode,n=o.nextSibling;return n?t.insertBefore(e,n):t.appendChild(e),e}))},replace:_,rename:function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=C(t),qa(i(e),(function(t){u(n,t.nodeName,r(e,t.nodeName))})),_(n,e,!0)),n||e},findCommonAncestor:function(e,t){for(var n,o=e;o;){for(n=t;n&&o!==n;)n=n.parentNode;if(o===n)break;o=o.parentNode}return!o&&e.ownerDocument?e.ownerDocument.documentElement:o},toHex:function(e){return j.toHex(kt.trim(e))},run:b,getAttribs:i,isEmpty:function(e,t){var n,o,r=0;if(O(e))return!1;if(e=e.firstChild){var i=new zo(e,e.parentNode),a=U?U.getWhiteSpaceElements():{};t=t||(U?U.getNonEmptyElements():null);do{if(n=e.nodeType,Pn(e)){var u=e.getAttribute("data-mce-bogus");if(u){e=i.next("all"===u);continue}if(o=e.nodeName.toLowerCase(),t&&t[o]){if("br"!==o)return!1;r++,e=i.next();continue}if(O(e))return!1}if(8===n)return!1;if(3===n&&!jo(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&jo(e.nodeValue))return!1;e=i.next()}while(e)}return r<=1},createRng:E,nodeIndex:ja,split:function(e,t,n){var o,r,i,a=E();if(e&&t)return a.setStart(e.parentNode,ja(e)),a.setEnd(t.parentNode,ja(t)),o=a.extractContents(),(a=E()).setStart(t.parentNode,ja(t)+1),a.setEnd(e.parentNode,ja(e)+1),r=a.extractContents(),(i=e.parentNode).insertBefore(Vr(Y,o),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(Vr(Y,r),e),S(e),n||t},bind:X,unbind:K,fire:function(e,t,n){return W.fire(e,t,n)},getContentEditable:z,getContentEditableParent:function(e){for(var t=s(),n=null;e&&e!==t&&null===(n=z(e));e=e.parentNode);return n},destroy:function(){if(0<F.length)for(var e=F.length;e--;){var t=F[e];W.unbind(t[0],t[1],t[2])}ne(L,(function(e,t){I.unload(t),delete L[t]})),ra.setDocument&&ra.setDocument()},isChildOf:function(e,t){if($a){for(;e;){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},dumpRng:function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset}},J=(T=j,D=f(Y),N={set:function(e,t,n){M.url_converter&&null!==t&&(t=M.url_converter.call(M.url_converter_scope||D(),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)}},B={style:{set:function(e,t){null===t||"object"!=typeof t?(A&&e.attr("data-mce-style",t),null!==t&&"string"==typeof t?(e.removeAttr("style"),e.css(T.parse(t))):e.attr("style",t)):e.css(t)},get:function(e){var t=e.attr("data-mce-style")||e.attr("style");return T.serialize(T.parse(t),e[0].nodeName)}}},(A=(M=t).keep_values)&&(B.href=B.src=N),B);return Y};Ka.DOM=Ka(document),Ka.nodeIndex=ja;var Ya=Ka.DOM,Ja=kt.each,Qa=kt.grep,Za=(eu.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},eu.prototype.loadScript=function(e,t,n){function o(){r.remove(i),a&&(a.onerror=a.onload=a=null)}var r=Ya,i=r.uniqueId(),a=document.createElement("script");a.id=i,a.type="text/javascript",a.src=kt._addCacheSuffix(e),this.settings.referrerPolicy&&r.setAttrib(a,"referrerpolicy",this.settings.referrerPolicy),a.onload=function(){o(),t()},a.onerror=function(){o(),S(n)?n():"undefined"!=typeof console&&console.log&&console.log("Failed to load script: "+e)},(document.getElementsByTagName("head")[0]||document.body).appendChild(a)},eu.prototype.isDone=function(e){return 2===this.states[e]},eu.prototype.markDone=function(e){this.states[e]=2},eu.prototype.add=function(e,t,n,o){var r=this.states[e];this.queue.push(e),void 0===r&&(this.states[e]=0),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:o,scope:n||this}))},eu.prototype.load=function(e,t,n,o){return this.add(e,t,n,o)},eu.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},eu.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},eu.prototype.loadScripts=function(e,t,n,o){function r(e,t){Ja(i.scriptLoadedCallbacks[t],(function(t){S(t[e])&&t[e].call(t.scope)})),i.scriptLoadedCallbacks[t]=void 0}var i=this,a=[];i.queueLoadedCallbacks.push({success:t,failure:o,scope:n||this});var u=function(){var t,n=Qa(e);e.length=0,Ja(n,(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--,r("success",e),u()}),(function(){i.states[e]=3,i.loading--,a.push(e),r("failure",e),u()}))):r("failure",e):r("success",e)})),i.loading||(t=i.queueLoadedCallbacks.slice(0),i.queueLoadedCallbacks.length=0,Ja(t,(function(e){0===a.length?S(e.success)&&e.success.call(e.scope):S(e.failure)&&e.failure.call(e.scope,a)})))};u()},eu.ScriptLoader=new eu,eu);function eu(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}function tu(e){var t=e;return{get:function(){return t},set:function(e){t=e}}}function nu(){return ue(ou,ru.get())}var ou={},ru=tu("en"),iu={getData:function(){return oe(ou,(function(e){return Ee({},e)}))},setCode:function(e){e&&ru.set(e)},getCode:function(){return ru.get()},add:function(e,t){var n=ou[e];n||(ou[e]=n={}),ne(t,(function(e,t){n[t.toLowerCase()]=e}))},translate:function(e){function t(e){return S(e)?Object.prototype.toString.call(e):u(e)?"":""+e}function n(e){var n=t(e);return ue(a,n.toLowerCase()).map(t).getOr(n)}function o(e){return e.replace(/{context:\w+}$/,"")}var r,i,a=nu().getOr({}),u=function(e){return""===e||null==e};if(u(e))return"";if(b(r=e)&&_e(r,"raw"))return t(e.raw);if(y(i=e)&&1<i.length){var c=e.slice(1);return o(n(e[0]).replace(/\{([0-9]+)\}/g,(function(e,n){return _e(c,n)?t(c[n]):e})))}return o(n(e))},isRtl:function(){return nu().bind((function(e){return ue(e,"_dir")})).exists((function(e){return"rtl"===e}))},hasCode:function(e){return _e(ou,e)}},au=function(){function e(e,t){V(F(u,(function(n){return n.name===e&&n.state===t})),(function(e){return e.callback()}))}function t(e){return(a[e]?a[e].dependencies:void 0)||[]}function n(e,t){return"object"==typeof t?t:"string"==typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}}function o(e,t,n){void 0===n&&(n="added"),_e(a,e)&&"added"===n||_e(i,e)&&"loaded"===n?t():u.push({name:e,state:n,callback:t})}var r=[],i={},a={},u=[],c=function(o,r,u,s,l){var f,d;i[o]||(0!==(f="string"==typeof r?r:r.prefix+r.resource+r.suffix).indexOf("/")&&-1===f.indexOf("://")&&(f=au.baseURL+"/"+f),i[o]=f.substring(0,f.lastIndexOf("/")),d=function(){var i,a,l;e(o,"loaded"),i=r,a=u,l=s,V(t(o),(function(e){var t=n(i,e);c(t.resource,t,void 0,void 0)})),a&&(l?a.call(l):a.call(Za))},a[o]?d():Za.ScriptLoader.add(f,d,s,l))};return{items:r,urls:i,lookup:a,_listeners:u,get:function(e){if(a[e])return a[e].instance},dependencies:t,requireLangPack:function(e,t){!1!==au.languageLoad&&o(e,(function(){var n=iu.getCode();!n||t&&-1===(","+(t||"")+",").indexOf(","+n+",")||Za.ScriptLoader.add(i[e]+"/langs/"+n+".js")}),"loaded")},add:function(t,n,o){var i=n;return r.push(i),a[t]={instance:i,dependencies:o},e(t,"added"),i},remove:function(e){delete i[e],delete a[e]},createUrl:n,addComponents:function(e,t){var n=i[e];V(t,(function(e){Za.ScriptLoader.add(n+"/"+e)}))},load:c,waitFor:o}};function uu(){var e,t,n=(e=c,t=tu(ve.none()),{clear:function(){o(),t.set(ve.none())},isSet:function(){return t.get().isSome()},get:function(){return t.get()},set:function(e){o(),t.set(ve.some(e))}});function o(){return t.get().each(e)}return Ee(Ee({},n),{on:function(e){return n.get().each(e)}})}function cu(e,t){var n=null;return{cancel:function(){x(n)||(clearTimeout(n),n=null)},throttle:function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];x(n)&&(n=setTimeout((function(){n=null,e.apply(null,o)}),t))}}}function su(e,t){function n(){x(o)||(clearTimeout(o),o=null)}var o=null;return{cancel:n,throttle:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n(),o=setTimeout((function(){o=null,e.apply(null,r)}),t)}}}function lu(e,t){var n=vn(e,t);return void 0===n||""===n?[]:n.split(" ")}function fu(e){return void 0!==e.dom.classList}function du(e,t){var n,o,r;fu(e)?e.dom.classList.add(t):(o=t,r=lu(n=e,"class").concat([o]),hn(n,"class",r.join(" ")))}function mu(e,t){return fu(e)&&e.dom.classList.contains(t)}function gu(e,t){return Fe(n=void 0===e?document:e.dom)?[]:L(n.querySelectorAll(t),_t.fromDom);var n}function hu(e,t){function n(e,t){return(n=e.dom)&&n.hasAttribute&&n.hasAttribute(t)?ve.some(vn(e,t)):ve.none();var n}var o=e.selection.getRng(),r=_t.fromDom(o.startContainer),i=_t.fromDom(e.getBody()),a=t.fold((function(){return"."+Pu()}),(function(e){return"["+Iu()+'="'+e+'"]'}));return bo(Lt(r,o.startOffset).getOr(r),a,(function(e){return Ue(e,i)})).bind((function(t){return n(t,""+Fu()).bind((function(o){return n(t,""+Iu()).map((function(t){var n=Uu(e,o);return{uid:o,name:t,elements:n}}))}))}))}function pu(e){var t=(new Date).getTime();return e+"_"+Math.floor(1e9*Math.random())+ ++ju+String(t)}function vu(e,t){var n,o,r=Tt(e).dom,i=_t.fromDom(r.createDocumentFragment());$t(i,(n=t,(o=(r||document).createElement("div")).innerHTML=n,Tn(_t.fromDom(o)))),Xt(e),Nn(e,i)}function bu(e,t){return _t.fromDom(e.dom.cloneNode(t))}function yu(e){return bu(e,!1)}function xu(e){return bu(e,!0)}function wu(e,t,n){function o(e){for(var t;(t=r[e]())&&!Fn(t)&&!n(t););return ve.from(t).filter(Fn)}void 0===n&&(n=M);var r=new zo(e,t);return{current:function(){return ve.from(r.current()).filter(Fn)},next:function(){return o("next")},prev:function(){return o("prev")},prev2:function(){return o("prev2")}}}function Cu(e,t){var n=t||function(t){return e.isBlock(t)||qn(t)||Xn(t)},o=function(e,t,n,r){if(Fn(e)){var i=r(e,t,e.data);if(-1!==i)return ve.some({container:e,offset:i})}return n().bind((function(e){return o(e.container,e.offset,n,r)}))};return{backwards:function(e,t,r,i){var a=wu(e,i,n);return o(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),r).getOrNull()},forwards:function(e,t,r,i){var a=wu(e,i,n);return o(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),r).getOrNull()}}}function Su(e){return e?{left:Wu(e.left),top:Wu(e.top),bottom:Wu(e.bottom),right:Wu(e.right),width:Wu(e.width),height:Wu(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}}function ku(e,t){return e=Su(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e}function _u(e,t,n){return 0<=e&&e<=Math.min(t.height,n.height)/2}function Ou(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&_u(t.top-e.bottom,e,t)}function Eu(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&_u(t.bottom-e.top,e,t)}function zu(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function Tu(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null}function Mu(e,t){if(Pn(e)&&e.hasChildNodes()){var n=e.childNodes;return n[(o=n.length-1,Math.min(Math.max(t,0),o))]}return e;var o}function Du(e){return"string"==typeof e&&768<=e.charCodeAt(0)&&qu.test(e)}function Au(e){return"createRange"in e?e.createRange():Ka.DOM.createRng()}function Nu(e){return e&&/[\r\n\t ]/.test(e)}function Bu(e){return e.setStart&&e.setEnd}function Ru(e){var t=e.startContainer,n=e.startOffset;if(Nu(e.toString())&&Ju(t.parentNode)&&Fn(t)){var o=t.data;return Nu(o[n-1])||Nu(o[n+1])?1:void 0}}function Hu(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom}function Lu(e,t){var n=ku(e,t);return n.width=1,n.right=n.left+1,n}au.languageLoad=!0,au.baseURL="",au.PluginManager=au(),au.ThemeManager=au();var Vu=function(e,t){var n=[];return V(Tn(e),(function(e){n=(n=t(e)?n.concat([e]):n).concat(Vu(e,t))})),n},Pu=f("mce-annotation"),Iu=f("data-mce-annotation"),Fu=f("data-mce-annotation-uid"),Uu=function(e,t){return gu(_t.fromDom(e.getBody()),"["+Fu()+'="'+t+'"]')},ju=0,Wu=Math.round,qu=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿-⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),Gu=Pn,$u=Fo,Xu=an("display","block table"),Ku=an("float","left right"),Yu=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}}(Gu,$u,O(Ku)),Ju=O(an("white-space","pre pre-line pre-wrap")),Qu=Fn,Zu=qn,ec=Ka.nodeIndex,tc=function(e,t){if(!(t<0&&Pn(e)&&e.hasChildNodes()))return Mu(e,t)},nc=function(e){var t=e.getClientRects(),n=0<t.length?Su(t[0]):Su(e.getBoundingClientRect());return!Bu(e)&&Zu(e)&&Hu(n)?function(e){var t=e.ownerDocument,n=Au(t),o=t.createTextNode(vr),r=e.parentNode;r.insertBefore(o,e),n.setStart(o,0),n.setEnd(o,1);var i=Su(n.getBoundingClientRect());return r.removeChild(o),i}(e):Hu(n)&&Bu(e)?function(e){var t=e.startContainer,n=e.endContainer,o=e.startOffset,r=e.endOffset;if(t===n&&Fn(n)&&0===o&&1===r){var i=e.cloneRange();return i.setEndAfter(n),nc(i)}return null}(e):n},oc=function(e,t,n){function o(){return n=n||function(e){function t(e){var t;0!==e.height&&(0<o.length&&(t=o[o.length-1],e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right)||o.push(e))}function n(e,n){var r=Au(e.ownerDocument);if(n<e.data.length){if(Du(e.data[n]))return o;if(Du(e.data[n-1])&&(r.setStart(e,n),r.setEnd(e,n+1),!Ru(r)))return t(Lu(nc(r),!1)),o}0<n&&(r.setStart(e,n-1),r.setEnd(e,n),Ru(r)||t(Lu(nc(r),!1))),n<e.data.length&&(r.setStart(e,n),r.setEnd(e,n+1),Ru(r)||t(Lu(nc(r),!0)))}var o=[],r=e.container(),i=e.offset();if(Qu(r))return n(r,i),o;if(Gu(r))if(e.isAtEnd()){var a=tc(r,i);Qu(a)&&n(a,a.data.length),Yu(a)&&!Zu(a)&&t(Lu(nc(a),!1))}else{if(a=tc(r,i),Qu(a)&&n(a,0),Yu(a)&&e.isAtEnd())return t(Lu(nc(a),!1)),o;var u=tc(e.container(),e.offset()-1);Yu(u)&&!Zu(u)&&(!Xu(u)&&!Xu(a)&&Yu(a)||t(Lu(nc(u),!1))),Yu(a)&&t(Lu(nc(a),!0))}return o}(oc(e,t))}return{container:f(e),offset:f(t),toRange:function(){var n=Au(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},getClientRects:o,isVisible:function(){return 0<o().length},isAtStart:function(){return Qu(e),0===t},isAtEnd:function(){return Qu(e)?t>=e.data.length:t>=e.childNodes.length},isEqual:function(n){return n&&e===n.container()&&t===n.offset()},getNode:function(n){return tc(e,n?t-1:t)}}};function rc(e,t){Fn(t)&&0===t.data.length&&e.remove(t)}function ic(e,t,n){var o,r,i,a,u,c,s;Wn(n)?(i=e,a=t,c=ve.from((u=n).firstChild),s=ve.from(u.lastChild),a.insertNode(u),c.each((function(e){return rc(i,e.previousSibling)})),s.each((function(e){return rc(i,e.nextSibling)}))):(o=e,t.insertNode(r=n),rc(o,r.previousSibling),rc(o,r.nextSibling))}function ac(e){return function(t){return e===t}}function uc(e){var t,n,o,r;return(os(e)?"text()":e.nodeName.toLowerCase())+"["+(o=ge(n=us(as(t=e)),ac(t),t),r=me(n=n.slice(0,o+1),(function(e,t,o){return os(t)&&os(n[o-1])&&e++,e}),0),ge(n=fe(n,rn([t.nodeName])),ac(t),t)-r+"]")}function cc(e,t){var n,o,r,i=[],a=t.container(),u=t.offset();return os(a)?n=function(e,t){for(;(e=e.previousSibling)&&os(e);)t+=e.data.length;return t}(a,u):(u>=(o=a.childNodes).length?(n="after",u=o.length-1):n="before",a=o[u]),i.push(uc(a)),r=fe(function(e,t){var n=[];for(t=t.parentNode;t!==e;t=t.parentNode)n.push(t);return n}(e,a),O(cn)),(i=i.concat(le(r,uc))).reverse().join("/")+","+n}function sc(e,t){if(!t)return null;var n=t.split(","),o=n[0].split("/"),r=1<n.length?n[1]:"before",i=me(o,(function(e,t){var n,o,r,i,a=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return a?("text()"===a[1]&&(a[1]="#text"),n=e,o=a[1],r=parseInt(a[2],10),i=fe(i=us(n),(function(e,t){return!os(e)||!os(i[t-1])})),(i=fe(i,rn([o])))[r]):null}),e);return i?os(i)?function(e,t){for(var n,o=e,r=0;os(o);){if(n=o.data.length,r<=t&&t<=r+n){e=o,t-=r;break}if(!os(o.nextSibling)){e=o,t=n;break}r+=n,o=o.nextSibling}return os(e)&&t>e.data.length&&(t=e.data.length),oc(e,t)}(i,parseInt(r,10)):(r="after"===r?is(i)+1:is(i),oc(i.parentNode,r)):null}function lc(e,t,n,o,r){var i,a=o[r?"startContainer":"endContainer"],u=o[r?"startOffset":"endOffset"],c=[],s=0,l=e.getRoot();for(Fn(a)?c.push(n?function(e,t,n){for(var o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Fn(r);r=r.previousSibling)o+=e(r.data).length;return o}(t,a,u):u):(u>=(i=a.childNodes).length&&i.length&&(s=1,u=Math.max(0,i.length-1)),c.push(e.nodeIndex(i[u],n)+s));a&&a!==l;a=a.parentNode)c.push(e.nodeIndex(a,n));return c}function fc(e,t,n){var o=0;return kt.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void o++})),o}function dc(e,t){var n,o=t?"start":"end",r=e[o+"Container"],i=e[o+"Offset"];Pn(r)&&"TR"===r.nodeName&&(r=(n=r.childNodes)[Math.min(t?i:i-1,n.length-1)])&&(i=t?0:r.childNodes.length,e["set"+(t?"Start":"End")](r,i))}function mc(e){return dc(e,!0),dc(e,!1),e}function gc(e,t){var n;return Pn(e)&&(e=Mu(e,t),cs(e))?e:Ro(e)?(n=(e=Fn(e)&&No(e)?e.parentNode:e).previousSibling,cs(n)?n:(n=e.nextSibling,cs(n)?n:void 0)):void 0}function hc(e,t,n){var o=n.getNode(),r=o?o.nodeName:null,i=n.getRng();if(cs(o)||"IMG"===r)return{name:r,index:fc(n.dom,r,o)};var a,u,c,s,l,f,d,m=gc((a=i).startContainer,a.startOffset)||gc(a.endContainer,a.endOffset);return m?{name:r=m.tagName,index:fc(n.dom,r,m)}:(f=(c=n).dom,(d={}).start=lc(f,u=e,s=t,l=i,!0),c.isCollapsed()||(d.end=lc(f,u,s,l,!1)),Io(l)&&(d.isFakeCaret=!0),d)}function pc(e,t,n){var o={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",o,""):e.create("span",o)}function vc(e,t){var n=e.dom,o=e.getRng(),r=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),u=a.nodeName;if("IMG"===u)return{name:u,index:fc(n,u,a)};var c=mc(o.cloneRange());return i||(c.collapse(!1),ic(n,c,pc(n,r+"_end",t))),(o=mc(o)).collapse(!0),ic(n,o,pc(n,r+"_start",t)),e.moveToBookmark({id:r,keep:!0}),{id:r}}function bc(e,t,n){var o=e.getParam(t,n);return-1===o.indexOf("=")?o:ue(e.getParam(t,"","hash"),e.id).getOr(n)}function yc(e){return e.getParam("content_security_policy","")}function xc(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}function wc(e){return e.getParam("forced_root_block_attrs",{})}function Cc(e){return e.getParam("automatic_uploads",!0,"boolean")}function Sc(e){return e.getParam("icons","","string")}function kc(e){return e.getParam("referrer_policy","","string")}function _c(e){return e.getParam("language","en","string")}function Oc(e){return e.getParam("indent_use_margin",!1)}function Ec(e){var t=e.getParam("font_css",[]);return y(t)?t:L(t.split(","),Je)}function zc(e){var t=e.getParam("object_resizing");return!1!==t&&!wt.iOS&&(v(t)?t:"table,img,figure.image,div,video,iframe")}function Tc(e){return e.getParam("event_root")}function Mc(e){return e.getParam("theme")}function Dc(e){return!1!==e.getParam("inline_boundaries")}function Ac(e){return e.getParam("plugins","","string")}function Nc(e){var t=e.parentNode;t&&t.removeChild(e)}function Bc(e){var t=xr(e);return{count:e.length-t.length,text:t}}function Rc(e){for(var t;-1!==(t=e.data.lastIndexOf(br));)e.deleteData(t,1)}function Hc(e,t){return ms(e),t}function Lc(e,t){var n,o=t.container(),r=(-1===(n=B(we(o.childNodes),e))?ve.none():ve.some(n)).map((function(e){return e<t.offset()?oc(o,t.offset()-1):t})).getOr(t);return ms(e),r}function Vc(e,t){return oc.isTextPosition(t)?(o=t,ds(n=e)&&o.container()===n?(a=Bc((r=n).data.substr(0,(i=o).offset())),u=Bc(r.data.substr(i.offset())),0<(a.text+u.text).length?(Rc(r),oc(r,i.offset()-a.count)):i):Hc(n,o)):(c=e,((s=t).container()===c.parentNode?Lc:Hc)(c,s));var n,o,r,i,a,u,c,s}function Pc(e,t,n){var o,r,i,a=ku(t.getBoundingClientRect(),n),u="BODY"===e.tagName?(o=e.ownerDocument.documentElement,r=e.scrollLeft||o.scrollLeft,e.scrollTop||o.scrollTop):(i=e.getBoundingClientRect(),r=e.scrollLeft-i.left,e.scrollTop-i.top);a.left+=r,a.right+=r,a.top+=u,a.bottom+=u,a.width=1;var c=t.offsetWidth-t.clientWidth;return 0<c&&(n&&(c*=-1),a.left+=c,a.right+=c),a}function Ic(){return gs.isIE()||gs.isEdge()||gs.isFirefox()}function Fc(e){return bs(e)||sn(e)&&Ic()}function Uc(e,t){for(var n;n=e(t);)if(!Ss(n))return n;return null}function jc(e,t,n,o,r){var i=new zo(e,o),a=ys(e)||Ss(e);if(t<0){if(a&&n(e=Uc(i.prev.bind(i),!0)))return e;for(;e=Uc(i.prev.bind(i),r);)if(n(e))return e}if(0<t){if(a&&n(e=Uc(i.next.bind(i),!0)))return e;for(;e=Uc(i.next.bind(i),r);)if(n(e))return e}return null}function Wc(e,t){for(;e&&e!==t;){if(ws(e))return e;e=e.parentNode}return null}function qc(e,t,n){return Wc(e.container(),n)===Wc(t.container(),n)}function Gc(e,t){if(!t)return null;var n=t.container(),o=t.offset();return ks(n)?n.childNodes[o+e]:null}function $c(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n}function Xc(e,t,n){for(var o,r,i=e?"previousSibling":"nextSibling";n&&n!==t;){var a=n[i];if(Cs(a)&&(a=a[i]),ys(a)||xs(a)){if(r=n,Wc(a,o=t)===Wc(r,o))return a;break}if(_s(a))break;n=n.parentNode}return null}function Kc(e,t,n){var o,r=_(Xc,!0,t),i=_(Xc,!1,t),a=n.startContainer,u=n.startOffset;if(No(a)){var c=(a=ks(a)?a:a.parentNode).getAttribute("data-mce-caret");if("before"===c&&Fc(o=a.nextSibling))return Os(o);if("after"===c&&Fc(o=a.previousSibling))return Es(o)}if(!n.collapsed)return n;if(Fn(a)){if(Cs(a)){if(1===e){if(o=i(a))return Os(o);if(o=r(a))return Es(o)}if(-1===e){if(o=r(a))return Es(o);if(o=i(a))return Os(o)}return n}if(kr(a)&&u>=a.data.length-1)return 1===e&&(o=i(a))?Os(o):n;if(Sr(a)&&u<=1)return-1===e&&(o=r(a))?Es(o):n;if(u===a.data.length)return(o=i(a))?Os(o):n;if(0===u)return(o=r(a))?Es(o):n}return n}function Yc(e,t){return ve.from(Gc(e?0:-1,t)).filter(ys)}function Jc(e,t,n){var o=Kc(e,t,n);return-1===e?oc.fromRangeStart(o):oc.fromRangeEnd(o)}function Qc(e){return ve.from(e.getNode()).map(_t.fromDom)}function Zc(e,t){for(;t=e(t);)if(t.isVisible())return t;return t}function es(e,t){var n=qc(e,t);return!(n||!qn(e.getNode()))||n}oc.fromRangeStart=function(e){return oc(e.startContainer,e.startOffset)},oc.fromRangeEnd=function(e){return oc(e.endContainer,e.endOffset)},oc.after=function(e){return oc(e.parentNode,ec(e)+1)},oc.before=function(e){return oc(e.parentNode,ec(e))},oc.isAbove=function(e,t){return dn(Z(t.getClientRects()),ee(e.getClientRects()),Ou).getOr(!1)},oc.isBelow=function(e,t){return dn(ee(t.getClientRects()),Z(e.getClientRects()),Eu).getOr(!1)},oc.isAtStart=function(e){return!!e&&e.isAtStart()},oc.isAtEnd=function(e){return!!e&&e.isAtEnd()},oc.isTextPosition=function(e){return!!e&&Fn(e.container())},oc.isElementPosition=function(e){return!1===oc.isTextPosition(e)};var ts,ns,os=Fn,rs=cn,is=Ka.nodeIndex,as=function(e){var t=e.parentNode;return rs(t)?as(t):t},us=function(e){return e?me(e.childNodes,(function(e,t){return rs(t)&&"BR"!==t.nodeName?e=e.concat(us(t)):e.push(t),e}),[]):[]},cs=Xn,ss=_(hc,d,!0),ls=Ka.DOM,fs=Pn,ds=Fn,ms=function(e){fs(e)&&Ro(e)&&(Ho(e)?e.removeAttribute("data-mce-caret"):Nc(e)),ds(e)&&(Rc(e),0===e.data.length&&Nc(e))},gs=dt().browser,hs=Xn,ps=Yn,vs=Kn,bs=function(e){return hs(e)||ps(e)},ys=Xn,xs=Yn,ws=an("display","block table table-cell table-caption list-item"),Cs=Ro,Ss=No,ks=Pn,_s=Fo,Os=_($c,!0),Es=_($c,!1);function zs(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null}function Ts(e,t){if(0<e){if(Fl(t.previousSibling)&&!Vl(t.previousSibling))return oc.before(t);if(Vl(t))return oc(t,0)}if(e<0){if(Fl(t.nextSibling)&&!Vl(t.nextSibling))return oc.after(t);if(Vl(t))return oc(t,t.data.length)}return e<0&&!Il(t)?oc.after(t):oc.before(t)}function Ms(e){return{next:function(t){return jl(ts.Forwards,t,e)},prev:function(t){return jl(ts.Backwards,t,e)}}}function Ds(e){return oc.isTextPosition(e)?0===e.offset():Fo(e.getNode())}function As(e){if(oc.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Fo(e.getNode(!0))}function Ns(e,t){return!oc.isTextPosition(e)&&!oc.isTextPosition(t)&&e.getNode()===t.getNode(!0)}function Bs(e,t,n){return Wl(e,t,n).bind((function(o){return qc(n,o,t)&&(r=n,i=o,e?!Ns(r,i)&&(oc.isTextPosition(a=r)||!qn(a.getNode()))&&As(r)&&Ds(i):!Ns(i,r)&&Ds(r)&&As(i))?Wl(e,t,o):ve.some(o);var r,i,a}))}function Rs(e,t){var n,o,r,i,a,u=e?t.firstChild:t.lastChild;return Fn(u)?ve.some(oc(u,e?0:u.data.length)):u?Fo(u)?ve.some(e?oc.before(u):qn(a=u)?oc.before(a):oc.after(a)):(o=t,r=u,i=(n=e)?oc.before(r):oc.after(r),Wl(n,o,i)):ve.none()}function Hs(e){return Pn(e)&&e.id===Yl}function Ls(e,t){for(;t&&t!==e;){if(t.id===Yl)return t;t=t.parentNode}return null}function Vs(e){return kt.isArray(e.start)}function Ps(e,t){return Pn(t)&&e.isBlock(t)&&!t.innerHTML&&!wt.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t}function Is(e,t,n){return!1===t.hasChildNodes()&&Ls(e,t)&&(r=n,i=(o=t).ownerDocument.createTextNode(br),o.appendChild(i),r.setStart(i,0),r.setEnd(i,0),1);var o,r,i}function Fs(e,t,n,o){var r,i,a,u,c=n[t?"start":"end"],s=e.getRoot();if(c){for(a=c[0],i=s,r=c.length-1;1<=r;r--){if(u=i.childNodes,Is(s,i,o))return 1;if(c[r]>u.length-1)return Is(s,i,o)||function(e){return Kl(i).fold(M,(function(t){return e.setStart(t.container(),t.offset()),e.setEnd(t.container(),t.offset()),!0}))}(o);i=u[c[r]]}3===i.nodeType&&(a=Math.min(c[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(c[0],i.childNodes.length)),t?o.setStart(i,a):o.setEnd(i,a)}return 1}function Us(e){return Fn(e)&&0<e.data.length}function js(e,t,n){var o,r,i,a,u,c,s=e.get(n.id+"_"+t),l=n.keep;if(s){if(o=s.parentNode,r="start"===t?l?s.hasChildNodes()?(o=s.firstChild,1):Us(s.nextSibling)?(o=s.nextSibling,0):Us(s.previousSibling)?(o=s.previousSibling,s.previousSibling.data.length):(o=s.parentNode,e.nodeIndex(s)+1):e.nodeIndex(s):l?s.hasChildNodes()?(o=s.firstChild,1):Us(s.previousSibling)?(o=s.previousSibling,s.previousSibling.data.length):(o=s.parentNode,e.nodeIndex(s)):e.nodeIndex(s),u=o,c=r,!l){for(a=s.previousSibling,i=s.nextSibling,kt.each(kt.grep(s.childNodes),(function(e){Fn(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));s=e.get(n.id+"_"+t);)e.remove(s,!0);a&&i&&a.nodeType===i.nodeType&&Fn(a)&&!wt.opera&&(r=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),u=a,c=r)}return ve.some(oc(u,c))}return ve.none()}function Ws(e,t){(function(e,t){var n,o,r,i,a,u,c,s,l,f,d,m,g=e.dom;if(t){if(Vs(t))return d=t,m=(f=g).createRng(),Fs(f,!0,d,m)&&Fs(f,!1,d,m)?ve.some(m):ve.none();if(v(t.start))return ve.some((c=t,s=(u=g).createRng(),l=sc(u.getRoot(),c.start),s.setStart(l.container(),l.offset()),l=sc(u.getRoot(),c.end),s.setEnd(l.container(),l.offset()),s));if(_e(t,"id"))return dn(a=js(r=g,"start",i=t),js(r,"end",i).or(a),(function(e,t){var n=r.createRng();return n.setStart(Ps(r,e.container()),e.offset()),n.setEnd(Ps(r,t.container()),t.offset()),n}));if(_e(t,"name"))return n=g,ve.from(n.select((o=t).name)[o.index]).map((function(e){var t=n.createRng();return t.selectNode(e),t}));if(_e(t,"rng"))return ve.some(t.rng)}return ve.none()})(e,t).each((function(t){e.setRng(t)}))}function qs(e){return Pn(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")}function Gs(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)}function $s(e){return!Gs(e)&&!Ql(e)}function Xs(e){return e.nodeType}function Ks(e,t,n){var o,r=n.startOffset,i=n.startContainer;if((i!==n.endContainer||!(o=i.childNodes[r])||!/^(IMG)$/.test(o.nodeName))&&Pn(i)){var a=i.childNodes,u=void 0;r<a.length?(i=a[r],u=new zo(i,e.getParent(i,e.isBlock))):(i=a[a.length-1],(u=new zo(i,e.getParent(i,e.isBlock))).next(!0));for(var c=u.current();c;c=u.next())if(Fn(c)&&!Zl(c))return n.setStart(c,0),t.setRng(n),0}}function Ys(e,t,n){if(e){var o=t?"nextSibling":"previousSibling";for(e=n?e:e[o];e;e=e[o])if(Pn(e)||!Zl(e))return e}}function Js(e,t){return Xs(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]}function Qs(e,t,n){return e.schema.isValidChild(t,n)}function Zs(e,t){return S(e)?e=e(t):u(t)&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e}function el(e,t){return e=""+((e=e||"").nodeName||e),t=""+((t=t||"").nodeName||t),e.toLowerCase()===t.toLowerCase()}function tl(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),""+("fontFamily"===n?t.replace(/[\'\"]/g,"").replace(/,\s+/g,","):t)}function nl(e,t,n){return tl(e,e.getStyle(t,n),n)}function ol(e,t){var n;return e.getParent(t,(function(t){return(n=e.getStyle(t,"text-decoration"))&&"none"!==n})),n}function rl(e,t,n){return e.getParents(t,n,e.getRoot())}function il(e,t){return H(e.formatter.get(t),(function(e){function t(e){return 1<e.length&&"%"===e.charAt(0)}return H(["styles","attributes"],(function(n){return ue(e,n).exists((function(e){var n,o;return H(y(e)?e:(n=d,o=[],ne(e,(function(e,t){o.push(n(e,t))})),o),t)}))}))}))}function al(e){return ce(e,"block")}function ul(e){return ce(e,"selector")}function cl(e){return ce(e,"inline")}function sl(e){return ul(e)&&!1!==e.expand&&!cl(e)}function ll(e,t){for(var n=t;n;){if(Pn(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t}function fl(e,t,n,o){for(var r=t.data,i=n;e?0<=i:i<r.length;e?i--:i++)if(o(r.charAt(i)))return e?i+1:i;return-1}function dl(e,t,n){return fl(e,t,n,(function(e){return Ql(e)||Gs(e)}))}function ml(e,t,n){return fl(e,t,n,$s)}function gl(e,t,n,o,r,i){function a(t,n,o){var i=Cu(e),a=r?i.backwards:i.forwards;return ve.from(a(t,n,(function(e,t){return ef(e.parentNode)?-1:o(r,u=e,t)}),c))}var u,c=e.getParent(n,e.isBlock)||t;return a(n,o,dl).bind((function(e){return i?a(e.container,e.offset+(r?-1:0),ml):ve.some(e)})).orThunk((function(){return u?ve.some({container:u,offset:r?0:u.length}):ve.none()}))}function hl(e,t,n,o,r){Fn(o)&&Be(o.data)&&o[r]&&(o=o[r]);for(var i=tf(e,o),a=0;a<i.length;a++)for(var c=0;c<t.length;c++){var s=t[c];if((!u(s.collapsed)||s.collapsed===n.collapsed)&&ul(s)&&e.is(i[a],s.selector))return i[a]}return o}function pl(e,t,n,o){var r,i=n,a=e.dom,u=a.getRoot(),c=t[0];if((i=al(c)?c.wrapper?null:a.getParent(n,c.block,u):i)||(r=a.getParent(n,"LI,TD,TH"),i=a.getParent(Fn(n)?n.parentNode:n,(function(t){return t!==u&&of(e,t)}),r)),!(i=i&&al(c)&&c.wrapper&&tf(a,i,"ul,ol").reverse()[0]||i))for(i=n;i[o]&&!a.isBlock(i[o])&&!el(i=i[o],"br"););return i||n}function vl(e,t,n,o,r){var i,a=n,u=r?"previousSibling":"nextSibling",c=e.getRoot();if(Fn(n)&&!nf(n)&&(r?0<o:o<n.data.length))return n;for(;;){if(!t[0].block_expand&&e.isBlock(a))return a;for(var s=a[u];s;s=s[u]){var l=Fn(s)&&!rf(e,c,s,u);if(!ef(s)&&(!qn(i=s)||!i.getAttribute("data-mce-bogus")||i.nextSibling)&&!nf(s,l))return a}if(a===c||a.parentNode===c){n=a;break}a=a.parentNode}return n}function bl(e){return ef(e.parentNode)||ef(e)}function yl(e,t,n,o){void 0===o&&(o=!1);var r=t.startContainer,i=t.startOffset,a=t.endContainer,u=t.endOffset,c=e.dom,s=n[0];return Pn(r)&&r.hasChildNodes()&&(r=Mu(r,i),Fn(r)&&(i=0)),Pn(a)&&a.hasChildNodes()&&(a=Mu(a,t.collapsed?u:u-1),Fn(a)&&(u=a.nodeValue.length)),r=ll(c,r),a=ll(c,a),bl(r)&&(r=ef(r)?r:r.parentNode,r=t.collapsed?r.previousSibling||r:r.nextSibling||r,Fn(r)&&(i=t.collapsed?r.length:0)),bl(a)&&(a=ef(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Fn(a)&&(u=t.collapsed?0:a.length)),t.collapsed&&(gl(c,e.getBody(),r,i,!0,o).each((function(e){var t=e.container,n=e.offset;r=t,i=n})),gl(c,e.getBody(),a,u,!1,o).each((function(e){var t=e.container,n=e.offset;a=t,u=n}))),(cl(s)||s.block_expand)&&(cl(s)&&Fn(r)&&0!==i||(r=vl(c,n,r,i,!0)),cl(s)&&Fn(a)&&u!==a.nodeValue.length||(a=vl(c,n,a,u,!1))),sl(s)&&(r=hl(c,n,t,r,"previousSibling"),a=hl(c,n,t,a,"nextSibling")),(al(s)||ul(s))&&(r=pl(e,n,r,"previousSibling"),a=pl(e,n,a,"nextSibling"),al(s)&&(c.isBlock(r)||(r=vl(c,n,r,i,!0)),c.isBlock(a)||(a=vl(c,n,a,u,!1)))),Pn(r)&&(i=c.nodeIndex(r),r=r.parentNode),Pn(a)&&(u=c.nodeIndex(a)+1,a=a.parentNode),{startContainer:r,startOffset:i,endContainer:a,endOffset:u}}function xl(e,t,n){function o(e){var t=e[0];Fn(t)&&t===c&&u>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===s&&0<e.length&&n===l&&Fn(n)&&e.splice(e.length-1,1),e}function r(e,t,n){for(var o=[];e&&e!==n;e=e[t])o.push(e);return o}function i(t,n){return e.getParent(t,(function(e){return e.parentNode===n}),n)}function a(e,t,i){var a=i?"nextSibling":"previousSibling",u=e;for(u.parentNode;u&&u!==t;u=c){var c=u.parentNode,s=r(u===e?u:u[a],a);s.length&&(i||s.reverse(),n(o(s)))}}var u=t.startOffset,c=Mu(t.startContainer,u),s=t.endOffset,l=Mu(t.endContainer,s-1);if(c===l)return n(o([c]));var f=e.findCommonAncestor(c,l);if(e.isChildOf(c,l))return a(c,f,!0);if(e.isChildOf(l,c))return a(l,f);var d=i(c,f)||c,m=i(l,f)||l;a(c,d,!0);var g=r(d===c?d:d.nextSibling,"nextSibling",m===l?m.nextSibling:m);g.length&&n(o(g)),a(l,m)}function wl(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t}function Cl(e,t){var n=gu(t,"td[data-mce-selected],th[data-mce-selected]");return 0<n.length?n:F($(e,(function(e){var t=Tu(e);return t?[_t.fromDom(t)]:[]})),gr)}function Sl(e){return Cl(wl(e.selection.getSel()),_t.fromDom(e.getBody()))}function kl(e,t){return po(e,"table",t)}function _l(e,t){return dn((r=t.startContainer,i=t.startOffset,Fn(r)?0===i?ve.some(_t.fromDom(r)):ve.none():ve.from(r.childNodes[i]).map(_t.fromDom)),(n=t.endContainer,o=t.endOffset,Fn(n)?o===n.data.length?ve.some(_t.fromDom(n)):ve.none():ve.from(n.childNodes[o-1]).map(_t.fromDom)),(function(t,n){var o=q(af(e),_(Ue,t)),r=q(uf(e),_(Ue,n));return o.isSome()&&r.isSome()})).getOr(!1);var n,o,r,i}function Ol(e,t,n,o){var r=n,i=new zo(n,r),a=ae(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!R(["td","th","table"],t.toLowerCase())}));do{if(Fn(n)&&0!==kt.trim(n.nodeValue).length)return o?t.setStart(n,0):t.setEnd(n,n.nodeValue.length),0;if(a[n.nodeName])return o?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n),0}while(n=o?i.next():i.prev());"BODY"===r.nodeName&&(o?t.setStart(r,0):t.setEnd(r,r.childNodes.length))}function El(e){var t=e.selection.getSel();return t&&0<t.rangeCount}function zl(e,t){var n=Sl(e);0<n.length?V(n,(function(n){var o=n.dom,r=e.dom.createRng();r.setStartBefore(o),r.setEndAfter(o),t(r,!0)})):t(e.selection.getRng(),!1)}function Tl(e,t,n){var o=vc(e,t);n(o),e.moveToBookmark(o)}function Ml(e){return cf.get(e)}function Dl(e,t,n,o){var r=t.uid,i=void 0===r?pu("mce-annotation"):r,a=function(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}(t,["uid"]),u=_t.fromTag("span",e);du(u,Pu()),hn(u,""+Fu(),i),hn(u,""+Iu(),n);var c,s=o(i,a),l=s.attributes,f=s.classes,d=void 0===f?[]:f;return pn(u,void 0===l?{}:l),c=u,V(d,(function(e){du(c,e)})),u}function Al(e){var t,n,o,r=(t={},{register:function(e,n){t[e]={name:e,settings:n}},lookup:function(e){return ue(t,e).map((function(e){return e.settings}))}});o=r,(n=e).on("init",(function(){n.serializer.addNodeFilter("span",(function(e){V(e,(function(e){ve.from(e.attr(Iu())).bind(o.lookup).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}));var i=function(e){function t(){return{listeners:[],previous:uu()}}function n(e,t){o(e,(function(e){return t(e),e}))}function o(e,n){var o=r.get(),i=n(ue(o,e).getOrThunk(t));o[e]=i,r.set(o)}var r=tu({}),i=su((function(){var t=r.get();V(J(Ce(t)),(function(t){o(t,(function(o){var r=o.previous.get();return hu(e,ve.some(t)).fold((function(){var e;r.isSome()&&(n(e=t,(function(t){V(t.listeners,(function(t){return t(!1,e)}))})),o.previous.clear())}),(function(e){var t,i,a,u=e.uid,c=e.name,s=e.elements;fn(r,u)||(i=u,a=s,n(t=c,(function(e){V(e.listeners,(function(e){return e(!0,t,{uid:i,nodes:L(a,(function(e){return e.dom}))})}))})),o.previous.set(u))})),{previous:o.previous,listeners:o.listeners}}))}))}),30);return e.on("remove",(function(){i.cancel()})),e.on("NodeChange",(function(){i.throttle()})),{addListener:function(e,t){o(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))}}}(e);return{register:function(e,t){r.register(e,t)},annotate:function(t,n){r.lookup(t).each((function(o){var r,i,a,u;i=t,a=o,u=n,(r=e).undoManager.transact((function(){var e,t,n,o,c=r.selection,s=c.getRng(),l=0<Sl(r).length;s.collapsed&&!l&&(n=yl(e=r,t=s,[{inline:"span"}]),t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)),c.getRng().collapsed&&!l?(vu(o=Dl(r.getDoc(),u,i,a.decorate),vr),c.getRng().insertNode(o.dom),c.select(o.dom)):Tl(c,!1,(function(){zl(r,(function(e){!function(e,t,n,o,r){function i(){s.clear()}function a(e){V(e,l)}var u=[],c=Dl(e.getDoc(),r,n,o),s=uu(),l=function(t){var n,o,r,l,f,d;switch(r=e,f="span",d=Ot(l=t),At(l).fold((function(){return"skipping"}),(function(e){return"br"===d||On(n=l)&&Ml(n)===br?"valid":_n(t=l)&&mu(t,Pu())?"existing":Hs(l.dom)?"caret":Qs(r,f,d)&&Qs(r,Ot(e),f)?"valid":"invalid-child";var t,n}))){case"invalid-child":i(),a(Tn(t)),i();break;case"valid":Wt(n=t,o=s.get().getOrThunk((function(){var e=yu(c);return u.push(e),s.set(e),e}))),Nn(o,n)}};xl(e.dom,t,(function(e){i(),a(L(e,_t.fromDom))}))}(r,e,i,a.decorate,u)}))}))}))}))},annotationChanged:function(e,t){i.addListener(e,t)},remove:function(t){hu(e,ve.some(t)).each((function(e){V(e.elements,Kt)}))},getAll:function(t){var n,o,r;return oe((n=t,o=gu(_t.fromDom(e.getBody()),"["+Iu()+'="'+n+'"]'),r={},V(o,(function(e){var t=vn(e,Fu()),n=ue(r,t).getOr([]);r[t]=n.concat([e])})),r),(function(e){return L(e,(function(e){return e.dom}))}))}}}function Nl(e){return{getBookmark:_(Jl,e),moveToBookmark:_(Ws,e)}}function Bl(e){return Mr(e)||!!Nr(t=e)&&!0!==j(we(t.getElementsByTagName("*")),(function(e,t){return e||_r(t)}),!1);var t}(ns=ts=ts||{})[ns.Backwards=-1]="Backwards",ns[ns.Forwards=1]="Forwards";var Rl,Hl,Ll=Xn,Vl=Fn,Pl=Pn,Il=qn,Fl=Fo,Ul=Uo,jl=function(e,t,n){var o,r,i;if(!Pl(n)||!t)return null;if(t.isEqual(oc.after(n))&&n.lastChild){if(i=oc.after(n.lastChild),e<0&&Fl(n.lastChild)&&Pl(n.lastChild))return Il(n.lastChild)?oc.before(n.lastChild):i}else i=t;var a,u,c,s=i.container(),l=i.offset();if(Vl(s)){if(e<0&&0<l)return oc(s,--l);if(0<e&&l<s.length)return oc(s,++l);o=s}else{if(e<0&&0<l&&(f=zs(s,l-1),Fl(f)))return!Bl(f)&&(r=jc(f,e,Ul,f))?Vl(r)?oc(r,r.data.length):oc.after(r):Vl(f)?oc(f,f.data.length):oc.before(f);if(0<e&&l<s.childNodes.length&&(f=zs(s,l),Fl(f)))return Il(f)?(a=n,(c=(u=f).nextSibling)&&Fl(c)?Vl(c)?oc(c,0):oc.before(c):jl(ts.Forwards,oc.after(u),a)):!Bl(f)&&(r=jc(f,e,Ul,f))?Vl(r)?oc(r,0):oc.before(r):Vl(f)?oc(f,0):oc.after(f);o=f||i.getNode()}if((0<e&&i.isAtEnd()||e<0&&i.isAtStart())&&(o=jc(o,e,D,n,!0),Ul(o,n)))return Ts(e,o);var f=jc(o,e,Ul,n),d=he(F(function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n}(s,n),Ll));return!d||f&&d.contains(f)?f?Ts(e,f):null:0<e?oc.after(d):oc.before(d)},Wl=function(e,t,n){var o=Ms(t);return ve.from(e?o.next(n):o.prev(n))},ql=function(e,t,n,o){return Bs(e,t,n).bind((function(n){return o(n)?ql(e,t,n,o):ve.some(n)}))},Gl=_(Wl,!0),$l=_(Wl,!1),Xl=_(Rs,!0),Kl=_(Rs,!1),Yl="_mce_caret",Jl=function(e,t,n){return 2===t?hc(xr,n,e):3===t?(r=(o=e).getRng(),{start:cc(o.dom.getRoot(),oc.fromRangeStart(r)),end:cc(o.dom.getRoot(),oc.fromRangeEnd(r))}):t?{rng:e.getRng()}:vc(e,!1);var o,r},Ql=(vr,function(e){return" "===e}),Zl=function(e,t){return void 0===t&&(t=!1),!(!u(e)||!Fn(e))&&jo(t?e.data.replace(/ /g," "):e.data)},ef=qs,tf=rl,nf=Zl,of=Js,rf=function(e,t,n,o){var r=n.parentNode;return!u(n[o])&&(!(r!==t&&!a(r)&&!e.isBlock(r))||rf(e,t,r,o))},af=function(e){return Vt(e).fold(f([e]),(function(t){return[e].concat(af(t))}))},uf=function(e){return Pt(e).fold(f([e]),(function(t){return"br"===Ot(t)?Nt(t).map((function(t){return[e].concat(uf(t))})).getOr([]):[e].concat(uf(t))}))},cf=(Rl=On,{get:function(e){if(!Rl(e))throw new Error("Can only get text value of a text node");return Hl(e).getOr("")},getOption:Hl=function(e){return Rl(e)?ve.from(e.dom.nodeValue):ve.none()},set:function(e,t){if(!Rl(e))throw new Error("Can only set raw text value of a text node");e.dom.nodeValue=t}});function sf(e,t){for(;t&&t!==e;){if($n(t)||Xn(t))return t;t=t.parentNode}return null}function lf(e,t,n){if(!n.collapsed){if(wt.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var o=n.startContainer.childNodes[n.startOffset];if(Pn(o))return H(o.getClientRects(),(function(n){return zu(n,e,t)}))}return H(n.getClientRects(),(function(n){return zu(n,e,t)}))}}function ff(e,t,n){return e.fire(t,n)}function df(e,t,n,o){return e.fire("FormatApply",{format:t,node:n,vars:o})}function mf(e,t,n,o){return e.fire("FormatRemove",{format:t,node:n,vars:o})}function gf(e,t){function n(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))}function o(e){return Yn(e)||M.hasClass(e,"mce-preview-object")}function r(e){var o=e.target;!function(e,t){if("longpress"!==e.type&&0!==e.type.indexOf("touch"))return n(e.target)&&!lf(e.clientX,e.clientY,t);var o=e.touches[0];return n(e.target)&&!lf(o.clientX,o.clientY,t)}(e,t.selection.getRng())||e.isDefaultPrevented()||t.selection.select(o)}function i(e){return M.is(e,"figure.image")?[e.querySelector("img")]:M.hasClass(e,"mce-preview-object")&&u(e.firstElementChild)?[e,e.firstElementChild]:[e]}function a(e){var n=zc(t);return!!n&&"false"!==e.getAttribute("data-mce-resize")&&e!==t.getBody()&&(M.hasClass(e,"mce-preview-object")?Ie(_t.fromDom(e.firstElementChild),n):Ie(_t.fromDom(e),n))}function c(e,n,o){u(o)&&V(i(e),(function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?M.setStyle(e,n,o):M.setAttrib(e,n,""+o)}))}function s(e,t,n){c(e,"width",t),c(e,"height",n)}function l(e){var r,i,a,u,c,l,f=e.screenX-y,d=e.screenY-x;_=f*v[2]+w,O=d*v[3]+C,_=_<5?5:_,O=O<5?5:O,((n(g)||o(g))&&!1!==t.getParam("resize_img_proportional",!0,"boolean")?!Ef.modifierPressed(e):Ef.modifierPressed(e))&&(B(f)>B(d)?(O=R(_*S),_=R(O/S)):(_=R(O/S),O=R(_*S))),s(h,_,O),r=v.startPos.x+f,i=v.startPos.y+d,M.setStyles(p,{left:r=0<r?r:0,top:i=0<i?i:0,display:"block"}),p.innerHTML=_+" × "+O,v[2]<0&&h.clientWidth<=_&&M.setStyle(h,"left",void 0+(w-_)),v[3]<0&&h.clientHeight<=O&&M.setStyle(h,"top",void 0+(C-O)),(f=H.scrollWidth-E)+(d=H.scrollHeight-z)!=0&&M.setStyles(p,{left:r-f,top:i-d}),k||(a=g,u=w,c=C,l="corner-"+v.name,t.fire("ObjectResizeStart",{target:a,width:u,height:c,origin:l}),k=!0)}function f(n){function o(e,t){if(e)do{if(e===t)return 1}while(e=e.parentNode)}var r;k||t.removed||(D(M.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(T)})),r="mousedown"===n.type?n.target:e.getNode(),o(r=M.$(r).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],H)&&(m(),o(e.getStart(!0),r)&&o(e.getEnd(!0),r))?I(r):F())}function d(e){return zf(sf(t.getBody(),e))}function m(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}}var g,h,p,v,b,y,x,w,C,S,k,_,O,E,z,T="data-mce-selected",M=t.dom,D=kt.each,A=t.getDoc(),N=document,B=Math.abs,R=Math.round,H=t.getBody(),L={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},P=function(){var e,n,o,r,i=k;k=!1,i&&(c(g,"width",_),c(g,"height",O)),M.unbind(A,"mousemove",l),M.unbind(A,"mouseup",P),N!==A&&(M.unbind(N,"mousemove",l),M.unbind(N,"mouseup",P)),M.remove(h),M.remove(p),M.remove(b),I(g),i&&(e=g,n=_,o=O,r="corner-"+v.name,t.fire("ObjectResized",{target:e,width:n,height:o,origin:r}),M.setAttrib(g,"style",M.getAttrib(g,"style"))),t.nodeChanged()},I=function(e){U();var n=M.getPos(e,H),r=n.x,u=n.y,c=e.getBoundingClientRect(),f=c.width||c.right-c.left,d=c.height||c.bottom-c.top;g!==e&&(F(),g=e,_=O=0);var m=t.fire("ObjectSelected",{target:e}),k=M.getAttrib(g,T,"1");a(e)&&!m.isDefaultPrevented()?D(L,(function(e,t){var n=M.get("mceResizeHandle"+t);n&&M.remove(n),n=M.add(H,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===wt.ie&&(n.contentEditable=!1),M.bind(n,"mousedown",(function(n){var a,c,m;n.stopImmediatePropagation(),n.preventDefault(),a=n,m=i(g)[0],y=a.screenX,x=a.screenY,w=m.clientWidth,C=m.clientHeight,S=C/w,(v=e).name=t,v.startPos={x:f*e[0]+r,y:d*e[1]+u},E=H.scrollWidth,z=H.scrollHeight,b=M.add(H,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),M.setStyles(b,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),h=o(c=g)?M.create("img",{src:wt.transparentSrc}):c.cloneNode(!0),M.addClass(h,"mce-clonedresizable"),M.setAttrib(h,"data-mce-bogus","all"),h.contentEditable="false",M.setStyles(h,{left:r,top:u,margin:0}),s(h,f,d),h.removeAttribute(T),H.appendChild(h),M.bind(A,"mousemove",l),M.bind(A,"mouseup",P),N!==A&&(M.bind(N,"mousemove",l),M.bind(N,"mouseup",P)),p=M.add(H,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},w+" × "+C)})),e.elm=n,M.setStyles(n,{left:f*e[0]+r-n.offsetWidth/2,top:d*e[1]+u-n.offsetHeight/2})})):F(),M.getAttrib(g,T)||g.setAttribute(T,k)},F=function(){U(),g&&g.removeAttribute(T),ne(L,(function(e,t){var n=M.get("mceResizeHandle"+t);n&&(M.unbind(n),M.remove(n))}))},U=function(){ne(L,(function(e){e.elm&&(M.unbind(e.elm),delete e.elm)}))};return t.on("init",(function(){var e;m(),(wt.browser.isIE()||wt.browser.isEdge())&&(t.on("mousedown click",(function(e){var n=e.target,o=n.nodeName;k||!/^(TABLE|IMG|HR)$/.test(o)||d(n)||(2!==e.button&&t.selection.select(n,"TABLE"===o),"mousedown"===e.type&&t.nodeChanged())})),M.bind(H,"mscontrolselect",e=function(e){function n(e){Oo.setEditorTimeout(t,(function(){return t.selection.select(e)}))}if(d(e.target)||Yn(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))}),t.on("remove",(function(){return M.unbind(H,"mscontrolselect",e)})));var n=Oo.throttle((function(e){t.composing||f(e)}));t.on("nodechange ResizeEditor ResizeWindow ResizeContent drop FullscreenStateChanged",n),t.on("keyup compositionend",(function(e){g&&"TABLE"===g.nodeName&&n(e)})),t.on("hide blur",F),t.on("contextmenu longpress",r,!0)})),t.on("remove",U),{isResizable:a,showResizeRect:I,hideResizeRect:F,updateResizeRect:f,destroy:function(){g=h=b=null}}}function hf(e){return $n(e)||Xn(e)}function pf(e,t,n){var o,r,i,a,u,c=n;if(c.caretPositionFromPoint)(r=c.caretPositionFromPoint(e,t))&&((o=n.createRange()).setStart(r.offsetNode,r.offset),o.collapse(!0));else if(c.caretRangeFromPoint)o=c.caretRangeFromPoint(e,t);else if(c.body.createTextRange){o=c.body.createTextRange();try{o.moveToPoint(e,t),o.collapse(!0)}catch(r){o=function(e,t,n){var o,r=n.elementFromPoint(e,t),i=n.body.createTextRange();if(r&&"HTML"!==r.tagName||(r=n.body),i.moveToElementText(r),0<(o=(o=kt.toArray(i.getClientRects())).sort((function(e,n){return(e=Math.abs(Math.max(e.top-t,e.bottom-t)))-Math.abs(Math.max(n.top-t,n.bottom-t))}))).length){t=(o[0].bottom+o[0].top)/2;try{return i.moveToPoint(e,t),i.collapse(!0),i}catch(e){}}return null}(e,t,n)}return i=o,a=n.body,u=i&&i.parentElement?i.parentElement():null,Xn(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(u,a,hf))?null:i}return o}function vf(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}function bf(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)}function yf(e){return e&&"TABLE"===e.nodeName}function xf(e,t,n){for(var o=new zo(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());t=o[n?"prev":"next"]();)if(qn(t))return 1}function wf(e,t,n,o,r){var i,a,u=e.getRoot(),c=e.schema.getNonEmptyElements(),s=e.getParent(r.parentNode,e.isBlock)||u;if(o&&qn(r)&&t&&e.isEmpty(s))return ve.some(oc(r.parentNode,e.nodeIndex(r)));for(var l,f,d=new zo(r,s);a=d[o?"prev":"next"]();){if("false"===e.getContentEditableParent(a)||(f=u,Ro(l=a)&&!1===bf(l,f,Hs)))return ve.none();if(Fn(a)&&0<a.nodeValue.length)return!1===bf(a,u,(function(e){return"A"===e.nodeName}))?ve.some(oc(a,o?a.nodeValue.length:0)):ve.none();if(e.isBlock(a)||c[a.nodeName.toLowerCase()])return ve.none();i=a}return n&&i?ve.some(oc(i,0)):ve.none()}function Cf(e,t,n,o){var r,i=e.getRoot(),a=!1,u=o[(n?"start":"end")+"Container"],c=o[(n?"start":"end")+"Offset"],s=Pn(u)&&c===u.childNodes.length,l=e.schema.getNonEmptyElements(),f=n;if(Ro(u))return ve.none();if(Pn(u)&&c>u.childNodes.length-1&&(f=!1),jn(u)&&(u=i,c=0),u===i){if(f&&(d=u.childNodes[0<c?c-1:0])){if(Ro(d))return ve.none();if(l[d.nodeName]||yf(d))return ve.none()}if(u.hasChildNodes()){if(c=Math.min(!f&&0<c?c-1:c,u.childNodes.length-1),u=u.childNodes[c],c=Fn(u)&&s?u.data.length:0,!t&&u===i.lastChild&&yf(u))return ve.none();if(function(e,t){for(;t&&t!==e;){if(Xn(t))return 1;t=t.parentNode}}(i,u)||Ro(u))return ve.none();if(u.hasChildNodes()&&!1===yf(u)){var d=u,m=new zo(u,i);do{if(Xn(d)||Ro(d)){a=!1;break}if(Fn(d)&&0<d.nodeValue.length){c=f?0:d.nodeValue.length,u=d,a=!0;break}if(l[d.nodeName.toLowerCase()]&&(!(r=d)||!/^(TD|TH|CAPTION)$/.test(r.nodeName))){c=e.nodeIndex(d),u=d.parentNode,f||c++,a=!0;break}}while(d=f?m.next():m.prev())}}}return t&&(Fn(u)&&0===c&&wf(e,s,t,!0,u).each((function(e){u=e.container(),c=e.offset(),a=!0})),Pn(u)&&(!(d=(d=u.childNodes[c])||u.childNodes[c-1])||!qn(d)||d.previousSibling&&"A"===d.previousSibling.nodeName||xf(e,d,!1)||xf(e,d,!0)||wf(e,s,t,!0,d).each((function(e){u=e.container(),c=e.offset(),a=!0})))),f&&!t&&Fn(u)&&c===u.nodeValue.length&&wf(e,s,t,!1,u).each((function(e){u=e.container(),c=e.offset(),a=!0})),a?ve.some(oc(u,c)):ve.none()}function Sf(e,t){var n=t.collapsed,o=t.cloneRange(),r=oc.fromRangeStart(t);return Cf(e,n,!0,o).each((function(e){n&&oc.isAbove(r,e)||o.setStart(e.container(),e.offset())})),n||Cf(e,n,!1,o).each((function(e){o.setEnd(e.container(),e.offset())})),n&&o.collapse(!0),vf(t,o)?ve.none():ve.some(o)}function kf(e,t){return e.splitText(t)}function _f(e){var t=e.startContainer,n=e.startOffset,o=e.endContainer,r=e.endOffset;return t===o&&Fn(t)?0<n&&n<t.nodeValue.length&&(t=(o=kf(t,n)).previousSibling,n<r?(t=o=kf(o,r-=n).previousSibling,r=o.nodeValue.length,n=0):r=0):(Fn(t)&&0<n&&n<t.nodeValue.length&&(t=kf(t,n),n=0),Fn(o)&&0<r&&r<o.nodeValue.length&&(r=(o=kf(o,r).previousSibling).nodeValue.length)),{startContainer:t,startOffset:n,endContainer:o,endOffset:r}}function Of(e){return{walk:function(t,n){return xl(e,t,n)},split:_f,normalize:function(t){return Sf(e,t).fold(M,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))}}}Nl.isBookmarkNode=qs;var Ef={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||Ef.metaKeyPressed(e)},metaKeyPressed:function(e){return wt.mac?e.metaKey:e.ctrlKey&&!e.altKey}},zf=Xn;Of.compareRanges=vf,Of.getCaretRangeFromPoint=pf,Of.getSelectedNode=Tu,Of.getNode=Mu;var Tf,Mf,Df=(Tf="height",Mf=function(e){var t=e.dom;return Rn(e)?t.getBoundingClientRect().height:t.offsetHeight},{set:function(e,t){if(!k(t)&&!t.match(/^[0-9]+$/))throw new Error(Tf+".set accepts only positive integer values. Value was "+t);var n=e.dom;mn(n)&&(n.style[Tf]=t+"px")},get:Af,getOuter:Af,aggregate:Nf,max:function(e,t,n){var o=Nf(e,n);return o<t?t-o:0}});function Af(e){var t=Mf(e);if(t<=0||null===t){var n=xn(e,Tf);return parseFloat(n)||0}return t}function Nf(e,t){return j(t,(function(t,n){var o=xn(e,n),r=void 0===o?0:parseInt(o,10);return isNaN(r)?t:t+r}),0)}function Bf(e){return"textarea"===Ot(e)}function Rf(e,t){var n=function(e){var t=e.dom.ownerDocument,n=t.body,o=t.defaultView,r=t.documentElement;if(n===e.dom)return Ln(n.offsetLeft,n.offsetTop);var i=Yt(null==o?void 0:o.pageYOffset,r.scrollTop),a=Yt(null==o?void 0:o.pageXOffset,r.scrollLeft),u=Yt(r.clientTop,n.clientTop),c=Yt(r.clientLeft,n.clientLeft);return Vn(e).translate(a-c,i-u)}(e),o=Df.get(e);return{element:e,bottom:n.top+o,height:o,pos:n,cleanup:t}}function Hf(e,t,n,o){Cd(e,(function(r,i){return wd(e,t,n,o)}),n)}function Lf(e,t,n,o,r){var i={elm:o.element.dom,alignToTop:r};e.fire("ScrollIntoView",i).isDefaultPrevented()||(n(t,Jt(t).top,o,r),e.fire("AfterScrollIntoView",i))}function Vf(e,t,n,o){var r=_t.fromDom(e.getDoc());Lf(e,r,n,Rf(_t.fromDom(t),c),o)}function Pf(e,t,n,o){var r,i=e.pos;n?Qt(i.left,i.top,o):(r=i.top-t+e.height,Qt(i.left,r,o))}function If(e,t,n,o,r){var i=n+t,a=o.pos.top,u=o.bottom,c=n<=u-a;a<t?Pf(o,n,!1!==r,e):i<a?Pf(o,n,c?!1!==r:!0===r,e):i<u&&!c&&Pf(o,n,!0===r,e)}function Ff(e,t,n,o){If(e,t,e.dom.defaultView.innerHeight,n,o)}function Uf(e,t,n,o){If(e,t,e.dom.defaultView.innerHeight,n,o);var r,i,a,u,c,s,l,f=(r=n.element,u=Jt(_t.fromDom(document)),a=(i=xd).owner(r),c=yd(i,a),s=Vn(r),l=U(c,(function(e,t){var n=Vn(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0}),Ln(l.left+s.left+u.left,l.top+s.top+u.top)),d=tn(window);f.top<d.y?Zt(n.element,!1!==o):f.top>d.bottom&&Zt(n.element,!0===o)}function jf(e,t,n){return Hf(e,Ff,t,n)}function Wf(e,t,n){return Vf(e,t,Ff,n)}function qf(e,t,n){return Hf(e,Uf,t,n)}function Gf(e,t,n){return Vf(e,t,Uf,n)}function $f(e,t,n){(e.inline?jf:qf)(e,t,n)}function Xf(e){var t=An(e).dom;return e.dom===t.activeElement}function Kf(e){return void 0===e&&(e=_t.fromDom(document)),ve.from(e.dom.activeElement).map(_t.fromDom)}function Yf(e,t){var n=On(t)?Ml(t).length:Tn(t).length+1;return n<e?n:e<0?0:e}function Jf(e){return Od.range(e.start,Yf(e.soffset,e.start),e.finish,Yf(e.foffset,e.finish))}function Qf(e,t){return!on(t.dom)&&(je(e,t)||Ue(e,t))}function Zf(e){return function(t){return Qf(e,t.start)&&Qf(e,t.finish)}}function ed(e){return!0===e.inline||Ed.isIE()}function td(e){return Od.range(_t.fromDom(e.startContainer),e.startOffset,_t.fromDom(e.endContainer),e.endOffset)}function nd(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),ve.some(t)}catch(e){return ve.none()}}function od(e){var t,n,o=ed(e)?((n=Dt(t=_t.fromDom(e.getBody())).dom.getSelection())&&0!==n.rangeCount?ve.from(n.getRangeAt(0)):ve.none()).map(td).filter(Zf(t)):ve.none();e.bookmark=o.isSome()?o:e.bookmark}function rd(e){return(e.bookmark||ve.none()).bind((function(t){return n=_t.fromDom(e.getBody()),ve.from(t).filter(Zf(n)).map(Jf);var n})).bind(nd)}function id(e,t){var n=e.getParam("custom_ui_selector","","string");return null!==Td.getParent(t,(function(t){return zd.isEditorUIElement(t)||!!n&&e.dom.is(t,n)}))}function ad(e,t){var n=t.editor;(function(e){var t=cu((function(){od(e)}),0);e.on("init",(function(){function n(){r.throttle()}var o,r,i,a,u,c;e.inline&&(o=e,r=t,Ka.DOM.bind(document,"mouseup",n),o.on("remove",(function(){Ka.DOM.unbind(document,"mouseup",n)}))),i=e,a=t,dt().browser.isIE()?(c=i).on("focusout",(function(){od(c)})):(u=a,i.on("mouseup touchend",(function(e){u.throttle()}))),i.on("keyup NodeChange",(function(e){"nodechange"===e.type&&e.selectionChange||od(i)}))})),e.on("remove",(function(){t.cancel()}))})(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),(e.focusedEditor=n).fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){Oo.setEditorTimeout(n,(function(){var t=e.focusedEditor;id(n,function(e){try{return Kf(An(_t.fromDom(e.getElement()))).fold((function(){return document.body}),(function(e){return e.dom}))}catch(e){return document.body}}(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),bd||(bd=function(t){var n=e.activeEditor;n&&function(e){if(Dn()&&u(e.target)){var t=_t.fromDom(e.target);if(_n(t)&&u(t.dom.shadowRoot)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Z(n)}}return ve.from(e.target)}(t).each((function(t){t.ownerDocument===document&&(t===document.body||id(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},Td.bind(document,"focusin",bd))}function ud(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(Td.unbind(document,"focusin",bd),bd=null)}function cd(e,t){var n,o;n=_t.fromDom(e.getBody()),((o=t).collapsed?ve.from(Mu(o.startContainer,o.startOffset)).map(_t.fromDom):ve.none()).bind((function(e){return mr(e)?ve.some(e):!1===je(n,e)?ve.some(n):ve.none()})).bind((function(e){return Xl(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))}function sd(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()}function ld(e){return e.inline?(o=e.getBody())&&(Xf(t=_t.fromDom(o))||Kf(An(n=t)).filter((function(e){return n.dom.contains(e.dom)})).isSome()):e.iframeElement&&Xf(_t.fromDom(e.iframeElement));var t,n,o}function fd(e,t,n,o,r){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return ve.from(i).map(_t.fromDom).map((function(e){return o&&t.collapsed?e:Lt(e,r(e,a)).getOr(e)})).bind((function(e){return _n(e)?ve.some(e):At(e).filter(_n)})).map((function(e){return e.dom})).getOr(e)}function dd(e,t,n){return fd(e,t,!0,n,(function(e,t){return Math.min(It(e),t)}))}function md(e,t,n){return fd(e,t,!1,n,(function(e,t){return 0<t?t-1:t}))}function gd(e,t){for(var n=e;e&&Fn(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n}function hd(e,t){return L(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))}function pd(e,t,n){var o=n?"lastChild":"firstChild",r=n?"prev":"next";if(e[o])return e[o];if(e!==t){var i=e[r];if(i)return i;for(var a=e.parent;a&&a!==t;a=a.parent)if(i=a[r])return i}}function vd(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t}var bd,yd=function(e,t){return e.view(t).fold(f([]),(function(t){var n=e.owner(t),o=yd(e,n);return[t].concat(o)}))},xd=Object.freeze({__proto__:null,view:function(e){var t;return(e.dom===document?ve.none():ve.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement)).map(_t.fromDom)},owner:Mt}),wd=function(e,t,n,o){var r=_t.fromDom(e.getBody()),i=_t.fromDom(e.getDoc());r.dom.offsetWidth;var a,u,c=(a=function(e,t){var n=Tn(e);if(0===n.length||Bf(e))return{element:e,offset:t};if(t<n.length&&!Bf(n[t]))return{element:n[t],offset:0};var o=n[n.length-1];return Bf(o)?{element:e,offset:t}:"img"===Ot(o)?{element:o,offset:1}:On(o)?{element:o,offset:Ml(o).length}:{element:o,offset:Tn(o).length}}(_t.fromDom(n.startContainer),n.startOffset),u=_t.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">\ufeff</span>'),Wt(a.element,u),Rf(u,(function(){return Bn(u)})));Lf(e,i,t,c,o),c.cleanup()},Cd=function(e,t,n){var o=n.startContainer,r=n.startOffset,i=n.endContainer,a=n.endOffset;t(_t.fromDom(o),_t.fromDom(i));var u=e.dom.createRng();u.setStart(o,r),u.setEnd(i,a),e.selection.setRng(n)},Sd=oo([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),kd=(Sd.before,Sd.on,Sd.after,function(e){return e.fold(d,d,d)}),_d=oo([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Od={domRange:_d.domRange,relative:_d.relative,exact:_d.exact,exactFromRange:function(e){return _d.exact(e.start,e.soffset,e.finish,e.foffset)},getWin:function(e){return Dt(e.match({domRange:function(e){return _t.fromDom(e.startContainer)},relative:function(e,t){return kd(e)},exact:function(e,t,n,o){return e}}))},range:function(e,t,n,o){return{start:e,soffset:t,finish:n,foffset:o}}},Ed=dt().browser,zd={isEditorUIElement:function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")}},Td=Ka.DOM,Md=function(e){return e.editorManager.setActive(e)},Dd={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ad=(Nd.create=function(e,t){var n=new Nd(e,Dd[e]||1);return t&&ne(t,(function(e,t){n.attr(t,e)})),n},Nd.prototype.replace=function(e){return e.parent&&e.remove(),this.insert(e,this),this.remove(),this},Nd.prototype.attr=function(e,t){var n,o=this;if("string"!=typeof e)return null!=e&&ne(e,(function(e,t){o.attr(t,e)})),o;if(n=o.attributes){if(void 0===t)return n.map[e];if(null===t){if(e in n.map){delete n.map[e];for(var r=n.length;r--;)if(n[r].name===e)return n.splice(r,1),o}return o}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,o}},Nd.prototype.clone=function(){var e,t=new Nd(this.name,this.type);if(e=this.attributes){var n=[];n.map={};for(var o=0,r=e.length;o<r;o++){var i=e[o];"id"!==i.name&&(n[n.length]={name:i.name,value:i.value},n.map[i.name]=i.value)}t.attributes=n}return t.value=this.value,t.shortEnded=this.shortEnded,t},Nd.prototype.wrap=function(e){return this.parent.insert(e,this),e.append(this),this},Nd.prototype.unwrap=function(){for(var e=this.firstChild;e;){var t=e.next;this.insert(e,this,!0),e=t}this.remove()},Nd.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},Nd.prototype.append=function(e){e.parent&&e.remove();var t=this.lastChild;return t?((t.next=e).prev=t,this.lastChild=e):this.lastChild=this.firstChild=e,e.parent=this,e},Nd.prototype.insert=function(e,t,n){e.parent&&e.remove();var o=t.parent||this;return n?(t===o.firstChild?o.firstChild=e:t.prev.next=e,e.prev=t.prev,(e.next=t).prev=e):(t===o.lastChild?o.lastChild=e:t.next.prev=e,e.next=t.next,(e.prev=t).next=e),e.parent=o,e},Nd.prototype.getAll=function(e){for(var t=[],n=this.firstChild;n;n=pd(n,this))n.name===e&&t.push(n);return t},Nd.prototype.children=function(){for(var e=[],t=this.firstChild;t;t=t.next)e.push(t);return e},Nd.prototype.empty=function(){if(this.firstChild){for(var e=[],t=this.firstChild;t;t=pd(t,this))e.push(t);for(var n=e.length;n--;)(t=e[n]).parent=t.firstChild=t.lastChild=t.next=t.prev=null}return this.firstChild=this.lastChild=null,this},Nd.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var o=this.firstChild;if(vd(this))return!1;if(o)do{if(1===o.type){if(o.attr("data-mce-bogus"))continue;if(e[o.name])return!1;if(vd(o))return!1}if(8===o.type)return!1;if(3===o.type&&!function(e){if(jo(e.value)){var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)}}(o))return!1;if(3===o.type&&o.parent&&t[o.parent.name]&&jo(o.value))return!1;if(n&&n(o))return!1}while(o=pd(o,this));return!0},Nd.prototype.walk=function(e){return pd(this,null,e)},Nd);function Nd(e,t){this.name=e,1===(this.type=t)&&(this.attributes=[],this.attributes.map={})}function Bd(e,t){return e.replace(t.re,(function(e){return ue(t.uris,e).getOr(e)}))}var Rd=kt.each,Hd=kt.trim,Ld="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),Vd={ftp:21,http:80,https:443,mailto:25},Pd=["img","video"],Id=(Fd.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),o=/data:([^;]+)/.exec(n[0]);return{type:t=o?o[1]:t,data:n[1]}},Fd.isDomSafe=function(e,t,n){if((n=void 0===n?{}:n).allow_script_urls)return!0;var o,r,i,a,c=Xr.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{c=decodeURIComponent(c)}catch(e){c=unescape(c)}return!(/((java|vb)script|mhtml):/i.test(c)||(r=c,i=t,!(o=n).allow_html_data_urls&&(/^data:image\//i.test(r)?(u(a=o.allow_svg_data_urls)?!a:!u(i)||!R(Pd,i))&&/^data:image\/svg\+xml/i.test(r):/^data:/i.test(r))))},Fd.getDocumentBaseUrl=function(e){var t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname;return/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},Fd.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()},Fd.prototype.toRelative=function(e){var t;if("./"===e)return e;var n=new Fd(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 o=this.getURI(),r=n.getURI();return o===r||"/"===o.charAt(o.length-1)&&o.substr(0,o.length-1)===r?o:(t=this.toRelPath(this.path,n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),t)},Fd.prototype.toAbsolute=function(e,t){var n=new Fd(e,{base_uri:this});return n.getURI(t&&this.isSameOrigin(n))},Fd.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=Vd[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},Fd.prototype.toRelPath=function(e,t){var n,o,r=0,i="",a=e.substring(0,e.lastIndexOf("/")).split("/"),u=t.split("/");if(a.length>=u.length)for(n=0,o=a.length;n<o;n++)if(n>=u.length||a[n]!==u[n]){r=n+1;break}if(a.length<u.length)for(n=0,o=u.length;n<o;n++)if(n>=a.length||a[n]!==u[n]){r=n+1;break}if(1===r)return t;for(n=0,o=a.length-(r-1);n<o;n++)i+="../";for(n=r-1,o=u.length;n<o;n++)i+=n!==r-1?"/"+u[n]:u[n];return i},Fd.prototype.toAbsPath=function(e,t){var n,o,r=0,i=[],a=/\/$/.test(t)?"/":"",u=e.split("/"),c=t.split("/");for(Rd(u,(function(e){e&&i.push(e)})),u=i,n=c.length-1,i=[];0<=n;n--)0!==c[n].length&&"."!==c[n]&&(".."!==c[n]?0<r?r--:i.push(c[n]):r++);return 0!==(o=(n=u.length-r)<=0?K(i).join("/"):u.slice(0,n).join("/")+"/"+K(i).join("/")).indexOf("/")&&(o="/"+o),a&&o.lastIndexOf("/")!==o.length-1&&(o+=a),o},Fd.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},Fd);function Fd(e,t){e=Hd(e),this.settings=t||{};var n,o,r,i,a=this.settings.base_uri,u=this;/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e)?u.source=e:(n=0===e.indexOf("//"),0!==e.indexOf("/")||n||(e=(a&&a.protocol||"http")+"://mce_host"+e),/^[\w\-]*:?\/\//.test(e)||(o=this.settings.base_uri?this.settings.base_uri.path:new Fd(document.location.href).directory,e=this.settings.base_uri&&""==this.settings.base_uri.protocol?"//mce_host"+u.toAbsPath(o,e):(r=/([^#?]*)([#?]?.*)/.exec(e),(a&&a.protocol||"http")+"://mce_host"+u.toAbsPath(o,r[1])+r[2])),e=e.replace(/@@/g,"(mce_at)"),i=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e),Rd(Ld,(function(e,t){var n=(n=i[t])&&n.replace(/\(mce_at\)/g,"@@");u[e]=n})),a&&(u.protocol||(u.protocol=a.protocol),u.userInfo||(u.userInfo=a.userInfo),u.port||"mce_host"!==u.host||(u.port=a.port),u.host&&"mce_host"!==u.host||(u.host=a.host),u.source=""),n&&(u.protocol=""))}function Ud(e,t,n){for(var o=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,r=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,i=e.getShortEndedElements(),a=1,u=n;0!==a;)for(o.lastIndex=u;;){var c=o.exec(t);if(null===c)return u;if("!"===c[1]){u=Ye(c[2],"--")?qd(t,!1,c.index+"!--".length):qd(t,!0,c.index+1);break}r.lastIndex=o.lastIndex;var s=r.exec(t);if(!x(s)&&s.index===o.lastIndex){"/"===c[1]?--a:_e(i,c[2])||(a+=1),u=o.lastIndex+s[0].length;break}}return u}function jd(e,t){var n;void 0===t&&(t=er());var o=null!==(n=(e=e||{}).document)&&void 0!==n?n:document,r=o.createElement("form");!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var i=e.comment||c,a=e.cdata||c,u=e.text||c,s=e.start||c,l=e.end||c,f=e.pi||c,d=e.doctype||c;return{parse:function(n,c){void 0===c&&(c="html"),function(n,c){void 0===c&&(c="html");for(var m,g,h,p,v,b,y,x,w,C,S,k,_,O,E,z,T,M,D,A=n.html,N=0,B=[],R=0,H=Xr.decode,L=kt.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),V="html"===c?0:1,P=function(e){for(var t,n=B.length;n--&&B[n].name!==e;);if(0<=n){for(t=B.length-1;n<=t;t--)(e=B[t]).valid&&l(e.name);B.length=n}},I=function(e,t){return u(Bd(e,n),t)},F=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),i(Bd(t,n)))},U=function(e,t){var n=e||"",o=!Ye(n,"--"),r=qd(A,o,t);return e=A.substr(t,r-t),F(o?n+e:e),r+1},j=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),W=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,q=t.getShortEndedElements(),G=e.self_closing_elements||t.getSelfClosingElements(),$=t.getBoolAttrs(),X=e.validate,K=e.remove_internals,Y=e.fix_self_closing,J=t.getSpecialElements(),Q=A+">";m=j.exec(Q);){var Z=m[0];if(N<m.index&&I(H(A.substr(N,m.index-N))),g=m[7])P(g=":"===(g=g.toLowerCase()).charAt(0)?g.substr(1):g);else if(g=m[8]){if(m.index+Z.length>A.length){I(H(A.substr(m.index))),N=m.index+Z.length;continue}w=(g=":"===(g=g.toLowerCase()).charAt(0)?g.substr(1):g)in q,Y&&G[g]&&0<B.length&&B[B.length-1].name===g&&P(g);var ee=function(e,t){var n=e.exec(t);if(n){var o=n[1],r=n[2];return"string"==typeof o&&"data-mce-bogus"===o.toLowerCase()?r:null}return null}(W,m[9]);if(null!==ee){if("all"===ee){N=Ud(t,A,j.lastIndex),j.lastIndex=N;continue}S=!1}if(!X||(C=t.getElementRule(g))){if(S=!0,X&&(O=C.attributes,E=C.attributePatterns),(_=m[9])?((x=-1!==_.indexOf("data-mce-type"))&&K&&(S=!1),(p=[]).map={},_.replace(W,(function(t,i,a,u,c){return function(t,i,a,u,c){var s;if(a=Bd((i=i.toLowerCase())in $?i:H(a||u||c||""),n),X&&!x&&0==(0===(s=i).indexOf("data-")||0===s.indexOf("aria-"))){var l=O[i];if(!l&&E){for(var f=E.length;f--&&!(l=E[f]).pattern.test(i););-1===f&&(l=null)}if(!l)return;if(l.validValues&&!(a in l.validValues))return}("name"===i||"id"===i)&&t in Wd&&(a in o||a in r)||L[i]&&!Id.isDomSafe(a,t,e)||x&&(i in L||0===i.indexOf("on"))||(p.map[i]=a,p.push({name:i,value:a}))}(g,i,a,u,c),""}))):(p=[]).map={},X&&!x){if(z=C.attributesRequired,T=C.attributesDefault,M=C.attributesForced,C.removeEmptyAttrs&&!p.length&&(S=!1),M)for(v=M.length;v--;)y=(k=M[v]).name,"{$uid}"===(D=k.value)&&(D="mce_"+R++),p.map[y]=D,p.push({name:y,value:D});if(T)for(v=T.length;v--;)(y=(k=T[v]).name)in p.map||("{$uid}"===(D=k.value)&&(D="mce_"+R++),p.map[y]=D,p.push({name:y,value:D}));if(z){for(v=z.length;v--&&!(z[v]in p.map););-1===v&&(S=!1)}if(k=p.map["data-mce-bogus"]){if("all"===k){N=Ud(t,A,j.lastIndex),j.lastIndex=N;continue}S=!1}}S&&s(g,p,w)}else S=!1;if(h=J[g]){h.lastIndex=N=m.index+Z.length,N=(m=h.exec(A))?(S&&(b=A.substr(N,m.index-N)),m.index+m[0].length):(b=A.substr(N),A.length),S&&(0<b.length&&I(b,!0),l(g)),j.lastIndex=N;continue}w||(_&&_.indexOf("/")===_.length-1?S&&l(g):B.push({name:g,valid:S}))}else if(g=m[1])F(g);else if(g=m[2]){if(!(1==V||e.preserve_cdata||0<B.length&&t.isValidChild(B[B.length-1].name,"#cdata"))){N=U("",m.index+2),j.lastIndex=N;continue}a(g)}else if(g=m[3])d(g);else{if((g=m[4])||"<!"===Z){N=U(g,m.index+Z.length),j.lastIndex=N;continue}if(g=m[5]){if(1!=V){N=U("?",m.index+2),j.lastIndex=N;continue}f(g,m[6])}}N=m.index+Z.length}for(N<A.length&&I(H(A.substr(N))),v=B.length-1;0<=v;v--)(g=B[v]).valid&&l(g.name)}(function(e){for(var t,n=/data:[^;]+;base64,([a-z0-9\+\/=\s]+)/gi,o=[],r={},i=pu("img"),a=0,u=0;t=n.exec(e);){var c=t[0],s=i+"_"+u++;r[s]=c,a<t.index&&o.push(e.substr(a,t.index-a)),o.push(s),a=t.index+c.length}var l=new RegExp(i+"_[0-9]+","g");return 0===a?{prefix:i,uris:r,html:e,re:l}:(a<e.length&&o.push(e.substr(a)),{prefix:i,uris:r,html:o.join(""),re:l})}(n),c)}}}var Wd=kt.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),qd=function(e,t,n){void 0===n&&(n=0);var o=e.toLowerCase();if(-1!==o.indexOf("[if ",n)&&(u=n,/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(o.substr(u)))){var r=o.indexOf("[endif]",n);return o.indexOf(">",r)}if(t){var i=o.indexOf(">",n);return-1!==i?i:o.length}var a=/--!?>/g;a.lastIndex=n;var u,c=a.exec(e);return c?c.index+c[0].length:o.length};function Gd(e,t){for(var n,o,r,i,a=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,u=e.schema,c=(n=e.getTempAttrs(),o=t,r=new RegExp(["\\s?("+n.join("|")+')="[^"]+"'].join("|"),"gi"),o.replace(r,"")),s=u.getShortEndedElements();i=a.exec(c);){var l=a.lastIndex,f=i[0].length,d=s[i[1]]?l:jd.findEndTag(u,c,l);c=c.substring(0,l-f)+c.substring(d);a.lastIndex=l-f}return xr(c)}function $d(e){return{compare:function(t,n){return t.nodeName===n.nodeName&&!(!r(o(t),o(n))||!r(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))||qs(t)||qs(n));function o(t){var n={};return Jd(e.getAttribs(t),(function(o){var r=o.nodeName.toLowerCase();0!==r.indexOf("_")&&"style"!==r&&0!==r.indexOf("data-")&&(n[r]=e.getAttrib(t,r))})),n}function r(e,t){var n,o;for(o in e)if(_e(e,o)){if(void 0===(n=t[o]))return;if(e[o]!==n)return;delete t[o]}for(o in t)if(_e(t,o))return;return 1}}}}function Xd(e){var t=[],n=(e=e||{}).indent,o=Qd(e.indent_before||""),r=Qd(e.indent_after||""),i=Xr.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,u,c){var s,l,f,d;if(n&&o[e]&&0<t.length&&0<(d=t[t.length-1]).length&&"\n"!==d&&t.push("\n"),t.push("<",e),u)for(s=0,l=u.length;s<l;s++)f=u[s],t.push(" ",f.name,'="',i(f.value,!0),'"');t[t.length]=!c||a?">":" />",c&&n&&r[e]&&0<t.length&&0<(d=t[t.length-1]).length&&"\n"!==d&&t.push("\n")},end:function(e){var o;t.push("</",e,">"),n&&r[e]&&0<t.length&&0<(o=t[t.length-1]).length&&"\n"!==o&&t.push("\n")},text:function(e,n){0<e.length&&(t[t.length]=n?e:i(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,o){o?t.push("<?",e," ",i(o),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}}function Kd(e,t){void 0===t&&(t=er());var n=Xd(e);return(e=e||{}).validate=!("validate"in e)||e.validate,{serialize:function(o){var r=e.validate,i={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;a(e),e=e.next;);}};n.reset();var a=function(e){var o=i[e.type];if(o)o(e);else{var u=e.name,c=e.shortEnded,s=e.attributes;if(r&&s&&1<s.length){var l=[];l.map={};var f=t.getElementRule(e.name);if(f){for(var d=0,m=f.attributesOrder.length;d<m;d++)(g=f.attributesOrder[d])in s.map&&(h=s.map[g],l.map[g]=h,l.push({name:g,value:h}));var g,h;for(d=0,m=s.length;d<m;d++)(g=s[d].name)in l.map||(h=s.map[g],l.map[g]=h,l.push({name:g,value:h}));s=l}}if(n.start(e.name,s,c),!c){if(e=e.firstChild)for(;a(e),e=e.next;);n.end(u)}}};return 1!==o.type||e.inner?i[11](o):a(o),n.getContent()}}}jd.findEndTag=Ud;var Yd=Gd,Jd=kt.each,Qd=kt.makeMap,Zd=new Set;function em(e,t){return Ce(e.parseStyle(e.getAttrib(t,"style")))}function tm(e,t,n){return ve.from(n.container()).filter(Fn).exists((function(o){var r=e?0:-1;return t(o.data.charAt(n.offset()+r))}))}function nm(e){var t=e.container();return Fn(t)&&(0===t.data.length||yr(t.data)&&Nl.isBookmarkNode(t.parentNode))}function om(e,t){return function(n){return ve.from(Gc(e?0:-1,n)).filter(t).isSome()}}function rm(e){return Gn(e)&&"block"===xn(_t.fromDom(e),"display")}function im(e){return Xn(e)&&!(Pn(t=e)&&"all"===t.getAttribute("data-mce-bogus"));var t}function am(e){Xt(e),Nn(e,_t.fromHtml('<br data-mce-bogus="1">'))}function um(e){Pt(e).each((function(t){Nt(t).each((function(n){sr(e)&&Ao(t)&&sr(n)&&Bn(t)}))}))}function cm(e,t){return r=M,je(o=t,n=e)?function(e,t){for(var n=S(t)?t:M,o=e.dom,r=[];null!==o.parentNode&&void 0!==o.parentNode;){var i=o.parentNode,a=_t.fromDom(i);if(r.push(a),!0===n(a))break;o=i}return r}(n,(function(e){return r(e)||Ue(e,o)})).slice(0,-1):[];var n,o,r}function sm(e,t){return[e].concat(cm(e,t))}function lm(e,t,n){return ql(e,t,n,nm)}function fm(e,t){return q(sm(_t.fromDom(t.container()),e),sr)}function dm(e,t,n){return lm(e,t.dom,n).forall((function(e){return fm(t,n).fold((function(){return!1===qc(e,n,t.dom)}),(function(o){return!1===qc(e,n,t.dom)&&je(o,_t.fromDom(e.container()))}))}))}function mm(e,t,n){return fm(t,n).fold((function(){return lm(e,t.dom,n).forall((function(e){return!1===qc(e,n,t.dom)}))}),(function(t){return lm(e,t.dom,n).isNone()}))}function gm(e){return Qc(e).exists(Ao)}function hm(e,t,n){var o=Z(F(sm(_t.fromDom(n.container()),t),sr)).getOr(t);return Wl(e,o.dom,n).filter(gm)}function pm(e,t){return Qc(t).exists(Ao)||hm(!0,e,t).isSome()}function vm(e,t){return ve.from(t.getNode(!0)).map(_t.fromDom).exists(Ao)||hm(!1,e,t).isSome()}function bm(e){return oc.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()}function ym(e,t){return Z(F(sm(_t.fromDom(t.container()),e),sr)).getOr(e)}function xm(e,t){return bm(t)?Ng(t):Ng(t)||$l(ym(e,t).dom,t).exists(Ng)}function wm(e,t){return bm(t)?Ag(t):Ag(t)||Gl(ym(e,t).dom,t).exists(Ag)}function Cm(e){return Qc(e).bind((function(e){return ho(e,_n)})).exists((function(e){return R(["pre","pre-wrap"],xn(e,"white-space"))}))}function Sm(e,t){return!Cm(t)&&(Ug(e,t)||Wg(e,t)||vm(e,t)||xm(e,t))}function km(e,t){return!Cm(t)&&(jg(e,t)||qg(e,t)||pm(e,t)||wm(e,t))}function _m(e,t){return Sm(e,t)||km(e,(o=(n=t).container(),r=n.offset(),Fn(o)&&r<o.data.length?oc(o,r+1):n));var n,o,r}function Om(e,t){return Ql(e.charAt(t))}function Em(e){var t=e.container();return Fn(t)&&De(t.data,vr)}function zm(e){var t=_t.fromDom(e.getBody());e.selection.isCollapsed()&&function(e,t){return ve.some(t).filter(Em).bind((function(t){var n,o,r,i,a,u,c,s,l,f=t.container(),d=e,m=(a=f).data,g=oc(a,0);return(!Om(m,0)||_m(d,g)?(s=(u=f).data,(l=L(c=s.split(""),(function(e,t){return Ql(e)&&0<t&&t<c.length-1&&$s(c[t-1])&&$s(c[t+1])?" ":e})).join(""))!==s&&(u.data=l,1)):(a.data=" "+m.slice(1),1))||(n=e,r=(o=f).data,i=oc(o,r.length-1),Om(r,r.length-1)&&!_m(n,i)&&(o.data=r.slice(0,-1)+" ",1))?ve.some(t):ve.none()}))}(t,oc.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))}function Tm(e,t,n){var o,r,i,a,u,c,s,l;0!==n&&(r=go(o=_t.fromDom(e),sr).getOr(o),i=e.data.slice(t,t+n),a=t+n>=e.data.length&&km(r,oc(e,e.data.length)),u=0===t&&Sm(r,oc(e,0)),e.replaceData(t,n,(s=u,l=a,j(c=i,(function(e,t){return Gs(t)||Ql(t)?e.previousCharIsSpace||""===e.str&&s||e.str.length===c.length-1&&l?{previousCharIsSpace:!1,str:e.str+vr}:{previousCharIsSpace:!0,str:e.str+" "}:{previousCharIsSpace:!1,str:e.str+t}}),{previousCharIsSpace:!1,str:""}).str)))}function Mm(e,t){var n=e.data.slice(t);Tm(e,t,n.length-Qe(n).length)}function Dm(e,t){var n=e.data.slice(0,t),o=n.length-Ze(n).length;Tm(e,t-o,o)}function Am(e,t,n,o){void 0===o&&(o=!0);var r=Ze(e.data).length,i=o?e:t,a=o?t:e;return o?i.appendData(a.data):i.insertData(0,a.data),Bn(_t.fromDom(a)),n&&Mm(i,r),i}function Nm(e,t){return o=e,r=(n=t).container(),i=n.offset(),!1===oc.isTextPosition(n)&&r===o.parentNode&&i>oc.before(o).offset()?oc(t.container(),t.offset()-1):t;var n,o,r,i}function Bm(e){return Fo(e.previousSibling)?ve.some((t=e.previousSibling,Fn(t)?oc(t,t.data.length):oc.after(t))):e.previousSibling?Kl(e.previousSibling):ve.none();var t}function Rm(e){return Fo(e.nextSibling)?ve.some((t=e.nextSibling,Fn(t)?oc(t,0):oc.before(t))):e.nextSibling?Xl(e.nextSibling):ve.none();var t}function Hm(e,t){return Bm(t).orThunk((function(){return Rm(t)})).orThunk((function(){return n=e,r=oc.before((o=t).previousSibling||o.parentNode),$l(n,r).fold((function(){return Gl(n,oc.after(o))}),ve.some);var n,o,r}))}function Lm(e,t){return Rm(t).orThunk((function(){return Bm(t)})).orThunk((function(){return Gl(n=e,oc.after(o=t)).fold((function(){return $l(n,oc.before(o))}),ve.some);var n,o}))}function Vm(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))}function Pm(e,t){return t&&_e(e.schema.getBlockElements(),Ot(t))}function Im(e){if(qo(e)){var t=_t.fromHtml('<br data-mce-bogus="1">');return Xt(e),Nn(e,t),ve.some(oc.before(t.dom))}return ve.none()}function Fm(e,t,n,o){void 0===o&&(o=!0);var r,i,a,u,c,s,l,f,d,m,g,h,p=(t?Lm:Hm)(e.getBody(),h=n.dom).map(_(Nm,h)),v=go(n,_(Pm,e),(r=e.getBody(),function(e){return e.dom===r})),b=(u=p,i=a=n,c=_e(e.schema.getTextInlineElements(),Ot(i)),m=Nt(a).filter(On),g=Bt(a).filter(On),Bn(a),l=g,f=u,d=function(e,t,n){var o=e.dom,r=t.dom,i=o.data.length;return Am(o,r,c),n.container()===r?oc(o,i):n},((s=m).isSome()&&l.isSome()&&f.isSome()?ve.some(d(s.getOrDie(),l.getOrDie(),f.getOrDie())):ve.none()).orThunk((function(){return c&&(m.each((function(e){return Dm(e.dom,e.dom.length)})),g.each((function(e){return Mm(e.dom,0)}))),u})));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):v.bind(Im).fold((function(){o&&Vm(e,t,b)}),(function(n){o&&Vm(e,t,ve.some(n))}))}function Um(e){return gu(e,"td,th")}function jm(e,t){return{start:e,end:t}}function Wm(e,t){return bo(_t.fromDom(e),"td,th",t)}function qm(e){return!Ue(e.start,e.end)}function Gm(e,t){return kl(e.start,t).bind((function(n){return kl(e.end,t).bind((function(e){return Ue(n,e)?ve.some(n):ve.none()}))}))}function $m(e){return function(t){return Gm(t,e).map((function(e){return{rng:t,table:e,cells:Um(e)}}))}}function Xm(e,t,n,o){if(n.collapsed||!e.forall(qm))return ve.none();if(t.isSameTable){var r=e.bind($m(o));return ve.some({start:r,end:r})}var i,a,u=Wm(n.startContainer,o),c=Wm(n.endContainer,o),s=u.bind((a=o,function(e){return kl(e,a).bind((function(t){return ee(Um(t)).map((function(t){return jm(e,t)}))}))})).bind($m(o)),l=c.bind((i=o,function(e){return kl(e,i).bind((function(t){return Z(Um(t)).map((function(t){return jm(t,e)}))}))})).bind($m(o));return ve.some({start:s,end:l})}function Km(e,t){return G(e,(function(e){return Ue(e,t)}))}function Ym(e){return dn(Km(e.cells,e.rng.start),Km(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))}function Jm(e,t){var n=t.startTable,o=t.endTable,r=e.cloneRange();return n.each((function(e){return r.setStartAfter(e.dom)})),o.each((function(e){return r.setEndBefore(e.dom)})),r}function Qm(e){return V(e,(function(e){yn(e,"contenteditable"),am(e)})),0}function Zm(e,t,n,o){var r=n.cloneRange();o?(r.setStart(n.startContainer,n.startOffset),r.setEndAfter(t.dom.lastChild)):(r.setStartBefore(t.dom.firstChild),r.setEnd(n.endContainer,n.endOffset)),Yg(e,r,t,!1)}function eg(e){var t=Sl(e),n=_t.fromDom(e.selection.getNode());Kn(n.dom)&&qo(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),1<t.length&&H(t,(function(e){return Ue(e,n)}))&&hn(n,"data-mce-selected","1")}function tg(e,t,n){var o=e.selection.getRng();return Qm(n.bind((function(n){var r,i,a,u=n.rng,c=n.isStartInTable,s=(r=c?u.endContainer:u.startContainer,ve.from(e.dom.getParent(r,e.dom.isBlock)).map(_t.fromDom));u.deleteContents(),i=e,a=c,s.filter(qo).each((function(e){a?Bn(e):(am(e),i.selection.setCursorLocation(e.dom,0))}));var l=c?t[0]:t[t.length-1];return Zm(e,l,o,c),qo(l)?ve.none():ve.some(c?t.slice(1):t.slice(0,-1))})).getOr(t)),eg(e),!0}function ng(e,t,n,o){var r=e.selection.getRng(),i=t[0],a=n[n.length-1];Zm(e,i,r,!0),Zm(e,a,r,!1);var u=qo(i)?t:t.slice(1),c=qo(a)?n:n.slice(0,-1);return Qm(u.concat(c)),o.deleteContents(),eg(e),!0}function og(e,t){return Fm(e,!1,t),!0}function rg(e,t){return q(sm(t,e),gr)}function ig(e,t){return(e?Vg:Pg)(t)}function ag(e,t){var n,o,r,i,a,u,c,s,l=_t.fromDom(e.selection.getStart(!0)),f=Sl(e);return e.selection.isCollapsed()&&0===f.length?function(e,t,n){var o=_t.fromDom(e.getBody());return Jg(o,n).fold((function(){return r=e,i=t,a=o,u=n,c=oc.fromRangeStart(r.selection.getRng()),rg(a,u).bind((function(e){return qo(e)?Qg(r,e):(t=a,n=e,o=c,Bs(i,r.getBody(),o).bind((function(e){return rg(t,_t.fromDom(e.getNode())).map((function(e){return!1===Ue(e,n)}))})));var t,n,o})).getOr(!1)||(l=t,f=oc.fromRangeStart((s=e).selection.getRng()),ig(l,f)||Wl(l,s.getBody(),f).exists((function(e){return ig(l,e)})));var r,i,a,u,c,s,l,f}),(function(n){return l=t,f=o,d=n,m=oc.fromRangeStart((s=e).selection.getRng()),(qo(d)?Qg(s,d):(i=f,u=d,c=m,Bs(a=l,(r=s).getBody(),c).bind((function(e){return o=a,s=c,l=e,Xl((n=u).dom).bind((function(e){return Kl(n.dom).map((function(t){return o?s.isEqual(e)&&l.isEqual(t):s.isEqual(t)&&l.isEqual(e)}))})).getOr(!0)?Qg(r,u):(t=u,Jg(i,_t.fromDom(e.getNode())).map((function(e){return!1===Ue(e,t)})));var t,n,o,s,l})).or(ve.some(!0)))).getOr(!1);var r,i,a,u,c,s,l,f,d,m}))}(e,t,l):(o=l,r=f,i=_t.fromDom((n=e).getBody()),a=n.selection.getRng(),0!==r.length?tg(n,r,ve.none()):(u=n,s=a,Jg(c=i,o).fold((function(){return e=u,function(e,t){var n,o,r,i,a,u,c,s,l,f,d,m,g,h,p,v,b=(n=e,function(e){return Ue(n,e)}),y=dn(Wm((o=t).startContainer,r=b),Wm(o.endContainer,r),jm),x=(l=b,f=w((s=t).startContainer),d=w(s.endContainer),m=f.isSome(),g=d.isSome(),{startTable:f,endTable:d,isStartInTable:m,isEndInTable:g,isSameTable:h=dn(f,d,Ue).getOr(!1),isMultiTable:!h&&m&&g});function w(e){return kl(_t.fromDom(e),l)}return p=t,v=b,y.exists((function(e){return!qm(t=e)&&Gm(t,v).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))&&_l(e.start,p);var t}))?y.map((function(e){return Xg.singleCellTable(t,e.start)})):x.isMultiTable?Xm(y,u=x,c=t,b).bind((function(e){var t=e.start,n=e.end,o=t.bind(Ym).getOr([]),r=n.bind(Ym).getOr([]);if(0<o.length&&0<r.length){var i=Jm(c,u);return ve.some(Xg.multiTable(o,r,i))}return ve.none()})):Xm(y,i=x,a=t,b).bind((function(e){var t=e.start,n=e.end;return t.or(n)})).bind((function(e){var t=i.isSameTable,n=Ym(e).getOr([]);if(t&&e.cells.length===n.length)return ve.some(Xg.fullTable(e.table));if(0<n.length){if(t)return ve.some(Xg.partialTable(n,ve.none()));var o=Jm(a,i);return ve.some(Xg.partialTable(n,ve.some(Ee(Ee({},i),{rng:o}))))}return ve.none()}))}(c,s).map((function(t){return t.fold(_(Yg,e),_(og,e),_(tg,e),_(ng,e))}));var e}),(function(e){return Qg(u,e)})).getOr(!1)))}function ug(e){return e.collapsed?e:(t=e,n=oc.fromRangeStart(t),o=oc.fromRangeEnd(t),r=t.commonAncestorContainer,Wl(!1,r,o).map((function(e){return!qc(n,o,r)&&qc(n,e,r)?(i=n.container(),a=n.offset(),u=e.container(),c=e.offset(),(s=document.createRange()).setStart(i,a),s.setEnd(u,c),s):t;var i,a,u,c,s})).getOr(t));var t,n,o,r}function cg(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null}function sg(e,t){var n=oc.after(e),o=Ms(t).prev(n);return o?o.toRange():null}function lg(e,t,n,o){function r(e){var o=oc.fromRangeStart(n),r=Ms(t.getRoot()),i=1===e?r.prev(o):r.next(o);return!i||cg(t,i.getNode())!==T}var i,a,u,c,s,l,f,d,m,g,h,p,v,b,y,x,w,C,S,k,_,O,E,z=(i=t,s=e.serialize(o),u=(a=i.createFragment(s)).firstChild,c=a.lastChild,u&&"META"===u.nodeName&&u.parentNode.removeChild(u),c&&"mce_marker"===c.id&&c.parentNode.removeChild(c),a),T=cg(t,n.startContainer),M=function(e){return 0<e.length&&(!(o=e[e.length-1]).firstChild||(t=o)&&t.firstChild&&t.firstChild===t.lastChild&&((n=t.firstChild).data===vr||qn(n)))?e.slice(0,-1):e;var t,n,o}(F(z.firstChild.childNodes,(function(e){return"LI"===e.nodeName}))),D=t.getRoot();return r(1)?(S=D,E=(C=T).parentNode,kt.each(M,(function(e){E.insertBefore(e,C)})),k=S,_=oc.before(C),(O=Ms(k).next(_))?O.toRange():null):r(2)?(l=T,d=D,t.insertAfter((f=M).reverse(),l),sg(f[0],d)):(g=M,h=D,p=m=T,b=(v=n).cloneRange(),y=v.cloneRange(),b.setStartBefore(p),y.setEndAfter(p),x=[b.cloneContents(),y.cloneContents()],(w=m.parentNode).insertBefore(x[0],m),kt.each(g,(function(e){w.insertBefore(e,m)})),w.insertBefore(x[1],m),w.removeChild(m),sg(g[g.length-1],h))}function fg(e,t,n){var o,r,i,a,c=e.selection,s=e.dom;/^ | $/.test(t)&&(o=s,r=c.getRng(),i=t,i=Sm(a=_t.fromDom(o.getRoot()),oc.fromRangeStart(r))?i.replace(/^ /," "):i.replace(/^ /," "),t=i=km(a,oc.fromRangeEnd(r))?i.replace(/( | )(<br( \/)>)?$/," "):i.replace(/ (<br( \/)?>)?$/," "));var l=e.parser,f=n.merge,d=Kd({validate:e.getParam("validate")},e.schema),m='<span id="mce_marker" data-mce-type="bookmark"></span>',g=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(g.isDefaultPrevented())e.fire("SetContent",{content:g.content,format:"html",selection:!0,paste:n.paste});else{-1===(t=g.content).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,m);var h,p,v=(h=c.getRng()).startContainer||(h.parentElement?h.parentElement():null),b=e.getBody();v===b&&c.isCollapsed()&&s.isBlock(b.firstChild)&&(p=b.firstChild)&&!e.schema.getShortEndedElements()[p.nodeName]&&s.isEmpty(b.firstChild)&&((h=s.createRng()).setStart(b.firstChild,0),h.setEnd(b.firstChild,0),c.setRng(h)),c.isCollapsed()||function(e){var t=e.dom,n=ug(e.selection.getRng());e.selection.setRng(n);var o,r=t.getParent(n.startContainer,Zg),i=n;null!==(o=r)&&o===t.getParent(i.endContainer,Zg)&&_l(_t.fromDom(o),i)?Yg(e,n,_t.fromDom(r)):e.getDoc().execCommand("Delete",!1,null)}(e);var y,x,w,C,S,k,_,O,E,z,T,M,D,A,N={context:(V=c.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0},B=l.parse(t,N);if(!0===n.paste&&function(e,t){var n,o,r,i,a,u=t.firstChild,c=t.lastChild;return u&&"meta"===u.name&&(u=u.next),o=c=c&&"mce_marker"===c.attr("id")?c.prev:c,r=(n=e).getNonEmptyElements(),o&&(o.isEmpty(r)||(i=o,n.getBlockElements()[i.name]&&i.firstChild&&i.firstChild===i.lastChild&&("br"===(a=i.firstChild).name||a.value===vr)))&&(c=c.prev),u&&u===c&&("ul"===u.name||"ol"===u.name)}(e.schema,B)&&cg(s,V))return h=lg(d,s,c.getRng(),B),c.setRng(h),void e.fire("SetContent",g);if(function(){for(var e=B;e=e.walk();)1===e.type&&e.attr("data-mce-fragment","1")}(),"mce_marker"===(L=B.lastChild).attr("id"))for(var R=L,L=L.prev;L;L=L.walk(!0))if(3===L.type||!s.isBlock(L.name)){e.schema.isValidChild(L.parent.name,"span")&&L.parent.insert(R,L,"br"===L.name);break}if(e._selectionOverrides.showBlockCaretContainer(V),N.invalid){e.selection.setContent(m);var V=c.getNode(),P=e.getBody();for(9===V.nodeType?V=L=P:L=V;L!==P;)L=(V=L).parentNode;t=V===P?P.innerHTML:s.getOuterHTML(V),t=d.serialize(l.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return d.serialize(B)})))),V===P?s.setHTML(P,t):s.setOuterHTML(V,t)}else y=e,x=t=d.serialize(B),"all"===(w=V).getAttribute("data-mce-bogus")?w.parentNode.insertBefore(y.dom.createFragment(x),w):(C=w.firstChild,S=w.lastChild,!C||C===S&&"BR"===C.nodeName?y.dom.setHTML(w,x):y.selection.setContent(x));_=f,z=(k=e).schema.getTextInlineElements(),T=k.dom,_&&(O=k.getBody(),E=$d(T),kt.each(T.select("*[data-mce-fragment]"),(function(e){if(u(z[e.nodeName.toLowerCase()])&&X(em(T,e),(function(e){return!Zd.has(e)})))for(var t=e.parentNode;u(t)&&t!==O&&!function(e,t,n){function o(o){var r=e.getStyle(t,o),i=e.getStyle(n,o);return Ne(r)&&Ne(i)&&r!==i}var r=em(e,t),i=em(e,n);return H(r,(function(e){function t(t){return H(t,(function(t){return t===e}))}if(t(i)||!t(Dg))return o(e);var n=F(i,(function(e){return H(Dg,(function(t){return Ye(e,t)}))}));return H(n,o)}))}(T,e,t);t=t.parentNode)if(E.compare(t,e)){T.remove(e,!0);break}}))),function(e,t){var n,o=e.dom,r=e.selection;if(t){r.scrollIntoView(t);var i=sf(e.getBody(),t);if("false"===o.getContentEditable(i))return o.remove(t),r.select(i);var a,u=o.createRng(),c=t.previousSibling;Fn(c)?(u.setStart(c,c.nodeValue.length),wt.ie||(a=t.nextSibling,Fn(a)&&(c.appendData(a.data),a.parentNode.removeChild(a)))):(u.setStartBefore(t),u.setEndBefore(t));var s=o.getParent(t,o.isBlock);o.remove(t),s&&o.isEmpty(s)&&(e.$(s).empty(),u.setStart(s,0),u.setEnd(s,0),Zg(s)||s.getAttribute("data-mce-fragment")||!(n=function(t){var n=oc.fromRangeStart(t);if(n=Ms(e.getBody()).next(n))return n.toRange()}(u))?o.add(s,o.create("br",{"data-mce-bogus":"1"})):(u=n,o.remove(s))),r.setRng(u)}}(e,s.get("mce_marker")),M=e.getBody(),kt.each(M.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")})),D=s,A=c.getStart(),ve.from(D.getParent(A,"td,th")).map(_t.fromDom).each(um),e.fire("SetContent",g),e.addVisual()}}function dg(e){return e instanceof Ad}function mg(e,t,n){var o;e.dom.setHTML(e.getBody(),t),!0!==n&&ld(o=e)&&Xl(o.getBody()).each((function(e){var t=e.getNode(),n=sn(t)?Xl(t).getOr(e):e;o.selection.setRng(n.toRange())}))}function gg(e){return S(e)?e:M}function hg(e,t,n){var o=t(e),r=gg(n);return o.orThunk((function(){return r(e)?ve.none():function(t){for(var n=e.dom,o=gg(r);n.parentNode;){n=n.parentNode;var i=_t.fromDom(n),a=t(i);if(a.isSome())return a;if(o(i))break}return ve.none()}(t)}))}function pg(e,t,n){var o=e.formatter.get(n);if(o)for(var r=0;r<o.length;r++){var i=o[r];if(ul(i)&&!1===i.inherit&&e.dom.is(t,i.selector))return 1}}function vg(e,t,n,o,r){var i=e.dom.getRoot();return t!==i&&(t=e.dom.getParent(t,(function(t){return!!pg(e,t,n)||t.parentNode===i||!!nh(e,t,n,o,!0)})),!!nh(e,t,n,o,r))}function bg(e,t,n){return!!th(t,n.inline)||!!th(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0)}function yg(e,t,n,o,r,i){var u=n[o];if(S(n.onmatch))return n.onmatch(t,n,o);if(u)if(C(u.length)){for(var c in u)if(_e(u,c)){var s="attributes"===o?e.getAttrib(t,c):nl(e,t,c),l=Zs(u[c],i),f=a(s)||Be(s);if(!f||!a(l)){if(r&&f&&!n.exact)return;if((!r||n.exact)&&!th(s,tl(e,l,c)))return}}}else for(var d=0;d<u.length;d++)if("attributes"===o?e.getAttrib(t,u[d]):nl(e,t,u[d]))return 1;return 1}function xg(e,t,n,o,r){if(o)return vg(e,o,t,n,r);if(o=e.selection.getNode(),vg(e,o,t,n,r))return!0;var i=e.selection.getStart();return!(i===o||!vg(e,i,t,n,r))}function wg(e){return 0<function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==oh||1<e.childNodes.length)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t}(e).length}function Cg(e){if(e){var t=new zo(e,e);for(e=t.current();e;e=t.next())if(Fn(e))return e}return null}function Sg(e){var t=_t.fromTag("span");return pn(t,{id:rh,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&Nn(t,_t.fromText(oh)),t}function kg(e,t,n){void 0===n&&(n=!0);var o,r,i,a,u,c,s,l,f=e.dom,d=e.selection;wg(t)?Fm(e,!1,_t.fromDom(t),n):(o=d.getRng(),r=f.getParent(t,f.isBlock),i=o.startContainer,a=o.startOffset,u=o.endContainer,c=o.endOffset,(l=Cg(t))&&l.nodeValue.charAt(0)===oh&&l.deleteData(0,1),s=l,f.remove(t,!0),i===s&&0<a&&o.setStart(s,a-1),u===s&&0<c&&o.setEnd(s,c-1),r&&f.isEmpty(r)&&am(_t.fromDom(r)),d.setRng(o))}function _g(e,t,n){void 0===n&&(n=!0);var o=e.dom,r=e.selection;if(t)kg(e,t,n);else if(!(t=Ls(e.getBody(),r.getStart())))for(;t=o.get(rh);)kg(e,t,!1)}function Og(e,t){return e.appendChild(t),t}function Eg(e,t){var n=U(e,(function(e,t){return Og(e,t.cloneNode(!1))}),t);return Og(n,n.ownerDocument.createTextNode(oh))}function zg(e,t,o,r,i,a){var u,c,s=e.formatter,l=e.dom,f=F(Ce(s.get()),(function(e){return e!==r&&!De(e,"removeformat")}));if(0<F((u=e,c=o,j(f,(function(e,t){var n=il(u,t);return u.formatter.matchNode(c,t,{},n)?e.concat([t]):e}),[])),(function(t){return a=r,u=["inline","block","selector","attributes","styles","classes"],!H((i=e).formatter.get(t),(function(e){var t=o(e);return H(i.formatter.get(a),(function(e){var r,i=o(e),a=t,u=i;return n(r=void 0===r?p:r).eq(a,u)}))}));function o(e){return ae(e,(function(e,t){return H(u,(function(e){return e===t}))}))}var i,a,u})).length){var d=o.cloneNode(!1);return l.add(t,d),s.remove(r,i,d,a),l.remove(d),ve.some(d)}return ve.none()}function Tg(e,t){var n=e.schema.getTextInlineElements();return _e(n,Ot(t))&&!Hs(t.dom)&&!cn(t.dom)}V(["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"],(function(e){Zd.add(e)}));var Mg,Dg=["font","text-decoration","text-emphasis"],Ag=_(tm,!0,Gs),Ng=_(tm,!1,Gs),Bg=om(!0,rm),Rg=om(!1,rm),Hg=om(!0,Yn),Lg=om(!1,Yn),Vg=om(!0,sn),Pg=om(!1,sn),Ig=om(!0,im),Fg=om(!1,im),Ug=_(mm,!1),jg=_(mm,!0),Wg=_(dm,!1),qg=_(dm,!0),Gg=_(hm,!1),$g=_(hm,!0),Xg=oo([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),Kg=function(e){var t;return(8===Et(t=e)||"#comment"===Ot(t)?Nt:Pt)(e).bind(Kg).orThunk((function(){return ve.some(e)}))},Yg=function(e,t,n,o){void 0===o&&(o=!0),t.deleteContents();var r,i=Kg(n).getOr(n),a=_t.fromDom(e.dom.getParent(i.dom,e.dom.isBlock));return qo(a)&&(am(a),o&&e.selection.setCursorLocation(a.dom,0)),Ue(n,a)||V((fn(At(a),n)?[]:At(r=a).map(Tn).map((function(e){return F(e,(function(e){return!Ue(r,e)}))})).getOr([])).concat(Tn(n)),(function(e){Ue(e,a)||je(e,a)||!qo(e)||Bn(e)})),!0},Jg=function(e,t){return q(sm(t,e),(function(e){return _n(e)&&"caption"===Ot(e)}))},Qg=function(e,t){return am(t),e.selection.setCursorLocation(t.dom,0),ve.some(!0)},Zg=Kn,eh=function(e,t){t(e),e.firstChild&&eh(e.firstChild,t),e.next&&eh(e.next,t)},th=el,nh=function(e,t,n,o,r){var i=e.formatter.get(n),a=e.dom;if(i&&t)for(var u=0;u<i.length;u++){var c=i[u];if(bg(e.dom,t,c)&&yg(a,t,c,"attributes",r,o)&&yg(a,t,c,"styles",r,o)){var s=c.classes;if(s)for(var l=0;l<s.length;l++)if(!e.dom.hasClass(t,Zs(s[l],o)))return;return c}}},oh=br,rh="_mce_caret",ih={},ah=fe,uh=se;function ch(e){return Pn(e)&&!qs(e)&&!Hs(e)&&!cn(e)}function sh(e,t){for(var n=e;n;n=n[t]){if(Fn(n)&&Ne(n.data))return e;if(Pn(n)&&!qs(n))return n}return e}function lh(e,t,n){var o=$d(e);if(t&&n&&(t=sh(t,"previousSibling"),n=sh(n,"nextSibling"),o.compare(t,n))){for(var r=t.nextSibling;r&&r!==n;){var i=r;r=r.nextSibling;t.appendChild(i)}return e.remove(n),kt.each(kt.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n}function fh(e,t,n,o){var r;o&&!1!==t.merge_siblings&&(r=lh(e,Ys(o),o),lh(e,r,Ys(r,!0)))}function dh(e,t){return function(n){return!(!n||!nl(e,n,t))}}function mh(e,t,n){return function(o){var r,i;e.setStyle(o,t,n),""===o.getAttribute("style")&&o.removeAttribute("style"),r=e,"SPAN"===(i=o).nodeName&&0===r.getAttribs(i).length&&r.remove(i,!0)}}function gh(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)}function hh(e,t,n){var o,r=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"];return Pn(r)&&(o=r.childNodes.length-1,!n&&i&&i--,r=r.childNodes[o<i?o:i]),Fn(r)&&n&&i>=r.nodeValue.length&&(r=new zo(r,e.getBody()).next()||r),Fn(r)&&!n&&0===i&&new zo(r,e.getBody()).prev()||r}function ph(e,t){var n=t?"firstChild":"lastChild";if(/^(TR|TH|TD)$/.test(e.nodeName)&&e[n]){var o=e[n];return"TR"===e.nodeName&&o[n]||o}return e}function vh(e,t,n,o){var r=e.create(n,o);return t.parentNode.insertBefore(r,t),r.appendChild(t),r}function bh(e,t,n,o,r){var i=_t.fromDom(t),a=_t.fromDom(e.create(o,r));return $t(a,(n?Ht:Rt)(i)),n?(Wt(i,a),Gt(a,i)):(qt(i,a),Nn(a,i)),a.dom}function yh(e,t,n,o){var r=Ys(t,n,o);return a(r)||"BR"===r.nodeName||e.isBlock(r)}function xh(e,t,n,o,r){var i,a,u=e.dom,c=u,s=o;if(!(cl(a=t)&&up(s,a.inline)||al(a)&&up(s,a.block)||ul(a)&&Pn(s)&&c.is(s,a.selector)||t.links&&"A"===o.nodeName))return rp.keep();var l,f,d,m,g,h,p,v,b=o;if(cl(t)&&"all"===t.remove&&y(t.preserve_attributes)){var x=F(u.getAttribs(b),(function(e){return R(t.preserve_attributes,e.name.toLowerCase())}));if(u.removeAllAttribs(b),V(x,(function(e){return u.setAttrib(b,e.name,e.value)})),0<x.length)return rp.rename("span")}if("all"!==t.remove){ap(t.styles,(function(e,o){e=tl(u,Zs(e,n),o+""),k(o)&&(o=e,r=null),!t.remove_similar&&r&&!up(nl(u,r,o),e)||u.setStyle(b,o,""),i=!0})),i&&""===u.getAttrib(b,"style")&&(b.removeAttribute("style"),b.removeAttribute("data-mce-style")),ap(t.attributes,(function(e,o){var i;if(e=Zs(e,n),k(o)&&(o=e,r=null),t.remove_similar||!r||up(u.getAttrib(r,o),e))if("class"===o&&(e=u.getAttrib(b,o))&&(i="",V(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(i+=(i?" ":"")+e)})),i))u.setAttrib(b,o,i);else{if(ip.test(o)&&b.removeAttribute("data-mce-"+o),"style"===o&&rn(["li"])(b)&&"none"===u.getStyle(b,"list-style-type"))return b.removeAttribute(o),void u.setStyle(b,"list-style-type","none");"class"===o&&b.removeAttribute("className"),b.removeAttribute(o)}})),ap(t.classes,(function(e){e=Zs(e,n),r&&!u.hasClass(r,e)||u.removeClass(b,e)}));for(var w=u.getAttribs(b),C=0;C<w.length;C++){var S=w[C].nodeName;if(0!==S.indexOf("_")&&0!==S.indexOf("data-"))return rp.keep()}}return"none"!==t.remove?(l=e,d=t,h=(f=b).parentNode,p=l.dom,v=xc(l),al(d)&&(v?h===p.getRoot()&&(d.list_block&&up(f,d.list_block)||V(we(f.childNodes),(function(e){Qs(l,v,e.nodeName.toLowerCase())?m?m.appendChild(e):(m=vh(p,e,v),p.setAttribs(m,l.settings.forced_root_block_attrs)):m=null}))):p.isBlock(f)&&!p.isBlock(h)&&(yh(p,f,!1)||yh(p,f.firstChild,!0,!0)||f.insertBefore(p.create("br"),f.firstChild),yh(p,f,!0)||yh(p,f.lastChild,!1,!0)||f.appendChild(p.create("br")))),ul(g=d)&&cl(g)&&fn(ue(g,"mixed"),!0)&&!up(d.inline,f)||p.remove(f,!0),rp.removed()):rp.keep()}function wh(e,t,n,o,r){return xh(e,t,n,o,r).fold(M,(function(t){return e.dom.rename(o,t),!0}),D)}function Ch(e,t,n,o,r){function i(o){var i,a,u,c,s,l=(a=t,u=n,c=r,V(rl((i=e).dom,o.parentNode).reverse(),(function(e){var t;s||"_start"===e.id||"_end"===e.id||(t=nh(i,e,a,u,c))&&!1!==t.split&&(s=e)})),s);return function(e,t,n,o,r,i,a,u){var c,s,l=e.dom;if(n){for(var d=n.parentNode,m=o.parentNode;m&&m!==d;m=m.parentNode){for(var g=l.clone(m,!1),h=0;h<t.length&&null!==(g=function(e,t,n){return xh(e,t,u,n,n).fold(f(n),(function(t){return e.dom.createFragment().appendChild(n),e.dom.rename(n,t)}),f(null))}(e,t[h],g));h++);g&&(c&&g.appendChild(c),s=s||g,c=g)}a.mixed&&l.isBlock(n)||(o=l.split(n,o)),c&&(r.parentNode.insertBefore(c,r),s.appendChild(r),cl(a)&&fh(l,a,0,c))}return o}(e,d,l,o,o,0,m,n)}function a(t){return H(d,(function(o){return wh(e,o,n,t,t)}))}function c(e){var t,n=h.get(e?"_start":"_end"),o=n[e?"firstChild":"lastChild"];return qs(t=o)&&Pn(t)&&("_start"===t.id||"_end"===t.id)&&(o=o[e?"firstChild":"lastChild"]),Fn(o)&&0===o.data.length&&(o=e?n.previousSibling||n.nextSibling:n.nextSibling||n.previousSibling),h.remove(n,!0),o}function s(t){var n=yl(e,t,d,t.collapsed);if(m.split){if(n=_f(n),(r=hh(e,n,!0))!==(a=hh(e,n))){if(r=ph(r,!0),a=ph(a,!1),gh(h,r,a)){var o=ve.from(r.firstChild).getOr(r);return i(bh(h,o,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void c(!0)}if(gh(h,a,r))return o=ve.from(a.lastChild).getOr(a),i(bh(h,o,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void c(!1);var r=vh(h,r,"span",{id:"_start","data-mce-type":"bookmark"}),a=vh(h,a,"span",{id:"_end","data-mce-type":"bookmark"}),u=h.createRng();u.setStartAfter(r),u.setEndBefore(a),xl(h,u,(function(e){V(e,(function(e){qs(e)||qs(e.parentNode)||i(e)}))})),i(r),i(a),r=c(!0),a=c()}else r=a=i(r);n.startContainer=r.parentNode||r,n.startOffset=h.nodeIndex(r),n.endContainer=a.parentNode||a,n.endOffset=h.nodeIndex(a)+1}xl(h,n,(function(e){V(e,v)}))}var l,d=e.formatter.get(t),m=d[0],g=!0,h=e.dom,p=e.selection,v=function(t){var n=!0,o=!1;Pn(t)&&h.getContentEditable(t)&&(n=g,g="true"===h.getContentEditable(t),o=!0);var r,i,c=we(t.childNodes);if(g&&!o&&(r=a(t),i=t.parentNode,!r&&u(i)&&sl(m)&&a(i)),m.deep&&c.length){for(var s=0;s<c.length;s++)v(c[s]);o&&(g=n)}V(["underline","line-through","overline"],(function(n){Pn(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&ol(h,t.parentNode)===n&&wh(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))};if(o)return Xs(o)?((l=h.createRng()).setStartBefore(o),l.setEndAfter(o),s(l)):s(o),void mf(e,t,o,n);if("false"!==h.getContentEditable(p.getNode()))p.isCollapsed()&&cl(m)&&!Sl(e).length?function(e,t,n,o){var r,i,a,u,c,s,l,f,d,m,g,h,p,v,b,y=e.dom,x=e.selection,w=[],C=x.getRng(),S=C.startContainer,k=C.startOffset,O=S;for(3===S.nodeType&&(k!==S.nodeValue.length&&(r=!0),O=O.parentNode);O;){if(nh(e,O,t,n,o)){i=O;break}O.nextSibling&&(r=!0),w.push(O),O=O.parentNode}i&&(r?(a=x.getBookmark(),C.collapse(!0),u=_f(yl(e,C,e.formatter.get(t),!0)),e.formatter.remove(t,n,u,o),x.moveToBookmark(a)):(c=Ls(e.getBody(),i),d=s=Sg(!1).dom,(h=(g=e.dom).getParent(m=null!==c?c:i,_(Js,e)))&&g.isEmpty(h)?m.parentNode.replaceChild(d,m):(v=gu(p=_t.fromDom(m),"br"),b=F(function(){for(var e=[],t=p.dom;t;)e.push(_t.fromDom(t)),t=t.lastChild;return e}().slice(-1),Ao),v.length===b.length&&V(b,Bn),g.isEmpty(m)?m.parentNode.replaceChild(d,m):g.insertAfter(d,m)),l=zg(e,s,i,t,n,o),f=Eg(w.concat(l.toArray()),s),kg(e,c,!1),x.setCursorLocation(f,1),y.isEmpty(i)&&y.remove(i)))}(e,t,n,r):(Tl(p,!0,(function(){zl(e,s)})),cl(m)&&xg(e,t,n,p.getStart())&&Ks(h,p,p.getRng()),e.nodeChanged()),mf(e,t,o,n);else{o=p.getNode();for(var b=0;b<d.length&&(!d[b].ceFalseOverride||!wh(e,d[b],n,o,o));b++);mf(e,t,o,n)}}function Sh(e){return Pn(e)&&!qs(e)&&!Hs(e)&&!cn(e)}function kh(e){return _e(e,"vars")}function _h(e,t,n,o,r){return W(t,(function(t){var i=e.formatter.matchNode(t,n,null!=r?r:{},o);return!C(i)}),(function(t){return pg(e,t,n)||!o&&u(e.formatter.matchNode(t,n,r,!0))}))}function Oh(e,t){var n=null!=t?t:fp(e);return F(rl(e.dom,n),(function(e){return Pn(e)&&!cn(e)}))}function Eh(e,t){var n=(t||document).createDocumentFragment();return V(e,(function(e){n.appendChild(e.dom)})),_t.fromDom(n)}function zh(e,t,n){return{element:e,width:t,rows:n}}function Th(e,t){return{element:e,cells:t}}function Mh(e,t){var n=parseInt(vn(e,t),10);return isNaN(n)?1:n}function Dh(e){return j(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)}function Ah(e,t){for(var n=e.rows,o=0;o<n.length;o++)for(var r=n[o].cells,i=0;i<r.length;i++)if(Ue(r[i],t))return ve.some({x:i,y:o});return ve.none()}function Nh(e,t,n,o,r){for(var i=[],a=e.rows,u=n;u<=r;u++){var c=a[u].cells,s=t<o?c.slice(t,o+1):c.slice(o,t+1);i.push(Th(a[u].element,s))}return i}function Bh(e,t){var n,o,r,i=_t.fromDom(t.commonAncestorContainer),a=sm(i,e),u=F(a,(function(e){return Do(e)||cr(e)})),c=(r=t,q(o=a,(function(e){return"li"===Ot(e)&&_l(e,r)})).fold(f([]),(function(e){return q(o,(function(e){return"ul"===Ot(e)||"ol"===Ot(e)})).map((function(e){var t=_t.fromTag(Ot(e));return function(e,t){var n=e.dom;ne(t,(function(e,t){!function(e,t,n){if(!v(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);mn(e)&&e.style.setProperty(t,n)}(n,t,e)}))}(t,ae(Cn(e),(function(e,t){return Ye(t,"list-style")}))),[_t.fromTag("li"),t]})).getOr([])})));return L(u.concat(c.length?c:dr(n=i)?At(n).filter(fr).fold(f([]),(function(e){return[n,e]})):fr(n)?[n]:[]),yu)}function Rh(){return Eh([])}function Hh(e,t){return po(t[0],"table",_(Ue,e)).bind((function(e){var n,o,r=t[0],i=t[t.length-1],a=function(e){var t=zh(yu(e),0,[]);return V(gu(e,"tr"),(function(e,n){V(gu(e,"td,th"),(function(o,r){!function(e,t,n,o,r){for(var i=Mh(r,"rowspan"),a=Mh(r,"colspan"),u=e.rows,c=n;c<n+i;c++){u[c]||(u[c]=Th(xu(o),[]));for(var s=t;s<t+a;s++)u[c].cells[s]=c===n&&s===t?r:yu(r)}}(t,function(e,t,n){for(;o=t,((r=e.rows)[n]?r[n].cells:[])[o];)t++;var o,r;return t}(t,r,n),n,e,o)}))})),zh(t.element,Dh(t.rows),t.rows)}(e);return o=i,Ah(n=a,r).bind((function(e){return Ah(n,o).map((function(t){return o=n,r=e.x,i=e.y,a=t.x,c=i<(u=t.y)?Nh(o,r,i,a,u):Nh(o,r,u,a,i),zh(o.element,Dh(c),c);var o,r,i,a,u,c}))})).map((function(e){return Eh([(n=L((t=e).rows,(function(e){var t=L(e.cells,(function(e){var t=xu(e);return yn(t,"colspan"),yn(t,"rowspan"),t})),n=yu(e.element);return $t(n,t),n})),o=yu(t.element),$t(r=_t.fromTag("tbody"),n),Nn(o,r),o)]);var t,n,o,r}))})).getOrThunk(Rh)}function Lh(e,t){return 0<=t&&t<e.length&&Gs(e.charAt(t))}function Vh(e,t){var n=xr(e.innerText);return t?n.replace(/^[ \f\n\r\t\v]+/,""):n}function Ph(e){return Pn(e)?e.outerHTML:Fn(e)?Xr.encodeRaw(e.data,!1):Un(e)?"\x3c!--"+e.data+"--\x3e":""}function Ih(e){var t,n=$((t=e.getBody(),F(L(we(t.childNodes),Ph),(function(e){return 0<e.length}))),(function(t){var n=Gd(e.serializer,t);return 0<n.length?[n]:[]})),o=n.join("");return-1!==o.indexOf("</iframe>")?{type:"fragmented",fragments:n,content:"",bookmark:null,beforeBookmark:null}:{type:"complete",fragments:null,content:o,bookmark:null,beforeBookmark:null}}function Fh(e,t,n){var o,r,i,a,c,s,l,f,d,m,g,h=n?t.beforeBookmark:t.bookmark;function p(e,t,n,o){for(var r=e;r-t<o&&r<n&&a[r]===c[r-t];)++r;return{start:e,end:r,diag:t}}"fragmented"===t.type?(o=t.fragments,r=e.getBody(),i=L(we(r.childNodes),Ph),function(e,t){var n=0;V(e,(function(e){var o,r,i,a,u,c,s,l;0===e[0]?n++:1===e[0]?(a=t,u=e[1],c=n,l=function(e){var t,n=document.createElement("div"),o=document.createDocumentFragment();for(e&&(n.innerHTML=e);t=n.firstChild;)o.appendChild(t);return o}(u),a.hasChildNodes()&&c<a.childNodes.length?(s=a.childNodes[c]).parentNode.insertBefore(l,s):a.appendChild(l),n++):2===e[0]&&(r=n,(o=t).hasChildNodes()&&r<o.childNodes.length&&(i=o.childNodes[r]).parentNode.removeChild(i))}))}((c=o,s=(a=i).length+c.length+2,l=new Array(s),f=new Array(s),d=function(e,t,n,o,r){var i=m(e,t,n,o);if(null===i||i.start===t&&i.diag===t-o||i.end===e&&i.diag===e-n)for(var u=e,s=n;u<t||s<o;)u<t&&s<o&&a[u]===c[s]?(r.push([0,a[u]]),++u,++s):o-n<t-e?(r.push([2,a[u]]),++u):(r.push([1,c[s]]),++s);else{d(e,i.start,n,i.start-i.diag,r);for(var l=i.start;l<i.end;++l)r.push([0,a[l]]);d(i.end,t,i.end-i.diag,o,r)}},m=function(e,t,n,o){var r=t-e,i=o-n;if(0==r||0==i)return null;var u,s,d,m,g,h=r-i,v=i+r,b=(v%2==0?v:1+v)/2;for(l[1+b]=e,f[1+b]=t+1,u=0;u<=b;++u){for(s=-u;s<=u;s+=2){for(d=s+b,s===-u||s!==u&&l[d-1]<l[d+1]?l[d]=l[d+1]:l[d]=l[d-1]+1,g=(m=l[d])-e+n-s;m<t&&g<o&&a[m]===c[g];)l[d]=++m,++g;if(h%2!=0&&h-u<=s&&s<=h+u&&f[d-h]<=l[d])return p(f[d-h],s+e-n,t,o)}for(s=h-u;s<=h+u;s+=2){for(d=s+b-h,s===h-u||s!==h+u&&f[d+1]<=f[d-1]?f[d]=f[d+1]-1:f[d]=f[d-1],g=(m=f[d]-1)-e+n-s;e<=m&&n<=g&&a[m]===c[g];)f[d]=m--,g--;if(h%2==0&&-u<=s&&s<=u&&f[d]<=l[d+h])return p(f[d],s+e-n,t,o)}}},g=[],d(0,a.length,0,c.length,g),g),r)):e.setContent(t.content,{format:"raw",no_selection:!u(h)||!Vs(h)||!h.isFakeCaret}),e.selection.moveToBookmark(h)}function Uh(e){return"fragmented"===e.type?e.fragments.join(""):e.content}function jh(e){var t=_t.fromTag("body",mp());return vu(t,Uh(e)),V(gu(t,"*[data-mce-bogus]"),Kt),t.dom.innerHTML}function Wh(e,t){return!(!e||!t)&&(o=t,Uh(e)===Uh(o)||(n=t,jh(e)===jh(n)));var n,o}function qh(e){return 0===e.get()}function Gh(e,t,n){qh(n)&&(e.typing=t)}function $h(e,t){e.typing&&(Gh(e,!1,t),e.add())}function Xh(e){return{undoManager:{beforeChange:function(t,n){var o=e,r=n;qh(t)&&r.set(ss(o.selection))},add:function(t,n,o,r,i,a){return function(e,t,n,o,r,i,a){var u=Ih(e);if(i=kt.extend(i=i||{},u),!1===qh(o)||e.removed)return null;var c=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:c,originalEvent:a}).isDefaultPrevented())return null;if(c&&Wh(c,i))return null;t.data[n.get()]&&r.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var s=e.getParam("custom_undo_redo_levels",0,"number");if(s&&t.data.length>s){for(var l=0;l<t.data.length-1;l++)t.data[l]=t.data[l+1];t.data.length--,n.set(t.data.length)}i.bookmark=ss(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(i),n.set(t.data.length-1);var f={level:i,lastLevel:c,originalEvent:a};return 0<n.get()?(e.setDirty(!0),e.fire("AddUndo",f),e.fire("change",f)):e.fire("AddUndo",f),i}(e,t,n,o,r,i,a)},undo:function(t,n,o){return r=e,a=n,u=o,(i=t).typing&&(i.add(),i.typing=!1,Gh(i,!1,a)),0<u.get()&&(u.set(u.get()-1),Fh(r,c=i.data[u.get()],!0),r.setDirty(!0),r.fire("Undo",{level:c})),c;var r,i,a,u,c},redo:function(t,n){return o=e,i=n,(r=t).get()<i.length-1&&(r.set(r.get()+1),Fh(o,a=i[r.get()],!1),o.setDirty(!0),o.fire("Redo",{level:a})),a;var o,r,i,a},clear:function(t,n){var o,r=e,i=n;(o=t).data=[],i.set(0),o.typing=!1,r.fire("ClearUndos")},reset:function(e){var t;(t=e).clear(),t.add()},hasUndo:function(t,n){return o=e,r=t,0<n.get()||r.typing&&r.data[0]&&!Wh(Ih(o),r.data[0]);var o,r},hasRedo:function(e,t){return n=e,t.get()<n.data.length-1&&!n.typing;var n},transact:function(e,t,n){return r=n,$h(o=e,t),o.beforeChange(),o.ignore(r),o.add();var o,r},ignore:function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},extra:function(t,n,o,r){var i,a,u=e,c=n,s=r;(i=t).transact(o)&&(a=i.data[c.get()].bookmark,Fh(u,i.data[c.get()-1],!0),i.transact(s)&&(i.data[c.get()-1].beforeBookmark=a))}},formatter:{match:function(t,n,o,r){return xg(e,t,n,o,r)},matchAll:function(t,n){return r=t,i=n,a=[],u={},c=(o=e).selection.getStart(),o.dom.getParent(c,(function(e){for(var t=0;t<r.length;t++){var n=r[t];!u[n]&&nh(o,e,n,i)&&(u[n]=!0,a.push(n))}}),o.dom.getRoot()),a;var o,r,i,a,u,c},matchNode:function(t,n,o,r){return nh(e,t,n,o,r)},canApply:function(t){return function(e){var n=e.formatter.get(t),o=e.dom;if(n)for(var r=rl(o,e.selection.getStart()),i=n.length-1;0<=i;i--){var a=n[i];if(!ul(a)||u(a.defaultBlock))return!0;for(var c=r.length-1;0<=c;c--)if(o.is(r[c],a.selector))return!0}return!1}(e)},closest:function(t){return o=e,r=t,ve.from(o.selection.getStart(!0)).bind((function(e){return hg(_t.fromDom(e),(function(e){return te(r,(function(t){return nh(o,e.dom,n=t)?ve.some(n):ve.none();var n}))}),n)})).getOrNull();function n(e){return Ue(e,_t.fromDom(o.getBody()))}var o,r},apply:function(t,n,o){return lp(e,t,n,o)},remove:function(t,n,o,r){return Ch(e,t,n,o,r)},toggle:function(t,n,o){var r,i=t,a=n,u=o,c=(r=e).formatter.get(i);(!xg(r,i,a,u)||"toggle"in c[0]&&!c[0].toggle?lp:Ch)(r,i,a,u)},formatChanged:function(t,n,o,r,i){return function(e,t,n,o,r,i){var a,u,c,s,l,f,d,m,g;return null===t.get()&&(u=e,(a=t).set({}),u.on("NodeChange",(function(e){dp(u,e.element,a.get())})),u.on("FormatApply FormatRemove",(function(e){var t=ve.from(e.node).map((function(e){return Xs(e)?e:e.startContainer})).bind((function(e){return Pn(e)?ve.some(e):ve.from(e.parentElement)})).getOrThunk((function(){return fp(u)}));dp(u,t,a.get())}))),c=e,l=n,f=o,d=r,m=i,g=(s=t).get(),V(l.split(","),(function(e){function t(){var t=Oh(c);return _h(c,t,e,d,m).isSome()}var n,o=ue(g,e).getOrThunk((function(){var t={withSimilar:{state:tu(!1),similar:!0,callbacks:[]},withoutSimilar:{state:tu(!1),similar:!1,callbacks:[]},withVars:[]};return g[e]=t}));C(m)?((n=d?o.withSimilar:o.withoutSimilar).callbacks.push(f),1===n.callbacks.length&&n.state.set(t())):o.withVars.push({state:tu(t()),similar:d,vars:m,callback:f})})),s.set(g),{unbind:function(){var e,r=n,i=o,a=(e=t).get();V(r.split(","),(function(e){return ue(a,e).each((function(t){a[e]={withSimilar:Ee(Ee({},t.withSimilar),{callbacks:F(t.withSimilar.callbacks,(function(e){return e!==i}))}),withoutSimilar:Ee(Ee({},t.withoutSimilar),{callbacks:F(t.withoutSimilar.callbacks,(function(e){return e!==i}))}),withVars:F(t.withVars,(function(e){return e.callback!==i}))}}))})),e.set(a)}}}(e,t,n,o,r,i)}},editor:{getContent:function(t,n){return o=e,r=t,i=n,ve.from(o.getBody()).fold(f("tree"===r.format?new Ad("body",11):""),(function(e){return t=o,a=e,u=i,d=Ee(Ee({},n=r),{format:u,get:!0,getInner:!0}),g="raw"===(m=n.no_events?d:t.fire("BeforeGetContent",d)).format?kt.trim(Yd(t.serializer,a.innerHTML)):"text"===m.format?t.dom.isEmpty(a)?"":xr(a.innerText||a.textContent):"tree"===m.format?t.serializer.serialize(a,m):(s=(c=t).serializer.serialize(a,m),l=xc(c),f=new RegExp("^(<"+l+"[^>]*>( | |\\s| |<br \\/>|)<\\/"+l+">[\r\n]*|<br \\/>[\r\n]*)$"),s.replace(f,"")),R(["text","tree"],m.format)||hr(_t.fromDom(a))?m.content=g:m.content=kt.trim(g),(m.no_events?m:t.fire("GetContent",m)).content;var t,n,a,u,c,s,l,f,d,m,g}));var o,r,i},setContent:function(t,n){return function(e,t,n){var o,r=(o=t,Ee(Ee({format:"html"},n),{set:!0,content:dg(o)?"":o})),i=n.no_events?r:e.fire("BeforeSetContent",r);return dg(t)||(t=i.content),ve.from(e.getBody()).fold(f(t),(function(n){return dg(t)?function(e,t,n,o){var r,i,a,u;r=e.parser.getNodeFilters(),i=e.parser.getAttributeFilters(),a=n,u=function(e,t){var n,o,r={},i={},u=[];for(n in a.firstChild&&eh(a.firstChild,(function(n){V(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),V(t,(function(e){"string"==typeof n.attr(e.name)&&(i[e.name]?i[e.name].nodes.push(n):i[e.name]={filter:e,nodes:[n]})}))})),r)_e(r,n)&&u.push(r[n]);for(o in i)_e(i,o)&&u.push(i[o]);return u}(r,i),V(u,(function(e){V(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}));var c=Kd({validate:e.validate},e.schema).serialize(n);return o.content=hr(_t.fromDom(t))?c:kt.trim(c),mg(e,o.content,o.no_selection),o.no_events||e.fire("SetContent",o),n}(e,n,t,i):(o=e,r=n,u=i,0===(a=t).length||/^\s+$/.test(a)?(c='<br data-mce-bogus="1">',"TABLE"===r.nodeName?a="<tr><td>"+c+"</td></tr>":/^(UL|OL)$/.test(r.nodeName)&&(a="<li>"+c+"</li>"),a=(s=xc(o))&&o.schema.isValidChild(r.nodeName.toLowerCase(),s.toLowerCase())?(a=c,o.dom.createHTML(s,wc(o),a)):a||'<br data-mce-bogus="1">',mg(o,a,u.no_selection),o.fire("SetContent",u)):("raw"!==u.format&&(a=Kd({validate:o.validate},o.schema).serialize(o.parser.parse(a,{isRootContent:!0,insert:!0}))),u.content=hr(_t.fromDom(r))?a:kt.trim(a),mg(o,u.content,u.no_selection),u.no_events||o.fire("SetContent",u)),u.content);var o,r,a,u,c,s}))}(e,t,n)},insertContent:function(t,n){return fg(e,t,n)},addVisual:function(t){var n,o=t,r=(n=e).dom,i=u(o)?o:n.getBody();C(n.hasVisual)&&(n.hasVisual=n.getParam("visual",!0,"boolean")),V(r.select("table,a",i),(function(e){switch(e.nodeName){case"TABLE":var t=n.getParam("visual_table_class","mce-item-table","string"),o=r.getAttrib(e,"border");o&&"0"!==o||!n.hasVisual?r.removeClass(e,t):r.addClass(e,t);break;case"A":var i,a;r.getAttrib(e,"href")||(i=r.getAttrib(e,"name")||e.id,a=n.getParam("visual_anchor_class","mce-item-anchor","string"),i&&n.hasVisual?r.addClass(e,a):r.removeClass(e,a))}})),n.fire("VisualAid",{element:o,hasVisual:n.hasVisual})}},selection:{getContent:function(t,n){return function(e,t,n){var o,r=(o=t,Ee(Ee({},n=void 0===n?{}:n),{format:o,get:!0,selection:!0})),i=e.fire("BeforeGetContent",r);if(i.isDefaultPrevented())return e.fire("GetContent",i),i.content;if("text"===i.format)return m=e,ve.from(m.selection.getRng()).map((function(e){var t=ve.from(m.dom.getParent(e.commonAncestorContainer,m.dom.isBlock)),n=m.getBody(),o=t.map((function(e){return e.nodeName})).getOr("div").toLowerCase(),r=wt.browser.isIE()&&"pre"!==o,i=m.dom.add(n,o,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},e.cloneContents()),a=Vh(i,r),u=xr(i.textContent);if(m.dom.remove(i),Lh(u,0)||Lh(u,u.length-1)){var c=Vh(t.getOr(n),r),s=c.indexOf(a);return-1===s?a:(Lh(c,s-1)?" ":"")+a+(Lh(c,s+a.length)?" ":"")}return a})).getOr("");i.getInner=!0;var a,u,c,s,l,f,d,m,g=(u=i,c=(a=e).selection.getRng(),s=a.dom.create("body"),l=a.selection.getSel(),f=hd(a,wl(l)),(d=u.contextual?function(e,t){var n,o,r,i,a,u,c,s=Cl(t,e);return 0<s.length?Hh(e,s):(n=e,0<(o=t).length&&o[0].collapsed?Rh():(r=n,i=o[0],a=_t.fromDom(i.cloneContents()),c=j(u=Bh(r,i),(function(e,t){return Nn(t,e),t}),a),0<u.length?Eh([c]):c))}(_t.fromDom(a.getBody()),f).dom:c.cloneContents())&&s.appendChild(d),a.selection.serializer.serialize(s,u));return"tree"===i.format?g:(i.content=e.selection.isCollapsed()?"":g,e.fire("GetContent",i),i.content)}(e,t,n)}},raw:{getModel:function(){return ve.none()}}}}function Kh(e){return _e(e.plugins,"rtc")}function Yh(e){var t=e;return ue(e.plugins,"rtc").bind((function(e){return ve.from(e.setup)})).fold((function(){return t.rtcInstance=Xh(e),ve.none()}),(function(e){var n,o;return t.rtcInstance=(n=f(null),o=f(""),{undoManager:{beforeChange:c,add:n,undo:n,redo:n,clear:c,reset:c,hasUndo:M,hasRedo:M,transact:n,ignore:c,extra:c},formatter:{match:M,matchAll:f([]),matchNode:f(void 0),canApply:M,closest:o,apply:c,remove:c,toggle:c,formatChanged:f({unbind:c})},editor:{getContent:o,setContent:o,insertContent:c,addVisual:c},selection:{getContent:o},raw:{getModel:f(ve.none())}}),ve.some((function(){return e().then((function(e){return t.rtcInstance=(o=e.undoManager,r=e.formatter,i=e.editor,a=e.selection,u=e.raw,{undoManager:{beforeChange:o.beforeChange,add:o.add,undo:o.undo,redo:o.redo,clear:o.clear,reset:o.reset,hasUndo:o.hasUndo,hasRedo:o.hasRedo,transact:function(e,t,n){return o.transact(n)},ignore:function(e,t){return o.ignore(t)},extra:function(e,t,n,r){return o.extra(n,r)}},formatter:{match:function(e,t,o,i){return r.match(e,n(t),i)},matchAll:r.matchAll,matchNode:r.matchNode,canApply:function(e){return r.canApply(e)},closest:function(e){return r.closest(e)},apply:function(e,t,o){return r.apply(e,n(t))},remove:function(e,t,o,i){return r.remove(e,n(t))},toggle:function(e,t,o){return r.toggle(e,n(t))},formatChanged:function(e,t,n,o,i){return r.formatChanged(t,n,o,i)}},editor:{getContent:function(e,t){return i.getContent(e)},setContent:function(e,t){return i.setContent(e,t)},insertContent:function(e,t){return i.insertContent(e)},addVisual:i.addVisual},selection:{getContent:function(e,t){return a.getContent(t)}},raw:{getModel:function(){return ve.some(u.getRawModel())}}}),e.rtc.isRemote;function n(e){return b(e)?e:{}}var o,r,i,a,u}))}))}))}function Jh(e){return e.rtcInstance||Xh(e)}function Qh(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")}function Zh(e){return 0===e.dom.length?(Bn(e),ve.none()):ve.some(e)}function ep(e,t,n,o){e.bind((function(e){return(o?Dm:Mm)(e.dom,o?e.dom.length:0),t.filter(On).map((function(t){var r=n,i=o,a=e.dom,u=t.dom,c=(i?a:u).length;i?(Am(a,u,!1,!i),r.setStart(u,c)):(Am(u,a,!1,!i),r.setEnd(u,c))}))})).orThunk((function(){var e=o;return t.filter((function(e){return Nl.isBookmarkNode(e.dom)})).bind(e?Bt:Nt).or(t).filter(On).map((function(e){var t,n=o;At(t=e).each((function(e){var o=t.dom;n&&Sm(e,oc(o,0))?Mm(o,0):!n&&km(e,oc(o,o.length))&&Dm(o,o.length)}))}))}))}function tp(e,t,n){var o;e&&_e(e,t)&&(0===(o=F(e[t],(function(e){return e!==n}))).length?delete e[t]:e[t]=o)}Mg=function(e){var t,n=e.selection.getRng(),o=rn(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),uh(ah(ah(t,o),(function(e){return o(e.previousSibling)&&-1!==de(t,e.previousSibling)})),(function(e){var t,n=e.previousSibling;Wa(t=e).remove(),Wa(n).append("<br><br>").append(t.childNodes)})))},ih.pre||(ih.pre=[]),ih.pre.push(Mg);var np=kt.each,op=function(e,t,n){np(e.childNodes,(function(e){ch(e)&&(t(e)&&n(e),e.hasChildNodes()&&op(e,t,n))}))},rp=oo([{keep:[]},{rename:["name"]},{removed:[]}]),ip=/^(src|href|style)$/,ap=kt.each,up=el,cp=kt.each,sp=kt.each,lp=function(e,t,n,o){function r(e,t){var r;S((t=void 0===t?m:t).onformat)&&t.onformat(e,t,n,o),sp(t.styles,(function(t,o){h.setStyle(e,o,Zs(t,n))})),!t.styles||(r=h.getAttrib(e,"style"))&&h.setAttrib(e,"data-mce-style",r),sp(t.attributes,(function(t,o){h.setAttrib(e,o,Zs(t,n))})),sp(t.classes,(function(t){t=Zs(t,n),h.hasClass(e,t)||h.addClass(e,t)}))}function i(e,t){var n=!1;return sp(e,(function(e){return!!ul(e)&&(u(e.collapsed)&&e.collapsed!==g||!h.is(t,e.selector)||Hs(t)?void 0:(r(t,e),!(n=!0)))})),n}function a(o,a,c){var s=[],l=!0,f=m.inline||m.block,g=function(e){if(v(e)){var t=h.create(e);return r(t),t}return null}(f);xl(o,a,(function(a){var h,p=function(a){var v=!1,b=l,y=a.nodeName.toLowerCase(),x=a.parentNode,w=x.nodeName.toLowerCase();if(Pn(a)&&o.getContentEditable(a)&&(b=l,l="true"===o.getContentEditable(a),v=!0),qn(a)&&!function(e,t,n,o){if(e.getParam("format_empty_lines",!1,"boolean")&&cl(t)){var r=Ee(Ee({},e.schema.getTextBlockElements()),{td:{},th:{},li:{},dt:{},dd:{},figcaption:{},caption:{},details:{},summary:{}}),i=(a=_t.fromDom(n),c=function(e){return Hs(e.dom)},((s=(u=a).dom).parentNode?function(e,t){return q(e.dom.childNodes,(function(e){return t(_t.fromDom(e))})).map(_t.fromDom)}(_t.fromDom(s.parentNode),(function(e){return!Ue(u,e)&&c(e)})):ve.none()).isSome());return ce(r,o)&&qo(_t.fromDom(n.parentNode),!1)&&!i}var a,u,c,s}(e,m,a,w))return h=null,void(al(m)&&o.remove(a));if(al(m)&&m.wrapper&&nh(e,a,t,n))h=null;else{if(l&&!v&&al(m)&&!m.wrapper&&Js(e,y)&&Qs(e,w,f)){var C=o.rename(a,f);return r(C),s.push(C),void(h=null)}if(ul(m)){var S=i(d,a);if(!S&&u(x)&&sl(m)&&(S=i(d,x)),!cl(m)||S)return void(h=null)}!l||v||!Qs(e,f,y)||!Qs(e,w,f)||!c&&Fn(a)&&yr(a.data)||Hs(a)||cl(m)&&o.isBlock(a)?(h=null,V(we(a.childNodes),p),v&&(l=b),h=null):(h||(h=o.clone(g,!1),a.parentNode.insertBefore(h,a),s.push(h)),h.appendChild(a))}};V(a,p)})),!0===m.links&&V(s,(function(e){var t=function(e){"A"===e.nodeName&&r(e,m),V(we(e.childNodes),t)};t(e)})),V(s,(function(i){var a,c,l,f,g,h,p,v,b,y,x,w,C,S,k,_,O,E,z=(a=0,V(i.childNodes,(function(e){var t;u(t=e)&&Fn(t)&&0===t.length||qs(e)||a++})),a);function T(e){var t;1===e.nodeType&&e.parentNode&&1===e.parentNode.nodeType&&(t=ol(C,e.parentNode),C.getStyle(e,"color")&&t?C.setStyle(e,"text-decoration",t):C.getStyle(e,"text-decoration")===t&&C.setStyle(e,"text-decoration",null))}!(1<s.length)&&o.isBlock(i)||0!==z?(cl(m)||al(m)&&m.wrapper)&&(m.exact||1!==z||(i=q((w=i).childNodes,Sh).filter((function(e){return bg(o,e,m)})).map((function(e){var t=o.clone(e,!1);return r(t),o.replace(t,w,!0),o.remove(e,!0),t})).getOr(w)),_=e,O=n,E=i,cp(d,(function(e){var t,n,o;cl(e)&&cp(_.dom.select(e.inline,E),(function(t){ch(t)&&wh(_,e,O,t,e.exact?t:null)})),t=_.dom,(n=e).clear_child_styles&&(o=n.links?"*:not(a)":"*",np(t.select(o,E),(function(e){ch(e)&&np(n.styles,(function(n,o){t.setStyle(e,o,"")}))})))})),v=m,nh(p=e,(x=i).parentNode,b=t,y=n)&&wh(p,v,y,x)||v.merge_with_parents&&p.dom.getParent(x.parentNode,(function(e){if(nh(p,e,b,y))return wh(p,v,y,x),!0})),h=i,(g=m).styles&&g.styles.backgroundColor&&op(h,dh(o,"fontSize"),mh(o,"backgroundColor",Zs(g.styles.backgroundColor,n))),C=o,k=i,(S=m).styles&&(S.styles.color||S.styles.textDecoration)&&(kt.walk(k,T,"childNodes"),T(k)),c=o,f=i,!cl(l=m)||"sub"!==l.inline&&"sup"!==l.inline||(op(f,dh(c,"fontSize"),mh(c,"fontSize","")),c.remove(c.select("sup"===l.inline?"sub":"sup",f),!0)),fh(o,m,0,i)):o.remove(i,!0)}))}var c,s,l,f,d=e.formatter.get(t),m=d[0],g=!o&&e.selection.isCollapsed(),h=e.dom,p=e.selection;if("false"!==h.getContentEditable(p.getNode()))m&&(o?Xs(o)?i(d,o)||((c=h.createRng()).setStartBefore(o),c.setEndAfter(o),a(h,yl(e,c,d),!0)):a(h,o,!0):g&&cl(m)&&!Sl(e).length?function(e,t,n){var o,r=e.selection,i=r.getRng(),a=i.startOffset,u=i.startContainer.nodeValue,c=Ls(e.getBody(),r.getStart());c&&(o=Cg(c));var s,l,f,d,m=/[^\s\u00a0\u00ad\u200b\ufeff]/;u&&0<a&&a<u.length&&m.test(u.charAt(a))&&m.test(u.charAt(a-1))?(s=r.getBookmark(),i.collapse(!0),l=_f(yl(e,i,e.formatter.get(t))),e.formatter.apply(t,n,l),r.moveToBookmark(s)):(c&&o.nodeValue===oh||(f=e.getDoc(),d=Sg(!0).dom,o=(c=f.importNode(d,!0)).firstChild,i.insertNode(c),a=1),e.formatter.apply(t,n,c),r.setCursorLocation(o,a))}(e,t,n):(s=p.getNode(),l=d[0],e.settings.forced_root_block||!l.defaultBlock||h.getParent(s,h.isBlock)||lp(e,l.defaultBlock),p.setRng(ug(p.getRng())),Tl(p,!0,(function(){zl(e,(function(t,n){var o=n?t:yl(e,t,d);a(h,o,!1)}))})),Ks(h,p,p.getRng()),e.nodeChanged()),f=e,uh(ih[t],(function(e){e(f)}))),df(e,t,o,n);else{o=p.getNode();for(var b=0,y=d.length;b<y;b++){var x=d[b];if(x.ceFalseOverride&&ul(x)&&h.is(o,x.selector)){r(o,x);break}}df(e,t,o,n)}},fp=function(e){return e.selection.getStart()},dp=function(e,t,n){var o=Oh(e,t);ne(n,(function(n,r){function i(n){var i,a=_h(e,o,r,n.similar,kh(n)?n.vars:void 0),u=a.isSome();n.state.get()!==u&&(n.state.set(u),i=a.getOr(t),kh(n)?n.callback(u,{node:i,format:r,parents:o}):V(n.callbacks,(function(e){return e(u,{node:i,format:r,parents:o})})))}V([n.withSimilar,n.withoutSimilar],i),V(n.withVars,i)}))},mp=Te((function(){return document.implementation.createHTMLDocument("undo")}));function gp(e){return e.select}function hp(e){return e&&e.ownerDocument&&je(_t.fromDom(e.ownerDocument),_t.fromDom(e))}function pp(e,t,n,o){function r(e,t){return function(e,t,n){var o,r=(o=t,Ee(Ee({format:"html"},n=void 0===n?{}:n),{set:!0,selection:!0,content:o})),i=r;if(!r.no_events){var a=e.fire("BeforeSetContent",r);if(a.isDefaultPrevented())return void e.fire("SetContent",a);i=a}i.content=function(e,t){if("raw"===t.format)return t.content;var n=e.selection.getRng(),o=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),r=o?{context:o.nodeName.toLowerCase()}:{},i=e.parser.parse(t.content,Ee(Ee({isRootContent:!0,forced_root_block:!1},r),t));return Kd({validate:e.validate},e.schema).serialize(i)}(e,i);var u=e.selection.getRng();!function(e,t){var n=ve.from(t.firstChild).map(_t.fromDom),o=ve.from(t.lastChild).map(_t.fromDom);e.deleteContents(),e.insertNode(t);var r=n.bind(Nt).filter(On).bind(Zh),i=o.bind(Bt).filter(On).bind(Zh);ep(r,n,e,!0),ep(i,o,e,!1),e.collapse(!1)}(u,u.createContextualFragment(i.content)),e.selection.setRng(u),$f(e,u),i.no_events||e.fire("SetContent",i)}(o,e,t)}function i(){var t=c(),n=null==t?void 0:t.anchorNode,o=null==t?void 0:t.focusNode;if(!t||!n||!o||on(n)||on(o))return!0;var r=e.createRng();r.setStart(n,t.anchorOffset),r.collapse(!0);var i=e.createRng();return i.setStart(o,t.focusOffset),i.collapse(!0),r.compareBoundaryPoints(r.START_TO_START,i)<=0}function a(e){var t=p();t.collapse(!!e),v(t)}function c(){return t.getSelection?t.getSelection():t.document.selection}var s,l,f,d,m,g,h=function(e,t){return m||(m={},g={},d.on("NodeChange",(function(e){var t=e.element,n=C(t),o={};kt.each(m,(function(e,t){w(t,n).each((function(r){g[t]||(V(e,(function(e){e(!0,{node:r,selector:t,parents:n})})),g[t]=e),o[t]=e}))})),kt.each(g,(function(e,r){o[r]||(delete g[r],kt.each(e,(function(e){e(!1,{node:t,selector:r,parents:n})})))}))}))),m[e]||(m[e]=[]),m[e].push(t),w(e,C(d.selection.getStart())).each((function(){g[e]=m[e]})),{unbind:function(){tp(m,e,t),tp(g,e,t)}}},p=function(){function n(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(e){return-1}}var r,i,a,u=t.document;if(void 0!==o.bookmark&&!1===ld(o)){var f=rd(o);if(f.isSome())return f.map((function(e){return hd(o,[e])[0]})).getOr(u.createRange())}try{(r=c())&&!on(r.anchorNode)&&(i=0<r.rangeCount?r.getRangeAt(0):(r.createRange?r:u).createRange(),i=hd(o,[i])[0])}catch(n){}return(i=i||(u.createRange?u.createRange():u.body.createTextRange())).setStart&&9===i.startContainer.nodeType&&i.collapsed&&(a=e.getRoot(),i.setStart(a,0),i.setEnd(a,0)),s&&l&&(0===n(i.START_TO_START,i,s)&&0===n(i.END_TO_END,i,s)?i=l:l=s=null),i},v=function(e,t){var n;if((r=e)&&(gp(r)||hp(r.startContainer)&&hp(r.endContainer))){var r,i=gp(e)?e:null;if(i){l=null;try{i.select()}catch(e){}}else{var a=c();if(e=o.fire("SetSelectionRange",{range:e,forward:t}).range,a){l=e;try{a.removeAllRanges(),a.addRange(e)}catch(e){}!1===t&&a.extend&&(a.collapse(e.endContainer,e.endOffset),a.extend(e.startContainer,e.startOffset)),s=0<a.rangeCount?a.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!a.setBaseAndExtent||wt.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset])&&"IMG"===n.tagName&&(a.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),a.anchorNode===e.startContainer&&a.focusNode===e.endContainer||a.setBaseAndExtent(n,0,n,1)),o.fire("AfterSetSelectionRange",{range:e,forward:t})}}},b={bookmarkManager:null,controlSelection:null,dom:f=e,win:t,serializer:n,editor:d=o,collapse:a,setCursorLocation:function(t,n){var r=e.createRng();u(t)&&u(n)?(r.setStart(t,n),r.setEnd(t,n),v(r),a(!1)):(Ol(e,r,o.getBody(),!0),v(r))},getContent:function(e){return n=(t=void 0===(t=e)?{}:t).format||"html",r=t,Qh(o).selection.getContent(n,r);var t,n,r},setContent:r,getBookmark:function(e,t){return y.getBookmark(e,t)},moveToBookmark:function(e){return y.moveToBookmark(e)},select:function(t,n){var o=e,r=n;return ve.from(t).map((function(e){var t=o.nodeIndex(e),n=o.createRng();return n.setStart(e.parentNode,t),n.setEnd(e.parentNode,t+1),r&&(Ol(o,n,e,!0),Ol(o,n,e,!1)),n})).each(v),t},isCollapsed:function(){var e=p(),t=c();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},isForward:i,setNode:function(t){return r(e.getOuterHTML(t)),t},getNode:function(){return function(e,t){if(!t)return e;var n=t.startContainer,o=t.endContainer,r=t.startOffset,i=t.endOffset,a=t.commonAncestorContainer;return!t.collapsed&&(n===o&&i-r<2&&n.hasChildNodes()&&(a=n.childNodes[r]),3===n.nodeType&&3===o.nodeType&&(n=n.length===r?gd(n.nextSibling,!0):n.parentNode,o=0===i?gd(o.previousSibling,!1):o.parentNode,n&&n===o))?n:a&&3===a.nodeType?a.parentNode:a}(o.getBody(),p())},getSel:c,setRng:v,getRng:p,getStart:function(e){return dd(o.getBody(),p(),e)},getEnd:function(e){return md(o.getBody(),p(),e)},getSelectedBlocks:function(t,n){return function(e,t,n,o){var r=[],i=e.getRoot();if(n=e.getParent(n||dd(i,t,t.collapsed),e.isBlock),o=e.getParent(o||md(i,t,t.collapsed),e.isBlock),n&&n!==i&&r.push(n),n&&o&&n!==o)for(var a,u=new zo(n,i);(a=u.next())&&a!==o;)e.isBlock(a)&&r.push(a);return o&&n!==o&&o!==i&&r.push(o),r}(e,p(),t,n)},normalize:function(){var t=p();if(1<wl(c()).length||!El(o))return t;var n=Sf(e,t);return n.each((function(e){v(e,i())})),n.getOr(t)},selectorChanged:function(e,t){return h(e,t),b},selectorChangedWithUnbind:h,getScrollContainer:function(){for(var t,n=e.getRoot();n&&"BODY"!==n.nodeName;){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:function(e,t){u(e)?(o.inline?Wf:Gf)(o,e,t):$f(o,p(),t)},placeCaretAt:function(e,t){return v(pf(e,t,o.getDoc()))},getBoundingClientRect:function(){var e=p();return e.collapsed?oc.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){t=s=l=null,x.destroy()}},y=Nl(b),x=gf(b,o);function w(e,t){return q(t,(function(t){return f.is(t,e)}))}function C(e){return f.getParents(e,null,f.getRoot())}return b.bookmarkManager=y,b.controlSelection=x,b}function vp(e){var t,n=decodeURIComponent(e).split(","),o=/data:([^;]+)/.exec(n[0]);return{type:t=o?o[1]:t,data:n[1]}}function bp(e,t){var n;try{n=atob(t)}catch(e){return ve.none()}for(var o=new Uint8Array(n.length),r=0;r<o.length;r++)o[r]=n.charCodeAt(r);return ve.some(new Blob([o],{type:e}))}function yp(e){return 0===e.indexOf("blob:")?(t=e,new _o((function(e,n){function o(){n("Cannot convert "+t+" to Blob. Resource might not exist or is inaccessible.")}try{var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="blob",r.onload=function(){200===r.status?e(r.response):o()},r.onerror=o,r.send()}catch(e){o()}}))):0===e.indexOf("data:")?(n=e,new _o((function(e){var t=vp(n);bp(t.type,t.data).fold((function(){return e(new Blob([]))}),e)}))):null;var t,n}function xp(e){return(e||"blobid")+Pp++}function wp(e,t,n,o){(e.padd_empty_with_br||t.insert)&&n[o.name]?o.empty().append(new Ad("br",1)).shortEnded=!0:o.empty().append(new Ad("#text",3)).value=vr}function Cp(e,t,n,o){return o.isEmpty(t,n,(function(t){return(n=e.getElementRule(t.name))&&n.paddEmpty;var n}))}function Sp(e,t){void 0===t&&(t=er());var n={},o=[],r={},i={};function a(e){var t=e.name;t in n&&((u=r[t])?u.push(e):r[t]=[e]);for(var a=o.length;a--;){var u,c=o[a].name;c in e.attributes.map&&((u=i[c])?u.push(e):i[c]=[e])}return e}(e=e||{}).validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var c={schema:t,addAttributeFilter:function(e,t){Up(jp(e),(function(e){for(var n=0;n<o.length;n++)if(o[n].name===e)return void o[n].callbacks.push(t);o.push({name:e,callbacks:[t]})}))},getAttributeFilters:function(){return[].concat(o)},addNodeFilter:function(e,t){Up(jp(e),(function(e){var o=n[e];o||(n[e]=o=[]),o.push(t)}))},getNodeFilters:function(){var e,t=[];for(e in n)_e(n,e)&&t.push({name:e,callbacks:n[e]});return t},filterNode:a,parse:function(u,c){var s,l,f,d,m,g,h,p,v=[];function b(e){for(var n=t.getBlockElements(),o=e.prev;o&&3===o.type;){var r=o.value.replace(z,"");if(0<r.length)return o.value=r,0;var i=o.next;if(i){if(3===i.type&&i.value.length){o=o.prev;continue}if(!n[i.name]&&"script"!==i.name&&"style"!==i.name){o=o.prev;continue}}var a=o.prev;o.remove(),o=a}}function y(e,t){var o,i=new Ad(e,t);return e in n&&((o=r[e])?o.push(i):r[e]=[i]),i}c=c||{},r={},i={};var x=Wp(Fp("script,style,head,html,body,title,meta,param"),t.getBlockElements()),w=t.getNonEmptyElements(),C=t.children,S=e.validate,k=("forced_root_block"in c?c:e).forced_root_block,_=!1===k?"":!0===k?"p":k,O=t.getWhiteSpaceElements(),E=/^[ \t\r\n]+/,z=/[ \t\r\n]+$/,T=/[ \t\r\n]+/g,M=/^[ \t\r\n]+$/,D=_e(O,c.context)||_e(O,e.root_name),A=jd({validate:S,document:e.document,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n}(t.getSelfClosingElements()),cdata:function(e){p.append(y("#cdata",4)).value=e},text:function(e,t){var n,o;D||(e=e.replace(T," "),(o=p.lastChild)&&(_e(x,o.name)||"br"===o.name)&&(e=e.replace(E,""))),0!==e.length&&((n=y("#text",3)).raw=!!t,p.append(n).value=e)},comment:function(e){p.append(y("#comment",8)).value=e},pi:function(e,t){p.append(y(e,7)).value=t,b(p)},doctype:function(e){p.append(y("#doctype",10)).value=e,b(p)},start:function(e,n,r){var a=S?t.getElementRule(e):{};if(a){var u=y(a.outputName||e,1);u.attributes=n,u.shortEnded=r,p.append(u);var c=C[p.name];c&&C[u.name]&&!c[u.name]&&v.push(u);for(var s=o.length;s--;){var l=o[s].name;l in n.map&&((g=i[l])?g.push(u):i[l]=[u])}x[e]&&b(u),r||(p=u),!D&&O[e]&&(D=!0)}},end:function(n){var o,r,i,a,u,s=S?t.getElementRule(n):{};if(s){if(x[n]&&!D){if((o=p.firstChild)&&3===o.type)if(0<(r=o.value.replace(E,"")).length)o.value=r,o=o.next;else for(i=o.next,o.remove(),o=i;o&&3===o.type;)r=o.value,i=o.next,0!==r.length&&!M.test(r)||(o.remove(),o=i),o=i;if((o=p.lastChild)&&3===o.type)if(0<(r=o.value.replace(z,"")).length)o.value=r,o=o.prev;else for(i=o.prev,o.remove(),o=i;o&&3===o.type;)r=o.value,i=o.prev,0!==r.length&&!M.test(r)||(o.remove(),o=i),o=i}if(D&&O[n]&&(D=!1),s.removeEmpty&&Cp(t,w,O,p))return a=p.parent,x[p.name]?p.empty().remove():p.unwrap(),void(p=a);s.paddEmpty&&(Ip(u=p,"#text")&&u.firstChild.value===vr||Cp(t,w,O,p))&&wp(e,c,x,p),p=p.parent}}},t),N=p=new Ad(c.context||e.root_name,11);if(A.parse(u,c.format),S&&v.length&&(c.context?c.invalid=!0:function(e){for(var n=Fp("tr,td,th,tbody,thead,tfoot,table"),o=t.getNonEmptyElements(),r=t.getWhiteSpaceElements(),i=t.getTextBlockElements(),u=t.getSpecialElements(),c=function(e,n){if(void 0===n&&(n=e.parent),u[e.name])e.empty().remove();else{for(var o=0,r=e.children();o<r.length;o++){var i=r[o];t.isValidChild(n.name,i.name)||c(i,n)}e.unwrap()}},s=0;s<e.length;s++){var l,f=e[s],d=void 0,m=void 0;if(f.parent&&!f.fixed)if(i[f.name]&&"li"===f.parent.name){for(var g=f.next;g&&i[g.name];)g.name="li",g.fixed=!0,f.parent.insert(g,f.parent),g=g.next;f.unwrap()}else{var h=[f];for(d=f.parent;d&&!t.isValidChild(d.name,f.name)&&!n[d.name];d=d.parent)h.push(d);if(d&&1<h.length)if(t.isValidChild(d.name,f.name)){h.reverse();for(var p=l=a(h[0].clone()),v=0;v<h.length-1;v++){t.isValidChild(p.name,h[v].name)?(m=a(h[v].clone()),p.append(m)):m=p;for(var b=h[v].firstChild;b&&b!==h[v+1];){var y=b.next;m.append(b),b=y}p=m}Cp(t,o,r,l)?d.insert(f,h[0],!0):(d.insert(l,h[0],!0),d.insert(f,l)),d=h[0],(Cp(t,o,r,d)||Ip(d,"br"))&&d.empty().remove()}else c(f);else f.parent&&("li"!==f.name?t.isValidChild(f.parent.name,"div")&&t.isValidChild("div",f.name)?f.wrap(a(new Ad("div",1))):c(f):!(g=f.prev)||"ul"!==g.name&&"ol"!==g.name?!(g=f.next)||"ul"!==g.name&&"ol"!==g.name?f.wrap(a(new Ad("ul",1))):g.insert(f,g.firstChild,!0):g.append(f))}}}(v)),_&&("body"===N.name||c.isRootContent)&&function(){function n(e){e&&((o=e.firstChild)&&3===o.type&&(o.value=o.value.replace(E,"")),(o=e.lastChild)&&3===o.type&&(o.value=o.value.replace(z,"")))}var o=N.firstChild,r=null;if(t.isValidChild(N.name,_.toLowerCase())){for(;o;){var i=o.next;3===o.type||1===o.type&&"p"!==o.name&&!x[o.name]&&!o.attr("data-mce-type")?(r||((r=y(_,1)).attr(e.forced_root_block_attrs),N.insert(r,o)),r.append(o)):(n(r),r=null),o=i}n(r)}}(),!c.invalid){for(h in r)if(_e(r,h)){for(g=n[h],d=(s=r[h]).length;d--;)s[d].parent||s.splice(d,1);for(l=0,f=g.length;l<f;l++)g[l](s,h,c)}for(l=0,f=o.length;l<f;l++)if((g=o[l]).name in i){for(d=(s=i[g.name]).length;d--;)s[d].parent||s.splice(d,1);for(d=0,m=g.callbacks.length;d<m;d++)g.callbacks[d](s,g.name,c)}}return N}};return function(e,t){var n,o,r,i=e.schema;function a(e){var t,n,i=e.attr("src");(t=e).attr("src")===wt.transparentSrc||u(t.attr("data-mce-placeholder"))||u(e.attr("data-mce-bogus"))||((n=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(i))?ve.some({type:n[1],data:decodeURIComponent(n[2])}):ve.none()).filter((function(){return function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),ne(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0}(e,o)})).bind((function(e){var t=e.type,n=e.data;return ve.from(r.getByData(n,t)).orThunk((function(){return bp(t,n).map((function(e){var t=r.create(xp(),e,n);return r.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))}t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,n,o){var r,a,u,c,s,l,f,d,m=e.length,g=kt.extend({},i.getBlockElements()),h=i.getNonEmptyElements(),p=i.getWhiteSpaceElements();for(g.body=1,r=0;r<m;r++)if(u=(a=e[r]).parent,g[a.parent.name]&&a===u.lastChild){for(s=a.prev;s;){if("span"!==(l=s.name)||"bookmark"!==s.attr("data-mce-type")){"br"===l&&(a=null);break}s=s.prev}a&&(a.remove(),Cp(i,h,p,u)&&(f=i.getElementRule(u.name))&&(f.removeEmpty?u.remove():f.paddEmpty&&wp(t,o,g,u)))}else{for(c=a;u&&u.firstChild===c&&u.lastChild===c&&!g[(c=u).name];)u=u.parent;c===u&&!0!==t.padd_empty_with_br&&((d=new Ad("#text",3)).value=vr,a.replace(d))}})),e.addAttributeFilter("href",(function(e){var n,o,r=e.length;if(!t.allow_unsafe_link_target)for(;r--;){var i=e[r];"a"===i.name&&"_blank"===i.attr("target")&&i.attr("rel",(o=void 0,o=(n=i.attr("rel"))?kt.trim(n):"",/\b(noopener)\b/g.test(o)?o:o.split(" ").filter((function(e){return 0<e.length})).concat(["noopener"]).sort().join(" ")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){for(var t,n,o,r,i=e.length;i--;)if("a"===(r=e[i]).name&&r.firstChild&&!r.attr("href"))for(o=r.parent,t=r.lastChild;n=t.prev,o.insert(t,r),t=n;);})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){for(var t,n,o,r=e.length;r--;)"ul"!==(o=(n=e[r]).parent).name&&"ol"!==o.name||(n.prev&&"li"===n.prev.name?n.prev.append(n):((t=new Ad("li",1)).attr("style","list-style-type: none"),n.wrap(t)))})),t.validate&&i.getValidClasses()&&e.addAttributeFilter("class",(function(e){for(var t=i.getValidClasses(),n=e.length;n--;){for(var o=e[n],r=o.attr("class").split(" "),a="",u=0;u<r.length;u++){var c=r[u],s=!1,l=t["*"];l&&l[c]&&(s=!0),l=t[o.name],(s=!(s||!l||!l[c])||s)&&(a&&(a+=" "),a+=c)}a.length||(a=null),o.attr("class",a)}})),n=e,(r=(o=t).blob_cache)&&n.addAttributeFilter("src",(function(e){return V(e,a)}))}(c,e),e.inline_styles&&function(e,t){var n,o,r,i,a=nr();t.convert_fonts_to_spans&&(o=e,r=a,i=kt.explode(t.font_size_legacy_values),o.addNodeFilter("font",(function(e){V(e,(function(e){var t,n=r.parse(e.attr("style")),o=e.attr("color"),a=e.attr("face"),u=e.attr("size");o&&(n.color=o),a&&(n["font-family"]=a),u&&(n["font-size"]=i[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",r.serialize(n)),t=e,V(["color","face","size"],(function(e){t.attr(e,null)}))}))}))),n=a,e.addNodeFilter("strike",(function(e){V(e,(function(e){var t=n.parse(e.attr("style"));t["text-decoration"]="line-through",e.name="span",e.attr("style",n.serialize(t))}))}))}(c,e),c}function kp(e,t,n){-1===kt.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)})),t.push(n))}function _p(e,t){var n=function(e,t){var n=["data-mce-selected"],o=t&&t.dom?t.dom:Ka.DOM,r=t&&t.schema?t.schema:er(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var i,a=Sp(e,r),u=e,c=o;return(i=a).addAttributeFilter("data-mce-tabindex",(function(e,t){for(var n=e.length;n--;){var o=e[n];o.attr("tabindex",o.attr("data-mce-tabindex")),o.attr(t,null)}})),i.addAttributeFilter("src,href,style",(function(e,t){for(var n="data-mce-"+t,o=u.url_converter,r=u.url_converter_scope,i=e.length;i--;){var a=e[i],s=a.attr(n);void 0!==s?(a.attr(t,0<s.length?s:null),a.attr(n,null)):(s=a.attr(t),"style"===t?s=c.serializeStyle(c.parseStyle(s),a.name):o&&(s=o.call(r,s,t,a.name)),a.attr(t,0<s.length?s:null))}})),i.addAttributeFilter("class",(function(e){for(var t=e.length;t--;){var n,o=e[t];o.attr("class")&&(n=o.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),o.attr("class",0<n.length?n:null))}})),i.addAttributeFilter("data-mce-type",(function(e,t,n){for(var o=e.length;o--;){var r=e[o];"bookmark"!==r.attr("data-mce-type")||n.cleanup||(ve.from(r.firstChild).exists((function(e){return!yr(e.value)}))?r.unwrap():r.remove())}})),i.addNodeFilter("noscript",(function(e){for(var t=e.length;t--;){var n=e[t].firstChild;n&&(n.value=Xr.decode(n.value))}})),i.addNodeFilter("script,style",(function(e,t){for(var n=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,"")},o=e.length;o--;){var r,i=e[o],a=i.firstChild?i.firstChild.value:"";"script"===t?((r=i.attr("type"))&&i.attr("type","mce-no/type"===r?null:r.replace(/^mce\-/,"")),"xhtml"===u.element_format&&0<a.length&&(i.firstChild.value="// <![CDATA[\n"+n(a)+"\n// ]]>")):"xhtml"===u.element_format&&0<a.length&&(i.firstChild.value="\x3c!--\n"+n(a)+"\n--\x3e")}})),i.addNodeFilter("#comment",(function(e){for(var t=e.length;t--;){var n=e[t];u.preserve_cdata&&0===n.value.indexOf("[CDATA[")?(n.name="#cdata",n.type=4,n.value=c.decode(n.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===n.value.indexOf("mce:protected ")&&(n.name="#text",n.type=3,n.raw=!0,n.value=unescape(n.value).substr(14))}})),i.addNodeFilter("xml:namespace,input",(function(e,t){for(var n=e.length;n--;){var o=e[n];7===o.type?o.remove():1===o.type&&("input"!==t||o.attr("type")||o.attr("type","text"))}})),i.addAttributeFilter("data-mce-type",(function(e){V(e,(function(e){"format-caret"===e.attr("data-mce-type")&&(e.isEmpty(i.schema.getNonEmptyElements())?e.remove():e.unwrap())}))})),i.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)})),{schema:r,addNodeFilter:a.addNodeFilter,addAttributeFilter:a.addAttributeFilter,serialize:function(n,i){var u,c,s,l,f,d,m,g,h,p,v,b,y,x,w,C,S,k,_,O,E,z,T,M,D,A,N,B,R,H=Ee({format:"html"},i=void 0===i?{}:i),L=(b=n,T=y=H,u=(v=t)&&v.hasEventListeners("PreProcess")&&!T.no_events?(w=y,O=(x=v).dom,E=b.cloneNode(!0),(z=document.implementation).createHTMLDocument&&(S=z.createHTMLDocument(""),kt.each("BODY"===E.nodeName?E.childNodes:[E],(function(e){S.body.appendChild(S.importNode(e,!0))})),E="BODY"!==E.nodeName?S.body.firstChild:S.body,C=O.doc,O.doc=S),k=x,_=Ee(Ee({},w),{node:E}),k.fire("PreProcess",_),C&&(O.doc=C),E):b,s=xr((c=H).getInner?u.innerHTML:o.getOuterHTML(u)),c.selection||hr(_t.fromDom(u))?s:kt.trim(s)),V=(l=a,f=L,m=(d=H).selection?Ee({forced_root_block:!1},d):d,!P(p=(g=l.parse(f,m)).lastChild)||P(h=p.prev)&&(p.remove(),h.remove()),g);function P(e){return e&&"br"===e.name}return"tree"===H.format?V:(M=t,D=H,A=V,R=Kd(e,r).serialize(A),D.no_events||!M?R:(N=M,B=Ee(Ee({},D),{content:R}),N.fire("PostProcess",B).content))},addRules:r.addValidElements,setRules:r.setValidElements,addTempAttr:_(kp,a,n),getTempAttrs:f(n),getNodeFilters:a.getNodeFilters,getAttributeFilters:a.getAttributeFilters}}(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,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}}function Op(e,t,n){return o=n=void 0===n?{}:n,Jh(e).editor.setContent(t,o);var o}function Ep(e){return ve.from(e).each((function(e){return e.destroy()}))}function zp(e){var t=y(e)?e.join(" "):e;return F(L(v(t)?t.split(" "):[],Je),(function(e){return 0<e.length}))}function Tp(e,t){return _e(e.sections(),t)}function Mp(e,t){return ue(e,"toolbar_mode").orThunk((function(){return ue(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)}function Dp(e,t,n,o,r){var i,a,u,c,s,l,d,m,g=e?{mobile:(i=t,a={resize:!1,toolbar_mode:Mp(r.mobile||{},"scrolling"),toolbar_sticky:!1},Ee(Ee(Ee({},tv),a),i?{menubar:!1}:{}))}:{},h=(s=["mobile"],ie(Gp(g,r),(function(e,t){return R(s,t)}),re(l={}),re(d={})),{sections:f((m={t:l,f:d}).t),settings:f(m.f)}),p=kt.extend(n,o,h.settings(),e&&Tp(h,"mobile")?function(e){void 0===e&&(e={});var t=ue(h.sections(),"mobile").getOr({});return kt.extend({},e,t)}():{},{validate:!0,external_plugins:(u=o,c=h.settings().external_plugins||{},u&&u.external_plugins?kt.extend({},u.external_plugins,c):c)});return function(e,t,n,o){var r,i,a,u,c,s,l,f,d=zp(n.forced_plugins),m=zp(o.plugins),g=Tp(r=t,"mobile")?r.sections().mobile:{},h=(u=t,c=m,s=g.plugins?zp(g.plugins):m,i=(a=e)&&(f=(l=u).sections(),Tp(l,"mobile")&&"mobile"===f.mobile.theme)?F(s,_(R,ev)):a&&Tp(u,"mobile")?s:c,[].concat(zp(d)).concat(zp(i)));if(wt.browser.isIE()&&R(h,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return kt.extend(o,{plugins:h.join(" ")})}(e,h,o,p)}function Ap(e,t,n){return ve.from(t.settings[n]).filter(e)}function Np(e,t){return t.dom[e]}function Bp(e,t){return parseInt(xn(t,e),10)}function Rp(e,t,n){var o,r,i,a,u,c,s=_t.fromDom(e.getBody()),l=e.inline?s:_t.fromDom(Mt(s).dom.documentElement),f=(o=e.inline,i=t,a=n,u=(r=l).dom.getBoundingClientRect(),{x:i-(o?u.left+r.dom.clientLeft+av(r):0),y:a-(o?u.top+r.dom.clientTop+iv(r):0)}),d=f.x,m=f.y,g=ov(c=l),h=rv(c);return 0<=d&&0<=m&&d<=g&&m<=h}function Hp(e){function t(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():{open:n,close:n,reposition:n,getArgs:n};function n(){throw new Error("Theme did not provide a NotificationManager implementation.")}}function n(){return ve.from(u[0])}function o(){0<u.length&&t().reposition(u)}function r(e){G(u,(function(t){return t===e})).each((function(e){u.splice(e,1)}))}function i(i,a){if(void 0===a&&(a=!0),!e.removed&&(s=(c=e).inline?c.getBody():c.getContentAreaContainer(),ve.from(s).map(_t.fromDom).map(Rn).getOr(!1)))return a&&e.fire("BeforeOpenNotification",{notification:i}),q(u,(function(e){return!((n=t().getArgs(e)).type!==i.type||n.text!==i.text||n.progressBar||n.timeout||i.progressBar||i.timeout);var n})).getOrThunk((function(){e.editorManager.setActive(e);var a=t().open(i,(function(){r(a),o(),n().fold((function(){return e.focus()}),(function(e){return _t.fromDom(e.getEl()).dom.focus()}))}));return u.push(a),o(),e.fire("OpenNotification",{notification:Ee({},a)}),a}));var c,s}var a,u=[],c=f(u);return(a=e).on("SkinLoaded",(function(){var e=a.getParam("service_message");e&&i({text:e,type:"warning",timeout:0},!1),o()})),a.on("show ResizeEditor ResizeWindow NodeChange",(function(){Oo.requestAnimationFrame(o)})),a.on("remove",(function(){V(u.slice(),(function(e){t().close(e)}))})),{open:i,close:function(){n().each((function(e){t().close(e),r(e),o()}))},getNotifications:c}}var Lp,Vp,Pp=0,Ip=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},Fp=kt.makeMap,Up=kt.each,jp=kt.explode,Wp=kt.extend,qp=Ka.DOM,Gp=(Lp=function(e,t){return b(e)&&b(t)?Gp(e,t):t},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)throw new Error("Can't merge zero objects");for(var n={},o=0;o<e.length;o++){var r,i=e[o];for(r in i)_e(i,r)&&(n[r]=Lp(n[r],i[r]))}return n}),$p="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),Xp="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),Kp="imagetools,toc".split(","),Yp=dt().deviceType,Jp=Yp.isTouch(),Qp=Yp.isPhone(),Zp=Yp.isTablet(),ev=["lists","autolink","autosave"],tv={table_grid:!1,object_resizing:!1,resize:!1},nv=(Vp={},{add:function(e,t){Vp[e]=t},get:function(e){return Vp[e]||{icons:{}}},has:function(e){return _e(Vp,e)}}),ov=_(Np,"clientWidth"),rv=_(Np,"clientHeight"),iv=_(Bp,"margin-top"),av=_(Bp,"margin-left"),uv=au.PluginManager,cv=au.ThemeManager;function sv(e){function t(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():{open:n,openUrl:n,alert:n,confirm:n,close:n,getParams:n,setParams:n};function n(){throw new Error("Theme did not provide a WindowManager implementation.")}}function n(e,t){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return t?t.apply(e,n):void 0}}function o(t){e.fire("CloseWindow",{dialog:t}),0===(i=F(i,(function(e){return e!==t}))).length&&e.focus()}function r(t){e.editorManager.setActive(e),od(e);var n,o=t();return n=o,i.push(n),e.fire("OpenWindow",{dialog:n}),o}var i=[];return e.on("remove",(function(){V(i,(function(e){t().close(e)}))})),{open:function(e,n){return r((function(){return t().open(e,n,o)}))},openUrl:function(e){return r((function(){return t().openUrl(e,o)}))},alert:function(e,o,r){var i=t();i.alert(e,n(r||i,o))},confirm:function(e,o,r){var i=t();i.confirm(e,n(r||i,o))},close:function(){ve.from(i[i.length-1]).each((function(e){t().close(e),o(e)}))}}}function lv(e,t){e.notificationManager.open({type:"error",text:t})}function fv(e,t){e._skinLoaded?lv(e,t):e.on("SkinLoaded",(function(){lv(e,t)}))}function dv(e,t,n){ff(e,t,{message:n}),console.error(n)}function mv(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t}function gv(e,t,n){dv(e,"PluginLoadError",mv("plugin",t,n))}function hv(){function e(e,t){return{status:e,resultUri:t}}function t(e){return e in n}var 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(t){n[t]=e(1,null)},markUploaded:function(t,o){n[t]=e(2,o)},removeFailed:function(e){delete n[e]},destroy:function(){n={}}}}function pv(e){return e+Hb+++"s"+(new Date).getTime().toString(36)+t()+t()+t();function t(){return Math.round(4294967295*Math.random()).toString(36)}}function vv(){function e(e){return q(o,e).getOrUndefined()}function t(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var t=e.id||pv("blobid"),n=e.name||t,o=e.blob;return{id:f(t),name:f(n),filename:f(e.filename||n+"."+({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"}[o.type.toLowerCase()]||"dat")),blob:f(o),base64:f(e.base64),blobUri:f(e.blobUri||URL.createObjectURL(o)),uri:f(e.uri)}}function n(t){return e((function(e){return e.id()===t}))}var o=[];return{create:function(e,n,o,r,i){if(v(e))return t({id:e,name:r,filename:i,blob:n,base64:o});if(b(e))return t(e);throw new Error("Unknown input type")},add:function(e){n(e.id())||o.push(e)},get:n,getByUri:function(t){return e((function(e){return e.blobUri()===t}))},getByData:function(t,n){return e((function(e){return e.base64()===t&&e.blob().type===n}))},findFirst:e,removeByUri:function(e){o=F(o,(function(t){return t.blobUri()!==e||void URL.revokeObjectURL(t.blobUri())}))},destroy:function(){V(o,(function(e){URL.revokeObjectURL(e.blobUri())})),o=[]}}}function bv(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}}function yv(e,t){return function(e,t){function n(e,n,o,r){var i=new XMLHttpRequest;i.open("POST",t.url),i.withCredentials=t.credentials,i.upload.onprogress=function(e){r(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,r,a;i.status<200||300<=i.status?o("HTTP Error: "+i.status):(e=JSON.parse(i.responseText))&&"string"==typeof e.location?n((r=t.basePath,a=e.location,r?r.replace(/\/$/,"")+"/"+a.replace(/^\//,""):a)):o("Invalid JSON: "+i.responseText)};var a=new FormData;a.append("file",e.blob(),e.filename()),i.send(a)}function o(e,t){return{url:t,blobInfo:e,status:!0}}function r(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}}function i(e,t){kt.each(a[e],(function(e){e(t)})),delete a[e]}var a={};return!1===S(t.handler)&&(t.handler=n),{upload:function(u,c){return t.url||t.handler!==n?(u,l=c,s=kt.grep(u,(function(t){return!e.isUploaded(t.blobUri())})),_o.all(kt.map(s,(function(n){return e.isPending(n.blobUri())?(f=n.blobUri(),new _o((function(e){a[f]=a[f]||[],a[f].push(e)}))):(u=n,c=t.handler,s=l,e.markPending(u.blobUri()),new _o((function(t){var n;try{var a=function(){n&&n.close()};c(u,(function(n){a(),e.markUploaded(u.blobUri(),n),i(u.blobUri(),o(u,n)),t(o(u,n))}),(function(n,o){var c=o||{};a(),e.removeFailed(u.blobUri()),i(u.blobUri(),r(u,n,c)),t(r(u,n,c))}),(function(e){e<0||100<e||ve.from(n).orThunk((function(){return ve.from(s).map(E)})).each((function(t){(n=t).progressBar.value(e)}))}))}catch(e){t(r(u,e.message,{}))}})));var u,c,s,f})))):new _o((function(e){e([])}));var s,l}}}(t,{url:e.getParam("images_upload_url","","string"),basePath:e.getParam("images_upload_base_path","","string"),credentials:e.getParam("images_upload_credentials",!1,"boolean"),handler:e.getParam("images_upload_handler",null,"function")})}function xv(e){function t(t){return function(n){return e.selection?t(n):[]}}function n(e,t,n){for(var o=0;-1!==(o=e.indexOf(t,o))&&(e=e.substring(0,o)+n+e.substr(o+t.length),o+=n.length-t.length+1),-1!==o;);return e}function o(e,t,o){return e=n(e,'src="'+t+'"','src="'+o+'"'+(o===wt.transparentSrc?' data-mce-placeholder="1"':"")),n(e,'data-mce-src="'+t+'"','data-mce-src="'+o+'"')}function r(t,n){V(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=L(e.fragments,(function(e){return o(e,t,n)})):e.content=o(e.content,t,n)}))}function i(n){return s=s||yv(e,g),v().then(t((function(o){var i=L(o,(function(e){return e.blobInfo}));return s.upload(i,bv(e)).then(t((function(t){var i=[],a=L(t,(function(t,n){var a,u,c,s,l=o[n].blobInfo,f=o[n].image;return t.status&&e.getParam("images_replace_blob_uris",!0,"boolean")?(m.removeByUri(f.src),Kh(e)||(u=f,c=t.url,s=e.convertURL(c,"src"),r(u.src,c),e.$(u).attr({src:e.getParam("images_reuse_filename",!1,"boolean")?c+(-1===c.indexOf("?")?"?":"&")+(new Date).getTime():c,"data-mce-src":s}))):t.error&&(t.error.options.remove&&(r(f.getAttribute("src"),wt.transparentSrc),i.push(f)),a=t.error.message,fv(e,iu.translate(["Failed to upload image: {0}",a]))),{element:f,status:t.status,uploadUri:t.url,blobInfo:l}}));return 0<a.length&&p.fireIfChanged(),0<i.length&&(Kh(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact((function(){V(i,(function(t){e.dom.remove(t),m.removeByUri(t.src)}))}))),n&&n(a),a})))})))}function a(t){if(Cc(e))return i(t)}function u(t){return!1!==X(h,(function(e){return e(t)}))&&(0!==t.getAttribute("src").indexOf("data:")||e.getParam("images_dataimg_filter",D,"function")(t))}function c(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var o=g.getResultUri(n);if(o)return'src="'+o+'"';var r=(r=m.getByUri(n))||j(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null);return r?'src="data:'+r.blob().type+";base64,"+r.base64()+'"':t}))}var s,l,f,d,m=vv(),g=hv(),h=[],p=(d=tu(null),(f=e).on("change AddUndo",(function(e){d.set(Ee({},e.level))})),{fireIfChanged:function(){var e=f.undoManager.data;ee(e).filter((function(e){return!Wh(d.get(),e)})).each((function(t){f.setDirty(!0),f.fire("change",{level:t,lastLevel:Q(e,e.length-2).getOrNull()})}))}}),v=function(){return(l=l||function(e,t){var n={};return{findAll:function(o,r){r=r||D;var i=L(F(o?we(o.getElementsByTagName("img")):[],(function(t){var n=t.src;return wt.fileApi&&!t.hasAttribute("data-mce-bogus")&&!t.hasAttribute("data-mce-placeholder")&&n&&n!==wt.transparentSrc&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&r(t):0===n.indexOf("data:")&&r(t))})),(function(e){if(void 0!==n[e.src])return new _o((function(t){n[e.src].then((function(n){return"string"==typeof n?n:void t({image:e,blobInfo:n.blobInfo})}))}));var o=new _o((function(n,o){var r,i,a,u,c,s,l,f,d;r=t,a=n,u=o,0!==(i=e).src.indexOf("blob:")?(s=(c=vp(i.src)).data,l=c.type,f=s,(d=r.getByData(f,l))?a({image:i,blobInfo:d}):yp(i.src).then((function(e){d=r.create(xp(),e,f),r.add(d),a({image:i,blobInfo:d})}),(function(e){u(e)}))):(d=r.getByUri(i.src))?a({image:i,blobInfo:d}):yp(i.src).then((function(e){var t=e;new _o((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)})).then((function(t){f=vp(t).data,d=r.create(xp(),e,f),r.add(d),a({image:i,blobInfo:d})}))}),(function(e){u(e)}))})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=o}));return _o.all(i)}}}(g,m)).findAll(e.getBody(),u).then(t((function(t){return t=F(t,(function(t){return"string"!=typeof t||void fv(e,t)})),Kh(e)||V(t,(function(e){r(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))};return e.on("SetContent",(function(){(Cc(e)?a:v)()})),e.on("RawSaveContent",(function(e){e.content=c(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=c(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){V(e,(function(e){var t,n=e.attr("src");m.getByUri(n)||(t=g.getResultUri(n))&&e.attr("src",t)}))}))})),{blobCache:m,addFilter:function(e){h.push(e)},uploadImages:i,uploadImagesAuto:a,scanForImages:v,destroy:function(){m.destroy(),g.destroy(),l=s=null}}}function wv(e,t){function n(e){r="string"==typeof e?{name:e,classes:[],attrs:{}}:e;var t,n=Vb.create(r.name),o=n;return(t=r).classes.length&&Vb.addClass(o,t.classes.join(" ")),Vb.setAttribs(o,t.attrs),n}var o,r,i,a=t&&t.schema||er({}),u=function(e,t,o){var r,i,c,s,l,f,d,m=0<t.length&&t[0],g=m&&m.name,h=(s=g,l="string"!=typeof(c=e)?c.nodeName.toLowerCase():c,!(!(d=(f=a.getElementRule(l))&&f.parentsRequired)||!d.length)&&(s&&-1!==kt.inArray(d,s)?s:d[0]));if(h)g===h?(i=t[0],t=t.slice(1)):i=h;else if(m)i=t[0],t=t.slice(1);else if(!o)return e;return i&&(r=n(i)).appendChild(e),o&&(r||(r=Vb.create("div")).appendChild(e),kt.each(o,(function(t){var o=n(t);r.insertBefore(o,e)}))),u(r,t,i&&i.siblings)};return e&&e.length?(o=n(r=e[0]),(i=Vb.create("div")).appendChild(u(o,e.slice(1),r.siblings)),i):""}function Cv(e){var t,n={classes:[],attrs:{}};return"*"!==(e=n.selector=kt.trim(e))&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,o,r,i){switch(t){case"#":n.attrs.id=o;break;case".":n.classes.push(o);break;case":":-1!==kt.inArray("checked disabled enabled read-only required".split(" "),o)&&(n.attrs[o]=o)}var a;return"["!==r||(a=i.match(/([\w\-]+)(?:\=\"([^\"]+))?/))&&(n.attrs[a[1]]=a[2]),""}))),n.name=t||"div",n}function Sv(e,t){var n,o,r="",i=(o=e.getParam("preview_styles","font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"),v(o)?o:"");if(""===i)return"";function a(e){return e.replace(/%(\w+)/g,"")}if("string"==typeof t){if(!(t=e.formatter.get(t)))return;t=t[0]}if("preview"in t){var u=ue(t,"preview");if(fn(u,!1))return"";i=u.getOr(i)}var c,s=t.block||t.inline||"span",l=(c=t.selector)&&"string"==typeof c?(c=(c=c.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),kt.map(c.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=kt.map(e.split(/(?:~\+|~|\+)/),Cv),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[],f=l.length?(l[0].name||(l[0].name=s),s=t.selector,wv(l,e)):wv([s],e),d=Vb.select(s,f)[0]||f.firstChild;return Lb(t.styles,(function(e,t){var n=a(e);n&&Vb.setStyle(d,t,n)})),Lb(t.attributes,(function(e,t){var n=a(e);n&&Vb.setAttrib(d,t,n)})),Lb(t.classes,(function(e){var t=a(e);Vb.hasClass(d,t)||Vb.addClass(d,t)})),e.fire("PreviewFormats"),Vb.setStyles(f,{position:"absolute",left:-65535}),e.getBody().appendChild(f),n=Vb.getStyle(e.getBody(),"fontSize",!0),n=/px$/.test(n)?parseInt(n,10):0,Lb(i.split(" "),(function(t){var o=Vb.getStyle(d,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(o)&&(o=Vb.getStyle(e.getBody(),t,!0),"#ffffff"===Vb.toHex(o).toLowerCase())||"color"===t&&"#000000"===Vb.toHex(o).toLowerCase())){if("font-size"===t&&/em|%$/.test(o)){if(0===n)return;o=parseFloat(o)/(/%$/.test(o)?100:1)*n+"px"}"border"===t&&o&&(r+="padding:0 2px;"),r+=t+":"+o+";"}})),e.fire("AfterPreviewFormats"),Vb.remove(f),r}function kv(e){var t,n,o,r,i,a,c=(r={},(i=function(e,t){e&&(v(e)?(V(t=y(t)?t:[t],(function(e){C(e.deep)&&(e.deep=!ul(e)),C(e.split)&&(e.split=!ul(e)||cl(e)),C(e.remove)&&ul(e)&&!cl(e)&&(e.remove="none"),ul(e)&&cl(e)&&(e.mixed=!0,e.block_expand=!0),v(e.classes)&&(e.classes=e.classes.split(/\s+/))})),r[e]=t):ne(e,(function(e,t){i(t,e)})))})((n=(t=e).dom,o={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,audio,video",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,audio,video",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,audio,video",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",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],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},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},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(e,t,n){return Pn(e)&&e.hasAttribute("href")},onformat:function(e,t,o){kt.each(o,(function(t,o){n.setAttrib(e,o,t)}))}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(e){var t;return null!==(t=null==e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",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}]},kt.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),(function(e){o[e]={block:e,remove:"all"}})),o)),i(t.getParam("formats")),{get:function(e){return u(e)?r[e]:r},has:function(e){return _e(r,e)},register:i,unregister:function(e){return e&&r[e]&&delete r[e],r}}),s=tu(null);return 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"])}(e),(a=e).on("mouseup keydown",(function(e){var t=a,n=e.keyCode,o=t.selection,r=t.getBody();_g(t,null,!1),8!==n&&46!==n||!o.isCollapsed()||o.getStart().innerHTML!==oh||_g(t,Ls(r,o.getStart())),37!==n&&39!==n||_g(t,Ls(r,o.getStart()))})),{get:c.get,has:c.has,register:c.register,unregister:c.unregister,apply:function(t,n,o){var r=t,i=n,a=o;Qh(e).formatter.apply(r,i,a)},remove:function(t,n,o,r){var i=t,a=n,u=o,c=r;Qh(e).formatter.remove(i,a,u,c)},toggle:function(t,n,o){var r=t,i=n,a=o;Qh(e).formatter.toggle(r,i,a)},match:function(t,n,o,r){return i=t,a=n,u=o,c=r,Qh(e).formatter.match(i,a,u,c);var i,a,u,c},closest:function(t){return n=t,Qh(e).formatter.closest(n);var n},matchAll:function(t,n){return o=t,r=n,Qh(e).formatter.matchAll(o,r);var o,r},matchNode:function(t,n,o,r){return i=t,a=n,u=o,c=r,Qh(e).formatter.matchNode(i,a,u,c);var i,a,u,c},canApply:function(t){return n=t,Qh(e).formatter.canApply(n);var n},formatChanged:function(t,n,o,r){return i=s,a=t,u=n,c=o,l=r,Qh(e).formatter.formatChanged(i,a,u,c,l);var i,a,u,c,l},getCssText:_(Sv,e)}}function _v(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return 1;default:return}}function Ov(e){var t,n,o,r,i,a=uu(),u=tu(0),c=tu(0),s={data:[],typing:!1,beforeChange:function(){var t=u,n=a;Qh(e).undoManager.beforeChange(t,n)},add:function(t,n){return o=s,r=c,i=u,l=a,f=t,d=n,Qh(e).undoManager.add(o,r,i,l,f,d);var o,r,i,l,f,d},undo:function(){return t=s,n=u,o=c,Qh(e).undoManager.undo(t,n,o);var t,n,o},redo:function(){return t=c,n=s.data,Qh(e).undoManager.redo(t,n);var t,n},clear:function(){var t=s,n=c;Qh(e).undoManager.clear(t,n)},reset:function(){var t=s;Qh(e).undoManager.reset(t)},hasUndo:function(){return t=s,n=c,Qh(e).undoManager.hasUndo(t,n);var t,n},hasRedo:function(){return t=s,n=c,Qh(e).undoManager.hasRedo(t,n);var t,n},transact:function(t){return n=s,o=u,r=t,Qh(e).undoManager.transact(n,o,r);var n,o,r},ignore:function(t){var n=u,o=t;Qh(e).undoManager.ignore(n,o)},extra:function(t,n){var o=s,r=c,i=t,a=n;Qh(e).undoManager.extra(o,r,i,a)}};return Kh(e)||(o=s,r=u,i=tu(!1),(n=e).on("init",(function(){o.add()})),n.on("BeforeExecCommand",(function(e){_v(e.command)||($h(o,r),o.beforeChange())})),n.on("ExecCommand",(function(e){_v(e.command)||l(e)})),n.on("ObjectResizeStart cut",(function(){o.beforeChange()})),n.on("SaveContent ObjectResized blur",l),n.on("dragend",l),n.on("keyup",(function(e){var t=e.keyCode;e.isDefaultPrevented()||((33<=t&&t<=36||37<=t&&t<=40||45===t||e.ctrlKey)&&(l(),n.nodeChanged()),46!==t&&8!==t||n.nodeChanged(),i.get()&&o.typing&&!1===Wh(Ih(n),o.data[0])&&(!1===n.isDirty()&&(n.setDirty(!0),n.fire("change",{level:o.data[0],lastLevel:null})),n.fire("TypingUndo"),i.set(!1),n.nodeChanged()))})),n.on("keydown",(function(e){var t,n=e.keyCode;e.isDefaultPrevented()||(33<=n&&n<=36||37<=n&&n<=40||45===n?o.typing&&l(e):(t=e.ctrlKey&&!e.altKey||e.metaKey,!(n<16||20<n)||224===n||91===n||o.typing||t||(o.beforeChange(),Gh(o,!0,r),o.add({},e),i.set(!0))))})),n.on("mousedown",(function(e){o.typing&&l(e)})),n.on("input",(function(e){e.inputType&&("insertReplacementText"===e.inputType||"insertText"===e.inputType&&null===e.data||"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType)&&l(e)})),n.on("AddUndo Undo Redo ClearUndos",(function(e){e.isDefaultPrevented()||n.nodeChanged()}))),(t=e).addShortcut("meta+z","","Undo"),t.addShortcut("meta+y,meta+shift+z","","Redo"),s;function l(e){Gh(o,!1,r),o.add({},e)}}function Ev(e){return"keydown"===e.type||"keyup"===e.type}function zv(e){var t=e.keyCode;return t===Ef.BACKSPACE||t===Ef.DELETE}function Tv(e,t){return Ie(_t.fromDom(t),e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string"))}function Mv(e,t,n){var o,r,i=(o=e,r=t,F(Ka.DOM.getParents(n.container(),"*",r),o));return ve.from(i[i.length-1])}function Dv(e,t){if(!t)return t;var n=t.container(),o=t.offset();return e?Bo(n)?Fn(n.nextSibling)?oc(n.nextSibling,0):oc.after(n):Lo(t)?oc(n,o+1):t:Bo(n)?Fn(n.previousSibling)?oc(n.previousSibling,n.previousSibling.data.length):oc.before(n):Vo(t)?oc(n,o-1):t}function Av(e){return lr(e)||dr(e)}function Nv(e,t){return je(e,t)?ho(t,Av,(n=e,function(e){return Ue(n,_t.fromDom(e.dom.parentNode))})):ve.none();var n}function Bv(e){var t,n,o;e.dom.isEmpty(e.getBody())&&(e.setContent(""),o=(n=(t=e).getBody()).firstChild&&t.dom.isBlock(n.firstChild)?n.firstChild:n,t.selection.setCursorLocation(o,0))}function Rv(e,t){return{from:e,to:t}}function Hv(e,t){return Nv(_t.fromDom(e),_t.fromDom(t.container())).map((function(e){return{block:e,position:t}}))}function Lv(e){var t,n=G(t=Tn(e),sr).fold(f(t),(function(e){return t.slice(0,e)}));return V(n,Bn),n}function Vv(e,t){return q(sm(t,e).reverse(),(function(e){return qo(e)})).each(Bn)}function Pv(e,t,n,o){if(qo(n))return am(n),Xl(n.dom);0===F(Rt(o),(function(e){return!qo(e)})).length&&qo(t)&&Wt(o,_t.fromTag("br"));var r=$l(n.dom,oc.before(o.dom));return V(Lv(t),(function(e){Wt(o,e)})),Vv(e,t),r}function Iv(e,t,n){if(qo(n))return Bn(n),qo(t)&&am(t),Xl(t.dom);var o=Kl(n.dom);return V(Lv(t),(function(e){Nn(n,e)})),Vv(e,t),o}function Fv(e,t){Rs(e,t.dom).map((function(e){return e.getNode()})).map(_t.fromDom).filter(Ao).each(Bn)}function Uv(e,t,n){return Fv(!0,t),Fv(!1,n),(je(r=n,o=t)?(i=sm(o,r),ve.from(i[i.length-1])):ve.none()).fold(_(Iv,e,t,n),_(Pv,e,t,n));var o,r,i}function jv(e,t,n,o){return t?Uv(e,o,n):Uv(e,n,o)}function Wv(e,t){var n,o,r,i,a,u,c,s=_t.fromDom(e.getBody()),l=(n=s.dom,o=t,((r=e.selection.getRng()).collapsed?(a=o,u=Hv(i=n,oc.fromRangeStart(r)),c=u.bind((function(e){return Wl(a,i,e.position).bind((function(e){return Hv(i,e).map((function(e){return t=i,n=a,qn((o=e).position.getNode())&&!1===qo(o.block)?Rs(!1,o.block.dom).bind((function(e){return e.isEqual(o.position)?Wl(n,t,e).bind((function(e){return Hv(t,e)})):ve.some(o)})).getOr(o):o;var t,n,o}))}))})),dn(u,c,Rv).filter((function(e){return!1===Ue(e.from.block,e.to.block)&&At((n=e).from.block).bind((function(e){return At(n.to.block).filter((function(t){return Ue(e,t)}))})).isSome()&&!1===Xn((t=e).from.block.dom)&&!1===Xn(t.to.block.dom);var t,n}))):ve.none()).bind((function(e){return jv(s,t,e.from.block,e.to.block)})));return l.each((function(t){e.selection.setRng(t.toRange())})),l.isSome()}function qv(e,t){var n=_t.fromDom(t),o=_(Ue,e);return go(n,gr,o).isSome()}function Gv(e,t){return!e.selection.isCollapsed()&&function(e){var t,n,o,r,i,a,u,c,s,l,f=_t.fromDom(e.getBody());return a=e.selection.getRng(),s=$l((i=f).dom,oc.fromRangeStart(a)).isNone(),l=Gl(i.dom,oc.fromRangeEnd(a)).isNone(),!qv(u=i,(c=a).startContainer)&&!qv(u,c.endContainer)&&s&&l?((r=e).setContent(""),r.selection.setCursorLocation(),!0):(t=f,n=e.selection,o=n.getRng(),dn(Nv(t,_t.fromDom(o.startContainer)),Nv(t,_t.fromDom(o.endContainer)),(function(e,r){return!1===Ue(e,r)&&(o.deleteContents(),jv(t,!0,e,r).each((function(e){n.setRng(e.toRange())})),!0)})).getOr(!1))}(e)}function $v(e,t,n,o,r){return ve.from(t._selectionOverrides.showCaret(e,n,o,r))}function Xv(e,t){var n,o;return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?ve.none():ve.some(((o=(n=t).ownerDocument.createRange()).selectNode(n),o))}function Kv(e,t,n){var o=Kc(1,e.getBody(),t),r=oc.fromRangeStart(o),i=r.getNode();if(bs(i))return $v(1,e,i,!r.isAtEnd(),!1);var a=r.getNode(!0);if(bs(a))return $v(1,e,a,!1,!1);var u=e.dom.getParent(r.getNode(),(function(e){return qb(e)||Wb(e)}));return bs(u)?$v(1,e,u,!1,n):ve.none()}function Yv(e,t,n){return t.collapsed?Kv(e,t,n).getOr(t):t}function Jv(e){return Ig(e)||Hg(e)}function Qv(e){return Fg(e)||Lg(e)}function Zv(e,t,n,o,r,i){var a,u;return $v(o,e,i.getNode(!r),r,!0).each((function(n){var o;t.collapsed?(o=t.cloneRange(),r?o.setEnd(n.startContainer,n.startOffset):o.setStart(n.endContainer,n.endOffset),o.deleteContents()):t.deleteContents(),e.selection.setRng(n)})),a=e.dom,Fn(u=n)&&0===u.data.length&&a.remove(u),!0}function eb(e,t){var n=e.selection.getRng();if(!Fn(n.commonAncestorContainer))return!1;var o=t?ts.Forwards:ts.Backwards,r=Ms(e.getBody()),i=_(Zc,t?r.next:r.prev),a=t?Jv:Qv,u=Jc(o,e.getBody(),n),c=Dv(t,i(u));if(!c||!es(u,c))return!1;if(a(c))return Zv(e,n,u.getNode(),o,t,c);var s=i(c);return!!(s&&a(s)&&es(c,s))&&Zv(e,n,u.getNode(),o,t,s)}function tb(e,t,n){return Wl(t,e,n).bind((function(o){return f=o.getNode(),gr(_t.fromDom(f))||dr(_t.fromDom(f))||(u=e,l=o,Yc(!(c=t),s=n).fold((function(){return Yc(c,l).fold(M,d)}),d))?ve.none():t&&Xn(o.getNode())||!1===t&&Xn(o.getNode(!0))?(r=e,i=n,a=o.getNode(!1===t),Nv(_t.fromDom(r),_t.fromDom(i.getNode())).map((function(e){return qo(e)?Gb.remove(e.dom):Gb.moveToElement(a)})).orThunk((function(){return ve.some(Gb.moveToElement(a))}))):t&&Fg(n)||!1===t&&Ig(n)?ve.some(Gb.moveToPosition(o)):ve.none();var r,i,a,u,c,s,l,f;function d(e){return Do(_t.fromDom(e))&&!qc(s,l,u)}}))}function nb(e,t){return ve.from(sf(e.getBody(),t))}function ob(e,t){var n=e.selection.getNode();return nb(e,n).filter(Xn).fold((function(){return l=e.getBody(),d=Kc((f=t)?1:-1,l,e.selection.getRng()),m=oc.fromRangeStart(d),g=_t.fromDom(l),(!1===f&&Fg(m)?ve.some(Gb.remove(m.getNode(!0))):f&&Ig(m)?ve.some(Gb.remove(m.getNode())):!1===f&&Ig(m)&&vm(g,m)?Gg(g,m).map((function(e){return Gb.remove(e.getNode())})):f&&Fg(m)&&pm(g,m)?$g(g,m).map((function(e){return Gb.remove(e.getNode())})):(n=l,o=f,c=(r=m).getNode(!1===(u=o)),s=u?"after":"before",Pn(c)&&c.getAttribute("data-mce-caret")===s?(a=r.getNode(!1===(i=o)),(i&&Xn(a.nextSibling)?ve.some(Gb.moveToElement(a.nextSibling)):!1===i&&Xn(a.previousSibling)?ve.some(Gb.moveToElement(a.previousSibling)):ve.none()).fold((function(){return tb(n,o,r)}),ve.some)):tb(n,o,r).bind((function(e){return t=n,o=r,e.fold((function(e){return ve.some(Gb.remove(e))}),(function(e){return ve.some(Gb.moveToElement(e))}),(function(e){return qc(o,e,t)?ve.none():ve.some(Gb.moveToPosition(e))}));var t,o})))).exists((function(n){return n.fold((function(e){return a._selectionOverrides.hideFakeCaret(),Fm(a,u,_t.fromDom(e)),!0}),(i=u=t,function(e){var t=i?oc.before(e):oc.after(e);return r.selection.setRng(t.toRange()),!0}),(o=r=a=e,function(e){return o.selection.setRng(e.toRange()),!0}));var o,r,i,a,u}));var n,o,r,i,a,u,c,s,l,f,d,m,g}),D)}function rb(e,t){var n=e.selection.getNode();return!(!Xn(n)||Kn(n))&&nb(e,n.parentNode).filter(Xn).fold((function(){return V(gu(_t.fromDom(e.getBody()),".mce-offscreen-selection"),Bn),Fm(e,t,_t.fromDom(e.selection.getNode())),Bv(e),!0}),D)}function ib(e){var t,n=e.dom,o=e.selection,r=sf(e.getBody(),o.getNode());return $n(r)&&n.isBlock(r)&&n.isEmpty(r)&&(t=n.create("br",{"data-mce-bogus":"1"}),n.setHTML(r,""),r.appendChild(t),o.setRng(oc.before(t).toRange())),!0}function ab(e,t){return(e.selection.isCollapsed()?ob:rb)(e,t)}function ub(e,t){return!!e.selection.isCollapsed()&&(n=e,o=t,r=oc.fromRangeStart(n.selection.getRng()),Wl(o,n.getBody(),r).filter((function(e){return(o?Bg:Rg)(e)})).bind((function(e){return ve.from(Gc(o?0:-1,e))})).exists((function(e){return n.selection.select(e),!0})));var n,o,r}function cb(e){return $b(e)&&e.data[0]===br}function sb(e){return $b(e)&&e.data[e.data.length-1]===br}function lb(e){return e.ownerDocument.createTextNode(br)}function fb(e,t){return(e?function(e){if($b(e.previousSibling))return sb(e.previousSibling)||e.previousSibling.appendData(br),e.previousSibling;if($b(e))return cb(e)||e.insertData(0,br),e;var t=lb(e);return e.parentNode.insertBefore(t,e),t}:function(e){if($b(e.nextSibling))return cb(e.nextSibling)||e.nextSibling.insertData(0,br),e.nextSibling;if($b(e))return sb(e)||e.appendData(br),e;var t=lb(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t})(t)}function db(e,t){return Fn(e.container())?fb(t,e.container()):fb(t,e.getNode())}function mb(e,t){var n=t.get();return n&&e.container()===n&&Bo(n)}function gb(e,t){return t.fold((function(t){ms(e.get());var n=Xb(t);return e.set(n),ve.some(oc(n,n.length-1))}),(function(t){return Xl(t).map((function(t){if(mb(t,e))return oc(e.get(),1);ms(e.get());var n=db(t,!0);return e.set(n),oc(n,1)}))}),(function(t){return Kl(t).map((function(t){if(mb(t,e))return oc(e.get(),e.get().length-1);ms(e.get());var n=db(t,!1);return e.set(n),oc(n,n.length-1)}))}),(function(t){ms(e.get());var n=Kb(t);return e.set(n),ve.some(oc(n,1))}))}function hb(e,t){for(var n=0;n<e.length;n++){var o=e[n].apply(null,t);if(o.isSome())return o}return ve.none()}function pb(e,t){return Wc(t,e)||e}function vb(e,t,n){var o=Ub(n),r=pb(t,o.container());return Mv(e,r,o).fold((function(){return Gl(r,o).bind(_(Mv,e,r)).map((function(e){return Yb.before(e)}))}),ve.none)}function bb(e,t){return null===Ls(e,t)}function yb(e,t,n){return Mv(e,t,n).filter(_(bb,t))}function xb(e,t,n){var o=jb(n);return yb(e,t,o).bind((function(e){return $l(e,o).isNone()?ve.some(Yb.start(e)):ve.none()}))}function wb(e,t,n){var o=Ub(n);return yb(e,t,o).bind((function(e){return Gl(e,o).isNone()?ve.some(Yb.end(e)):ve.none()}))}function Cb(e,t,n){var o=jb(n),r=pb(t,o.container());return Mv(e,r,o).fold((function(){return $l(r,o).bind(_(Mv,e,r)).map((function(e){return Yb.after(e)}))}),ve.none)}function Sb(e){return!1===(t=Jb(e),"rtl"===Ka.DOM.getStyle(t,"direction",!0)||(n=t.textContent,Fb.test(n)));var t,n}function kb(e,t,n){return hb([vb,xb,wb,Cb],[e,t,n]).filter(Sb)}function _b(e){return e.fold(f("before"),f("start"),f("end"),f("after"))}function Ob(e){return e.fold(Yb.before,Yb.before,Yb.after,Yb.after)}function Eb(e){return e.fold(Yb.start,Yb.start,Yb.end,Yb.end)}function zb(e,t,n,o,r,i){return dn(Mv(t,n,o),Mv(t,n,r),(function(t,o){return t!==o&&(a=o,u=Wc(t,r=n),c=Wc(a,r),u&&u===c)?Yb.after(e?t:o):i;var r,a,u,c})).getOr(i)}function Tb(e,t){return e.fold(D,(function(e){return o=t,!(_b(n=e)===_b(o)&&Jb(n)===Jb(o));var n,o}))}function Mb(e,t){return e?t.fold(s(ve.some,Yb.start),ve.none,s(ve.some,Yb.after),ve.none):t.fold(ve.none,s(ve.some,Yb.before),ve.none,s(ve.some,Yb.end))}function Db(e,t,n,o){var r=Dv(e,o),i=kb(t,n,r);return kb(t,n,r).bind(_(Mb,e)).orThunk((function(){return a=t,u=n,c=i,s=Dv(r=e,o),Wl(r,u,s).map(_(Dv,r)).fold((function(){return c.map(Ob)}),(function(e){return kb(a,u,e).map(_(zb,r,a,u,s,e)).filter(_(Tb,c))})).filter(Sb);var r,a,u,c,s}))}function Ab(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=window.console;o&&(o.error||o.log).apply(o,ze([e],t,!1))}var Nb,Bb,Rb=function(e,t){var n=e.editorManager.baseURL+"/skins/content",o="content"+e.editorManager.suffix+".css",r=!0===e.inline;return L(t,(function(t){return/^[a-z0-9\-]+$/i.test(t)&&!r?n+"/"+t+"/"+o:e.documentBaseURI.toAbsolute(t)}))},Hb=0,Lb=kt.each,Vb=Ka.DOM,Pb=[9,27,Ef.HOME,Ef.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Ef.DOWN,Ef.UP,Ef.LEFT,Ef.RIGHT].concat(wt.browser.isFirefox()?[224]:[]),Ib="data-mce-placeholder",Fb=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,Ub=_(Dv,!0),jb=_(Dv,!1),Wb=$n,qb=Xn,Gb=oo([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),$b=Fn,Xb=_(fb,!0),Kb=_(fb,!1),Yb=oo([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),Jb=function(e){return e.fold(d,d,d,d)};function Qb(e,t,n){var o=e?1:-1;return t.setRng(oc(n.container(),n.offset()+o).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0}function Zb(e,t){return e===ts.Backwards?K(t):t}function ey(e,t,n,o){for(var r,i,a,u,c=Ms(n),s=o,l=[];s;){var f=(a=c,u=s,t===ts.Forwards?a.next(u):a.prev(u));if(!f)break;if(qn(f.getNode(!1)))return t===ts.Forwards?{positions:Zb(t,l).concat([f]),breakType:Nb.Br,breakAt:ve.some(f)}:{positions:Zb(t,l),breakType:Nb.Br,breakAt:ve.some(f)};if(f.isVisible()){if(e(s,f)){var d=(r=s,qn((i=f).getNode(t===ts.Forwards))?Nb.Br:!1===qc(r,i)?Nb.Block:Nb.Wrap);return{positions:Zb(t,l),breakType:d,breakAt:ve.some(f)}}l.push(f),s=f}else s=f}return{positions:Zb(t,l),breakType:Nb.Eol,breakAt:ve.none()}}function ty(e,t,n,o){return t(n,o).breakAt.map((function(o){var r=t(n,o).positions;return e===ts.Backwards?r.concat(o):[o].concat(r)})).getOr([])}function ny(e,t){return j(e,(function(e,n){return e.fold((function(){return ve.some(n)}),(function(o){return dn(Z(o.getClientRects()),Z(n.getClientRects()),(function(e,r){var i=Math.abs(t-e.left);return Math.abs(t-r.left)<=i?n:o})).or(e)}))}),ve.none())}function oy(e,t){return Z(t.getClientRects()).bind((function(t){return ny(e,t.left)}))}function ry(e){function t(t){return L(t,(function(t){var n=Su(t);return n.node=e,n}))}if(Pn(e))return t(e.getClientRects());if(Fn(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}}function iy(e){return $(e,ry)}_(Db,!1),_(Db,!0),(Bb=Nb={})[Bb.Br=0]="Br",Bb[Bb.Block=1]="Block",Bb[Bb.Wrap=2]="Wrap",Bb[Bb.Eol=3]="Eol";var ay,uy,cy=_(ey,oc.isAbove,-1),sy=_(ey,oc.isBelow,1),ly=_(ty,-1,cy),fy=_(ty,1,sy);function dy(e,t,n,o,r,i){function a(o){var i=iy([o]);-1===e&&(i=i.reverse());for(var a=0;a<i.length;a++){var l=i[a];if(!n(l,s)){if(0<c.length&&t(l,he(c))&&u++,l.line=u,r(l))return!0;c.push(l)}}}var u=0,c=[],s=he(i.getClientRects());if(!s)return c;var l=i.getNode();return a(l),function(e,t,n,o){for(;o=jc(o,e,Uo,t);)if(n(o))return}(e,o,a,l),c}function my(e){return function(t){return t.line>e}}function gy(e){return function(t){return t.line===e}}function hy(e,t){return Math.abs(e.left-t)}function py(e,t){return Math.abs(e.right-t)}function vy(e,t){return e>=t.left&&e<=t.right}function by(e,t){return e>=t.top&&e<=t.bottom}function yy(e,t,n){return void 0===n&&(n=D),me(e,(function(e,o){if(vy(t,o))return n(o)?o:e;if(vy(t,e))return n(e)?e:o;var r=Math.min(hy(e,t),py(e,t)),i=Math.min(hy(o,t),py(o,t));return i===r&&ce(o,"node")&&ow(o.node)||i<r?o:e}))}function xy(e,t,n,o,r){var i=rw(o,e,Uo,t,!r);do{if(!i||n(i))return}while(i=rw(i,e,Uo,t))}function wy(e,t){e.selection.setRng(t),$f(e,e.selection.getRng())}function Cy(e,t,n){return ve.some(Yv(e,t,n))}function Sy(e,t,n,o,r,i){var a=t===ts.Forwards,u=Ms(e.getBody()),c=_(Zc,a?u.next:u.prev),s=a?o:r;if(!n.collapsed){var l=Tu(n);if(i(l))return $v(t,e,l,t===ts.Backwards,!1)}var f=Jc(t,e.getBody(),n);if(s(f))return Xv(e,f.getNode(!a));var d=Dv(a,c(f)),m=Io(n);if(!d)return m?ve.some(n):ve.none();if(s(d))return $v(t,e,d.getNode(!a),a,!1);var g=c(d);return g&&s(g)&&es(d,g)?$v(t,e,g.getNode(!a),a,!1):m?Cy(e,d.toRange(),!1):ve.none()}function ky(e,t,n,o,r,i){var a=Jc(t,e.getBody(),n),u=he(a.getClientRects()),c=t===ay.Down;if(!u)return ve.none();var s,l=F((c?nw:tw)(e.getBody(),my(1),a),gy(1)),f=u.left,d=yy(l,f);if(d&&i(d.node)){var m=Math.abs(f-d.left),g=Math.abs(f-d.right);return $v(t,e,d.node,m<g,!1)}if(s=o(a)?a.getNode():r(a)?a.getNode(!0):Tu(n)){var h=function(e,t,n,o){function r(e){return he(e.getClientRects())}var i,a,u,c=Ms(t),s=[],l=0,f=1===e?(i=c.next,a=Eu,u=Ou,oc.after(o)):(i=c.prev,a=Ou,u=Eu,oc.before(o)),d=r(f);do{if(f.isVisible()){var m=r(f);if(!u(m,d)){0<s.length&&a(m,he(s))&&l++;var g=Su(m);if(g.position=f,g.line=l,n(g))return s;s.push(g)}}}while(f=i(f));return s}(t,e.getBody(),my(1),s),p=yy(F(h,gy(1)),f);if(p)return Cy(e,p.position.toRange(),!1);if(p=he(F(h,gy(0))))return Cy(e,p.position.toRange(),!1)}return 0===l.length?iw(e,c).filter(c?r:o).map((function(t){return Yv(e,t.toRange(),!1)})):ve.none()}function _y(e,t,n){return iw(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))}function Oy(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)}function Ey(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")}function zy(e,t,n){return gb(t,n).map((function(t){return Oy(e,t),n}))}function Ty(e,t,n){return!!Dc(e)&&(r=t,i=n,a=(o=e).getBody(),u=oc.fromRangeStart(o.selection.getRng()),Db(i,_(Tv,o),a,u).bind((function(e){return zy(o,r,e)})).isSome());var o,r,i,a,u}function My(e,t,n){return!!Dc(t)&&(o=e,i=(r=t).selection.getRng(),a=o?oc.fromRangeEnd(i):oc.fromRangeStart(i),!!S(r.selection.getSel().modify)&&(o&&Lo(a)?Qb(!0,r.selection,a):!(o||!Vo(a))&&Qb(!1,r.selection,a)));var o,r,i,a}function Dy(e,t,n){if(Dc(e)){var o=iw(e,t).getOrThunk((function(){var n=e.selection.getRng();return t?oc.fromRangeEnd(n):oc.fromRangeStart(n)}));return kb(_(Tv,e),e.getBody(),o).exists((function(t){var o=Ob(t);return gb(n,o).exists((function(t){return Oy(e,t),!0}))}))}return!1}function Ay(e,t){return function(n){return gb(t,n).exists((function(t){return Oy(e,t),!0}))}}function Ny(e,t,n,o){var r=e.getBody(),i=_(Tv,e);e.undoManager.ignore((function(){var a,u,c;e.selection.setRng((a=n,u=o,(c=document.createRange()).setStart(a.container(),a.offset()),c.setEnd(u.container(),u.offset()),c)),e.execCommand("Delete"),kb(i,r,oc.fromRangeStart(e.selection.getRng())).map(Eb).map(Ay(e,t))})),e.nodeChanged()}function By(e,t,n){if(e.selection.isCollapsed()&&Dc(e)){var o=oc.fromRangeStart(e.selection.getRng());return i=t,a=n,u=o,c=(r=e).getBody(),s=Wc(u.container(),c)||c,l=_(Tv,r),(d=kb(l,s,u)).bind((function(e){return a?e.fold(f(ve.some(Eb(e))),ve.none,f(ve.some(Ob(e))),ve.none):e.fold(ve.none,f(ve.some(Ob(e))),ve.none,f(ve.some(Eb(e))))})).map(Ay(r,i)).getOrThunk((function(){var e=Bs(a,s,u),t=e.bind((function(e){return kb(l,s,e)}));return dn(d,t,(function(){return Mv(l,s,u).exists((function(e){return!!dn(Xl(t=e),Kl(t),(function(e,n){var o=Dv(!0,e),r=Dv(!1,n);return Gl(t,o).forall((function(e){return e.isEqual(r)}))})).getOr(!0)&&(Fm(r,a,_t.fromDom(e)),!0);var t}))})).orThunk((function(){return t.bind((function(t){return e.map((function(e){return a?Ny(r,i,u,e):Ny(r,i,e,u),!0}))}))})).getOr(!1)}))}var r,i,a,u,c,s,l,d;return!1}function Ry(e){return 1===It(e)}function Hy(e,t){return!!e.selection.isCollapsed()&&function(e,t){var n,o=_t.fromDom(e.getBody()),r=_t.fromDom(e.selection.getStart()),i=F(G(n=sm(r,o),sr).fold(f(n),(function(e){return n.slice(0,e)})),Ry);return ee(i).exists((function(n){var o,r,a,u,c,s,l,f,d,m=oc.fromRangeStart(e.selection.getRng()),g=t,h=m,p=n.dom;return!(!dn(Xl(p),Kl(p),(function(e,t){var n=Dv(!0,e),o=Dv(!1,t),r=Dv(!1,h);return g?Gl(p,r).exists((function(e){return e.isEqual(o)&&h.isEqual(n)})):$l(p,r).exists((function(e){return e.isEqual(n)&&h.isEqual(o)}))})).getOr(!0)||Hs((o=n).dom)&&wg(o.dom)||(r=t,u=n,0===(d=L(F(i,_(Tg,a=e)),(function(e){return e.dom}))).length?Fm(a,r,u):(s=u.dom,f=Eg(d,(l=Sg(!1)).dom),Wt(_t.fromDom(s),l),Bn(_t.fromDom(s)),c=oc(f,0),a.selection.setRng(c.toRange())),0))}))}(e,t)}function Ly(e,t,n){return e._selectionOverrides.hideFakeCaret(),Fm(e,t,_t.fromDom(n)),!0}function Vy(e,t){return e.selection.isCollapsed()?(i=e,u=(a=t)?Hg:Lg,c=a?ts.Forwards:ts.Backwards,s=Jc(c,i.getBody(),i.selection.getRng()),u(s)?Ly(i,a,s.getNode(!a)):ve.from(Dv(a,s)).filter((function(e){return u(e)&&es(s,e)})).exists((function(e){return Ly(i,a,e.getNode(!a))}))):(o=t,r=(n=e).selection.getNode(),!!Yn(r)&&Ly(n,o,r));var n,o,r,i,a,u,c,s}function Py(e){var t=parseInt(e,10);return isNaN(t)?0:t}function Iy(e,t){return(e||"table"===Ot(t)?"margin":"padding")+("rtl"===xn(t,"direction")?"-right":"-left")}function Fy(e){var t,n=cw(e);return!e.mode.isReadOnly()&&(1<n.length||(t=e,X(n,(function(e){var n=wn(e,Iy(Oc(t),e)).map(Py).getOr(0);return"false"!==t.dom.getContentEditable(e.dom)&&0<n}))))}function Uy(e){return fr(e)||dr(e)}function jy(e,t){var n=e.dom,o=e.selection,r=e.formatter,i=e.getParam("indentation","40px","string"),a=/[a-z%]+$/i.exec(i)[0],u=parseInt(i,10),c=Oc(e),s=xc(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==s||n.getParent(o.getNode(),n.isBlock)||r.apply("div"),V(cw(e),(function(e){var o,r=n,i=t,s=u,l=a,f=e.dom,d=Iy(c,_t.fromDom(f));"outdent"===i?(o=Math.max(0,Py(f.style[d])-s),r.setStyle(f,d,o?o+l:"")):(o=Py(f.style[d])+s+l,r.setStyle(f,d,o))}))}function Wy(e,t){if(e.selection.isCollapsed()&&Fy(e)){var n=e.dom,o=e.selection.getRng(),r=oc.fromRangeStart(o),i=n.getParent(o.startContainer,n.isBlock);if(null!==i&&Ug(_t.fromDom(i),r))return jy(e,"outdent"),!0}return!1}function qy(e,t){e.getDoc().execCommand(t,!1,null)}function Gy(e){return void 0===e.touches||1!==e.touches.length?ve.none():ve.some(e.touches[0])}function $y(e,t){return _e(e,t.nodeName)}function Xy(e){var t,n,o,r=e.dom,i=e.selection,a=e.schema,u=a.getBlockElements(),c=i.getStart(),s=e.getBody(),l=xc(e);if(c&&Pn(c)&&l){var f=s.nodeName.toLowerCase();if(a.isValidChild(f,l.toLowerCase())&&(d=u,m=s,g=c,!H(cm(_t.fromDom(g),_t.fromDom(m)),(function(e){return $y(d,e.dom)})))){var d,m,g,h,p,v=i.getRng(),b=v.startContainer,y=v.startOffset,x=v.endContainer,w=v.endOffset,C=ld(e);for(c=s.firstChild;c;)h=u,Fn(p=c)||Pn(p)&&!$y(h,p)&&!qs(p)?function(e,t){if(Fn(t)){if(0===t.nodeValue.length)return 1;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||$y(e,t.nextSibling)))return 1}}(u,c)?(c=(n=c).nextSibling,r.remove(n)):(t||(t=r.create(l,wc(e)),c.parentNode.insertBefore(t,c),o=!0),c=(n=c).nextSibling,t.appendChild(n)):(t=null,c=c.nextSibling);o&&C&&(v.setStart(b,y),v.setEnd(x,w),i.setRng(v),e.nodeChanged())}}}function Ky(e,t){t.hasAttribute("data-mce-caret")&&(Po(t),e.selection.setRng(e.selection.getRng()),e.selection.scrollIntoView(t))}function Yy(e,t){var n=vo(_t.fromDom(e.getBody()),"*[data-mce-caret]").map((function(e){return e.dom})).getOrNull();if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void Ky(e,n)):void(Ho(n)&&(Ky(e,n),e.undoManager.add()))}function Jy(e,t,n){var o,r,i,a=Ms(e.getBody()),u=_(Zc,1===t?a.next:a.prev);!n.collapsed||""===xc(e)||(o=e.dom.getParent(n.startContainer,"PRE"))&&(u(oc.fromRangeStart(n))||(i=e.dom.create(xc(e)),(!wt.ie||11<=wt.ie)&&(i.innerHTML='<br data-mce-bogus="1">'),r=i,1===t?e.$(o).after(r):e.$(o).before(r),e.selection.select(r,!0),e.selection.collapse()))}function Qy(e,t){return n=e,o=t?ts.Forwards:ts.Backwards,r=n.selection.getRng(),Sy(n,o,r,Ig,Fg,sw).orThunk((function(){return Jy(n,o,r),ve.none()})).exists((function(t){return wy(e,t),!0}));var n,o,r}function Zy(e,t){return o=t?1:-1,r=(n=e).selection.getRng(),ky(n,o,r,(function(e){return Ig(e)||Vg(e)}),(function(e){return Fg(e)||Pg(e)}),sw).orThunk((function(){return Jy(n,o,r),ve.none()})).exists((function(t){return wy(e,t),!0}));var n,o,r}function ex(e,t){return _y(e,t,t?Fg:Ig)}function tx(e){return R(["figcaption"],Ot(e))}function nx(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t}function ox(e,t,n){(n?Nn:Gt)(e,t)}function rx(e,t){return!!e.selection.isCollapsed()&&function(e,t){var n=_t.fromDom(e.getBody()),o=oc.fromRangeStart(e.selection.getRng()),r=xc(e),i=wc(e),a=o,u=_(Ue,n);return ho(_t.fromDom(a.container()),sr,u).filter(tx).exists((function(){if(b=n,y=o,t?(w=b.dom,sy(w,y).breakAt.isNone()):(x=b.dom,cy(x,y).breakAt.isNone())){var a=(u=n,s=i,l=t,""===(c=r)?(p=l,ox(u,v=_t.fromTag("br"),p),nx(v)):(f=u,d=l,m=s,g=_t.fromTag(c),h=_t.fromTag("br"),pn(g,m),Nn(g,h),ox(f,g,d),nx(h)));return e.selection.setRng(a),!0}var u,c,s,l,f,d,m,g,h,p,v,b,y,x,w;return!1}))}(e,t)}function ix(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}}function ax(e,t){return q((n=t,$(L(e,(function(e){return Ee({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:c},e)})),(function(e){return n.keyCode===e.keyCode&&n.shiftKey===e.shiftKey&&n.altKey===e.altKey&&n.ctrlKey===e.ctrlKey&&n.metaKey===e.metaKey?[e]:[]}))),(function(e){return e.action()}));var n}function ux(e,t){var n=t?ts.Forwards:ts.Backwards,o=e.selection.getRng();return Sy(e,n,o,Hg,Lg,Yn).exists((function(t){return wy(e,t),!0}))}function cx(e,t){var n=t?1:-1,o=e.selection.getRng();return ky(e,n,o,Hg,Lg,Yn).exists((function(t){return wy(e,t),!0}))}function sx(e,t){return _y(e,t,t?Lg:Hg)}function lx(e,t,n,o,r){var i,a=gu(_t.fromDom(n),"td,th,caption").map((function(e){return e.dom})),u=F((i=e,$(a,(function(e){var t,n={left:(t=Su(e.getBoundingClientRect())).left- -1,top:t.top- -1,right:t.right+-2,bottom:t.bottom+-2,width:t.width+-1,height:t.height+-1};return[{x:n.left,y:i(n),cell:e},{x:n.right,y:i(n),cell:e}]}))),(function(e){return t(e,r)})),c=o,s=r;return j(u,(function(e,t){return e.fold((function(){return ve.some(t)}),(function(e){var n=Math.sqrt(Math.abs(e.x-c)+Math.abs(e.y-s)),o=Math.sqrt(Math.abs(t.x-c)+Math.abs(t.y-s));return ve.some(o<n?t:e)}))}),ve.none()).map((function(e){return e.cell}))}function fx(e,t,n){var o,r,i=e(t,n);return i.breakType===Nb.Wrap&&0===i.positions.length||!qn(n.getNode())&&i.breakType===Nb.Br&&1===i.positions.length?(o=e,r=t,!i.breakAt.exists((function(e){return o(r,e).breakAt.isSome()}))):i.breakAt.isNone()}function dx(e,t,n,o){var r,i,a,u=e.selection.getRng(),c=t?1:-1;return!(!Ic()||(r=t,i=n,a=oc.fromRangeStart(u),!Rs(!r,i).exists((function(e){return e.isEqual(a)})))||($v(c,e,n,!t,!1).each((function(t){wy(e,t)})),0))}function mx(e,t,n){var o,r,i=(o=!!t,r=n.getNode(o),Pn(r)&&"TABLE"===r.nodeName?ve.some(r):ve.none()),a=!1===t;i.fold((function(){return wy(e,n.toRange())}),(function(o){return Rs(a,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return wy(e,n.toRange())}),(function(r){var i,a,u=t,c=o,s=n;(a=xc(i=e))?i.undoManager.transact((function(){var e=_t.fromTag(a);pn(e,wc(i)),Nn(e,_t.fromTag("br")),(u?qt:Wt)(_t.fromDom(c),e);var t=i.dom.createRng();t.setStart(e.dom,0),t.setEnd(e.dom,0),wy(i,t)})):wy(i,s.toRange())}))}))}function gx(e,t,n,o){var r,i,a,u,c,s,l,f,d,m,g=e.selection.getRng(),h=oc.fromRangeStart(g),p=e.getBody();if(t||!dw(o,h))return!(!t||!mw(o,h)||(r=p,d=i=n,mx(e,t,v=ee((m=a=h).getClientRects()).bind((function(e){return fw(d,e.left,e.top)})).bind((function(e){return oy(Xl(t=e).map((function(e){return[e].concat(sy(t,e).positions)})).getOr([]),m);var t})).orThunk((function(){return Z(a.getClientRects()).bind((function(e){return ny(fy(r,oc.after(i)),e.left)}))})).getOr(oc.after(i))),0));var v=(u=p,l=c=n,Z((f=s=h).getClientRects()).bind((function(e){return lw(l,e.left,e.top)})).bind((function(e){return oy(Kl(t=e).map((function(e){return cy(t,e).positions.concat(e)})).getOr([]),f);var t})).orThunk((function(){return Z(s.getClientRects()).bind((function(e){return ny(ly(u,oc.before(c)),e.left)}))})).getOr(oc.before(c)));return mx(e,t,v),!0}function hx(e,t,n){return ve.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(o){return ve.from(e.dom.getParent(o,"table")).map((function(r){return n(e,t,r,o)}))})).getOr(!1)}function px(e,t){return hx(e,t,dx)}function vx(e,t){return hx(e,t,gx)}function bx(e,t){var n,o,r=t,i=e.dom,a=e.schema.getMoveCaretBeforeOnEnterElements();if(t){!/^(LI|DT|DD)$/.test(t.nodeName)||(o=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))&&/^(UL|OL|DL)$/.test(o.nodeName)&&t.insertBefore(i.doc.createTextNode(vr),t.firstChild);var u=i.createRng();if(t.normalize(),t.hasChildNodes()){for(var c=new zo(t,t);n=c.current();){if(Fn(n)){u.setStart(n,0),u.setEnd(n,0);break}if(a[n.nodeName.toLowerCase()]){u.setStartBefore(n),u.setEndBefore(n);break}r=n,n=c.next()}n||(u.setStart(r,0),u.setEnd(r,0))}else qn(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(u.setStartBefore(t),u.setEndBefore(t)):(u.setStartAfter(t),u.setEndAfter(t)):(u.setStart(t,0),u.setEnd(t,0));e.selection.setRng(u),$f(e,u)}}function yx(e){return ve.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))}function xx(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t}function wx(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)}function Cx(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e}function Sx(e,t,n){for(var o=e[n?"firstChild":"lastChild"];o&&!Pn(o);)o=o[n?"nextSibling":"previousSibling"];return o===t}function kx(e){e.innerHTML='<br data-mce-bogus="1">'}function _x(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t}function Ox(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)}function Ex(e,t,n){return!1===Fn(t)?n:e?1===n&&t.data.charAt(n-1)===br?0:n:n===t.data.length-1&&t.data.charAt(n)===br?t.data.length:n}function zx(e,t){for(var n,o=e.getRoot(),r=t;r!==o&&"false"!==e.getContentEditable(r);)"true"===e.getContentEditable(r)&&(n=r),r=r.parentNode;return r!==o?n:o}function Tx(e,t){var n=xc(e);n&&n.toLowerCase()===t.tagName.toLowerCase()&&function(e,t,n){var o=e.dom;ve.from(n.style).map(o.parseStyle).each((function(e){var n=Cn(_t.fromDom(t)),r=Ee(Ee({},n),e);o.setStyles(t,r)})),dn(ve.from(n.class).map((function(e){return e.split(/\s+/)})),ve.from(t.className).map((function(e){return F(e.split(/\s+/),(function(e){return""!==e}))})),(function(e,n){var r=F(n,(function(t){return!R(e,t)})),i=ze(ze([],e,!0),r,!0);o.setAttrib(t,"class",i.join(" "))}));var r=["style","class"],i=ae(n,(function(e,t){return!R(r,t)}));o.setAttribs(t,i)}(e,t,wc(e))}function Mx(e,t,n){var o=e.dom.createRng();n?(o.setStartBefore(t),o.setEndBefore(t)):(o.setStartAfter(t),o.setEndAfter(t)),e.selection.setRng(o),$f(e,o)}function Dx(e,t){var n=_t.fromTag("br");Wt(_t.fromDom(t),n),e.undoManager.add()}function Ax(e,t){gw(e.getBody(),t)||qt(_t.fromDom(t),_t.fromTag("br"));var n=_t.fromTag("br");qt(_t.fromDom(t),n),Mx(e,n.dom,!1),e.undoManager.add()}function Nx(e){return e&&"A"===e.nodeName&&"href"in e}function Bx(e){return e.fold(M,Nx,Nx,M)}function Rx(e,t){t.fold(c,_(Dx,e),_(Ax,e),c)}function Hx(e,t){var n,o,r,i=(o=_(Tv,n=e),r=oc.fromRangeStart(n.selection.getRng()),kb(o,n.getBody(),r).filter(Bx));i.isSome()?i.each(_(Rx,e)):function(e,t){var n,o,r=e.selection,i=e.dom,a=r.getRng();Sf(i,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var u,c=a.startOffset,s=a.startContainer;1===s.nodeType&&s.hasChildNodes()&&(u=c>s.childNodes.length-1,s=s.childNodes[Math.min(c,s.childNodes.length-1)]||s,c=u&&3===s.nodeType?s.nodeValue.length:0);var l=i.getParent(s,i.isBlock),f=l?i.getParent(l.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",m=!(!t||!t.ctrlKey);"LI"!==d||m||(l=f),s&&3===s.nodeType&&c>=s.nodeValue.length&&!function(e){for(var t,n=new zo(s,l),o=e.getNonEmptyElements();t=n.next();)if(o[t.nodeName.toLowerCase()]||0<t.length)return 1}(e.schema)&&(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),o=!0),n=i.create("br"),ic(i,a,n),Mx(e,n,o),e.undoManager.add()}(e,t)}function Lx(e,t){return yx(e).filter((function(e){return 0<t.length&&Ie(_t.fromDom(e),t)})).isSome()}function Vx(e,t){return Lx(e,e.getParam("no_newline_selector",""))}function Px(e){return function(t,n){return""===xc(t)===e}}function Ix(e){return function(t,n){return yx(t).filter((function(e){return dr(_t.fromDom(e))})).isSome()===e}}function Fx(e,t){return function(n,o){return yx(n).fold(f(""),(function(e){return e.nodeName.toUpperCase()}))===e.toUpperCase()===t}}function Ux(e){return Fx("pre",e)}function jx(e){return function(t,n){return t.getParam("br_in_pre",!0)===e}}function Wx(e,t){return Lx(e,e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption"))}function qx(e,t){return t}function Gx(e){var t=xc(e),n=function(e,t){for(var n,o=e.getRoot(),r=t;r!==o&&"false"!==e.getContentEditable(r);)"true"===e.getContentEditable(r)&&(n=r),r=r.parentNode;return r!==o?n:o}(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")}function $x(e,t){return function(n,o){return j(e,(function(e,t){return e&&t(n,o)}),!0)?ve.some(t):ve.none()}}function Xx(e,t){var n,o;n=e,o=t,hb([$x([Vx],hw.none()),$x([Fx("summary",!0)],hw.br()),$x([Ux(!0),jx(!1),qx],hw.br()),$x([Ux(!0),jx(!1)],hw.block()),$x([Ux(!0),jx(!0),qx],hw.block()),$x([Ux(!0),jx(!0)],hw.br()),$x([Ix(!0),qx],hw.br()),$x([Ix(!0)],hw.block()),$x([Px(!0),qx,Gx],hw.block()),$x([Px(!0)],hw.br()),$x([Wx],hw.br()),$x([Px(!1),qx],hw.br()),$x([Gx],hw.block())],[n,!(!o||!o.shiftKey)]).getOr(hw.none()).fold((function(){Hx(e,t)}),(function(){!function(e,t){function n(t){var n,o=m,r=l.getTextInlineElements(),i=t||"TABLE"===x||"HR"===x?s.create(t||h):b.cloneNode(!1),a=i;if(!1===e.getParam("keep_styles",!0))s.setAttrib(i,"style",null),s.setAttrib(i,"class",null);else for(;r[o.nodeName]&&(Hs(o)||qs(o)||(n=o.cloneNode(!1),s.setAttrib(n,"id",""),i.hasChildNodes()?n.appendChild(i.firstChild):a=n,i.appendChild(n))),(o=o.parentNode)&&o!==P;);return Tx(e,i),kx(a),i}function o(e){var t,n,o=Ex(e,m,g);if(!Fn(m)||!(e?0<o:o<m.nodeValue.length)){if(m.parentNode===b&&c&&!e)return 1;if(e&&Pn(m)&&m===b.firstChild)return 1;if(_x(m,"TABLE")||_x(m,"HR"))return c&&!e||!c&&e;var r=new zo(m,b);for(Fn(m)&&(e&&0===o?r.prev():e||o!==m.nodeValue.length||r.next());t=r.current();){if(Pn(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),f[n]&&"br"!==n))return}else if(Fn(t)&&!jo(t.nodeValue))return;e?r.prev():r.next()}return 1}}function r(){a=/^(H[1-6]|PRE|FIGURE)$/.test(x)&&"HGROUP"!==w?n(h):n(),e.getParam("end_container_on_empty_block",!1)&&Ox(s,y)&&s.isEmpty(b)?a=s.split(y,b):s.insertAfter(a,b),bx(e,a)}var i,a,u,c,s=e.dom,l=e.schema,f=l.getNonEmptyElements(),d=e.selection.getRng();Sf(s,d).each((function(e){d.setStart(e.startContainer,e.startOffset),d.setEnd(e.endContainer,e.endOffset)}));var m=d.startContainer,g=d.startOffset,h=xc(e),p=!(!t||!t.shiftKey),v=!(!t||!t.ctrlKey);Pn(m)&&m.hasChildNodes()&&(c=g>m.childNodes.length-1,m=m.childNodes[Math.min(g,m.childNodes.length-1)]||m,g=c&&Fn(m)?m.nodeValue.length:0);var b,y,x,w,C,S,k,_,O,E,z,T,M,D,A,N,B,R,H,L,P=zx(s,m);P&&((h&&!p||!h&&p)&&(m=function(e,t,n,o){var r,i,a,u,c,s,l=h||"P",f=e.dom,d=zx(f,n),m=f.getParent(n,f.isBlock);if(!m||!Ox(f,m)){if(c=((m=m||d)===e.getBody()||(s=m)&&/^(TD|TH|CAPTION)$/.test(s.nodeName)?m:m.parentNode).nodeName.toLowerCase(),!m.hasChildNodes())return Tx(e,r=f.create(l)),m.appendChild(r),t.setStart(r,0),t.setEnd(r,0),r;for(a=n;a.parentNode!==m;)a=a.parentNode;for(;a&&!f.isBlock(a);)a=(i=a).previousSibling;if(i&&e.schema.isValidChild(c,l.toLowerCase())){for(Tx(e,r=f.create(l)),i.parentNode.insertBefore(r,i),a=i;a&&!f.isBlock(a);)u=a.nextSibling,r.appendChild(a),a=u;t.setStart(n,o),t.setEnd(n,o)}}return n}(e,d,m,g)),y=(b=s.getParent(m,s.isBlock))?s.getParent(b.parentNode,s.isBlock):null,x=b?b.nodeName.toUpperCase():"","LI"!==(w=y?y.nodeName.toUpperCase():"")||v||(y=(b=y).parentNode,x=w),/^(LI|DT|DD)$/.test(x)&&s.isEmpty(b)?(_=n,O=y,E=b,z=h,H=(k=e).dom,L=k.selection.getRng(),O!==k.getBody()&&(M=(z=wx(T=O)&&wx(T.parentNode)?"LI":z)?_(z):H.create("BR"),Sx(O,E,!0)&&Sx(O,E,!1)?xx(O,"LI")?(D=Cx(O),H.insertAfter(M,D),(null===(R=(B=O).parentNode)||void 0===R?void 0:R.firstChild)===B?H.remove(D):H.remove(O)):H.replace(M,O):(Sx(O,E,!0)?xx(O,"LI")?(H.insertAfter(M,Cx(O)),M.appendChild(H.doc.createTextNode(" ")),M.appendChild(O)):O.parentNode.insertBefore(M,O):Sx(O,E,!1)?H.insertAfter(M,Cx(O)):(O=Cx(O),(A=L.cloneRange()).setStartAfter(E),A.setEndAfter(O),N=A.extractContents(),"LI"===z&&N.firstChild&&"LI"===N.firstChild.nodeName?(M=N.firstChild,H.insertAfter(N,O)):(H.insertAfter(N,O),H.insertAfter(M,O))),H.remove(E)),bx(k,M))):h&&b===e.getBody()||(h=h||"P",No(b)?(a=Po(b),s.isEmpty(b)&&kx(b),Tx(e,a),bx(e,a)):o()?r():o(!0)?(a=b.parentNode.insertBefore(n(),b),bx(e,_x(b,"HR")?a:b)):((S=(C=d).cloneRange()).setStart(C.startContainer,Ex(!0,C.startContainer,C.startOffset)),S.setEnd(C.endContainer,Ex(!1,C.endContainer,C.endOffset)),(i=S.cloneRange()).setEndAfter(b),u=i.extractContents(),V(Vu(_t.fromDom(u),On),(function(e){var t=e.dom;t.nodeValue=xr(t.nodeValue)})),function(e){for(;Fn(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(u),a=u.firstChild,s.insertAfter(u,b),function(e,t){var n,o,r=a,i=[];if(r){for(;r=r.firstChild;){if(e.isBlock(r))return;Pn(r)&&!t[r.nodeName.toLowerCase()]&&i.push(r)}for(n=i.length;n--;)(!(r=i[n]).hasChildNodes()||r.firstChild===r.lastChild&&""===r.firstChild.nodeValue||(o=r)&&"A"===o.nodeName&&e.isEmpty(o))&&e.remove(r)}}(s,f),function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")}(s,b),s.isEmpty(b)&&kx(b),a.normalize(),s.isEmpty(a)?(s.remove(a),r()):(Tx(e,a),bx(e,a))),s.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a})))}(e,t)}),c)}function Kx(e){return e.stopImmediatePropagation()}function Yx(e){return e.keyCode===Ef.PAGE_UP||e.keyCode===Ef.PAGE_DOWN}function Jx(e,t,n){n&&!e.get()?t.on("NodeChange",Kx,!0):!n&&e.get()&&t.off("NodeChange",Kx),e.set(n)}function Qx(e,t){var n=t.container(),o=t.offset();return Fn(n)?(n.insertData(o,e),ve.some(oc(n,o+e.length))):Qc(t).map((function(n){var o=_t.fromText(e);return(t.isAtEnd()?qt:Wt)(n,o),oc(o.dom,e.length)}))}function Zx(e){var t,n,o=oc.fromRangeStart(e.selection.getRng()),r=_t.fromDom(e.getBody());if(e.selection.isCollapsed()){var i=_(Tv,e),a=oc.fromRangeStart(e.selection.getRng());return kb(i,e.getBody(),a).bind((n=r,function(e){return e.fold((function(e){return $l(n.dom,oc.before(e))}),(function(e){return Xl(e)}),(function(e){return Kl(e)}),(function(e){return Gl(n.dom,oc.after(e))}))})).bind(function(e,t){return function(n){return i=e,(!Cm(a=n)&&(r=a,$l((o=i).dom,r).isNone()||Gl(o.dom,r).isNone()||Ug(o,r)||jg(o,r)||vm(o,r)||pm(o,r)||xm(i,a)||wm(i,a))?bw:yw)(t);var o,r,i,a}}(r,o)).exists((t=e,function(e){return t.selection.setRng(e.toRange()),t.nodeChanged(),!0}))}return!1}function ew(e){var t,n,o,r,i,a,u,c,s,l,f,d,m,g,h=function(e){var t=tu(null),n=_(Tv,e);return e.on("NodeChange",(function(o){var r,i,a,u,c,s,l,f,d,m,g,h,p;!Dc(e)||wt.browser.isIE()&&o.initial||(c=n,s=e.dom,l=o.parents,V(Y(f=F(L(gu(_t.fromDom(s.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),c),d=F(l,c)),_(Ey,!1)),V(Y(d,f),_(Ey,!0)),g=t,(m=e).selection.isCollapsed()&&!0!==m.composing&&g.get()&&(h=oc.fromRangeStart(m.selection.getRng()),oc.isTextPosition(h)&&!1===(Lo(p=h)||Vo(p))&&(Oy(m,Vc(g.get(),h)),g.set(null))),r=n,i=e,a=t,u=o.parents,i.selection.isCollapsed()&&V(F(u,r),(function(e){var t=oc.fromRangeStart(i.selection.getRng());kb(r,i.getBody(),t).bind((function(e){return zy(i,a,e)}))})))})),t}(e);return e.on("keyup compositionstart",_(Yy,e)),g=h,(m=e).on("keydown",(function(e){var t,n,o,r;!1===e.isDefaultPrevented()&&(t=m,n=g,o=e,r=dt().os,ax([{keyCode:Ef.RIGHT,action:ix(Qy,t,!0)},{keyCode:Ef.LEFT,action:ix(Qy,t,!1)},{keyCode:Ef.UP,action:ix(Zy,t,!1)},{keyCode:Ef.DOWN,action:ix(Zy,t,!0)},{keyCode:Ef.RIGHT,action:ix(px,t,!0)},{keyCode:Ef.LEFT,action:ix(px,t,!1)},{keyCode:Ef.UP,action:ix(vx,t,!1)},{keyCode:Ef.DOWN,action:ix(vx,t,!0)},{keyCode:Ef.RIGHT,action:ix(ux,t,!0)},{keyCode:Ef.LEFT,action:ix(ux,t,!1)},{keyCode:Ef.UP,action:ix(cx,t,!1)},{keyCode:Ef.DOWN,action:ix(cx,t,!0)},{keyCode:Ef.RIGHT,action:ix(Ty,t,n,!0)},{keyCode:Ef.LEFT,action:ix(Ty,t,n,!1)},{keyCode:Ef.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:ix(aw,t,n)},{keyCode:Ef.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:ix(uw,t,n)},{keyCode:Ef.UP,action:ix(rx,t,!1)},{keyCode:Ef.DOWN,action:ix(rx,t,!0)}],o).each((function(e){o.preventDefault()})))})),d=h,(f=e).on("keydown",(function(e){var t,n,o;!1===e.isDefaultPrevented()&&(n=d,o=e,ax([{keyCode:Ef.BACKSPACE,action:ix(Wy,t=f,!1)},{keyCode:Ef.BACKSPACE,action:ix(ab,t,!1)},{keyCode:Ef.DELETE,action:ix(ab,t,!0)},{keyCode:Ef.BACKSPACE,action:ix(eb,t,!1)},{keyCode:Ef.DELETE,action:ix(eb,t,!0)},{keyCode:Ef.BACKSPACE,action:ix(By,t,n,!1)},{keyCode:Ef.DELETE,action:ix(By,t,n,!0)},{keyCode:Ef.BACKSPACE,action:ix(ag,t,!1)},{keyCode:Ef.DELETE,action:ix(ag,t,!0)},{keyCode:Ef.BACKSPACE,action:ix(ub,t,!1)},{keyCode:Ef.DELETE,action:ix(ub,t,!0)},{keyCode:Ef.BACKSPACE,action:ix(Vy,t,!1)},{keyCode:Ef.DELETE,action:ix(Vy,t,!0)},{keyCode:Ef.BACKSPACE,action:ix(Gv,t,!1)},{keyCode:Ef.DELETE,action:ix(Gv,t,!0)},{keyCode:Ef.BACKSPACE,action:ix(Wv,t,!1)},{keyCode:Ef.DELETE,action:ix(Wv,t,!0)},{keyCode:Ef.BACKSPACE,action:ix(Hy,t,!1)},{keyCode:Ef.DELETE,action:ix(Hy,t,!0)}],o).each((function(e){o.preventDefault()})))})),f.on("keyup",(function(e){var t,n;!1===e.isDefaultPrevented()&&(n=e,ax([{keyCode:Ef.BACKSPACE,action:ix(ib,t=f)},{keyCode:Ef.DELETE,action:ix(ib,t)}],n))})),(l=e).on("keydown",(function(e){var t,n,o;e.keyCode===Ef.ENTER&&(t=l,(n=e).isDefaultPrevented()||(n.preventDefault(),(o=t.undoManager).typing&&(o.typing=!1,o.add()),t.undoManager.transact((function(){!1===t.selection.isCollapsed()&&t.execCommand("Delete"),Xx(t,n)}))))})),(s=e).on("keydown",(function(e){var t;!1===e.isDefaultPrevented()&&(t=e,ax([{keyCode:Ef.SPACEBAR,action:ix(Zx,s)}],t).each((function(e){t.preventDefault()})))})),u=a=e,c=cu((function(){u.composing||zm(u)}),0),pw.isIE()&&(u.on("keypress",(function(e){c.throttle()})),u.on("remove",(function(e){c.cancel()}))),a.on("input",(function(e){!1===e.isComposing&&zm(a)})),i=h,(r=e).on("keydown",(function(e){var t,n,o;!1===e.isDefaultPrevented()&&(n=i,o=e,ax([{keyCode:Ef.END,action:ix(ex,t=r,!0)},{keyCode:Ef.HOME,action:ix(ex,t,!1)},{keyCode:Ef.END,action:ix(sx,t,!0)},{keyCode:Ef.HOME,action:ix(sx,t,!1)},{keyCode:Ef.END,action:ix(Dy,t,!0,n)},{keyCode:Ef.HOME,action:ix(Dy,t,!1,n)}],o).each((function(e){o.preventDefault()})))})),t=e,n=h,vw.os.isOSX()||(o=tu(!1),t.on("keydown",(function(e){Yx(e)&&Jx(o,t,!0)})),t.on("keyup",(function(e){var r,i,a;!1===e.isDefaultPrevented()&&(a=e,ax([{keyCode:Ef.PAGE_UP,action:ix(Dy,r=t,!1,i=n)},{keyCode:Ef.PAGE_DOWN,action:ix(Dy,r,!0,i)}],a)),Yx(e)&&o.get()&&(Jx(o,t,!1),t.nodeChanged())}))),h}(uy=ay=ay||{})[uy.Up=-1]="Up",uy[uy.Down=1]="Down";var tw=_(dy,ay.Up,Ou,Eu),nw=_(dy,ay.Down,Eu,Ou),ow=Xn,rw=jc,iw=function(e,t){var n=e.selection.getRng(),o=e.getBody();if(t){var r=oc.fromRangeEnd(n),i=sy(o,r);return ee(i.positions)}return r=oc.fromRangeStart(n),Z((i=cy(o,r)).positions)},aw=_(My,!0),uw=_(My,!1),cw=function(e){return F(L(e.selection.getSelectedBlocks(),_t.fromDom),(function(e){return!Uy(e)&&!At(e).exists(Uy)&&ho(e,(function(e){return $n(e.dom)||Xn(e.dom)})).exists((function(e){return $n(e.dom)}))}))},sw=Xn,lw=_(lx,(function(e){return e.bottom}),(function(e,t){return e.y<t})),fw=_(lx,(function(e){return e.top}),(function(e,t){return e.y>t})),dw=_(fx,cy),mw=_(fx,sy),gw=function(e,t){return n=oc.after(t),!!qn(n.getNode())||Gl(e,oc.after(t)).map((function(e){return qn(e.getNode())})).getOr(!1);var n},hw=oo([{br:[]},{block:[]},{none:[]}]),pw=dt().browser,vw=dt(),bw=_(Qx,vr),yw=_(Qx," "),xw=(ww.prototype.nodeChanged=function(e){var t,n,o,r=this.editor.selection;this.editor.initialized&&r&&!this.editor.getParam("disable_nodechange")&&!this.editor.mode.isReadOnly()&&(o=this.editor.getBody(),(t=r.getStart(!0)||o).ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,o)||(t=o),n=[],this.editor.dom.getParent(t,(function(e){return e===o||void n.push(e)})),(e=e||{}).element=t,e.parents=n,this.editor.fire("NodeChange",e))},ww.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.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},ww);function ww(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var o=e.selection.getRng(),r={startContainer:o.startContainer,startOffset:o.startOffset,endContainer:o.endContainer,endOffset:o.endOffset};"nodechange"!==n.type&&vf(r,t)||e.fire("SelectionChange"),t=r})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!wt.range&&e.selection.isCollapsed()||El(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&El(e)&&("IMG"===e.selection.getNode().nodeName?Oo.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}function Cw(e){return Pn(e)&&lr(_t.fromDom(e))}function Sw(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,o=n.documentElement,r=n.defaultView;return{top:t.top+r.pageYOffset-o.clientTop,left:t.left+r.pageXOffset-o.clientLeft}}function kw(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function _w(e){var t,n,o,r,i,a,u=uu(),c=Ka.DOM,s=document,l=function(e,t){var n=Oo.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return t.on("remove",n.stop),function(o){return e.on((function(e){var r,i,a,u,c,s,l,f,d,m,g,h,p,v,b,y,x,w,C,S,k=Math.max(Math.abs(o.screenX-e.screenX),Math.abs(o.screenY-e.screenY));if(!e.dragging&&10<k){if(t.fire("dragstart",{target:e.element}).isDefaultPrevented())return;e.dragging=!0,t.focus()}e.dragging&&(h=e,r={pageX:(b=o,y=(v=t).inline?Sw(v.getBody()):{left:0,top:0},S=(C=v).getBody(),x=C.inline?{left:S.scrollLeft,top:S.scrollTop}:{left:0,top:0},(p={pageX:(w=function(e,t){if(t.target.ownerDocument===e.getDoc())return{left:t.pageX,top:t.pageY};var n,o,r,i,a,u=Sw(e.getContentAreaContainer()),c=(o=(n=e).getBody(),r=n.getDoc().documentElement,i={left:o.scrollLeft,top:o.scrollTop},a={left:o.scrollLeft||r.scrollLeft,top:o.scrollTop||r.scrollTop},n.inline?i:a);return{left:t.pageX-u.left+c.left,top:t.pageY-u.top+c.top}}(v,b)).left-y.left+x.left,pageY:w.top-y.top+x.top}).pageX-h.relX),pageY:p.pageY+5},m=e.ghost,g=t.getBody(),m.parentNode!==g&&g.appendChild(m),i=e.ghost,u=e.width,c=e.height,s=e.maxX,l=e.maxY,d=f=0,i.style.left=(a=r).pageX+"px",i.style.top=a.pageY+"px",l<a.pageY+c&&(d=a.pageY+c-l),i.style.width=u-(f=s<a.pageX+u?a.pageX+u-s:f)+"px",i.style.height=c-d+"px",n(o.clientX,o.clientY))}))}}(i=u,a=e),f=(t=o=u,function(){t.on((function(e){e.dragging&&n.fire("dragend")})),qw(t)});(n=r=e).on("mousedown",(function(e){var t,n,o,r,u,c;0===e.button&&(t=q(a.dom.getParents(e.target),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}}(jw,Ww)).getOr(null),u=a.getBody(),jw(c=t)&&c!==u&&(n=a.dom.getPos(t),o=a.getBody(),r=a.getDoc().documentElement,i.set({element:t,dragging:!1,screenX:e.screenX,screenY:e.screenY,maxX:(a.inline?o.scrollWidth:r.offsetWidth)-2,maxY:(a.inline?o.scrollHeight:r.offsetHeight)-2,relX:e.pageX-n.x,relY:e.pageY-n.y,width:t.offsetWidth,height:t.offsetHeight,ghost:function(e,t,n){var o=a.dom,r=e.cloneNode(!0);o.setStyles(r,{width:t,height:n}),o.setAttrib(r,"data-mce-selected",null);var i=o.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return o.setStyles(i,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:t,height:n}),o.setStyles(r,{margin:0,boxSizing:"border-box"}),i.appendChild(r),i}(t,t.offsetWidth,t.offsetHeight)})))})),e.on("mousemove",l),e.on("mouseup",(function(e){o.on((function(t){var n,o,i,a,u,c;t.dragging&&((a=3===(c=(i=r).selection.getSel().getRangeAt(0).startContainer).nodeType?c.parentNode:c)===(u=t.element)||i.dom.isChildOf(a,u)||jw(a)||((o=t.element.cloneNode(!0)).removeAttribute("data-mce-selected"),n=o,r.fire("drop",{clientX:e.clientX,clientY:e.clientY}).isDefaultPrevented()||r.undoManager.transact((function(){kw(t.element),r.insertContent(r.dom.getOuterHTML(n)),r._selectionOverrides.hideFakeCaret()}))),r.fire("dragend"))})),qw(o)})),c.bind(s,"mousemove",l),c.bind(s,"mouseup",f),e.on("remove",(function(){c.unbind(s,"mousemove",l),c.unbind(s,"mouseup",f)})),e.on("keydown",(function(e){e.keyCode===Ef.ESC&&f()}))}function Ow(e,t){return sf(e.getBody(),t)}function Ew(e){function t(e){return e!==v&&($w(e)||Yn(e))&&h.isChildOf(e,v)}function n(e){return Ig(e)||Fg(e)||Hg(e)||Lg(e)}function o(e){e&&g.setRng(e)}function r(t,n,o,r){return void 0===r&&(r=!0),e.fire("ShowCaret",{target:n,direction:t,before:o}).isDefaultPrevented()?null:(r&&g.scrollIntoView(n,-1===t),b.show(o,n))}function i(e){return Ro(e)||Sr(e)||kr(e)}function u(e){return i(e.startContainer)||i(e.endContainer)}function c(n,o){if(!n)return null;if(n.collapsed){if(!u(n)){var i=o?1:-1,a=Jc(i,v,n),c=a.getNode(!o);if(Fc(c))return r(i,c,!!o&&!a.isAtEnd(),!1);var s=a.getNode(o);if(Fc(s))return r(i,s,!o&&!a.isAtEnd(),!1)}return null}var f=n.startContainer,d=n.startOffset,m=n.endOffset;if(3===f.nodeType&&0===d&&$w(f.parentNode)&&(f=f.parentNode,d=h.nodeIndex(f),f=f.parentNode),1!==f.nodeType)return null;if(m===d+1&&f===n.endContainer){var p=f.childNodes[d];if(t(p))return function(t){var n=t.cloneNode(!0),o=e.fire("ObjectSelected",{target:t,targetClone:n});if(o.isDefaultPrevented())return null;var r=function(t,n,o){var r=e.$,i=vo(_t.fromDom(e.getBody()),"#"+y).fold((function(){return r([])}),(function(e){return r([e.dom])}));0===i.length&&(i=r('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",y)).appendTo(e.getBody());var a=h.createRng();n===o&&wt.ie?(i.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(n),a.setStartAfter(i[0].firstChild.firstChild),a.setEndAfter(n)):(i.empty().append(vr).append(n).append(vr),a.setStart(i[0].firstChild,1),a.setEnd(i[0].lastChild,0)),i.css({top:h.getPos(t,e.getBody()).y}),i[0].focus();var u=g.getSel();return u.removeAllRanges(),u.addRange(a),a}(t,o.targetClone,n),i=_t.fromDom(t);return V(gu(_t.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){Ue(i,e)||yn(e,x)})),h.getAttrib(t,x)||t.setAttribute(x,"1"),l=t,C(),r}(p)}return null}function s(){l&&l.removeAttribute(x),vo(_t.fromDom(e.getBody()),"#"+y).each(Bn),l=null}var l,f,d,m,g=e.selection,h=e.dom,p=h.isBlock,v=e.getBody(),b=function(e,t,n,o){function r(){!function(){for(var e=gu(_t.fromDom(t),"*[contentEditable=false],video,audio,embed,object"),n=0;n<e.length;n++){var o,r=e[n].dom,i=r.previousSibling;kr(i)&&(1===(o=i.data).length?i.parentNode.removeChild(i):i.deleteData(o.length-1,1)),i=r.nextSibling,Sr(i)&&(1===(o=i.data).length?i.parentNode.removeChild(i):i.deleteData(0,1))}}(),a&&(ms(a),a=null),u.on((function(e){Wa(e.caret).remove(),u.clear()})),i&&(Oo.clearInterval(i),i=void 0)}var i,a,u=uu(),c=xc(e),s=0<c.length?c:"p";return{show:function(e,c){var l;if(r(),vs(c))return null;if(!n(c))return a=function(e,t){var n=e.ownerDocument.createTextNode(br),o=e.parentNode;if(t){if(r=e.previousSibling,Cr(r)){if(Ro(r))return r;if(kr(r))return r.splitText(r.data.length-1)}o.insertBefore(n,e)}else{var r=e.nextSibling;if(Cr(r)){if(Ro(r))return r;if(Sr(r))return r.splitText(1),r}e.nextSibling?o.insertBefore(n,e.nextSibling):o.appendChild(n)}return n}(c,e),l=c.ownerDocument.createRange(),bs(a.nextSibling)?(l.setStart(a,0),l.setEnd(a,0)):(l.setStart(a,1),l.setEnd(a,1)),l;a=function(e,t,n){var o,r=t.ownerDocument.createElement(e);r.setAttribute("data-mce-caret",n?"before":"after"),r.setAttribute("data-mce-bogus","all"),r.appendChild(((o=document.createElement("br")).setAttribute("data-mce-bogus","1"),o));var i=t.parentNode;return n?i.insertBefore(r,t):t.nextSibling?i.insertBefore(r,t.nextSibling):i.appendChild(r),r}(s,c,e);var f=Pc(t,c,e);Wa(a).css("top",f.top);var d=Wa('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(Ee({},f)).appendTo(t)[0];return u.set({caret:d,element:c,before:e}),e&&Wa(d).addClass("mce-visual-caret-before"),i=Oo.setInterval((function(){o()?Wa("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Wa("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500),(l=c.ownerDocument.createRange()).setStart(a,0),l.setEnd(a,0),l},hide:r,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(){u.on((function(e){var n=Pc(t,e.element,e.before);Wa(e.caret).css(Ee({},n))}))},destroy:function(){return Oo.clearInterval(i)}}}(e,v,p,(function(){return ld(e)})),y="sel-"+h.uniqueId(),x="data-mce-selected",w=g.getRng,C=function(){b.hide()};return wt.ceFalse&&!Kh(e)&&(e.on("mouseup",(function(t){var n=w();n.collapsed&&Rp(e,t.clientX,t.clientY)&&Kv(e,n,!1).each(o)})),e.on("click",(function(t){var n=Ow(e,t.target);n&&($w(n)&&(t.preventDefault(),e.focus()),Gw(n)&&h.isChildOf(n,g.getNode())&&s())})),e.on("blur NewBlock",s),e.on("ResizeWindow FullscreenStateChanged",b.reposition),e.on("tap",(function(n){var o=n.target,r=Ow(e,o);$w(r)?(n.preventDefault(),Xv(e,r).each(c)):t(o)&&Xv(e,o).each(c)}),!0),e.on("mousedown",(function(i){var u,l,f,d,m,b,y,x=i.target;x!==v&&"HTML"!==x.nodeName&&!h.isChildOf(x,v)||!1===Rp(e,i.clientX,i.clientY)||((u=Ow(e,x))?$w(u)?(i.preventDefault(),Xv(e,u).each(c)):(s(),Gw(u)&&i.shiftKey||lf(i.clientX,i.clientY,g.getRng())||(C(),g.placeCaretAt(i.clientX,i.clientY))):t(x)?Xv(e,x).each(c):!1===Fc(x)&&(s(),C(),(l=function(e,t,n){function o(e){return!sn(e.node)&&!Yn(e.node)}var r,i,a,u=iy(F(we(e.getElementsByTagName("*")),Fc));return(a=yy(F(u,_(by,n)),t,o))&&(a=yy(function(e,t,n){function o(e,n){var o=F(iy([n]),(function(n){return!e(n,t)}));return r=r.concat(o),0===o.length}void 0===n&&(n=!0);var r=[];return r.push(t),xy(ay.Up,e,_(o,Ou),t.node,n),xy(ay.Down,e,_(o,Eu),t.node,n),r}(e,a,o(a)),t,o))&&Fc(a.node)?{node:(r=a).node,before:hy(r,i=t)<py(r,i)}:null}(v,i.clientX,i.clientY))&&(f=x,d=l.node,b=h.getParent(f,p),y=h.getParent(d,p),!a(b)&&(f!==y&&h.isChildOf(b,y)&&!1===$w(Ow(e,b))||!h.isChildOf(y,b)&&(m=y,h.getParent(b,p)!==h.getParent(m,p))&&function(e){var t=e.firstChild;if(!a(t)){var o=oc.before(t);if(qn(o.getNode())&&1===e.childNodes.length)return!n(o);var r=Ms(e).next(o);return r&&!n(r)}}(b))||(i.preventDefault(),o(r(1,l.node,l.before,!1)),e.getBody().focus()))))})),e.on("keypress",(function(e){Ef.modifierPressed(e)||$w(g.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var t=e.range;l&&(l.parentNode?((t=t.cloneRange()).selectNode(l),e.range=t):l=null)})),e.on("SetSelectionRange",(function(t){var n,o,r,i,a,u,s;t.range=(n=t.range,o=e.schema.getShortEndedElements(),r=h.createRng(),i=n.startContainer,a=n.startOffset,u=n.endContainer,s=n.endOffset,_e(o,i.nodeName.toLowerCase())?0===a?r.setStartBefore(i):r.setStartAfter(i):r.setStart(i,a),_e(o,u.nodeName.toLowerCase())?0===s?r.setEndBefore(u):r.setEndAfter(u):r.setEnd(u,s),r);var l=c(t.range,t.forward);l&&(t.range=l)})),e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;u(t)||"mcepastebin"===n.id||C(),h.hasClass(n,"mce-offscreen-selection")||s()})),e.on("copy",(function(e){var t,n,o=e.clipboardData;e.isDefaultPrevented()||!e.clipboardData||wt.ie||(t=(n=h.get(y))&&n.getElementsByTagName("*")[0])&&(e.preventDefault(),o.clearData(),o.setData("text/html",t.outerHTML),o.setData("text/plain",t.outerText||t.innerText))})),function(e){var t,n;function o(e){var t;e.isDefaultPrevented()||(t=e.dataTransfer)&&(R(t.types,"Files")||0<t.files.length)&&(e.preventDefault(),"drop"===e.type&&fv(n,"Dropped file type is not supported"))}function r(e){id(n,e.target)&&o(e)}function i(){var e=Ka.DOM,t=n.dom,i=document,a=n.inline?n.getBody():n.getDoc(),u=["drop","dragover"];V(u,(function(n){e.bind(i,n,r),t.bind(a,n,o)})),n.on("remove",(function(){V(u,(function(n){e.unbind(i,n,r),t.unbind(a,n,o)}))}))}_w(e),(t=e).on("drop",(function(e){var n=void 0!==e.clientX?t.getDoc().elementFromPoint(e.clientX,e.clientY):null;!jw(n)&&"false"!==t.dom.getContentEditableParent(n)||e.preventDefault()})),e.getParam("block_unsupported_drop",!0,"boolean")&&(n=e).on("init",(function(){Oo.setEditorTimeout(n,i,0)}))}(e),d=cu((function(){var e,t;f.removed||!f.getBody().contains(document.activeElement)||(e=f.selection.getRng()).collapsed&&(t=Yv(f,e,!1),f.selection.setRng(t))}),0),(f=e).on("focus",(function(){d.throttle()})),f.on("blur",(function(){d.cancel()})),(m=e).on("init",(function(){m.on("focusin",(function(e){var t,n,o=e.target;Yn(o)&&(t=sf(m.getBody(),o),n=Xn(t)?t:o,m.selection.getNode()!==n&&Xv(m,n).each((function(e){return m.selection.setRng(e)})))}))}))),{showCaret:r,showBlockCaretContainer:function(e){e.hasAttribute("data-mce-caret")&&(Po(e),o(w()),g.scrollIntoView(e))},hideFakeCaret:C,destroy:function(){b.destroy(),l=null}}}function zw(e){return ae(e,(function(e){return!1===C(e)}))}function Tw(e){var t=e.settings,n=e.editorUpload.blobCache;return zw({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:e.inline?e.getElement().nodeName.toLowerCase():void 0,validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})}function Mw(e){return(e.inline?e.ui:e.dom).styleSheetLoader}function Dw(e){function t(){r.unloadAll(a),e.inline||e.ui.styleSheetLoader.unloadAll(i)}function n(){e.removed?t():e.on("remove",t)}var o,r=Mw(e),i=Ec(e),a=e.contentCSS;0<e.contentStyles.length&&(o="",kt.each(e.contentStyles,(function(e){o+=e+"\r\n"})),e.dom.addStyle(o));var u,c,s,l,f,d,m,g,h,p=_o.all((u=e,c=a,s=i,l=[new _o((function(e,t){return Mw(u).loadAll(c,e,t)}))],u.inline?l:l.concat([new _o((function(e,t){return u.ui.styleSheetLoader.loadAll(s,e,t)}))]))).then(n).catch(n);return e.settings.content_style&&(d=(f=e).settings.content_style,m=_t.fromDom(f.getBody()),g=Ut(An(m)),hn(h=_t.fromTag("style"),"type","text/css"),Nn(h,_t.fromText(d)),Nn(g,h),f.on("remove",(function(){Bn(h)}))),p}function Aw(e){var t;!0!==e.removed&&(Kh(t=e)||t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"}),function(e){var t,n,o;e.bindPendingEventDelegates(),e.initialized=!0,e.fire("Init"),e.focus(!0),o=(n=e).dom.getRoot(),n.inline||El(n)&&n.selection.getStart(!0)!==o||Xl(o).each((function(e){var t,o,r,i,a=e.getNode(),u=sn(a)?Xl(a).getOr(e):e;wt.browser.isIE()?(t=n,o=u.toRange(),r=_t.fromDom(t.getBody()),i=(ed(t)?ve.from(o):ve.none()).map(td).filter(Zf(r)),t.bookmark=i.isSome()?i:t.bookmark):n.selection.setRng(u.toRange())})),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),(t=e).settings.auto_focus&&Oo.setEditorTimeout(t,(function(){var e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus);e.destroyed||e.focus()}),100)}(e))}function Nw(e,t){var n=e.settings,o=e.getElement(),r=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(r.open(),r.write(e.iframeHTML),r.close()),e.inline&&(Xw.addClass(o,"mce-content-body"),e.contentDocument=r=document,e.contentWindow=window,e.bodyElement=o,e.contentAreaContainer=o);var i,a,u,s,l,f,d,m,g,h,p,b=e.getBody();b.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===Xw.getStyle(b,"position",!0)&&(b.style.position="relative"),b.contentEditable=e.getParam("content_editable_state",!0)),b.disabled=!1,e.editorUpload=xv(e),e.schema=er(n),e.dom=Ka(r,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:e.getParam("content_css_cors",!1,"boolean"),referrerPolicy:kc(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=((a=Sp(Tw(i=e),i.schema)).addAttributeFilter("src,href,style,tabindex",(function(e,t){for(var n,o,r=e.length,a=i.dom,u="data-mce-"+t;r--;)(o=(n=e[r]).attr(t))&&!n.attr(u)&&0!==o.indexOf("data:")&&0!==o.indexOf("blob:")&&("style"===t?((o=a.serializeStyle(a.parseStyle(o),n.name)).length||(o=null),n.attr(u,o),n.attr(t,o)):"tabindex"===t?(n.attr(u,o),n.attr(t,null)):n.attr(u,i.convertURL(o,t,n.name)))})),a.addNodeFilter("script",(function(e){for(var t=e.length;t--;){var n=e[t],o=n.attr("type")||"no/type";0!==o.indexOf("mce-")&&n.attr("type","mce-"+o)}})),i.settings.preserve_cdata&&a.addNodeFilter("#cdata",(function(e){for(var t=e.length;t--;){var n=e[t];n.type=8,n.name="#comment",n.value="[CDATA["+i.dom.encode(n.value)+"]]"}})),a.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(e){for(var t=e.length,n=i.schema.getNonEmptyElements();t--;){var o=e[t];o.isEmpty(n)&&0===o.getAll("br").length&&(o.append(new Ad("br",1)).shortEnded=!0)}})),a),e.serializer=_p((u=e.settings,Ee(Ee({},Tw(e)),zw({url_converter:u.url_converter,url_converter_scope:u.url_converter_scope,element_format:u.element_format,entities:u.entities,entity_encoding:u.entity_encoding,indent:u.indent,indent_after:u.indent_after,indent_before:u.indent_before,block_elements:u.block_elements,boolean_attributes:u.boolean_attributes,custom_elements:u.custom_elements,extended_valid_elements:u.extended_valid_elements,invalid_elements:u.invalid_elements,invalid_styles:u.invalid_styles,move_caret_before_on_enter_elements:u.move_caret_before_on_enter_elements,non_empty_elements:u.non_empty_elements,schema:u.schema,self_closing_elements:u.self_closing_elements,short_ended_elements:u.short_ended_elements,special:u.special,text_block_elements:u.text_block_elements,text_inline_elements:u.text_inline_elements,valid_children:u.valid_children,valid_classes:u.valid_classes,valid_elements:u.valid_elements,valid_styles:u.valid_styles,verify_html:u.verify_html,whitespace_elements:u.whitespace_elements}))),e),e.selection=pp(e.dom,e.getWin(),e.serializer,e),e.annotator=Al(e),e.formatter=kv(e),e.undoManager=Ov(e),e._nodeChangeDispatcher=new xw(e),e._selectionOverrides=Ew(e),m=e,g=uu(),h=tu(!1),p=su((function(e){m.fire("longpress",Ee(Ee({},e),{type:"longpress"})),h.set(!0)}),400),m.on("touchstart",(function(e){Gy(e).each((function(t){p.cancel();var n={x:t.clientX,y:t.clientY,target:e.target};p.throttle(e),h.set(!1),g.set(n)}))}),!0),m.on("touchmove",(function(e){p.cancel(),Gy(e).each((function(e){g.on((function(t){var n=e,o=t,r=Math.abs(n.clientX-o.x),i=Math.abs(n.clientY-o.y);(5<r||5<i)&&(g.clear(),h.set(!1),m.fire("longpresscancel"))}))}))}),!0),m.on("touchend touchcancel",(function(e){p.cancel(),"touchcancel"!==e.type&&g.get().filter((function(t){return t.target.isEqualNode(e.target)})).each((function(){h.get()?e.preventDefault():m.fire("tap",Ee(Ee({},e),{type:"tap"}))}))}),!0),(f=l=e).on("click",(function(e){f.dom.getParent(e.target,"details")&&e.preventDefault()})),(d=l).parser.addNodeFilter("details",(function(e){V(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),d.serializer.addNodeFilter("details",(function(e){V(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",v(t)?t:null),e.attr("data-mce-open",null)}))})),Kh(e)||(s=e).on("click",(function(e){var t,n,o,r,i;3<=e.detail&&(o=(t=s).selection.getRng(),r=oc.fromRangeStart(o),i=oc.fromRangeEnd(o),!oc.isElementPosition(r)||Cw(n=r.container())&&Xl(n).each((function(e){return o.setStart(e.container(),e.offset())})),!oc.isElementPosition(i)||Cw(n=r.container())&&Kl(n).each((function(e){return o.setEnd(e.container(),e.offset())})),t.selection.setRng(ug(o)))}));var y,x,w,C,S,k,O,E,z,T=Kh(y=e)?tu(null):ew(y);z=T,(E=e).addCommand("delete",(function(){var e,t=z;Wy(e=E)||ab(e,!1)||eb(e,!1)||By(e,t,!1)||Wv(e,!1)||ag(e)||ub(e,!1)||Vy(e,!1)||Gv(e)||Hy(e,!1)||(qy(e,"Delete"),Bv(e))})),E.addCommand("forwardDelete",(function(){var e,t=z;ab(e=E,!0)||eb(e,!0)||By(e,t,!0)||Wv(e,!0)||ag(e)||ub(e,!0)||Vy(e,!0)||Gv(e)||Hy(e,!0)||qy(e,"ForwardDelete")})),xc(x=e)&&x.on("NodeChange",_(Xy,x)),C=(w=e).dom,S=xc(w),k=w.getParam("placeholder",ls.getAttrib(w.getElement(),"placeholder"),"string"),O=function(e,t){var n,o,r;!function(e){if(Ev(e)){var t=e.keyCode;return!zv(e)&&(Ef.metaKeyPressed(e)||e.altKey||112<=t&&t<=123||R(Pb,t))}}(e)&&(n=w.getBody(),o=!(Ev(r=e)&&!(zv(r)||"keyup"===r.type&&229===r.keyCode))&&function(e,t,n){if(qo(_t.fromDom(t),!1)){var o=""===n,r=t.firstElementChild;return!r||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(o?!e.isBlock(r):n===r.nodeName.toLowerCase())}return!1}(C,n,S),""!==C.getAttrib(n,Ib)===o&&!t||(C.setAttrib(n,Ib,o?k:null),C.setAttrib(n,"aria-placeholder",o?k:null),w.fire("PlaceholderToggle",{state:o}),w.on(o?"keydown":"keyup",O),w.off(o?"keyup":"keydown",O)))},k&&w.on("init",(function(e){O(e,!0),w.on("change SetContent ExecCommand",O),w.on("paste",(function(e){return Oo.setEditorTimeout(w,(function(){return O(e)}))}))}));var M=Yh(e);(function(e){var t=e.settings,n=e.getDoc(),o=e.getBody();e.fire("PreInit"),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,Xw.setAttrib(o,"spellcheck","false")),e.quirks=function(e){function t(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(t){}}function n(e){return e.isDefaultPrevented()}function o(){e.shortcuts.add("meta+a",null,"SelectAll")}function r(){e.inline||y.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;t.target===e.getDoc().documentElement&&(n=x.getRng(),e.getBody().focus(),"mousedown"===t.type?Ro(n.startContainer)||x.placeCaretAt(t.clientX,t.clientY):x.setRng(n))}))}function i(){Range.prototype.getClientRects||e.on("mousedown",(function(t){var o;n(t)||"HTML"!==t.target.nodeName||((o=e.getBody()).blur(),Oo.setEditorTimeout(e,(function(){o.focus()})))}))}function a(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==y.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&y.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),x.select(n))}))}function u(){e.on("keydown",(function(e){if(!n(e)&&e.keyCode===v&&x.isCollapsed()&&0===x.getRng().startOffset){var t=x.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))}function s(){e.getParam("readonly")||e.on("BeforeExecCommand mousedown",(function(){t("StyleWithCSS",!1),t("enableInlineTableEditing",!1),zc(e)||t("enableObjectResizing",!1)}))}function l(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}function f(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))}function d(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;"HTML"===t.target.nodeName&&(11<wt.ie?e.getBody().focus():(n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()))})))}function m(){wt.mac&&e.on("keydown",(function(t){!Ef.metaKeyPressed(t)||t.shiftKey||37!==t.keyCode&&39!==t.keyCode||(t.preventDefault(),e.selection.getSel().modify("move",37===t.keyCode?"backward":"forward","lineboundary"))}))}function g(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")}function h(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))}var p=kt.each,v=Ef.BACKSPACE,b=Ef.DELETE,y=e.dom,x=e.selection,w=e.parser,C=wt.gecko,S=wt.ie,k=wt.webkit,_="data:text/mce-internal,",O=S?"Text":"URL",E=c;return Kh(e)?(k&&(r(),a(),h(),o(),wt.iOS&&(f(),d(),g())),C&&(i(),s(),l(),m())):(e.on("keydown",(function(t){if(!n(t)&&t.keyCode===Ef.BACKSPACE){var o,r=(o=x.getRng()).startContainer,i=o.startOffset,a=y.getRoot(),u=r;if(o.collapsed&&0===i){for(;u&&u.parentNode&&u.parentNode.firstChild===u&&u.parentNode!==a;)u=u.parentNode;"BLOCKQUOTE"===u.tagName&&(e.formatter.toggle("blockquote",null,u),(o=y.createRng()).setStart(r,0),o.setEnd(r,0),x.setRng(o))}}})),e.on("keydown",(function(t){var o,r,i,a,u=t.keyCode;n(t)||u!==b&&u!==v||(o=e.selection.isCollapsed(),r=e.getBody(),o&&!y.isEmpty(r)||!o&&(i=M(e.selection.getRng()),(a=y.createRng()).selectNode(e.getBody()),i!==M(a))||(t.preventDefault(),e.setContent(""),r.firstChild&&y.isBlock(r.firstChild)?e.selection.setCursorLocation(r.firstChild,0):e.selection.setCursorLocation(r,0),e.nodeChanged()))})),wt.windowsPhone||e.on("keyup focusin mouseup",(function(e){Ef.modifierPressed(e)||x.normalize()}),!0),k&&(r(),a(),xc(e)&&e.on("init",(function(){t("DefaultParagraphSeparator",xc(e))})),h(),u(),w.addNodeFilter("br",(function(e){for(var t=e.length;t--;)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()})),wt.iOS?(f(),d(),g()):o()),11<=wt.ie&&(d(),u()),wt.ie&&(o(),t("AutoUrlDetect",!1),e.on("dragstart",(function(t){var n,o,r;(n=t).dataTransfer&&(e.selection.isCollapsed()&&"IMG"===n.target.tagName&&x.select(n.target),0<(o=e.selection.getContent()).length&&(r=_+escape(e.id)+","+escape(o),n.dataTransfer.setData(O,r)))})),e.on("drop",(function(t){var o,r,i,a;n(t)||(o=t.dataTransfer&&(a=t.dataTransfer.getData(O))&&0<=a.indexOf(_)?(a=a.substr(_.length).split(","),{id:unescape(a[0]),html:unescape(a[1])}):null)&&o.id!==e.id&&(t.preventDefault(),r=pf(t.x,t.y,e.getDoc()),x.setRng(r),i=o.html,e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:i,internal:!0}):e.execCommand("mceInsertContent",!1,i))}))),C&&(e.on("keydown",(function(t){if(!n(t)&&t.keyCode===v&&e.getBody().getElementsByTagName("hr").length&&x.isCollapsed()&&0===x.getRng().startOffset){var o=x.getNode(),r=o.previousSibling;if("HR"===o.nodeName)return y.remove(o),void t.preventDefault();r&&r.nodeName&&"hr"===r.nodeName.toLowerCase()&&(y.remove(r),t.preventDefault())}})),i(),e.on("keypress",(function(t){var o;if(!n(t)&&(8===t.keyCode||46===t.keyCode)&&T())return o=z(),e.getDoc().execCommand("delete",!1,null),o(),t.preventDefault(),!1})),y.bind(e.getDoc(),"cut",(function(t){var o;!n(t)&&T()&&(o=z(),Oo.setEditorTimeout(e,(function(){o()})))})),s(),e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||p(y.select("a"),(function(e){var t=e.parentNode,n=y.getRoot();if(t.lastChild===e){for(;t&&!y.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}y.add(t,"br",{"data-mce-bogus":1})}}))})),l(),m(),u())),{refreshContentEditable:E,isHidden:function(){if(!C||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount}};function z(){var t=y.getAttribs(x.getStart().cloneNode(!1));return function(){var n=x.getStart();n!==e.getBody()&&(y.setAttrib(n,"style",null),p(t,(function(e){n.setAttributeNode(e.cloneNode(!0))})))}}function T(){return!x.isCollapsed()&&y.getParent(x.getStart(),y.isBlock)!==y.getParent(x.getEnd(),y.isBlock)}function M(e){var t=y.create("body"),n=e.cloneContents();return t.appendChild(n),x.serializer.serialize(t,{format:"html"})}}(e),e.fire("PostRender");var r=e.getParam("directionality",iu.isRtl()?"rtl":void 0);void 0!==r&&(o.dir=r),t.protect&&e.on("BeforeSetContent",(function(e){kt.each(t.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type}))})(e),M.fold((function(){Dw(e).then((function(){return Aw(e)}))}),(function(t){e.setProgressState(!0),Dw(e).then((function(){t().then((function(t){e.setProgressState(!1),Aw(e)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),Aw(e)}))}))}))}function Bw(e){return e.replace(/^\-/,"")}function Rw(e){return{editorContainer:e,iframeContainer:e,api:{}}}function Hw(e){var t,n,o,r,i,a,u,s;e.fire("ScriptsLoaded"),t=e,n=kt.trim(Sc(t)),o=t.ui.registry.getAll().icons,ne(Ee(Ee({},nv.get("default").icons),nv.get(n).icons),(function(e,n){_e(o,n)||t.ui.registry.addIcon(n,e)})),a=Mc(r=e),v(a)?(r.settings.theme=Bw(a),i=cv.get(a),r.theme=new i(r,cv.urls[a]),r.theme.init&&r.theme.init(r,cv.urls[a]||r.documentBaseUrl.replace(/\/$/,""),r.$)):r.theme={},s=[],kt.each(Ac(u=e).split(/[ ,]/),(function(e){Jw(u,s,Bw(e))}));var l=function(e){var t,n,o,r,i,a,u,c=e.getElement();return e.orgDisplay=c.style.display,v(Mc(e))?e.theme.renderUI():S(Mc(e))?(n=(t=e).getElement(),(o=Mc(t)(t,n)).editorContainer.nodeType&&(o.editorContainer.id=o.editorContainer.id||t.id+"_parent"),o.iframeContainer&&o.iframeContainer.nodeType&&(o.iframeContainer.id=o.iframeContainer.id||t.id+"_iframecontainer"),o.height=o.iframeHeight||n.offsetHeight,o):(u=(r=e).getElement(),r.inline?Rw(null):(i=u,a=Yw.create("div"),Yw.insertAfter(a,i),Rw(a)))}(e),f=e,d=ve.from(l.api).getOr({}),m={show:ve.from(d.show).getOr(c),hide:ve.from(d.hide).getOr(c),disable:ve.from(d.disable).getOr(c),isDisabled:ve.from(d.isDisabled).getOr(M),enable:function(){f.mode.isReadOnly()||ve.from(d.enable).map(z)}};f.ui=Ee(Ee({},f.ui),m);var g,h,p,b={editorContainer:l.editorContainer,iframeContainer:l.iframeContainer};return e.editorContainer=b.editorContainer||null,function(e){var t,n;e.contentCSS=e.contentCSS.concat(Rb(e,(n=(t=e).getParam("content_css"),v(n)?L(n.split(","),Je):y(n)?n:!1===n||t.inline?[]:["default"])),Rb(e,Ec(e)))}(e),e.inline?Nw(e):(p=function(e,t){var n,o,r,i,a=e.translate("Rich Text Area"),u=(n=e.id,o=a,t.height,r=e.getParam("iframe_attrs",{}),pn(i=_t.fromTag("iframe"),r),pn(i,{id:n+"_ifr",frameBorder:"0",allowTransparency:"true",title:o}),du(i,"tox-edit-area__iframe"),i.dom);u.onload=function(){u.onload=null,e.fire("load")};var c=function(e,t){if(document.domain!==window.location.hostname&&wt.browser.isIE()){var n=pv("mce");e[n]=function(){Nw(e)};var o='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return Kw.setAttrib(t,"src",o),!0}return!1}(e,u);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=u,e.iframeHTML=function(e){var t=e.getParam("doctype","<!DOCTYPE html>")+"<html><head>";e.getParam("document_base_url","")!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=bc(e,"body_id","tinymce"),o=bc(e,"body_class",""),r=e.translate(e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string"));return yc(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+yc(e)+'" />'),t+'</head><body id="'+n+'" class="mce-content-body '+o+'" data-id="'+e.id+'" aria-label="'+r+'"><br></body></html>'}(e),Kw.add(t.iframeContainer,u),c}(g=e,h=b),h.editorContainer&&(Kw.get(h.editorContainer).style.display=g.orgDisplay,g.hidden=Kw.isHidden(h.editorContainer)),g.getElement().style.display="none",Kw.setAttrib(g.id,"aria-hidden","true"),void(p||Nw(g)))}function Lw(e){return"-"===e.charAt(0)}function Vw(e,t,n){return ve.from(t).filter((function(e){return 0<e.length&&!nv.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:ve.some(t)}}))}function Pw(e){return function(t,n){return ve.from(n).map(_t.fromDom).filter(_n).bind((function(n){return o=e,r=t,i=n.dom,hg(_t.fromDom(i),(function(e){return wn(t=e,o).orThunk((function(){return"font"===Ot(t)?ue(Zw,o).bind((function(e){return bn(t,e)})):ve.none()}));var t}),(function(e){return Ue(_t.fromDom(r),e)})).or((a=n.dom,ve.from(Ka.DOM.getStyle(a,e,!0))));var o,r,i,a})).getOr("")}}function Iw(e){return Xl(e.getBody()).map((function(e){var t=e.container();return Fn(t)?t.parentNode:t}))}function Fw(e,t){return n=e,o=l(ve.some,t),r=n,ve.from(r.selection.getRng()).bind((function(e){var t=r.getBody();return e.startContainer===t&&0===e.startOffset?ve.none():ve.from(r.selection.getStart(!0))})).orThunk(_(Iw,n)).map(_t.fromDom).filter(_n).bind(o);var n,o,r}function Uw(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(1<=n&&n<=7){var o=kt.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large")),r=kt.explode(e.getParam("font_size_classes",""));return r?r[n-1]||t:o[n-1]||t}return t}return t}var jw=Xn,Ww=$n,qw=function(e){e.on((function(e){kw(e.ghost)})),e.clear()},Gw=$n,$w=Xn,Xw=Ka.DOM,Kw=Ka.DOM,Yw=Ka.DOM,Jw=function(e,t,n){var o,r,i,a=uv.get(n),u=uv.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=kt.trim(n),a&&-1===kt.inArray(t,n)&&(kt.each(uv.dependencies(n),(function(n){Jw(e,t,n)})),!e.plugins[n]))try{var c=new a(e,u,e.$);(e.plugins[n]=c).init&&(c.init(e,u),t.push(n))}catch(a){r=a,ff(o=e,"PluginLoadError",{message:i=iu.translate(["Failed to initialize plugin: {0}",n])}),Ab(i,r),fv(o,i)}},Qw=Ka.DOM,Zw={"font-size":"size","font-family":"face"},eC=Pw("font-size"),tC=s((function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")}),Pw("font-family")),nC=kt.each,oC=kt.map,rC=kt.inArray,iC=(aC.prototype.execCommand=function(e,t,n,o){var r,i,a=!1,u=this;if(!u.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||o&&o.skip_focus?rd(i=u.editor).each((function(e){return i.selection.setRng(e)})):u.editor.focus()),(o=u.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n})).isDefaultPrevented())return!1;var c=e.toLowerCase();if(r=u.commands.exec[c])return r(c,t,n),u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(nC(this.editor.plugins,(function(o){if(o.execCommand&&o.execCommand(e,t,n))return u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!(a=!0)})),a)return a;if(u.editor.theme&&u.editor.theme.execCommand&&u.editor.theme.execCommand(e,t,n))return u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{a=u.editor.getDoc().execCommand(e,t,n)}catch(o){}return!!a&&(u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},aC.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(e){}return!1}},aC.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(e){}}},aC.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;nC(e,(function(e,o){nC(o.toLowerCase().split(","),(function(o){n.commands[t][o]=e}))}))},aC.prototype.addCommand=function(e,t,n){var o=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,r,i,a){return t.call(n||o.editor,r,i,a)}},aC.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(e){}return!1},aC.prototype.addQueryStateHandler=function(e,t,n){var o=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||o.editor)}},aC.prototype.addQueryValueHandler=function(e,t,n){var o=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||o.editor)}},aC.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},aC.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},aC.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},aC.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},aC.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},aC.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},aC.prototype.setupCommands=function(e){var t=this;function n(t){return function(){var n=e.selection,o=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),r=oC(o,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==rC(r,!0)}}this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":c,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,o){var r,i;i=o,(r=e).removed||(i?Md:function(e){var t=e.selection,n=e.getBody(),o=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===ld(e)&&rd(e).each((function(t){e.selection.setRng(t),o=t}));var r,i,a=(r=e,i=t.getNode(),r.dom.getParent(i,(function(e){return"true"===r.dom.getContentEditable(e)})));if(e.$.contains(n,a))return sd(a),cd(e,o),Md(e);e.inline||(wt.opera||sd(n),e.getWin().focus()),(wt.gecko||e.inline)&&(sd(n),cd(e,o)),Md(e)})(r)},"Cut,Copy,Paste":function(n){var o,r,i=e.getDoc();try{t.execNativeCommand(n)}catch(n){o=!0}!(o="paste"===n&&!i.queryCommandEnabled(n)||o)&&i.queryCommandSupported(n)||(r=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead."),wt.mac&&(r=r.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:r,type:"error"}))},unlink:function(){var t;e.selection.isCollapsed()?(t=e.dom.getParent(e.selection.getStart(),"a"))&&e.dom.remove(t,!0):e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var o=n.substring(7);"full"===o&&(o="justify"),nC("left,center,right,justify".split(","),(function(t){o!==t&&e.formatter.remove("align"+t)})),"none"!==o&&t.toggleFormat("align"+o)},"InsertUnorderedList,InsertOrderedList":function(n){var o;t.execNativeCommand(n);var r=e.dom.getParent(e.selection.getNode(),"ol,ul");r&&(o=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName)&&(t.storeSelection(),e.dom.split(o,r),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,o){t.toggleFormat(e,{value:o})},FontName:function(t,n,o){var r,i;i=Uw(r=e,o),r.formatter.toggle("fontname",{value:L(i.split(/\s*,\s*/),(function(e){return-1===e.indexOf(" ")||Ye(e,'"')||Ye(e,"'")?e:"'"+e+"'"})).join(",")}),r.nodeChanged()},FontSize:function(t,n,o){var r;(r=e).formatter.toggle("fontsize",{value:Uw(r,o)}),r.nodeChanged()},LineHeight:function(t,n,o){var r;(r=e).formatter.toggle("lineheight",{value:String(o)}),r.nodeChanged()},Lang:function(e,n,o){t.toggleFormat(e,{value:o.code,customValue:o.customCode})},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,o){return t.toggleFormat(o||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,o,r){var i=r||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,o){var r=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&r++===o)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,o){e.selection.select(o)},mceInsertContent:function(t,n,o){var r,i,a,u;r=e,a=(i=function(e){if("string"==typeof e)return{content:e,details:{}};var t=kt.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}(o)).content,u=i.details,Jh(r).editor.insertContent(a,u)},mceInsertRawHTML:function(t,n,o){e.selection.setContent("tiny_mce_marker");var r=e.getContent();e.setContent(r.replace(/tiny_mce_marker/g,(function(){return o})))},mceInsertNewLine:function(t,n,o){Xx(e,o)},mceToggleFormat:function(e,n,o){t.toggleFormat(o)},mceSetContent:function(t,n,o){e.setContent(o)},"Indent,Outdent":function(t){jy(e,t)},mceRepaint:c,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,o){e.execCommand("mceInsertContent",!1,o.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,o){"string"==typeof o&&(o={href:o});var r=e.dom.getParent(e.selection.getNode(),"a");o.href=o.href.replace(/ /g,"%20"),r&&o.href||e.formatter.remove("link"),o.href&&e.formatter.apply("link",o,r)},selectAll:function(){var t,n=e.dom.getParent(e.selection.getStart(),$n);n&&((t=e.dom.createRng()).selectNodeContents(n),e.selection.setRng(t))},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,o){return Hx(e,o),!0}}),t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return Fy(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return Fw(t=e,(function(e){return tC(t.getBody(),e.dom)})).getOr("");var t}),this),t.addQueryValueHandler("FontSize",(function(){return Fw(t=e,(function(e){return eC(t.getBody(),e.dom)})).getOr("");var t}),this),t.addQueryValueHandler("LineHeight",(function(){return Fw(t=e,(function(e){var n=_t.fromDom(t.getBody());return hg(e,(function(e){return wn(e,"line-height")}),_(Ue,n)).getOrThunk((function(){var t=parseFloat(xn(e,"line-height")),n=parseFloat(xn(e,"font-size"));return String(t/n)}))})).getOr("");var t}),this)},aC);function aC(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}function uC(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(e){}}function cC(e,t){e.dom.contentEditable=t?"true":"false"}function sC(e,t){var n,o,r=_t.fromDom(e.getBody());(function(e,t,n){var o,r,i,a,u,c;mu(e,t)&&!1===n?(r=t,fu(o=e)?o.dom.classList.remove(r):(u=r,0<(c=F(lu(a=o,"class"),(function(e){return e!==u}))).length?hn(a,"class",c.join(" ")):yn(a,"class")),0===(fu(i=o)?i.dom.classList:lu(i,"class")).length&&yn(i,"class")):n&&du(e,t)})(r,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),ve.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")})),cC(r,!(e.readonly=!0)),V(gu(r,'*[contenteditable="true"]'),(function(e){hn(e,dC,"true"),cC(e,!1)}))):(cC(r,!(e.readonly=!1)),V(gu(r,"*["+dC+'="true"]'),(function(e){yn(e,dC),cC(e,!0)})),uC(e,"StyleWithCSS",!1),uC(e,"enableInlineTableEditing",!1),uC(e,"enableObjectResizing",!1),(ld(n=e)||(o=n,Kf(An(_t.fromDom(o.getElement()))).filter((function(e){return!(void 0!==(t=e.dom.classList)&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body")))&&id(o,e.dom);var t})).isSome()))&&e.focus(),e.selection.setRng(e.selection.getRng()),e.nodeChanged())}function lC(e){return e.readonly}function fC(e){e.parser.addAttributeFilter("contenteditable",(function(t){lC(e)&&V(t,(function(e){e.attr(dC,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(dC,(function(t){lC(e)&&V(t,(function(e){e.attr("contenteditable",e.attr(dC))}))})),e.serializer.addTempAttr(dC)}var dC="data-mce-contenteditable",mC=kt.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),gC=(hC.isNative=function(e){return!!mC[e.toLowerCase()]},hC.prototype.fire=function(e,t){var n=e.toLowerCase(),o=rr(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(o);var r=this.bindings[n];if(r)for(var i=0,a=r.length;i<a;i++){var u=r[i];if(!u.removed){if(u.once&&this.off(n,u.func),o.isImmediatePropagationStopped())return o;if(!1===u.func.call(this.scope,o))return o.preventDefault(),o}}return o},hC.prototype.on=function(e,t,n,o){if(t=!1===t?M:t){var r={func:t,removed:!1};o&&kt.extend(r,o);for(var i=e.toLowerCase().split(" "),a=i.length;a--;){var u=i[a],c=this.bindings[u];c||(c=[],this.toggleEvent(u,!0)),c=n?ze([r],c,!0):ze(ze([],c,!0),[r],!1),this.bindings[u]=c}}return this},hC.prototype.off=function(e,t){var n=this;if(e)for(var o=e.toLowerCase().split(" "),r=o.length;r--;){var i,a=o[r],u=this.bindings[a];if(!a)return ne(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;u&&(t?(u=(i=I(u,(function(e){return e.func===t}))).fail,this.bindings[a]=u,V(i.pass,(function(e){e.removed=!0}))):u.length=0,u.length||(this.toggleEvent(e,!1),delete this.bindings[a]))}else ne(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},hC.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},hC.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},hC);function hC(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||M}function pC(e){return e._eventDispatcher||(e._eventDispatcher=new gC({scope:e,toggleEvent:function(t,n){gC.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher}function vC(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=Tc(e);return n?(e.eventRoot||(e.eventRoot=kC.select(n)[0]),e.eventRoot):e.getBody()}function bC(e,t,n){var o,r,i,a;e.hidden||lC(e)?lC(e)&&(o=e,"click"!==(r=n).type||Ef.metaKeyPressed(r)||(i=_t.fromDom(r.target),a=o,bo(i,"a",(function(e){return Ue(e,_t.fromDom(a.getBody()))})).bind((function(e){return bn(e,"href")})).each((function(e){var t,n;r.preventDefault(),/^#/.test(e)?(t=o.dom.select(e+',[name="'+(Ye(n=e,"#")?n.substring("#".length):n)+'"]')).length&&o.selection.scrollIntoView(t[0],!0):window.open(e,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})))):e.fire(t,n)}function yC(e,t){var n,o;e.delegates||(e.delegates={}),e.delegates[t]||e.removed||(o=vC(e,t),Tc(e)?(CC||(CC={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||CC&&(ne(CC,(function(t,n){e.dom.unbind(vC(e,n))})),CC=null)}))),CC[t]||(CC[t]=n=function(n){for(var o=n.target,r=e.editorManager.get(),i=r.length;i--;){var a=r[i].getBody();a!==o&&!kC.isChildOf(o,a)||bC(r[i],t,n)}},kC.bind(o,t,n))):(kC.bind(o,t,n=function(n){bC(e,t,n)}),e.delegates[t]=n))}function xC(e,t,n,o){var r=n[t.get()],i=n[o];try{i.activate()}catch(e){return void console.error("problem while activating editor mode "+o+":",e)}r.deactivate(),r.editorReadOnly!==i.editorReadOnly&&sC(e,i.editorReadOnly),t.set(o),e.fire("SwitchMode",{mode:o})}function wC(e){var t,n={};EC(zC(e.toLowerCase(),"+"),(function(e){e in MC?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=TC[e]||e.toUpperCase().charCodeAt(0))}));var o=[n.keyCode];for(t in MC)n[t]?o.push(t):n[t]=!1;return n.id=o.join(","),n.access&&(n.alt=!0,wt.mac?n.ctrl=!0:n.shift=!0),n.meta&&(wt.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n}var CC,SC={fire:function(e,t,n){if(this.removed&&"remove"!==e&&"detach"!==e)return t;var o=pC(this).fire(e,t);if(!1!==n&&this.parent)for(var r=this.parent();r&&!o.isPropagationStopped();)r.fire(e,o,!1),r=r.parent();return o},on:function(e,t,n){return pC(this).on(e,t,n)},off:function(e,t){return pC(this).off(e,t)},once:function(e,t){return pC(this).once(e,t)},hasEventListeners:function(e){return pC(this).has(e)}},kC=Ka.DOM,_C=Ee(Ee({},SC),{bindPendingEventDelegates:function(){var e=this;kt.each(e._pendingNativeEvents,(function(t){yC(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?yC(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(vC(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(ne(e.delegates,(function(t,n){e.dom.unbind(vC(e,n),n,t)})),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),OC=["design","readonly"],EC=kt.each,zC=kt.explode,TC={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},MC=kt.makeMap("alt,ctrl,shift,meta,access"),DC=(AC.prototype.add=function(e,t,n,o){var r=this,i=r.normalizeCommandFunc(n);return EC(zC(kt.trim(e)),(function(e){var n=r.createShortcut(e,t,i,o);r.shortcuts[n.id]=n})),!0},AC.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},AC.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"==typeof n?function(){t.editor.execCommand(n,!1,null)}:kt.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},AC.prototype.createShortcut=function(e,t,n,o){var r=kt.map(zC(e,">"),wC);return r[r.length-1]=kt.extend(r[r.length-1],{func:n,scope:o||this.editor}),kt.extend(r[0],{desc:this.editor.translate(t),subpatterns:r.slice(1)})},AC.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},AC.prototype.isFunctionKey=function(e){return"keydown"===e.type&&112<=e.keyCode&&e.keyCode<=123},AC.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)},AC.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},AC);function AC(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(EC(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}var NC=Ka.DOM,BC=kt.extend,RC=kt.each,HC=kt.resolve,LC=wt.ie,VC=(PC.prototype.render=function(){!function(e){var t=e.id;iu.setCode(_c(e));var n,o,r,i,a=function(){Qw.unbind(window,"ready",a),e.render()};ri.Event.domLoaded?e.getElement()&&wt.contentEditable&&(n=_t.fromDom(e.getElement()),o=j(n.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{}),e.on("remove",(function(){P(n.dom.attributes,(function(e){return yn(n,e.name),0})),pn(n,o)})),e.ui.styleSheetLoader=Eo.forElement(n,{contentCssCors:(r=e).getParam("content_css_cors"),referrerPolicy:kc(r)}),e.getParam("inline")?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden"),(i=e.getElement().form||Qw.getParent(t,"form"))&&(e.formElement=i,e.getParam("hidden_input")&&!In(e.getElement())&&(Qw.insertAfter(Qw.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},Qw.bind(i,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!e.getParam("submit_patch")||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),i._mceOldSubmit(i)})),e.windowManager=sv(e),e.notificationManager=Hp(e),"xml"===e.getParam("encoding")&&e.on("GetContent",(function(e){e.save&&(e.content=Qw.encode(e.content))})),e.getParam("add_form_submit_trigger")&&e.on("submit",(function(){e.initialized&&e.save()})),e.getParam("add_unload_trigger")&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),function(e,t){var n,o,r=Za.ScriptLoader,i=r,a=t,u=function(){var n,o,i,a,u,s,l,f,d;u=r,f=_c(s=e),d=s.getParam("language_url","","string"),!1===iu.hasCode(f)&&"en"!==f&&(l=""!==d?d:s.editorManager.baseURL+"/langs/"+f+".js",u.add(l,c,void 0,(function(){dv(s,"LanguageLoadError",mv("language",l,f))}))),i=r,V(function(e){for(var t=[],n=function(e){t.push(e)},o=0;o<e.length;o++)e[o].each(n);return t}([Vw(a=e,"default",t),ve.from(a.getParam("icons_url","","string")).filter((function(e){return 0<e.length})).map((function(e){return{url:e,name:ve.none()}})).orThunk((function(){return Vw(a,Sc(a),"")}))]),(function(e){i.add(e.url,c,void 0,(function(){dv(a,"IconsLoadError",mv("icons",e.url,e.name.getOrUndefined()))}))})),n=e,o=t,kt.each(n.getParam("external_plugins"),(function(e,t){uv.load(t,e,c,void 0,(function(){gv(n,e,t)})),n.settings.plugins+=" "+t})),kt.each(Ac(n).split(/[ ,]/),(function(e){var t,r;(e=kt.trim(e))&&!uv.urls[e]&&(Lw(e)?(e=e.substr(1,e.length),t=uv.dependencies(e),kt.each(t,(function(e){var t=uv.createUrl({prefix:"plugins/",resource:e,suffix:"/plugin"+o+".js"},e);uv.load(t.resource,t,c,void 0,(function(){gv(n,t.prefix+t.resource+t.suffix,t.resource)}))}))):(r={prefix:"plugins/",resource:e,suffix:"/plugin"+o+".js"},uv.load(e,r,c,void 0,(function(){gv(n,r.prefix+r.resource+r.suffix,e)}))))})),r.loadQueue((function(){e.removed||Hw(e)}),e,(function(){e.removed||Hw(e)}))},s=Mc(n=e);v(s)?(Lw(s)||_e(cv.urls,s)||((o=n.getParam("theme_url"))?cv.load(s,n.documentBaseURI.toAbsolute(o)):cv.load(s,"themes/"+s+"/theme"+a+".js")),i.loadQueue((function(){cv.waitFor(s,u)}))):u()}(e,e.suffix)):Qw.bind(window,"ready",a)}(this)},PC.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},PC.prototype.hasFocus=function(){return ld(this)},PC.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o,r=this.settings[e];if(r)return this.callbackLookup&&(o=this.callbackLookup[e])&&(r=o.func,o=o.scope),"string"==typeof r&&(o=(o=r.replace(/\.\w+$/,""))?HC(o):0,r=HC(r),this.callbackLookup=this.callbackLookup||{},this.callbackLookup[e]={func:r,scope:o}),r.apply(o||this,t)},PC.prototype.translate=function(e){return iu.translate(e)},PC.prototype.getParam=function(e,t,n){return i=t,a=n,l=(r=e)in(o=this).settings?o.settings[r]:i,"hash"===a?(s={},"string"==typeof(c=l)?V(0<c.indexOf("=")?c.split(/[;,](?![^=;,]*(?:[;,]|$))/):c.split(","),(function(e){var t=e.split("=");1<t.length?s[kt.trim(t[0])]=kt.trim(t[1]):s[kt.trim(t[0])]=kt.trim(t[0])})):s=c,s):"string"===a?Ap(v,o,r).getOr(i):"number"===a?Ap(k,o,r).getOr(i):"boolean"===a?Ap(w,o,r).getOr(i):"object"===a?Ap(b,o,r).getOr(i):"array"===a?Ap(y,o,r).getOr(i):"string[]"===a?Ap((u=v,function(e){return y(e)&&X(e,u)}),o,r).getOr(i):"function"===a?Ap(S,o,r).getOr(i):l;var o,r,i,a,u,c,s,l},PC.prototype.hasPlugin=function(e,t){return!(!R(Ac(this).split(/[ ,]/),e)||t&&void 0===uv.get(e))},PC.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},PC.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},PC.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},PC.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},PC.prototype.addShortcut=function(e,t,n,o){this.shortcuts.add(e,t,n,o)},PC.prototype.execCommand=function(e,t,n,o){return this.editorCommands.execCommand(e,t,n,o)},PC.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},PC.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},PC.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},PC.prototype.show=function(){this.hidden&&(this.hidden=!1,this.inline?this.getBody().contentEditable="true":(NC.show(this.getContainer()),NC.hide(this.id)),this.load(),this.fire("show"))},PC.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(LC&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(NC.hide(e.getContainer()),NC.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},PC.prototype.isHidden=function(){return!!this.hidden},PC.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},PC.prototype.load=function(e){var t=this.getElement();if(this.removed)return"";if(t){(e=e||{}).load=!0;var n=In(t)?t.value:t.innerHTML,o=this.setContent(n,e);return e.element=t,e.no_events||this.fire("LoadContent",e),e.element=t=null,o}},PC.prototype.save=function(e){var t,n,o=this,r=o.getElement();if(r&&o.initialized&&!o.removed)return(e=e||{}).save=!0,e.element=r,e.content=o.getContent(e),e.no_events||o.fire("SaveContent",e),"raw"===e.format&&o.fire("RawSaveContent",e),t=e.content,In(r)?r.value=t:(!e.is_removing&&o.inline||(r.innerHTML=t),(n=NC.getParent(o.id,"form"))&&RC(n.elements,(function(e){if(e.name===o.id)return e.value=t,!1}))),e.element=r=null,!1!==e.set_dirty&&o.setDirty(!1),t},PC.prototype.setContent=function(e,t){return Op(this,e,t)},PC.prototype.getContent=function(e){return this,n=(t=void 0===(t=e)?{}:t).format||"html",o=t,Jh(this).editor.getContent(o,n);var t,n,o},PC.prototype.insertContent=function(e,t){t&&(e=BC({content:e},t)),this.execCommand("mceInsertContent",!1,e)},PC.prototype.resetContent=function(e){void 0===e?Op(this,this.startContent,{format:"raw"}):Op(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},PC.prototype.isDirty=function(){return!this.isNotDirty},PC.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},PC.prototype.getContainer=function(){return this.container||(this.container=NC.get(this.editorContainer||this.id+"_parent")),this.container},PC.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},PC.prototype.getElement=function(){return this.targetElm||(this.targetElm=NC.get(this.id)),this.targetElm},PC.prototype.getWin=function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},PC.prototype.getDoc=function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},PC.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},PC.prototype.convertURL=function(e,t,n){var o=this.settings;return o.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!o.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:o.relative_urls?this.documentBaseURI.toRelative(e):this.documentBaseURI.toAbsolute(e,o.remove_script_host)},PC.prototype.addVisual=function(e){var t;t=e,Qh(this).editor.addVisual(t)},PC.prototype.remove=function(){var e,t,n,o,r;(e=this).removed||(t=e._selectionOverrides,n=e.editorUpload,o=e.getBody(),r=e.getElement(),o&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&r&&qp.remove(r.nextSibling),e.fire("remove"),e.editorManager.remove(e),!e.inline&&o&&qp.setStyle(e.id,"display",e.orgDisplay),e.fire("detach"),qp.remove(e.getContainer()),Ep(t),Ep(n),e.destroy())},PC.prototype.destroy=function(e){var t,n,o,r,i,a,u;n=e,a=(t=this).selection,u=t.dom,t.destroyed||(n||t.removed?(n||(t.editorManager.off("beforeunload",t._beforeUnload),t.theme&&t.theme.destroy&&t.theme.destroy(),Ep(a),Ep(u)),(r=(o=t).formElement)&&(r._mceOldSubmit&&(r.submit=r._mceOldSubmit,r._mceOldSubmit=null),qp.unbind(r,"submit reset",o.formEventDelegate)),(i=t).contentAreaContainer=i.formElement=i.container=i.editorContainer=null,i.bodyElement=i.contentDocument=i.contentWindow=null,i.iframeElement=i.targetElm=null,i.selection&&(i.selection=i.selection.win=i.selection.dom=i.selection.dom.doc=null),t.destroyed=!0):t.remove())},PC.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},PC.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},PC.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")},PC.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},PC.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},PC.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},PC);function PC(e,t,n){var o,r,i,a,u,s,l,f,d,m,g,h,p,v,b,y,x=this;function w(e,t){return function(n,o){return e[n.toLowerCase()]=Ee(Ee({},o),{type:t})}}this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,BC(this,_C),this.settings=(d=this.documentBaseUrl,m=n.defaultSettings,h=d,p=Jp,this,v={id:e,theme:"silver",toolbar_mode:Mp(g=t,"floating"),plugins:"",document_base_url:h,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_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!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:this.convertURL,url_converter_scope:this},b=Ee(Ee({},v),p?tv:{}),!1!==(y=Dp(Qp||Zp,Qp,b,m,g)).deprecation_warnings&&function(e,t){var n,o,r,i,a,u,c,s=(n=e,o=F($p,(function(e){return _e(n,e)})),!1!==(r=n.forced_root_block)&&""!==r||o.push("forced_root_block (false only)"),J(o)),l=(c=kt.makeMap(t.plugins," "),J(ze(ze([],F(Xp,g),!0),$(Kp,(function(e){return g(e)?[e+" (moving to premium)"]:[]})),!0))),f=0<l.length,d=0<s.length,m="mobile"===t.theme;function g(e){return _e(c,e)}(f||d||m)&&(i=m?"\n\nThemes:\n- mobile":"",a=f?"\n\nPlugins:\n- "+l.join("\n- "):"",u=d?"\n\nSettings:\n- "+s.join("\n- "):"",console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+i+a+u))}(g,y),y),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(Za.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Ka.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),au.languageLoad=this.settings.language_load,au.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new Id(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new DC(this),this.editorCommands=new iC(this),this.settings.cache_suffix&&(wt.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:{addAutocompleter:(u={},(o={addButton:w(r={},"button"),addGroupToolbarButton:w(r,"grouptoolbarbutton"),addToggleButton:w(r,"togglebutton"),addMenuButton:w(r,"menubutton"),addSplitButton:w(r,"splitbutton"),addMenuItem:w(i={},"menuitem"),addNestedMenuItem:w(i,"nestedmenuitem"),addToggleMenuItem:w(i,"togglemenuitem"),addAutocompleter:w(a={},"autocompleter"),addContextMenu:w(s={},"contextmenu"),addContextToolbar:w(l={},"contexttoolbar"),addContextForm:w(l,"contextform"),addSidebar:w(f={},"sidebar"),addIcon:function(e,t){return u[e.toLowerCase()]=t},getAll:function(){return{buttons:r,menuItems:i,icons:u,popups:a,contextMenus:s,contextToolbars:l,sidebars:f}}}).addAutocompleter),addButton:o.addButton,addContextForm:o.addContextForm,addContextMenu:o.addContextMenu,addContextToolbar:o.addContextToolbar,addIcon:o.addIcon,addMenuButton:o.addMenuButton,addMenuItem:o.addMenuItem,addNestedMenuItem:o.addNestedMenuItem,addSidebar:o.addSidebar,addSplitButton:o.addSplitButton,addToggleButton:o.addToggleButton,addGroupToolbarButton:o.addGroupToolbarButton,addToggleMenuItem:o.addToggleMenuItem,getAll:o.getAll},styleSheetLoader:void 0,show:c,hide:c,enable:c,disable:c,isDisabled:M};var C,S,k,_,O,E=(_=tu("design"),O=tu({design:{activate:c,deactivate:c,editorReadOnly:!1},readonly:{activate:c,deactivate:c,editorReadOnly:!0}}),(S=C=this).serializer?fC(S):S.on("PreInit",(function(){fC(S)})),(k=C).on("ShowCaret",(function(e){lC(k)&&e.preventDefault()})),k.on("ObjectSelected",(function(e){lC(k)&&e.preventDefault()})),{isReadOnly:function(){return lC(C)},set:function(e){return function(e,t,n,o){if(o!==n.get()){if(!_e(t,o))throw new Error("Editor mode '"+o+"' is invalid");e.initialized?xC(e,n,t,o):e.on("init",(function(){return xC(e,n,t,o)}))}}(C,O.get(),_,e)},get:function(){return _.get()},register:function(e,t){O.set(function(e,t,n){var o;if(R(OC,t))throw new Error("Cannot override default mode "+t);return Ee(Ee({},e),((o={})[t]=Ee(Ee({},n),{deactivate:function(){try{n.deactivate()}catch(e){console.error("problem while deactivating editor mode "+t+":",e)}}}),o))}(O.get(),e,t))}});this.mode=E,this.setMode=E.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Wa.overrideDefaults((function(){return{context:x.inline?x.getBody():x.getDoc(),element:x.getBody()}}))}function IC(e){var t=e.type;GC(ZC.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e)}}))}function FC(e){e!==KC&&(e?Wa(window).on("resize scroll",IC):Wa(window).off("resize scroll",IC),KC=e)}function UC(e){var t=JC;delete YC[e.id];for(var n=0;n<YC.length;n++)if(YC[n]===e){YC.splice(n,1);break}return JC=F(JC,(function(t){return e!==t})),ZC.activeEditor===e&&(ZC.activeEditor=0<JC.length?JC[0]:null),ZC.focusedEditor===e&&(ZC.focusedEditor=null),t.length!==JC.length}var jC,WC=Ka.DOM,qC=kt.explode,GC=kt.each,$C=kt.extend,XC=0,KC=!1,YC=[],JC=[],QC="CSS1Compat"!==document.compatMode,ZC=Ee(Ee({},SC),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Wa,majorVersion:"5",minorVersion:"10.2",releaseDate:"2021-11-17",editors:YC,i18n:iu,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t="",n=Id.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(n)&&(n=n.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(n)||(n+="/"));var o=window.tinymce||window.tinyMCEPreInit;if(o)e=o.base||o.baseURL,t=o.suffix;else{for(var r,i=document.getElementsByTagName("script"),a=0;a<i.length;a++)if(""!==(r=i[a].src||"")){var u=r.substring(r.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(r)){-1!==u.indexOf(".min")&&(t=".min"),e=r.substring(0,r.lastIndexOf("/"));break}}!e&&document.currentScript&&(-1!==(r=document.currentScript.src).indexOf(".min")&&(t=".min"),e=r.substring(0,r.lastIndexOf("/")))}this.baseURL=new Id(n).toAbsolute(e),this.documentBaseURL=n,this.baseURI=new Id(this.baseURL),this.suffix=t,this.on("AddEditor",_(ad,this)),this.on("RemoveEditor",_(ud,this))},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n);var o=(this.defaultSettings=e).plugin_base_urls;void 0!==o&&ne(o,(function(e,t){au.PluginManager.urls[t]=e}))},init:function(e){function t(e){var t=e.id;return t||(t=ue(e,"name").filter((function(e){return!WC.get(e)})).getOrThunk(WC.uniqueId),e.setAttribute("id",t)),t}function n(e,t){return t.constructor===RegExp?t.test(e.className):WC.hasClass(e,t)}var o,r=this,i=kt.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"," "),a=function(e){o=e},u=function(){function o(e,t,n){var o=new VC(e,t,r);f.push(o),o.on("init",(function(){++l===c.length&&a(f)})),o.targetElm=o.targetElm||n,o.render()}var c,s,l=0,f=[];WC.unbind(window,"ready",u),(s=e.onpageload)&&s.apply(r,[]),c=Wa.unique(function(e){var t=[];if(wt.browser.isIE()&&wt.browser.version.major<11)return Ab("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(QC)return Ab("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return GC(e.types,(function(e){t=t.concat(WC.select(e.selector))})),t;if(e.selector)return WC.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var o=e.elements||"";0<o.length&&GC(qC(o),(function(e){var n=WC.get(e);n?t.push(n):GC(document.forms,(function(n){GC(n.elements,(function(n){n.name===e&&(e="mce_editor_"+XC++,WC.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":GC(WC.select("textarea"),(function(o){e.editor_deselector&&n(o,e.editor_deselector)||e.editor_selector&&!n(o,e.editor_selector)||t.push(o)}))}return t}(e)),e.types?GC(e.types,(function(n){kt.each(c,(function(r){return!WC.is(r,n.selector)||(o(t(r),$C({},e,n),r),!1)}))})):(kt.each(c,(function(e){var t;(t=r.get(e.id))&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(UC(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0)})),0===(c=kt.grep(c,(function(e){return!r.get(e.id)}))).length?a([]):GC(c,(function(n){var r=n;e.inline&&r.tagName.toLowerCase()in i?Ab("Could not initialize inline editor on invalid inline target element",n):o(t(n),e,n)})))};return r.settings=e,WC.bind(window,"ready",u),new _o((function(e){o?e(o):a=function(t){e(t)}}))},get:function(e){return 0===arguments.length?JC.slice(0):v(e)?q(JC,(function(t){return t.id===e})).getOr(null):k(e)&&JC[e]||null},add:function(e){var t=this;return YC[e.id]===e||(null===t.get(e.id)&&("length"!==e.id&&(YC[e.id]=e),YC.push(e),JC.push(e)),FC(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),jC||(jC=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",jC))),e},createEditor:function(e,t){return this.add(new VC(e,t,this))},remove:function(e){var t,n,o=this;if(e){if(!v(e))return n=e,x(o.get(n.id))?null:(UC(n)&&o.fire("RemoveEditor",{editor:n}),0===JC.length&&window.removeEventListener("beforeunload",jC),n.remove(),FC(0<JC.length),n);GC(WC.select(e),(function(e){(n=o.get(e.id))&&o.remove(n)}))}else for(t=JC.length-1;0<=t;t--)o.remove(JC[t])},execCommand:function(e,t,n){var o=this.get(n);switch(e){case"mceAddEditor":return this.get(n)||new VC(n,this.settings,this).render(),!0;case"mceRemoveEditor":return o&&o.remove(),!0;case"mceToggleEditor":return o?o.isHidden()?o.show():o.hide():this.execCommand("mceAddEditor",!1,n),!0}return!!this.activeEditor&&this.activeEditor.execCommand(e,t,n)},triggerSave:function(){GC(JC,(function(e){e.save()}))},addI18n:function(e,t){iu.add(e,t)},translate:function(e){return iu.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},_setBaseUrl:function(e){this.baseURL=new Id(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new Id(this.baseURL)}});function eS(e,t,n){var o=t.x,r=t.y,i=e.w,a=e.h,u=t.w,c=t.h,s=(n||"").split("");return"b"===s[0]&&(r+=c),"r"===s[1]&&(o+=u),"c"===s[0]&&(r+=sS(c/2)),"c"===s[1]&&(o+=sS(u/2)),"b"===s[3]&&(r-=a),"r"===s[4]&&(o-=i),"c"===s[3]&&(r-=sS(a/2)),"c"===s[4]&&(o-=sS(i/2)),nS(o,r,i,a)}function tS(){}function nS(e,t,n,o){return{x:e,y:t,w:n,h:o}}ZC.setup();var oS,rS,iS,aS,uS=Math.min,cS=Math.max,sS=Math.round,lS={inflate:function(e,t,n){return nS(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},relativePosition:eS,findBestRelativePosition:function(e,t,n,o){for(var r,i=0;i<o.length;i++)if((r=eS(e,t,o[i])).x>=n.x&&r.x+r.w<=n.w+n.x&&r.y>=n.y&&r.y+r.h<=n.h+n.y)return o[i];return null},intersect:function(e,t){var n=cS(e.x,t.x),o=cS(e.y,t.y),r=uS(e.x+e.w,t.x+t.w),i=uS(e.y+e.h,t.y+t.h);return r-n<0||i-o<0?null:nS(n,o,r-n,i-o)},clamp:function(e,t,n){var o=e.x,r=e.y,i=e.x+e.w,a=e.y+e.h,u=t.x+t.w,c=t.y+t.h,s=cS(0,t.x-o),l=cS(0,t.y-r),f=cS(0,i-u),d=cS(0,a-c);return o+=s,r+=l,n&&(i+=s,a+=l,o-=f,r-=d),nS(o,r,(i-=f)-o,(a-=d)-r)},create:nS,fromClientRect:function(e){return nS(e.left,e.top,e.width,e.height)}},fS=(oS={},rS={},{load:function(e,t){var n='Script at URL "'+t+'" failed to load',o='Script at URL "'+t+"\" did not call `tinymce.Resource.add('"+e+"', data)` within 1 second";if(void 0!==oS[e])return oS[e];var r=new _o((function(r,i){var a=function(e,t,n){function o(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,null!==i&&(clearTimeout(i),i=null),e.apply(null,t))}}void 0===n&&(n=1e3);var r=!1,i=null,a=o(e),u=o(t);return{start:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r||null!==i||(i=setTimeout((function(){return u.apply(null,e)}),n))},resolve:a,reject:u}}(r,i);rS[e]=a.resolve,Za.ScriptLoader.loadScript(t,(function(){return a.start(o)}),(function(){return a.reject(n)}))}));return oS[e]=r},add:function(e,t){void 0!==rS[e]&&(rS[e](t),delete rS[e]),oS[e]=_o.resolve(t)}}),dS=kt.each,mS=kt.extend;tS.extend=iS=function(e){function t(){var e,t,n;if(!aS&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)}function n(){return this}var o=this.prototype;aS=!0;var r=new this;return aS=!1,e.Mixins&&(dS(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),o.Mixins&&(e.Mixins=o.Mixins.concat(e.Mixins))),e.Methods&&dS(e.Methods.split(","),(function(t){e[t]=n})),e.Properties&&dS(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){return void 0!==e?(this[n]=e,this):this[n]}})),e.Statics&&dS(e.Statics,(function(e,n){t[n]=e})),e.Defaults&&o.Defaults&&(e.Defaults=mS({},o.Defaults,e.Defaults)),ne(e,(function(e,t){var n,i;"function"==typeof e&&o[t]?r[t]=(n=t,i=e,function(){var e=this._super;this._super=o[n];var t=i.apply(this,arguments);return this._super=e,t}):r[t]=e})),t.prototype=r,(t.constructor=t).extend=iS,t};var gS,hS,pS,vS=Math.min,bS=Math.max,yS=Math.round,xS={serialize:function(e){var t=JSON.stringify(e);return v(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(e){}}},wS={callbacks:{},count:0,send:function(e){var t=this,n=Ka.DOM,o=(void 0!==e.count?e:t).count,r="tinymce_jsonp_"+o;t.callbacks[o]=function(i){n.remove(r),delete t.callbacks[o],e.callback(i)},n.add(n.doc.body,"script",{id:r,src:e.url,type:"text/javascript"}),t.count++}},CS=Ee(Ee({},SC),{send:function(e){var t,n=0,o=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):Oo.setTimeout(o,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||"",CS.fire("beforeInitialize",{settings:e}),(t=new XMLHttpRequest).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&&kt.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),(t=CS.fire("beforeSend",{xhr:t,settings:e}).xhr).send(e.data),!e.async)return o();Oo.setTimeout(o,10)}}),SS=kt.extend,kS=(_S.sendRPC=function(e){return(new _S).send(e)},_S.prototype.send=function(e){var t=e.error,n=e.success,o=SS(this.settings,e);o.success=function(e,r){(e=void 0===(e=xS.parse(e))?{error:"JSON Parse error."}:e).error?t.call(o.error_scope||o.scope,e.error,r):n.call(o.success_scope||o.scope,e.result)},o.error=function(e,n){t&&t.call(o.error_scope||o.scope,e,n)},o.data=xS.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),o.content_type="application/json",CS.send(o)},_S);function _S(e){this.settings=SS({},e),this.count=0}try{var OS,ES="__storage_test__";(OS=window.localStorage).setItem(ES,ES),OS.removeItem(ES)}catch(o){gS={},hS=[],pS={getItem:function(e){return gS[e]||null},setItem:function(e,t){hS.push(e),gS[e]=String(t)},key:function(e){return hS[e]},removeItem:function(e){hS=hS.filter((function(t){return t===e})),delete gS[e]},clear:function(){hS=[],gS={}},length:0},Object.defineProperty(pS,"length",{get:function(){return hS.length},configurable:!1,enumerable:!1}),OS=pS}var zS={geom:{Rect:lS},util:{Promise:_o,Delay:Oo,Tools:kt,VK:Ef,URI:Id,Class:tS,EventDispatcher:gC,Observable:SC,I18n:iu,XHR:CS,JSON:xS,JSONRequest:kS,JSONP:wS,LocalStorage:OS,Color:function(e){function t(e){var t;return"object"==typeof e?"r"in e?(o=e.r,r=e.g,i=e.b):"v"in e&&function(e,t,n){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,n=parseInt(n,10)/100,t=bS(0,vS(t,1)),n=bS(0,vS(n,1)),0!==t){var a=e/60,u=n*t,c=u*(1-Math.abs(a%2-1)),s=n-u;switch(Math.floor(a)){case 0:o=u,r=c,i=0;break;case 1:o=c,r=u,i=0;break;case 2:o=0,r=u,i=c;break;case 3:o=0,r=c,i=u;break;case 4:o=c,r=0,i=u;break;case 5:o=u,r=0,i=c;break;default:o=r=i=0}o=yS(255*(o+s)),r=yS(255*(r+s)),i=yS(255*(i+s))}else o=r=i=yS(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))?(o=parseInt(t[1],10),r=parseInt(t[2],10),i=parseInt(t[3],10)):(t=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(o=parseInt(t[1],16),r=parseInt(t[2],16),i=parseInt(t[3],16)):(t=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(o=parseInt(t[1]+t[1],16),r=parseInt(t[2]+t[2],16),i=parseInt(t[3]+t[3],16)),o=o<0?0:255<o?255:o,r=r<0?0:255<r?255:r,i=i<0?0:255<i?255:i,n}var n={},o=0,r=0,i=0;return e&&t(e),n.toRgb=function(){return{r:o,g:r,b:i}},n.toHsv=function(){return e=o,t=r,n=i,u=0,(c=vS(e/=255,vS(t/=255,n/=255)))===(s=bS(e,bS(t,n)))?{h:0,s:0,v:100*(u=c)}:(a=(s-c)/s,{h:yS(60*((e===c?3:n===c?1:5)-(e===c?t-n:n===c?e-t:n-e)/((u=s)-c))),s:yS(100*a),v:yS(100*u)});var e,t,n,a,u,c,s},n.toHex=function(){function e(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e}return"#"+e(o)+e(r)+e(i)},n.parse=t,n},ImageUploader:function(e){var t=hv(),n=yv(e,t);return{upload:function(t,o){return n.upload(t,(o=void 0===o||o)?bv(e):void 0)}}}},dom:{EventUtils:ri,Sizzle:ra,DomQuery:Wa,TreeWalker:zo,TextSeeker:Cu,DOMUtils:Ka,ScriptLoader:Za,RangeUtils:Of,Serializer:_p,StyleSheetLoader:Co,ControlSelection:gf,BookmarkManager:Nl,Selection:pp,Event:ri.Event},html:{Styles:nr,Entities:Xr,Node:Ad,Schema:er,SaxParser:jd,DomParser:Sp,Writer:Xd,Serializer:Kd},Env:wt,AddOnManager:au,Annotator:Al,Formatter:kv,UndoManager:Ov,EditorCommands:iC,WindowManager:sv,NotificationManager:Hp,EditorObservable:_C,Shortcuts:DC,Editor:VC,FocusManager:zd,EditorManager:ZC,DOM:Ka.DOM,ScriptLoader:Za.ScriptLoader,PluginManager:uv,ThemeManager:cv,IconManager:nv,Resource:fS,trim:kt.trim,isArray:kt.isArray,is:kt.is,toArray:kt.toArray,makeMap:kt.makeMap,each:kt.each,map:kt.map,grep:kt.grep,inArray:kt.inArray,extend:kt.extend,create:kt.create,walk:kt.walk,createNS:kt.createNS,resolve:kt.resolve,explode:kt.explode,_addCacheSuffix:kt._addCacheSuffix,isOpera:wt.opera,isWebKit:wt.webkit,isIE:wt.ie,isGecko:wt.gecko,isMac:wt.mac},TS=kt.extend(ZC,zS),MS=TS;window.tinymce=MS,window.tinyMCE=MS,function(e){if("object"==typeof module)try{module.exports=e}catch(e){}}(TS)}(),function(){"use strict";function e(e){return function(t){return o=typeof(n=t),(null===n?"null":"object"==o&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==o&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":o)===e;var n,o}}function t(e){return function(t){return typeof t===e}}function n(e){return function(t){return e===t}}function o(e){return null==e}function r(e,t){if(d(e)){for(var n=0,o=e.length;n<o;++n)if(!t(e[n]))return;return 1}}function i(){}function a(e,t){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return e(t.apply(null,n))}}function u(e){return function(){return e}}function c(e){return e}function s(e,t){return e===t}var l=e("string"),f=e("object"),d=e("array"),m=n(null),g=t("boolean"),h=n(void 0),p=function(e){return!o(e)},v=t("function"),b=t("number");function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var r=t.concat(n);return e.apply(null,r)}}function x(e){return function(t){return!e(t)}}function w(e){return function(){throw new Error(e)}}var C=u(!1),S=u(!0),k=tinymce.util.Tools.resolve("tinymce.ThemeManager"),_=function(){return(_=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function O(e,t){var n={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function E(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||((o=o||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function z(){return T}var T={fold:function(e,t){return e()},isSome:C,isNone:S,getOr:c,getOrThunk:M,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:u(null),getOrUndefined:u(void 0),or:c,orThunk:M,map:z,each:i,bind:z,exists:C,forall:S,filter:function(){return T},toArray:function(){return[]},toString:u("none()")};function M(e){return e()}function D(e,t){return ye.call(e,t)}function A(e,t){for(var n=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1}function N(e,t){for(var n=[],o=0;o<e;o++)n.push(t(o));return n}function B(e,t){for(var n=[],o=0;o<e.length;o+=t){var r=be.call(e,o,o+t);n.push(r)}return n}function R(e,t){for(var n=e.length,o=new Array(n),r=0;r<n;r++){var i=e[r];o[r]=t(i,r)}return o}function H(e,t){for(var n=[],o=[],r=0,i=e.length;r<i;r++){var a=e[r];(t(a,r)?n:o).push(a)}return{pass:n,fail:o}}function L(e,t){for(var n=[],o=0,r=e.length;o<r;o++){var i=e[o];t(i,o)&&n.push(i)}return n}function V(e,t,n){return function(e){for(var o,r=e.length-1;0<=r;r--)o=e[r],n=t(n,o,r)}(e),n}function P(e,t,n){return Ce(e,(function(e,o){n=t(n,e,o)})),n}function I(e,t){return function(e,t,n){for(var o=0,r=e.length;o<r;o++){var i=e[o];if(t(i,o))return ve.some(i);if(n(i,o))break}return ve.none()}(e,t,C)}function F(e,t){for(var n=0,o=e.length;n<o;n++)if(t(e[n],n))return ve.some(n);return ve.none()}function U(e){for(var t=[],n=0,o=e.length;n<o;++n){if(!d(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);xe.apply(t,e[n])}return t}function j(e,t){return U(R(e,t))}function W(e,t){for(var n=0,o=e.length;n<o;++n)if(!0!==t(e[n],n))return!1;return!0}function q(e){var t=be.call(e,0);return t.reverse(),t}function G(e,t){return L(e,(function(e){return!we(t,e)}))}function $(e,t){for(var n={},o=0,r=e.length;o<r;o++){var i=e[o];n[String(i)]=t(i,o)}return n}function X(e){return[e]}function K(e,t){var n=be.call(e,0);return n.sort(t),n}function Y(e,t){return 0<=t&&t<e.length?ve.some(e[t]):ve.none()}function J(e){return Y(e,0)}function Q(e){return Y(e,e.length-1)}function Z(e,t){for(var n=0;n<e.length;n++){var o=t(e[n],n);if(o.isSome())return o}return ve.none()}function ee(e,t){for(var n=ke(e),o=0,r=n.length;o<r;o++){var i=n[o];t(e[i],i)}}function te(e,t){return Oe(e,(function(e,n){return{k:n,v:t(e,n)}}))}function ne(e,t){var n=[];return ee(e,(function(e,o){n.push(t(e,o))})),n}function oe(e,t){for(var n=ke(e),o=0,r=n.length;o<r;o++){var i=n[o],a=e[i];if(t(a,i,e))return ve.some(a)}return ve.none()}function re(e){return ne(e,c)}function ie(e,t){return Ee(e,t)?ve.from(e[t]):ve.none()}function ae(e,t){return Ee(e,t)&&void 0!==e[t]&&null!==e[t]}function ue(e,t,n){return void 0===n&&(n=s),e.exists((function(e){return n(e,t)}))}function ce(e){for(var t=[],n=function(e){t.push(e)},o=0;o<e.length;o++)e[o].each(n);return t}function se(e,t){return e?ve.some(t):ve.none()}function le(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t}function fe(e,t){return-1!==e.indexOf(t)}function de(e){return 0<e.length}function me(e){return void 0!==e.style&&v(e.style.getPropertyValue)}function ge(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}}var he,pe=function(e){function t(){return r}function n(t){return t(e)}var o=u(e),r={fold:function(t,n){return n(e)},isSome:S,isNone:C,getOr:o,getOrThunk:o,getOrDie:o,getOrNull:o,getOrUndefined:o,or:t,orThunk:t,map:function(t){return pe(t(e))},each:function(t){t(e)},bind:n,exists:n,forall:n,filter:function(t){return t(e)?r:T},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return r},ve={some:pe,none:z,from:function(e){return null==e?T:pe(e)}},be=Array.prototype.slice,ye=Array.prototype.indexOf,xe=Array.prototype.push,we=function(e,t){return-1<D(e,t)},Ce=function(e,t){for(var n=0,o=e.length;n<o;n++)t(e[n],n)},Se=v(Array.from)?Array.from:function(e){return be.call(e)},ke=Object.keys,_e=Object.hasOwnProperty,Oe=function(e,t){var n={};return ee(e,(function(e,o){var r=t(e,o);n[r.k]=r.v})),n},Ee=function(e,t){return _e.call(e,t)},ze=function(e,t,n){return e.isSome()&&t.isSome()?ve.some(n(e.getOrDie(),t.getOrDie())):ve.none()},Te=function(e,t){return le(e,t,0)},Me=function(e,t){return le(e,t,e.length-t.length)},De=(he=/^\s+|\s+$/g,function(e){return e.replace(he,"")}),Ae={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||1<n.childNodes.length)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return ge(n.childNodes[0])},fromTag:function(e,t){return ge((t||document).createElement(e))},fromText:function(e,t){return ge((t||document).createTextNode(e))},fromDom:ge,fromPoint:function(e,t,n){return ve.from(e.dom.elementFromPoint(t,n)).map(ge)}};function Ne(e){return e.dom.nodeName.toLowerCase()}function Be(e){return function(t){return t.dom.nodeType===e}}function Re(e){var t,n=!1;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];return n||(n=!0,t=e.apply(null,o)),t}}function He(e,t){var n=String(t).toLowerCase();return I(e,(function(e){return e.search(n)}))}function Le(e){return function(t){return fe(t,e)}}function Ve(e){return window.matchMedia(e).matches}function Pe(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var o=n;if(void 0!==o.matches)return o.matches(t);if(void 0!==o.msMatchesSelector)return o.msMatchesSelector(t);if(void 0!==o.webkitMatchesSelector)return o.webkitMatchesSelector(t);if(void 0!==o.mozMatchesSelector)return o.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}function Ie(e){return 1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount}function Fe(e,t){return e.dom===t.dom}function Ue(e,t){return ln().browser.isIE()?(n=e.dom,o=t.dom,r=Node.DOCUMENT_POSITION_CONTAINED_BY,0!=(n.compareDocumentPosition(o)&r)):(i=e.dom)!==(a=t.dom)&&i.contains(a);var n,o,r,i,a}function je(e){return Ae.fromDom(e.dom.ownerDocument)}function We(e){return $t(e)?e:je(e)}function qe(e){return Ae.fromDom(We(e).dom.documentElement)}function Ge(e){return Ae.fromDom(We(e).dom.defaultView)}function $e(e){return ve.from(e.dom.parentNode).map(Ae.fromDom)}function Xe(e){return ve.from(e.dom.offsetParent).map(Ae.fromDom)}function Ke(e){return R(e.dom.childNodes,Ae.fromDom)}function Ye(e,t){var n=e.dom.childNodes;return ve.from(n[t]).map(Ae.fromDom)}function Je(e,t){return{element:e,offset:t}}function Qe(e,t){var n=Ke(e);return 0<n.length&&t<n.length?Je(n[t],0):Je(e,t)}function Ze(e){return Xt(e)&&p(e.dom.host)}function et(e){return Ze(e)?e:Ae.fromDom(We(e).dom.body)}function tt(e){return Ae.fromDom(e.dom.host)}function nt(e,t,n){if(!(l(n)||g(n)||b(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}function ot(e,t,n){nt(e.dom,t,n)}function rt(e,t){var n=e.dom;ee(t,(function(e,t){nt(n,t,e)}))}function it(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n}function at(e,t){return ve.from(it(e,t))}function ut(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)}function ct(e,t){e.dom.removeAttribute(t)}function st(e,t,n){if(!l(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);me(e)&&e.style.setProperty(t,n)}function lt(e,t){me(e)&&e.style.removeProperty(t)}function ft(e,t,n){st(e.dom,t,n)}function dt(e,t){var n=e.dom;ee(t,(function(e,t){st(n,t,e)}))}function mt(e,t){var n=e.dom;ee(t,(function(e,t){e.fold((function(){lt(n,t)}),(function(e){st(n,t,e)}))}))}function gt(e,t){var n=e.dom,o=window.getComputedStyle(n).getPropertyValue(t);return""!==o||vn(e)?o:xn(n,t)}function ht(e,t){var n=e.dom,o=xn(n,t);return ve.from(o).filter((function(e){return 0<e.length}))}function pt(e,t,n){var o=Ae.fromTag(e);return ft(o,t,n),ht(o,t).isSome()}function vt(e,t){lt(e.dom,t),ue(at(e,"style").map(De),"")&&ct(e,"style")}function bt(e){return e.dom.offsetWidth}function yt(e,t){function n(n){var o=t(n);if(o<=0||null===o){var r=gt(n,e);return parseFloat(r)||0}return o}function o(e,t){return P(t,(function(t,n){var o=gt(e,n),r=void 0===o?0:parseInt(o,10);return isNaN(r)?t:t+r}),0)}return{set:function(t,n){if(!b(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var o=t.dom;me(o)&&(o.style[e]=n+"px")},get:n,getOuter:n,aggregate:o,max:function(e,t,n){var r=o(e,n);return r<t?t-r:0}}}function xt(e){return wn.get(e)}function wt(e){return wn.getOuter(e)}function Ct(e,t){return void 0!==e?e:void 0!==t?t:0}function St(e){var t=e.dom.ownerDocument,n=t.body,o=t.defaultView,r=t.documentElement;if(n===e.dom)return Sn(n.offsetLeft,n.offsetTop);var i=Ct(null==o?void 0:o.pageYOffset,r.scrollTop),a=Ct(null==o?void 0:o.pageXOffset,r.scrollLeft),u=Ct(r.clientTop,n.clientTop),c=Ct(r.clientLeft,n.clientLeft);return kn(e).translate(a-c,i-u)}function kt(e){return _n.get(e)}function _t(e){return _n.getOuter(e)}function Ot(e){function t(){return e.stopPropagation()}function n(){return e.preventDefault()}var o=a(n,t);return{target:Ae.fromDom(function(e){if(mn()&&p(e.target)){var t=Ae.fromDom(e.target);if(qt(t)&&pn(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return J(n)}}return ve.from(e.target)}(e).getOr(e.target)),x:e.clientX,y:e.clientY,stop:t,prevent:n,kill:o,raw:e}}function Et(e,t,n,o,r){var i,a,u=(i=n,a=o,function(e){i(e)&&a(Ot(e))});return e.dom.addEventListener(t,u,r),{unbind:y(On,e,t,u,r)}}function zt(e,t){$e(e).each((function(n){n.dom.insertBefore(t.dom,e.dom)}))}function Tt(e,t){ve.from(e.dom.nextSibling).map(Ae.fromDom).fold((function(){$e(e).each((function(e){En(e,t)}))}),(function(e){zt(e,t)}))}function Mt(e,t){Ye(e,0).fold((function(){En(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))}function Dt(e,t){Ce(t,(function(t){En(e,t)}))}function At(e){e.dom.textContent="",Ce(Ke(e),(function(e){zn(e)}))}function Nt(e){var t,n=Ke(e);0<n.length&&(t=e,Ce(n,(function(e){zt(t,e)}))),zn(e)}function Bt(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,o=t.body.scrollTop||t.documentElement.scrollTop;return Sn(n,o)}function Rt(e,t,n){var o=(void 0!==n?n.dom:document).defaultView;o&&o.scrollTo(e,t)}function Ht(e,t,n,o){return{x:e,y:t,width:n,height:o,right:e+n,bottom:t+o}}function Lt(e){var t=void 0===e?window:e,n=t.document,o=Bt(Ae.fromDom(n)),r=void 0===t?window:t;return(ln().browser.isFirefox()?ve.none():ve.from(r.visualViewport)).fold((function(){var e=t.document.documentElement,n=e.clientWidth,r=e.clientHeight;return Ht(o.left,o.top,n,r)}),(function(e){return Ht(Math.max(e.pageLeft,o.left),Math.max(e.pageTop,o.top),e.width,e.height)}))}function Vt(e){var t,n=Bt(Ae.fromDom(document)),o=(t=Mn).owner(e),r=Tn(t,o);return ve.some(r).fold(y(St,e),(function(t){var o=kn(e),r=V(t,(function(e,t){var n=kn(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return Sn(r.left+o.left+n.left,r.top+o.top+n.top)}))}function Pt(e){var t=Vt(e),n=_t(e),o=wt(e);return Dn(t.left,t.top,n,o)}function It(){return Kt(0,0)}function Ft(e){function t(e){return function(){return n===e}}var n=e.current,o=e.version;return{current:n,version:o,isEdge:t("Edge"),isChrome:t("Chrome"),isIE:t("IE"),isOpera:t("Opera"),isFirefox:t(Zt),isSafari:t("Safari")}}function Ut(e){function t(e){return function(){return n===e}}var n=e.current,o=e.version;return{current:n,version:o,isWindows:t(nn),isiOS:t("iOS"),isAndroid:t(on),isOSX:t("OSX"),isLinux:t("Linux"),isSolaris:t(rn),isFreeBSD:t(an),isChromeOS:t(un)}}"undefined"!=typeof window||Function("return this;")();var jt,Wt,qt=Be(1),Gt=Be(3),$t=Be(9),Xt=Be(11),Kt=function(e,t){return{major:e,minor:t}},Yt={nu:Kt,detect:function(e,t){var n,o,r=String(t).toLowerCase();return 0===e.length?It():(o=function(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(o.test(t))return o}}(e,n=r))?Kt(i(1),i(2)):{major:0,minor:0};function i(e){return Number(n.replace(o,"$"+e))}},unknown:It},Jt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Qt={browsers:u([{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return fe(e,"edge/")&&fe(e,"chrome")&&fe(e,"safari")&&fe(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Jt],search:function(e){return fe(e,"chrome")&&!fe(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return fe(e,"msie")||fe(e,"trident")}},{name:"Opera",versionRegexes:[Jt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Le("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Le("firefox")},{name:"Safari",versionRegexes:[Jt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(fe(e,"safari")||fe(e,"mobile/"))&&fe(e,"applewebkit")}}]),oses:u([{name:"Windows",search:Le("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return fe(e,"iphone")||fe(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Le("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Le("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Le("linux"),versionRegexes:[]},{name:"Solaris",search:Le("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Le("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Le("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}])},Zt="Firefox",en=function(){return Ft({current:void 0,version:Yt.unknown()})},tn=Ft,nn=(u("Edge"),u("Chrome"),u("IE"),u("Opera"),u(Zt),u("Safari"),"Windows"),on="Android",rn="Solaris",an="FreeBSD",un="ChromeOS",cn=function(){return Ut({current:void 0,version:Yt.unknown()})},sn=Ut,ln=(u(nn),u("iOS"),u(on),u("Linux"),u("OSX"),u(rn),u(an),u(un),Re((function(){return e=navigator.userAgent,t=ve.from(navigator.userAgentData),n=Ve,p=Qt.browsers(),v=Qt.oses(),{browser:b=t.bind((function(e){return t=p,Z(e.brands,(function(e){var n=e.brand.toLowerCase();return I(t,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(t){return{current:t.name,version:Yt.nu(parseInt(e.version,10),0)}}))}));var t})).orThunk((function(){return He(p,t=e).map((function(e){var n=Yt.detect(e.versionRegexes,t);return{current:e.name,version:n}}));var t})).fold(en,tn),os:y=He(v,o=e).map((function(e){var t=Yt.detect(e.versionRegexes,o);return{current:e.name,version:t}})).fold(cn,sn),deviceType:(i=b,a=e,c=n,s=(r=y).isiOS()&&!0===/ipad/i.test(a),l=r.isiOS()&&!s,d=(f=r.isiOS()||r.isAndroid())||c("(pointer:coarse)"),m=s||!l&&f&&c("(min-device-width:768px)"),g=l||f&&!m,h=i.isSafari()&&r.isiOS()&&!1===/safari/i.test(a),{isiPad:u(s),isiPhone:u(l),isTablet:u(m),isPhone:u(g),isTouch:u(d),isAndroid:r.isAndroid,isiOS:r.isiOS,isWebView:u(h),isDesktop:u(!g&&!m&&!h)})};var e,t,n,o,r,i,a,c,s,l,f,d,m,g,h,p,v,b,y}))),fn=$e,dn=v(Element.prototype.attachShadow)&&v(Node.prototype.getRootNode),mn=u(dn),gn=dn?function(e){return Ae.fromDom(e.dom.getRootNode())}:We,hn=function(e){var t=gn(e);return Ze(t)?ve.some(t):ve.none()},pn=function(e){return p(e.dom.shadowRoot)},vn=function(e){var t=Gt(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;var n,o,r=t.ownerDocument;return hn(Ae.fromDom(t)).fold((function(){return r.body.contains(t)}),(n=vn,o=tt,function(e){return n(o(e))}))},bn=function(){return yn(Ae.fromDom(document))},yn=function(e){var t=e.dom.body;if(null==t)throw new Error("Body is not available yet");return Ae.fromDom(t)},xn=function(e,t){return me(e)?e.style.getPropertyValue(t):""},wn=yt("height",(function(e){var t=e.dom;return vn(e)?t.getBoundingClientRect().height:t.offsetHeight})),Cn=function(e,t){return{left:e,top:t,translate:function(n,o){return Cn(e+n,t+o)}}},Sn=Cn,kn=function(e){var t,n=e.dom,o=n.ownerDocument.body;return o===n?Sn(o.offsetLeft,o.offsetTop):vn(e)?(t=n.getBoundingClientRect(),Sn(t.left,t.top)):Sn(0,0)},_n=yt("width",(function(e){return e.dom.offsetWidth})),On=function(e,t,n,o){e.dom.removeEventListener(t,n,o)},En=function(e,t){e.dom.appendChild(t.dom)},zn=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Tn=function(e,t){return e.view(t).fold(u([]),(function(t){var n=e.owner(t),o=Tn(e,n);return[t].concat(o)}))},Mn=Object.freeze({__proto__:null,view:function(e){var t;return(e.dom===document?ve.none():ve.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement)).map(Ae.fromDom)},owner:je}),Dn=function(e,t,n,o){return{x:e,y:t,width:n,height:o,right:e+n,bottom:t+o}},An=function(e){var t=St(e),n=_t(e),o=wt(e);return Dn(t.left,t.top,n,o)},Nn=function(){return Lt(window)},Bn=function(e){return{isValue:S,isError:C,getOr:u(e),getOrThunk:u(e),getOrDie:u(e),or:function(t){return Bn(e)},orThunk:function(t){return Bn(e)},fold:function(t,n){return n(e)},map:function(t){return Bn(t(e))},mapError:function(t){return Bn(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOptional:function(){return ve.some(e)}}},Rn=function(e){return{isValue:C,isError:S,getOr:c,getOrThunk:function(e){return e()},getOrDie:function(){return w(String(e))()},or:c,orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return Rn(e)},mapError:function(t){return Rn(t(e))},each:i,bind:function(t){return Rn(e)},exists:C,forall:S,toOptional:ve.none}},Hn={value:Bn,error:Rn,fromOption:function(e,t){return e.fold((function(){return Rn(t)}),Bn)}};function Ln(e,t,n){return e.stype===jt.Error?t(e.serror):n(e.svalue)}function Vn(e){return{stype:jt.Value,svalue:e}}function Pn(e){return{stype:jt.Error,serror:e}}function In(e,t,n,o){return{tag:"field",key:e,newKey:t,presence:n,prop:o}}function Fn(e,t,n){switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return n(e.newKey,e.instantiator)}}function Un(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var o={},r=0;r<t.length;r++){var i,a=t[r];for(i in a)Ee(a,i)&&(o[i]=e(o[i],a[i]))}return o}}function jn(e){return{tag:"defaultedThunk",process:e}}function Wn(e){return jn(u(e))}function qn(e){return{tag:"mergeWithThunk",process:e}}function Gn(e){return f(e)&&100<ke(e).length?" removed due to size":JSON.stringify(e,null,2)}function $n(e,t){return Po([{path:e,getErrorInfo:t}])}function Xn(e){return{extract:function(t,n){return Fo(e(n),(function(e){return $n(t,u(e))}))},toString:u("val")}}function Kn(e,t,n,o){return o(ie(e,t).getOrThunk((function(){return n(e)})))}function Yn(e,t,n,o,r){function i(e){return r.extract(t.concat([o]),e)}function a(e){return e.fold((function(){return Vo(ve.none())}),(function(e){var n=r.extract(t.concat([o]),e);return Uo(n,ve.some)}))}var c,s,l,f,d,m;switch(e.tag){case"required":return l=t,m=i,ie(f=n,d=o).fold((function(){return e=d,t=f,$n(l,(function(){return'Could not find valid *required* value for "'+e+'" in '+Gn(t)}));var e,t}),m);case"defaultedThunk":return Kn(n,o,e.process,i);case"option":return a(ie(n,o));case"defaultedOptionThunk":return s=e.process,a(ie(c=n,o).map((function(e){return!0===e?s(c):e})));case"mergeWithThunk":return Kn(n,o,u({}),(function(t){return i(qo(e.process(n),t))}))}}function Jn(e){return{extract:function(t,n){return e().extract(t,n)},toString:function(){return e().toString()}}}function Qn(e){var t=Ko(e),n=V(e,(function(e,t){return Fn(t,(function(t){var n;return qo(e,((n={})[t]=!0,n))}),u(e))}),{});return{extract:function(e,o){var r,a,u,c,s,l,f=L(g(o)?[]:ke((u=p,c=a={},s=function(e,t){c[t]=e},l=i,ee(o,(function(e,t){(u(e,t)?s:l)(e,t)})),a)),(function(e){return!ae(n,e)}));return 0===f.length?t.extract(e,o):(r=f,$n(e,(function(){return"There are unsupported fields: ["+r.join(", ")+"] specified"})))},toString:t.toString}}function Zn(e){return{extract:function(t,n){var o=R(n,(function(n,o){return e.extract(t.concat(["["+o+"]"]),n)}));return $o(o)},toString:function(){return"array("+e.toString()+")"}}}function eo(e){return{extract:function(t,n){for(var o=[],r=0,i=e;r<i.length;r++){var a=i[r].extract(t,n);if(a.stype===jt.Value)return a;o.push(a)}return $o(o)},toString:function(){return"oneOf("+R(e,(function(e){return e.toString()})).join(", ")+")"}}}function to(e,t){return Xn((function(n){var o=typeof n;return e(n)?Vo(n):Po("Expected type: "+t+" but got: "+o)}))}function no(e,t){return{extract:function(n,o){return ie(o,e).fold((function(){return t=e,$n(n,(function(){return'Choice schema did not contain choice key: "'+t+'"'}));var t}),(function(e){return r=n,i=o,ie(a=t,u=e).fold((function(){return e=a,t=u,$n(r,(function(){return'The chosen schema: "'+t+'" did not exist in branches: '+Gn(e)}));var e,t}),(function(e){return e.extract(r.concat(["branch: "+u]),i)}));var r,i,a,u}))},toString:function(){return"chooseOn("+e+"). Possible values: "+ke(t)}}}function oo(e){return Xn((function(t){return e(t).fold(Po,Vo)}))}function ro(e,t){return n=function(t){return e(t).fold(Pn,Vn)},o=t,{extract:function(e,t){var r=ke(t),i=Zn(Xn(n)).extract(e,r);return Io(i,(function(n){var r=R(n,(function(e){return In(e,e,{tag:"required",process:{}},o)}));return Ko(r).extract(e,t)}))},toString:function(){return"setOf("+o.toString()+")"}};var n,o}function io(e,t,n){return Lo((r=t.extract([e],o=n),jo(r,(function(e){return{input:o,errors:e}}))));var o,r}function ao(e){return e.fold((function(e){throw new Error(rr(e))}),c)}function uo(e,t,n){return ao(io(e,t,n))}function co(e,t){return no(e,te(t,Ko))}function so(e){return oo((function(t){return we(e,t)?Hn.value(t):Hn.error('Unsupported value: "'+t+'", choose one of "'+e.join(", ")+'".')}))}function lo(e){return ir(e,e,{tag:"required",process:{}},Jo())}function fo(e,t){return ir(e,e,{tag:"required",process:{}},t)}function mo(e){return fo(e,Zo)}function go(e,t){return ir(e,e,{tag:"required",process:{}},so(t))}function ho(e){return fo(e,tr)}function po(e,t){return ir(e,e,{tag:"required",process:{}},Ko(t))}function vo(e,t){return ir(e,e,{tag:"required",process:{}},Yo(t))}function bo(e,t){return ir(e,e,{tag:"required",process:{}},Zn(t))}function yo(e){return ir(e,e,{tag:"option",process:{}},Jo())}function xo(e,t){return ir(e,e,{tag:"option",process:{}},t)}function wo(e){return xo(e,Qo)}function Co(e){return xo(e,Zo)}function So(e){return xo(e,tr)}function ko(e,t){return xo(e,Zn(t))}function _o(e,t){return xo(e,Ko(t))}function Oo(e,t){return ir(e,e,Wn(t),Jo())}function Eo(e,t,n){return ir(e,e,Wn(t),n)}function zo(e,t){return Eo(e,t,Qo)}function To(e,t){return Eo(e,t,Zo)}function Mo(e,t,n){return Eo(e,t,so(n))}function Do(e,t){return Eo(e,t,er)}function Ao(e,t){return Eo(e,t,tr)}function No(e,t,n){return Eo(e,t,Zn(n))}function Bo(e,t,n){return Eo(e,t,Ko(n))}function Ro(e){var t=e;return{get:function(){return t},set:function(e){t=e}}}function Ho(e){if(!d(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return Ce(e,(function(o,r){var i=ke(o);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],u=o[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!d(u))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n.length;if(i!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+i);return{fold:function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);return t[r].apply(null,n)},match:function(e){var o=ke(e);if(t.length!==o.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+o.join(","));if(!W(t,(function(e){return we(o,e)})))throw new Error("Not all branches were specified when using match. Specified: "+o.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)},log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n}(Wt=jt={})[Wt.Error=0]="Error",Wt[Wt.Value=1]="Value";var Lo=function(e){return Ln(e,Hn.error,Hn.value)},Vo=Vn,Po=Pn,Io=function(e,t){return e.stype===jt.Value?t(e.svalue):e},Fo=function(e,t){return e.stype===jt.Error?t(e.serror):e},Uo=function(e,t){return e.stype===jt.Value?{stype:jt.Value,svalue:t(e.svalue)}:e},jo=function(e,t){return e.stype===jt.Error?{stype:jt.Error,serror:t(e.serror)}:e},Wo=Ln,qo=Un((function(e,t){return f(e)&&f(t)?qo(e,t):t})),Go=Un((function(e,t){return t})),$o=function(e){var t,n,o=(t=[],n=[],Ce(e,(function(e){Ln(e,(function(e){return n.push(e)}),(function(e){return t.push(e)}))})),{values:t,errors:n});return 0<o.errors.length?a(Po,U)(o.errors):Vo(o.values)},Xo=Xn(Vo),Ko=function(e){return{extract:function(t,n){for(var o={},r=[],i=0,a=e;i<a.length;i++)Fn(a[i],(function(e,i,a,u){var c=Yn(a,t,n,e,u);Wo(c,(function(e){r.push.apply(r,e)}),(function(e){o[i]=e}))}),(function(e,t){o[e]=t(n)}));return 0<r.length?Po(r):Vo(o)},toString:function(){return"obj{\n"+R(e,(function(e){return Fn(e,(function(e,t,n,o){return e+" -> "+o.toString()}),(function(e,t){return"state("+e+")"}))})).join("\n")+"}"}}},Yo=a(Zn,Ko),Jo=u(Xo),Qo=to(b,"number"),Zo=to(l,"string"),er=to(g,"boolean"),tr=to(v,"function"),nr=function(e){if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every((function(t){return nr(e[t])}));default:return!1}},or=Xn((function(e){return nr(e)?Vo(e):Po("Expected value to be acceptable for sending via postMessage")})),rr=function(e){return"Errors: \n"+R(10<(t=e.errors).length?t.slice(0,10).concat([{path:[],getErrorInfo:u("... (only showing first ten failures)")}]):t,(function(e){return"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo()})).join("\n")+"\n\nInput object: "+Gn(e.input);var t},ir=In,ar=function(e,t){return{tag:"custom",newKey:e,instantiator:t}};function ur(e,t){return(n={})[e]=t,n;var n}function cr(e){return t={},Ce(e,(function(e){t[e.key]=e.value})),t;var t}function sr(e){return v(e)?e:C}function lr(e,t,n){for(var o=e.dom,r=sr(n);o.parentNode;){o=o.parentNode;var i=Ae.fromDom(o),a=t(i);if(a.isSome())return a;if(r(i))break}return ve.none()}function fr(e,t,n){var o=t(e),r=sr(n);return o.orThunk((function(){return r(e)?ve.none():lr(e,t,r)}))}function dr(e,t){return Fe(e.element,t.event.target)}function mr(e){if(!ae(e,"can")&&!ae(e,"abort")&&!ae(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return _(_({},ni),e)}function gr(e){return u("alloy."+e)}function hr(e,t){Yi(e,e.element,t,{})}function pr(e,t,n){Yi(e,e.element,t,n)}function vr(e){hr(e,Ti())}function br(e,t,n){Yi(e,t,n,{})}function yr(e,t,n,o){e.getSystem().triggerEvent(n,t,o.event)}function xr(e,t){return{key:e,value:mr({abort:t})}}function wr(e){return{key:e,value:mr({run:function(e,t){t.event.prevent()}})}}function Cr(e,t){return{key:e,value:mr({run:t})}}function Sr(e,t,n){return{key:e,value:mr({run:function(e,o){t.apply(void 0,[e,o].concat(n))}})}}function kr(e){return function(t){return{key:e,value:mr({run:function(e,n){dr(e,n)&&t(e,n)}})}}}function _r(e,t,n){var o,r=t.partUids[n];return Cr(o=e,(function(e,t){e.getSystem().getByUid(r).each((function(e){yr(e,e.element,o,t)}))}))}function Or(e,t){return Cr(e,(function(e,n){var o=n.event,r=e.getSystem().getByDom(o.target).getOrThunk((function(){return fr(o.target,(function(t){return e.getSystem().getByDom(t).toOptional()}),C).getOr(e)}));t(e,r,n)}))}function Er(e){return Cr(e,(function(e,t){t.cut()}))}function zr(e,t){return kr(e)(t)}function Tr(e){return e.dom.innerHTML}function Mr(e,t){var n,o,r=je(e).dom,i=Ae.fromDom(r.createDocumentFragment());Dt(i,(n=t,(o=(r||document).createElement("div")).innerHTML=n,Ke(Ae.fromDom(o)))),At(e),En(e,i)}function Dr(e){if(Ze(e))return"#shadow-root";var t=Ae.fromDom(e.dom.cloneNode(!1)),n=Ae.fromTag("div"),o=Ae.fromDom(t.dom.cloneNode(!0));return En(n,o),Tr(n)}function Ar(e){var t=(new Date).getTime();return e+"_"+Math.floor(1e9*Math.random())+ ++ra+String(t)}function Nr(e){var t=qt(e)?e.dom[ca]:null;return ve.from(t)}function Br(e){function t(t){return"The component must be in a context to execute: "+t+(e?"\n"+Dr(e().element)+" is not in context.":"")}function n(e){return function(){throw new Error(t(e))}}function o(e){return function(){console.warn(t(e))}}return{debugInfo:u("fake"),triggerEvent:o("triggerEvent"),triggerFocus:o("triggerFocus"),triggerEscape:o("triggerEscape"),broadcast:o("broadcast"),broadcastOn:o("broadcastOn"),broadcastEvent:o("broadcastEvent"),build:n("build"),addToWorld:n("addToWorld"),removeFromWorld:n("removeFromWorld"),addToGui:n("addToGui"),removeFromGui:n("removeFromGui"),getByUid:n("getByUid"),getByDom:n("getByDom"),isConnected:C}}function Rr(e,t){var n=e.toString(),o=n.indexOf(")")+1,r=n.indexOf("("),i=n.substring(r+1,o-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:ma(i)}},e}function Hr(e){return ur(ga,e)}function Lr(e){return t=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return e.apply(void 0,E([t.getApis(),t],n,!1))},o=(n=e.toString()).indexOf(")")+1,r=n.indexOf("("),i=n.substring(r+1,o-1).split(/,\s*/),t.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:ma(i.slice(1))}},t;var t,n,o,r,i}function Vr(e,t){var n={};return ee(e,(function(e,o){ee(e,(function(e,r){var i=ie(n,r).getOr([]);n[r]=i.concat([t(o,e)])}))})),n}function Pr(e){return{classes:h(e.classes)?[]:e.classes,attributes:h(e.attributes)?{}:e.attributes,styles:h(e.styles)?{}:e.styles}}function Ir(e){return e.cHandler}function Fr(e,t){return{name:e,handler:t}}function Ur(e,t){var n=it(e,t);return void 0===n||""===n?[]:n.split(" ")}function jr(e){return void 0!==e.dom.classList}function Wr(e,t){var n,o,r;jr(e)?e.dom.classList.add(t):(o=t,r=Ur(n=e,"class").concat([o]),ot(n,"class",r.join(" ")))}function qr(e,t){var n,o,r,i;jr(e)?e.dom.classList.remove(t):(r=t,0<(i=L(Ur(o=e,"class"),(function(e){return e!==r}))).length?ot(o,"class",i.join(" ")):ct(o,"class")),0===(jr(n=e)?n.dom.classList:Ur(n,"class")).length&&ct(n,"class")}function Gr(e,t){return jr(e)&&e.dom.classList.contains(t)}function $r(e,t){Ce(t,(function(t){Wr(e,t)}))}function Xr(e,t){Ce(t,(function(t){qr(e,t)}))}function Kr(e){return e.dom.value}function Yr(e,t){if(void 0===t)throw new Error("Value.set was undefined");e.dom.value=t}function Jr(e){var t,n,o,r,i=(t=ie(e,"behaviours").getOr({}),j(ke(t),(function(e){var n=t[e];return p(n)?[n.me]:[]})));return n=e,r=R(o=i,(function(e){return _o(e.name(),[lo("config"),Oo("state",ha)])})),{list:o,data:te(io("component.behaviours",Ko(r),n.behaviours).fold((function(e){throw new Error(rr(e)+"\nComplete spec:\n"+JSON.stringify(n,null,2))}),c),(function(e){return u(e.map((function(e){return{config:e.config,state:e.state.init(e.config)}})))}))}}function Qr(e){var t,n,o,r,i,a,u,c,s,l,f=fa(e),d=f.events,m=O(f,["events"]),g=R(ie(m,"components").getOr([]),Ca),h=_(_({},m),{events:_(_({},oa),d),components:g});return Hn.value((n=Ro(da),o=ao(io("custom.definition",ya,t=h)),i=(r=Jr(t)).list,a=r.data,u=function(e){var t=Ae.fromTag(e.tag);rt(t,e.attributes),$r(t,e.classes),dt(t,e.styles),e.innerHtml.each((function(e){return Mr(t,e)}));var n=e.domChildren;return Dt(t,n),e.value.each((function(e){Yr(t,e)})),e.uid,sa(t,e.uid),t}(function(e,t,n){var o,r,i=_(_({},(o=e).dom),{uid:o.uid,domChildren:R(o.components,(function(e){return e.element}))}),a=e.domModification.fold((function(){return Pr({})}),Pr),u=0<t.length?function(e,t,n,o){var r=_({},t);function i(e){return V(e,(function(e,t){return _(_({},t.modification),e)}),{})}Ce(n,(function(t){r[t.name()]=t.exhibit(e,o)}));var a=Vr(r,(function(e,t){return{name:e,modification:t}}));return Pr({classes:V(a.classes,(function(e,t){return t.modification.concat(e)}),[]),attributes:i(a.attributes),styles:i(a.styles)})}(n,{"alloy.base.modification":a},t,i):a;return _(_({},r=i),{attributes:_(_({},r.attributes),u.attributes),styles:_(_({},r.styles),u.styles),classes:r.classes.concat(u.classes)})}(o,i,a)),c=function(e,t,n){var o,r,i,a,u,c={"alloy.base.behaviour":e.events},s=e.eventOrder;return r=n,i=t,o=Vr(_(_({},c),(a=r,u={},Ce(i,(function(e){u[e.name()]=e.handlers(a)})),u)),Fr),va(o,s).getOrDie()}(o,i,a),s=Ro(o.components),l={uid:t.uid,getSystem:n.get,config:function(e){var n=a;return(v(n[e.name()])?n[e.name()]:function(){throw new Error("Could not find "+e.name()+" in "+JSON.stringify(t,null,2))})()},hasConfigured:function(e){return v(a[e.name()])},spec:t,readState:function(e){return a[e]().map((function(e){return e.state.readState()})).getOr("not enabled")},getApis:function(){return o.apis},connect:function(e){n.set(e)},disconnect:function(){n.set(Br(p))},element:u,syncComponents:function(){var e=j(Ke(u),(function(e){return n.get().getByDom(e).fold((function(){return[]}),X)}));s.set(e)},components:s.get,events:c}));function p(){return l}}function Zr(e){var t=Ae.fromText(e);return xa({element:t})}Ho([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var ei,ti,ni={can:S,abort:C,run:i},oi=u,ri=oi("touchstart"),ii=oi("touchmove"),ai=oi("touchend"),ui=oi("touchcancel"),ci=oi("mousedown"),si=oi("mousemove"),li=oi("mouseout"),fi=oi("mouseup"),di=oi("mouseover"),mi=oi("focusin"),gi=oi("focusout"),hi=oi("keydown"),pi=oi("keyup"),vi=oi("input"),bi=oi("change"),yi=oi("click"),xi=oi("transitioncancel"),wi=oi("transitionend"),Ci=oi("transitionstart"),Si=oi("selectstart"),ki={tap:gr("tap")},_i=gr("focus"),Oi=gr("blur.post"),Ei=gr("paste.post"),zi=gr("receive"),Ti=gr("execute"),Mi=gr("focus.item"),Di=ki.tap,Ai=gr("longpress"),Ni=gr("sandbox.close"),Bi=gr("typeahead.cancel"),Ri=gr("system.init"),Hi=gr("system.touchmove"),Li=gr("system.touchend"),Vi=gr("system.scroll"),Pi=gr("system.resize"),Ii=gr("system.attached"),Fi=gr("system.detached"),Ui=gr("system.dismissRequested"),ji=gr("system.repositionRequested"),Wi=gr("focusmanager.shifted"),qi=gr("slotcontainer.visibility"),Gi=gr("change.tab"),$i=gr("dismiss.tab"),Xi=gr("highlight"),Ki=gr("dehighlight"),Yi=function(e,t,n,o){var r=_({target:t},o);e.getSystem().triggerEvent(n,t,r)},Ji=cr,Qi=kr(Ii()),Zi=kr(Fi()),ea=kr(Ri()),ta=(ei=Ti(),function(e){return Cr(ei,e)}),na=Ji([{key:_i(),value:mr({can:function(e,t){var n,o=t.event,r=o.originator,i=o.target;return!(Fe(n=r,e.element)&&!Fe(n,i)&&(console.warn(_i()+" did not get interpreted by the desired target. \nOriginator: "+Dr(r)+"\nTarget: "+Dr(i)+"\nCheck the "+_i()+" event handlers"),1))}})}]),oa=Object.freeze({__proto__:null,events:na}),ra=0,ia=u("alloy-id-"),aa=u("data-alloy-id"),ua=ia(),ca=aa(),sa=function(e,t){Object.defineProperty(e.dom,ca,{value:t,writable:!0})},la=Ar,fa=c,da=Br(),ma=function(e){return R(e,(function(e){return Me(e,"/*")?e.substring(0,e.length-"/*".length):e}))},ga=Ar("alloy-premade"),ha={init:function(){return pa({readState:u("No State required")})}},pa=function(e){return e},va=function(e,t){var n,o,r,i,a,u,c=ne(e,(function(e,n){return(1===e.length?Hn.value(e[0].handler):function(e,t,n){var o=t[n];return o?function(e,t,n){try{var o=K(t,(function(t,o){var r=t.name,i=o.name,a=n.indexOf(r),u=n.indexOf(i);if(-1===a)throw new Error("The ordering for "+e+" does not have an entry for "+r+".\nOrder specified: "+JSON.stringify(n,null,2));if(-1===u)throw new Error("The ordering for "+e+" does not have an entry for "+i+".\nOrder specified: "+JSON.stringify(n,null,2));return a<u?-1:u<a?1:0}));return Hn.value(o)}catch(t){return Hn.error([t])}}("Event: "+n,e,o).map((function(e){var t,n,o,r,i=R(e,(function(e){return e.handler}));return{can:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(n,(function(t,n){return t&&n.can.apply(void 0,e)}),!0)},abort:(o=n=t=i,r=function(e){return e.abort},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(o,(function(t,n){return t||r(n).apply(void 0,e)}),!1)}),run:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];Ce(t,(function(t){t.run.apply(void 0,e)}))}}})):Hn.error(["The event ("+n+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify(R(e,(function(e){return e.name})),null,2)])}(e,t,n)).map((function(o){var r,i,a=(i=v(r=o)?{can:S,abort:C,run:r}:r,function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r=[e,t].concat(n);i.abort.apply(void 0,r)?t.stop():i.can.apply(void 0,r)&&i.run.apply(void 0,r)}),u=1<e.length?L(t[n],(function(t){return A(e,(function(e){return e.name===t}))})).join(" > "):e[0].name;return ur(n,{handler:a,purpose:u})}))}));return n={},o=[],r=[],Ce(c,(function(e){e.fold((function(e){o.push(e)}),(function(e){r.push(e)}))})),0<(u={errors:o,values:r}).errors.length?Hn.error(U(u.errors)):(a=n,0===(i=u.values).length?Hn.value(a):Hn.value(qo(a,Go.apply(void 0,i))))},ba="alloy.base.behaviour",ya=Ko([ir("dom","dom",{tag:"required",process:{}},Ko([lo("tag"),Oo("styles",{}),Oo("classes",[]),Oo("attributes",{}),yo("value"),yo("innerHtml")])),lo("components"),lo("uid"),Oo("events",{}),Oo("apis",{}),ir("eventOrder","eventOrder",((ti={})[Ti()]=["disabling",ba,"toggling","typeaheadevents"],ti[_i()]=[ba,"focusing","keying"],ti[Ri()]=[ba,"disabling","toggling","representing"],ti[vi()]=[ba,"representing","streaming","invalidating"],ti[Fi()]=[ba,"representing","item-events","tooltipping"],ti[ci()]=["focusing",ba,"item-type-events"],ti[ri()]=["focusing",ba,"item-type-events"],ti[di()]=["item-type-events","tooltipping"],ti[zi()]=["receiving","reflecting","tooltipping"],qn(u(ti))),Jo()),yo("domModification")]),xa=function(e){var t=uo("external.component",Qn([lo("element"),yo("uid")]),e),n=Ro(Br()),o=t.uid.getOrThunk((function(){return la("external")}));sa(t.element,o);var r={uid:o,getSystem:n.get,config:ve.none,hasConfigured:C,connect:function(e){n.set(e)},disconnect:function(){n.set(Br((function(){return r})))},getApis:function(){return{}},element:t.element,spec:e,readState:u("No state"),syncComponents:i,components:u([]),events:{}};return Hr(r)},wa=la,Ca=function(e){return ie(e,ga).getOrThunk((function(){return Qr(Ee(e,"uid")?e:_({uid:wa("")},e)).getOrDie()}))},Sa=Hr;function ka(e,t,n,o,r){return e(n,o)?ve.some(n):v(r)&&r(n)?ve.none():t(n,o,r)}function _a(e,t,n){for(var o=e.dom,r=v(n)?n:C;o.parentNode;){o=o.parentNode;var i=Ae.fromDom(o);if(t(i))return ve.some(i);if(r(i))break}return ve.none()}function Oa(e,t,n){return ka((function(e,t){return t(e)}),_a,e,t,n)}function Ea(e,t,n){return Oa(e,t,n).isSome()}function za(e,t,n){return _a(e,(function(e){return Pe(e,t)}),n)}function Ta(e,t){return n=t,Ie(o=void 0===e?document:e.dom)?ve.none():ve.from(o.querySelector(n)).map(Ae.fromDom);var n,o}function Ma(e,t,n){return ka(Pe,za,e,t,n)}function Da(){var e=Ar("aria-owns");return{id:e,link:function(t){ot(t,"aria-owns",e)},unlink:function(e){ct(e,"aria-owns")}}}var Aa,Na,Ba=function(e,t){return Ea(t,(function(t){return Fe(t,e.element)}),C)||(n=e,Oa(t,(function(e){if(!qt(e))return!1;var t=it(e,"id");return void 0!==t&&-1<t.indexOf("aria-owns")})).bind((function(e){var t=it(e,"id");return Ta(gn(e),'[aria-owns="'+t+'"]')})).exists((function(e){return Ba(n,e)})));var n};function Ra(e,t,n){var o,r,i,a;switch(ie(Ha.get(),e).orThunk((function(){return Z(ke(Ha.get()),(function(t){return-1<e.indexOf(t)?ve.some(Ha.get()[t]):ve.none()}))})).getOr(Aa.NORMAL)){case Aa.NORMAL:return n(Va());case Aa.LOGGING:var u=(o=e,r=t,i=[],a=(new Date).getTime(),{logEventCut:function(e,t,n){i.push({outcome:"cut",target:t,purpose:n})},logEventStopped:function(e,t,n){i.push({outcome:"stopped",target:t,purpose:n})},logNoParent:function(e,t,n){i.push({outcome:"no-parent",target:t,purpose:n})},logEventNoHandlers:function(e,t){i.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(e,t,n){i.push({outcome:"response",purpose:n,target:t})},write:function(){var e=(new Date).getTime();we(["mousemove","mouseover","mouseout",Ri()],o)||console.log(o,{event:o,time:e-a,target:r.dom,sequence:R(i,(function(e){return we(["cut","stopped","response"],e.outcome)?"{"+e.purpose+"} "+e.outcome+" at ("+Dr(e.target)+")":e.outcome}))})}}),c=n(u);return u.write(),c;case Aa.STOP:return!0}}(Na=Aa=Aa||{})[Na.STOP=0]="STOP",Na[Na.NORMAL=1]="NORMAL",Na[Na.LOGGING=2]="LOGGING";var Ha=Ro({}),La=["alloy/data/Fields","alloy/debugging/Debugging"],Va=u({logEventCut:i,logEventStopped:i,logNoParent:i,logEventNoHandlers:i,logEventResponse:i,write:i}),Pa=u([lo("menu"),lo("selectedMenu")]),Ia=u([lo("item"),lo("selectedItem")]);function Fa(){return po("markers",[lo("backgroundMenu")].concat(Pa()).concat(Ia()))}function Ua(e){return po("markers",R(e,lo))}function ja(e,t,n){return void 0!==(o=new Error).stack&&I(o.stack.split("\n"),(function(e){return 0<e.indexOf("alloy")&&!A(La,(function(t){return-1<e.indexOf(t)}))})).getOr("unknown"),ir(t,t,n,oo((function(e){return Hn.value((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.apply(void 0,t)}))})));var o}function Wa(e){return ja(0,e,Wn(i))}function qa(e){return ja(0,e,Wn(ve.none))}function Ga(e){return ja(0,e,{tag:"required",process:{}})}function $a(e){return ja(0,e,{tag:"required",process:{}})}function Xa(e,t){return ar(e,u(t))}function Ka(e){return ar(e,c)}function Ya(e,t,n,o,r,i,a,u){return{x:e,y:t,bubble:n,direction:o,placement:r,restriction:i,label:a+"-"+r,alwaysFit:u=void 0!==u&&u}}function Ja(e,t,n,o){var r=e+t;return o<r?n:r<n?o:r}function Qa(e,t){return $(["left","right","top","bottom"],(function(n){return ie(t,n).map((function(t){return function(e){switch(t){case 1:return e.x;case 0:return e.x+e.width;case 2:return e.y;case 3:return e.y+e.height}}(e)}))}))}function Za(e,t){return e.x+e.width/2-t.width/2}function eu(e,t){return e.x+e.width-t.width}function tu(e,t){return e.y-t.height}function nu(e){return e.y+e.height}function ou(e,t){return e.y+e.height/2-t.height/2}function ru(e,t,n){return Ya(e.x+e.width,ou(e,t),n.east(),Hu(),"east",Qa(e,{left:0}),Pu)}function iu(e,t,n){return Ya(e.x-t.width,ou(e,t),n.west(),Lu(),"west",Qa(e,{right:1}),Pu)}function au(){return[Iu,Fu,Uu,ju,qu,Wu,ru,iu]}function uu(){return[Fu,Iu,ju,Uu,qu,Wu,ru,iu]}function cu(){return[Uu,ju,Iu,Fu,Wu,qu]}function su(){return[ju,Uu,Fu,Iu,Wu,qu]}function lu(){return[Iu,Fu,Uu,ju,qu,Wu]}function fu(){return[Fu,Iu,ju,Uu,qu,Wu]}function du(e,t,n){return ea((function(o,r){n(o,e,t)}))}function mu(e){return{key:e,value:void 0}}function gu(e){var t,n,o,r,i,a,u,c,s=uo("Creating behaviour: "+e.name,Yu,e);return t=s.fields,n=s.name,o=s.active,r=s.apis,i=s.extra,a=s.state,u=Qn(t),c=_o(n,[xo("config",Qn(t))]),Xu(u,c,n,o,r,i,a)}function hu(e){var t,n=uo("Creating behaviour: "+e.name,Ju,e),o=co(n.branchKey,n.branches),r=n.name,i=n.active,a=n.apis,u=n.extra,c=n.state,s=_o(r,[xo("config",t=o)]);return Xu(t,s,r,i,a,u,c)}function pu(){return Ae.fromDom(document)}function vu(e){return e.dom.focus()}function bu(e){var t=gn(e).dom;return e.dom===t.activeElement}function yu(e){return void 0===e&&(e=pu()),ve.from(e.dom.activeElement).map(Ae.fromDom)}function xu(e){return yu(gn(e)).filter((function(t){return e.dom.contains(t.dom)}))}function wu(e,t){var n=gn(t),o=yu(n).bind((function(e){function n(t){return Fe(e,t)}var o,r;return n(t)?ve.some(t):(o=n,(r=function(e){for(var t=0;t<e.childNodes.length;t++){var n=Ae.fromDom(e.childNodes[t]);if(o(n))return ve.some(n);var i=r(e.childNodes[t]);if(i.isSome())return i}return ve.none()})(t.dom))})),r=e(t);return o.each((function(e){yu(n).filter((function(t){return Fe(t,e)})).fold((function(){vu(e)}),i)})),r}function Cu(e,t,n,o,r){function i(e){return e+"px"}return{position:e,left:t.map(i),top:n.map(i),right:o.map(i),bottom:r.map(i)}}function Su(e,t){var n;mt(e,_(_({},n=t),{position:ve.some(n.position)}))}function ku(e,t,n,o,r,i){var a=t.rect,u=a.x-n,c=a.y-o,s=r-(u+a.width),l=i-(c+a.height),f=ve.some(u),d=ve.some(c),m=ve.some(s),g=ve.some(l),h=ve.none();return t.direction.fold((function(){return Cu(e,f,d,h,h)}),(function(){return Cu(e,h,d,m,h)}),(function(){return Cu(e,f,h,h,g)}),(function(){return Cu(e,h,h,m,g)}),(function(){return Cu(e,f,d,h,h)}),(function(){return Cu(e,f,h,h,g)}),(function(){return Cu(e,f,d,h,h)}),(function(){return Cu(e,h,d,m,h)}))}function _u(e,t){return e.fold((function(){var e=t.rect;return Cu("absolute",ve.some(e.x),ve.some(e.y),ve.none(),ve.none())}),(function(e,n,o,r){return ku("absolute",t,e,n,o,r)}),(function(e,n,o,r){return ku("fixed",t,e,n,o,r)}))}function Ou(e,t){var n=y(Vt,t),o=e.fold(n,n,(function(){var e=Bt();return Vt(t).translate(-e.left,-e.top)})),r=_t(t),i=wt(t);return Dn(o.left,o.top,r,i)}u(Ko(Ia().concat(Pa())));var Eu=u(Ko(Ia())),zu=u(po("initSize",[lo("numColumns"),lo("numRows")])),Tu=Ho([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Mu=Tu.southeast,Du=Tu.southwest,Au=Tu.northeast,Nu=Tu.northwest,Bu=Tu.south,Ru=Tu.north,Hu=Tu.east,Lu=Tu.west,Vu=function(e,t,n){return Math.min(Math.max(e,t),n)},Pu="layout",Iu=function(e,t,n){return Ya(e.x,nu(e),n.southeast(),Mu(),"southeast",Qa(e,{left:1,top:3}),Pu)},Fu=function(e,t,n){return Ya(eu(e,t),nu(e),n.southwest(),Du(),"southwest",Qa(e,{right:0,top:3}),Pu)},Uu=function(e,t,n){return Ya(e.x,tu(e,t),n.northeast(),Au(),"northeast",Qa(e,{left:1,bottom:2}),Pu)},ju=function(e,t,n){return Ya(eu(e,t),tu(e,t),n.northwest(),Nu(),"northwest",Qa(e,{right:0,bottom:2}),Pu)},Wu=function(e,t,n){return Ya(Za(e,t),tu(e,t),n.north(),Ru(),"north",Qa(e,{bottom:2}),Pu)},qu=function(e,t,n){return Ya(Za(e,t),nu(e),n.south(),Bu(),"south",Qa(e,{top:3}),Pu)},Gu=Object.freeze({__proto__:null,events:function(e){return Ji([Cr(zi(),(function(t,n){var o,r=e.channels,i=ke(r),a=n,u=(o=a).universal?i:L(i,(function(e){return we(o.channels,e)}));Ce(u,(function(e){var n=r[e],o=n.schema,i=uo("channel["+e+"] data\nReceiver: "+Dr(t.element),o,a.data);n.onReceive(t,i)}))}))])}}),$u=[fo("channels",ro(Hn.value,Qn([Ga("onReceive"),Oo("schema",Jo())])))],Xu=function(e,t,n,o,r,i,a){function c(e){return ae(e,n)?e[n]():ve.none()}var s=te(r,(function(e,t){return o=n,a=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=[e].concat(t);return e.config({name:u(o)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+o+". Using API: "+i)}),(function(t){var n=Array.prototype.slice.call(a,1);return r.apply(void 0,[e,t.config,t.state].concat(n))}))},c=i=t,l=(s=(r=e).toString()).indexOf(")")+1,f=s.indexOf("("),d=s.substring(f+1,l-1).split(/,\s*/),a.toFunctionAnnotation=function(){return{name:c,parameters:ma(d.slice(0,1).concat(d.slice(3)))}},a;var o,r,i,a,c,s,l,f,d})),l=te(i,Rr),f=_(_(_({},l),s),{revoke:y(mu,n),config:function(t){var o=uo(n+"-config",e,t);return{key:n,value:{config:o,me:f,configAsRaw:Re((function(){return uo(n+"-config",e,t)})),initialConfig:t,state:a}}},schema:u(t),exhibit:function(e,t){return ze(c(e),ie(o,"exhibit"),(function(e,n){return n(t,e.config,e.state)})).getOrThunk((function(){return Pr({})}))},name:u(n),handlers:function(e){return c(e).map((function(e){return ie(o,"events").getOr((function(){return{}}))(e.config,e.state)})).getOr({})}});return f},Ku=cr,Yu=Qn([lo("fields"),lo("name"),Oo("active",{}),Oo("apis",{}),Oo("state",ha),Oo("extra",{})]),Ju=Qn([lo("branchKey"),lo("branches"),lo("name"),Oo("active",{}),Oo("apis",{}),Oo("state",ha),Oo("extra",{})]),Qu=u(void 0),Zu=gu({fields:$u,name:"receiving",active:Gu}),ec=Object.freeze({__proto__:null,exhibit:function(e,t){return Pr({classes:[],styles:t.useFixed()?{}:{position:"relative"}})}}),tc=Ho([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),nc=function(e,t,n){var o=Sn(t,n);return e.fold(u(o),u(o),(function(){var e=Bt();return o.translate(-e.left,-e.top)}))};function oc(e){return at(e,xc)}function rc(e){function t(){return n.get().each(e)}var n=Ro(ve.none());return{clear:function(){t(),n.set(ve.none())},isSet:function(){return n.get().isSome()},get:function(){return n.get()},set:function(e){t(),n.set(ve.some(e))}}}function ic(){return rc((function(e){return e.destroy()}))}function ac(){return rc((function(e){return e.unbind()}))}function uc(){var e=rc(i);return _(_({},e),{on:function(t){return e.get().each(t)}})}function cc(e,t,n){return Et(e,t,Cc,n,!1)}function sc(e,t,n){return Et(e,t,Cc,n,!0)}function lc(e,t){function n(t){var n,o=null!==(n=t.raw.pseudoElement)&&void 0!==n?n:"";return Fe(t.target,e)&&!de(o)&&we(kc,t.raw.propertyName)}function r(r){var i;(o(r)||n(r))&&(c.clear(),s.clear(),!o(i=null==r?void 0:r.raw.type)&&i!==wi()||(clearTimeout(a),ct(e,_c),Xr(e,t.classes)))}function i(){c.set(cc(e,wi(),r)),s.set(cc(e,xi(),r))}var a,u,c=ac(),s=ac();"ontransitionstart"in e.dom?u=cc(e,Ci(),(function(e){n(e)&&(u.unbind(),i())})):i();var f,d,m=(f=e,d=g("transition-delay"),P(g("transition-duration"),(function(e,t,n){var o=h(d[n])+h(t);return Math.max(e,o)}),0));function g(e){var t=gt(f,e);return L(l(t)?t.split(/\s*,\s*/):[],de)}function h(e){if(l(e)&&/^[\d.]+/.test(e)){var t=parseFloat(e);return Me(e,"ms")?t:1e3*t}return 0}requestAnimationFrame((function(){a=setTimeout(r,m+17),ot(e,_c,a)}))}function fc(e,t,n,o){vt(t,"max-height"),vt(t,"max-width");var r,i,a,s,l,f,d,m,g,h={width:_t(r=t),height:wt(r)};return i=t,a=o.preference,s=e,l=h,f=n,d=o.bounds,m=l.width,g=l.height,P(a,(function(e,t){var n=y(p,t);return e.fold(u(e),n)}),wc.nofit({rect:s,maxHeight:l.height,maxWidth:l.width,direction:Mu(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:s.y},-1,-1,!1)).fold(c,c);function p(e,t,n,o,r){var a=function(e,t,n,o){var r,i,a,c,s,l,f,d,m,g,h,p,v,b,y,x,w,C,S,k,_,O,E,z,T,M,D,A,N,B,R,H,L,V,P,I,F,U,j,W=e.bubble,q=W.offset,G=(L=o,V=e.restriction,P=q,I=re("left",L.x),F=re("top",L.y),U=re("right",L.right),j=re("bottom",L.bottom),Dn(I,F,U-I,j-F)),$=e.x+q.left,X=e.y+q.top,K=Dn($,X,t,n),Y=(r=G.x,i=G.y,a=G.right,c=G.bottom,s=K.x,l=K.y,f=K.right,d=K.bottom,m=K.width,g=K.height,{originInBounds:r<=s&&s<=a&&i<=l&&l<=c,sizeInBounds:f<=a&&r<=f&&d<=c&&i<=d,visibleW:Math.min(m,r<=s?a-s:f-r),visibleH:Math.min(g,i<=l?c-l:d-i)}),J=Y.visibleW,Q=Y.visibleH,Z=Y.originInBounds&&Y.sizeInBounds,ee=Z?K:(h=G.x,p=G.y,v=G.right,b=G.bottom,y=K.x,x=K.y,w=K.width,C=K.height,S=Math.max(h,v-w),k=Math.max(p,b-C),_=Vu(y,h,S),O=Vu(x,p,k),E=Math.min(_+w,v)-_,z=Math.min(O+C,b)-O,Dn(_,O,E,z)),te=0<ee.width&&0<ee.height,ne=(T=e.direction,A=u((M=ee).bottom-(D=o).y),N=u(D.bottom-M.y),B=T.fold(N,N,A,A,N,A,N,N),R=u(M.right-D.x),H=u(D.right-M.x),{maxWidth:T.fold(H,R,H,R,H,H,H,R),maxHeight:B}),oe={rect:ee,maxHeight:ne.maxHeight,maxWidth:ne.maxWidth,direction:e.direction,placement:e.placement,classes:{on:W.classesOn,off:W.classesOff},layout:e.label,testY:X};function re(e,t){return V[e].map((function(n){var o="top"===e||"bottom"===e,r=o?P.top:P.left,i=("left"===e||"top"===e?Math.max:Math.min)(n,t)+r;return o?Vu(i,L.y,L.bottom):Vu(i,L.x,L.right)})).getOr(t)}return Z||e.alwaysFit?wc.fit(oe):wc.nofit(oe,J,Q,te)}(e(s,l,f,i,d),m,g,d);return a.fold(u(a),(function(e,i,u,c){return(r===c?o<u||n<i:!r&&c)?a:wc.nofit(t,n,o,r)}))}}function dc(e,t){var n=e,o=Math.floor(t);ft(n,"max-height",wn.max(n,o,["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"])+"px")}function mc(e,t,n){return void 0===e[t]?n:e[t]}function gc(e,t,n,o){function r(e){return ie(n,e).getOr([])}function i(e,t,n){var o=G(Tc,n);return{offset:Sn(e,t),classesOn:j(n,r),classesOff:j(o,r)}}var a=e*(o=void 0===o?1:o),u=t*o;return{southeast:function(){return i(-e,t,["top","alignLeft"])},southwest:function(){return i(e,t,["top","alignRight"])},south:function(){return i(-e/2,t,["top","alignCentre"])},northeast:function(){return i(-e,-t,["bottom","alignLeft"])},northwest:function(){return i(e,-t,["bottom","alignRight"])},north:function(){return i(-e/2,-t,["bottom","alignCentre"])},east:function(){return i(e,-t/2,["valignCentre","left"])},west:function(){return i(-e,-t/2,["valignCentre","right"])},insetNortheast:function(){return i(a,u,["top","alignLeft","inset"])},insetNorthwest:function(){return i(-a,u,["top","alignRight","inset"])},insetNorth:function(){return i(-a/2,u,["top","alignCentre","inset"])},insetSoutheast:function(){return i(a,-u,["bottom","alignLeft","inset"])},insetSouthwest:function(){return i(-a,-u,["bottom","alignRight","inset"])},insetSouth:function(){return i(-a/2,-u,["bottom","alignCentre","inset"])},insetEast:function(){return i(-a,-u/2,["valignCentre","right","inset"])},insetWest:function(){return i(a,-u/2,["valignCentre","left","inset"])}}}function hc(){return gc(0,0,{})}function pc(e,t){return function(n){return"rtl"===Dc(n)?t:e}}tc.none;var vc,bc=tc.relative,yc=tc.fixed,xc="data-alloy-placement",wc=Ho([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Cc=S,Sc=Ot,kc=["top","bottom","right","left"],_c="data-alloy-transition-timer",Oc=u((function(e,t){dc(e,t),dt(e,{"overflow-x":"hidden","overflow-y":"auto"})})),Ec=u((function(e,t){dc(e,t)})),zc=function(e,t,n,o){var r,i,a,u,c=fc(e,t,n,o),l=t,f=c,d=_u((r=o).origin,f);return r.transition.each((function(e){!function(e,t,n,o,r,i){var a,u,c,l,f,d,m,g,h,p=(a=o,u=r,i.exists((function(e){var t=a.mode;return"all"===t||e[t]!==u[t]})));function v(e){return parseFloat(e).toFixed(3)}p||(h=e,W(o.classes,(function(e){return Gr(h,e)})))?(ft(e,"position",n.position),c=Ou(t,e),l=_u(t,_(_({},r),{rect:c})),f=$(kc,(function(e){return l[e]})),g=n,oe(f,(function(e,t){var n,o,r,i=g[t].map(v),a=e.map(v);return!ze(n=i,o=a,r=void 0===r?s:r).getOr(n.isNone()&&o.isNone())})).isSome()&&(mt(e,f),p&&($r(d=e,(m=o).classes),at(d,_c).each((function(e){clearTimeout(parseInt(e,10)),ct(d,_c)})),lc(d,m)),bt(e))):Xr(e,o.classes)}(l,r.origin,d,e,f,r.lastPlacement)})),Su(l,d),u=c.placement,ot(t,xc,u),Xr(i=t,(a=c.classes).off),$r(i,a.on),(0,o.maxHeightFunction)(t,c.maxHeight),(0,o.maxWidthFunction)(t,c.maxWidth),{layout:c.layout,placement:c.placement}},Tc=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Mc=c,Dc=function(e){return"rtl"===gt(e,"direction")?"rtl":"ltr"};function Ac(e){return Ea(e,(function(e){return qt(e)&&it(e,"data-alloy-vertical-dir")===vc.BottomToTop}))}function Nc(){return _o("layouts",[lo("onLtr"),lo("onRtl"),yo("onBottomLtr"),yo("onBottomRtl")])}function Bc(e,t,n,o,r,i,a){var u=a.map(Ac).getOr(!1),c=t.layouts.map((function(t){return t.onLtr(e)})),s=t.layouts.map((function(t){return t.onRtl(e)}));return pc(u?t.layouts.bind((function(t){return t.onBottomLtr.map((function(t){return t(e)}))})).or(c).getOr(r):c.getOr(n),u?t.layouts.bind((function(t){return t.onBottomRtl.map((function(t){return t(e)}))})).or(s).getOr(i):s.getOr(o))(e)}function Rc(e){return e.fold(c,(function(e,t,n){return e.translate(-t,-n)}))}function Hc(e){return e.fold(c,c)}function Lc(e){return P(e,(function(e,t){return e.translate(t.left,t.top)}),Sn(0,0))}function Vc(e){return Lc(R(e,Hc))}function Pc(e,t,n){var o,r,i=Bt(je(e.element)),a=(o=e,r=Ge(n.root).dom,ve.from(r.frameElement).map(Ae.fromDom).filter((function(e){return Fe(je(e),je(o.element))})).map(St).getOr(i));return Qc(a,i.left,i.top)}function Ic(e,t,n,o){var r=Jc(Sn(e,t));return ve.some({point:r,width:n,height:o})}function Fc(e,t,n,o,r){return e.map((function(e){var i=[t,e.point],a=o.fold((function(){return Vc(i)}),(function(){return Vc(i)}),(function(){return Lc(R(i,Rc))})),u={x:a.left,y:a.top,width:e.width,height:e.height},c=(n.showAbove?cu:lu)(),s=(n.showAbove?su:fu)(),l=Bc(r,n,c,s,c,s,ve.none());return Mc({anchorBox:u,bubble:n.bubble.getOr(hc()),overrides:n.overrides,layouts:l,placer:ve.none()})}))}function Uc(e,t,n){var o,r=e.document.createRange(),i=r;return t.fold((function(e){i.setStartBefore(e.dom)}),(function(e,t){i.setStart(e.dom,t)}),(function(e){i.setStartAfter(e.dom)})),o=r,n.fold((function(e){o.setEndBefore(e.dom)}),(function(e,t){o.setEnd(e.dom,t)}),(function(e){o.setEndAfter(e.dom)})),r}function jc(e,t,n,o,r){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(o.dom,r),i}function Wc(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function qc(e,t,n){return t(Ae.fromDom(n.startContainer),n.startOffset,Ae.fromDom(n.endContainer),n.endOffset)}function Gc(e,t){return n=e,i=t.match({domRange:function(e){return{ltr:u(e),rtl:ve.none}},relative:function(e,t){return{ltr:Re((function(){return Uc(n,e,t)})),rtl:Re((function(){return ve.some(Uc(n,t,e))}))}},exact:function(e,t,o,r){return{ltr:Re((function(){return jc(n,e,t,o,r)})),rtl:Re((function(){return ve.some(jc(n,o,r,e,t))}))}}}),((r=(o=i).ltr()).collapsed?o.rtl().filter((function(e){return!1===e.collapsed})).map((function(e){return is.rtl(Ae.fromDom(e.endContainer),e.endOffset,Ae.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return qc(0,is.ltr,r)})):qc(0,is.ltr,r)).match({ltr:function(t,n,o,r){var i=e.document.createRange();return i.setStart(t.dom,n),i.setEnd(o.dom,r),i},rtl:function(t,n,o,r){var i=e.document.createRange();return i.setStart(o.dom,r),i.setEnd(t.dom,n),i}});var n,o,r,i}(vc=vc||{}).TopToBottom="toptobottom",vc.BottomToTop="bottomtotop";var $c="data-alloy-vertical-dir",Xc=[lo("hotspot"),yo("bubble"),Oo("overrides",{}),Nc(),Xa("placement",(function(e,t,n){var o=Ou(n,t.hotspot.element),r=Bc(e.element,t,lu(),fu(),cu(),su(),ve.some(t.hotspot.element));return ve.some(Mc({anchorBox:o,bubble:t.bubble.getOr(hc()),overrides:t.overrides,layouts:r,placer:ve.none()}))}))],Kc=[lo("x"),lo("y"),Oo("height",0),Oo("width",0),Oo("bubble",hc()),Oo("overrides",{}),Nc(),Xa("placement",(function(e,t,n){var o=nc(n,t.x,t.y),r=Dn(o.left,o.top,t.width,t.height),i=Bc(e.element,t,au(),uu(),au(),uu(),ve.none());return ve.some(Mc({anchorBox:r,bubble:t.bubble,overrides:t.overrides,layouts:i,placer:ve.none()}))}))],Yc=Ho([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Jc=Yc.screen,Qc=Yc.absolute,Zc=[lo("node"),lo("root"),yo("bubble"),Nc(),Oo("overrides",{}),Oo("showAbove",!1),Xa("placement",(function(e,t,n){var o=Pc(e,0,t);return t.node.filter(vn).bind((function(r){var i=r.dom.getBoundingClientRect(),a=Ic(i.left,i.top,i.width,i.height),u=t.node.getOr(e.element);return Fc(a,o,t,n,u)}))}))],es=function(e,t,n,o){return{start:e,soffset:t,finish:n,foffset:o}},ts=Ho([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),ns=(ts.before,ts.on,ts.after,function(e){return e.fold(c,c,c)}),os=Ho([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),rs={domRange:os.domRange,relative:os.relative,exact:os.exact,exactFromRange:function(e){return os.exact(e.start,e.soffset,e.finish,e.foffset)},getWin:function(e){return Ge(e.match({domRange:function(e){return Ae.fromDom(e.startContainer)},relative:function(e,t){return ns(e)},exact:function(e,t,n,o){return e}}))},range:es},is=Ho([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]);function as(e){return Gl.getOption(e)}function us(e){return as(e).filter((function(e){return 0!==e.trim().length||-1<e.indexOf(" ")})).isSome()||we($l,Ne(e))}function cs(e,t){return Ie(n=void 0===e?document:e.dom)?[]:R(n.querySelectorAll(t),Ae.fromDom);var n}function ss(e){if(0<e.rangeCount){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return ve.some(es(Ae.fromDom(t.startContainer),t.startOffset,Ae.fromDom(n.endContainer),n.endOffset))}return ve.none()}function ls(e){if(null===e.anchorNode||null===e.focusNode)return ss(e);var t,n,o,r,i,a,u,c,s,l,f,d=Ae.fromDom(e.anchorNode),m=Ae.fromDom(e.focusNode);return t=d,a=n=e.anchorOffset,u=o=m,c=r=e.focusOffset,(s=je(i=t).dom.createRange()).setStart(i.dom,a),s.setEnd(u.dom,c),l=s,f=Fe(t,o)&&n===r,l.collapsed&&!f?ve.some(es(d,e.anchorOffset,m,e.focusOffset)):ss(e)}function fs(e,t){var n,o,r=(n=Gc(e,t)).getClientRects();return 0<(o=0<r.length?r[0]:n.getBoundingClientRect()).width||0<o.height?ve.some(o).map(Wc):ve.none()}function ds(e,t){return{element:e,offset:t}}function ms(e,t){return(Gt(e)?ds:function(e,t){var n=Ke(e);if(0===n.length)return ds(e,t);if(t<n.length)return ds(n[t],0);var o=n[n.length-1];return ds(o,(Gt(o)?Gl.get(o):Ke(o)).length)})(e,t)}function gs(e,t){return t.getSelection.getOrThunk((function(){return function(){return ve.from(e.getSelection()).filter((function(e){return 0<e.rangeCount})).bind(ls)}}))().map((function(e){var t=ms(e.start,e.soffset),n=ms(e.finish,e.foffset);return rs.range(t.element,t.offset,n.element,n.offset)}))}function hs(e){return e.x+e.width}function ps(e,t){return e.x-t.width}function vs(e,t){return e.y-t.height+e.height}function bs(e,t,n){return Ya(hs(e),e.y,n.southeast(),Mu(),"southeast",Qa(e,{left:0,top:2}),Kl)}function ys(e,t,n){return Ya(ps(e,t),e.y,n.southwest(),Du(),"southwest",Qa(e,{right:1,top:2}),Kl)}function xs(e,t,n){return Ya(hs(e),vs(e,t),n.northeast(),Au(),"northeast",Qa(e,{left:0,bottom:3}),Kl)}function ws(e,t,n){return Ya(ps(e,t),vs(e,t),n.northwest(),Nu(),"northwest",Qa(e,{right:1,bottom:3}),Kl)}function Cs(){return[bs,ys,xs,ws]}function Ss(){return[ys,bs,ws,xs]}function ks(e,t,n,o,r,a,u){var c,s,l,f,d,m,g,h,p,v,b,y,x,w;return c={anchorBox:n.anchorBox,origin:t},s=r.element,l=n.bubble,f=n.layouts,d=a,m=o,h=u,v=mc(g=n.overrides,"maxHeightFunction",Oc()),b=mc(g,"maxWidthFunction",i),y=c.anchorBox,w={bounds:(p=x=c.origin,m.fold((function(){return p.fold(Nn,Nn,Dn)}),(function(e){return p.fold(e,e,(function(){var t=e(),n=nc(p,t.x,t.y);return Dn(n.left,n.top,t.width,t.height)}))}))),origin:x,preference:f,maxHeightFunction:v,maxWidthFunction:b,lastPlacement:d,transition:h},zc(y,s,l,w)}function _s(e,t){En(e.element,t.element)}function Os(e,t){var n,o=e.components();Ce((n=e).components(),(function(e){return zn(e.element)})),At(n.element),n.syncComponents();var r=G(o,t);Ce(r,(function(t){nf(t),e.getSystem().removeFromWorld(t)})),Ce(t,(function(t){t.getSystem().isConnected()?_s(e,t):(e.getSystem().addToWorld(t),_s(e,t),vn(e.element)&&of(t)),e.syncComponents()}))}function Es(e,t){rf(e,t,En)}function zs(e){nf(e),zn(e.element),e.getSystem().removeFromWorld(e)}function Ts(e){var t=$e(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}));zs(e),t.each((function(e){e.syncComponents()}))}function Ms(e){var t=e.components();Ce(t,zs),At(e.element),e.syncComponents()}function Ds(e,t){af(e,t,En)}function As(e){var t=Ke(e.element);Ce(t,(function(t){e.getByDom(t).each(nf)})),zn(e.element)}function Ns(e,t,n,o){n.get().each((function(t){Ms(e)})),Es(t.getAttachPoint(e),e);var r=e.getSystem().build(o);return Es(e,r),n.set(r),r}function Bs(e,t,n,o){var r=Ns(e,t,n,o);return t.onOpen(e,r),r}function Rs(e,t,n){n.get().each((function(o){Ms(e),Ts(e),t.onClose(e,o),n.clear()}))}function Hs(e,t,n){return n.isOpen()}function Ls(e){var t=uo("Dismissal",mf,e),n={};return n[lf()]={schema:Qn([lo("target")]),onReceive:function(e,n){sf.isOpen(e)&&(sf.isPartOf(e,n.target)||t.isExtraPart(e,n.target)||t.fireEventInstead.fold((function(){return sf.close(e)}),(function(t){return hr(e,t.event)})))}},n}function Vs(e){var t=uo("Reposition",gf,e),n={};return n[ff()]={onReceive:function(e){sf.isOpen(e)&&t.fireEventInstead.fold((function(){return t.doReposition(e)}),(function(t){return hr(e,t.event)}))}},n}function Ps(e,t,n){t.store.manager.onLoad(e,t,n)}function Is(e,t,n){t.store.manager.onUnload(e,t,n)}function Fs(){var e=Ro(null);return pa({set:e.set,get:e.get,isNotSet:function(){return null===e.get()},clear:function(){e.set(null)},readState:function(){return{mode:"memory",value:e.get()}}})}function Us(){var e=Ro({}),t=Ro({});return pa({readState:function(){return{mode:"dataset",dataByValue:e.get(),dataByText:t.get()}},lookup:function(n){return ie(e.get(),n).orThunk((function(){return ie(t.get(),n)}))},update:function(n){var o=e.get(),r=t.get(),i={},a={};Ce(n,(function(e){ie(i[e.value]=e,"meta").each((function(t){ie(t,"text").each((function(t){a[t]=e}))}))})),e.set(_(_({},o),i)),t.set(_(_({},r),a))},clear:function(){e.set({}),t.set({})}})}function js(e,t,n,o){var r=t.store;n.update([o]),r.setValue(e,o),t.onSetValue(e,o)}function Ws(e,t){return Bo(e,{},R(t,(function(t){return n=t.name(),o="Cannot configure "+t.name()+" for "+e,ir(n,n,{tag:"option",process:{}},Xn((function(e){return Po("The field: "+n+" is forbidden. "+o)})));var n,o})).concat([ar("dump",c)]))}function qs(e){return e.dump}function Gs(e,t){return _(_({},Ku(t)),e.dump)}function $s(e){return Ee(e,"uiType")}function Xs(e){return e.fold(ve.some,ve.none,ve.some,ve.some)}function Ks(e){function t(e){return e.name}return e.fold(t,t,t,t)}function Ys(e,t){return function(n){var o=uo("Converting part type",t,n);return e(o)}}function Js(e,t,n,o){return qo(t.defaults(e,n,o),n,{uid:e.partUids[t.name]},t.overrides(e,n,o))}function Qs(e,t){var n={};return Ce(t,(function(t){Xs(t).each((function(t){var o=$f(e,t.pname);n[t.name]=function(n){var r=uo("Part: "+t.name+" in "+e,Ko(t.schema),n);return _(_({},o),{config:n,validated:r})}}))})),n}function Zs(e,t,n){return{uiType:zf(),owner:e,name:t,config:n,validated:{}}}function el(e){return j(e,(function(e){return e.fold(ve.none,ve.some,ve.none,ve.none).map((function(e){return po(e.name,e.schema.concat([Ka(qf())]))})).toArray()}))}function tl(e){return R(e,Ks)}function nl(e,t,n){return o=t,r={},i={},Ce(n,(function(e){e.fold((function(e){r[e.pname]=Of(!0,(function(t,n,o){return e.factory.sketch(Js(t,e,n,o))}))}),(function(e){var t=o.parts[e.name];i[e.name]=u(e.factory.sketch(Js(o,e,t[qf()]),t))}),(function(e){r[e.pname]=Of(!1,(function(t,n,o){return e.factory.sketch(Js(t,e,n,o))}))}),(function(e){r[e.pname]=Ef(!0,(function(t,n,o){return R(t[e.name],(function(n){return e.factory.sketch(qo(e.defaults(t,n,o),n,e.overrides(t,n)))}))}))}))})),{internals:u(r),externals:u(i)};var o,r,i}function ol(e,t,n){return o=ve.some(e),i=(r=t).components,l=te(n,(function(e,t){return o=e,r=!1,{name:u(n=t),required:function(){return o.fold((function(e,t){return e}),(function(e,t){return e}))},used:function(){return r},replace:function(){if(r)throw new Error("Trying to use the same placeholder more than once: "+n);return r=!0,o}};var n,o,r})),a=o,c=r,s=l,f=j(i,(function(e){return _f(a,c,e,s)})),ee(l,(function(e){if(!1===e.used()&&e.required())throw new Error("Placeholder: "+e.name()+" was not found in components list\nNamespace: "+o.getOr("none")+"\nComponents: "+JSON.stringify(r.components,null,2))})),f;var o,r,i,a,c,s,l,f}function rl(e,t,n){var o=t.partUids[n];return e.getSystem().getByUid(o).toOptional()}function il(e,t,n){return rl(e,t,n).getOrDie("Could not find part: "+n)}function al(e,t,n){var o={},r=t.partUids,i=e.getSystem();return Ce(n,(function(e){o[e]=u(i.getByUid(r[e]))})),o}function ul(e,t){var n=e.getSystem();return te(t.partUids,(function(e,t){return u(n.getByUid(e))}))}function cl(e){return ke(e.partUids)}function sl(e,t,n){var o={},r=t.partUids,i=e.getSystem();return Ce(n,(function(e){o[e]=u(i.getByUid(r[e]).getOrDie())})),o}function ll(e,t){return cr(R(tl(t),(function(t){return{key:t,value:e+"-"+t}})))}function fl(e){return ir("partUids","partUids",qn((function(t){return ll(t.uid,e)})),Jo())}function dl(e,t,n,o,r){var i;return uo(e+" [SpecSchema]",Qn((i=r,(0<o.length?[po("parts",o)]:[]).concat([lo("uid"),Oo("dom",{}),Oo("components",[]),Ka("originalSpec"),Oo("debug.sketcher",{})]).concat(i)).concat(t)),n)}function ml(e,t,n,o,r){var i=Kf(r),a=dl(e,t,i,el(n),[fl(n)]),u=nl(0,a,n);return o(a,ol(e,a,u.internals()),i,u.externals())}function gl(e){var t=uo("Sketcher for "+e.name,Yf,e),n=te(t.apis,Lr),o=te(t.extraApis,Rr);return _(_({name:t.name,configFields:t.configFields,sketch:function(e){return n=t.name,o=t.configFields,(0,t.factory)(dl(n,o,r=Kf(e),[],[]),r);var n,o,r}},n),o)}function hl(e){var t=uo("Sketcher for "+e.name,Jf,e),n=Qs(t.name,t.partFields),o=te(t.apis,Lr),r=te(t.extraApis,Rr);return _(_({name:t.name,partFields:t.partFields,configFields:t.configFields,sketch:function(e){return ml(t.name,t.configFields,t.partFields,t.factory,e)},parts:n},o),r)}function pl(e){return"input"===Ne(e)&&"radio"!==it(e,"type")||"textarea"===Ne(e)}function vl(e,t,n){(t.disabled()?td:nd)(e,t)}function bl(e,t){return!0===t.useNative&&we(ed,Ne(e.element))}function yl(e,t){return bl(e,t)?ut(e.element,"disabled"):"true"===it(e.element,"aria-disabled")}function xl(e,t,n,o){var r=cs(e.element,"."+t.highlightClass);Ce(r,(function(n){A(o,(function(e){return e.element===n}))||(qr(n,t.highlightClass),e.getSystem().getByDom(n).each((function(n){t.onDehighlight(e,n),hr(n,Ki())})))}))}function wl(e,t,n,o){xl(e,t,0,[o]),Vl(0,t,0,o)||(Wr(o.element,t.highlightClass),t.onHighlight(e,o),hr(o,Xi()))}function Cl(e,t,n,o){var r=cs(e.element,"."+t.itemClass);return F(r,(function(e){return Gr(e,t.highlightClass)})).bind((function(t){var n=Ja(t,o,0,r.length-1);return e.getSystem().getByDom(r[n]).toOptional()}))}function Sl(e,t,n){var o=q(e.slice(0,t)),r=q(e.slice(t+1));return I(o.concat(r),n)}function kl(e,t,n){return I(q(e.slice(0,t)),n)}function _l(e,t,n){var o=e.slice(0,t);return I(e.slice(t+1).concat(o),n)}function Ol(e,t,n){return I(e.slice(t+1),n)}function El(e){return function(t){var n=t.raw;return we(e,n.which)}}function zl(e){return function(t){return W(e,(function(e){return e(t)}))}}function Tl(e){return!0===e.raw.shiftKey}function Ml(e){return!0===e.raw.ctrlKey}function Dl(e,t){return{matches:e,classification:t}}function Al(e,t,n){t.exists((function(e){return n.exists((function(t){return Fe(t,e)}))}))||pr(e,Wi(),{prevFocus:t,newFocus:n})}function Nl(){function e(e){return xu(e.element)}return{get:e,set:function(t,n){var o=e(t);t.getSystem().triggerFocus(n,t.element),Al(t,o,e(t))}}}function Bl(){function e(e){return ud.getHighlighted(e).map((function(e){return e.element}))}return{get:e,set:function(t,n){var o=e(t);t.getSystem().getByDom(n).fold(i,(function(e){ud.highlight(t,e)}));var r=e(t);Al(t,o,r)}}}function Rl(e,t,n,o,r,i){var a=i.map(An);return ef(e,t,n,o,r,a)}function Hl(e,t,n){var o,r,i=t.getAttachPoint(e);ft(e.element,"position",tf.getMode(i)),r=t.cloakVisibilityAttr,ht((o=e).element,"visibility").fold((function(){ct(o.element,r)}),(function(e){ot(o.element,r,e)})),ft(o.element,"visibility","hidden")}function Ll(e,t,n){var o,r,i,a=e.element;A(["top","left","right","bottom"],(function(e){return ht(a,e).isSome()}))||vt(e.element,"position"),r="visibility",i=t.cloakVisibilityAttr,at((o=e).element,i).fold((function(){return vt(o.element,r)}),(function(e){return ft(o.element,r,e)}))}function Vl(e,t,n,o){return Gr(o.element,t.highlightClass)}function Pl(e,t,n){return Ta(e.element,"."+t.itemClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}function Il(e,t,n){var o=cs(e.element,"."+t.itemClass);return(0<o.length?ve.some(o[o.length-1]):ve.none()).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}function Fl(e,t,n){return ce(R(cs(e.element,"."+t.itemClass),(function(t){return e.getSystem().getByDom(t).toOptional()})))}is.ltr,is.rtl;var Ul,jl,Wl,ql,Gl=(Ul=Gt,{get:function(e){if(!Ul(e))throw new Error("Can only get text value of a text node");return jl(e).getOr("")},getOption:jl=function(e){return Ul(e)?ve.from(e.dom.nodeValue):ve.none()},set:function(e,t){if(!Ul(e))throw new Error("Can only set raw text value of a text node");e.dom.nodeValue=t}}),$l=["img","br"],Xl=[yo("getSelection"),lo("root"),yo("bubble"),Nc(),Oo("overrides",{}),Oo("showAbove",!1),Xa("placement",(function(e,t,n){var o=Ge(t.root).dom,r=Pc(e,0,t);return Fc(gs(o,t).bind((function(e){return(0<(t=Gc(o,rs.exactFromRange(e)).getBoundingClientRect()).width||0<t.height?ve.some(t).map(Wc):ve.none()).orThunk((function(){var t=Ae.fromText("\ufeff");zt(e.start,t);var n=fs(o,rs.exact(t,0,t,1));return zn(t),n})).bind((function(e){return Ic(e.left,e.top,e.width,e.height)}));var t})),r,t,n,gs(o,t).bind((function(e){return qt(e.start)?ve.some(e.start):fn(e.start)})).getOr(e.element))}))],Kl="link-layout",Yl=co("type",{selection:Xl,node:Zc,hotspot:Xc,submenu:[lo("item"),Nc(),Oo("overrides",{}),Xa("placement",(function(e,t,n){var o=Ou(n,t.item.element),r=Bc(e.element,t,Cs(),Ss(),Cs(),Ss(),ve.none());return ve.some(Mc({anchorBox:o,bubble:hc(),overrides:t.overrides,layouts:r,placer:ve.none()}))}))],makeshift:Kc}),Jl=[bo("classes",Zo),Mo("mode","all",["all","layout","placement"])],Ql=[Oo("useFixed",C),yo("getBounds")],Zl=[fo("anchor",Yl),_o("transition",Jl)],ef=function(e,t,n,o,r,i){var a=uo("placement.info",Ko(Zl),r),c=a.anchor,s=o.element,l=n.get(o.uid);wu((function(){ft(s,"position","fixed");var r=ht(s,"visibility");ft(s,"visibility","hidden");var f,d,m,g,h=t.useFixed()?(g=document.documentElement,yc(0,0,g.clientWidth,g.clientHeight)):(d=St((f=e).element),m=f.element.dom.getBoundingClientRect(),bc(d.left,d.top,m.width,m.height)),p=c.placement,v=i.map(u).or(t.getBounds);p(e,c,h).each((function(t){var r=t.placer.getOr(ks)(e,h,t,v,o,l,a.transition);n.set(o.uid,r)})),r.fold((function(){vt(s,"visibility")}),(function(e){ft(s,"visibility",e)})),ht(s,"left").isNone()&&ht(s,"top").isNone()&&ht(s,"right").isNone()&&ht(s,"bottom").isNone()&&ue(ht(s,"position"),"fixed")&&vt(s,"position")}),s)},tf=gu({fields:Ql,name:"positioning",active:ec,apis:Object.freeze({__proto__:null,position:function(e,t,n,o,r){Rl(e,t,n,o,r,ve.none())},positionWithin:Rl,positionWithinBounds:ef,getMode:function(e,t,n){return t.useFixed()?"fixed":"absolute"},reset:function(e,t,n,o){var r=o.element;Ce(["position","left","right","top","bottom"],(function(e){return vt(r,e)})),ct(r,xc),n.clear(o.uid)}}),state:Object.freeze({__proto__:null,init:function(){var e={};return pa({readState:function(){return e},clear:function(t){p(t)?delete e[t]:e={}},set:function(t,n){e[t]=n},get:function(t){return ie(e,t)}})}})}),nf=function(e){hr(e,Fi());var t=e.components();Ce(t,nf)},of=function(e){var t=e.components();Ce(t,of),hr(e,Ii())},rf=function(e,t,n){e.getSystem().addToWorld(t),n(e.element,t.element),vn(e.element)&&of(t),e.syncComponents()},af=function(e,t,n){n(e,t.element);var o=Ke(t.element);Ce(o,(function(e){t.getByDom(e).each(of)}))},uf=Object.freeze({__proto__:null,cloak:Hl,decloak:Ll,open:Bs,openWhileCloaked:function(e,t,n,o,r){Hl(e,t),Bs(e,t,n,o),r(),Ll(e,t)},close:Rs,isOpen:Hs,isPartOf:function(e,t,n,o){return Hs(0,0,n)&&n.get().exists((function(n){return t.isPartOf(e,n,o)}))},getState:function(e,t,n){return n.get()},setContent:function(e,t,n,o){return n.get().map((function(){return Ns(e,t,n,o)}))}}),cf=Object.freeze({__proto__:null,events:function(e,t){return Ji([Cr(Ni(),(function(n,o){Rs(n,e,t)}))])}}),sf=gu({fields:[Wa("onOpen"),Wa("onClose"),lo("isPartOf"),lo("getAttachPoint"),Oo("cloakVisibilityAttr","data-precloak-visibility")],name:"sandboxing",active:cf,apis:uf,state:Object.freeze({__proto__:null,init:function(){var e=uc(),t=u("not-implemented");return pa({readState:t,isOpen:e.isSet,clear:e.clear,set:e.set,get:e.get})}})}),lf=u("dismiss.popups"),ff=u("reposition.popups"),df=u("mouse.released"),mf=Qn([Oo("isExtraPart",C),_o("fireEventInstead",[Oo("event",Ui())])]),gf=Qn([_o("fireEventInstead",[Oo("event",ji())]),ho("doReposition")]),hf=Object.freeze({__proto__:null,onLoad:Ps,onUnload:Is,setValue:function(e,t,n,o){t.store.manager.setValue(e,t,n,o)},getValue:function(e,t,n){return t.store.manager.getValue(e,t,n)},getState:function(e,t,n){return n}}),pf=Object.freeze({__proto__:null,events:function(e,t){var n=e.resetOnDom?[Qi((function(n,o){Ps(n,e,t)})),Zi((function(n,o){Is(n,e,t)}))]:[du(e,t,Ps)];return Ji(n)}}),vf=Object.freeze({__proto__:null,memory:Fs,dataset:Us,manual:function(){return pa({readState:i})},init:function(e){return e.store.manager.state(e)}}),bf=[yo("initialValue"),lo("getFallbackEntry"),lo("getDataKey"),lo("setValue"),Xa("manager",{setValue:js,getValue:function(e,t,n){var o=t.store,r=o.getDataKey(e);return n.lookup(r).getOrThunk((function(){return o.getFallbackEntry(r)}))},onLoad:function(e,t,n){t.store.initialValue.each((function(o){js(e,t,n,o)}))},onUnload:function(e,t,n){n.clear()},state:Us})],yf=[lo("getValue"),Oo("setValue",i),yo("initialValue"),Xa("manager",{setValue:function(e,t,n,o){t.store.setValue(e,o),t.onSetValue(e,o)},getValue:function(e,t,n){return t.store.getValue(e)},onLoad:function(e,t,n){t.store.initialValue.each((function(n){t.store.setValue(e,n)}))},onUnload:i,state:ha.init})],xf=gu({fields:[Eo("store",{mode:"memory"},co("mode",{memory:[yo("initialValue"),Xa("manager",{setValue:function(e,t,n,o){n.set(o),t.onSetValue(e,o)},getValue:function(e,t,n){return n.get()},onLoad:function(e,t,n){t.store.initialValue.each((function(e){n.isNotSet()&&n.set(e)}))},onUnload:function(e,t,n){n.clear()},state:Fs})],manual:yf,dataset:bf})),Wa("onSetValue"),Oo("resetOnDom",!1)],name:"representing",active:pf,apis:hf,extra:{setValueFrom:function(e,t){var n=xf.getValue(t);xf.setValue(e,n)}},state:vf}),wf=Ws,Cf=Gs,Sf="placeholder",kf=Ho([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),_f=function(e,t,n,o){return r=e,a=o,($s(i=n)&&i.uiType===Sf?(l=i,f=a,(s=r).exists((function(e){return e!==l.owner}))?kf.single(!0,u(l)):ie(f,l.name).fold((function(){throw new Error("Unknown placeholder component: "+l.name+"\nKnown: ["+ke(f)+"]\nNamespace: "+s.getOr("none")+"\nSpec: "+JSON.stringify(l,null,2))}),(function(e){return e.replace()}))):kf.single(!1,u(i))).fold((function(r,i){var a=$s(n)?i(t,n.config,n.validated):i(t),u=j(ie(a,"components").getOr([]),(function(n){return _f(e,t,n,o)}));return[_(_({},a),{components:u})]}),(function(e,o){if($s(n)){var r=o(t,n.config,n.validated);return n.validated.preprocess.getOr(c)(r)}return o(t)}));var r,i,a,s,l,f},Of=kf.single,Ef=kf.multiple,zf=u(Sf),Tf=Ho([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),Mf=Oo("factory",{sketch:c}),Df=Oo("schema",[]),Af=lo("name"),Nf=ir("pname","pname",jn((function(e){return"<alloy."+Ar(e.name)+">"})),Jo()),Bf=ar("schema",(function(){return[yo("preprocess")]})),Rf=Oo("defaults",u({})),Hf=Oo("overrides",u({})),Lf=Ko([Mf,Df,Af,Nf,Rf,Hf]),Vf=Ko([Mf,Df,Af,Rf,Hf]),Pf=Ko([Mf,Df,Af,Nf,Rf,Hf]),If=Ko([Mf,Bf,Af,lo("unit"),Nf,Rf,Hf]),Ff=Ys(Tf.required,Lf),Uf=Ys(Tf.external,Vf),jf=Ys(Tf.optional,Pf),Wf=Ys(Tf.group,If),qf=u("entirety"),Gf=Object.freeze({__proto__:null,required:Ff,external:Uf,optional:jf,group:Wf,asNamedPart:Xs,name:Ks,asCommon:function(e){return e.fold(c,c,c,c)},original:qf}),$f=function(e,t){return{uiType:zf(),owner:e,name:t}},Xf=Object.freeze({__proto__:null,generate:Qs,generateOne:Zs,schemas:el,names:tl,substitutes:nl,components:ol,defaultUids:ll,defaultUidsSchema:fl,getAllParts:ul,getAllPartNames:cl,getPart:rl,getPartOrDie:il,getParts:al,getPartsOrDie:sl}),Kf=function(e){return Ee(e,"uid")?e:_(_({},e),{uid:la("uid")})},Yf=Qn([lo("name"),lo("factory"),lo("configFields"),Oo("apis",{}),Oo("extraApis",{})]),Jf=Qn([lo("name"),lo("factory"),lo("configFields"),lo("partFields"),Oo("apis",{}),Oo("extraApis",{})]),Qf=Object.freeze({__proto__:null,getCurrent:function(e,t,n){return t.find(e)}}),Zf=gu({fields:[lo("find")],name:"composing",apis:Qf}),ed=["input","button","textarea","select"],td=function(e,t,n){t.disableClass.each((function(t){Wr(e.element,t)})),(bl(e,t)?function(e){ot(e.element,"disabled","disabled")}:function(e){ot(e.element,"aria-disabled","true")})(e),t.onDisabled(e)},nd=function(e,t,n){t.disableClass.each((function(t){qr(e.element,t)})),(bl(e,t)?function(e){ct(e.element,"disabled")}:function(e){ot(e.element,"aria-disabled","false")})(e),t.onEnabled(e)},od=Object.freeze({__proto__:null,enable:nd,disable:td,isDisabled:yl,onLoad:vl,set:function(e,t,n,o){(o?td:nd)(e,t)}}),rd=Object.freeze({__proto__:null,exhibit:function(e,t){return Pr({classes:t.disabled()?t.disableClass.toArray():[]})},events:function(e,t){return Ji([xr(Ti(),(function(t,n){return yl(t,e)})),du(e,t,vl)])}}),id=gu({fields:[Ao("disabled",C),Oo("useNative",!0),yo("disableClass"),Wa("onDisabled"),Wa("onEnabled")],name:"disabling",active:rd,apis:od}),ad=Object.freeze({__proto__:null,dehighlightAll:function(e,t,n){return xl(e,t,0,[])},dehighlight:function(e,t,n,o){Vl(0,t,0,o)&&(qr(o.element,t.highlightClass),t.onDehighlight(e,o),hr(o,Ki()))},highlight:wl,highlightFirst:function(e,t,n){Pl(e,t).each((function(n){wl(e,t,0,n)}))},highlightLast:function(e,t,n){Il(e,t).each((function(n){wl(e,t,0,n)}))},highlightAt:function(e,t,n,o){var r,i,a;i=o,a=cs((r=e).element,"."+t.itemClass),ve.from(a[i]).fold((function(){return Hn.error(new Error("No element found with index "+i))}),r.getSystem().getByDom).fold((function(e){throw e}),(function(n){wl(e,t,0,n)}))},highlightBy:function(e,t,n,o){I(Fl(e,t),o).each((function(n){wl(e,t,0,n)}))},isHighlighted:Vl,getHighlighted:function(e,t,n){return Ta(e.element,"."+t.highlightClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},getFirst:Pl,getLast:Il,getPrevious:function(e,t,n){return Cl(e,t,0,-1)},getNext:function(e,t,n){return Cl(e,t,0,1)},getCandidates:Fl}),ud=gu({fields:[lo("highlightClass"),lo("itemClass"),Wa("onHighlight"),Wa("onDehighlight")],name:"highlighting",apis:ad}),cd=[8],sd=[9],ld=[13],fd=[27],dd=[32],md=[37],gd=[38],hd=[39],pd=[40],vd=x(Tl);function bd(e,t,n,o,r){function i(e,t,n,o,r){var i=n(e,t,o,r),a=t.event;return I(i,(function(e){return e.matches(a)})).map((function(e){return e.classification})).bind((function(n){return n(e,t,o,r)}))}var a={schema:function(){return e.concat([Oo("focusManager",Nl()),Eo("focusInside","onFocus",oo((function(e){return we(["onFocus","onEnterOrSpace","onApi"],e)?Hn.value(e):Hn.error("Invalid value for focusInside")}))),Xa("handler",a),Xa("state",t),Xa("sendFocusIn",r)])},processKey:i,toEvents:function(e,t){var a=e.focusInside!==Wl.OnFocusMode?ve.none():r(e).map((function(n){return Cr(_i(),(function(o,r){n(o,e,t),r.stop()}))})),u=[Cr(hi(),(function(o,a){i(o,a,n,e,t).fold((function(){var n=o,i=a,u=El(dd.concat(ld))(i.event);e.focusInside===Wl.OnEnterOrSpaceMode&&u&&dr(n,i)&&r(e).each((function(o){o(n,e,t),i.stop()}))}),(function(e){a.stop()}))})),Cr(pi(),(function(n,r){i(n,r,o,e,t).each((function(e){r.stop()}))}))];return Ji(a.toArray().concat(u))}};return a}function yd(e){function t(e,t){return 0<xt(e.visibilitySelector.bind((function(e){return Ma(t,e)})).getOr(t))}function n(e,n,o){var r=n,i=L(cs(e.element,r.selector),(function(e){return t(r,e)}));ve.from(i[r.firstTabstop]).each((function(t){n.focusManager.set(e,t)}))}function o(e,n,o,r){var i,a=cs(e.element,o.selector);return(i=o).focusManager.get(e).bind((function(e){return Ma(e,i.selector)})).bind((function(n){return F(a,y(Fe,n)).bind((function(n){return i=e,u=o,r(a,n,(function(e){return t(n=u,o=e)&&n.useTabstopAt(o);var n,o})).fold((function(){return u.cyclic?ve.some(!0):ve.none()}),(function(e){return u.focusManager.set(i,e),ve.some(!0)}));var i,u}))}))}var r=[yo("onEscape"),yo("onEnter"),Oo("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Oo("firstTabstop",0),Oo("useTabstopAt",S),yo("visibilitySelector")].concat([e]),i=u([Dl(zl([Tl,El(sd)]),(function(e,t,n){return o(e,0,n,n.cyclic?Sl:kl)})),Dl(El(sd),(function(e,t,n){return o(e,0,n,n.cyclic?_l:Ol)})),Dl(El(fd),(function(e,t,n){return n.onEscape.bind((function(n){return n(e,t)}))})),Dl(zl([vd,El(ld)]),(function(e,t,n){return n.onEnter.bind((function(n){return n(e,t)}))}))]),a=u([]);return bd(r,ha.init,i,a,(function(){return ve.some(n)}))}function xd(e,t,n){return pl(n)&&El(dd)(t.event)?ve.none():(br(e,n,Ti()),ve.some(!0))}function wd(e,t){return ve.some(!0)}function Cd(e,t,n){return n.execute(e,t,e.element)}function Sd(){var e=uc();return pa({readState:function(){return e.get().map((function(e){return{numRows:String(e.numRows),numColumns:String(e.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:function(t,n){e.set({numRows:t,numColumns:n})},getNumRows:function(){return e.get().map((function(e){return e.numRows}))},getNumColumns:function(){return e.get().map((function(e){return e.numColumns}))}})}function kd(e){return function(t,n,o,r){var i=e(t.element);return qm(i,t,n,o,r)}}function _d(e,t){return kd(pc(e,t))}function Od(e,t){return kd(pc(t,e))}function Ed(e){return function(t,n,o,r){return qm(e,t,n,o,r)}}function zd(e){return!((t=e.dom).offsetWidth<=0&&t.offsetHeight<=0);var t}function Td(e,t,n){var o,r=L(cs(e,n),zd);return F(o=r,(function(e){return Fe(e,t)})).map((function(e){return{index:e,candidates:o}}))}function Md(e,t){return F(e,(function(e){return Fe(t,e)}))}function Dd(e,t,n,o){return o(Math.floor(t/n),t%n).bind((function(t){var o=t.row*n+t.column;return 0<=o&&o<e.length?ve.some(e[o]):ve.none()}))}function Ad(e,t,n,o,r){return Dd(e,t,o,(function(t,i){var a=t===n-1?e.length-t*o:o,u=Ja(i,r,0,a-1);return ve.some({row:t,column:u})}))}function Nd(e,t,n,o,r){return Dd(e,t,o,(function(t,i){var a=Ja(t,r,0,n-1),u=a===n-1?e.length-a*o:o,c=Vu(i,0,u-1);return ve.some({row:a,column:c})}))}function Bd(e,t,n){Ta(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))}function Rd(e){return function(t,n,o,r){return Td(t,n,o.selector).bind((function(t){return e(t.candidates,t.index,r.getNumRows().getOr(o.initSize.numRows),r.getNumColumns().getOr(o.initSize.numColumns))}))}}function Hd(e,t,n){return n.captureTab?ve.some(!0):ve.none()}function Ld(e,t,n,o){var r=function(e,t,n){var i,a=Ja(t,o,0,n.length-1);return a===e?ve.none():"button"===Ne(i=n[a])&&"disabled"===it(i,"disabled")?r(e,a,n):ve.from(n[a])};return Td(e,n,t).bind((function(e){var t=e.index,n=e.candidates;return r(t,t,n)}))}function Vd(e,t,n){return(o=n).focusManager.get(e).bind((function(e){return Ma(e,o.selector)})).bind((function(o){return n.execute(e,t,o)}));var o}function Pd(e,t,n){t.getInitial(e).orThunk((function(){return Ta(e.element,t.selector)})).each((function(n){t.focusManager.set(e,n)}))}function Id(e,t,n){return Ld(e,n.selector,t,-1)}function Fd(e,t,n){return Ld(e,n.selector,t,1)}function Ud(e){return function(t,n,o,r){return e(t,n,o,r).bind((function(){return o.executeOnMove?Vd(t,n,o):ve.some(!0)}))}}function jd(e,t,n){return n.onEscape(e,t)}function Wd(e,t,n){return ve.from(e[t]).bind((function(e){return ve.from(e[n]).map((function(e){return{rowIndex:t,columnIndex:n,cell:e}}))}))}function qd(e,t,n,o){return Wd(e,t,Ja(n,o,0,e[t].length-1))}function Gd(e,t,n,o){var r=Ja(n,o,0,e.length-1),i=e[r].length;return Wd(e,r,Vu(t,0,i-1))}function $d(e,t,n,o){var r=e[t].length;return Wd(e,t,Vu(n+o,0,r-1))}function Xd(e,t,n,o){var r=Vu(n+o,0,e.length-1),i=e[r].length;return Wd(e,r,Vu(t,0,i-1))}function Kd(e,t,n){t.previousSelector(e).orThunk((function(){var n=t.selectors;return Ta(e.element,n.cell)})).each((function(n){t.focusManager.set(e,n)}))}function Yd(e,t){return function(n,o,r){var i=r.cycles?e:t;return Ma(o,r.selectors.row).bind((function(e){return Md(cs(e,r.selectors.cell),o).bind((function(t){var o=cs(n,r.selectors.row);return Md(o,e).bind((function(e){var n,a=(n=r,R(o,(function(e){return cs(e,n.selectors.cell)})));return i(a,e,t).map((function(e){return e.cell}))}))}))}))}}function Jd(e,t,n){return n.focusManager.get(e).bind((function(o){return n.execute(e,t,o)}))}function Qd(e,t,n){Ta(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))}function Zd(e,t,n){return Ld(e,n.selector,t,-1)}function em(e,t,n){return Ld(e,n.selector,t,1)}function tm(e,t,n,o){var r=e.getSystem().build(o);rf(e,r,n)}function nm(e,t,n,o){I(_g(e),(function(e){return Fe(o.element,e.element)})).each(Ts)}function om(e,t,n,o,r){var i=_g(e);return ve.from(i[o]).map((function(t){return nm(e,0,0,t),r.each((function(t){tm(e,0,(function(e,t){var n,r=t;Ye(n=e,o).fold((function(){En(n,r)}),(function(e){zt(e,r)}))}),t)})),t}))}function rm(e,t){var n,o;return{key:e,value:{config:{},me:(n=e,o=Ji(t),gu({fields:[lo("enabled")],name:n,active:{events:u(o)}})),configAsRaw:u({}),initialConfig:{},state:ha}}}function im(e,t){t.ignore||(vu(e.element),t.onFocus(e))}function am(e,t,n){var o=t.aria;o.update(e,o,n.get())}function um(e,t,n){t.toggleClass.each((function(t){(n.get()?Wr:qr)(e.element,t)}))}function cm(e,t,n){Vm(e,t,n,!n.get())}function sm(e,t,n){n.set(!0),um(e,t,n),am(e,t,n)}function lm(e,t,n){n.set(!1),um(e,t,n),am(e,t,n)}function fm(e,t,n){Vm(e,t,n,t.selected)}function dm(){function e(e,t){t.stop(),vr(e)}return[Cr(yi(),e),Cr(Di(),e),Er(ri()),Er(ci())]}function mm(e){return Ji(U([e.map((function(e){return ta((function(t,n){e(t),n.stop()}))})).toArray(),dm()]))}function gm(e){(xu(e.element).isNone()||Tg.isFocused(e))&&(Tg.isFocused(e)||Tg.focus(e),pr(e,Ng,{item:e}))}function hm(e){pr(e,Bg,{item:e})}function pm(e,t){return e.x+e.width/2-t.width/2}function vm(e,t){return e.x+e.width-t.width}function bm(e,t){return e.y+e.height-t.height}function ym(e,t){return e.y+e.height/2-t.height/2}function xm(e,t,n){return Ya(vm(e,t),bm(e,t),n.insetSouthwest(),Nu(),"southwest",Qa(e,{right:0,bottom:3}),Jg)}function wm(e,t,n){return Ya(e.x,bm(e,t),n.insetSoutheast(),Au(),"southeast",Qa(e,{left:1,bottom:3}),Jg)}function Cm(e,t,n){return Ya(vm(e,t),e.y,n.insetNorthwest(),Du(),"northwest",Qa(e,{right:0,top:2}),Jg)}function Sm(e,t,n){return Ya(e.x,e.y,n.insetNortheast(),Mu(),"northeast",Qa(e,{left:1,top:2}),Jg)}function km(e,t,n){return Ya(vm(e,t),ym(e,t),n.insetEast(),Lu(),"east",Qa(e,{right:0}),Jg)}function _m(e,t,n){return Ya(e.x,ym(e,t),n.insetWest(),Hu(),"west",Qa(e,{left:1}),Jg)}function Om(e){switch(e){case"north":return Qg;case"northeast":return Sm;case"northwest":return Cm;case"south":return Zg;case"southeast":return wm;case"southwest":return xm;case"east":return km;case"west":return _m}}function Em(e,t,n,o,r){return oc(o).map(Om).getOr(Qg)(e,t,n,o,r)}function zm(e){switch(e){case"north":return Zg;case"northeast":return wm;case"northwest":return xm;case"south":return Qg;case"southeast":return Sm;case"southwest":return Cm;case"east":return _m;case"west":return km}}function Tm(e,t,n,o,r){return oc(o).map(zm).getOr(Qg)(e,t,n,o,r)}function Mm(e){var t=void 0!==e.uid&&ae(e,"uid")?e.uid:la("memento");return{get:function(e){return e.getSystem().getByUid(t).getOrDie()},getOpt:function(e){return e.getSystem().getByUid(t).toOptional()},asSpec:function(){return _(_({},e),{uid:t})}}}function Dm(e){return function(){return ie(e,rh).getOr("!not found!")}}function Am(e,t){var n,o=e.toLowerCase();if(nh.isRtl()){var r=Me(n=o,"-rtl")?n:n+"-rtl";return Ee(t,r)?r:o}return o}function Nm(e,t){return ie(t,Am(e,t))}function Bm(e,t){var n=t();return Nm(e,n).getOrThunk(Dm(n))}function Rm(){return rm("add-focusable",[Qi((function(e){var t,n;t=e.element,n=function(e){return Pe(e,"svg")},I(t.dom.childNodes,(function(e){return n(Ae.fromDom(e))})).map(Ae.fromDom).each((function(e){return ot(e,"focusable","false")}))}))])}function Hm(e,t,n,o){var r,i,a,u=(a=t,nh.isRtl()&&Ee(oh,a)?["tox-icon--flip"]:[]),c=ie(n,Am(t,n)).or(o).getOrThunk(Dm(n));return{dom:{tag:e.tag,attributes:null!==(r=e.attributes)&&void 0!==r?r:{},classes:e.classes.concat(u),innerHtml:c},behaviours:Ku(E(E([],null!==(i=e.behaviours)&&void 0!==i?i:[],!0),[Rm()],!1))}}function Lm(e,t,n,o){return void 0===o&&(o=ve.none()),Hm(t,e,n(),o)}function Vm(e,t,n,o){(o?sm:lm)(e,t,n)}function Pm(e,t,n){ot(e.element,"aria-expanded",n)}function Im(e){return"prepared"===e.type?ve.some(e.menu):ve.none()}(ql=Wl=Wl||{}).OnFocusMode="onFocus",ql.OnEnterOrSpaceMode="onEnterOrSpace",ql.OnApiMode="onApi";var Fm=yd(ar("cyclic",C)),Um=yd(ar("cyclic",S)),jm=bd([Oo("execute",xd),Oo("useSpace",!1),Oo("useEnter",!0),Oo("useControlEnter",!1),Oo("useDown",!1)],ha.init,(function(e,t,n,o){var r=n.useSpace&&!pl(e.element)?dd:[],i=n.useEnter?ld:[],a=n.useDown?pd:[];return[Dl(El(r.concat(i).concat(a)),Cd)].concat(n.useControlEnter?[Dl(zl([Ml,El(ld)]),Cd)]:[])}),(function(e,t,n,o){return n.useSpace&&!pl(e.element)?[Dl(El(dd),wd)]:[]}),(function(){return ve.none()})),Wm=Object.freeze({__proto__:null,flatgrid:Sd,init:function(e){return e.state(e)}}),qm=function(e,t,n,o,r){return o.focusManager.get(t).bind((function(n){return e(t.element,n,o,r)})).map((function(e){return o.focusManager.set(t,e),!0}))},Gm=Ed,$m=Ed,Xm=Ed,Km=Rd((function(e,t,n,o){return Ad(e,t,n,o,-1)})),Ym=Rd((function(e,t,n,o){return Ad(e,t,n,o,1)})),Jm=Rd((function(e,t,n,o){return Nd(e,t,n,o,-1)})),Qm=Rd((function(e,t,n,o){return Nd(e,t,n,o,1)})),Zm=bd([lo("selector"),Oo("execute",xd),qa("onEscape"),Oo("captureTab",!1),zu()],Sd,u([Dl(El(md),_d(Km,Ym)),Dl(El(hd),Od(Km,Ym)),Dl(El(gd),Gm(Jm)),Dl(El(pd),$m(Qm)),Dl(zl([Tl,El(sd)]),Hd),Dl(zl([vd,El(sd)]),Hd),Dl(El(fd),(function(e,t,n){return n.onEscape(e,t)})),Dl(El(dd.concat(ld)),(function(e,t,n,o){return(r=n).focusManager.get(e).bind((function(e){return Ma(e,r.selector)})).bind((function(o){return n.execute(e,t,o)}));var r}))]),u([Dl(El(dd),wd)]),(function(){return ve.some(Bd)})),eg=[lo("selector"),Oo("getInitial",ve.none),Oo("execute",xd),qa("onEscape"),Oo("executeOnMove",!1),Oo("allowVertical",!0)],tg=u([Dl(El(dd),wd)]),ng=bd(eg,ha.init,(function(e,t,n,o){var r=md.concat(n.allowVertical?gd:[]),i=hd.concat(n.allowVertical?pd:[]);return[Dl(El(r),Ud(_d(Id,Fd))),Dl(El(i),Ud(Od(Id,Fd))),Dl(El(ld),Vd),Dl(El(dd),Vd),Dl(El(fd),jd)]}),tg,(function(){return ve.some(Pd)})),og=[po("selectors",[lo("row"),lo("cell")]),Oo("cycles",!0),Oo("previousSelector",ve.none),Oo("execute",xd)],rg=Yd((function(e,t,n){return qd(e,t,n,-1)}),(function(e,t,n){return $d(e,t,n,-1)})),ig=Yd((function(e,t,n){return qd(e,t,n,1)}),(function(e,t,n){return $d(e,t,n,1)})),ag=Yd((function(e,t,n){return Gd(e,n,t,-1)}),(function(e,t,n){return Xd(e,n,t,-1)})),ug=Yd((function(e,t,n){return Gd(e,n,t,1)}),(function(e,t,n){return Xd(e,n,t,1)})),cg=u([Dl(El(md),_d(rg,ig)),Dl(El(hd),Od(rg,ig)),Dl(El(gd),Gm(ag)),Dl(El(pd),$m(ug)),Dl(El(dd.concat(ld)),(function(e,t,n){return xu(e.element).bind((function(o){return n.execute(e,t,o)}))}))]),sg=u([Dl(El(dd),wd)]),lg=bd(og,ha.init,cg,sg,(function(){return ve.some(Kd)})),fg=[lo("selector"),Oo("execute",xd),Oo("moveOnTab",!1)],dg=u([Dl(El(gd),Xm(Zd)),Dl(El(pd),Xm(em)),Dl(zl([Tl,El(sd)]),(function(e,t,n,o){return n.moveOnTab?Xm(Zd)(e,t,n,o):ve.none()})),Dl(zl([vd,El(sd)]),(function(e,t,n,o){return n.moveOnTab?Xm(em)(e,t,n,o):ve.none()})),Dl(El(ld),Jd),Dl(El(dd),Jd)]),mg=u([Dl(El(dd),wd)]),gg=bd(fg,ha.init,dg,mg,(function(){return ve.some(Qd)})),hg=bd([qa("onSpace"),qa("onEnter"),qa("onShiftEnter"),qa("onLeft"),qa("onRight"),qa("onTab"),qa("onShiftTab"),qa("onUp"),qa("onDown"),qa("onEscape"),Oo("stopSpaceKeyup",!1),yo("focusIn")],ha.init,(function(e,t,n){return[Dl(El(dd),n.onSpace),Dl(zl([vd,El(ld)]),n.onEnter),Dl(zl([Tl,El(ld)]),n.onShiftEnter),Dl(zl([Tl,El(sd)]),n.onShiftTab),Dl(zl([vd,El(sd)]),n.onTab),Dl(El(gd),n.onUp),Dl(El(pd),n.onDown),Dl(El(md),n.onLeft),Dl(El(hd),n.onRight),Dl(El(dd),n.onSpace),Dl(El(fd),n.onEscape)]}),(function(e,t,n){return n.stopSpaceKeyup?[Dl(El(dd),wd)]:[]}),(function(e){return e.focusIn})),pg=Fm.schema(),vg=Um.schema(),bg=ng.schema(),yg=Zm.schema(),xg=lg.schema(),wg=jm.schema(),Cg=gg.schema(),Sg=hg.schema(),kg=hu({branchKey:"mode",branches:Object.freeze({__proto__:null,acyclic:pg,cyclic:vg,flow:bg,flatgrid:yg,matrix:xg,execution:wg,menu:Cg,special:Sg}),name:"keying",active:{events:function(e,t){return e.handler.toEvents(e,t)}},apis:{focusIn:function(e,t,n){t.sendFocusIn(t).fold((function(){e.getSystem().triggerFocus(e.element,e.element)}),(function(o){o(e,t,n)}))},setGridSize:function(e,t,n,o,r){ae(n,"setGridSize")?n.setGridSize(o,r):console.error("Layout does not support setGridSize")}},state:Wm}),_g=function(e,t){return e.components()},Og=gu({fields:[],name:"replacing",apis:Object.freeze({__proto__:null,append:function(e,t,n,o){tm(e,0,En,o)},prepend:function(e,t,n,o){tm(e,0,Mt,o)},remove:nm,replaceAt:om,replaceBy:function(e,t,n,o,r){return F(_g(e),o).bind((function(t){return om(e,0,0,t,r)}))},set:function(e,t,n,o){wu((function(){var t=R(o,e.getSystem().build);Os(e,t)}),e.element)},contents:_g})}),Eg=Object.freeze({__proto__:null,focus:im,blur:function(e,t){t.ignore||e.element.dom.blur()},isFocused:function(e){return bu(e.element)}}),zg=Object.freeze({__proto__:null,exhibit:function(e,t){return Pr(t.ignore?{}:{attributes:{tabindex:"-1"}})},events:function(e){return Ji([Cr(_i(),(function(t,n){im(t,e),n.stop()}))].concat(e.stopMousedown?[Cr(ci(),(function(e,t){t.event.prevent()}))]:[]))}}),Tg=gu({fields:[Wa("onFocus"),Oo("stopMousedown",!1),Oo("ignore",!1)],name:"focusing",active:zg,apis:Eg}),Mg=Object.freeze({__proto__:null,onLoad:fm,toggle:cm,isOn:function(e,t,n){return n.get()},on:sm,off:lm,set:Vm}),Dg=Object.freeze({__proto__:null,exhibit:function(){return Pr({})},events:function(e,t){var n,o,r,i=(n=e,o=t,r=cm,ta((function(e){r(e,n,o)}))),a=du(e,t,fm);return Ji(U([e.toggleOnExecute?[i]:[],[a]]))}}),Ag=gu({fields:[Oo("selected",!1),yo("toggleClass"),Oo("toggleOnExecute",!0),Eo("aria",{mode:"none"},co("mode",{pressed:[Oo("syncWithExpanded",!1),Xa("update",(function(e,t,n){ot(e.element,"aria-pressed",n),t.syncWithExpanded&&Pm(e,0,n)}))],checked:[Xa("update",(function(e,t,n){ot(e.element,"aria-checked",n)}))],expanded:[Xa("update",Pm)],selected:[Xa("update",(function(e,t,n){ot(e.element,"aria-selected",n)}))],none:[Xa("update",i)]}))],name:"toggling",active:Dg,apis:Mg,state:{init:function(){var e=Ro(!1);return{get:function(){return e.get()},set:function(t){return e.set(t)},clear:function(){return e.set(!1)},readState:function(){return e.get()}}}}}),Ng="alloy.item-hover",Bg="alloy.item-focus",Rg=u(Ng),Hg=u(Bg),Lg=[lo("data"),lo("components"),lo("dom"),Oo("hasSubmenu",!1),yo("toggling"),wf("itemBehaviours",[Ag,Tg,kg,xf]),Oo("ignoreFocus",!1),Oo("domModification",{}),Xa("builder",(function(e){return{dom:e.dom,domModification:_(_({},e.domModification),{attributes:_(_(_({role:e.toggling.isSome()?"menuitemcheckbox":"menuitem"},e.domModification.attributes),{"aria-haspopup":e.hasSubmenu}),e.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:Cf(e.itemBehaviours,[e.toggling.fold(Ag.revoke,(function(e){return Ag.config(_({aria:{mode:"checked"}},e))})),Tg.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:function(e){hm(e)}}),kg.config({mode:"execution"}),xf.config({store:{mode:"memory",initialValue:e.data}}),rm("item-type-events",E(E([],dm(),!0),[Cr(di(),gm),Cr(Mi(),Tg.focus)],!1))]),components:e.components,eventOrder:e.eventOrder}})),Oo("eventOrder",{})],Vg=[lo("dom"),lo("components"),Xa("builder",(function(e){return{dom:e.dom,components:e.components,events:Ji([Cr(Mi(),(function(e,t){t.stop()}))])}}))],Pg=u("item-widget"),Ig=u([Ff({name:"widget",overrides:function(e){return{behaviours:Ku([xf.config({store:{mode:"manual",getValue:function(t){return e.data},setValue:i}})])}}})]),Fg=co("type",{widget:[lo("uid"),lo("data"),lo("components"),lo("dom"),Oo("autofocus",!1),Oo("ignoreFocus",!1),wf("widgetBehaviours",[xf,Tg,kg]),Oo("domModification",{}),fl(Ig()),Xa("builder",(function(e){function t(t){return rl(t,e,"widget").map((function(e){return kg.focusIn(e),e}))}function n(t,n){return pl(n.event.target)||e.autofocus&&n.setSource(t.element),ve.none()}var o=nl(Pg(),e,Ig()),r=ol(Pg(),e,o.internals());return{dom:e.dom,components:r,domModification:e.domModification,events:Ji([ta((function(e,n){t(e).each((function(e){n.stop()}))})),Cr(di(),gm),Cr(Mi(),(function(n,o){e.autofocus?t(n):Tg.focus(n)}))]),behaviours:Cf(e.widgetBehaviours,[xf.config({store:{mode:"memory",initialValue:e.data}}),Tg.config({ignore:e.ignoreFocus,onFocus:function(e){hm(e)}}),kg.config({mode:"special",focusIn:e.autofocus?function(e){t(e)}:Qu(),onLeft:n,onRight:n,onEscape:function(t,n){return Tg.isFocused(t)||e.autofocus?(e.autofocus&&n.setSource(t.element),ve.none()):(Tg.focus(t),ve.some(!0))}})])}}))],item:Lg,separator:Vg}),Ug=u([Wf({factory:{sketch:function(e){var t=uo("menu.spec item",Fg,e);return t.builder(t)}},name:"items",unit:"item",defaults:function(e,t){return Ee(t,"uid")?t:_(_({},t),{uid:la("item")})},overrides:function(e,t){return{type:t.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}}}})]),jg=u([lo("value"),lo("items"),lo("dom"),lo("components"),Oo("eventOrder",{}),Ws("menuBehaviours",[ud,xf,Zf,kg]),Eo("movement",{mode:"menu",moveOnTab:!0},co("mode",{grid:[zu(),Xa("config",(function(e,t){return{mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:e.focusManager}}))],matrix:[Xa("config",(function(e,t){return{mode:"matrix",selectors:{row:t.rowSelector,cell:"."+e.markers.item},focusManager:e.focusManager}})),lo("rowSelector")],menu:[Oo("moveOnTab",!0),Xa("config",(function(e,t){return{mode:"menu",selector:"."+e.markers.item,moveOnTab:t.moveOnTab,focusManager:e.focusManager}}))]})),fo("markers",Eu()),Oo("fakeFocus",!1),Oo("focusManager",Nl()),Wa("onHighlight")]),Wg=u("alloy.menu-focus"),qg=hl({name:"Menu",configFields:jg(),partFields:Ug(),factory:function(e,t,n,o){return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Gs(e.menuBehaviours,[ud.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight}),xf.config({store:{mode:"memory",initialValue:e.value}}),Zf.config({find:ve.some}),kg.config(e.movement.config(e,e.movement))]),events:Ji([Cr(Hg(),(function(e,t){var n=t.event;e.getSystem().getByDom(n.target).each((function(n){ud.highlight(e,n),t.stop(),pr(e,Wg(),{menu:e,item:n})}))})),Cr(Rg(),(function(e,t){var n=t.event.item;ud.highlight(e,n)}))]),components:t,eventOrder:e.eventOrder,domModification:{attributes:{role:"menu"}}}}}),Gg=function(e,t,n,o){return ie(n,o).bind((function(o){return ie(e,o).bind((function(o){var r=Gg(e,t,n,o);return ve.some([o].concat(r))}))})).getOr([])},$g=Im,Xg=u("collapse-item"),Kg=gl({name:"TieredMenu",configFields:[$a("onExecute"),$a("onEscape"),Ga("onOpenMenu"),Ga("onOpenSubmenu"),Wa("onRepositionMenu"),Wa("onCollapseMenu"),Oo("highlightImmediately",!0),po("data",[lo("primary"),lo("menus"),lo("expansions")]),Oo("fakeFocus",!1),Wa("onHighlight"),Wa("onHover"),Fa(),lo("dom"),Oo("navigateOnHover",!0),Oo("stayInDom",!1),Ws("tmenuBehaviours",[kg,ud,Zf,Og]),Oo("eventOrder",{})],apis:{collapseMenu:function(e,t){e.collapseMenu(t)},highlightPrimary:function(e,t){e.highlightPrimary(t)},repositionMenus:function(e,t){e.repositionMenus(t)}},factory:function(e,t){function n(e){return xf.getValue(e).value}function o(e,t){ud.highlight(e,t),ud.getHighlighted(t).orThunk((function(){return ud.getFirst(t)})).each((function(t){br(e,t.element,Mi())}))}function r(e,t){return ce(R(t,(function(t){return e.lookupMenu(t).bind((function(e){return"prepared"===e.type?ve.some(e.menu):ve.none()}))})))}function a(t,n,o){var i=r(n,n.otherMenus(o));Ce(i,(function(n){Xr(n.element,[e.markers.backgroundMenu]),e.stayInDom||Og.remove(t,n)}))}function u(t,o){var r;ee((r=t,f.get().getOrThunk((function(){var t={},o=L(cs(r.element,"."+e.markers.item),(function(e){return"true"===it(e,"aria-haspopup")}));return Ce(o,(function(e){r.getSystem().getByDom(e).each((function(e){var o=n(e);t[o]=e}))})),f.set(t),t}))),(function(e,t){var n=we(o,t);ot(e.element,"aria-expanded",n)}))}function c(t,n,i){return ve.from(i[0]).bind((function(u){return n.lookupMenu(u).bind((function(u){if("notbuilt"===u.type)return ve.none();var c=u.menu,s=r(n,i.slice(1));return Ce(s,(function(t){Wr(t.element,e.markers.backgroundMenu)})),vn(c.element)||Og.append(t,Sa(c)),Xr(c.element,[e.markers.backgroundMenu]),o(t,c),a(t,n,i),ve.some(c)}))}))}var s,l,f=uc(),d=function(){function e(e){return u(e).bind(Im)}function t(e){return ie(n.get(),e)}var n=Ro({}),o=Ro({}),r=Ro({}),i=uc(),a=Ro({}),u=function(e){return ie(o.get(),e)};return{setMenuBuilt:function(e,t){var n;o.set(_(_({},o.get()),((n={})[e]={type:"prepared",menu:t},n)))},setContents:function(e,t,u,c){i.set(e),n.set(u),o.set(t),a.set(c);var s=function(e,t){var n={};ee(e,(function(e,t){Ce(e,(function(e){n[e]=t}))}));var o=t,r=Oe(t,(function(e,t){return{k:e,v:t}})),i=te(r,(function(e,t){return[t].concat(Gg(n,o,r,t))}));return te(n,(function(e){return ie(i,e).getOr([e])}))}(c,u);r.set(s)},expand:function(e){return ie(n.get(),e).map((function(t){var n=ie(r.get(),e).getOr([]);return[t].concat(n)}))},refresh:function(e){return ie(r.get(),e)},collapse:function(e){return ie(r.get(),e).bind((function(e){return 1<e.length?ve.some(e.slice(1)):ve.none()}))},lookupMenu:u,lookupItem:t,otherMenus:function(e){var t=a.get();return G(ke(t),e)},getPrimary:function(){return i.get().bind(e)},getMenus:function(){return o.get()},clear:function(){n.set({}),o.set({}),r.set({}),i.clear()},isClear:function(){return i.get().isNone()},getTriggeringPath:function(o,a){var u=L(t(o).toArray(),(function(t){return e(t).isSome()}));return ie(r.get(),o).bind((function(t){var o=q(u.concat(t));return function(e){for(var t=[],n=0;n<e.length;n++){var o=e[n];if(!o.isSome())return ve.none();t.push(o.getOrDie())}return ve.some(t)}(j(o,(function(t,r){return u=t,c=a,s=o.slice(0,r+1),e(u).bind((function(e){return t=u,oe(n.get(),(function(e,n){return e===t})).bind((function(t){return c(t).map((function(t){return{triggeredMenu:e,triggeringItem:t,triggeringPath:s}}))}));var t})).fold((function(){return ue(i.get(),t)?[]:[ve.none()]}),(function(e){return[ve.some(e)]}));var u,c,s})))}))}}}();function m(t,o,r){if(void 0===r&&(r=s.HighlightSubmenu),o.hasConfigured(id)&&id.isDisabled(o))return ve.some(o);var i=n(o);return d.expand(i).bind((function(n){return u(t,n),ve.from(n[0]).bind((function(i){return d.lookupMenu(i).bind((function(a){var u=function(e,t,n){if("notbuilt"!==n.type)return n.menu;var o=e.getSystem().build(n.nbMenu());return d.setMenuBuilt(t,o),o}(t,i,a);return vn(u.element)||Og.append(t,Sa(u)),e.onOpenSubmenu(t,o,u,q(n)),r===s.HighlightSubmenu?(ud.highlightFirst(u),c(t,d,n)):(ud.dehighlightAll(u),ve.some(o))}))}))}))}function g(t,o){var r=n(o);return d.collapse(r).bind((function(n){return u(t,n),c(t,d,n).map((function(n){return e.onCollapseMenu(t,o,n),n}))}))}function h(t){return function(n,o){return Ma(o.getSource(),"."+e.markers.item).bind((function(e){return n.getSystem().getByDom(e).toOptional().bind((function(e){return t(n,e).map(S)}))}))}}function p(e){return ud.getHighlighted(e).bind(ud.getHighlighted)}(l=s={})[l.HighlightSubmenu=0]="HighlightSubmenu",l[l.HighlightParent=1]="HighlightParent";var v=Ji([Cr(Wg(),(function(e,t){var o=t.event.item;d.lookupItem(n(o)).each((function(){var o=t.event.menu;ud.highlight(e,o);var r=n(t.event.item);d.refresh(r).each((function(t){return a(e,d,t)}))}))})),ta((function(t,o){var r=o.event.target;t.getSystem().getByDom(r).each((function(o){0===n(o).indexOf("collapse-item")&&g(t,o),m(t,o,s.HighlightSubmenu).fold((function(){e.onExecute(t,o)}),i)}))})),Qi((function(t,n){(function(t){var n,o,r=(n=t,o=e.data.primary,te(e.data.menus,(function(t,r){function i(){return qg.sketch(_(_({},t),{value:r,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:e.onHighlight,focusManager:(e.fakeFocus?Bl:Nl)()}))}return r===o?{type:"prepared",menu:n.getSystem().build(i())}:{type:"notbuilt",nbMenu:i}}))),i=te(e.data.menus,(function(e,t){return j(e.items,(function(e){return"separator"===e.type?[]:[e.data.value]}))}));return d.setContents(e.data.primary,r,e.data.expansions,i),d.getPrimary()})(t).each((function(n){Og.append(t,Sa(n)),e.onOpenMenu(t,n),e.highlightImmediately&&o(t,n)}))}))].concat(e.navigateOnHover?[Cr(Rg(),(function(t,o){var r=o.event.item,i=t,a=n(r);d.refresh(a).bind((function(e){return u(i,e),c(i,d,e)})),m(t,r,s.HighlightParent),e.onHover(t,r)}))]:[])),b={collapseMenu:function(e){p(e).each((function(t){g(e,t)}))},highlightPrimary:function(e){d.getPrimary().each((function(t){o(e,t)}))},repositionMenus:function(t){d.getPrimary().bind((function(e){return p(t).bind((function(e){var t=n(e),o=ce(R(re(d.getMenus()),$g));return d.getTriggeringPath(t,(function(e){return t=e,Z(o,(function(e){return e.getSystem().isConnected()?I(ud.getCandidates(e),(function(e){return n(e)===t})):ve.none()}));var t}))})).map((function(t){return{primary:e,triggeringPath:t}}))})).fold((function(){ve.from(t.components()[0]).filter((function(e){return"menu"===it(e.element,"role")})).each((function(n){e.onRepositionMenu(t,n,[])}))}),(function(n){var o=n.primary,r=n.triggeringPath;e.onRepositionMenu(t,o,r)}))}};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Gs(e.tmenuBehaviours,[kg.config({mode:"special",onRight:h((function(e,t){return pl(t.element)?ve.none():m(e,t,s.HighlightSubmenu)})),onLeft:h((function(e,t){return pl(t.element)?ve.none():g(e,t)})),onEscape:h((function(t,n){return g(t,n).orThunk((function(){return e.onEscape(t,n).map((function(){return t}))}))})),focusIn:function(e,t){d.getPrimary().each((function(t){br(e,t.element,Mi())}))}}),ud.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),Zf.config({find:function(e){return ud.getHighlighted(e)}}),Og.config({})]),eventOrder:e.eventOrder,apis:b,events:v}},extraApis:{tieredData:function(e,t,n){return{primary:e,menus:t,expansions:n}},singleData:function(e,t){return{primary:e,menus:ur(e,t),expansions:{}}},collapseItem:function(e){return{value:Ar(Xg()),meta:{text:e}}}}}),Yg=gl({name:"InlineView",configFields:[lo("lazySink"),Wa("onShow"),Wa("onHide"),So("onEscape"),Ws("inlineBehaviours",[sf,xf,Zu]),_o("fireDismissalEventInstead",[Oo("event",Ui())]),_o("fireRepositionEventInstead",[Oo("event",ji())]),Oo("getRelated",ve.none),Oo("isExtraPart",C),Oo("eventOrder",ve.none)],factory:function(e,t){function n(t){sf.isOpen(t)&&xf.getValue(t).each((function(n){switch(n.mode){case"menu":sf.getState(t).each(Kg.repositionMenus);break;case"position":var o=e.lazySink(t).getOrDie();tf.positionWithinBounds(o,t,n.config,n.getBounds())}}))}function o(e,t,n,o){i(e,t,n,(function(){return o.map((function(e){return An(e)}))}))}function r(t,n,o,r){var i,a,u,c,s,l=(i=e,a=t,u=n,c=r,s="horizontal"===o.type?{layouts:{onLtr:lu,onRtl:fu}}:{},Kg.sketch({dom:{tag:"div"},data:o.data,markers:o.menu.markers,highlightImmediately:o.menu.highlightImmediately,onEscape:function(){return sf.close(a),i.onEscape.map((function(e){return e(a)})),ve.some(!0)},onExecute:function(){return ve.some(!0)},onOpenMenu:function(e,t){tf.positionWithinBounds(f().getOrDie(),t,u,c())},onOpenSubmenu:function(e,t,n,o){var r=f().getOrDie();tf.position(r,n,{anchor:_({type:"submenu",item:t},d(o))})},onRepositionMenu:function(e,t,n){var o=f().getOrDie();tf.positionWithinBounds(o,t,u,c()),Ce(n,(function(e){var t=d(e.triggeringPath);tf.position(o,e.triggeredMenu,{anchor:_({type:"submenu",item:e.triggeringItem},t)})}))}}));function f(){return i.lazySink(a)}function d(e){return 2===e.length?s:{}}sf.open(t,l),xf.setValue(t,ve.some({mode:"menu",menu:l}))}var i=function(t,n,o,r){var i=e.lazySink(t).getOrDie();sf.openWhileCloaked(t,n,(function(){return tf.positionWithinBounds(i,t,o,r())})),xf.setValue(t,ve.some({mode:"position",config:o,getBounds:r}))},a={setContent:function(e,t){sf.setContent(e,t)},showAt:function(e,t,n){o(e,t,n,ve.none())},showWithin:o,showWithinBounds:i,showMenuAt:function(e,t,n){r(e,t,n,ve.none)},showMenuWithinBounds:r,hide:function(e){sf.isOpen(e)&&(xf.setValue(e,ve.none()),sf.close(e))},getContent:function(e){return sf.getState(e)},reposition:n,isOpen:sf.isOpen};return{uid:e.uid,dom:e.dom,behaviours:Gs(e.inlineBehaviours,[sf.config({isPartOf:function(t,n,o){return Ba(n,o)||(r=o,e.getRelated(t).exists((function(e){return Ba(e,r)})));var r},getAttachPoint:function(t){return e.lazySink(t).getOrDie()},onOpen:function(t){e.onShow(t)},onClose:function(t){e.onHide(t)}}),xf.config({store:{mode:"memory",initialValue:ve.none()}}),Zu.config({channels:_(_({},Ls(_({isExtraPart:t.isExtraPart},e.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),Vs(_(_({},e.fireRepositionEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})),{doReposition:n})))})]),eventOrder:e.eventOrder,apis:a}},apis:{showAt:function(e,t,n,o){e.showAt(t,n,o)},showWithin:function(e,t,n,o,r){e.showWithin(t,n,o,r)},showWithinBounds:function(e,t,n,o,r){e.showWithinBounds(t,n,o,r)},showMenuAt:function(e,t,n,o){e.showMenuAt(t,n,o)},showMenuWithinBounds:function(e,t,n,o,r){e.showMenuWithinBounds(t,n,o,r)},hide:function(e,t){e.hide(t)},isOpen:function(e,t){return e.isOpen(t)},getContent:function(e,t){return e.getContent(t)},setContent:function(e,t,n){e.setContent(t,n)},reposition:function(e,t){e.reposition(t)}}}),Jg="layout-inset",Qg=function(e,t,n){return Ya(pm(e,t),e.y,n.insetNorth(),Bu(),"north",Qa(e,{top:2}),Jg)},Zg=function(e,t,n){return Ya(pm(e,t),bm(e,t),n.insetSouth(),Ru(),"south",Qa(e,{bottom:3}),Jg)},eh=tinymce.util.Tools.resolve("tinymce.util.Delay"),th=gl({name:"Button",factory:function(e){function t(t){return ie(e.dom,"attributes").bind((function(e){return ie(e,t)}))}var n=mm(e.action),o=e.dom.tag;return{uid:e.uid,dom:e.dom,components:e.components,events:n,behaviours:Cf(e.buttonBehaviours,[Tg.config({}),kg.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:function(){if("button"!==o)return{role:t("role").getOr("button")};var e=t("type").getOr("button"),n=t("role").map((function(e){return{role:e}})).getOr({});return _({type:e},n)}()},eventOrder:e.eventOrder}},configFields:[Oo("uid",void 0),lo("dom"),Oo("components",[]),wf("buttonBehaviours",[Tg,kg]),yo("action"),yo("role"),Oo("eventOrder",{})]}),nh=tinymce.util.Tools.resolve("tinymce.util.I18n"),oh={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},rh="temporary-placeholder",ih={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},ah=gl({name:"Notification",factory:function(e){function t(e){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+e+"%"}}}}function n(e){return{dom:{tag:"div",classes:["tox-text"],innerHtml:e+"%"}}}var o,r,i,a,u=Mm({dom:{tag:"p",innerHtml:e.translationProvider(e.text)},behaviours:Ku([Og.config({})])}),c=Mm({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[t(0)]},n(0)],behaviours:Ku([Og.config({})])}),s={updateProgress:function(e,o){e.getSystem().isConnected()&&c.getOpt(e).each((function(e){Og.set(e,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[t(o)]},n(o)])}))},updateText:function(e,t){var n;e.getSystem().isConnected()&&(n=u.get(e),Og.set(n,[Zr(t)]))}},l=U([e.icon.toArray(),e.level.toArray(),e.level.bind((function(e){return ve.from(ih[e])})).toArray()]),f=Mm(th.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[Lm("close",{tag:"div",classes:["tox-icon"],attributes:{"aria-label":e.translationProvider("Close")}},e.iconProvider)],action:function(t){e.onAction(t)}})),d=[(o=l,r={tag:"div",classes:["tox-notification__icon"]},i=e.iconProvider,a=i(),Hm(r,I(o,(function(e){return Ee(a,Am(e,a))})).getOr(rh),a,ve.none())),{dom:{tag:"div",classes:["tox-notification__body"]},components:[u.asSpec()],behaviours:Ku([Og.config({})])}];return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert"},classes:e.level.map((function(e){return["tox-notification","tox-notification--in","tox-notification--"+e]})).getOr(["tox-notification","tox-notification--in"])},behaviours:Ku([Tg.config({}),rm("notification-events",[Cr(mi(),(function(e){f.getOpt(e).each(Tg.focus)}))])]),components:d.concat(e.progress?[c.asSpec()]:[]).concat(e.closeButton?[f.asSpec()]:[]),apis:s}},configFields:[yo("level"),lo("progress"),lo("icon"),lo("onAction"),lo("text"),lo("iconProvider"),lo("translationProvider"),Do("closeButton",!0)],apis:{updateProgress:function(e,t,n){e.updateProgress(t,n)},updateText:function(e,t,n){e.updateText(t,n)}}});function uh(e,t){function n(){m(o)||(clearTimeout(o),o=null)}var o=null;return{cancel:n,throttle:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n(),o=setTimeout((function(){o=null,e.apply(null,r)}),t)}}}function ch(e,t,n,o,r){var i=yh(e,(function(t){return(n=e).isBlock(o=t)||we(["BR","IMG","HR","INPUT"],o.nodeName)||"false"===n.getContentEditable(o);var n,o}));return ve.from(i.backwards(t,n,o,r))}function sh(e){return e.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")}function lh(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)}function fh(e,t){return e.substring(t.length)}function dh(e,t,n,o){return void 0===o&&(o=0),xh(Ae.fromDom(t.startContainer)).fold((function(){return function(e,t,n,o){if(void 0===o&&(o=0),!t.collapsed||3!==t.startContainer.nodeType)return ve.none();var r=e.getParent(t.startContainer,e.isBlock)||e.getRoot();return ch(e,t.startContainer,t.startOffset,(function(e,t,o){return function(e,n){for(var o=t-1;0<=o;o--){var r=e.charAt(o);if(lh(r))return ve.none();if(r===n)break}return ve.some(o)}(o,n).getOr(t)}),r).bind((function(e){var r=t.cloneRange();if(r.setStart(e.container,e.offset),r.setEnd(t.endContainer,t.endOffset),r.collapsed)return ve.none();var i=sh(r);return 0!==i.lastIndexOf(n)||fh(i,n).length<o?ve.none():ve.some({text:fh(i,n),range:r,triggerChar:n})}))}(e,t,n,o)}),(function(t){var o=e.createRng();o.selectNode(t.dom);var r=sh(o);return ve.some({range:o,text:fh(r,n),triggerChar:n})}))}function mh(e,t){return{container:e,offset:t}}function gh(e){return io("toolbarbutton",zh,e)}function hh(e){return io("ToggleButton",Mh,e)}function ph(e,t,n,o){void 0===o&&(o={});var r=t(),i=e.selection.getRng().startContainer.nodeValue,a=L(r.lookupByChar(n.triggerChar),(function(t){return n.text.length>=t.minChars&&t.matches.getOrThunk((function(){return t=e.dom,function(e){var n=Sh(e.startContainer,e.startOffset);return!ch(t,n.container,n.offset,(function(e,t){return 0===t?-1:t}),t.getRoot()).filter((function(e){return!lh(e.container.data.charAt(e.offset-1))})).isSome()};var t}))(n.range,i,n.text)}));if(0===a.length)return ve.none();var u=wh.all(R(a,(function(e){return e.fetch(n.text,e.maxResults,o).then((function(t){return{matchText:n.text,items:t,columns:e.columns,onAction:e.onAction,highlightOn:e.highlightOn}}))})));return ve.some({lookupData:u,context:n})}var vh,bh,yh=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),xh=function(e){return Ma(e,"[data-mce-autocompleter]")},wh=tinymce.util.Tools.resolve("tinymce.util.Promise"),Ch=function(e){if(3===e.nodeType)return mh(e,e.data.length);var t=e.childNodes;return 0<t.length?Ch(t[t.length-1]):mh(e,t.length)},Sh=function(e,t){var n=e.childNodes;return 0<n.length&&t<n.length?Sh(n[t],0):0<n.length&&1===e.nodeType&&n.length===t?Ch(n[n.length-1]):mh(e,t)},kh=Ko([mo("type"),Co("text")]),_h=Ko([Oo("type","autocompleteitem"),Oo("active",!1),Oo("disabled",!1),Oo("meta",{}),mo("value"),Co("text"),Co("icon")]),Oh=Ko([mo("type"),mo("ch"),zo("minChars",1),Oo("columns",1),zo("maxResults",10),So("matches"),ho("fetch"),ho("onAction"),No("highlightOn",[],Zo)]),Eh=[Do("disabled",!1),Co("tooltip"),Co("icon"),Co("text"),Ao("onSetup",(function(){return i}))],zh=Ko([mo("type"),ho("onAction")].concat(Eh)),Th=[Do("active",!1)].concat(Eh),Mh=Ko(Th.concat([mo("type"),ho("onAction")])),Dh=[Ao("predicate",C),Mo("scope","node",["node","editor"]),Mo("position","selection",["node","selection","line"])],Ah=Eh.concat([Oo("type","contextformbutton"),Oo("primary",!1),ho("onAction"),ar("original",c)]),Nh=Th.concat([Oo("type","contextformbutton"),Oo("primary",!1),ho("onAction"),ar("original",c)]),Bh=Eh.concat([Oo("type","contextformbutton")]),Rh=Th.concat([Oo("type","contextformtogglebutton")]),Hh=co("type",{contextformbutton:Ah,contextformtogglebutton:Nh}),Lh=Ko([Oo("type","contextform"),Ao("initValue",u("")),Co("label"),bo("commands",Hh),xo("launch",co("type",{contextformbutton:Bh,contextformtogglebutton:Rh}))].concat(Dh)),Vh=Ko([Oo("type","contexttoolbar"),mo("items")].concat(Dh));function Ph(e){return ie(gp,e).getOr(dp)}function Ih(e){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:"color"===e?"tox-swatches":"tox-menu",tieredMenu:"tox-tiered-menu"}}function Fh(e){var t=Ih(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:Ph(e)}}function Uh(e,t,n){return{dom:{tag:"div",classes:U([[Ih(n).tieredMenu]])},markers:Fh(n)}}function jh(e,t){return function(n){return R(B(n,t),(function(t){return{dom:e,components:t}}))}}function Wh(e,t){var n=[],o=[];return Ce(e,(function(e,r){t(e,r)?(0<o.length&&n.push(o),o=[],Ee(e.dom,"innerHtml")&&o.push(e)):o.push(e)})),0<o.length&&n.push(o),R(n,(function(e){return{dom:{tag:"div",classes:["tox-collection__group"]},components:e}}))}function qh(e,t){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[qg.parts.items({preprocess:function(n){return"auto"!==e&&1<e?jh({tag:"div",classes:["tox-collection__group"]},e)(n):Wh(n,(function(e,n){return"separator"===t[n].type}))}})]}}function Gh(e){return A(e,(function(e){return"icon"in e&&void 0!==e.icon}))}function $h(e){return console.error(rr(e)),console.log(e),ve.none()}function Xh(e,t,n,o,r){var i,a=(i=n,{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[qg.parts.items({preprocess:function(e){return Wh(e,(function(e,t){return"separator"===i[t].type}))}})]});return{value:e,dom:a.dom,components:a.components,items:n}}function Kh(e,t,n,o,r){var i,a;return"color"===r?{value:e,dom:(i={dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[qg.parts.items({preprocess:"auto"!==o?jh({tag:"div",classes:["tox-swatches__row"]},o):c})]}]}).dom,components:i.components,items:n}:"normal"===r&&"auto"===o?{value:e,dom:(i=qh(o,n)).dom,components:i.components,items:n}:"normal"===r&&1===o?{value:e,dom:(i=qh(1,n)).dom,components:i.components,items:n}:"normal"===r?{value:e,dom:(i=qh(o,n)).dom,components:i.components,items:n}:"listpreview"!==r||"auto"===o?{value:e,dom:{tag:"div",classes:U([[(a=Ih(r)).menu,"tox-menu-"+o+"-column"],t?[a.hasIcons]:[]])},components:Cp,items:n}:{value:e,dom:(i={dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[qg.parts.items({preprocess:jh({tag:"div",classes:["tox-collection__group"]},o)})]}).dom,components:i.components,items:n}}function Yh(e,t,n){var o=cs(e.element,"."+n);if(0<o.length){var r=F(o,(function(e){var n=e.dom.getBoundingClientRect().top,r=o[0].dom.getBoundingClientRect().top;return Math.abs(n-r)>t})).getOr(o.length);return ve.some({numColumns:r,numRows:Math.ceil(o.length/r)})}return ve.none()}function Jh(e,t,n){e.getSystem().broadcastOn([Vp],{})}function Qh(e){return e.getParam("height",Math.max(e.getElement().offsetHeight,200))}function Zh(e){return e.getParam("width",Wp.DOM.getStyle(e.getElement(),"width"))}function ep(e){return ve.from(e.getParam("min_width")).filter(b)}function tp(e){return ve.from(e.getParam("min_height")).filter(b)}function np(e){return ve.from(e.getParam("max_width")).filter(b)}function op(e){return ve.from(e.getParam("max_height")).filter(b)}function rp(e){return!1!==e.getParam("menubar",!0,"boolean")}function ip(e){var t=e.getParam("toolbar",!0),n=!0===t,o=l(t),r=d(t)&&0<t.length;return!Gp(e)&&(r||o||n)}function ap(e){var t=L(N(9,(function(t){return e.getParam("toolbar"+(t+1),!1,"string")})),(function(e){return"string"==typeof e}));return 0<t.length?ve.some(t):ve.none()}(bh=vh={})[bh.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",bh[bh.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX";var up,cp,sp,lp,fp=vh,dp="tox-menu-nav__js",mp="tox-collection__item",gp={normal:dp,color:"tox-swatch"},hp="tox-collection__item--enabled",pp="tox-collection__item-icon",vp="tox-collection__item-label",bp="tox-collection__item-caret",yp="tox-collection__item--active",xp="tox-collection__item-container",wp="tox-collection__item-container--row",Cp=[qg.parts.items({})],Sp=[mo("type"),mo("src"),Co("alt"),No("classes",[],Zo)],kp=Ko(Sp),_p=[mo("type"),mo("text"),Co("name"),No("classes",["tox-collection__item-label"],Zo)],Op=Ko(_p),Ep=Jn((function(){return no("type",{cardimage:kp,cardtext:Op,cardcontainer:zp})})),zp=Ko([mo("type"),To("direction","horizontal"),To("align","left"),To("valign","middle"),bo("items",Ep)]),Tp=[Do("disabled",!1),Co("text"),Co("shortcut"),ir("value","value",jn((function(){return Ar("menuitem-value")})),Jo()),Oo("meta",{})],Mp=Ko([mo("type"),Co("label"),bo("items",Ep),Ao("onSetup",(function(){return i})),Ao("onAction",i)].concat(Tp)),Dp=Ko([mo("type"),Do("active",!1),Co("icon")].concat(Tp)),Ap=[mo("type"),mo("fancytype"),Ao("onAction",i)],Np=co("fancytype",{inserttable:[Oo("initData",{})].concat(Ap),colorswatch:[Bo("initData",{},[Do("allowCustomColors",!0),ko("colors",Jo())])].concat(Ap)}),Bp=Ko([mo("type"),Ao("onSetup",(function(){return i})),Ao("onAction",i),Co("icon")].concat(Tp)),Rp=Ko([mo("type"),ho("getSubmenuItems"),Ao("onSetup",(function(){return i})),Co("icon")].concat(Tp)),Hp=Ko([mo("type"),Co("icon"),Do("active",!1),Ao("onSetup",(function(){return i})),ho("onAction")].concat(Tp)),Lp=function(e){return t=Ar("unnamed-events"),Ku([rm(t,e)]);var t},Vp=Ar("tooltip.exclusive"),Pp=Ar("tooltip.show"),Ip=Ar("tooltip.hide"),Fp=Object.freeze({__proto__:null,hideAllExclusive:Jh,setComponents:function(e,t,n,o){n.getTooltip().each((function(e){e.getSystem().isConnected()&&Og.set(e,o)}))}}),Up=Object.freeze({__proto__:null,events:function(e,t){function n(n){t.getTooltip().each((function(o){Ts(o),e.onHide(n,o),t.clearTooltip()})),t.clearTimer()}return Ji(U([[Cr(Pp,(function(n){t.resetTimer((function(){var o,r,i=n;t.isShowing()||(Jh(i),o=e.lazySink(i).getOrDie(),r=i.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:Ji("normal"===e.mode?[Cr(di(),(function(e){hr(i,Pp)})),Cr(li(),(function(e){hr(i,Ip)}))]:[]),behaviours:Ku([Og.config({})])}),t.setTooltip(r),Es(o,r),e.onShow(i,r),tf.position(o,r,{anchor:e.anchor(i)}))}),e.delay)})),Cr(Ip,(function(o){t.resetTimer((function(){n(o)}),e.delay)})),Cr(zi(),(function(e,t){t.universal||we(t.channels,Vp)&&n(e)})),Zi((function(e){n(e)}))],"normal"===e.mode?[Cr(mi(),(function(e){hr(e,Pp)})),Cr(Oi(),(function(e){hr(e,Ip)})),Cr(di(),(function(e){hr(e,Pp)})),Cr(li(),(function(e){hr(e,Ip)}))]:[Cr(Xi(),(function(e,t){hr(e,Pp)})),Cr(Ki(),(function(e){hr(e,Ip)}))]]))}}),jp=gu({fields:[lo("lazySink"),lo("tooltipDom"),Oo("exclusive",!0),Oo("tooltipComponents",[]),Oo("delay",300),Mo("mode","normal",["normal","follow-highlight"]),Oo("anchor",(function(e){return{type:"hotspot",hotspot:e,layouts:{onLtr:u([qu,Wu,Iu,Uu,Fu,ju]),onRtl:u([qu,Wu,Iu,Uu,Fu,ju])}}})),Wa("onHide"),Wa("onShow")],name:"tooltipping",active:Up,state:Object.freeze({__proto__:null,init:function(){function e(){t.on(clearTimeout)}var t=uc(),n=uc(),o=u("not-implemented");return pa({getTooltip:n.get,isShowing:n.isSet,setTooltip:n.set,clearTooltip:n.clear,clearTimer:e,resetTimer:function(n,o){e(),t.set(setTimeout(n,o))},readState:o})}}),apis:Fp}),Wp=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),qp=tinymce.util.Tools.resolve("tinymce.EditorManager"),Gp=function(e){return ap(e).fold((function(){return 0<e.getParam("toolbar",[],"string[]").length}),S)};function $p(e){return e.getParam("toolbar_mode","","string")}function Xp(e){return e.getParam("toolbar_location",sp.auto,"string")}function Kp(e){return Xp(e)===sp.bottom}function Yp(e){if(!e.inline)return ve.none();var t=e.getParam("fixed_toolbar_container","","string");if(0<t.length)return Ta(bn(),t);var n=e.getParam("fixed_toolbar_container_target");return p(n)?ve.some(Ae.fromDom(n)):ve.none()}function Jp(e){return e.inline&&Yp(e).isSome()}function Qp(e){return Yp(e).getOrThunk((function(){return et(gn(Ae.fromDom(e.getElement())))}))}function Zp(e){return e.inline&&!rp(e)&&!ip(e)&&!Gp(e)}function ev(e){return(e.getParam("toolbar_sticky",!1,"boolean")||e.inline)&&!Jp(e)&&!Zp(e)}function tv(e,t){var n=e.outerContainer.element;t&&(e.mothership.broadcastOn([lf()],{target:n}),e.uiMothership.broadcastOn([lf()],{target:n})),e.mothership.broadcastOn([Lv],{readonly:t}),e.uiMothership.broadcastOn([Lv],{readonly:t})}function nv(e,t){e.on("init",(function(){e.mode.isReadOnly()&&tv(t,!0)})),e.on("SwitchMode",(function(){return tv(t,e.mode.isReadOnly())})),e.getParam("readonly",!1,"boolean")&&e.setMode("readonly")}function ov(){var e;return Zu.config({channels:((e={})[Lv]={schema:Vv,onReceive:function(e,t){id.set(e,t.readonly)}},e)})}function rv(e,t){var n=e.getApi(t);return function(e){e(n)}}function iv(e,t){return Qi((function(n){rv(e,n)((function(n){var o=e.onSetup(n);v(o)&&t.set(o)}))}))}function av(e,t){return Zi((function(n){return rv(e,n)(t.get())}))}function uv(e,t,n,o){var r,a,u=Ro(i);return{type:"item",dom:t.dom,components:Uv(t.optComponents),data:e.data,eventOrder:Fv,hasSubmenu:e.triggersSubmenu,itemBehaviours:Ku([rm("item-events",[(r=e,a=n,ta((function(e,t){rv(r,e)(r.onAction),r.triggersSubmenu||a!==fp.CLOSE_ON_EXECUTE||(hr(e,Ni()),t.stop())}))),iv(e,u),av(e,u)]),id.config({disabled:function(){return e.disabled||o.isDisabled()},disableClass:"tox-collection__item--state-disabled"}),ov(),Og.config({})].concat(e.itemBehaviours))}}function cv(e){return{value:e.value,meta:_({text:e.text.getOr("")},e.meta)}}function sv(e,t,n){return Lm(e,{tag:"div",classes:n=void 0===n?[pp]:n},t)}function lv(e){return{dom:{tag:"div",classes:[vp]},components:[Zr(nh.translate(e))]}}function fv(e,t){return{dom:{tag:"div",classes:t,innerHtml:e}}}function dv(e,t){return{dom:{tag:"div",classes:[vp]},components:[{dom:{tag:e.tag,styles:e.styles},components:[Zr(nh.translate(t))]}]}}function mv(e){return{dom:{tag:"div",classes:["tox-collection__item-accessory"],innerHtml:(t=jv.mac?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},n=R(e.split("+"),(function(e){var n=e.toLowerCase().trim();return Ee(t,n)?t[n]:e})),jv.mac?n.join(""):n.join("+"))}};var t,n}function gv(e){return sv("checkmark",e,["tox-collection__item-checkmark"])}function hv(e){var t=e.map((function(e){return{attributes:{title:nh.translate(e)}}})).getOr({});return _({tag:"div",classes:[dp,mp]},t)}function pv(e,t,n,o){return void 0===o&&(o=ve.none()),"color"===e.presets?(r=t,i=o,c=e.ariaLabel,s=e.value,{dom:(a=e.iconContent.map((function(e){return t=r.icons,n=i,Nm(e,o=t()).or(n).getOrThunk(Dm(o));var t,n,o})).getOr(""),u={tag:"div",attributes:c.map((function(e){return{title:r.translate(e)}})).getOr({}),classes:["tox-swatch"]},_(_({},u),"custom"===s?{tag:"button",classes:E(E([],u.classes,!0),["tox-swatches__picker-btn"],!1),innerHtml:a}:"remove"===s?{classes:E(E([],u.classes,!0),["tox-swatch--remove"],!1),innerHtml:a}:{attributes:_(_({},u.attributes),{"data-mce-color":s}),styles:{"background-color":s}})),optComponents:[]}):(l=e,f=t,d=o,m={tag:"div",classes:[pp]},g=n?l.iconContent.map((function(e){return Lm(e,m,f.icons,d)})).orThunk((function(){return ve.some({dom:m})})):ve.none(),h=l.checkMark,p=ve.from(l.meta).fold((function(){return lv}),(function(e){return Ee(e,"style")?y(dv,e.style):lv})),v=l.htmlContent.fold((function(){return l.textContent.map(p)}),(function(e){return ve.some(fv(e,[vp]))})),{dom:hv(l.ariaLabel),optComponents:[g,v,l.shortcutContent.map(mv),h,l.caret]});var r,i,a,u,c,s,l,f,d,m,g,h,p,v}function vv(e,t){return ie(e,"tooltipWorker").map((function(e){return[jp.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(e){return{type:"submenu",item:e,overrides:{maxHeightFunction:Ec}}},mode:"follow-highlight",onShow:function(t,n){e((function(e){jp.setComponents(t,[xa({element:Ae.fromDom(e)})])}))}})]})).getOr([])}function bv(e,t){var n=nh.translate(e),o=Wp.DOM.encode(n);if(0<t.length){var r=new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");return o.replace(r,(function(e){return'<span class="tox-autocompleter-highlight">'+e+"</span>"}))}return o}function yv(e){return{value:e}}function xv(e){return Gv.test(e)||$v.test(e)}function wv(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()}function Cv(e){return yv(wv(e.red)+wv(e.green)+wv(e.blue))}function Sv(e,t,n,o){return{red:e,green:t,blue:n,alpha:o}}function kv(e){var t=parseInt(e,10);return t.toString()===e&&0<=t&&t<=255}function _v(e){var t,n,o,r=(e.hue||0)%360,i=e.saturation/100,a=e.value/100;i=Kv(0,Xv(i,1)),a=Kv(0,Xv(a,1));if(0===i)return Sv(t=n=o=Yv(255*a),n,o,1);var u=r/60,c=a*i,s=c*(1-Math.abs(u%2-1)),l=a-c;switch(Math.floor(u)){case 0:t=c,n=s,o=0;break;case 1:t=s,n=c,o=0;break;case 2:t=0,n=c,o=s;break;case 3:t=0,n=s,o=c;break;case 4:t=s,n=0,o=c;break;case 5:t=c,n=0,o=s;break;default:t=n=o=0}return Sv(t=Yv(255*(t+l)),n=Yv(255*(n+l)),o=Yv(255*(o+l)),1)}function Ov(e){var t,n,o=(t={value:e.value.replace(Gv,(function(e,t,n,o){return t+t+n+n+o+o}))},null===(n=$v.exec(t.value))?["FFFFFF","FF","FF","FF"]:n);return Sv(parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16),1)}function Ev(e,t,n,o){return Sv(parseInt(e,10),parseInt(t,10),parseInt(n,10),parseFloat(o))}function zv(e){if("transparent"===e)return ve.some(Sv(0,0,0,0));var t=Jv.exec(e);if(null!==t)return ve.some(Ev(t[1],t[2],t[3],"1"));var n=Qv.exec(e);return null!==n?ve.some(Ev(n[1],n[2],n[3],n[4])):ve.none()}function Tv(e){return"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}function Mv(e,t){return e.fire("ResizeContent",t)}function Dv(e,t,n){return{hue:e,saturation:t,value:n}}function Av(e){var t,n,o=0,r=e.red/255,i=e.green/255,a=e.blue/255,u=Math.min(r,Math.min(i,a)),c=Math.max(r,Math.max(i,a));return u===c?Dv(0,0,100*(o=u)):(n=60*((r===u?3:a===u?1:5)-(r===u?i-a:a===u?r-i:a-r)/(c-u)),t=(c-u)/c,o=c,Dv(Math.round(n),Math.round(100*t),Math.round(100*o)))}function Nv(e){return Cv(_v(e))}function Bv(e){return(xv(n=e)?ve.some({value:(Te(t=n,"#")?t.substring("#".length):t).toUpperCase()}):ve.none()).orThunk((function(){return zv(e).map(Cv)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var o=n.getImageData(0,0,1,1).data;return Cv(Sv(o[0],o[1],o[2],o[3]))}));var t,n}function Rv(e){return id.config({disabled:e,disableClass:"tox-tbtn--disabled"})}(cp=up=up||{}).default="wrap",cp.floating="floating",cp.sliding="sliding",cp.scrolling="scrolling",(lp=sp=sp||{}).auto="auto",lp.top="top",lp.bottom="bottom";var Hv,Lv="silver.readonly",Vv=Ko([fo("readonly",er)]),Pv=function(e){return id.config({disabled:e})},Iv=function(e){return id.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1})},Fv=((Hv={})[Ti()]=["disabling","alloy.base.behaviour","toggling","item-events"],Hv),Uv=ce,jv=tinymce.util.Tools.resolve("tinymce.Env"),Wv=function(e,t){return R(e,(function(e){switch(e.type){case"cardcontainer":return i=Wv((r=e).items,t),a="vertical"===r.direction?"tox-collection__item-container--column":wp,u="left"===r.align?"tox-collection__item-container--align-left":"tox-collection__item-container--align-right",{dom:{tag:"div",classes:[xp,a,u,function(){switch(r.valign){case"top":return"tox-collection__item-container--valign-top";case"middle":return"tox-collection__item-container--valign-middle";case"bottom":return"tox-collection__item-container--valign-bottom"}}()]},components:i};case"cardimage":return o=e.src,{dom:{tag:"img",classes:e.classes,attributes:{src:o,alt:e.alt.getOr("")}}};case"cardtext":var n=e.name.exists((function(e){return we(t.cardText.highlightOn,e)}))?ve.from(t.cardText.matchText).getOr(""):"";return fv(bv(e.text,n),e.classes)}var o,r,i,a,u}))},qv=Qs(Pg(),Ig()),Gv=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,$v=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Xv=Math.min,Kv=Math.max,Yv=Math.round,Jv=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,Qv=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,Zv=Sv(255,0,0,1),eb=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),tb="tinymce-custom-colors";function nb(e){return!1!==e.getParam("custom_colors")}function ob(e){var t=e.getParam("color_map");return void 0!==t?function(e){for(var t=[],n=0;n<e.length;n+=2)t.push({text:e[n+1],value:"#"+Bv(e[n]).value,type:"choiceitem"});return t}(t):yb}function rb(e){xb.add(e)}function ib(e){var t,n=(t=ob(e).length,Math.max(5,Math.ceil(Math.sqrt(t))));return e.getParam("color_cols",n,"number")}function ab(e){var t="choiceitem",n={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return e?[n,{type:t,text:"Custom color",icon:"color-picker",value:"custom"}]:[n]}function ub(e,t,n,o){"custom"===n?Cb(e)((function(n){n.each((function(n){rb(n),e.execCommand("mceApplyTextcolor",t,n),o(n)}))}),wb):"remove"===n?(o(""),e.execCommand("mceRemoveTextcolor",t)):(o(n),e.execCommand("mceApplyTextcolor",t,n))}function cb(e,t){return e.concat(R(xb.state(),(function(e){return{type:bb,text:e,value:e}})).concat(ab(t)))}function sb(e,t){return function(n){n(cb(e,t))}}function lb(e,t,n){e.setIconFill("forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color",n)}function fb(e,t,n,o,r){e.ui.registry.addSplitButton(t,{tooltip:o,presets:"color",icon:"forecolor"===t?"text-color":"highlight-bg-color",select:function(t){var o,r=n;return e.dom.getParents(e.selection.getStart(),(function(e){var t;(t=e.style["forecolor"===r?"color":"background-color"])&&(o=o||t)})),ve.from(o).bind((function(e){return zv(e).map((function(e){var n=Cv(e).value;return fe(t.toLowerCase(),n)}))})).getOr(!1)},columns:ib(e),fetch:sb(ob(e),nb(e)),onAction:function(t){ub(e,n,r.get(),i)},onItemAction:function(o,i){ub(e,n,i,(function(n){r.set(n),e.fire("TextColorChange",{name:t,color:n})}))},onSetup:function(n){function o(e){e.name===t&&lb(n,e.name,e.color)}return lb(n,t,r.get()),e.on("TextColorChange",o),function(){e.off("TextColorChange",o)}}})}function db(e,t,n,o){e.ui.registry.addNestedMenuItem(t,{text:o,icon:"forecolor"===t?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(t){ub(e,n,t.value,i)}}]}})}function mb(e,t,n,o,r,i,a,u){return Kh(e,Gh(t),Sb(t,n,o,"color"!==r?"normal":"color",i,a,u),o,r)}function gb(e,t){var n=Fh(t);return 1===e?{mode:"menu",moveOnTab:!0}:"auto"===e?{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+("color"===t?"tox-swatches__row":"tox-collection__group")}}function hb(e,t){return Zr(t+"x"+e)}var pb,vb,bb="choiceitem",yb=[{type:bb,text:"Light Green",value:"#BFEDD2"},{type:bb,text:"Light Yellow",value:"#FBEEB8"},{type:bb,text:"Light Red",value:"#F8CAC6"},{type:bb,text:"Light Purple",value:"#ECCAFA"},{type:bb,text:"Light Blue",value:"#C2E0F4"},{type:bb,text:"Green",value:"#2DC26B"},{type:bb,text:"Yellow",value:"#F1C40F"},{type:bb,text:"Red",value:"#E03E2D"},{type:bb,text:"Purple",value:"#B96AD9"},{type:bb,text:"Blue",value:"#3598DB"},{type:bb,text:"Dark Turquoise",value:"#169179"},{type:bb,text:"Orange",value:"#E67E23"},{type:bb,text:"Dark Red",value:"#BA372A"},{type:bb,text:"Dark Purple",value:"#843FA1"},{type:bb,text:"Dark Blue",value:"#236FA1"},{type:bb,text:"Light Gray",value:"#ECF0F1"},{type:bb,text:"Medium Gray",value:"#CED4D9"},{type:bb,text:"Gray",value:"#95A5A6"},{type:bb,text:"Dark Gray",value:"#7E8C8D"},{type:bb,text:"Navy Blue",value:"#34495E"},{type:bb,text:"Black",value:"#000000"},{type:bb,text:"White",value:"#ffffff"}],xb=function(e){function t(e){i.splice(e,1)}void 0===e&&(e=10);var n,o=eb.getItem(tb),r=l(o)?JSON.parse(o):[],i=e-(n=r).length<0?n.slice(0,e):n;return{add:function(n){var o;(-1===(o=D(i,n))?ve.none():ve.some(o)).each(t),i.unshift(n),i.length>e&&i.pop(),eb.setItem(tb,JSON.stringify(i))},state:function(){return i.slice(0)}}}(10),wb="#000000",Cb=function(e){return function(t,n){var o=!1;e.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{colorpicker:n},onAction:function(e,t){"hex-valid"===t.name&&(o=t.value)},onSubmit:function(n){var r=n.getData().colorpicker;o?(t(ve.from(r)),n.close()):e.windowManager.alert(e.translate(["Invalid hex color code: {0}",r]))},onClose:i,onCancel:function(){t(ve.none())}})}},Sb=function(e,t,n,o,r,a,u){return ce(R(e,(function(c){return"choiceitem"===c.type?io("choicemenuitem",Dp,c).fold($h,(function(s){return ve.some(function(e,t,n,o,r,a,u,c){void 0===c&&(c=!0);var s=pv({presets:n,textContent:t?e.text:ve.none(),htmlContent:ve.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:t?e.shortcut:ve.none(),checkMark:t?ve.some(gv(u.icons)):ve.none(),caret:ve.none(),value:e.value},u,c);return qo(uv({data:cv(e),disabled:e.disabled,getApi:function(e){return{setActive:function(t){Ag.set(e,t)},isActive:function(){return Ag.isOn(e)},isDisabled:function(){return id.isDisabled(e)},setDisabled:function(t){return id.set(e,t)}}},onAction:function(t){return o(e.value)},onSetup:function(e){return e.setActive(r),i},triggersSubmenu:!1,itemBehaviours:[]},s,a,u),{toggling:{toggleClass:hp,toggleOnExecute:!1,selected:e.active}})}(s,1===n,o,t,a(c.value),r,u,Gh(e)))})):ve.none()})))},kb=Ar("cell-over"),_b=Ar("cell-execute"),Ob={inserttable:function(e){var t=Ar("size-label"),n=function(e){for(var t=[],n=0;n<10;n++){for(var o=[],r=0;r<10;r++)o.push(function(e,t,n){function o(n){return pr(n,_b,{row:e,col:t})}function r(e,t){t.stop(),o(e)}var i;return Ca({dom:{tag:"div",attributes:((i={role:"button"})["aria-labelledby"]=n,i)},behaviours:Ku([rm("insert-table-picker-cell",[Cr(di(),Tg.focus),Cr(Ti(),o),Cr(yi(),r),Cr(Di(),r)]),Ag.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Tg.config({onFocus:function(n){return pr(n,kb,{row:e,col:t})}})])})}(n,r,e));t.push(o)}return t}(t),o=hb(0,0),r=Mm({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:t}},components:[o],behaviours:Ku([Og.config({})])});return{type:"widget",data:{value:Ar("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[qv.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:j(n,(function(e){return R(e,Sa)})).concat(r.asSpec()),behaviours:Ku([rm("insert-table-picker",[Qi((function(e){Og.set(r.get(e),[o])})),Or(kb,(function(e,t,o){var i=o.event,a=i.row,u=i.col;!function(e,t,n){for(var o=0;o<10;o++)for(var r=0;r<10;r++)Ag.set(e[o][r],o<=t&&r<=n)}(n,a,u),Og.set(r.get(e),[hb(a+1,u+1)])})),Or(_b,(function(t,n,o){var r=o.event,i=r.row,a=r.col;e.onAction({numRows:i+1,numColumns:a+1}),hr(t,Ni())}))]),kg.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:function(e,t){var n,o,r,i=(o=t,r=(n=e).initData.allowCustomColors&&o.colorinput.hasCustomColors(),n.initData.colors.fold((function(){return cb(o.colorinput.getColors(),r)}),(function(e){return e.concat(ab(r))}))),a=t.colorinput.getColorCols(),u=mb(Ar("menu-value"),i,(function(t){e.onAction({value:t})}),a,"color",fp.CLOSE_ON_EXECUTE,C,t.shared.providers),c=_(_({},u),{markers:Fh("color"),movement:gb(a,"color")});return{type:"widget",data:{value:Ar("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[qv.widget(qg.sketch(c))]}}},Eb=function(e){var t=e.text.fold((function(){return{}}),(function(e){return{innerHtml:e}}));return{type:"separator",dom:_({tag:"div",classes:[mp,"tox-collection__group-heading"]},t),components:[]}};function zb(e,t,n,o,r){var a=Gh(t),u=ce(R(t,(function(e){function t(e){return function(e,t,n,o,r){function a(e){return r?_(_({},e),{shortcut:ve.none(),icon:e.text.isSome()?ve.none():e.icon}):e}var u=n.shared.providers;switch(e.type){case"menuitem":return io("menuitem",Bp,e).fold($h,(function(e){return ve.some(function(e,t,n,o){void 0===o&&(o=!0);var r=pv({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:ve.none(),ariaLabel:e.text,caret:ve.none(),checkMark:ve.none(),shortcutContent:e.shortcut},n,o);return uv({data:cv(e),getApi:function(e){return{isDisabled:function(){return id.isDisabled(e)},setDisabled:function(t){return id.set(e,t)}}},disabled:e.disabled,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},r,t,n)}(a(e),t,u,o))}));case"nestedmenuitem":return io("nestedmenuitem",Rp,e).fold($h,(function(e){return ve.some(function(e,t,n,o,r){void 0===o&&(o=!0);var a=(r=void 0!==r&&r)?sv("chevron-down",n.icons,[bp]):sv("chevron-right",n.icons,[bp]),u=pv({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:ve.none(),ariaLabel:e.text,caret:ve.some(a),checkMark:ve.none(),shortcutContent:e.shortcut},n,o);return uv({data:cv(e),getApi:function(e){return{isDisabled:function(){return id.isDisabled(e)},setDisabled:function(t){return id.set(e,t)}}},disabled:e.disabled,onAction:i,onSetup:e.onSetup,triggersSubmenu:!0,itemBehaviours:[]},u,t,n)}(a(e),t,u,o,r))}));case"togglemenuitem":return io("togglemenuitem",Hp,e).fold($h,(function(e){return ve.some(function(e,t,n,o){void 0===o&&(o=!0);var r=pv({iconContent:e.icon,textContent:e.text,htmlContent:ve.none(),ariaLabel:e.text,checkMark:ve.some(gv(n.icons)),caret:ve.none(),shortcutContent:e.shortcut,presets:"normal",meta:e.meta},n,o);return qo(uv({data:cv(e),disabled:e.disabled,getApi:function(e){return{setActive:function(t){Ag.set(e,t)},isActive:function(){return Ag.isOn(e)},isDisabled:function(){return id.isDisabled(e)},setDisabled:function(t){return id.set(e,t)}}},onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},r,t,n),{toggling:{toggleClass:hp,toggleOnExecute:!1,selected:e.active}})}(a(e),t,u,o))}));case"separator":return io("separatormenuitem",kh,e).fold($h,(function(e){return ve.some(Eb(e))}));case"fancymenuitem":return io("fancymenuitem",Np,e).fold($h,(function(e){return function(e,t){return ie(Ob,e.fancytype).map((function(n){return n(e,t)}))}(a(e),n)}));default:return console.error("Unknown item in general menu",e),ve.none()}}(e,n,o,r?!Ee(e,"text"):a,r)}return"nestedmenuitem"===e.type&&e.getSubmenuItems().length<=0?t(_(_({},e),{disabled:!0})):t(e)})));return(r?Xh:Kh)(e,a,u,1,"normal")}function Tb(e){return Kg.singleData(e.value,e)}function Mb(e,t,n){return Ma(e,t,n).isSome()}function Db(e,t){var n=null;return{cancel:function(){null!==n&&(clearTimeout(n),n=null)},schedule:function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];n=setTimeout((function(){e.apply(null,o),n=null}),t)}}}function Ab(e){var t=e.raw;return void 0===t.touches||1!==t.touches.length?ve.none():ve.some(t.touches[0])}function Nb(){return ln().browser.isFirefox()}function Bb(e,t){return Ro(ie(e,"target").getOr(t))}function Rb(e,t,n,o,r,i){var a,u,c=e(t,o),s=(a=Ro(!1),u=Ro(!1),{stop:function(){a.set(!0)},cut:function(){u.set(!0)},isStopped:a.get,isCut:u.get,event:n,setSource:r.set,getSource:r.get});return c.fold((function(){return i.logEventNoHandlers(t,o),Ub.complete()}),(function(e){var n=e.descHandler;return Ir(n)(s),s.isStopped()?(i.logEventStopped(t,e.element,n.purpose),Ub.stopped()):s.isCut()?(i.logEventCut(t,e.element,n.purpose),Ub.complete()):$e(e.element).fold((function(){return i.logNoParent(t,e.element,n.purpose),Ub.complete()}),(function(o){return i.logEventResponse(t,e.element,n.purpose),Ub.resume(o)}))}))}function Hb(e){function t(t){return $e(e.element).fold(S,(function(e){return Fe(t,e)}))}function n(e,n){return r.find(t,e,n)}function o(e){var t=r.filter(zi());Ce(t,(function(t){Ir(t.descHandler)(e)}))}var r=function(){function e(e){Nr(e.element).each((function(e){delete o[e],n.unregisterId(e)}))}var t,n=(t={},{registerId:function(e,n,o){ee(o,(function(o,r){var i,a=void 0!==t[r]?t[r]:{};a[n]={cHandler:y.apply(void 0,[(i=o).handler].concat(e)),purpose:i.purpose},t[r]=a}))},unregisterId:function(e){ee(t,(function(t,n){Ee(t,e)&&delete t[e]}))},filterByType:function(e){return ie(t,e).map((function(e){return ne(e,(function(e,t){return{id:t,descHandler:e}}))})).getOr([])},find:function(e,n,o){return ie(t,n).bind((function(t){return fr(o,(function(e){return n=t,Nr(o=e).bind((function(e){return ie(n,e)})).map((function(e){return{element:o,descHandler:e}}));var n,o}),e)}))}}),o={};return{find:function(e,t,o){return n.find(e,t,o)},filter:function(e){return n.filterByType(e)},register:function(t){var r,i=Nr((r=t).element).getOrThunk((function(){return e=r.element,t=Ar(ua+"uid-"),sa(e,t),t;var e,t}));ae(o,i)&&function(t){var n=o[i];if(n!==t)throw new Error('The tagId "'+i+'" is already used by: '+Dr(n.element)+"\nCannot use it for: "+Dr(t.element)+"\nThe conflicting element is"+(vn(n.element)?" ":" not ")+"already in the DOM");e(t)}(t),n.registerId([t],i,t.events),o[i]=t},unregister:e,getById:function(e){return ie(o,e)}}}(),a=function(e,t){var n,o,r,i,a,u,c,s,l,f=_({stopBackspace:!0},t),d=(a=f,u=uc(),c=Ro(!1),s=Db((function(e){a.triggerEvent(Ai(),e),c.set(!0)}),400),l=cr([{key:ri(),value:function(e){return Ab(e).each((function(t){s.cancel();var n={x:t.clientX,y:t.clientY,target:e.target};s.schedule(e),c.set(!1),u.set(n)})),ve.none()}},{key:ii(),value:function(e){return s.cancel(),Ab(e).each((function(e){u.on((function(t){var n=e,o=t,r=Math.abs(n.clientX-o.x),i=Math.abs(n.clientY-o.y);(5<r||5<i)&&u.clear()}))})),ve.none()}},{key:ai(),value:function(e){return s.cancel(),u.get().filter((function(t){return Fe(t.target,e.target)})).map((function(t){return c.get()?(e.prevent(),!1):a.triggerEvent(Di(),e)}))}}]),{fireIfReady:function(e,t){return ie(l,t).bind((function(t){return t(e)}))}}),m=R(["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"].concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(t){return cc(e,t,(function(e){d.fireIfReady(e,t).each((function(t){t&&e.kill()})),f.triggerEvent(t,e)&&e.kill()}))})),g=uc(),h=cc(e,"paste",(function(e){d.fireIfReady(e,"paste").each((function(t){t&&e.kill()})),f.triggerEvent("paste",e)&&e.kill(),g.set(setTimeout((function(){f.triggerEvent(Ei(),e)}),0))})),p=cc(e,"keydown",(function(e){var t;f.triggerEvent("keydown",e)?e.kill():!f.stopBackspace||(t=e).raw.which!==cd[0]||we(["input","textarea"],Ne(t.target))||Mb(t.target,'[contenteditable="true"]')||e.prevent()})),v=(n=e,o=function(e){f.triggerEvent("focusin",e)&&e.kill()},Nb()?sc(n,"focus",o):cc(n,"focusin",o)),b=uc(),y=(r=e,i=function(e){f.triggerEvent("focusout",e)&&e.kill(),b.set(setTimeout((function(){f.triggerEvent(Oi(),e)}),0))},Nb()?sc(r,"blur",i):cc(r,"focusout",i));return{unbind:function(){Ce(m,(function(e){e.unbind()})),p.unbind(),v.unbind(),y.unbind(),h.unbind(),g.on(clearTimeout),b.on(clearTimeout)}}}(e.element,{triggerEvent:function(e,t){return Ra(e,t.target,(function(o){return Wb(n,e,t,t.target,o)}))}}),c={debugInfo:u("real"),triggerEvent:function(e,t,o){Ra(e,t,(function(r){return Wb(n,e,o,t,r)}))},triggerFocus:function(e,t){Nr(e).fold((function(){vu(e)}),(function(o){Ra(_i(),e,(function(o){var r,a,u=n,c=_i(),s=o,l=Bb(r={originator:t,kill:i,prevent:i,target:e},a=e);return Rb(u,c,r,a,l,s),!1}))}))},triggerEscape:function(e,t){c.triggerEvent("keydown",e.element,t.event)},getByUid:function(e){return p(e)},getByDom:function(e){return v(e)},build:Ca,addToGui:function(e){f(e)},removeFromGui:function(e){d(e)},addToWorld:function(e){s(e)},removeFromWorld:function(e){l(e)},broadcast:function(e){m(e)},broadcastOn:function(e,t){g(e,t)},broadcastEvent:function(e,t){h(e,t)},isConnected:S},s=function(e){e.connect(c),Gt(e.element)||(r.register(e),Ce(e.components(),s),c.triggerEvent(Ri(),e.element,{target:e.element}))},l=function(e){Gt(e.element)||(Ce(e.components(),l),r.unregister(e)),e.disconnect()},f=function(t){Es(e,t)},d=function(e){Ts(e)},m=function(e){o({universal:!0,data:e})},g=function(e,t){o({universal:!1,channels:e,data:t})},h=function(e,t){var n,o,a=r.filter(e);return o={stop:function(){n.set(!0)},cut:i,isStopped:(n=Ro(!1)).get,isCut:C,event:t,setSource:w("Cannot set source of a broadcasted event"),getSource:w("Cannot get source of a broadcasted event")},Ce(a,(function(e){Ir(e.descHandler)(o)})),o.isStopped()},p=function(e){return r.getById(e).fold((function(){return Hn.error(new Error('Could not find component with uid: "'+e+'" in system.'))}),Hn.value)},v=function(e){var t=Nr(e).getOr("not found");return p(t)};return s(e),{root:e,element:e.element,destroy:function(){a.unbind(),zn(e.element)},add:f,remove:d,getByUid:p,getByDom:v,addToWorld:s,removeFromWorld:l,broadcast:m,broadcastOn:g,broadcastEvent:h}}function Lb(e,t,n,o){var r=Qb(e,t,n,o);return Xb.sketch(r)}function Vb(e,t){return Xb.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}})}function Pb(e){return Ku([Tg.config({onFocus:e.selectOnFocus?function(e){var t=e.element,n=Kr(t);t.dom.setSelectionRange(0,n.length)}:i})])}function Ib(e){return{tag:e.tag,attributes:_({type:"text"},e.inputAttributes),styles:e.inputStyles,classes:e.inputClasses}}function Fb(e,t){function n(){return s.get().isSome()}function o(){n()&&Yg.hide(f)}var r,a,s=uc(),l=Ro(!1),f=Ca(Yg.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:Ku([rm("dismissAutocompleter",[Cr(Ui(),(function(){return d()}))])]),lazySink:t.getSink})),d=function(){var t;n()&&(t=s.get().map((function(e){return e.element})),xh(t.getOr(Ae.fromDom(e.selection.getNode()))).each(Nt),o(),s.clear(),l.set(!1))},m=Re((function(){return t=ne(o=te(e.ui.registry.getAll().popups,(function(e){return io("Autocompleter",Oh,e).fold((function(e){throw new Error(rr(e))}),c)})),(function(e){return e.ch})),n={},Ce(t,(function(e){n[e]={}})),r=ke(n),i=re(o),{dataset:o,triggerChars:r,lookupByChar:function(e){return L(i,(function(t){return t.ch===e}))}};var t,n,o,r,i})),g=function(r){var a=r;s.get().map((function(t){return dh(e.dom,e.selection.getRng(),t.triggerChar).bind((function(t){return ph(e,m,t,a)}))})).getOrThunk((function(){return t=e,o=(n=m)(),r=t.selection.getRng(),i=t.dom,a=r,Z(o.triggerChars,(function(e){return dh(i,a,e)})).bind((function(e){return ph(t,n,e)}));var t,n,o,r,i,a})).fold(d,(function(r){var a,c=r.context;n()||(a=function(e,t){return xh(Ae.fromDom(e.selection.getNode())).getOrThunk((function(){var n,o,r=Ae.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',e.getDoc());return En(r,Ae.fromDom(t.extractContents())),t.insertNode(r.dom),$e(r).each((function(e){return e.dom.normalize()})),n=us,(o=function(e){for(var t=Ke(e),r=t.length-1;0<=r;r--){var i=t[r];if(n(i))return ve.some(i);var a=o(i);if(a.isSome())return a}return ve.none()})(r).map((function(t){var n;e.selection.setCursorLocation(t.dom,"img"===Ne(n=t)?1:as(n).fold((function(){return Ke(n).length}),(function(e){return e.length})))})),r}))}(e,c.range),s.set({triggerChar:c.triggerChar,element:a,matchLength:c.text.length}),l.set(!1)),r.lookupData.then((function(n){s.get().map((function(a){var c,s,m,h,p=r.context;a.triggerChar===p.triggerChar&&(s=p.triggerChar,h=Z(m=n,(function(e){return ve.from(e.columns)})).getOr(1),0<(c=j(m,(function(n){return function(e,t,n,o,r,a,c){var s=1===o,l=!s||Gh(e);return ce(R(e,(function(e){switch(e.type){case"separator":return io("Autocompleter.Separator",kh,e).fold($h,(function(e){return ve.some(Eb(e))}));case"cardmenuitem":return io("cardmenuitem",Mp,e).fold($h,(function(e){return ve.some((o=_(_({},e),{onAction:function(t){e.onAction(t),n(e.value,e.meta)}}),i=r,u=a,s={itemBehaviours:vv(e.meta,a),cardText:{matchText:t,highlightOn:c}},l={dom:hv(o.label),optComponents:[ve.some({dom:{tag:"div",classes:[xp,wp]},components:Wv(o.items,s)})]},uv({data:cv(_({text:ve.none()},o)),disabled:o.disabled,getApi:function(e){return{isDisabled:function(){return id.isDisabled(e)},setDisabled:function(t){id.set(e,t),Ce(cs(e.element,"*"),(function(n){e.getSystem().getByDom(n).each((function(e){e.hasConfigured(id)&&id.set(e,t)}))}))}}},onAction:o.onAction,onSetup:o.onSetup,triggersSubmenu:!1,itemBehaviours:ve.from(s.itemBehaviours).getOr([])},l,i,u.providers)));var o,i,u,s,l}));default:return io("Autocompleter.Item",_h,e).fold($h,(function(e){return ve.some(function(e,t,n,o,r,a,c,s){void 0===s&&(s=!0);var l=pv({presets:"normal",textContent:ve.none(),htmlContent:n?e.text.map((function(e){return bv(e,t)})):ve.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:ve.none(),checkMark:ve.none(),caret:ve.none(),value:e.value},c.providers,s,e.icon);return uv({data:cv(e),disabled:e.disabled,getApi:u({}),onAction:function(t){return r(e.value,e.meta)},onSetup:u(i),triggersSubmenu:!1,itemBehaviours:vv(e.meta,c)},l,a,c.providers)}(e,t,s,0,n,r,a,l))}))}})))}(n.items,n.matchText,(function(t,r){var i=e.selection.getRng();dh(e.dom,i,s).fold((function(){return console.error("Lost context. Cursor probably moved")}),(function(e){var i=e.range,a={hide:function(){d()},reload:function(e){o(),g(e)}};l.set(!0),n.onAction(a,i,t,r),l.set(!1)}))}),h,fp.BUBBLE_TO_SANDBOX,t,n.highlightOn)}))).length?function(t,n,o,r){t.matchLength=n.text.length;var i,a,u,c,s,l,d=Z(o,(function(e){return ve.from(e.columns)})).getOr(1);Yg.showAt(f,qg.sketch((i=Kh("autocompleter-value",!0,r,d,"normal"),a=d,c=((u=pb.ContentFocus)===pb.ContentFocus?Bl:Nl)(),s=gb(a,"normal"),l=Fh("normal"),{dom:i.dom,components:i.components,items:i.items,value:i.value,markers:{selectedItem:l.selectedItem,item:l.item},movement:s,fakeFocus:u===pb.ContentFocus,focusManager:c,menuBehaviours:Lp("auto"!==a?[]:[Qi((function(e,t){Yh(e,4,l.item).each((function(t){var n=t.numColumns,o=t.numRows;kg.setGridSize(e,o,n)}))}))])})),{anchor:{type:"node",root:Ae.fromDom(e.getBody()),node:ve.from(t.element)}}),Yg.getContent(f).each(ud.highlightFirst)}(a,p,n,c):(10<=p.text.length-a.matchLength?d:o)())}))}))}))},h={onKeypress:uh((function(e){27!==e.which&&g()}),50),cancelIfNecessary:d,isMenuOpen:function(){return Yg.isOpen(f)},isActive:n,isProcessingAction:l.get,getView:function(){return Yg.getContent(f)}};function p(e,t){pr(e,hi(),{raw:t})}!1===e.hasPlugin("rtc")&&(r=h,(a=e).on("keypress compositionend",r.onKeypress.throttle),a.on("remove",r.onKeypress.cancel),a.on("keydown",(function(e){function t(){return r.getView().bind(ud.getHighlighted)}8===e.which&&r.onKeypress.throttle(e),r.isActive()&&(27===e.which&&r.cancelIfNecessary(),r.isMenuOpen()?13===e.which?(t().each(vr),e.preventDefault()):40===e.which?(t().fold((function(){r.getView().each(ud.highlightFirst)}),(function(t){p(t,e)})),e.preventDefault(),e.stopImmediatePropagation()):37!==e.which&&38!==e.which&&39!==e.which||t().each((function(t){p(t,e),e.preventDefault(),e.stopImmediatePropagation()})):13!==e.which&&38!==e.which&&40!==e.which||r.cancelIfNecessary())})),a.on("NodeChange",(function(e){r.isActive()&&!r.isProcessingAction()&&xh(Ae.fromDom(e.element)).isNone()&&r.cancelIfNecessary()})))}(vb=pb={})[vb.ContentFocus=0]="ContentFocus",vb[vb.UiFocus=1]="UiFocus";var Ub=Ho([{stopped:[]},{resume:["element"]},{complete:[]}]),jb=function(e,t,n,o,r,i){return Rb(e,t,n,o,r,i).fold(S,(function(o){return jb(e,t,n,o,r,i)}),C)},Wb=function(e,t,n,o,r){var i=Bb(n,o);return jb(e,t,n,o,i,r)},qb=gl({name:"Container",factory:function(e){var t=e.dom,n=t.attributes,o=O(t,["attributes"]);return{uid:e.uid,dom:_({tag:"div",attributes:_({role:"presentation"},n)},o),components:e.components,behaviours:qs(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},configFields:[Oo("components",[]),Ws("containerBehaviours",[]),Oo("events",{}),Oo("domModification",{}),Oo("eventOrder",{})]}),Gb=u([Oo("prefix","form-field"),Ws("fieldBehaviours",[Zf,xf])]),$b=u([jf({schema:[lo("dom")],name:"label"}),jf({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[lo("text")],name:"aria-descriptor"}),Ff({factory:{sketch:function(e){var t,n,o=(t=["factory"],n={},ee(e,(function(e,o){we(t,o)||(n[o]=e)})),n);return e.factory.sketch(o)}},schema:[lo("factory")],name:"field"})]),Xb=hl({name:"FormField",configFields:Gb(),partFields:$b(),factory:function(e,t,n,o){var r=Gs(e.fieldBehaviours,[Zf.config({find:function(t){return rl(t,e,"field")}}),xf.config({store:{mode:"manual",getValue:function(e){return Zf.getCurrent(e).bind(xf.getValue)},setValue:function(e,t){Zf.getCurrent(e).each((function(e){xf.setValue(e,t)}))}}})]),i=Ji([Qi((function(t,n){var o=al(t,e,["label","field","aria-descriptor"]);o.field().each((function(t){var n=Ar(e.prefix);o.label().each((function(e){ot(e.element,"for",n),ot(t.element,"id",n)})),o["aria-descriptor"]().each((function(n){var o=Ar(e.prefix);ot(n.element,"id",o),ot(t.element,"aria-describedby",o)}))}))}))]);return{uid:e.uid,dom:e.dom,components:t,behaviours:r,events:i,apis:{getField:function(t){return rl(t,e,"field")},getLabel:function(t){return rl(t,e,"label")}}}},apis:{getField:function(e,t){return e.getField(t)},getLabel:function(e,t){return e.getLabel(t)}}}),Kb=Object.freeze({__proto__:null,exhibit:function(e,t){return Pr({attributes:cr([{key:t.tabAttr,value:"true"}])})}}),Yb=gu({fields:[Oo("tabAttr","data-alloy-tabstop")],name:"tabstopping",active:Kb}),Jb=tinymce.util.Tools.resolve("tinymce.html.Entities"),Qb=function(e,t,n,o){return{dom:Zb(n),components:e.toArray().concat([t]),fieldBehaviours:Ku(o)}},Zb=function(e){return{tag:"div",classes:["tox-form__group"].concat(e)}},ey=Ar("form-component-change"),ty=Ar("form-close"),ny=Ar("form-cancel"),oy=Ar("form-action"),ry=Ar("form-submit"),iy=Ar("form-block"),ay=Ar("form-unblock"),uy=Ar("form-tabchange"),cy=Ar("form-resize"),sy=u([yo("data"),Oo("inputAttributes",{}),Oo("inputStyles",{}),Oo("tag","input"),Oo("inputClasses",[]),Wa("onSetValue"),Oo("styles",{}),Oo("eventOrder",{}),Ws("inputBehaviours",[xf,Tg]),Oo("selectOnFocus",!0)]),ly=gl({name:"Input",configFields:sy(),factory:function(e,t){return{uid:e.uid,dom:Ib(e),components:[],behaviours:_(_({},Pb(n=e)),Gs(n.inputBehaviours,[xf.config({store:_(_({mode:"manual"},n.data.map((function(e){return{initialValue:e}})).getOr({})),{getValue:function(e){return Kr(e.element)},setValue:function(e,t){Kr(e.element)!==t&&Yr(e.element,t)}}),onSetValue:n.onSetValue})])),eventOrder:e.eventOrder};var n}}),fy={},dy={exports:fy};function my(e){setTimeout((function(){throw e}),0)}function gy(e){var t=Ne(e);return we(Ey,t)}function hy(e,t){qr(t.getRoot(e).getOr(e.element),t.invalidClass),t.notify.each((function(t){gy(e.element)&&ot(e.element,"aria-invalid",!1),t.getContainer(e).each((function(e){Mr(e,t.validHtml)})),t.onValid(e)}))}function py(e,t,n,o){Wr(t.getRoot(e).getOr(e.element),t.invalidClass),t.notify.each((function(t){gy(e.element)&&ot(e.element,"aria-invalid",!0),t.getContainer(e).each((function(e){Mr(e,o)})),t.onInvalid(e,o)}))}function vy(e,t,n){return t.validator.fold((function(){return Oy(Hn.value(!0))}),(function(t){return t.validate(e)}))}function by(e,t,n){return t.notify.each((function(t){t.onValidate(e)})),vy(e,t).map((function(n){return e.getSystem().isConnected()?n.fold((function(n){return py(e,t,0,n),Hn.error(n)}),(function(n){return hy(e,t),Hn.value(n)})):Hn.error("No longer in system")}))}!function(){var e=this,t=function(){var e,t,n,o={exports:{}};function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function a(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n,o=1===e._state?t.onFulfilled:t.onRejected;if(null!==o){try{n=o(e._value)}catch(n){return void c(t.promise,n)}u(t.promise,n)}else(1===e._state?u:c)(t.promise,e._value)}))):e._deferreds.push(t)}function u(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"==typeof n)return void f((o=n,r=t,function(){o.apply(r,arguments)}),e)}e._state=1,e._value=t,s(e)}catch(t){c(e,t)}var o,r}function c(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,u(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(e){if(n)return;n=!0,c(t,e)}}e=o,t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=setTimeout,i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new l(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i((function(e,n){if(0===t.length)return e([]);for(var o=t.length,r=0;r<t.length;r++)!function r(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return u.call(a,(function(e){r(i,e)}),n),0}t[i]=a,0==--o&&e(t)}catch(a){n(a)}}(r,t[r])}))},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){for(var o=0,r=e.length;o<r;o++)e[o].then(t,n)}))},i._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},e.exports?e.exports=i:t.Promise||(t.Promise=i);var d=o.exports;return{boltExport:("undefined"!=typeof window?window:Function("return this;")()).Promise||d}};"object"==typeof fy&&void 0!==dy?dy.exports=t():(e="undefined"!=typeof globalThis?globalThis:e||self).EphoxContactWrapper=t()}();var yy,xy,wy=dy.exports.boltExport,Cy=function(e){function t(e){r()?i(e):o.push(e)}var n=ve.none(),o=[],r=function(){return n.isSome()},i=function(e){n.each((function(t){setTimeout((function(){e(t)}),0)}))};return e((function(e){r()||(n=ve.some(e),Ce(o,i),o=[])})),{get:t,map:function(e){return Cy((function(n){t((function(t){n(e(t))}))}))},isReady:r}},Sy={nu:Cy,pure:function(e){return Cy((function(t){t(e)}))}},ky=function(e){function t(t){e().then(t,my)}return{map:function(t){return ky((function(){return e().then(t)}))},bind:function(t){return ky((function(){return e().then((function(e){return t(e).toPromise()}))}))},anonBind:function(t){return ky((function(){return e().then((function(){return t.toPromise()}))}))},toLazy:function(){return Sy.nu(t)},toCached:function(){var t=null;return ky((function(){return t=null===t?e():t}))},toPromise:e,get:t}},_y=function(e){return ky((function(){return new wy(e)}))},Oy=function(e){return ky((function(){return wy.resolve(e)}))},Ey=["input","textarea"],zy=Object.freeze({__proto__:null,markValid:hy,markInvalid:py,query:vy,run:by,isInvalid:function(e,t){return Gr(t.getRoot(e).getOr(e.element),t.invalidClass)}}),Ty=Object.freeze({__proto__:null,events:function(e,t){return e.validator.map((function(t){return Ji([Cr(t.onEvent,(function(t){by(t,e).get(c)}))].concat(t.validateOnLoad?[Qi((function(t){by(t,e).get(i)}))]:[]))})).getOr({})}}),My=gu({fields:[lo("invalidClass"),Oo("getRoot",ve.none),_o("notify",[Oo("aria","alert"),Oo("getContainer",ve.none),Oo("validHtml",""),Wa("onValid"),Wa("onInvalid"),Wa("onValidate")]),_o("validator",[lo("validate"),Oo("onEvent","input"),Oo("validateOnLoad",!0)])],name:"invalidating",active:Ty,apis:zy,extra:{validation:function(e){return function(t){var n=xf.getValue(t);return Oy(e(n))}}}}),Dy=Object.freeze({__proto__:null,getCoupled:function(e,t,n,o){return n.getOrCreate(e,t,o)}}),Ay=gu({fields:[fo("others",ro(Hn.value,Jo()))],name:"coupling",apis:Dy,state:Object.freeze({__proto__:null,init:function(){var e={},t=u({});return pa({readState:t,getOrCreate:function(t,n,o){var r=ke(n.others);if(r)return ie(e,o).getOrThunk((function(){var r=ie(n.others,o).getOrDie("No information found for coupled component: "+o)(t),i=t.getSystem().build(r);return e[o]=i}));throw new Error("Cannot find coupled component: "+o+". Known coupled components: "+JSON.stringify(r,null,2))}})}})}),Ny=u("sink"),By=u(jf({name:Ny(),overrides:u({dom:{tag:"div"},behaviours:Ku([tf.config({useFixed:S})]),events:Ji([Er(hi()),Er(ci()),Er(yi())])})}));function Ry(e,t){var n=e.getHotspot(t).getOr(t),o=e.getAnchorOverrides();return e.layouts.fold((function(){return{type:"hotspot",hotspot:n,overrides:o}}),(function(e){return{type:"hotspot",hotspot:n,overrides:o,layouts:e}}))}function Hy(e,t,n,o,r,i,a){var u,c=Ry(e,n),s=n,l=o,f=r,d=a,m=t,g=(0,(u=e).fetch)(s).map(m),h=jw(s,u);return g.map((function(e){return e.bind((function(e){return ve.from(Kg.sketch(_(_({},f.menu()),{uid:la(""),data:e,highlightImmediately:d===yy.HighlightFirst,onOpenMenu:function(e,t){var n=h().getOrDie();tf.position(n,t,{anchor:c}),sf.decloak(l)},onOpenSubmenu:function(e,t,n){var o=h().getOrDie();tf.position(o,n,{anchor:{type:"submenu",item:t}}),sf.decloak(l)},onRepositionMenu:function(e,t,n){var o=h().getOrDie();tf.position(o,t,{anchor:c}),Ce(n,(function(e){tf.position(o,e.triggeredMenu,{anchor:{type:"submenu",item:e.triggeringItem}})}))},onEscape:function(){return Tg.focus(s),sf.close(l),ve.some(!0)}})))}))})).map((function(e){return e.fold((function(){sf.isOpen(o)&&sf.close(o)}),(function(e){sf.cloak(o),sf.open(o,e),i(o)})),o}))}function Ly(e,t,n,o,r,i){var a=Ay.getCoupled(n,"sandbox");return(sf.isOpen(a)?function(e,t,n,o,r,i,a){return sf.close(o),Oy(o)}:Hy)(e,t,n,a,o,r,i)}function Vy(e){sf.getState(e).each((function(e){Kg.repositionMenus(e)}))}function Py(e,t,n){var o=Da(),r=jw(t,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:o.id,role:"listbox"}},behaviours:Cf(e.sandboxBehaviours,[xf.config({store:{mode:"memory",initialValue:t}}),sf.config({onOpen:function(r,i){var a,u,c,s,l,f,d=Ry(e,t);o.link(t.element),e.matchWidth&&(a=d.hotspot,u=i,c=e.useMinWidth,l=Zf.getCurrent(u).getOr(u),f=kt(a.element),c?ft(l.element,"min-width",f+"px"):(s=l.element,_n.set(s,f))),e.onOpen(d,r,i),void 0!==n&&void 0!==n.onOpen&&n.onOpen(r,i)},onClose:function(e,r){o.unlink(t.element),void 0!==n&&void 0!==n.onClose&&n.onClose(e,r)},isPartOf:function(e,n,o){return Ba(n,o)||Ba(t,o)},getAttachPoint:function(){return r().getOrDie()}}),Zf.config({find:function(e){return sf.getState(e).bind((function(e){return Zf.getCurrent(e)}))}}),Zu.config({channels:_(_({},Ls({isExtraPart:C})),Vs({doReposition:Vy}))})])}}function Iy(e){Vy(Ay.getCoupled(e,"sandbox"))}function Fy(){return[Oo("sandboxClasses",[]),wf("sandboxBehaviours",[Zf,Zu,sf,xf])]}function Uy(e){return jf({name:e+"-edge",overrides:function(t){return t.model.manager.edgeActions[e].fold((function(){return{}}),(function(e){return{events:Ji([Sr(ri(),(function(t,n,o){return e(t,o)}),[t]),Sr(ci(),(function(t,n,o){return e(t,o)}),[t]),Sr(si(),(function(t,n,o){o.mouseIsDown.get()&&e(t,o)}),[t])])}}))}})}function jy(e){var t=e.event.raw;return-1===t.type.indexOf("touch")?void 0!==t.clientX?ve.some(t).map((function(e){return Sn(e.clientX,e.clientY)})):ve.none():void 0!==t.touches&&1===t.touches.length?ve.some(t.touches[0]).map((function(e){return Sn(e.clientX,e.clientY)})):ve.none()}function Wy(e){return e.model.minX}function qy(e){return e.model.minY}function Gy(e){return e.model.minX-1}function $y(e){return e.model.minY-1}function Xy(e){return e.model.maxX}function Ky(e){return e.model.maxY}function Yy(e){return e.model.maxX+1}function Jy(e){return e.model.maxY+1}function Qy(e,t,n){return t(e)-n(e)}function Zy(e){return Qy(e,Xy,Wy)}function ex(e){return Qy(e,Ky,qy)}function tx(e){return Zy(e)/2}function nx(e){return ex(e)/2}function ox(e){return e.stepSize}function rx(e){return e.snapToGrid}function ix(e){return e.snapStart}function ax(e){return e.rounded}function ux(e,t){return void 0!==e[t+"-edge"]}function cx(e){return ux(e,"left")}function sx(e){return ux(e,"right")}function lx(e){return ux(e,"top")}function fx(e){return ux(e,"bottom")}function dx(e){return e.model.value.get()}function mx(e,t){return{x:e,y:t}}function gx(e,t){pr(e,aC(),{value:t})}function hx(e,t,n,o){return e<t?e:n<e?n:e===t?t-1:Math.max(t,e-o)}function px(e,t,n,o){return n<e?e:e<t?t:e===n?n+1:Math.min(n,e+o)}function vx(e,t,n){return Math.max(t,Math.min(n,e))}function bx(e){var t=e.min,n=e.max,o=e.range,r=e.value,i=e.step,a=e.snap,u=e.snapStart,c=e.rounded,s=e.hasMinEdge,l=e.hasMaxEdge,f=e.minBound,d=e.maxBound,m=e.screenRange,g=s?t-1:t,h=l?n+1:n;if(r<f)return g;if(d<r)return h;var p,v,b,y,x,w=vx((x=f,(Math.min(d,Math.max(r,x))-x)/m*o+t),g,h);return a&&t<=w&&w<=n?(p=w,v=t,b=n,y=i,u.fold((function(){var e=Math.round((p-v)/y)*y;return vx(v+e,v-1,b+1)}),(function(e){var t=Math.round((p-e)%y/y),n=Math.floor((p-e)/y),o=Math.floor((b-e)/y),r=Math.min(o,n+t);return Math.max(e,e+r*y)}))):c?Math.round(w):w}function yx(e){var t=e.min,n=e.max,o=e.range,r=e.value,i=e.hasMinEdge,a=e.hasMaxEdge,u=e.maxBound,c=e.maxOffset,s=e.centerMinEdge,l=e.centerMaxEdge;return r<t?i?0:s:n<r?a?u:l:(r-t)/o*c}function xx(e){return e.element.dom.getBoundingClientRect()}function wx(e){return xx(e)[uC]}function Cx(e){return xx(e).right}function Sx(e){return xx(e).top}function kx(e){return xx(e).bottom}function _x(e){return xx(e).width}function Ox(e){return xx(e).height}function Ex(e,t){var n=xx(e),o=xx(t);return(n[uC]+n.right)/2-o[uC]}function zx(e,t){var n=xx(e),o=xx(t);return(n.top+n.bottom)/2-o.top}function Tx(e,t){pr(e,aC(),{value:t})}function Mx(e,t,n){return bx({min:Wy(t),max:Xy(t),range:Zy(t),value:n,step:ox(t),snap:rx(t),snapStart:ix(t),rounded:ax(t),hasMinEdge:cx(t),hasMaxEdge:sx(t),minBound:wx(e),maxBound:Cx(e),screenRange:_x(e)})}function Dx(e){return function(t,n){return Tx(t,{x:r=(0<e?px:hx)(dx(o=n).x,Wy(o),Xy(o),ox(o))}),ve.some(r).map(S);var o,r}}function Ax(e,t,n,o,r,i){var a,u,c,s,l,f,d,m,g=(u=i,c=n,s=o,l=r,f=_x(a=t),d=s.bind((function(e){return ve.some(Ex(e,a))})).getOr(0),m=l.bind((function(e){return ve.some(Ex(e,a))})).getOr(f),yx({min:Wy(u),max:Xy(u),range:Zy(u),value:c,hasMinEdge:cx(u),hasMaxEdge:sx(u),minBound:wx(a),minOffset:0,maxBound:Cx(a),maxOffset:f,centerMinEdge:d,centerMaxEdge:m}));return wx(t)-wx(e)+g}function Nx(e,t){pr(e,aC(),{value:t})}function Bx(e,t,n){return bx({min:qy(t),max:Ky(t),range:ex(t),value:n,step:ox(t),snap:rx(t),snapStart:ix(t),rounded:ax(t),hasMinEdge:lx(t),hasMaxEdge:fx(t),minBound:Sx(e),maxBound:kx(e),screenRange:Ox(e)})}function Rx(e){return function(t,n){return Nx(t,{y:r=(0<e?px:hx)(dx(o=n).y,qy(o),Ky(o),ox(o))}),ve.some(r).map(S);var o,r}}function Hx(e,t,n,o,r,i){var a,u,c,s,l,f,d,m,g=(u=i,c=n,s=o,l=r,f=Ox(a=t),d=s.bind((function(e){return ve.some(zx(e,a))})).getOr(0),m=l.bind((function(e){return ve.some(zx(e,a))})).getOr(f),yx({min:qy(u),max:Ky(u),range:ex(u),value:c,hasMinEdge:lx(u),hasMaxEdge:fx(u),minBound:Sx(a),minOffset:0,maxBound:kx(a),maxOffset:f,centerMinEdge:d,centerMaxEdge:m}));return Sx(t)-Sx(e)+g}function Lx(e,t){pr(e,aC(),{value:t})}function Vx(e,t){return{x:e,y:t}}function Px(e,t){return function(n,o){return i=o,a=0<e?px:hx,Lx(n,Vx(u=(r=t)?dx(i).x:a(dx(i).x,Wy(i),Xy(i),ox(i)),r?a(dx(i).y,qy(i),Ky(i),ox(i)):dx(i).y)),ve.some(u).map(S);var r,i,a,u}}function Ix(e){return"<alloy.field."+e+">"}function Fx(e,t){return gl({name:"ColourPicker",configFields:[lo("dom"),Oo("onValidHex",i),Oo("onInvalidHex",i)],factory:function(n){function o(e,t,n){w.getOpt(e).each((function(e){b.setHue(e,n)}))}function r(e,t){C.getOpt(e).each((function(e){v.updateHex(e,t)}))}function a(e,t,n,o){var r=n,i=Ov(t);y.paletteRgba.set(i),y.paletteHue.set(r),Ce(o,(function(o){o(e,t,n)}))}var c,s,l,f,d,m,g,h,p,v=function(e,t,n,o){function r(n,o,r,a,u){var c,s,l=e(HC+"range"),f=[Xb.parts.label({dom:{tag:"label",innerHtml:r,attributes:{"aria-label":a}}}),Xb.parts.field({data:u,factory:ly,inputAttributes:_({type:"text"},"hex"===o?{"aria-live":"polite"}:{}),inputClasses:[t("textfield")],inputBehaviours:Ku([(c=o,s=n,My.config({invalidClass:t("invalid"),notify:{onValidate:function(e){pr(e,RC,{type:c})},onValid:function(e){pr(e,NC,{type:c,value:xf.getValue(e)})},onInvalid:function(e){pr(e,BC,{type:c,value:xf.getValue(e)})}},validator:{validate:function(t){var n=xf.getValue(t),o=s(n)?Hn.value(!0):Hn.error(e("aria.input.invalid"));return Oy(o)},validateOnLoad:!1}})),Yb.config({})]),onSetValue:function(e){My.isInvalid(e)&&My.run(e).get(i)}})],d="hex"!==o?[Xb.parts["aria-descriptor"]({text:l})]:[];return{dom:{tag:"div",attributes:{role:"presentation"}},components:f.concat(d)}}function a(e,t){var n=t.red,o=t.green,r=t.blue;xf.setValue(e,{red:n,green:o,blue:r})}function u(e,t){c.getOpt(e).each((function(e){ft(e.element,"background-color","#"+t.value)}))}var c=Mm({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}});return gl({factory:function(){function i(e){return g[e].get()}function s(e,t){g[e].set(t)}function l(e,t){var n=t.event;"hex"!==n.type?s(n.type,ve.none()):o(e)}function f(e,t){var o,r,c,l,f=t.event;"hex"===f.type?function(e,t){n(e);var o=yv(t);s("hex",ve.some(t));var r=Ov(o);a(e,r),m(r),pr(e,zC,{hex:o}),u(e,o)}(e,f.value):(o=e,r=f.type,c=f.value,l=parseInt(c,10),s(r,ve.some(l)),i("red").bind((function(e){return i("green").bind((function(t){return i("blue").map((function(n){return Sv(e,t,n,1)}))}))})).each((function(e){var t,n,r=(t=o,n=Cv(e),AC.getField(t,"hex").each((function(e){Tg.isFocused(e)||xf.setValue(t,{hex:n.value})})),n);pr(o,zC,{hex:r}),u(o,r)})))}function d(t){return{label:e(HC+t+".label"),description:e(HC+t+".description")}}function m(e){var t=e.red,n=e.green,o=e.blue;s("red",ve.some(t)),s("green",ve.some(n)),s("blue",ve.some(o))}var g={red:Ro(ve.some(255)),green:Ro(ve.some(255)),blue:Ro(ve.some(255)),hex:Ro(ve.some("ffffff"))},h=d("red"),p=d("green"),v=d("blue"),b=d("hex");return qo(AC.sketch((function(n){return{dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[n.field("red",Xb.sketch(r(kv,"red",h.label,h.description,255))),n.field("green",Xb.sketch(r(kv,"green",p.label,p.description,255))),n.field("blue",Xb.sketch(r(kv,"blue",v.label,v.description,255))),n.field("hex",Xb.sketch(r(xv,"hex",b.label,b.description,"ffffff"))),c.asSpec()],formBehaviours:Ku([My.config({invalidClass:t("form-invalid")}),rm("rgb-form-events",[Cr(NC,f),Cr(BC,l),Cr(RC,l)])])}})),{apis:{updateHex:function(e,t){var n;xf.setValue(e,{hex:t.value}),a(e,n=Ov(t)),m(n),u(e,t)}}})},name:"RgbForm",configFields:[],apis:{updateHex:function(e,t,n){e.updateHex(t,n)}},extraApis:{}})}(e,t,n.onValidHex,n.onInvalidHex),b=(g=t,h=EC.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[g("sv-palette-spectrum")]}}),p=EC.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[g("sv-palette-thumb")],innerHtml:"<div class="+g("sv-palette-inner-thumb")+' role="presentation"></div>'}}),gl({factory:function(e){var t=u({x:0,y:0}),n=Ku([Zf.config({find:ve.some}),Tg.config({})]);return EC.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[g("sv-palette")]},model:{mode:"xy",getInitialValue:t},rounded:!1,components:[h,p],onChange:function(e,t,n){pr(e,MC,{value:n})},onInit:function(e,t,n,o){S(n.element.dom,Tv(Zv))},sliderBehaviours:n})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:function(e,t,n){var o=n;S(t.components()[0].element.dom,Tv(_v(Dv(o,100,100))))},setThumb:function(e,t,n){var o=t,r=Av(Ov(n));EC.setValue(o,{x:r.saturation,y:100-r.value})}},extraApis:{}})),y={paletteRgba:Ro(Zv),paletteHue:Ro(0)},x=Mm((s=EC.parts.spectrum({dom:{tag:"div",classes:[(c=t)("hue-slider-spectrum")],attributes:{role:"presentation"}}}),l=EC.parts.thumb({dom:{tag:"div",classes:[c("hue-slider-thumb")],attributes:{role:"presentation"}}}),EC.sketch({dom:{tag:"div",classes:[c("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:u({y:0})},components:[s,l],sliderBehaviours:Ku([Tg.config({})]),onChange:function(e,t,n){pr(e,TC,{value:n})}}))),w=Mm(b.sketch({})),C=Mm(v.sketch({}));function S(e,t){var n,o,r=e.width,i=e.height,a=e.getContext("2d");null!==a&&(a.fillStyle=t,a.fillRect(0,0,r,i),(n=a.createLinearGradient(0,0,r,0)).addColorStop(0,"rgba(255,255,255,1)"),n.addColorStop(1,"rgba(255,255,255,0)"),a.fillStyle=n,a.fillRect(0,0,r,i),(o=a.createLinearGradient(0,0,0,i)).addColorStop(0,"rgba(0,0,0,0)"),o.addColorStop(1,"rgba(0,0,0,1)"),a.fillStyle=o,a.fillRect(0,0,r,i))}return{uid:n.uid,dom:n.dom,components:[w.asSpec(),x.asSpec(),C.asSpec()],behaviours:Ku([rm("colour-picker-events",[Cr(zC,(m=[o,function(e,t,n){x.getOpt(e).each((function(e){EC.setValue(e,{y:100-n/360*100})}))},function(e,t){w.getOpt(e).each((function(e){b.setThumb(e,t)}))}],function(e,t){var n=t.event.hex;a(e,n,Av(Ov(n)).hue,m)})),Cr(MC,(d=[r],function(e,t){var n=t.event.value,o=y.paletteHue.get();a(e,Nv(Dv(o,n.x,100-n.y)),o,d)})),Cr(TC,(f=[o,r],function(e,t){var n=(100-t.event.value.y)/100*360,o=Av(y.paletteRgba.get());a(e,Nv(Dv(n,o.saturation,o.value)),n,f)}))]),Zf.config({find:function(e){return C.getOpt(e)}}),kg.config({mode:"acyclic"})])}}})}function Ux(e){return PC[e]}function jx(e,t,n){return xf.config(qo({store:{mode:"manual",getValue:t,setValue:n}},e.map((function(e){return{store:{initialValue:e}}})).getOr({})))}function Wx(e){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:Ku([Tg.config({ignore:!0}),Yb.config({})])}}function qx(e){return{dom:{tag:"div",classes:["tox-navobj"]},components:[Wx([GC]),e,Wx([$C])],behaviours:Ku([VC(1)])}}function Gx(e,t){pr(e,hi(),{raw:{which:9,shiftKey:t}})}function $x(e,t){var n=t.element;Gr(n,GC)?Gx(e,!0):Gr(n,$C)&&Gx(e,!1)}function Xx(e){return Mb(e,["."+GC,"."+$C].join(","),C)}function Kx(e,t){return YC(document.createElement("canvas"),e,t)}function Yx(e){var t=Kx(e.width,e.height);return KC(t).drawImage(e,0,0),t}function Jx(e){return e.naturalWidth||e.width}function Qx(e){return e.naturalHeight||e.height}function Zx(e,t,n){return t=t||"image/png",v(HTMLCanvasElement.prototype.toBlob)?new wy((function(o,r){e.toBlob((function(e){e?o(e):r()}),t,n)})):(o=e.toDataURL(t,n),new wy((function(e,t){(function(){var e=o.split(","),t=/data:([^;]+)/.exec(e[0]);if(!t)return ve.none();for(var n=t[1],r=e[1],i=atob(r),a=i.length,u=Math.ceil(a/1024),c=new Array(u),s=0;s<u;++s){for(var l=1024*s,f=Math.min(1024+l,a),d=new Array(f-l),m=l,g=0;m<f;++g,++m)d[g]=i[m].charCodeAt(0);c[s]=new Uint8Array(d)}return ve.some(new Blob(c,{type:n}))})().fold((function(){t("uri is not base64: "+o)}),e)})));var o}function ew(e,t,n){function o(t,n){return e.then((function(e){return e.toDataURL(t||"image/png",n)}))}return{getType:u(t.type),toBlob:function(){return wy.resolve(t)},toDataURL:u(n),toBase64:function(){return n.split(",")[1]},toAdjustedBlob:function(t,n){return e.then((function(e){return Zx(e,t,n)}))},toAdjustedDataURL:o,toAdjustedBase64:function(e,t){return o(e,t).then((function(e){return e.split(",")[1]}))},toCanvas:function(){return e.then(Yx)}}}function tw(e,t){return Zx(e,t).then((function(t){return ew(wy.resolve(e),t,e.toDataURL())}))}function nw(e,t,n){var o="string"==typeof e?parseFloat(e):e;return n<o?o=n:o<t&&(o=t),o}function ow(e,t){for(var n=[],o=new Array(25),r=0;r<5;r++){for(var i=0;i<5;i++)n[i]=t[i+5*r];for(i=0;i<5;i++){for(var a=0,u=0;u<5;u++)a+=e[i+5*u]*n[u];o[i+5*r]=a}}return o}function rw(e,t){return e.toCanvas().then((function(n){return ZC(n,e.getType(),t)}))}function iw(e){return function(t,n){return rw(t,e([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1],n))}}function aw(e,t){void 0===t&&(t=2);var n=Math.pow(10,t),o=Math.round(e*n);return Math.ceil(o/n)}function uw(e){return eS(e)}function cw(e){return oS(e)}function sw(e,t){return rS(e,t)}function lw(e,t){return tS(e,t)}function fw(e,t){return nS(e,t)}function dw(e,t){return o=t,(n=e).toCanvas().then((function(e){return cS(e,n.getType(),o)}));var n,o}function mw(e,t){return o=t,(n=e).toCanvas().then((function(e){return uS(e,n.getType(),o)}));var n,o}function gw(e,t,n){return Lm(e,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:n},t)}function hw(e,t){return gw(e,t,[])}function pw(e,t){return gw(e,t,[Og.config({})])}function vw(e,t,n){return{dom:{tag:"span",innerHtml:n.translate(e),classes:[t+"__select-label"]},behaviours:Ku([Og.config({})])}}function bw(e,t,n){function o(e,t){var n=xf.getValue(e);return Tg.focus(n),pr(n,"keydown",{raw:t.event.raw}),Gw.close(n),ve.some(!0)}var r=Ro(i),a=e.text.map((function(e){return Mm(vw(e,t,n.providers))})),u=e.icon.map((function(e){return Mm(pw(e,n.providers.icons))})),c=e.role.fold((function(){return{}}),(function(e){return{role:e}})),s=e.tooltip.fold((function(){return{}}),(function(e){var t=n.providers.translate(e);return{title:t,"aria-label":t}})),l=Lm("chevron-down",{tag:"div",classes:[t+"__select-chevron"]},n.providers.icons);return Mm(Gw.sketch(_(_(_({},e.uid?{uid:e.uid}:{}),c),{dom:{tag:"button",classes:[t,t+"--select"].concat(R(e.classes,(function(e){return t+"--"+e}))),attributes:_({},s)},components:Uv([u.map((function(e){return e.asSpec()})),a.map((function(e){return e.asSpec()})),ve.some(l)]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:Ku(E(E([],e.dropdownBehaviours,!0),[Pv((function(){return e.disabled||n.providers.isDisabled()})),ov(),$w.config({}),Og.config({}),rm("dropdown-events",[iv(e,r),av(e,r)]),rm("menubutton-update-display-text",[Cr(dS,(function(e,t){a.bind((function(t){return t.getOpt(e)})).each((function(e){Og.set(e,[Zr(n.providers.translate(t.event.text))])}))})),Cr(mS,(function(e,t){u.bind((function(t){return t.getOpt(e)})).each((function(e){Og.set(e,[pw(t.event.icon,n.providers.icons)])}))}))])],!1)),eventOrder:qo(fS,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:Ku([kg.config({mode:"special",onLeft:o,onRight:o})]),lazySink:n.getSink,toggleClass:t+"--active",parts:{menu:Uh(0,e.columns,e.presets)},fetch:function(t){return _y(y(e.fetch,t))}}))).asSpec()}function yw(e){return"separator"===e.type}function xw(e,t,n,o){var r=Ar("primary-menu"),i=hS(e,n.shared.providers.menuItems());if(0===i.items.length)return ve.none();var a=zb(r,i.items,t,n,o),u=te(i.menus,(function(e,o){return zb(o,e,t,n,!1)})),c=qo(u,ur(r,a));return ve.from(Kg.tieredData(r,c,i.expansions))}function ww(e){return{isDisabled:function(){return id.isDisabled(e)},setDisabled:function(t){return id.set(e,t)},setActive:function(t){var n=e.element;t?(Wr(n,"tox-tbtn--enabled"),ot(n,"aria-pressed",!0)):(qr(n,"tox-tbtn--enabled"),ct(n,"aria-pressed"))},isActive:function(){return Gr(e.element,"tox-tbtn--enabled")}}}function Cw(e,t,n,o){return bw({text:e.text,icon:e.icon,tooltip:e.tooltip,role:o,fetch:function(t,o){e.fetch((function(e){o(xw(e,fp.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:e.onSetup,getApi:ww,columns:1,presets:"normal",classes:[],dropdownBehaviours:[Yb.config({})]},t,n.shared)}function Sw(e,t,n,o,r,i){void 0===n&&(n=[]);var a=t.fold((function(){return{}}),(function(e){return{action:e}})),u=_({buttonBehaviours:Ku([Pv((function(){return e.disabled||i.isDisabled()})),ov(),Yb.config({}),rm("button press",[wr("click"),wr("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),c=qo(u,{dom:o});return qo(c,{components:r})}function kw(e,t,n,o){void 0===o&&(o=[]);var r={tag:"button",classes:["tox-tbtn"],attributes:e.tooltip.map((function(e){return{"aria-label":n.translate(e),title:n.translate(e)}})).getOr({})},i=e.icon.map((function(e){return hw(e,n.icons)}));return Sw(e,t,o,r,Uv([i]),n)}function _w(e,t,n,o){void 0===o&&(o=[]);var r=kw(e,ve.some(t),n,o);return th.sketch(r)}function Ow(e,t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r=[]);var i=n.translate(e.text),a=e.icon?e.icon.map((function(e){return hw(e,n.icons)})):ve.none(),u=a.isSome()?Uv([a]):[],c=a.isSome()?{}:{innerHtml:i},s=E(E(E(E([],e.primary||e.borderless?["tox-button"]:["tox-button","tox-button--secondary"],!0),a.isSome()?["tox-button--icon"]:[],!0),e.borderless?["tox-button--naked"]:[],!0),r,!0);return Sw(e,t,o,_(_({tag:"button",classes:s},c),{attributes:{title:i}}),u,n)}function Ew(e,t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r=[]);var i=Ow(e,ve.some(t),n,o,r);return th.sketch(i)}function zw(e,t){return function(n){"custom"===t?pr(n,oy,{name:e,value:{}}):"submit"===t?hr(n,ry):"cancel"===t?hr(n,ny):console.error("Unknown button type: ",t)}}function Tw(e,t,n){if("menu"===t){var o=e,r=Mm(Cw(_(_({},e),{onSetup:function(t){return t.setDisabled(e.disabled),i},fetch:(a=o.items,u=function(){return r},c=n,function(e){e(R(a,(function(e){var t,n,o=e.text.fold((function(){return{}}),(function(e){return{text:e}}));return _(_({type:e.type,active:!1},o),{onAction:function(e){var t=!e.isActive();e.setActive(t),n.storage.set(t),c.shared.getSink().each((function(e){u().getOpt(e).each((function(e){vu(e.element),pr(e,oy,{name:n.name,value:n.storage.get()})}))}))},onSetup:(t=n=e,function(e){e.setActive(t.storage.get())})})})))})}),"tox-tbtn",n,ve.none()));return r.asSpec()}var a,u,c;if("custom"===t||"cancel"===t||"submit"===t){var s=zw(e.name,t);return Ew(_(_({},e),{borderless:!1}),s,n.shared.providers,[])}console.error("Unknown footer button type: ",t)}function Mw(e,t){return Ff({factory:Xb,name:e,overrides:function(e){return{fieldBehaviours:Ku([rm("coupled-input-behaviour",[Cr(vi(),(function(n){rl(n,e,t).bind(Zf.getCurrent).each((function(t){rl(n,e,"lock").each((function(o){Ag.isOn(o)&&e.onLockedChange(n,t,o)}))}))}))])])}}})}function Dw(e){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(e);if(null===t)return Hn.error(e);var n=parseFloat(t[1]),o=t[2];return Hn.value({value:n,unit:o})}function Aw(e,t){function n(e){return Ee(o,e)}var o={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1};return e.unit===t?ve.some(e.value):n(e.unit)&&n(t)?o[e.unit]===o[t]?ve.some(e.value):ve.some(e.value/o[e.unit]*o[t]):ve.none()}function Nw(e){return ve.none()}function Bw(e,t){function n(e){return Lm(e,{tag:"span",classes:["tox-icon","tox-lock-icon__"+e]},t.icons)}function o(e){return{dom:{tag:"div",classes:["tox-form__group"]},components:e}}function r(n){return Xb.parts.field({factory:ly,inputClasses:["tox-textfield"],inputBehaviours:Ku([id.config({disabled:function(){return e.disabled||t.isDisabled()}}),ov(),Yb.config({}),rm("size-input-events",[Cr(mi(),(function(e,t){pr(e,u,{isField1:n})})),Cr(bi(),(function(t,n){pr(t,ey,{name:e.name})}))])]),selectOnFocus:!1})}function i(e){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}}var a=Nw,u=Ar("ratio-event"),c=bS.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(e.label.getOr("Constrain proportions"))}},components:[n("lock"),n("unlock")],buttonBehaviours:Ku([id.config({disabled:function(){return e.disabled||t.isDisabled()}}),ov(),Yb.config({})])}),s=bS.parts.field1(o([Xb.parts.label(i("Width")),r(!0)])),l=bS.parts.field2(o([Xb.parts.label(i("Height")),r(!1)]));return bS.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[s,l,o([i(" "),c])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(e,t,n){Dw(xf.getValue(e)).each((function(e){a(e).each((function(e){var n,o,r,i;xf.setValue(t,(i=-1!==(i=(n=e).value.toFixed((o=n.unit)in(r={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4})?r[o]:1)).indexOf(".")?i.replace(/\.?0*$/,""):i)+n.unit)}))}))},coupledFieldBehaviours:Ku([id.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){bS.getField1(e).bind(Xb.getField).each(id.disable),bS.getField2(e).bind(Xb.getField).each(id.disable),bS.getLock(e).each(id.disable)},onEnabled:function(e){bS.getField1(e).bind(Xb.getField).each(id.enable),bS.getField2(e).bind(Xb.getField).each(id.enable),bS.getLock(e).each(id.enable)}}),ov(),rm("size-input-events2",[Cr(u,(function(e,t){var n,o,r,i=t.event.isField1,u=i?bS.getField1(e):bS.getField2(e),c=i?bS.getField2(e):bS.getField1(e),s=u.map(xf.getValue).getOr("");n=c.map(xf.getValue).getOr(""),o=Dw(s).toOptional(),r=Dw(n).toOptional(),a=ze(o,r,(function(e,t){return Aw(e,t.unit).map((function(e){return t.value/e})).map((function(e){return n=e,o=t.unit,function(e){return Aw(e,o).map((function(e){return{value:e*n,unit:o}}))};var n,o})).getOr(Nw)})).getOr(Nw)}))])])})}function Rw(e){if(p(e.changedTouches))for(var t="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<t.length;n++)e[t[n]]=e.changedTouches[0][t[n]]}function Hw(e,t){return{uid:e.uid,dom:e.dom,components:t,behaviours:Gs(e.formBehaviours,[xf.config({store:{mode:"manual",getValue:function(t){return te(ul(t,e),(function(e,t){return e().bind((function(e){var n=Zf.getCurrent(e),o=new Error("Cannot find a current component to extract the value from for form part '"+t+"': "+Dr(e.element));return n.fold((function(){return Hn.error(o)}),Hn.value)})).map(xf.getValue)}))},setValue:function(t,n){ee(n,(function(n,o){rl(t,e,o).each((function(e){Zf.getCurrent(e).each((function(e){xf.setValue(e,n)}))}))}))}}})]),apis:{getField:function(t,n){return rl(t,e,n).bind(Zf.getCurrent)}}}}function Lw(){return Zf.config({find:ve.some})}function Vw(e){return t=Tr,n=Mr,jx(e,(function(e){return t(e.element)}),(function(e,t){return n(e.element,t)}));var t,n}(xy=yy=yy||{})[xy.HighlightFirst=0]="HighlightFirst",xy[xy.HighlightNone=1]="HighlightNone";var Pw,Iw,Fw,Uw,jw=function(e,t){return e.getSystem().getByUid(t.uid+"-"+Ny()).map((function(e){return function(){return Hn.value(e)}})).getOrThunk((function(){return t.lazySink.fold((function(){return function(){return Hn.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(t){return function(){return t(e)}}))}))},Ww=u([lo("dom"),lo("fetch"),Wa("onOpen"),qa("onExecute"),Oo("getHotspot",ve.some),Oo("getAnchorOverrides",u({})),Nc(),Ws("dropdownBehaviours",[Ag,Ay,kg,Tg]),lo("toggleClass"),Oo("eventOrder",{}),yo("lazySink"),Oo("matchWidth",!1),Oo("useMinWidth",!1),yo("role")].concat(Fy())),qw=u([Uf({schema:[Fa()],name:"menu",defaults:function(e){return{onExecute:e.onExecute}}}),By()]),Gw=hl({name:"Dropdown",configFields:Ww(),partFields:qw(),factory:function(e,t,n,o){function r(e){sf.getState(e).each((function(e){Kg.highlightPrimary(e)}))}function a(e,t){return vr(e),ve.some(!0)}var u,s={expand:function(t){Ag.isOn(t)||Ly(e,c,t,o,i,yy.HighlightNone).get(i)},open:function(t){Ag.isOn(t)||Ly(e,c,t,o,i,yy.HighlightFirst).get(i)},isOpen:Ag.isOn,close:function(t){Ag.isOn(t)&&Ly(e,c,t,o,i,yy.HighlightFirst).get(i)},repositionMenus:function(e){Ag.isOn(e)&&Iy(e)}};return{uid:e.uid,dom:e.dom,components:t,behaviours:Gs(e.dropdownBehaviours,[Ag.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),Ay.config({others:{sandbox:function(t){return Py(e,t,{onOpen:function(){return Ag.on(t)},onClose:function(){return Ag.off(t)}})}}}),kg.config({mode:"special",onSpace:a,onEnter:a,onDown:function(e,t){return Gw.isOpen(e)?r(Ay.getCoupled(e,"sandbox")):Gw.open(e),ve.some(!0)},onEscape:function(e,t){return Gw.isOpen(e)?(Gw.close(e),ve.some(!0)):ve.none()}}),Tg.config({})]),events:mm(ve.some((function(t){Ly(e,c,t,o,r,yy.HighlightFirst).get(i)}))),eventOrder:_(_({},e.eventOrder),((u={})[Ti()]=["disabling","toggling","alloy.base.behaviour"],u)),apis:s,domModification:{attributes:_(_({"aria-haspopup":"true"},e.role.fold((function(){return{}}),(function(e){return{role:e}}))),"button"===e.dom.tag?{type:ie(e.dom,"attributes").bind((function(e){return ie(e,"type")})).getOr("button")}:{})}}},apis:{open:function(e,t){return e.open(t)},expand:function(e,t){return e.expand(t)},close:function(e,t){return e.close(t)},isOpen:function(e,t){return e.isOpen(t)},repositionMenus:function(e,t){return e.repositionMenus(t)}}}),$w=gu({fields:[],name:"unselecting",active:Object.freeze({__proto__:null,events:function(){return Ji([xr(Si(),S)])},exhibit:function(){return Pr({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})}})}),Xw=Ar("color-input-change"),Kw=Ar("color-swatch-change"),Yw=Ar("color-picker-cancel"),Jw=jf({schema:[lo("dom")],name:"label"}),Qw=Uy("top-left"),Zw=Uy("top"),eC=Uy("top-right"),tC=Uy("right"),nC=Uy("bottom-right"),oC=Uy("bottom"),rC=Uy("bottom-left"),iC=[Jw,Uy("left"),tC,Zw,oC,Qw,eC,rC,nC,Ff({name:"thumb",defaults:u({dom:{styles:{position:"absolute"}}}),overrides:function(e){return{events:Ji([_r(ri(),e,"spectrum"),_r(ii(),e,"spectrum"),_r(ai(),e,"spectrum"),_r(ci(),e,"spectrum"),_r(si(),e,"spectrum"),_r(fi(),e,"spectrum")])}}}),Ff({schema:[ar("mouseIsDown",(function(){return Ro(!1)}))],name:"spectrum",overrides:function(e){function t(t,o){return n.getValueFromEvent(o).map((function(o){return n.setValueFrom(t,e,o)}))}var n=e.model.manager;return{behaviours:Ku([kg.config({mode:"special",onLeft:function(t){return n.onLeft(t,e)},onRight:function(t){return n.onRight(t,e)},onUp:function(t){return n.onUp(t,e)},onDown:function(t){return n.onDown(t,e)}}),Tg.config({})]),events:Ji([Cr(ri(),t),Cr(ii(),t),Cr(ci(),t),Cr(si(),(function(n,o){e.mouseIsDown.get()&&t(n,o)}))])}}})],aC=u("slider.change.value"),uC="left",cC=Dx(-1),sC=Dx(1),lC=ve.none,fC=ve.none,dC={"top-left":ve.none(),top:ve.none(),"top-right":ve.none(),right:ve.some((function(e,t){gx(e,{x:Yy(t)})})),"bottom-right":ve.none(),bottom:ve.none(),"bottom-left":ve.none(),left:ve.some((function(e,t){gx(e,{x:Gy(t)})}))},mC=Object.freeze({__proto__:null,setValueFrom:function(e,t,n){var o=Mx(e,t,n);return Tx(e,{x:o}),o},setToMin:function(e,t){Tx(e,{x:Wy(t)})},setToMax:function(e,t){Tx(e,{x:Xy(t)})},findValueOfOffset:Mx,getValueFromEvent:function(e){return jy(e).map((function(e){return e.left}))},findPositionOfValue:Ax,setPositionFromValue:function(e,t,n,o){var r=dx(n),i=Ax(e,o.getSpectrum(e),r.x,o.getLeftEdge(e),o.getRightEdge(e),n),a=kt(t.element)/2;ft(t.element,"left",i-a+"px")},onLeft:cC,onRight:sC,onUp:lC,onDown:fC,edgeActions:dC}),gC=ve.none,hC=ve.none,pC=Rx(-1),vC=Rx(1),bC={"top-left":ve.none(),top:ve.some((function(e,t){gx(e,{y:$y(t)})})),"top-right":ve.none(),right:ve.none(),"bottom-right":ve.none(),bottom:ve.some((function(e,t){gx(e,{y:Jy(t)})})),"bottom-left":ve.none(),left:ve.none()},yC=Object.freeze({__proto__:null,setValueFrom:function(e,t,n){var o=Bx(e,t,n);return Nx(e,{y:o}),o},setToMin:function(e,t){Nx(e,{y:qy(t)})},setToMax:function(e,t){Nx(e,{y:Ky(t)})},findValueOfOffset:Bx,getValueFromEvent:function(e){return jy(e).map((function(e){return e.top}))},findPositionOfValue:Hx,setPositionFromValue:function(e,t,n,o){var r=dx(n),i=Hx(e,o.getSpectrum(e),r.y,o.getTopEdge(e),o.getBottomEdge(e),n),a=xt(t.element)/2;ft(t.element,"top",i-a+"px")},onLeft:gC,onRight:hC,onUp:pC,onDown:vC,edgeActions:bC}),xC=jy,wC=Px(-1,!1),CC=Px(1,!1),SC=Px(-1,!0),kC=Px(1,!0),_C={"top-left":ve.some((function(e,t){gx(e,mx(Gy(t),$y(t)))})),top:ve.some((function(e,t){gx(e,mx(tx(t),$y(t)))})),"top-right":ve.some((function(e,t){gx(e,mx(Yy(t),$y(t)))})),right:ve.some((function(e,t){gx(e,mx(Yy(t),nx(t)))})),"bottom-right":ve.some((function(e,t){gx(e,mx(Yy(t),Jy(t)))})),bottom:ve.some((function(e,t){gx(e,mx(tx(t),Jy(t)))})),"bottom-left":ve.some((function(e,t){gx(e,mx(Gy(t),Jy(t)))})),left:ve.some((function(e,t){gx(e,mx(Gy(t),nx(t)))}))},OC=Object.freeze({__proto__:null,setValueFrom:function(e,t,n){var o=Vx(Mx(e,t,n.left),Bx(e,t,n.top));return Lx(e,o),o},setToMin:function(e,t){Lx(e,Vx(Wy(t),qy(t)))},setToMax:function(e,t){Lx(e,Vx(Xy(t),Ky(t)))},getValueFromEvent:xC,setPositionFromValue:function(e,t,n,o){var r=dx(n),i=Ax(e,o.getSpectrum(e),r.x,o.getLeftEdge(e),o.getRightEdge(e),n),a=Hx(e,o.getSpectrum(e),r.y,o.getTopEdge(e),o.getBottomEdge(e),n),u=kt(t.element)/2,c=xt(t.element)/2;ft(t.element,"left",i-u+"px"),ft(t.element,"top",a-c+"px")},onLeft:wC,onRight:CC,onUp:SC,onDown:kC,edgeActions:_C}),EC=hl({name:"Slider",configFields:[Oo("stepSize",1),Oo("onChange",i),Oo("onChoose",i),Oo("onInit",i),Oo("onDragStart",i),Oo("onDragEnd",i),Oo("snapToGrid",!1),Oo("rounded",!0),yo("snapStart"),fo("model",co("mode",{x:[Oo("minX",0),Oo("maxX",100),ar("value",(function(e){return Ro(e.mode.minX)})),lo("getInitialValue"),Xa("manager",mC)],y:[Oo("minY",0),Oo("maxY",100),ar("value",(function(e){return Ro(e.mode.minY)})),lo("getInitialValue"),Xa("manager",yC)],xy:[Oo("minX",0),Oo("maxX",100),Oo("minY",0),Oo("maxY",100),ar("value",(function(e){return Ro({x:e.mode.minX,y:e.mode.minY})})),lo("getInitialValue"),Xa("manager",OC)]})),Ws("sliderBehaviours",[kg,xf]),ar("mouseIsDown",(function(){return Ro(!1)}))],partFields:iC,factory:function(e,t,n,o){function r(t){return il(t,e,"thumb")}function i(t){return il(t,e,"spectrum")}function a(t){return rl(t,e,"left-edge")}function u(t){return rl(t,e,"right-edge")}function c(t){return rl(t,e,"top-edge")}function s(t){return rl(t,e,"bottom-edge")}function l(t,n){v.setPositionFromValue(t,n,e,{getLeftEdge:a,getRightEdge:u,getTopEdge:c,getBottomEdge:s,getSpectrum:i})}function f(e,t){p.value.set(t),l(e,r(e))}function d(t){var n=e.mouseIsDown.get();e.mouseIsDown.set(!1),n&&rl(t,e,"thumb").each((function(n){var o=p.value.get();e.onChoose(t,n,o)}))}function m(t,n){n.stop(),e.mouseIsDown.set(!0),e.onDragStart(t,r(t))}function g(t,n){n.stop(),e.onDragEnd(t,r(t)),d(t)}var h,p=e.model,v=p.manager;return{uid:e.uid,dom:e.dom,components:t,behaviours:Gs(e.sliderBehaviours,[kg.config({mode:"special",focusIn:function(t){return rl(t,e,"spectrum").map(kg.focusIn).map(S)}}),xf.config({store:{mode:"manual",getValue:function(e){return p.value.get()}}}),Zu.config({channels:((h={})[df()]={onReceive:d},h)})]),events:Ji([Cr(aC(),(function(t,n){!function(t,n){f(t,n);var o=r(t);e.onChange(t,o,n),ve.some(!0)}(t,n.event.value)})),Qi((function(t,n){var o=p.getInitialValue();p.value.set(o);var a=r(t);l(t,a);var u=i(t);e.onInit(t,a,u,p.value.get())})),Cr(ri(),m),Cr(ai(),g),Cr(ci(),m),Cr(fi(),g)]),apis:{resetToMin:function(t){v.setToMin(t,e)},resetToMax:function(t){v.setToMax(t,e)},setValue:f,refresh:l},domModification:{styles:{position:"relative"}}}},apis:{setValue:function(e,t,n){e.setValue(t,n)},resetToMin:function(e,t){e.resetToMin(t)},resetToMax:function(e,t){e.resetToMax(t)},refresh:function(e,t){e.refresh(t)}}}),zC=Ar("rgb-hex-update"),TC=Ar("slider-update"),MC=Ar("palette-update"),DC=[Ws("formBehaviours",[xf])],AC={getField:Lr((function(e,t,n){return e.getField(t,n)})),sketch:function(e){var t,n={field:function(e,n){return t.push(e),Zs("form",Ix(e),n)},record:u(t=[])},o=e(n),r=R(n.record(),(function(e){return Ff({name:e,pname:Ix(e)})}));return ml("form",DC,r,Hw,o)}},NC=Ar("valid-input"),BC=Ar("invalid-input"),RC=Ar("validating-input"),HC="colorcustom.rgb.",LC=function(e){return Zf.config({find:e.getOpt})},VC=function(e){return Zf.config({find:function(t){return Ye(t.element,e).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}})},PC={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},IC=tinymce.util.Tools.resolve("tinymce.Resource"),FC=tinymce.util.Tools.resolve("tinymce.util.Tools"),UC=Ko([Oo("preprocess",c),Oo("postprocess",c)]),jC=function(e,t){var n=uo("RepresentingConfigs.memento processors",UC,t);return xf.config({store:{mode:"manual",getValue:function(t){var o=e.get(t),r=xf.getValue(o);return n.postprocess(r)},setValue:function(t,o){var r=n.preprocess(o),i=e.get(t);xf.setValue(i,r)}}})},WC=jx,qC=function(e){return xf.config({store:{mode:"memory",initialValue:e}})},GC=Ar("alloy-fake-before-tabstop"),$C=Ar("alloy-fake-after-tabstop"),XC=!(ln().browser.isIE()||ln().browser.isEdge()),KC=function(e){return e.getContext("2d")},YC=function(e,t,n){return e.width=t,e.height=n,e},JC=function(e){URL.revokeObjectURL(e.src)},QC=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],ZC=function(e,t,n){var o=KC(e),r=function(e){for(var t,o,r,i,a=e.data,u=n[0],c=n[1],s=n[2],l=n[3],f=n[4],d=n[5],m=n[6],g=n[7],h=n[8],p=n[9],v=n[10],b=n[11],y=n[12],x=n[13],w=n[14],C=n[15],S=n[16],k=n[17],_=n[18],O=n[19],E=0;E<a.length;E+=4)t=a[E],o=a[E+1],r=a[E+2],i=a[E+3],a[E]=t*u+o*c+r*s+i*l+f,a[E+1]=t*d+o*m+r*g+i*h+p,a[E+2]=t*v+o*b+r*y+i*x+w,a[E+3]=t*C+o*S+r*k+i*_+O;return e}(o.getImageData(0,0,e.width,e.height));return o.putImageData(r,0,0),tw(e,t)},eS=(Pw=[-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0,0,0,0,0,1],function(e){return rw(e,Pw)}),tS=iw((function(e,t){return ow(e,[1,0,0,0,t=nw(255*t,-255,255),0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1])})),nS=iw((function(e,t){var n;return t=nw(t,-1,1),ow(e,[(n=(t*=100)<0?127+t/100*127:127*(0==(n=t%1)?QC[t]:QC[Math.floor(t)]*(1-n)+QC[Math.floor(t)+1]*n)+127)/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1])})),oS=(Iw=[0,-1,0,-1,5,-1,0,-1,0],function(e){return n=Iw,(t=e).toCanvas().then((function(e){return o=e,r=t.getType(),i=n,u=function(e,t,n){for(var o=function(e,t,n){return n<e?e=n:e<t&&(e=t),e},r=Math.round(Math.sqrt(n.length)),i=Math.floor(r/2),a=e.data,u=t.data,c=e.width,s=e.height,l=0;l<s;l++)for(var f=0;f<c;f++){for(var d=0,m=0,g=0,h=0;h<r;h++)for(var p=0;p<r;p++){var v=o(f+p-i,0,c-1),b=4*(o(l+h-i,0,s-1)*c+v),y=n[h*r+p];d+=a[b]*y,m+=a[1+b]*y,g+=a[2+b]*y}var x=4*(l*c+f);u[x]=o(d,0,255),u[1+x]=o(m,0,255),u[2+x]=o(g,0,255)}return t}((a=KC(o)).getImageData(0,0,o.width,o.height),a.getImageData(0,0,o.width,o.height),i),a.putImageData(u,0,0),tw(o,r);var o,r,i,a,u}));var t,n}),rS=(Fw=function(e,t){return 255*Math.pow(e/255,1-t)},function(e,t){return e.toCanvas().then((function(n){return function(e,t,n){for(var o=KC(e),r=new Array(256),i=0;i<r.length;i++)r[i]=Fw(i,n);var a=function(e,t){for(var n=e.data,o=0;o<n.length;o+=4)n[o]=t[n[o]],n[o+1]=t[n[o+1]],n[o+2]=t[n[o+2]];return e}(o.getImageData(0,0,e.width,e.height),r);return o.putImageData(a,0,0),tw(e,t)}(n,e.getType(),t)}))}),iS=function(e,t,n){var o=Jx(e),r=Qx(e),i=t/o,a=n/r,u=!1;(i<.5||2<i)&&(i=i<.5?.5:2,u=!0),(a<.5||2<a)&&(a=a<.5?.5:2,u=!0);var c=aS(e,i,a);return u?c.then((function(e){return iS(e,t,n)})):c},aS=function(e,t,n){return new wy((function(o){var r=Jx(e),i=Qx(e),a=Math.floor(r*t),u=Math.floor(i*n),c=Kx(a,u);KC(c).drawImage(e,0,0,r,i,0,0,a,u),o(c)}))},uS=function(e,t,n){var o=(n<0?360+n:n)*Math.PI/180,r=e.width,i=e.height,a=Math.sin(o),u=Math.cos(o),c=aw(Math.abs(r*u)+Math.abs(i*a)),s=aw(Math.abs(r*a)+Math.abs(i*u)),l=Kx(c,s),f=KC(l);return f.translate(c/2,s/2),f.rotate(o),f.drawImage(e,-r/2,-i/2),tw(l,t)},cS=function(e,t,n){var o=Kx(e.width,e.height),r=KC(o);return"v"===n?(r.scale(1,-1),r.drawImage(e,0,-o.height)):(r.scale(-1,1),r.drawImage(e,-o.width,0)),tw(o,t)},sS=function(e,t,n,o,r,i){var a=Kx(r,i);return KC(a).drawImage(e,-n,-o),tw(a,t)},lS=Ar("toolbar.button.execute"),fS=((Uw={})[Ti()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],Uw),dS=Ar("update-menu-text"),mS=Ar("update-menu-icon"),gS={type:"separator"},hS=function(e,t){var n,o,r;return V((n=l(e)?e.split(" "):e,o=t,0<(r=P(n,(function(e,t){return l(t)?""===t?e:"|"===t?0<e.length&&!yw(e[e.length-1])?e.concat([gS]):e:Ee(o,t.toLowerCase())?e.concat([o[t.toLowerCase()]]):e:e.concat([t])}),[])).length&&yw(r[r.length-1])&&r.pop(),r),(function(e,n){var o,r,i,a,u,c,s=function(e){if(yw(e))return e;var t=ie(e,"value").getOrThunk((function(){return Ar("generated-menu-item")}));return qo({value:t},e)}(n),l=(r=t,Ee(o=s,"getSubmenuItems")?(a=r,u=(i=o).getSubmenuItems(),c=hS(u,a),{item:i,menus:qo(c.menus,ur(i.value,c.items)),expansions:qo(c.expansions,ur(i.value,i.value))}):{item:o,menus:{},expansions:{}});return{menus:qo(e.menus,l.menus),items:[l.item].concat(e.items),expansions:qo(e.expansions,l.expansions)}}),{menus:{},expansions:{},items:[]})},pS=u([Oo("field1Name","field1"),Oo("field2Name","field2"),Ga("onLockedChange"),Ua(["lockClass"]),Oo("locked",!1),wf("coupledFieldBehaviours",[Zf,xf])]),vS=u([Mw("field1","field2"),Mw("field2","field1"),Ff({factory:th,schema:[lo("dom")],name:"lock",overrides:function(e){return{buttonBehaviours:Ku([Ag.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])}}})]),bS=hl({name:"FormCoupledInputs",configFields:pS(),partFields:vS(),factory:function(e,t,n,o){return{uid:e.uid,dom:e.dom,components:t,behaviours:Cf(e.coupledFieldBehaviours,[Zf.config({find:ve.some}),xf.config({store:{mode:"manual",getValue:function(t){var n=sl(t,e,["field1","field2"]),o={};return o[e.field1Name]=xf.getValue(n.field1()),o[e.field2Name]=xf.getValue(n.field2()),o},setValue:function(t,n){var o=sl(t,e,["field1","field2"]);ae(n,e.field1Name)&&xf.setValue(o.field1(),n[e.field1Name]),ae(n,e.field2Name)&&xf.setValue(o.field2(),n[e.field2Name])}}})]),apis:{getField1:function(t){return rl(t,e,"field1")},getField2:function(t){return rl(t,e,"field2")},getLock:function(t){return rl(t,e,"lock")}}}},apis:{getField1:function(e,t){return e.getField1(t)},getField2:function(e,t){return e.getField2(t)},getLock:function(e,t){return e.getLock(t)}}}),yS={undo:u(Ar("undo")),redo:u(Ar("redo")),zoom:u(Ar("zoom")),back:u(Ar("back")),apply:u(Ar("apply")),swap:u(Ar("swap")),transform:u(Ar("transform")),tempTransform:u(Ar("temp-transform")),transformApply:u(Ar("transform-apply"))},xS=u("save-state"),wS=u("disable"),CS=u("enable"),SS={formActionEvent:oy,saveState:xS,disable:wS,enable:CS},kS=tinymce.util.Tools.resolve("tinymce.geom.Rect"),_S=tinymce.util.Tools.resolve("tinymce.util.Observable"),OS=tinymce.util.Tools.resolve("tinymce.util.VK");function ES(e,t,n,o,r){return _w({name:e,icon:ve.some(t),disabled:n,tooltip:ve.some(e),primary:!1,borderless:!1},o,r)}function zS(e,t){t?id.enable(e):id.disable(e)}var TS=0,MS=function(e,t,n,o,r){function i(e,t){return{x:t.x-e.x,y:t.y-e.y,w:t.w,h:t.h}}function a(t,o,r,a){var u=o.x+r*t.deltaX,c=o.y+a*t.deltaY,s=Math.max(20,o.w+r*t.deltaW),l=Math.max(20,o.h+a*t.deltaH),f=(e=kS.clamp({x:u,y:c,w:s,h:l},n,"move"===t.name),i(n,e));y.fire("updateRect",{rect:f}),v(f)}function u(t){c(e=t)}function c(e){function n(e,t){Ta(m,"#"+d+"-"+e).each((function(e){dt(e,{left:t.x+"px",top:t.y+"px",width:Math.max(0,t.w)+"px",height:Math.max(0,t.h)+"px"})}))}Ce(g,(function(t){Ta(m,"#"+d+"-"+t.name).each((function(n){dt(n,{left:e.w*t.xMul+e.x+"px",top:e.h*t.yMul+e.y+"px"})}))})),n("top",{x:t.x,y:t.y,w:t.w,h:e.y-t.y}),n("right",{x:e.x+e.w,y:e.y,w:t.w-e.x-e.w+t.x,h:e.h}),n("bottom",{x:t.x,y:e.y+e.h,w:t.w,h:t.h-e.y-e.h+t.y}),n("left",{x:t.x,y:e.y,w:e.x-t.x,h:e.h}),n("move",e)}var s,l,f=[],d="tox-crid-"+TS++,m=Ae.fromDom(o),g=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],h=["top","right","bottom","left"],v=function(e){var t;u((t=n,{x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}))};function b(e){ot(e.target,"aria-grabbed","focus"===e.raw.type?"true":"false")}rt(l=Ae.fromTag("div"),{id:d,class:"tox-croprect-container",role:"grid","aria-dropeffect":"execute"}),En(m,l),Ce(h,(function(e){Ta(m,"#"+d).each((function(t){var n=Ae.fromTag("div");rt(n,{id:d+"-"+e,class:"tox-croprect-block","data-mce-bogus":"all"}),ft(n,"display","none"),En(t,n)}))})),Ce(g,(function(e){Ta(m,"#"+d).each((function(t){var n=Ae.fromTag("div");rt(n,{id:d+"-"+e.name,"aria-label":e.label,"aria-grabbed":"false","data-mce-bogus":"all",role:"gridcell",tabindex:"-1",title:e.label}),$r(n,["tox-croprect-handle","tox-croprect-handle-"+e.name]),ft(n,"display","none"),En(t,n)}))})),s=R(g,(function(t){var n;return function(e,t){function n(e){var n,r,i,a,f,g,p,y,x=e.raw,w=(n=Math.max,r=m.documentElement,i=m.body,a=n(r.scrollWidth,i.scrollWidth),f=n(r.clientWidth,i.clientWidth),g=n(r.offsetWidth,i.offsetWidth),p=n(r.scrollHeight,i.scrollHeight),y=n(r.clientHeight,i.clientHeight),{width:a<g?f:a,height:p<n(r.offsetHeight,i.offsetHeight)?y:p});Rw(x),e.prevent(),c=x.button,s=x.screenX,l=x.screenY;var C=gt(v,"cursor");dt(u=Ae.fromTag("div",m),{position:"absolute",top:"0",left:"0",width:w.width+"px",height:w.height+"px","z-index":"2147483647",opacity:"0.0001",cursor:C}),En(yn(h),u),d.push(cc(h,"mousemove",o),cc(h,"touchmove",o),cc(h,"mouseup",b),cc(h,"touchend",b)),t.start(x)}function o(e){var n=e.raw;if(Rw(n),n.button!==c)return b(e);n.deltaX=n.screenX-s,n.deltaY=n.screenY-l,e.prevent(),t.drag(n)}var r,i,a,u,c,s,l,f=[],d=[],m=null!==(r=t.document)&&void 0!==r?r:document,g=null!==(i=t.root)&&void 0!==i?i:m,h=Ae.fromDom(m),v=Ae.fromDom(g.getElementById(null!==(a=t.handle)&&void 0!==a?a:e)),b=function(e){Rw(e.raw),Ce(d,(function(e){return e.unbind()})),d=[],zn(u),t.stop&&t.stop(e.raw)};return f.push(cc(v,"mousedown",n),cc(v,"touchstart",n)),{destroy:function(){Ce(d.concat(f),(function(e){return e.unbind()})),d=[],f=[],p(u)&&zn(u)}}}(d,{document:o.ownerDocument,root:gn(m).dom,handle:d+"-"+t.name,start:function(){n=e},drag:function(e){a(t,n,e.deltaX,e.deltaY)}})})),c(e),f.push(cc(m,"focusin",b),cc(m,"focusout",b),cc(m,"keydown",(function(t){var n;function o(e,t,o,r,i){e.stopPropagation(),e.preventDefault(),a(n,o,r,i)}switch(Ce(g,(function(e){if(it(t.target,"id")===d+"-"+e.name)return n=e,!1})),t.raw.keyCode){case OS.LEFT:o(t,0,e,-10,0);break;case OS.RIGHT:o(t,0,e,10,0);break;case OS.UP:o(t,0,e,0,-10);break;case OS.DOWN:o(t,0,e,0,10);break;case OS.ENTER:case OS.SPACEBAR:t.prevent(),r()}})));var y=_(_({},_S),{toggleVisibility:function(e){var t=E(E([],R(g,(function(e){return"#"+d+"-"+e.name})),!0),R(h,(function(e){return"#"+d+"-"+e})),!0).join(","),n=cs(m,t);Ce(n,e?function(e){return vt(e,"display")}:function(e){return ft(e,"display","none")})},setClampRect:function(t){n=t,c(e)},setRect:u,getInnerRect:function(){return i(n,e)},setInnerRect:v,setViewPortRect:function(n){t=n,c(e)},destroy:function(){Ce(s,(function(e){return e.destroy()})),s=[],Ce(f,(function(e){return e.unbind()})),f=[]}});return y};function DS(e,t){function n(e){var t=w.getHistoryStates();O.updateButtonUndoStates(e,t.undoEnabled,t.redoEnabled),pr(e,SS.formActionEvent,{name:SS.saveState(),value:t.undoEnabled})}function o(e){return e.toBlob()}function r(e){pr(e,SS.formActionEvent,{name:SS.disable(),value:{}})}function a(e,t,i,a,u){r(e),function(e){return t=e,new wy((function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)})).then((function(t){return ew((n=e,new wy((function(e,t){function o(){i.removeEventListener("load",a),i.removeEventListener("error",u)}var r=URL.createObjectURL(n),i=new Image,a=function(){o(),e(i)},u=function(){o(),t("Unable to load data of type "+n.type+": "+r)};i.addEventListener("load",a),i.addEventListener("error",u),i.src=r,i.complete&&setTimeout(a,0)})).then((function(e){JC(e);var t=Kx(Jx(e),Qx(e));return KC(t).drawImage(e,0,0),t}))),e,t);var n}));var t}(t).then(i).then(o).then(a).then((function(t){return S(e,t)})).then((function(){n(e),u(),C(e)})).catch((function(t){console.log(t),e.getSystem().isConnected()&&C(e)}))}function c(e,t,n){a(e,w.getBlobState().blob,t,(function(e){return w.updateTempState(e)}),n)}function s(e){var t=w.getBlobState().url;return w.destroyTempState(),n(e),t}var l,f,d,m,g,h,p,v,b,y,x,w=function(e){var t,n,o,r,a=Ro(e),u=uc(),c=(n=-1,{data:t=[],add:function(e){var o=t.splice(++n);return t.push(e),{state:e,removed:o}},undo:function(){if(o())return t[--n]},redo:function(){if(r())return t[++n]},canUndo:o=function(){return 0<n},canRedo:r=function(){return-1!==n&&n<t.length-1}});function s(e){a.set(e)}function l(e){URL.revokeObjectURL(e.url)}function f(e){var t=d(e);s(t);var n=c.add(t).removed;return FC.each(n,l),t.url}function d(e){return{blob:e,url:URL.createObjectURL(e)}}function m(){u.on(l),u.clear()}return c.add(e),{getBlobState:function(){return a.get()},setBlobState:s,addBlobState:f,getTempState:function(){return u.get().getOrThunk(a.get)},updateTempState:function(e){var t=d(e);return m(),u.set(t),t.url},addTempState:function(e){var t=d(e);return u.set(t),t.url},applyTempState:function(e){return u.get().fold(i,(function(t){f(t.blob),e()}))},destroyTempState:m,undo:function(){var e=c.undo();return s(e),e.url},redo:function(){var e=c.redo();return s(e),e.url},getHistoryStates:function(){return{undoEnabled:c.canUndo(),redoEnabled:c.canRedo()}}}}(e.currentState),C=function(e){E.getApplyButton(e).each((function(e){id.enable(e)})),pr(e,SS.formActionEvent,{name:SS.enable(),value:{}})},S=function(e,t){return r(e),k.updateSrc(e,t)},k=(m=e.currentState.url,h=Mm({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),p=Ro(1),g=ic(),v=_(_({},g),{run:function(e){return g.get().each(e)}}),b=Ro({x:0,y:0,w:1,h:1}),y=Ro({x:0,y:0,w:1,h:1}),{memContainer:x=Mm(qb.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[h.asSpec(),{dom:{tag:"img",attributes:{src:m}}},{dom:{tag:"div"},behaviours:Ku([rm("image-panel-crop-events",[Qi((function(e){x.getOpt(e).each((function(e){var t=e.element.dom,n=MS({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},t,i);n.toggleVisibility(!1),n.on("updateRect",(function(e){var t=e.rect,n=p.get(),o={x:Math.round(t.x/n),y:Math.round(t.y/n),w:Math.round(t.w/n),h:Math.round(t.h/n)};b.set(o)})),v.set(n)}))})),Zi((function(){v.clear()}))])])}],containerBehaviours:Ku([Og.config({}),rm("image-panel-events",[Qi((function(e){T(e,m)}))])])})),updateSrc:T,zoom:function(e,t){var n=p.get(),o=0<t?Math.min(2,n+.1):Math.max(.1,n-.1);p.set(o),x.getOpt(e).each((function(e){var t=e.components()[1].element;z(e,t)}))},showCrop:function(){v.run((function(e){e.toggleVisibility(!0)}))},hideCrop:function(){v.run((function(e){e.toggleVisibility(!1)}))},getRect:function(){return b.get()},getMeasurements:function(){var e=y.get();return{width:e.w,height:e.h}}}),O=(f=Mm(ES("Undo","undo",!0,(function(e){pr(e,yS.undo(),{direction:1})}),l=t)),d=Mm(ES("Redo","redo",!0,(function(e){pr(e,yS.redo(),{direction:1})}),l)),{container:qb.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[f.asSpec(),d.asSpec(),ES("Zoom in","zoom-in",!1,(function(e){pr(e,yS.zoom(),{direction:1})}),l),ES("Zoom out","zoom-out",!1,(function(e){pr(e,yS.zoom(),{direction:-1})}),l)]}),updateButtonUndoStates:function(e,t,n){f.getOpt(e).each((function(e){zS(e,t)})),d.getOpt(e).each((function(e){zS(e,n)}))}}),E=function(e,t){function n(e,n,o,r){return Mm(Ew({name:e,text:e,disabled:o,primary:r,icon:ve.none(),borderless:!1},n,t))}function o(e,n,o,r){return Mm(_w({name:e,icon:ve.some(e),tooltip:ve.some(n),disabled:r,primary:!1,borderless:!1},o,t))}function r(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(id)&&id.disable(n)}))}function a(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(id)&&id.enable(n)}))}function c(e,t,n){pr(e,t,n)}function s(e){return hr(e,SS.disable()),0}function l(e){return hr(e,SS.enable()),0}function f(e,t){s(e),c(e,yS.transform(),{transform:t}),l(e)}function d(e){return function(){Y.getOpt(e).each((function(e){Og.set(e,[K])}))}}function m(e,t){s(e),c(e,yS.transformApply(),{transform:t,swap:d(e)}),l(e)}function g(){return n("Back",(function(e){return c(e,yS.back(),{swap:d(e)})}),!1,!1)}function h(){return Mm({dom:{tag:"div",classes:["tox-spacer"]},behaviours:Ku([id.config({})])})}function p(){return n("Apply",(function(e){return c(e,yS.apply(),{swap:d(e)})}),!0,!0)}function v(e,t){return function(n){return e(n,t)}}function b(e,t){var n,o=t;s(n=e),c(n,yS.tempTransform(),{transform:o}),l(n)}function y(e,n,o,r,i){var a=EC.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}),c=EC.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),s=EC.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Mm(EC.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:o,maxX:i,getInitialValue:u({x:r})},components:[a,c,s],sliderBehaviours:Ku([Tg.config({})]),onChoose:n}))}function x(e,t,n,o,i){var u,c,s,l,d,m,h=(u=e,c=t,s=n,l=o,d=i,[g(),(m=c,y(u,(function(e,t,n){f(e,v(m,n.x/100))}),s,l,d)),p()]);return qb.sketch({dom:S,components:h.map((function(e){return e.asSpec()})),containerBehaviours:Ku([rm("image-tools-filter-panel-buttons-events",[Cr(SS.disable(),(function(e,t){r(h,e)})),Cr(SS.enable(),(function(e,t){a(h,e)}))])])})}function w(e){return y(e,(function(e,t,n){var o=F.getOpt(e),r=j.getOpt(e),i=U.getOpt(e);o.each((function(t){r.each((function(n){i.each((function(o){var r,i,a,u=xf.getValue(t).x/100,c=xf.getValue(o).x/100,s=xf.getValue(n).x/100,l=(r=u,i=c,a=s,function(e){return rw(e,(t=i,n=a,ow([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1],[nw(r,0,2),0,0,0,0,0,nw(t,0,2),0,0,0,0,0,nw(n,0,2),0,0,0,0,0,1,0,0,0,0,0,1])));var t,n});f(e,l)}))}))}))}),0,100,200)}function C(e,t,n){return function(o){c(o,yS.swap(),{transform:t,swap:function(){Y.getOpt(o).each((function(t){Og.set(t,[e]),n(t)}))}})}}var S={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},k=i,_=[g(),h(),n("Apply",(function(t){m(t,(function(t){var n,o,r,i,a,u,c,s,l,f=e.getRect();return n=f.x,o=f.y,r=f.w,i=f.h,u=n,c=o,s=r,l=i,(a=t).toCanvas().then((function(e){return sS(e,a.getType(),u,c,s,l)}))})),e.hideCrop()}),!1,!0)],O=qb.sketch({dom:S,components:_.map((function(e){return e.asSpec()})),containerBehaviours:Ku([rm("image-tools-crop-buttons-events",[Cr(SS.disable(),(function(e,t){r(_,e)})),Cr(SS.enable(),(function(e,t){a(_,e)}))])])}),E=Mm(Bw({name:"size",label:ve.none(),constrain:!0,disabled:!1},t)),z=[g(),h(),E,h(),n("Apply",(function(e){E.getOpt(e).each((function(t){var n,o,r=xf.getValue(t),i=parseInt(r.width,10),a=parseInt(r.height,10),u=(n=i,o=a,function(e){return r=n,i=o,(t=e).toCanvas().then((function(e){return iS(e,r,i).then((function(e){return tw(e,t.getType())}))}));var t,r,i});m(e,u)}))}),!1,!0)],T=qb.sketch({dom:S,components:z.map((function(e){return e.asSpec()})),containerBehaviours:Ku([rm("image-tools-resize-buttons-events",[Cr(SS.disable(),(function(e,t){r(z,e)})),Cr(SS.enable(),(function(e,t){a(z,e)}))])])}),M=v(dw,"h"),D=v(dw,"v"),A=v(mw,-90),N=v(mw,90),B=[g(),h(),o("flip-horizontally","Flip horizontally",(function(e){b(e,M)}),!1),o("flip-vertically","Flip vertically",(function(e){b(e,D)}),!1),o("rotate-left","Rotate counterclockwise",(function(e){b(e,A)}),!1),o("rotate-right","Rotate clockwise",(function(e){b(e,N)}),!1),h(),p()],R=qb.sketch({dom:S,components:B.map((function(e){return e.asSpec()})),containerBehaviours:Ku([rm("image-tools-fliprotate-buttons-events",[Cr(SS.disable(),(function(e,t){r(B,e)})),Cr(SS.enable(),(function(e,t){a(B,e)}))])])}),H=[g(),h(),p()],L=qb.sketch({dom:S,components:H.map((function(e){return e.asSpec()}))}),V=x("Brightness",lw,-100,0,100),P=x("Contrast",fw,-100,0,100),I=x("Gamma",sw,-100,0,100),F=w("R"),U=w("G"),j=w("B"),W=[g(),F,U,j,p()],q=qb.sketch({dom:S,components:W.map((function(e){return e.asSpec()}))}),G=ve.some(cw),$=ve.some(uw),X=[o("crop","Crop",C(O,ve.none(),(function(t){e.showCrop()})),!1),o("resize","Resize",C(T,ve.none(),(function(t){E.getOpt(t).each((function(t){var n=e.getMeasurements(),o=n.width,r=n.height;xf.setValue(t,{width:o,height:r})}))})),!1),o("orientation","Orientation",C(R,ve.none(),k),!1),o("brightness","Brightness",C(V,ve.none(),k),!1),o("sharpen","Sharpen",C(L,G,k),!1),o("contrast","Contrast",C(P,ve.none(),k),!1),o("color-levels","Color levels",C(q,ve.none(),k),!1),o("gamma","Gamma",C(I,ve.none(),k),!1),o("invert","Invert",C(L,$,k),!1)],K=qb.sketch({dom:S,components:X.map((function(e){return e.asSpec()}))}),Y=Mm(qb.sketch({dom:{tag:"div"},components:[K],containerBehaviours:Ku([Og.config({})])}));return{memContainer:Y,getApplyButton:function(e){return Y.getOpt(e).map((function(e){var t=e.components()[0];return t.components()[t.components().length-1]}))}}}(k,t);function z(e,t){x.getOpt(e).each((function(e){var n=p.get(),o=kt(e.element),r=xt(e.element),i=t.dom.naturalWidth*n,a=t.dom.naturalHeight*n,u=Math.max(0,o/2-i/2),c=Math.max(0,r/2-a/2),s={left:u.toString()+"px",top:c.toString()+"px",width:i.toString()+"px",height:a.toString()+"px",position:"absolute"};dt(t,s),h.getOpt(e).each((function(e){dt(e.element,s)})),v.run((function(e){var t=b.get();e.setRect({x:t.x*n+u,y:t.y*n+c,w:t.w*n,h:t.h*n}),e.setClampRect({x:u,y:c,w:i,h:a}),e.setViewPortRect({x:0,y:0,w:o,h:r})}))}))}function T(e,t){var n,o=Ae.fromTag("img");return ot(o,"src",t),n=o.dom,new wh((function(e){var t=function(){n.removeEventListener("load",t),e(n)};n.complete?e(n):n.addEventListener("load",t)})).then((function(){e.getSystem().isConnected()&&x.getOpt(e).map((function(e){var t=xa({element:o});Og.replaceAt(e,1,ve.some(t));var n=y.get(),r={x:0,y:0,w:o.dom.naturalWidth,h:o.dom.naturalHeight};y.set(r);var i,a=kS.inflate(r,-20,-20);b.set(a),n.w===r.w&&n.h===r.h||(i=o,x.getOpt(e).each((function(e){var t=kt(e.element),n=xt(e.element),o=i.dom.naturalWidth,r=i.dom.naturalHeight,a=Math.min(t/o,n/r);1<=a?p.set(1):p.set(a)}))),z(e,o)}))}))}return{dom:{tag:"div",attributes:{role:"presentation"}},components:[E.memContainer.asSpec(),k.memContainer.asSpec(),O.container],behaviours:Ku([xf.config({store:{mode:"manual",getValue:function(){return w.getBlobState()}}}),rm("image-tools-events",[Cr(yS.undo(),(function(e,t){var o=w.undo();S(e,o).then((function(t){C(e),n(e)}))})),Cr(yS.redo(),(function(e,t){var o=w.redo();S(e,o).then((function(t){C(e),n(e)}))})),Cr(yS.zoom(),(function(e,t){var n=t.event.direction;k.zoom(e,n)})),Cr(yS.back(),(function(e,t){var n,o=s(n=e);S(n,o).then((function(e){C(n)})),(0,t.event.swap)(),k.hideCrop()})),Cr(yS.apply(),(function(e,t){w.applyTempState((function(){s(e),(0,t.event.swap)()}))})),Cr(yS.transform(),(function(e,t){return c(e,t.event.transform,i)})),Cr(yS.tempTransform(),(function(e,t){var n=t.event.transform;a(e,w.getTempState().blob,n,(function(e){return w.addTempState(e)}),i)})),Cr(yS.transformApply(),(function(e,t){var n=e,o=t.event.transform,r=t.event.swap,i=w.getBlobState().blob;a(n,i,o,(function(e){var t=w.addBlobState(e);return s(n),t}),r)})),Cr(yS.swap(),(function(e,t){O.updateButtonUndoStates(e,!1,!1);var n=t.event.transform,o=t.event.swap;n.fold((function(){o()}),(function(t){c(e,t,o)}))}))]),Lw()])}}function AS(e){return!Ee(e,"items")}function NS(e,t){var n=e.label.map((function(e){return Vb(e,t)})),o=[id.config({disabled:function(){return e.disabled||t.isDisabled()}}),ov(),kg.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:function(e){return hr(e,ry),ve.some(!0)}}),rm("textfield-change",[Cr(vi(),(function(t,n){pr(t,ey,{name:e.name})})),Cr(Ei(),(function(t,n){pr(t,ey,{name:e.name})}))]),Yb.config({})],r=e.validation.map((function(e){return My.config({getRoot:function(e){return $e(e.element)},invalidClass:"tox-invalid",validator:{validate:function(t){var n=xf.getValue(t),o=e.validator(n);return Oy(!0===o?Hn.value(n):Hn.error(o))},validateOnLoad:e.validateOnLoad}})})).toArray(),i=e.placeholder.fold(u({}),(function(e){return{placeholder:t.translate(e)}})),a=e.inputMode.fold(u({}),(function(e){return{inputmode:e}})),c=_(_({},i),a);return Lb(n,Xb.parts.field({tag:!0===e.multiline?"textarea":"input",inputAttributes:c,inputClasses:[e.classname],inputBehaviours:Ku(U([o,r])),selectOnFocus:!1,factory:ly}),(e.flex?["tox-form__group--stretched"]:[]).concat(e.maximized?["tox-form-group--maximize"]:[]),[id.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){Xb.getField(e).each(id.disable)},onEnabled:function(e){Xb.getField(e).each(id.enable)}}),ov()])}function BS(e){var t=Ro(null);return pa({readState:function(){return{timer:null!==t.get()?"set":"unset"}},setTimer:function(e){t.set(e)},cancel:function(){var e=t.get();null!==e&&e.cancel()}})}function RS(e,t,n){var o=xf.getValue(n);xf.setValue(t,o),N_(t)}function HS(e,t){var n=e.element,o=Kr(n),r=n.dom;"number"!==it(n,"type")&&t(r,o)}function LS(e){return{type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:i}}function VS(e,t){return{type:"menuitem",value:t,text:e,meta:{attach:void 0},onAction:i}}function PS(e,t){return n=e,R(L(t,(function(e){return e.type===n})),LS);var n}function IS(e,t){var n=e.toLowerCase();return L(t,(function(e){return fe((void 0!==e.meta&&void 0!==e.meta.text?e.meta:e).text.toLowerCase(),n)||fe(e.value.toLowerCase(),n)}))}function FS(e){return function(t,n,o){return ie(n,"name").fold((function(){return e(n,o)}),(function(r){return t.field(r,e(n,o))}))}}function US(e,t,n){var o=qo(n,{shared:{interpreter:function(t){return W_(e,t,o)}}});return W_(e,t,o)}function jS(e,t,n){function o(){return Ae.fromDom(e.getContentAreaContainer())}function r(){return h||!n()}var i,a,u,c,s,l,f,d,m,g,h=Jp(e);return{inlineDialog:(f=o,d=t,m=r,g={maxHeightFunction:Ec()},function(){return m()?{type:"node",root:et(f()),node:ve.from(f()),bubble:gc(12,12,q_),layouts:{onRtl:function(){return[Sm]},onLtr:function(){return[Cm]}},overrides:g}:{type:"hotspot",hotspot:d(),bubble:gc(-12,12,q_),layouts:{onRtl:function(){return[Iu]},onLtr:function(){return[Fu]}},overrides:g}}),banner:(c=o,s=t,l=r,function(){return l()?{type:"node",root:et(c()),node:ve.from(c()),layouts:{onRtl:function(){return[Qg]},onLtr:function(){return[Qg]}}}:{type:"hotspot",hotspot:s(),layouts:{onRtl:function(){return[qu]},onLtr:function(){return[qu]}}}}),cursor:(a=e,function(){return{type:"selection",root:u(),getSelection:function(){var e=a.selection.getRng();return ve.some(rs.range(Ae.fromDom(e.startContainer),e.startOffset,Ae.fromDom(e.endContainer),e.endOffset))}}}),node:(i=u=function(){return Ae.fromDom(e.getBody())},function(e){return{type:"node",root:i(),node:e}})}}function WS(e){return ve.from(e.getParam("style_formats")).filter(d).map((function(t){var n,o,r=(n=e,o=$_(t),n.formatter?i(o.customFormats):n.on("init",(function(){i(o.customFormats)})),o.formats);function i(e){Ce(e,(function(e){n.formatter.has(e.name)||n.formatter.register(e.name,e.format)}))}return e.getParam("style_formats_merge",!1,"boolean")?G_.concat(r):r})).getOr(G_)}function qS(e,t,n){var o={type:"formatter",isSelected:t(e.format),getStylePreview:n(e.format)};return qo(e,o)}function GS(e,t,n,o){var r=function(t){return R(t,(function(t){var i,a,c,s,f,d=ke(t);if(ae(t,"items")){var m=r(t.items);return qo(qo(t,{type:"submenu"}),{getStyleItems:u(m)})}return ae(t,"format")?qS(t,n,o):1===d.length&&we(d,"title")?qo(t,{type:"separator"}):(s={type:"formatter",format:c="custom-"+(a=l((i=t).name)?i.name:Ar(i.title)),isSelected:n(c),getStylePreview:o(c)},f=qo(i,s),e.formatter.register(a,f),f)}))};return r(t)}function $S(e){return function(t){if(p(n=t)&&1===n.nodeType){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}var n;return!1}}function XS(e,t,n,o,r){return{type:e,title:t,url:n,level:o,attach:r}}function KS(e){return e.innerText||e.textContent}function YS(e){return e&&"A"===e.nodeName&&void 0!==(e.id||e.name)&&x_(e)}function JS(e){return e&&/^(H[1-6])$/.test(e.nodeName)}function QS(e){return JS(e)&&x_(e)}function ZS(e){var t,n=e.id||Ar("h");return XS("header",KS(e),"#"+n,JS(t=e)?parseInt(t.nodeName.substr(1),10):0,(function(){e.id=n}))}function ek(e){var t=e.id||e.name;return XS("anchor",KS(e)||"#"+t,"#"+t,0,i)}function tk(e){return 0<X_(e.title).length}function nk(e){return l(e)&&/^https?/.test(e)}function ok(e){return f(e)&&oe(e,(function(e){return!(d(t=e)&&t.length<=5&&W(t,nk));var t})).isNone()}function rk(){var e,t=eb.getItem(Q_);if(null===t)return{};try{e=JSON.parse(t)}catch(e){if(e instanceof SyntaxError)return console.log("Local storage "+Q_+" was not valid JSON",e),{};throw e}return ok(e)?e:(console.log("Local storage "+Q_+" was not valid format",e),{})}function ik(e){return ie(rk(),e).getOr([])}function ak(e,t){var n,o;nk(e)&&(o=L(ie(n=rk(),t).getOr([]),(function(t){return t!==e})),n[t]=[e].concat(o).slice(0,5),function(e){if(!ok(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));eb.setItem(Q_,JSON.stringify(e))}(n))}function uk(e){return!!e}function ck(e){return te(FC.makeMap(e,/[, ]/),uk)}function sk(e){return ve.from(e.getParam("file_picker_callback")).filter(v)}function lk(e){return ve.from(e).filter(l).getOrUndefined()}function fk(e){return{getHistory:ik,addToHistory:ak,getLinkInformation:function(){return!1===(t=e).getParam("typeahead_urls")?ve.none():ve.some({targets:J_(t.getBody()),anchorTop:lk(t.getParam("anchor_top","#top")),anchorBottom:lk(t.getParam("anchor_bottom","#bottom"))});var t},getValidationHandler:function(){return ve.from(void 0===(n=(t=e).getParam("file_picker_validator_handler",void 0,"function"))?t.getParam("filepicker_validator_handler",void 0,"function"):n);var t,n},getUrlPicker:function(t){return n=s=e,o=d=t,i=ve.some((r=n).getParam("file_picker_types")).filter(uk),a=ve.some(r.getParam("file_browser_callback_types")).filter(uk),u=i.or(a).map(ck),c=sk(r).fold(C,(function(e){return u.fold(S,(function(e){return 0<ke(e).length&&e}))})),(g(c)?c?sk(n):ve.none():c[o]?sk(n):ve.none()).map((function(e){return function(t){return _y((function(n){var o=_({filetype:d,fieldname:t.fieldname},ve.from(t.meta).getOr({}));e.call(s,(function(e,t){if(!l(e))throw new Error("Expected value to be string");if(void 0!==t&&!f(t))throw new Error("Expected meta to be a object");n({value:e,meta:t})}),t.value,o)}))}}));var n,o,r,i,a,u,c,s,d}}}function dk(e,t,n){var o,r,i,a,u,c,s,l,f,d,m,g,h,p=Ro(!1),v={isPositionedAtTop:function(){return"top"===o.get()},getDockingMode:(o=Ro(Kp(t)?"bottom":"top")).get,setDockingMode:o.set},b={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:nh.translate,isDisabled:function(){return t.mode.isReadOnly()||t.ui.isDisabled()},getSetting:t.getParam.bind(t)},interpreter:function(e){return W_(j_,e,b)},anchors:jS(t,n,v.isPositionedAtTop),header:v,getSink:function(){return Hn.value(e)}},urlinput:fk(t),styleselect:(f=Ro([]),d=Ro([]),m=Ro([]),g=Ro([]),h=Ro(!(l=function(e){var t=e.items;return void 0!==t&&0<t.length?j(t,l):[e.format]})),(s=t).on("PreInit",(function(e){var t=WS(s),n=GS(s,t,y,x);f.set(n),d.set(j(n,l))})),s.on("addStyleModifications",(function(e){var t=GS(s,e.items,y,x);m.set(t),h.set(e.replace),g.set(j(t,l))})),{getData:function(){var e=h.get()?[]:f.get(),t=m.get();return e.concat(t)},getFlattenedKeys:function(){var e=h.get()?[]:d.get(),t=g.get();return e.concat(t)}}),colorinput:{colorPicker:function(e,t){Cb(c)(e,t)},hasCustomColors:function(){return nb(u)},getColors:function(){return ob(a)},getColorCols:(i=a=u=c=t,function(){return ib(i)})},dialog:{isDraggableModal:(r=t,function(){return r.getParam("draggable_modal",!1,"boolean")})},isContextMenuOpen:function(){return p.get()},setContextMenuState:function(e){return p.set(e)}};function y(e){return function(){return s.formatter.match(e)}}function x(e){return function(){var t=s.formatter.get(e);return void 0!==t?ve.some({tag:0<t.length&&(t[0].inline||t[0].block)||"div",styles:s.dom.parseStyle(s.formatter.getCssText(e))}):ve.none()}}return b}function mk(e){return(ue(ht(e,"position"),"fixed")?ve.none():Xe(e)).orThunk((function(){var t=Ae.fromTag("span");return $e(e).bind((function(e){En(e,t);var n=Xe(t);return zn(t),n}))}))}function gk(e){return mk(e).map(St).getOrThunk((function(){return Sn(0,0)}))}function hk(e,t){var n=e.element;Wr(n,t.transitionClass),qr(n,t.fadeOutClass),Wr(n,t.fadeInClass),t.onShow(e)}function pk(e,t){var n=e.element;Wr(n,t.transitionClass),qr(n,t.fadeInClass),Wr(n,t.fadeOutClass),t.onHide(e)}function vk(e,t,n){return W(e,(function(e){switch(e){case"bottom":return t.bottom<=n.bottom;case"top":return t.y>=n.y}}))}function bk(e,t){return t.getInitialPos().map((function(t){return Dn(t.bounds.x,t.bounds.y,kt(e),xt(e))}))}function yk(e,t,n){return n.getInitialPos().bind((function(o){switch(n.clearInitialPos(),o.position){case"static":return ve.some(sO.static());case"absolute":var r=mk(e).map(An).getOrThunk((function(){return An(bn())}));return ve.some(sO.absolute(Cu("absolute",ie(o.style,"left").map((function(e){return t.x-r.x})),ie(o.style,"top").map((function(e){return t.y-r.y})),ie(o.style,"right").map((function(e){return r.right-t.right})),ie(o.style,"bottom").map((function(e){return r.bottom-t.bottom})))));default:return ve.none()}}))}function xk(e,t,n){n.setDocked(!1),Ce(["left","right","top","bottom","position"],(function(t){return vt(e.element,t)})),t.onUndocked(e)}function wk(e,t,n,o){var r="fixed"===o.position;n.setDocked(r),Su(e.element,o),(r?t.onDocked:t.onUndocked)(e)}function Ck(e,t,n,o,r){void 0===r&&(r=!1),t.contextual.each((function(t){t.lazyContext(e).each((function(i){var a=i.y<o.bottom&&i.bottom>o.y;a!==n.isVisible()&&(n.setVisible(a),r&&!a?($r(e.element,[t.fadeOutClass]),t.onHide(e)):(a?hk:pk)(e,t))}))}))}function Sk(e,t,n){var o,r,a,u,c,s;n.isDocked()&&(r=t,a=n,s=(o=e).element,a.setDocked(!1),bk(c=o.element,u=a).bind((function(e){return yk(c,e,u)})).each((function(e){e.fold((function(){return xk(o,r,a)}),(function(e){return wk(o,r,a,e)}),i)})),a.setVisible(!0),r.contextual.each((function(e){Xr(s,[e.fadeInClass,e.fadeOutClass,e.transitionClass]),e.onShow(o)})),lO(o,r,a))}function kk(e,t){return we(mO.getModes(e),t)}function _k(e){var t=e.element;$e(t).each((function(n){var o,r,i="padding-"+mO.getModes(e)[0];mO.isDocked(e)?(o=kt(n),ft(t,"width",o+"px"),ft(n,i,wt(r=t)+(parseInt(gt(r,"margin-top"),10)||0)+(parseInt(gt(r,"margin-bottom"),10)||0)+"px")):(vt(t,"width"),vt(n,i))}))}function Ok(e,t){t?(qr(e,hO.fadeOutClass),$r(e,[hO.transitionClass,hO.fadeInClass])):(qr(e,hO.fadeInClass),$r(e,[hO.fadeOutClass,hO.transitionClass]))}function Ek(e,t){var n=Ae.fromDom(e.getContainer());t?(Wr(n,pO),qr(n,vO)):(Wr(n,vO),qr(n,pO))}function zk(e,t){function n(e){a().each((function(t){return e(t.element)}))}function o(t){e.inline||_k(t),Ek(e,mO.isDocked(t)),t.getSystem().broadcastOn([ff()],{}),a().each((function(e){return e.getSystem().broadcastOn([ff()],{})}))}var r,i=uc(),a=t.getSink,u=e.inline?[]:[Zu.config({channels:((r={})[gO()]={onReceive:_k},r)})];return E([Tg.config({}),mO.config({contextual:_({lazyContext:function(t){var n=wt(t.element),o=e.inline?e.getContentAreaContainer():e.getContainer(),r=An(Ae.fromDom(o)),i=r.height-n,a=r.y+(kk(t,"top")?0:n);return ve.some(Dn(r.x,a,r.width,i))},onShow:function(){n((function(e){return Ok(e,!0)}))},onShown:function(e){n((function(e){return Xr(e,[hO.transitionClass,hO.fadeInClass])})),i.get().each((function(t){var n,o=e.element,r=je(n=t);yu(r).filter((function(e){return!Fe(n,e)})).filter((function(e){return Fe(e,Ae.fromDom(r.dom.body))||Ue(o,e)})).each((function(){return vu(n)})),i.clear()}))},onHide:function(e){var t=e.element,o=a;xu(t).orThunk((function(){return o().toOptional().bind((function(e){return xu(e.element)}))})).fold(i.clear,i.set),n((function(e){return Ok(e,!1)}))},onHidden:function(){n((function(e){return Xr(e,[hO.transitionClass])}))}},hO),lazyViewport:function(t){var n=Nn(),o=e.getParam("toolbar_sticky_offset",0,"number"),r=n.y+(kk(t,"top")?o:0),i=n.height-(kk(t,"bottom")?o:0);return Dn(n.x,r,n.width,i)},modes:[t.header.getDockingMode()],onDocked:o,onUndocked:o})],u,!0)}function Tk(e){return io("menubutton",wO,e)}function Mk(e,t){return t.getAnimationRoot.fold((function(){return e.element}),(function(t){return t(e)}))}function Dk(e){return e.dimension.property}function Ak(e,t){return e.dimension.getDimension(t)}function Nk(e,t){Xr(Mk(e,t),[t.shrinkingClass,t.growingClass])}function Bk(e,t){qr(e.element,t.openClass),Wr(e.element,t.closedClass),ft(e.element,Dk(t),"0px"),bt(e.element)}function Rk(e,t){qr(e.element,t.closedClass),Wr(e.element,t.openClass),vt(e.element,Dk(t))}function Hk(e,t,n,o){n.setCollapsed(),ft(e.element,Dk(t),Ak(t,e.element)),bt(e.element),Nk(e,t),Bk(e,t),t.onStartShrink(e),t.onShrunk(e)}function Lk(e,t,n){var o=Ak(t,e.element);("0px"===o?Hk:function(e,t,n,o){var r=o.getOrThunk((function(){return Ak(t,e.element)}));n.setCollapsed(),ft(e.element,Dk(t),r),bt(e.element);var i=Mk(e,t);qr(i,t.growingClass),Wr(i,t.shrinkingClass),Bk(e,t),t.onStartShrink(e)})(e,t,n,ve.some(o))}function Vk(e,t,n){var o=Mk(e,t),r=Gr(o,t.shrinkingClass),i=Ak(t,e.element);Rk(e,t);var a=Ak(t,e.element);(r?function(){ft(e.element,Dk(t),i),bt(e.element)}:function(){Bk(e,t)})(),qr(o,t.shrinkingClass),Wr(o,t.growingClass),Rk(e,t),ft(e.element,Dk(t),a),n.setExpanded(),t.onStartGrow(e)}function Pk(e,t,n){return!0===Gr(Mk(e,t),t.growingClass)}function Ik(e,t,n){return!0===Gr(Mk(e,t),t.shrinkingClass)}function Fk(e){return"<alloy.field."+e+">"}function Uk(e){return{element:function(){return e.element.dom}}}function jk(e){return Zf.getCurrent(e).bind((function(e){return OO.isGrowing(e)||OO.hasGrown(e)?Zf.getCurrent(e).bind((function(e){return I(MO.getSlotNames(e),(function(t){return MO.isShowing(e,t)}))})):ve.none()}))}function Wk(e){var t=Ae.fromHtml(e),n=Ke(t),o=P(void 0!==t.dom.attributes?t.dom.attributes:[],(function(e,t){var n;return"class"===t.name?e:_(_({},e),((n={})[t.name]=t.value,n))}),{}),r=Array.prototype.slice.call(t.dom.classList,0),i=0===n.length?{}:{innerHtml:Tr(t)};return _({tag:Ne(t),classes:r,attributes:o},i)}function qk(e){return Zf.getCurrent(e).each((function(e){return vu(e.element)}))}function Gk(e,t,n){function o(n){var o;!r.get()||"focusin"===(o=n).type&&(o.composed?J(o.composedPath()):ve.from(o.target)).map(Ae.fromDom).filter(qt).exists((function(e){return Gr(e,"mce-pastebin")}))||(n.preventDefault(),qk(t()),e.editorManager.setActive(e))}var r=Ro(!1),i=uc();function a(o){var i,a,u,c,s,l,f,d,m,g;o!==r.get()&&(r.set(o),i=e,a=t(),u=o,c=n.providers,d=a.element,m=u,g="data-mce-"+(s="tabindex"),ve.from(i.iframeElement).map(Ae.fromDom).each((function(e){m?(at(e,s).each((function(t){return ot(e,g,t)})),ot(e,s,-1)):(ct(e,s),at(e,g).each((function(t){ot(e,s,t),ct(e,g)})))})),u?(RO.block(a,(f=c,function(e,t){return{dom:{tag:"div",attributes:{"aria-label":f.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Wk('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}})),vt(d,"display"),ct(d,"aria-hidden"),i.hasFocus()&&qk(a)):(l=Zf.getCurrent(a).exists((function(e){return bu(e.element)})),RO.unblock(a),ft(d,"display","none"),ot(d,"aria-hidden","true"),l&&i.focus()),e.fire("AfterProgressState",{state:o}))}e.inline||e.on("PreInit",(function(){e.dom.bind(e.getWin(),"focusin",o),e.on("BeforeExecCommand",(function(e){"mcefocus"===e.command.toLowerCase()&&!0!==e.value&&o(e)}))})),e.on("ProgressState",(function(t){var n;i.on(eh.clearTimeout),b(t.time)?(n=eh.setEditorTimeout(e,(function(){return a(t.state)}),t.time),i.set(n)):(a(t.state),i.clear())}))}function $k(e,t,n){return{within:e,extra:t,withinWidth:n}}function Xk(e,t,n){var o,r=(o=function(e,t){var o=n(e);return ve.some({element:e,start:t,finish:t+o,width:o})},P(e,(function(e,t){return o(t,e.len).fold(u(e),(function(t){return{len:t.finish,list:e.list.concat([t])}}))}),{len:0,list:[]}).list),i=L(r,(function(e){return e.finish<=t})),a=V(i,(function(e,t){return e+t.width}),0);return{within:i,extra:r.slice(i.length),withinWidth:a}}function Kk(e){return R(e,(function(e){return e.element}))}function Yk(e,t){var n=R(t,(function(e){return Sa(e)}));aO.setGroups(e,n)}function Jk(e,t,n){var o,r,i,a,u,c,s,l,f,d,m,g,h,p,v,b,y,x,w,C,S=t.builtGroups.get();0!==S.length&&(o=il(e,t,"primary"),r=Ay.getCoupled(e,"overflowGroup"),ft(o.element,"visibility","hidden"),a=Z(i=S.concat([r]),(function(e){return xu(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))})),n([]),Yk(o,i),u=kt(o.element),0===(s=u,l=t.builtGroups.get(),d=r,x=(y=(0===(m=Xk(l,s,f=function(e){return kt(e.element)})).extra.length?ve.some(m):ve.none()).getOrThunk((function(){return Xk(l,s-f(d),f)}))).within,w=y.extra,C=y.withinWidth,(c=1===w.length&&w[0].width<=f(d)?(b=C,$k(Kk(x.concat(w)),[],b)):1<=w.length?(h=w,p=d,v=C,$k(Kk(x).concat([p]),Kk(h),v)):(g=C,$k(Kk(x),[],g))).extra.length)?(Og.remove(o,r),n([])):(Yk(o,c.within),n(c.extra)),vt(o.element,"visibility"),bt(o.element),a.each(Tg.focus))}function Qk(e,t){var n=Ay.getCoupled(e,"toolbarSandbox");sf.isOpen(n)?sf.close(n):sf.open(n,t.toolbar())}function Zk(e,t,n,o){var r=n.getBounds.map((function(e){return e()})),i=n.lazySink(e).getOrDie();tf.positionWithinBounds(i,t,{anchor:{type:"hotspot",hotspot:e,layouts:o,overrides:{maxWidthFunction:PO()}}},r)}function e_(e,t,n,o,r){aO.setGroups(t,r),Zk(e,t,n,o),Ag.on(e)}function t_(e){return R(e,(function(e){return Sa(e)}))}function n_(e,t,n){Jk(e,n,(function(o){n.overflowGroups.set(o),t.getOpt(e).each((function(e){UO.setGroups(e,t_(o))}))}))}function o_(e,t){rl(e,t,"overflow-button").bind((function(){return rl(e,t,"overflow")})).each((function(n){C_(e,t),OO.toggleGrow(n)}))}function r_(e){var t=e.title.fold((function(){return{}}),(function(e){return{attributes:{title:e}}}));return{dom:_({tag:"div",classes:["tox-toolbar__group"]},t),components:[qO.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:Ku([Yb.config({}),Tg.config({})])}}function i_(e){return qO.sketch(r_(e))}function a_(e,t){var n=Qi((function(t){var n=R(e.initGroups,i_);aO.setGroups(t,n)}));return Ku([Iv(e.providers.isDisabled),ov(),kg.config({mode:t,onEscape:e.onEscape,selector:".tox-toolbar__group"}),rm("toolbar-events",[n])])}function u_(e){var t=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":r_({title:ve.none(),items:[]}),"overflow-button":kw({name:"more",icon:ve.some("more-drawer"),disabled:!1,tooltip:ve.some("More..."),primary:!1,borderless:!1},ve.none(),e.providers)},splitToolbarBehaviours:a_(e,t)}}function c_(e){var t=e.cyclicKeying?"cyclic":"acyclic";return aO.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===up.scrolling?["tox-toolbar--scrolling"]:[])},components:[aO.parts.groups({})],toolbarBehaviours:a_(e,t)})}function s_(e){return"string"==typeof e?e.split(" "):e}function l_(e,t){var n=_(_({},rE),t.menus),o=0<ke(t.menus).length,r=L(void 0===t.menubar||!0===t.menubar?s_("file edit view insert format tools table help"):s_(!1===t.menubar?"":t.menubar),(function(e){var n=Ee(rE,e);return o?n||ie(t.menus,e).exists((function(e){return Ee(e,"items")})):n}));return L(R(r,(function(o){var r=n[o],i={title:r.title,items:s_(r.items)},a=t,u=e.getParam("removed_menuitems","").split(/[ ,]/);return{text:i.title,getItems:function(){return j(i.items,(function(e){var t=e.toLowerCase();return 0===t.trim().length||A(u,(function(e){return e===t}))?[]:"separator"===t||"|"===t?[{type:"separator"}]:a.menuItems[t]?[a.menuItems[t]]:[]}))}}})),(function(e){return 0<e.getItems().length&&A(e.getItems(),(function(e){return"separator"!==e.type}))}))}function f_(e){function t(){e._skinLoaded=!0,e.fire("SkinLoaded")}return function(){e.initialized?t():e.on("init",t)}}function d_(e,t,n){return new wh((function(o,r){n.load(t,o,r),e.on("remove",(function(){return n.unload(t)}))}))}function m_(e,t){var n,o,r,i,a,u,c,s,f=(r=(n=t).getParam("skin"),i=n.getParam("skin_url"),!1!==r&&(o=r||"oxide",i=i?n.documentBaseURI.toAbsolute(i):qp.baseURL+"/skins/ui/"+o),i);f&&t.contentCSS.push(f+(e?"/content.inline":"/content")+".min.css"),!1===t.getParam("skin")==0&&l(f)?wh.all([d_(t,f+"/skin.min.css",t.ui.styleSheetLoader),(u=t,c=f,s=Ae.fromDom(u.getElement()),hn(s).isSome()?d_(u,c+"/skin.shadowdom.min.css",Wp.DOM.styleSheetLoader):wh.resolve())]).then(f_(t),(a=t,"Skin could not be loaded",function(){return a.fire("SkinLoadError",{message:"Skin could not be loaded"})})):f_(t)()}function g_(e,t){return function(n){function o(){n.setActive(e.formatter.match(t));var o=e.formatter.formatChanged(t,n.setActive);r.set(o)}var r=ac();return e.initialized?o():e.once("init",o),function(){e.off("init",o),r.clear()}}}function h_(e,t,n){return function(o){function r(){return n(o)}function i(){n(o),e.on(t,r)}return e.initialized?i():e.once("init",i),function(){e.off("init",i),e.off(t,r)}}}function p_(e){return function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("mceToggleFormat",!1,t.format)}))}}}function v_(e,t){return function(){return e.execCommand(t)}}function b_(e,t,n){var o,r,i,a=n.dataset,u="basic"===a.type?function(){return R(a.data,(function(e){return qS(e,n.isSelectedFor,n.getPreviewFor)}))}:a.getData;return{items:(o=t,r=n,i=function(e,t,n){var o="formatter"===e.type&&r.isInvalid(e);return 0===t?o?[]:c(e,t,!1,n).toArray():c(e,t,o,n).toArray()},{validateItems:s,getFetch:function(e,t){return function(n,o){o(xw(s(t()),fp.CLOSE_ON_EXECUTE,e,!1))}}}),getStyleItems:u};function c(e,t,n,a){var u=o.shared.providers.translate(e.title);if("separator"===e.type)return ve.some({type:"separator",text:u});if("submenu"!==e.type)return ve.some(_({type:"togglemenuitem",text:u,icon:e.icon,active:e.isSelected(a),disabled:n,onAction:r.onAction(e)},e.getStylePreview().fold((function(){return{}}),(function(e){return{meta:{style:e}}}))));var c=j(e.getStyleItems(),(function(e){return i(e,t,a)}));return 0===t&&c.length<=0?ve.none():ve.some({type:"nestedmenuitem",text:u,disabled:c.length<=0,getSubmenuItems:function(){return j(e.getStyleItems(),(function(e){return i(e,t,a)}))}})}function s(e){var t=r.getCurrentValue(),n=r.shouldHide?0:1;return j(e,(function(e){return i(e,n,t)}))}}function y_(e,t,n){var o=b_(0,t,n),r=o.items,i=o.getStyleItems,a=h_(e,"NodeChange",(function(e){var t=e.getComponent();n.updateText(t)}));return bw({text:n.icon.isSome()?ve.none():n.text,icon:n.icon,tooltip:ve.from(n.tooltip),role:ve.none(),fetch:r.getFetch(t,i),onSetup:a,getApi:function(e){return{getComponent:u(e)}},columns:1,presets:"normal",classes:n.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)}function x_(e){return function(e){for(;e=e.parentNode;){var t=e.contentEditable;if(t&&"inherit"!==t)return K_(e)}return!1}(e)&&!Y_(e)}function w_(e,t){function n(t){return cl(e)}function o(t,n){return function(o,r){return rl(o,e,r).map((function(e){return t(e,r)})).getOr(n)}}function r(e,t){return"true"!==it(e.element,"aria-hidden")}var i,a=o(r,!1),u=o((function(e,t){var n;r(e)&&(ft(n=e.element,"display","none"),ot(n,"aria-hidden","true"),pr(e,qi(),{name:t,visible:!1}))})),c=(i=u,function(e,t){Ce(t,(function(t){return i(e,t)}))}),s=o((function(e,t){var n;r(e)||(vt(n=e.element,"display"),ct(n,"aria-hidden"),pr(e,qi(),{name:t,visible:!0}))}));return{uid:e.uid,dom:e.dom,components:t,behaviours:qs(e.slotBehaviours),apis:{getSlotNames:n,getSlot:function(t,n){return rl(t,e,n)},isShowing:a,hideSlot:u,hideAllSlots:function(e){return c(e,n())},showSlot:s}}}function C_(e,t){rl(e,t,"overflow").each((function(n){Jk(e,t,(function(e){var t=R(e,(function(e){return Sa(e)}));aO.setGroups(n,t)})),rl(e,t,"overflow-button").each((function(e){OO.hasGrown(n)&&Ag.on(e)})),OO.refresh(n)}))}var S_,k_,__,O_="data-value",E_=function(e,t,n,o){return R(n,(function(n){return AS(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===o,onAction:function(){xf.setValue(e,n.value),pr(e,ey,{name:t}),Tg.focus(e)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return E_(e,t,n.items,o)}}}))},z_=function(e,t){return Z(e,(function(e){return AS(e)?se(e.value===t,e):z_(e.items,t)}))},T_=gl({name:"HtmlSelect",configFields:[lo("options"),Ws("selectBehaviours",[Tg,xf]),Oo("selectClasses",[]),Oo("selectAttributes",{}),yo("data")],factory:function(e,t){var n=R(e.options,(function(e){return{dom:{tag:"option",value:e.value,innerHtml:e.text}}})),o=e.data.map((function(e){return ur("initialValue",e)})).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:n,behaviours:Gs(e.selectBehaviours,[Tg.config({}),xf.config({store:_({mode:"manual",getValue:function(e){return Kr(e.element)},setValue:function(t,n){I(e.options,(function(e){return e.value===n})).isSome()&&Yr(t.element,n)}},o)})])}}}),M_=Object.freeze({__proto__:null,events:function(e,t){var n=e.stream.streams.setup(e,t);return Ji([Cr(e.event,n),Zi((function(){return t.cancel()}))].concat(e.cancelEvent.map((function(e){return[Cr(e,(function(){return t.cancel()}))]})).getOr([])))}}),D_=Object.freeze({__proto__:null,throttle:BS,init:function(e){return e.stream.streams.state(e)}}),A_=gu({fields:[fo("stream",co("mode",{throttle:[lo("delay"),Oo("stopEvent",!0),Xa("streams",{setup:function(e,t){var n=e.stream,o=uh(e.onStream,n.delay);return t.setTimer(o),function(e,t){o.throttle(e,t),n.stopEvent&&t.stop()}},state:BS})]})),Oo("event","input"),yo("cancelEvent"),Ga("onStream")],name:"streaming",active:M_,state:D_}),N_=function(e){HS(e,(function(e,t){return e.setSelectionRange(t.length,t.length)}))},B_=u("alloy.typeahead.itemexecute"),R_=u([yo("lazySink"),lo("fetch"),Oo("minChars",5),Oo("responseTime",1e3),Wa("onOpen"),Oo("getHotspot",ve.some),Oo("getAnchorOverrides",u({})),Oo("layouts",ve.none()),Oo("eventOrder",{}),Bo("model",{},[Oo("getDisplayText",(function(e){return void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value})),Oo("selectsOver",!0),Oo("populateFromBrowse",!0)]),Wa("onSetValue"),qa("onExecute"),Wa("onItemExecute"),Oo("inputClasses",[]),Oo("inputAttributes",{}),Oo("inputStyles",{}),Oo("matchWidth",!0),Oo("useMinWidth",!1),Oo("dismissOnBlur",!0),Ua(["openClass"]),yo("initialData"),Ws("typeaheadBehaviours",[Tg,xf,A_,kg,Ag,Ay]),ar("previewing",(function(){return Ro(!0)}))].concat(sy()).concat(Fy())),H_=u([Uf({schema:[Fa()],name:"menu",overrides:function(e){return{fakeFocus:!0,onHighlight:function(t,n){e.previewing.get()?t.getSystem().getByUid(e.uid).each((function(o){(function(e,t,n){if(e.selectsOver){var o=xf.getValue(t),r=e.getDisplayText(o),i=xf.getValue(n);return 0===e.getDisplayText(i).indexOf(r)?ve.some((function(){var e;RS(0,t,n),e=r.length,HS(t,(function(t,n){return t.setSelectionRange(e,n.length)}))})):ve.none()}return ve.none()})(e.model,o,n).fold((function(){return ud.dehighlight(t,n)}),(function(e){return e()}))})):t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&RS(e.model,t,n)})),e.previewing.set(!1)},onExecute:function(t,n){return t.getSystem().getByUid(e.uid).toOptional().map((function(e){return pr(e,B_(),{item:n}),!0}))},onHover:function(t,n){e.previewing.set(!1),t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&RS(e.model,t,n)}))}}}})]),L_=hl({name:"Typeahead",configFields:R_(),partFields:H_(),factory:function(e,t,n,o){function r(t,n,r){e.previewing.set(!1);var u=Ay.getCoupled(t,"sandbox");sf.isOpen(u)?Zf.getCurrent(u).each((function(e){ud.getHighlighted(e).fold((function(){r(e)}),(function(){yr(u,e.element,"keydown",n)}))})):Hy(e,a(t),t,u,o,(function(e){Zf.getCurrent(e).each(r)}),yy.HighlightFirst).get(i)}function a(e){return function(t){return t.map((function(t){var n=j(re(t.menus),(function(e){return L(e.items,(function(e){return"item"===e.type}))}));return xf.getState(e).update(R(n,(function(e){return e.data}))),t}))}}var u=Pb(e),c=[Tg.config({}),xf.config({onSetValue:e.onSetValue,store:_({mode:"dataset",getDataKey:function(e){return Kr(e.element)},getFallbackEntry:function(e){return{value:e,meta:{}}},setValue:function(t,n){Yr(t.element,e.model.getDisplayText(n))}},e.initialData.map((function(e){return ur("initialValue",e)})).getOr({}))}),A_.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:function(t,n){var r,u=Ay.getCoupled(t,"sandbox");Tg.isFocused(t)&&Kr(t.element).length>=e.minChars&&(r=Zf.getCurrent(u).bind((function(e){return ud.getHighlighted(e).map(xf.getValue)})),e.previewing.set(!0),Hy(e,a(t),t,u,o,(function(t){Zf.getCurrent(u).each((function(t){r.fold((function(){e.model.selectsOver&&ud.highlightFirst(t)}),(function(e){ud.highlightBy(t,(function(t){return xf.getValue(t).value===e.value})),ud.getHighlighted(t).orThunk((function(){return ud.highlightFirst(t),ve.none()}))}))}))}),yy.HighlightFirst).get(i))},cancelEvent:Bi()}),kg.config({mode:"special",onDown:function(e,t){return r(e,t,ud.highlightFirst),ve.some(!0)},onEscape:function(e){var t=Ay.getCoupled(e,"sandbox");return sf.isOpen(t)?(sf.close(t),ve.some(!0)):ve.none()},onUp:function(e,t){return r(e,t,ud.highlightLast),ve.some(!0)},onEnter:function(t){var n=Ay.getCoupled(t,"sandbox"),o=sf.isOpen(n);if(o&&!e.previewing.get())return Zf.getCurrent(n).bind((function(e){return ud.getHighlighted(e)})).map((function(e){return pr(t,B_(),{item:e}),!0}));var r=xf.getValue(t);return hr(t,Bi()),e.onExecute(n,t,r),o&&sf.close(n),ve.some(!0)}}),Ag.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),Ay.config({others:{sandbox:function(t){return Py(e,t,{onOpen:function(){return Ag.on(t)},onClose:function(){return Ag.off(t)}})}}}),rm("typeaheadevents",[ta((function(t){Ly(e,a(t),t,o,i,yy.HighlightFirst).get(i)})),Cr(B_(),(function(t,n){var o=Ay.getCoupled(t,"sandbox");RS(e.model,t,n.event.item),hr(t,Bi()),e.onItemExecute(t,o,n.event.item,xf.getValue(t)),sf.close(o),N_(t)}))].concat(e.dismissOnBlur?[Cr(Oi(),(function(e){var t=Ay.getCoupled(e,"sandbox");xu(t.element).isNone()&&sf.close(t)}))]:[]))];return{uid:e.uid,dom:Ib(qo(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:_(_({},u),Gs(e.typeaheadBehaviours,c)),eventOrder:e.eventOrder}}}),V_=function(e){return _(_({},e),{toCached:function(){return V_(e.toCached())},bindFuture:function(t){return V_(e.bind((function(e){return e.fold((function(e){return Oy(Hn.error(e))}),(function(e){return t(e)}))})))},bindResult:function(t){return V_(e.map((function(e){return e.bind(t)})))},mapResult:function(t){return V_(e.map((function(e){return e.map(t)})))},mapError:function(t){return V_(e.map((function(e){return e.mapError(t)})))},foldResult:function(t,n){return e.map((function(e){return e.fold(t,n)}))},withTimeout:function(t,n){return V_(_y((function(o){var r=!1,i=setTimeout((function(){r=!0,o(Hn.error(n()))}),t);e.get((function(e){r||(clearTimeout(i),o(e))}))})))}})},P_=function(e){return V_(_y(e))},I_={type:"separator"},F_=Ar("aria-invalid"),U_={bar:FS((function(e,t){return n=t.shared,{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:R(e.items,n.interpreter)};var n})),collection:FS((function(e,t){return r=e,i=t.shared.providers,s=r.label.map((function(e){return Vb(e,i)})),l=n((function(e,t,n,o){t.stop(),i.isDisabled()||pr(e,oy,{name:r.name,value:o})})),f=[Cr(di(),n((function(e,t,n){vu(n)}))),Cr(yi(),l),Cr(Di(),l),Cr(mi(),n((function(e,t,n){Ta(e.element,"."+yp).each((function(e){qr(e,yp)})),Wr(n,yp)}))),Cr(gi(),n((function(e){Ta(e.element,"."+yp).each((function(e){qr(e,yp)}))}))),ta(n((function(e,t,n,o){pr(e,oy,{name:r.name,value:o})})))],Lb(s,Xb.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==r.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:c},behaviours:Ku([id.config({disabled:i.isDisabled,onDisabled:function(e){o(e,(function(e){Wr(e,"tox-collection__item--state-disabled"),ot(e,"aria-disabled",!0)}))},onEnabled:function(e){o(e,(function(e){qr(e,"tox-collection__item--state-disabled"),ct(e,"aria-disabled")}))}}),ov(),Og.config({}),xf.config({store:{mode:"memory",initialValue:[]},onSetValue:function(e,t){var n=e,o=R(t,(function(e){var t=nh.translate(e.text),n=1===r.columns?'<div class="tox-collection__item-label">'+t+"</div>":"",o='<div class="tox-collection__item-icon">'+e.icon+"</div>",a={_:" "," - ":" ","-":" "},u=t.replace(/\_| \- |\-/g,(function(e){return a[e]}));return'<div class="tox-collection__item'+(i.isDisabled()?" tox-collection__item--state-disabled":"")+'" tabindex="-1" data-collection-item-value="'+Jb.encodeAllRaw(e.value)+'" title="'+u+'" aria-label="'+u+'">'+o+n+"</div>"})),a=R("auto"!==r.columns&&1<r.columns?B(o,r.columns):[o],(function(e){return'<div class="tox-collection__group">'+e.join("")+"</div>"}));Mr(n.element,a.join("")),"auto"===r.columns&&Yh(e,5,"tox-collection__item").each((function(t){var n=t.numRows,o=t.numColumns;kg.setGridSize(e,n,o)})),hr(e,cy)}}),Yb.config({}),kg.config(1===(u=r.columns)?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===u?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:".tox-collection__group",cell:"."+mp}}),rm("collection-events",f)]),eventOrder:((a={})[Ti()]=["disabling","alloy.base.behaviour","collection-events"],a)}),["tox-form__group--collection"],[]);function n(e){return function(t,n){Ma(n.event.target,"[data-collection-item-value]").each((function(o){e(t,n,o,it(o,"data-collection-item-value"))}))}}function o(e,t){return R(cs(e.element,".tox-collection__item"),t)}var r,i,a,u,s,l,f})),alertbanner:FS((function(e,t){return o=t.shared.providers,qb.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+(n=e).level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[th.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:Bm(n.icon,o.icons),attributes:{title:o.translate(n.iconTooltip)}},action:function(e){pr(e,oy,{name:"alert-banner",value:n.url})},buttonBehaviours:Ku([Rm()])})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:o.translate(n.text)}}]});var n,o})),input:FS((function(e,t){return o=t.shared.providers,NS({name:(n=e).name,multiline:!1,label:n.label,inputMode:n.inputMode,placeholder:n.placeholder,flex:!1,disabled:n.disabled,classname:"tox-textfield",validation:ve.none(),maximized:n.maximized},o);var n,o})),textarea:FS((function(e,t){return o=t.shared.providers,NS({name:(n=e).name,multiline:!0,label:n.label,inputMode:ve.none(),placeholder:n.placeholder,flex:!0,disabled:n.disabled,classname:"tox-textarea",validation:ve.none(),maximized:n.maximized},o);var n,o})),label:FS((function(e,t){return r={dom:{tag:"label",innerHtml:(o=t.shared).providers.translate((n=e).label),classes:["tox-label"]}},i=R(n.items,o.interpreter),{dom:{tag:"div",classes:["tox-form__group"]},components:[r].concat(i),behaviours:Ku([Lw(),Og.config({}),Vw(ve.none()),kg.config({mode:"acyclic"})])};var n,o,r,i})),iframe:(S_=function(e,t){return n=e,o=t.shared.providers,a=XC&&n.sandboxed,u=_(_({},n.label.map((function(e){return{title:e}})).getOr({})),a?{sandbox:"allow-scripts allow-same-origin"}:{}),r=a,i=Ro(""),c={getValue:function(e){return i.get()},setValue:function(e,t){var n;r?ot(e.element,"srcdoc",t):(ot(e.element,"src","javascript:''"),(n=e.element.dom.contentWindow.document).open(),n.write(t),n.close()),i.set(t)}},Lb(n.label.map((function(e){return Vb(e,o)})),Xb.parts.field({factory:{sketch:function(e){return qx({uid:e.uid,dom:{tag:"iframe",attributes:u},behaviours:Ku([Yb.config({}),Tg.config({}),WC(ve.none(),c.getValue,c.setValue)])})}}}),["tox-form__group--stretched"],[]);var n,o,r,i,a,u,c},function(e,t,n){var o=qo(t,{source:"dynamic"});return FS(S_)(e,o,n)}),button:FS((function(e,t){return n=e,o=t.shared.providers,r=zw(n.name,"custom"),Lb(ve.none(),Xb.parts.field(_({factory:th},Ow(n,ve.some(r),o,[qC(""),Lw()]))),[],[]);var n,o,r})),checkbox:FS((function(e,t){return r=e,i=t.shared.providers,a=xf.config({store:{mode:"manual",getValue:function(e){return e.element.dom.checked},setValue:function(e,t){e.element.dom.checked=t}}}),u=Xb.parts.field({factory:{sketch:c},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:Ku([Lw(),id.config({disabled:function(){return r.disabled||i.isDisabled()}}),Yb.config({}),Tg.config({}),a,kg.config({mode:"special",onEnter:n,onSpace:n,stopSpaceKeyup:!0}),rm("checkbox-events",[Cr(bi(),(function(e,t){pr(e,ey,{name:r.name})}))])])}),s=Xb.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:i.translate(r.label)},behaviours:Ku([$w.config({})])}),l=Mm({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[o("checked"),o("unchecked")]}),Xb.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[u,l.asSpec(),s],fieldBehaviours:Ku([id.config({disabled:function(){return r.disabled||i.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(e){Xb.getField(e).each(id.disable)},onEnabled:function(e){Xb.getField(e).each(id.enable)}}),ov()])});function n(e){return e.element.dom.click(),ve.some(!0)}function o(e){return Lm("checked"===e?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e]},i.icons)}var r,i,a,u,s,l})),colorinput:FS((function(e,t){return o=e,r=t.shared,a=t.colorinput,s=Xb.parts.field({factory:ly,inputClasses:["tox-textfield"],onSetValue:function(e){return My.run(e).get(i)},inputBehaviours:Ku([id.config({disabled:r.providers.isDisabled}),ov(),Yb.config({}),My.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(e){return $e(e.element)},notify:{onValid:function(e){var t=xf.getValue(e);pr(e,Xw,{color:t})}},validator:{validateOnLoad:!1,validate:function(e){var t=xf.getValue(e);if(0===t.length)return Oy(Hn.value(!0));var n=Ae.fromTag("span");ft(n,"background-color",t);var o=ht(n,"background-color").fold((function(){return Hn.error("blah")}),(function(e){return Hn.value(t)}));return Oy(o)}}})]),selectOnFocus:!1}),l=o.label.map((function(e){return Vb(e,r.providers)})),f=Mm((u={dom:{tag:"span",attributes:{"aria-label":r.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[Fu,Iu,qu]},onLtr:function(){return[Iu,Fu,qu]}},components:[],fetch:sb(a.getColors(),a.hasCustomColors()),columns:a.getColorCols(),presets:"color",onItemAction:function(e,t){f.getOpt(e).each((function(e){"custom"===t?a.colorPicker((function(t){t.fold((function(){return hr(e,Yw)}),(function(t){n(e,t),rb(t)}))}),"#ffffff"):n(e,"remove"===t?"":t)}))}},Gw.sketch({dom:u.dom,components:u.components,toggleClass:"mce-active",dropdownBehaviours:Ku([Pv((c=r).providers.isDisabled),ov(),$w.config({}),Yb.config({})]),layouts:u.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:c.getSink,fetch:function(e){return _y((function(e){return u.fetch(e)})).map((function(t){return ve.from(Tb(qo(mb(Ar("menu-value"),t,(function(t){u.onItemAction(e,t)}),u.columns,u.presets,fp.CLOSE_ON_EXECUTE,C,c.providers),{movement:gb(u.columns,u.presets)})))}))},parts:{menu:Uh(0,0,u.presets)}}))),Xb.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:l.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[s,f.asSpec()]}]),fieldBehaviours:Ku([rm("form-field-events",[Cr(Xw,(function(e,t){f.getOpt(e).each((function(e){ft(e.element,"background-color",t.event.color)})),pr(e,ey,{name:o.name})})),Cr(Kw,(function(e,t){Xb.getField(e).each((function(n){xf.setValue(n,t.event.value),Zf.getCurrent(e).each(Tg.focus)}))})),Cr(Yw,(function(e,t){Xb.getField(e).each((function(t){Zf.getCurrent(e).each(Tg.focus)}))}))])])});function n(e,t){pr(e,Kw,{value:t})}var o,r,a,u,c,s,l,f})),colorpicker:FS((function(e){var t=Mm(Fx(Ux,(function(e){return"tox-"+e})).sketch({dom:{tag:"div",classes:["tox-color-picker-container"],attributes:{role:"presentation"}},onValidHex:function(e){pr(e,oy,{name:"hex-valid",value:!0})},onInvalidHex:function(e){pr(e,oy,{name:"hex-valid",value:!1})}}));return{dom:{tag:"div"},components:[t.asSpec()],behaviours:Ku([xf.config({store:{mode:"manual",getValue:function(e){var n=t.get(e);return Zf.getCurrent(n).bind((function(e){return xf.getValue(e).hex})).map((function(e){return"#"+e})).getOr("")},setValue:function(e,n){var o=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/.exec(n),r=t.get(e);Zf.getCurrent(r).fold((function(){console.log("Can not find form")}),(function(e){xf.setValue(e,{hex:ve.from(o[1]).getOr("")}),AC.getField(e,"hex").each((function(e){hr(e,vi())}))}))}}}),Lw()])}})),dropzone:FS((function(e,t){return function(e,t){function n(e,t){t.stop()}function o(e){return function(t,n){Ce(e,(function(e){e(t,n)}))}}function r(e,t){id.isDisabled(e)||a(e,t.event.raw.dataTransfer.files)}function i(e,t){a(e,t.event.raw.target.files)}function a(n,o){var r,i;xf.setValue(n,(r=o,i=FC.explode(t.getSetting("images_file_types","jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp","string")),L(Se(r),(function(e){return A(i,(function(t){return Me(e.name.toLowerCase(),"."+t.toLowerCase())}))})))),pr(n,ey,{name:e.name})}var u=Mm({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:Ku([rm("input-file-events",[Er(yi()),Er(Di())])])});return Lb(e.label.map((function(e){return Vb(e,t)})),Xb.parts.field({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:Ku([qC([]),Lw(),id.config({}),Ag.config({toggleClass:"dragenter",toggleOnExecute:!1}),rm("dropzone-events",[Cr("dragenter",o([n,Ag.toggle])),Cr("dragleave",o([n,Ag.toggle])),Cr("dragover",n),Cr("drop",o([n,r])),Cr(bi(),i)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},th.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[u.asSpec()],action:function(e){u.get(e).element.dom.click()},buttonBehaviours:Ku([Yb.config({}),Pv(t.isDisabled),ov()])})]}]}}}}),["tox-form__group--stretched"],[])}(e,t.shared.providers)})),grid:FS((function(e,t){return n=t.shared,{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+e.columns+"col"]},components:R(e.items,n.interpreter)};var n})),listbox:FS((function(e,t){return n=e,r=(o=t).shared.providers,a=J(n.items).filter(AS),c=n.label.map((function(e){return Vb(e,r)})),s={dom:{tag:"div",classes:["tox-listboxfield"]},components:[Xb.parts.field({dom:{},factory:{sketch:function(e){return bw({uid:e.uid,text:a.map((function(e){return e.text})),icon:ve.none(),tooltip:n.label,role:ve.none(),fetch:function(e,t){t(xw(E_(e,n.name,n.items,xf.getValue(e)),fp.CLOSE_ON_EXECUTE,o,!1))},onSetup:u(i),getApi:u({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Yb.config({}),xf.config({store:{mode:"manual",initialValue:a.map((function(e){return e.value})).getOr(""),getValue:function(e){return it(e.element,O_)},setValue:function(e,t){z_(n.items,t).each((function(t){ot(e.element,O_,t.value),pr(e,dS,{text:t.text})}))}}})]},"tox-listbox",o.shared)}}})]},Xb.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:U([c.toArray(),[s]]),fieldBehaviours:Ku([id.config({disabled:u(n.disabled),onDisabled:function(e){Xb.getField(e).each(id.disable)},onEnabled:function(e){Xb.getField(e).each(id.enable)}})])});var n,o,r,a,c,s})),selectbox:FS((function(e,t){return n=e,o=t.shared.providers,r=R(n.items,(function(e){return{text:o.translate(e.text),value:e.value}})),i=n.label.map((function(e){return Vb(e,o)})),a={dom:{tag:"div",classes:["tox-selectfield"]},components:U([[Xb.parts.field({dom:{},selectAttributes:{size:n.size},options:r,factory:T_,selectBehaviours:Ku([id.config({disabled:function(){return n.disabled||o.isDisabled()}}),Yb.config({}),rm("selectbox-change",[Cr(bi(),(function(e,t){pr(e,ey,{name:n.name})}))])])})],(1<n.size?ve.none():ve.some(Lm("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},o.icons))).toArray()])},Xb.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:U([i.toArray(),[a]]),fieldBehaviours:Ku([id.config({disabled:function(){return n.disabled||o.isDisabled()},onDisabled:function(e){Xb.getField(e).each(id.disable)},onEnabled:function(e){Xb.getField(e).each(id.enable)}}),ov()])});var n,o,r,i,a})),sizeinput:FS((function(e,t){return Bw(e,t.shared.providers)})),urlinput:FS((function(e,t){return function(e,t,n){function o(t){var o=xf.getValue(t);n.addToHistory(o.value,e.filetype)}var r,a,u,c,s=t.shared.providers,l=Xb.parts.field({factory:L_,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":F_,type:"url"},minChars:0,responseTime:0,fetch:function(o){var r,i,a,u,c=xw((r=e.filetype,i=n,a=xf.getValue(o),u=void 0!==a.meta.text?a.meta.text:a.value,i.getLinkInformation().fold((function(){return[]}),(function(e){var t=IS(u,R(i.getHistory(r),(function(e){return VS(e,e)})));return"file"===r?P([t,IS(u,PS("header",e.targets)),IS(u,U([ve.from(e.anchorTop).map((function(e){return VS("<top>",e)})).toArray(),PS("anchor",e.targets),ve.from(e.anchorBottom).map((function(e){return VS("<bottom>",e)})).toArray()]))],(function(e,t){return 0===e.length||0===t.length?e.concat(t):e.concat(I_,t)}),[]):t}))),fp.BUBBLE_TO_SANDBOX,t,!1);return Oy(c)},getHotspot:function(e){return p.getOpt(e)},onSetValue:function(e,t){e.hasConfigured(My)&&My.run(e).get(i)},typeaheadBehaviours:Ku(U([n.getValidationHandler().map((function(t){return My.config({getRoot:function(e){return $e(e.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(e,t){d.getOpt(e).each((function(e){ot(e.element,"title",s.translate(t))}))}},validator:{validate:function(n){var o=xf.getValue(n);return P_((function(n){t({type:e.filetype,url:o.value},(function(e){var t,o;"invalid"===e.status?(t=Hn.error(e.message),n(t)):(o=Hn.value(e.message),n(o))}))}))},validateOnLoad:!1}})})).toArray(),[id.config({disabled:function(){return e.disabled||s.isDisabled()}}),Yb.config({}),rm("urlinput-events",U(["file"===e.filetype?[Cr(vi(),(function(t){pr(t,ey,{name:e.name})}))]:[],[Cr(bi(),(function(t){pr(t,ey,{name:e.name}),o(t)})),Cr(Ei(),(function(t){pr(t,ey,{name:e.name}),o(t)}))]]))]])),eventOrder:((r={})[vi()]=["streaming","urlinput-events","invalidating"],r),model:{getDisplayText:function(e){return e.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:Uh(0,0,"normal")},onExecute:function(e,t,n){pr(t,ry,{})},onItemExecute:function(t,n,r,i){o(t),pr(t,ey,{name:e.name})}}),f=e.label.map((function(e){return Vb(e,s)})),d=Mm((a="invalid",u=ve.some(F_),Lm("warning",{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+a],attributes:_({title:s.translate(c=void 0===c?a:c),"aria-live":"polite"},u.fold((function(){return{}}),(function(e){return{id:e}})))},s.icons))),m=Mm({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[d.asSpec()]}),g=n.getUrlPicker(e.filetype),h=Ar("browser.url.event"),p=Mm({dom:{tag:"div",classes:["tox-control-wrap"]},components:[l,m.asSpec()],behaviours:Ku([id.config({disabled:function(){return e.disabled||s.isDisabled()}})])}),v=Mm(Ew({name:e.name,icon:ve.some("browse"),text:e.label.getOr(""),disabled:e.disabled,primary:!1,borderless:!0},(function(e){return hr(e,h)}),s,[],["tox-browse-url"]));return Xb.sketch({dom:Zb([]),components:f.toArray().concat([{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:U([[p.asSpec()],g.map((function(){return v.asSpec()})).toArray()])}]),fieldBehaviours:Ku([id.config({disabled:function(){return e.disabled||s.isDisabled()},onDisabled:function(e){Xb.getField(e).each(id.disable),v.getOpt(e).each(id.disable)},onEnabled:function(e){Xb.getField(e).each(id.enable),v.getOpt(e).each(id.enable)}}),ov(),rm("url-input-events",[Cr(h,(function(t){Zf.getCurrent(t).each((function(n){var o=xf.getValue(n),r=_({fieldname:e.name},o);g.each((function(o){o(r).get((function(o){xf.setValue(n,o),pr(t,ey,{name:e.name})}))}))}))}))])])})}(e,t,t.urlinput)})),customeditor:FS((function(e){var t=uc(),n=Mm({dom:{tag:e.tag}}),o=uc();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:Ku([rm("custom-editor-events",[Qi((function(r){n.getOpt(r).each((function(n){(Ee(e,"init")?e.init(n.element.dom):IC.load(e.scriptId,e.scriptUrl).then((function(t){return t(n.element.dom,e.settings)}))).then((function(e){o.on((function(t){e.setValue(t)})),o.clear(),t.set(e)}))}))}))]),xf.config({store:{mode:"manual",getValue:function(){return t.get().fold((function(){return o.get().getOr("")}),(function(e){return e.getValue()}))},setValue:function(e,n){t.get().fold((function(){o.set(n)}),(function(e){return e.setValue(n)}))}}}),Lw()]),components:[n.asSpec()]}})),htmlpanel:FS((function(e){return"presentation"===e.presets?qb.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):qb.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:Ku([Yb.config({}),Tg.config({})])})})),imagetools:FS((function(e,t){return DS(e,t.shared.providers)})),table:FS((function(e,t){return function(e,t){function n(e){return{dom:{tag:"td",innerHtml:t.translate(e)}}}return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:R(e.header,(function(e){return{dom:{tag:"th",innerHtml:t.translate(e)}}}))}]},{dom:{tag:"tbody"},components:R(e.cells,(function(e){return{dom:{tag:"tr"},components:R(e,n)}}))}],behaviours:Ku([Yb.config({}),Tg.config({})])}}(e,t.shared.providers)})),panel:FS((function(e,t){return{dom:{tag:"div",classes:e.classes},components:R(e.items,t.shared.interpreter)}}))},j_={field:function(e,t){return t}},W_=function(e,t,n){return ie(U_,t.type).fold((function(){return console.error('Unknown factory type "'+t.type+'", defaulting to container: ',t),t}),(function(o){return o(e,t,n)}))},q_={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},G_=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],$_=function(e){return P(e,(function(e,t){if(Ee(t,"items")){var n=$_(t.items);return{customFormats:e.customFormats.concat(n.customFormats),formats:e.formats.concat([{title:t.title,items:n.formats}])}}if(Ee(t,"inline")||Ee(t,"block")||Ee(t,"selector")){var o="custom-"+(l(t.name)?t.name:t.title.toLowerCase());return{customFormats:e.customFormats.concat([{name:o,format:t}]),formats:e.formats.concat([{title:t.title,format:o,icon:t.icon}])}}return _(_({},e),{formats:e.formats.concat(t)})}),{customFormats:[],formats:[]})},X_=FC.trim,K_=$S("true"),Y_=$S("false"),J_=function(e){var t=R(cs(Ae.fromDom(e),"h1,h2,h3,h4,h5,h6,a:not([href])"),(function(e){return e.dom}));return L(R(L(t,QS),ZS).concat(R(L(t,YS),ek)),tk)},Q_="tinymce-url-history",Z_=Xf,eO=Gf,tO=u([Oo("shell",!1),lo("makeItem"),Oo("setupItem",i),wf("listBehaviours",[Og])]),nO=u([jf({name:"items",overrides:function(){return{behaviours:Ku([Og.config({})])}}})]),oO=hl({name:u("CustomList")(),configFields:tO(),partFields:nO(),factory:function(e,t,n,o){var r=e.shell?{behaviours:[Og.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:r.components,behaviours:Gs(e.listBehaviours,r.behaviours),apis:{setItems:function(t,n){var o;o=t,(e.shell?ve.some(o):rl(o,e,"items")).fold((function(){throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(o){var r=Og.contents(o),i=n.length,a=i-r.length,u=0<a?N(a,(function(){return e.makeItem()})):[],c=r.slice(i);Ce(c,(function(e){return Og.remove(o,e)})),Ce(u,(function(e){return Og.append(o,e)}));var s=Og.contents(o);Ce(s,(function(o,r){e.setupItem(t,o,n[r],r)}))}))}}}},apis:{setItems:function(e,t,n){e.setItems(t,n)}}}),rO=u([lo("dom"),Oo("shell",!0),Ws("toolbarBehaviours",[Og])]),iO=u([jf({name:"groups",overrides:function(){return{behaviours:Ku([Og.config({})])}}})]),aO=hl({name:"Toolbar",configFields:rO(),partFields:iO(),factory:function(e,t,n,o){var r=e.shell?{behaviours:[Og.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:r.components,behaviours:Gs(e.toolbarBehaviours,r.behaviours),apis:{setGroups:function(t,n){var o;o=t,(e.shell?ve.some(o):rl(o,e,"groups")).fold((function(){throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(e){Og.set(e,n)}))}},domModification:{attributes:{role:"group"}}}},apis:{setGroups:function(e,t,n){e.setGroups(t,n)}}}),uO=u([]),cO=Object.freeze({__proto__:null,setup:i,isDocked:C,getBehaviours:uO}),sO=Ho([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),lO=function(e,t,n){var o,r,i,a;e.getSystem().isConnected()&&(i=n,a=(r=t).lazyViewport(o=e),i.isDocked()&&Ck(o,r,i,a),function(e,t,n){var o,r,i,a=e.element;return ue(ht(a,"position"),"fixed")?(r=t,bk(o=a,i=n).filter((function(e){return vk(i.getModes(),e,r)})).bind((function(e){return yk(o,e,i)}))):function(e,t,n){var o,r,i=An(e);if(vk(n.getModes(),i,t))return ve.none();o=e,r=i,n.setInitialPos({style:function(){var e={},t=o.dom;if(me(t))for(var n=0;n<t.style.length;n++){var r=t.style.item(n);e[r]=t.style[r]}return e}(),position:gt(o,"position")||"static",bounds:r});var a=Nn(),u=i.x-a.x,c=t.y-a.y,s=a.bottom-t.bottom,l=i.y<=t.y;return ve.some(sO.fixed(Cu("fixed",ve.some(u),l?ve.some(c):ve.none(),ve.none(),l?ve.none():ve.some(s))))}(a,t,n)}(o,a,i).each((function(e){e.fold((function(){return xk(o,r,i)}),(function(e){return wk(o,r,i,e)}),(function(e){Ck(o,r,i,a,!0),wk(o,r,i,e)}))})))},fO=Object.freeze({__proto__:null,refresh:lO,reset:Sk,isDocked:function(e,t,n){return n.isDocked()},getModes:function(e,t,n){return n.getModes()},setModes:function(e,t,n,o){return n.setModes(o)}}),dO=Object.freeze({__proto__:null,events:function(e,t){return Ji([zr(wi(),(function(n,o){e.contextual.each((function(e){Gr(n.element,e.transitionClass)&&(Xr(n.element,[e.transitionClass,e.fadeInClass]),(t.isVisible()?e.onShown:e.onHidden)(n)),o.stop()}))})),Cr(Vi(),(function(n,o){lO(n,e,t)})),Cr(Pi(),(function(n,o){Sk(n,e,t)}))])}}),mO=gu({fields:[_o("contextual",[mo("fadeInClass"),mo("fadeOutClass"),mo("transitionClass"),ho("lazyContext"),Wa("onShow"),Wa("onShown"),Wa("onHide"),Wa("onHidden")]),Ao("lazyViewport",Nn),No("modes",["top","bottom"],Zo),Wa("onDocked"),Wa("onUndocked")],name:"docking",active:dO,apis:fO,state:Object.freeze({__proto__:null,init:function(e){var t=Ro(!1),n=Ro(!0),o=uc(),r=Ro(e.modes);return pa({isDocked:t.get,setDocked:t.set,getInitialPos:o.get,setInitialPos:o.set,clearInitialPos:o.clear,isVisible:n.get,setVisible:n.set,getModes:r.get,setModes:r.set,readState:function(){return"docked: "+t.get()+", visible: "+n.get()+", modes: "+r.get().join(",")}})}})}),gO=u(Ar("toolbar-height-change")),hO={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},pO="tox-tinymce--toolbar-sticky-on",vO="tox-tinymce--toolbar-sticky-off",bO=Object.freeze({__proto__:null,setup:function(e,t,n){e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",(function(){n().each(mO.reset)})),e.on("ResizeWindow ResizeEditor",(function(){n().each(_k)})),e.on("SkinLoaded",(function(){n().each((function(e){mO.isDocked(e)?mO.reset(e):mO.refresh(e)}))})),e.on("FullscreenStateChanged",(function(){n().each(mO.reset)}))),e.on("AfterScrollIntoView",(function(e){n().each((function(t){mO.refresh(t);var n,o,r,i,a,u,c,s,l,f,d,m,g,h,p,v,b=t.element;zd(b)&&(n=e,i=(r=je(o=b)).dom.defaultView.innerHeight,a=Bt(r),c=Pt(u=Ae.fromDom(n.elm)),s=xt(u),f=(l=c.y)+s,d=St(o),m=xt(o),h=(g=d.top)+m,p=Math.abs(g-a.top)<2,v=Math.abs(h-(a.top+i))<2,p&&l<h?Rt(a.left,l-m,r):v&&g<f&&Rt(a.left,l-i+s+m,r))}))})),e.on("PostRender",(function(){Ek(e,!1)}))},isDocked:function(e){return e().map(mO.isDocked).getOr(!1)},getBehaviours:zk}),yO=Ko([mo("type"),fo("items",eo([Yo([mo("name"),bo("items",Zo)]),Zo]))].concat(Eh)),xO=[Co("text"),Co("tooltip"),Co("icon"),ho("fetch"),Ao("onSetup",(function(){return i}))],wO=Ko(E([mo("type")],xO,!0)),CO=Ko([mo("type"),Co("tooltip"),Co("icon"),Co("text"),So("select"),ho("fetch"),Ao("onSetup",(function(){return i})),Mo("presets","normal",["normal","color","listpreview"]),Oo("columns",1),ho("onAction"),ho("onItemAction")]),SO=gl({factory:function(e,t){var n={focus:kg.focusIn,setMenus:function(e,n){var o=R(n,(function(e){return Cw(Tk({type:"menubutton",text:e.text,fetch:function(t){t(e.getItems())}}).mapError((function(e){return rr(e)})).getOrDie(),"tox-mbtn",t.backstage,ve.some("menuitem"))}));Og.set(e,o)}};return{uid:e.uid,dom:e.dom,components:[],behaviours:Ku([Og.config({}),rm("menubar-events",[Qi((function(t){e.onSetup(t)})),Cr(di(),(function(e,t){Ta(e.element,".tox-mbtn--active").each((function(n){Ma(t.event.target,".tox-mbtn").each((function(t){Fe(n,t)||e.getSystem().getByDom(n).each((function(n){e.getSystem().getByDom(t).each((function(e){Gw.expand(e),Gw.close(n),Tg.focus(e)}))}))}))}))})),Cr(Wi(),(function(e,t){t.event.prevFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(n){t.event.newFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(e){Gw.isOpen(n)&&(Gw.expand(e),Gw.close(n))}))}))}))]),kg.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return e.onEscape(t),ve.some(!0)}}),Yb.config({})]),apis:n,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[lo("dom"),lo("uid"),lo("onEscape"),lo("backstage"),Oo("onSetup",i)],apis:{focus:function(e,t){e.focus(t)},setMenus:function(e,t,n){e.setMenus(t,n)}}}),kO=Object.freeze({__proto__:null,refresh:function(e,t,n){var o;n.isExpanded()&&(vt(e.element,Dk(t)),o=Ak(t,e.element),ft(e.element,Dk(t),o))},grow:function(e,t,n){n.isExpanded()||Vk(e,t,n)},shrink:function(e,t,n){n.isExpanded()&&Lk(e,t,n)},immediateShrink:function(e,t,n){n.isExpanded()&&Hk(e,t,n)},hasGrown:function(e,t,n){return n.isExpanded()},hasShrunk:function(e,t,n){return n.isCollapsed()},isGrowing:Pk,isShrinking:Ik,isTransitioning:function(e,t,n){return Pk(e,t)||Ik(e,t)},toggleGrow:function(e,t,n){(n.isExpanded()?Lk:Vk)(e,t,n)},disableTransitions:Nk}),_O=Object.freeze({__proto__:null,exhibit:function(e,t,n){return Pr(t.expanded?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:ur(t.dimension.property,"0px")})},events:function(e,t){return Ji([zr(wi(),(function(n,o){o.event.raw.propertyName===e.dimension.property&&(Nk(n,e),t.isExpanded()&&vt(n.element,e.dimension.property),(t.isExpanded()?e.onGrown:e.onShrunk)(n))}))])}}),OO=gu({fields:[lo("closedClass"),lo("openClass"),lo("shrinkingClass"),lo("growingClass"),yo("getAnimationRoot"),Wa("onShrunk"),Wa("onStartShrink"),Wa("onGrown"),Wa("onStartGrow"),Oo("expanded",!1),fo("dimension",co("property",{width:[Xa("property","width"),Xa("getDimension",(function(e){return kt(e)+"px"}))],height:[Xa("property","height"),Xa("getDimension",(function(e){return xt(e)+"px"}))]}))],name:"sliding",active:_O,apis:kO,state:Object.freeze({__proto__:null,init:function(e){var t=Ro(e.expanded);return pa({isExpanded:function(){return!0===t.get()},isCollapsed:function(){return!1===t.get()},setCollapsed:y(t.set,!1),setExpanded:y(t.set,!0),readState:function(){return"expanded: "+t.get()}})}})}),EO="container",zO=[Ws("slotBehaviours",[])],TO=te({getSlotNames:function(e,t){return e.getSlotNames(t)},getSlot:function(e,t,n){return e.getSlot(t,n)},isShowing:function(e,t,n){return e.isShowing(t,n)},hideSlot:function(e,t,n){return e.hideSlot(t,n)},hideAllSlots:function(e,t){return e.hideAllSlots(t)},showSlot:function(e,t,n){return e.showSlot(t,n)}},Lr),MO=_(_({},TO),{sketch:function(e){var t,n={slot:function(e,n){return t.push(e),Zs(EO,Fk(e),n)},record:u(t=[])},o=e(n),r=R(n.record(),(function(e){return Ff({name:e,pname:Fk(e)})}));return ml(EO,zO,r,w_,o)}}),DO=Ko([Co("icon"),Co("tooltip"),Ao("onShow",i),Ao("onHide",i),Ao("onSetup",(function(){return i}))]),AO=Ar("FixSizeEvent"),NO=Ar("AutoSizeEvent"),BO=Object.freeze({__proto__:null,block:function(e,t,n,o){ot(e.element,"aria-busy",!0);var r=t.getRoot(e).getOr(e),i=Ku([kg.config({mode:"special",onTab:function(){return ve.some(!0)},onShiftTab:function(){return ve.some(!0)}}),Tg.config({})]),a=o(r,i),u=r.getSystem().build(a);Og.append(r,Sa(u)),u.hasConfigured(kg)&&t.focus&&kg.focusIn(u),n.isBlocked()||t.onBlock(e),n.blockWith((function(){return Og.remove(r,u)}))},unblock:function(e,t,n){ct(e.element,"aria-busy"),n.isBlocked()&&t.onUnblock(e),n.clear()}}),RO=gu({fields:[Ao("getRoot",ve.none),Do("focus",!0),Wa("onBlock"),Wa("onUnblock")],name:"blocking",apis:BO,state:Object.freeze({__proto__:null,init:function(){var e=ic();return pa({readState:e.isSet,blockWith:function(t){e.set({destroy:t})},clear:e.clear,isBlocked:e.isSet})}})}),HO=u([Ws("splitToolbarBehaviours",[Ay]),ar("builtGroups",(function(){return Ro([])}))]),LO=u([Ua(["overflowToggledClass"]),So("getOverflowBounds"),lo("lazySink"),ar("overflowGroups",(function(){return Ro([])}))].concat(HO())),VO=u([Ff({factory:aO,schema:rO(),name:"primary"}),Uf({schema:rO(),name:"overflow"}),Uf({name:"overflow-button"}),Uf({name:"overflow-group"})]),PO=u((function(e,t){var n=e,o=Math.floor(t);ft(n,"max-width",_n.max(n,o,["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"])+"px")})),IO=u([Ua(["toggledClass"]),lo("lazySink"),ho("fetch"),So("getBounds"),_o("fireDismissalEventInstead",[Oo("event",Ui())]),Nc()]),FO=u([Uf({name:"button",overrides:function(e){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:Ku([Ag.config({toggleClass:e.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Uf({factory:aO,schema:rO(),name:"toolbar",overrides:function(e){return{toolbarBehaviours:Ku([kg.config({mode:"cyclic",onEscape:function(t){return rl(t,e,"button").each(Tg.focus),ve.none()}})])}}})]),UO=hl({name:"FloatingToolbarButton",factory:function(e,t,n,o){return _(_({},th.sketch(_(_({},o.button()),{action:function(e){Qk(e,o)},buttonBehaviours:Cf({dump:o.button().buttonBehaviours},[Ay.config({others:{toolbarSandbox:function(t){return o=t,r=n,i=e,{dom:{tag:"div",attributes:{id:(a=Da()).id}},behaviours:Ku([kg.config({mode:"special",onEscape:function(e){return sf.close(e),ve.some(!0)}}),sf.config({onOpen:function(e,t){i.fetch().get((function(e){e_(o,t,i,r.layouts,e),a.link(o.element),kg.focusIn(t)}))},onClose:function(){Ag.off(o),Tg.focus(o),a.unlink(o.element)},isPartOf:function(e,t,n){return Ba(t,n)||Ba(o,n)},getAttachPoint:function(){return i.lazySink(o).getOrDie()}}),Zu.config({channels:_(_({},Ls(_({isExtraPart:C},i.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),Vs({doReposition:function(){sf.getState(Ay.getCoupled(o,"toolbarSandbox")).each((function(e){Zk(o,e,i,r.layouts)}))}}))})])};var o,r,i,a}}})])}))),{apis:{setGroups:function(t,o){sf.getState(Ay.getCoupled(t,"toolbarSandbox")).each((function(r){e_(t,r,e,n.layouts,o)}))},reposition:function(t){sf.getState(Ay.getCoupled(t,"toolbarSandbox")).each((function(o){Zk(t,o,e,n.layouts)}))},toggle:function(e){Qk(e,o)},getToolbar:function(e){return sf.getState(Ay.getCoupled(e,"toolbarSandbox"))},isOpen:function(e){return sf.isOpen(Ay.getCoupled(e,"toolbarSandbox"))}}})},configFields:IO(),partFields:FO(),apis:{setGroups:function(e,t,n){e.setGroups(t,n)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},getToolbar:function(e,t){return e.getToolbar(t)},isOpen:function(e,t){return e.isOpen(t)}}}),jO=u([lo("items"),Ua(["itemSelector"]),Ws("tgroupBehaviours",[kg])]),WO=u([Wf({name:"items",unit:"item"})]),qO=hl({name:"ToolbarGroup",configFields:jO(),partFields:WO(),factory:function(e,t,n,o){return{uid:e.uid,dom:e.dom,components:t,behaviours:Gs(e.tgroupBehaviours,[kg.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}}}),GO=hl({name:"SplitFloatingToolbar",configFields:LO(),partFields:VO(),factory:function(e,t,n,o){var r=Mm(UO.sketch({fetch:function(){return _y((function(t){t(t_(e.overflowGroups.get()))}))},layouts:{onLtr:function(){return[Fu,Iu]},onRtl:function(){return[Iu,Fu]},onBottomLtr:function(){return[ju,Uu]},onBottomRtl:function(){return[Uu,ju]}},getBounds:n.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:o["overflow-button"](),toolbar:o.overflow()}}));return{uid:e.uid,dom:e.dom,components:t,behaviours:Gs(e.splitToolbarBehaviours,[Ay.config({others:{overflowGroup:function(){return qO.sketch(_(_({},o["overflow-group"]()),{items:[r.asSpec()]}))}}})]),apis:{setGroups:function(t,n){e.builtGroups.set(R(n,t.getSystem().build)),n_(t,r,e)},refresh:function(t){return n_(t,r,e)},toggle:function(e){r.getOpt(e).each((function(e){UO.toggle(e)}))},isOpen:function(e){return r.getOpt(e).map(UO.isOpen).getOr(!1)},reposition:function(e){r.getOpt(e).each((function(e){UO.reposition(e)}))},getOverflow:function(e){return r.getOpt(e).bind(UO.getToolbar)}},domModification:{attributes:{role:"group"}}}},apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)},getOverflow:function(e,t){return e.getOverflow(t)}}}),$O=u([Ua(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Wa("onOpened"),Wa("onClosed")].concat(HO())),XO=u([Ff({factory:aO,schema:rO(),name:"primary"}),Ff({factory:aO,schema:rO(),name:"overflow",overrides:function(e){return{toolbarBehaviours:Ku([OO.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:function(t){rl(t,e,"overflow-button").each((function(e){Ag.off(e),Tg.focus(e)})),e.onClosed(t)},onGrown:function(t){kg.focusIn(t),e.onOpened(t)},onStartGrow:function(t){rl(t,e,"overflow-button").each(Ag.on)}}),kg.config({mode:"acyclic",onEscape:function(t){return rl(t,e,"overflow-button").each(Tg.focus),ve.some(!0)}})])}}}),Uf({name:"overflow-button",overrides:function(e){return{buttonBehaviours:Ku([Ag.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Uf({name:"overflow-group"})]),KO=hl({name:"SplitSlidingToolbar",configFields:$O(),partFields:XO(),factory:function(e,t,n,o){var r="alloy.toolbar.toggle";return{uid:e.uid,dom:e.dom,components:t,behaviours:Gs(e.splitToolbarBehaviours,[Ay.config({others:{overflowGroup:function(e){return qO.sketch(_(_({},o["overflow-group"]()),{items:[th.sketch(_(_({},o["overflow-button"]()),{action:function(t){hr(e,r)}}))]}))}}}),rm("toolbar-toggle-events",[Cr(r,(function(t){o_(t,e)}))])]),apis:{setGroups:function(t,n){var o=R(n,t.getSystem().build);e.builtGroups.set(o),C_(t,e)},refresh:function(t){return C_(t,e)},toggle:function(t){return o_(t,e)},isOpen:function(t){return rl(t,e,"overflow").map(OO.hasGrown).getOr(!1)}},domModification:{attributes:{role:"group"}}}},apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)}}}),YO=eO.optional({factory:SO,name:"menubar",schema:[lo("backstage")]}),JO=eO.optional({factory:{sketch:function(e){return oO.sketch({uid:e.uid,dom:e.dom,listBehaviours:Ku([kg.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return c_({type:e.type,uid:Ar("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:function(){return e.onEscape(),ve.some(!0)}})},setupItem:function(e,t,n,o){aO.setGroups(t,n)},shell:!0})}},name:"multiple-toolbar",schema:[lo("dom"),lo("onEscape")]}),QO=eO.optional({factory:{sketch:function(e){return(e.type===up.sliding?function(e){var t=KO.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=KO.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),o=u_(e);return KO.sketch(_(_({},o),{components:[t,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(e){e.getSystem().broadcastOn([gO()],{type:"opened"})},onClosed:function(e){e.getSystem().broadcastOn([gO()],{type:"closed"})}}))}:e.type===up.floating?function(e){var t=u_(e),n=GO.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return GO.sketch(_(_({},t),{lazySink:e.getSink,getOverflowBounds:function(){var t=e.moreDrawerData.lazyHeader().element,n=Pt(t),o=qe(t),r=Pt(o),i=Math.max(o.dom.scrollHeight,r.height);return Dn(n.x+4,r.y,n.width-8,i)},parts:_(_({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}}),components:[n],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))}:c_)({type:e.type,uid:e.uid,onEscape:function(){return e.onEscape(),ve.some(!0)},cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes})}},name:"toolbar",schema:[lo("dom"),lo("onEscape"),lo("getSink")]}),ZO=eO.optional({factory:{sketch:function(e){var t=e.editor,n=e.sticky?zk:uO;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:Ku(n(t,e.sharedBackstage))}}},name:"header",schema:[lo("dom")]}),eE=eO.optional({name:"socket",schema:[lo("dom")]}),tE=eO.optional({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:Ku([Yb.config({}),Tg.config({}),OO.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(e){Zf.getCurrent(e).each(MO.hideAllSlots),hr(e,NO)},onGrown:function(e){hr(e,NO)},onStartGrow:function(e){pr(e,AO,{width:ht(e.element,"width").getOr("")})},onStartShrink:function(e){pr(e,AO,{width:kt(e.element)+"px"})}}),Og.config({}),Zf.config({find:function(e){return J(Og.contents(e))}})])}],behaviours:Ku([VC(0),rm("sidebar-sliding-events",[Cr(AO,(function(e,t){ft(e.element,"width",t.event.width)})),Cr(NO,(function(e,t){vt(e.element,"width")}))])])}}},name:"sidebar",schema:[lo("dom")]}),nE=eO.optional({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:Ku([Og.config({}),RO.config({focus:!1}),Zf.config({find:function(e){return J(e.components())}})]),components:[]}}},name:"throbber",schema:[lo("dom")]}),oE=hl({name:"OuterContainer",factory:function(e,t,n){return{uid:e.uid,dom:e.dom,components:t,apis:{getSocket:function(t){return Z_.getPart(t,e,"socket")},setSidebar:function(t,n){Z_.getPart(t,e,"sidebar").each((function(e){return function(e,t){Zf.getCurrent(e).each((function(e){return Og.set(e,[(n=t,MO.sketch((function(e){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:(t=e,r=R(ke(o=n),(function(e){var t=o[e],n=ao(io("sidebar",DO,t));return{name:e,getApi:Uk,onSetup:n.onSetup,onShow:n.onShow,onHide:n.onHide}})),R(r,(function(e){var n=Ro(i);return t.slot(e.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:Lp([iv(e,n),av(e,n),Cr(qi(),(function(e,t){var n=t.event;I(r,(function(e){return e.name===n.name})).each((function(t){(n.visible?t.onShow:t.onHide)(t.getApi(e))}))}))])})}))),slotBehaviours:Lp([Qi((function(e){return MO.hideAllSlots(e)}))])};var t,o,r})))]);var n}))}(e,n)}))},toggleSidebar:function(t,n){Z_.getPart(t,e,"sidebar").each((function(e){var t=n;Zf.getCurrent(e).each((function(e){Zf.getCurrent(e).each((function(n){OO.hasGrown(e)?MO.isShowing(n,t)?OO.shrink(e):(MO.hideAllSlots(n),MO.showSlot(n,t)):(MO.hideAllSlots(n),MO.showSlot(n,t),OO.grow(e))}))}))}))},whichSidebar:function(t){return Z_.getPart(t,e,"sidebar").bind(jk).getOrNull()},getHeader:function(t){return Z_.getPart(t,e,"header")},getToolbar:function(t){return Z_.getPart(t,e,"toolbar")},setToolbar:function(t,n){Z_.getPart(t,e,"toolbar").each((function(e){e.getApis().setGroups(e,n)}))},setToolbars:function(t,n){Z_.getPart(t,e,"multiple-toolbar").each((function(e){oO.setItems(e,n)}))},refreshToolbar:function(t){Z_.getPart(t,e,"toolbar").each((function(e){return e.getApis().refresh(e)}))},toggleToolbarDrawer:function(t){Z_.getPart(t,e,"toolbar").each((function(e){var t=e.getApis().toggle;null!=t?ve.some(function(t){return t(e)}(t)):ve.none()}))},isToolbarDrawerToggled:function(t){return Z_.getPart(t,e,"toolbar").bind((function(e){return ve.from(e.getApis().isOpen).map((function(t){return t(e)}))})).getOr(!1)},getThrobber:function(t){return Z_.getPart(t,e,"throbber")},focusToolbar:function(t){Z_.getPart(t,e,"toolbar").orThunk((function(){return Z_.getPart(t,e,"multiple-toolbar")})).each((function(e){kg.focusIn(e)}))},setMenubar:function(t,n){Z_.getPart(t,e,"menubar").each((function(e){SO.setMenus(e,n)}))},focusMenubar:function(t){Z_.getPart(t,e,"menubar").each((function(e){SO.focus(e)}))}},behaviours:e.behaviours}},configFields:[lo("dom"),lo("behaviours")],partFields:[ZO,YO,QO,JO,eE,tE,nE],apis:{getSocket:function(e,t){return e.getSocket(t)},setSidebar:function(e,t,n){e.setSidebar(t,n)},toggleSidebar:function(e,t,n){e.toggleSidebar(t,n)},whichSidebar:function(e,t){return e.whichSidebar(t)},getHeader:function(e,t){return e.getHeader(t)},getToolbar:function(e,t){return e.getToolbar(t)},setToolbar:function(e,t,n){var o=R(n,i_);e.setToolbar(t,o)},setToolbars:function(e,t,n){var o=R(n,(function(e){return R(e,i_)}));e.setToolbars(t,o)},refreshToolbar:function(e,t){return e.refreshToolbar(t)},toggleToolbarDrawer:function(e,t){e.toggleToolbarDrawer(t)},isToolbarDrawerToggled:function(e,t){return e.isToolbarDrawerToggled(t)},getThrobber:function(e,t){return e.getThrobber(t)},setMenubar:function(e,t,n){e.setMenubar(t,n)},focusMenubar:function(e,t){e.focusMenubar(t)},focusToolbar:function(e,t){e.focusToolbar(t)}}}),rE={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},iE=y(m_,!1),aE=y(m_,!0);function uE(e,t,n,o){var r;return{type:"basic",data:(r=e.getParam(t,n,"string"),R(o===k_.SemiColon?r.replace(/;$/,"").split(";"):r.split(" "),(function(e){var t=e,n=e,o=e.split("=");return 1<o.length&&(t=o[0],n=o[1]),{title:t,format:n}})))}}function cE(e){var t={type:"basic",data:VE};return{tooltip:"Align",text:ve.none(),icon:ve.some("align-left"),isSelectedFor:function(t){return function(){return e.formatter.match(t)}},getCurrentValue:ve.none,getPreviewFor:function(e){return ve.none},onAction:function(t){return function(){return I(VE,(function(e){return e.format===t.format})).each((function(t){return e.execCommand(t.command)}))}},updateText:function(t){var n=I(VE,(function(t){return e.formatter.match(t.format)})).fold(u("left"),(function(e){return e.title.toLowerCase()}));pr(t,mS,{icon:"align-"+n})},dataset:t,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}}function sE(e){return R(e.split(/\s*,\s*/),(function(e){return e.replace(/^['"]+|['"]+$/g,"")}))}function lE(e){function t(){function t(e){return e?sE(e)[0]:""}var r=e.queryCommandValue("FontName"),i=o.data,a=r?r.toLowerCase():"";return{matchOpt:I(i,(function(e){var n=e.format;return n.toLowerCase()===a||t(n).toLowerCase()===t(a).toLowerCase()})).orThunk((function(){return se(0===(e=a).indexOf("-apple-system")&&(t=sE(e.toLowerCase()),W(PE,(function(e){return-1<t.indexOf(e.toLowerCase())}))),{title:n,format:a});var e,t})),font:r}}var n="System Font",o=uE(e,"font_formats","Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",k_.SemiColon);return{tooltip:"Fonts",text:ve.some(n),icon:ve.none(),isSelectedFor:function(e){return function(t){return t.exists((function(t){return t.format===e}))}},getCurrentValue:function(){return t().matchOpt},getPreviewFor:function(e){return function(){return ve.some({tag:"div",styles:-1===e.indexOf("dings")?{"font-family":e}:{}})}},onAction:function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontName",!1,t.format)}))}},updateText:function(e){var n=t(),o=n.matchOpt,r=n.font,i=o.fold(u(r),(function(e){return e.title}));pr(e,dS,{text:i})},dataset:o,shouldHide:!1,isInvalid:C}}function fE(e){function t(){var t=ve.none(),n=o.data,r=e.queryCommandValue("FontSize");if(r)for(var i=function(e){var o,i,a,u,c=(i=e,/[0-9.]+px$/.test(o=r)?(a=72*parseInt(o,10)/96,u=Math.pow(10,i||0),Math.round(a*u)/u+"pt"):ie(FE,o).getOr(o)),s=ie(IE,c).getOr("");t=I(n,(function(e){return e.format===r||e.format===c||e.format===s}))},a=3;t.isNone()&&0<=a;a--)i(a);return{matchOpt:t,size:r}}var n=u(ve.none),o=uE(e,"fontsize_formats","8pt 10pt 12pt 14pt 18pt 24pt 36pt",k_.Space);return{tooltip:"Font sizes",text:ve.some("12pt"),icon:ve.none(),isSelectedFor:function(e){return function(t){return t.exists((function(t){return t.format===e}))}},getPreviewFor:n,getCurrentValue:function(){return t().matchOpt},onAction:function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontSize",!1,t.format)}))}},updateText:function(e){var n=t(),o=n.matchOpt,r=n.size,i=o.fold(u(r),(function(e){return e.title}));pr(e,dS,{text:i})},dataset:o,shouldHide:!1,isInvalid:C}}function dE(e,t){var n=t(),o=R(n,(function(e){return e.format}));return ve.from(e.formatter.closest(o)).bind((function(e){return I(n,(function(t){return t.format===e}))})).orThunk((function(){return se(e.formatter.match("p"),{title:"Paragraph",format:"p"})}))}function mE(e){var t=uE(e,"block_formats","Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",k_.SemiColon);return{tooltip:"Blocks",text:ve.some("Paragraph"),icon:ve.none(),isSelectedFor:function(t){return function(){return e.formatter.match(t)}},getCurrentValue:ve.none,getPreviewFor:function(t){return function(){var n=e.formatter.get(t);return ve.some({tag:0<n.length&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))})}},onAction:p_(e),updateText:function(n){var o=dE(e,(function(){return t.data})).fold(u("Paragraph"),(function(e){return e.title}));pr(n,dS,{text:o})},dataset:t,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}}function gE(e,t){return{tooltip:"Formats",text:ve.some("Paragraph"),icon:ve.none(),isSelectedFor:function(t){return function(){return e.formatter.match(t)}},getCurrentValue:ve.none,getPreviewFor:function(t){return function(){var n=e.formatter.get(t);return void 0!==n?ve.some({tag:0<n.length&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):ve.none()}},onAction:p_(e),updateText:function(t){var n=function(e){var t=e.items;return void 0!==t&&0<t.length?j(t,n):[{title:e.title,format:e.format}]},o=j(WS(e),n),r=dE(e,u(o)).fold(u("Paragraph"),(function(e){return e.title}));pr(t,dS,{text:r})},shouldHide:e.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!e.formatter.canApply(t.format)},dataset:t}}function hE(e){return{isDisabled:function(){return id.isDisabled(e)},setDisabled:function(t){return id.set(e,t)}}}function pE(e){return{setActive:function(t){Ag.set(e,t)},isActive:function(){return Ag.isOn(e)},isDisabled:function(){return id.isDisabled(e)},setDisabled:function(t){return id.set(e,t)}}}function vE(e,t){return e.map((function(e){return{"aria-label":t.translate(e),title:t.translate(e)}})).getOr({})}function bE(e,t,n,o,r,i){var a;return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]),attributes:vE(n,i)},components:Uv([e.map((function(e){return hw(e,i.icons)})),t.map((function(e){return vw(e,"tox-tbtn",i)}))]),eventOrder:((a={})[ci()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:Ku([Iv(i.isDisabled),ov(),rm("common-button-display-events",[Cr(ci(),(function(e,t){t.event.prevent(),hr(e,XE)}))])].concat(o.map((function(n){return WE.config({channel:n,initialData:{icon:e,text:t},renderComponents:function(e,t){return Uv([e.icon.map((function(e){return hw(e,i.icons)})),e.text.map((function(e){return vw(e,"tox-tbtn",i)}))])}})})).toArray()).concat(r.getOr([])))}}function yE(e,t,n){var o,r=Ro(i),a=bE(e.icon,e.text,e.tooltip,ve.none(),ve.none(),n);return th.sketch({dom:a.dom,components:a.components,eventOrder:fS,buttonBehaviours:Ku([rm("toolbar-button-events",[(o={onAction:e.onAction,getApi:t.getApi},ta((function(e,t){rv(o,e)((function(t){pr(e,lS,{buttonApi:t}),o.onAction(t)}))}))),iv(t,r),av(t,r)]),Iv((function(){return e.disabled||n.isDisabled()})),ov()].concat(t.toolbarButtonBehaviours))})}function xE(e,t){return function(n,o,r){var i=e(n).mapError((function(e){return rr(e)})).getOrDie();return t(i,o,r)}}function wE(e,t,n,o){var i,a=t.outerContainer,u=n.toolbar,c=n.buttons;r(u,l)?(i=u.map((function(t){var r={toolbar:t,buttons:c,allowToolbarGroups:n.allowToolbarGroups};return ez(e,r,{backstage:o},ve.none())})),oE.setToolbars(a,i)):oE.setToolbar(a,ez(e,n,{backstage:o},ve.none()))}function CE(e){return/^[0-9\.]+(|px)$/i.test(""+e)?ve.some(parseInt(""+e,10)):ve.none()}function SE(e){return b(e)?e+"px":e}function kE(e,t,n){var o=t.filter((function(t){return e<t})),r=n.filter((function(t){return t<e}));return o.or(r).getOr(e)}function _E(e){var t=Zh(e),n=ep(e),o=np(e);return CE(t).map((function(e){return kE(e,n,o)}))}function OE(e,t){var n=An(e);return{pos:t?n.y:n.bottom,bounds:n}}function EE(e,t){return Cr(lS,(function(n,o){var r,i=e.get(n),a=(r=i,{hide:function(){return hr(r,Ni())},getValue:function(){return xf.getValue(r)}});t.onAction(a,o.event.buttonApi)}))}function zE(e,t,n){return t.bottom-e.y>=(n=void 0===n?.01:n)&&e.bottom-t.y>=n}function TE(e){var t=function(e){var t=e.getBoundingClientRect();if(t.height<=0&&t.width<=0){var n=Qe(Ae.fromDom(e.startContainer),e.startOffset).element;return(Gt(n)?$e(n):ve.some(n)).filter(qt).map((function(e){return e.dom.getBoundingClientRect()})).getOr(t)}return t}(e.selection.getRng());if(e.inline){var n=Bt();return Dn(n.left+t.left,n.top+t.top,t.width,t.height)}var o=Pt(Ae.fromDom(e.getBody()));return Dn(o.x+t.left,o.y+t.top,t.width,t.height)}function ME(e,t,n,o){void 0===o&&(o=0);var r,i,a,u,c=Lt(window),s=An(Ae.fromDom(e.getContentAreaContainer())),l=rp(e)||ip(e)||Gp(e),f=(r=s,i=c,a=o,{x:u=Math.max(r.x+a,i.x),width:Math.min(r.right-a,i.right)-u}),d=f.x,m=f.width;if(e.inline&&!l)return Dn(d,c.y,m,c.height);var g=function(e,t,n,o,r,i){var a=Ae.fromDom(e.getContainer()),u=Ta(a,".tox-editor-header").getOr(a),c=An(u),s=c.y>=t.bottom,l=o&&!s;if(e.inline&&l)return{y:Math.max(c.bottom+i,n.y),bottom:n.bottom};if(e.inline&&!l)return{y:n.y,bottom:Math.min(c.y-i,n.bottom)};var f="line"===r?An(a):t;return l?{y:Math.max(c.bottom+i,n.y),bottom:Math.min(f.bottom-i,n.bottom)}:{y:Math.max(f.y+i,n.y),bottom:Math.min(c.y-i,n.bottom)}}(e,s,c,t.header.isPositionedAtTop(),n,o),h=g.y,p=g.bottom;return Dn(d,h,m,p-h)}function DE(e){return"node"===e}function AE(e,t){var n=H(L(t,(function(t){return t.predicate(e.dom)})),(function(e){return"contexttoolbar"===e.type}));return{contextToolbars:n.pass,contextForms:n.fail}}function NE(e,t){function n(e){return Fe(e,r)}var o,r=Ae.fromDom(t.getBody()),i=Ae.fromDom(t.selection.getNode());return n(o=i)||Ue(r,o)?function(e,t,n){var o=AE(e,t);if(0<o.contextForms.length)return ve.some({elem:e,toolbars:[o.contextForms[0]]});var r=AE(e,n);if(0<r.contextForms.length)return ve.some({elem:e,toolbars:[r.contextForms[0]]});if(0<o.contextToolbars.length||0<r.contextToolbars.length){var i=function(e){if(e.length<=1)return e;function t(t){return A(e,(function(e){return e.position===t}))}function n(t){return L(e,(function(e){return e.position===t}))}var o=t("selection"),r=t("node");if(o||r){if(r&&o){var i=n("node"),a=R(n("selection"),(function(e){return _(_({},e),{position:"node"})}));return i.concat(a)}return n(o?"selection":"node")}return n("line")}(o.contextToolbars.concat(r.contextToolbars));return ve.some({elem:e,toolbars:i})}return ve.none()}(i,e.inNodeScope,e.inEditorScope).orThunk((function(){return r=e,(t=n)(o=i)?ve.none():lr(o,(function(e){if(qt(e)){var t=AE(e,r.inNodeScope),n=t.contextToolbars,o=t.contextForms,i=0<o.length?o:(u=n).length<=1?u:a("selection").orThunk((function(){return a("node")})).orThunk((function(){return a("line")})).map((function(e){return e.position})).fold((function(){return[]}),(function(e){return L(u,(function(t){return t.position===e}))}));return 0<i.length?ve.some({elem:e,toolbars:i}):ve.none()}function a(e){return I(u,(function(t){return t.position===e}))}var u;return ve.none()}),t);var t,o,r})):ve.none()}function BE(e,t,n,o){function r(){var t=x.get().getOr("node"),n=DE(t)?1:0;return ME(e,p,t,n)}function a(){return!(e.removed||v()&&h.isContextMenuOpen())}function u(){if(a()){var t=r(),n=ue(x.get(),"node")?(o=e,b.get().filter(vn).map(Pt).getOrThunk((function(){return TE(o)}))):TE(e);return t.height<=0||!zE(n,t)}return 1;var o}function c(){b.clear(),y.clear(),x.clear(),Yg.hide(w)}function s(){var e;Yg.isOpen(w)&&(vt(e=w.element,"display"),u()?ft(e,"display","none"):(y.set(0),Yg.reposition(w)))}function l(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:Ku([kg.config({mode:"acyclic"}),rm("pop-dialog-wrap-events",[Qi((function(t){e.shortcuts.add("ctrl+F9","focus statusbar",(function(){return kg.focusIn(t)}))})),Zi((function(t){e.shortcuts.remove("ctrl+F9")}))])])}}function f(t,o){var r,i,a,u,c,s,l,f="node"===t?p.anchors.node(o):p.anchors.cursor(),d=(r=e,i=t,a=v(),u={lastElement:b.get,isReposition:function(){return ue(y.get(),0)},getMode:function(){return tf.getMode(n)}},"line"===i?{bubble:gc(12,0,uz),layouts:{onLtr:function(){return[ru]},onRtl:function(){return[iu]}},overrides:cz}:{bubble:gc(0,12,uz,1/12),layouts:(c=r,s=u,l=i,a?{onLtr:function(e){return[qu,Iu,Fu,Uu,ju,Wu].concat(m(e))},onRtl:function(e){return[qu,Fu,Iu,ju,Uu,Wu].concat(m(e))}}:{onLtr:function(e){return[Wu,qu,Uu,Iu,ju,Fu].concat(m(e))},onRtl:function(e){return[Wu,qu,ju,Fu,Uu,Iu].concat(m(e))}}),overrides:cz});function m(e){return DE(l)?[(t=e,function(e,n,o,r,i){var a=function(e,t,n,o,r){var i=TE(e),a=o.lastElement().exists((function(e){return Fe(n,e)})),u=n,c=e.selection.getRng(),s=Qe(Ae.fromDom(c.startContainer),c.startOffset);return c.startContainer===c.endContainer&&c.startOffset===c.endOffset-1&&Fe(s.element,u)?a?Em:Qg:a?function(e,n){var r=ht(e,"position");ft(e,"position",n);var a=zE(i,An(t))&&!o.isReposition()?Tm:Em;return r.each((function(t){return ft(e,"position",t)})),a}(t,o.getMode()):("fixed"===o.getMode()?r.y+Bt().top:r.y)+(xt(t)+12)<=i.y?Qg:Zg}(c,r,t,s,i),u=_(_({},e),{y:i.y,height:i.height});return _(_({},a(u,n,o,r,i)),{alwaysFit:!0})})]:[];var t}return qo(f,d)}function d(e,t){var o,i,c,s;k.cancel(),a()&&(o=S(e),c=f(i=e[0].position,t),x.set(i),y.set(1),vt(s=w.element,"display"),ue(ze(t,b.get(),Fe),!0)||(qr(s,mz),tf.reset(n,w)),Yg.showWithinBounds(w,l(o),{anchor:c,transition:{classes:[mz],mode:"placement"}},(function(){return ve.some(r())})),t.fold(b.clear,b.set),u()&&ft(s,"display","none"))}var m,g,h=o.backstage,p=h.shared,v=ln().deviceType.isTouch,b=uc(),y=uc(),x=uc(),w=Ca((m={sink:n,onEscape:function(){return e.focus(),ve.some(!0)}},g=Ro([]),Yg.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(e){g.set([]),Yg.getContent(e).each((function(e){vt(e.element,"visibility")})),qr(e.element,dz),vt(e.element,"width")},inlineBehaviours:Ku([rm("context-toolbar-events",[zr(wi(),(function(e,t){"width"===t.event.raw.propertyName&&(qr(e.element,dz),vt(e.element,"width"))})),Cr(fz,(function(e,t){var n=e.element;vt(n,"width");var o=kt(n);Yg.setContent(e,t.event.contents),Wr(n,dz);var r=kt(n);ft(n,"width",o+"px"),Yg.getContent(e).each((function(e){t.event.focus.bind((function(e){return vu(e),xu(n)})).orThunk((function(){return kg.focusIn(e),yu(gn(n))}))})),eh.setTimeout((function(){ft(e.element,"width",r+"px")}),0)})),Cr(sz,(function(e,t){Yg.getContent(e).each((function(t){g.set(g.get().concat([{bar:t,focus:yu(gn(e.element))}]))})),pr(e,fz,{contents:t.event.forwardContents,focus:ve.none()})})),Cr(lz,(function(e,t){Q(g.get()).each((function(t){g.set(g.get().slice(0,g.get().length-1)),pr(e,fz,{contents:Sa(t.bar),focus:t.focus})}))}))]),kg.config({mode:"special",onEscape:function(e){return Q(g.get()).fold((function(){return m.onEscape()}),(function(t){return hr(e,lz),ve.some(!0)}))}})]),lazySink:function(){return Hn.value(m.sink)}}))),C=Re((function(){return function(e,t){var n={},o=[],r=[],i={},a={},u=ke(e);return Ce(u,(function(u){var c,s,l,f,d,m=e[u];"contextform"===m.type?(l=u,d=ao(io("ContextForm",Lh,f=m)),(n[l]=d).launch.map((function(e){i["form:"+l]=_(_({},f.launch),{type:"contextformtogglebutton"===e.type?"togglebutton":"button",onAction:function(){t(d)}})})),("editor"===d.scope?r:o).push(d),a[l]=d):"contexttoolbar"===m.type&&(c=u,io("ContextToolbar",Vh,s=m).each((function(e){("editor"===s.scope?r:o).push(e),a[c]=e})))})),{forms:n,inNodeScope:o,inEditorScope:r,lookupTable:a,formNavigators:i}}(t,(function(e){var t=S([e]);pr(w,sz,{forwardContents:l(t)})}))})),S=function(t){var n=e.ui.registry.getAll().buttons,r=C(),i=_(_({},n),r.formNavigators),a=$p(e)===up.scrolling?up.scrolling:up.default,u=U(R(t,(function(t){return"contexttoolbar"===t.type?ez(e,{buttons:i,toolbar:t.items,allowToolbarGroups:!1},o,ve.some(["form:"])):(n=p.providers,az(t,n));var n})));return c_({type:a,uid:Ar("context-toolbar"),initGroups:u,onEscape:ve.none,cyclicKeying:!0,providers:p.providers})},k=uh((function(){e.hasFocus()&&!e.removed&&(Gr(w.element,mz)?k.throttle():NE(C(),e).fold(c,(function(e){d(e.toolbars,ve.some(e.elem))})))}),17);e.on("init",(function(){e.on("remove",c),e.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",s),e.on("click keyup focus SetContent",k.throttle),e.on(iz,c),e.on("contexttoolbar-show",(function(t){ie(C().lookupTable,t.toolbarKey).each((function(n){d([n],se(t.target!==e,t.target)),Yg.getContent(w).each(kg.focusIn)}))})),e.on("focusout",(function(t){eh.setEditorTimeout(e,(function(){xu(n.element).isNone()&&xu(w.element).isNone()&&c()}),0)})),e.on("SwitchMode",(function(){e.mode.isReadOnly()&&c()})),e.on("AfterProgressState",(function(t){t.state?c():e.hasFocus()&&k.throttle()})),e.on("NodeChange",(function(e){xu(w.element).fold(k.throttle,i)}))}))}(__=k_=k_||{})[__.SemiColon=0]="SemiColon",__[__.Space=1]="Space";var RE,HE,LE,VE=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],PE=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],IE={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},FE={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},UE=Object.freeze({__proto__:null,events:function(e,t){function n(n,o){e.updateState.each((function(e){var r=e(n,o);t.set(r)})),e.renderComponents.each((function(e){var r=R(e(o,t.get()),n.getSystem().build);Os(n,r)}))}return Ji([Cr(zi(),(function(t,o){var r,i=o;i.universal||(r=e.channel,we(i.channels,r)&&n(t,i.data))})),Qi((function(t,o){e.initialData.each((function(e){n(t,e)}))}))])}}),jE=Object.freeze({__proto__:null,getState:function(e,t,n){return n}}),WE=gu({fields:[lo("channel"),yo("renderComponents"),yo("updateState"),yo("initialData")],name:"reflecting",active:UE,apis:jE,state:Object.freeze({__proto__:null,init:function(){var e=Ro(ve.none());return{readState:function(){return e.get().getOr("none")},get:e.get,set:e.set,clear:function(){return e.set(ve.none())}}}})}),qE=u([lo("toggleClass"),lo("fetch"),Ga("onExecute"),Oo("getHotspot",ve.some),Oo("getAnchorOverrides",u({})),Nc(),Ga("onItemExecute"),yo("lazySink"),lo("dom"),Wa("onOpen"),Ws("splitDropdownBehaviours",[Ay,kg,Tg]),Oo("matchWidth",!1),Oo("useMinWidth",!1),Oo("eventOrder",{}),yo("role")].concat(Fy())),GE=u([Ff({factory:th,schema:[lo("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:Ku([Tg.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each(vr)},buttonBehaviours:Ku([Ag.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])}}}),Ff({factory:th,schema:[lo("dom")],name:"button",defaults:function(){return{buttonBehaviours:Ku([Tg.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each((function(n){e.onExecute(n,t)}))}}}}),jf({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[lo("text")],name:"aria-descriptor"}),Uf({schema:[Fa()],name:"menu",defaults:function(e){return{onExecute:function(t,n){t.getSystem().getByUid(e.uid).each((function(o){e.onItemExecute(o,t,n)}))}}}}),By()]),$E=hl({name:"SplitDropdown",configFields:qE(),partFields:GE(),factory:function(e,t,n,o){function r(e){Zf.getCurrent(e).each((function(e){ud.highlightFirst(e),kg.focusIn(e)}))}function a(t){Ly(e,c,t,o,r,yy.HighlightFirst).get(i)}function u(t){return vr(il(t,e,"button")),ve.some(!0)}var s,l=_(_({},Ji([Qi((function(t,n){rl(t,e,"aria-descriptor").each((function(e){var n=Ar("aria");ot(e.element,"id",n),ot(t.element,"aria-describedby",n)}))}))])),mm(ve.some(a))),f={repositionMenus:function(e){Ag.isOn(e)&&Iy(e)}};return{uid:e.uid,dom:e.dom,components:t,apis:f,eventOrder:_(_({},e.eventOrder),((s={})[Ti()]=["disabling","toggling","alloy.base.behaviour"],s)),events:l,behaviours:Gs(e.splitDropdownBehaviours,[Ay.config({others:{sandbox:function(t){var n=il(t,e,"arrow");return Py(e,t,{onOpen:function(){Ag.on(n),Ag.on(t)},onClose:function(){Ag.off(n),Ag.off(t)}})}}}),kg.config({mode:"special",onSpace:u,onEnter:u,onDown:function(e){return a(e),ve.some(!0)}}),Tg.config({}),Ag.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},apis:{repositionMenus:function(e,t){return e.repositionMenus(t)}}}),XE=Ar("focus-button"),KE=function(e,t,n){return yE(e,{toolbarButtonBehaviours:[].concat(0<n.length?[rm("toolbarButtonWith",n)]:[]),getApi:hE,onSetup:e.onSetup},t)},YE=function(e,t,n){return qo(yE(e,{toolbarButtonBehaviours:[Og.config({}),Ag.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(0<n.length?[rm("toolbarToggleButtonWith",n)]:[]),getApi:pE,onSetup:e.onSetup},t))},JE=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],QE={button:xE(gh,(function(e,t){return n=t.backstage.shared.providers,KE(e,n,[]);var n})),togglebutton:xE(hh,(function(e,t){return n=t.backstage.shared.providers,YE(e,n,[]);var n})),menubutton:xE(Tk,(function(e,t){return Cw(e,"tox-tbtn",t.backstage,ve.none())})),splitbutton:xE((function(e){return io("SplitButton",CO,e)}),(function(e,t){return o=e,r=t.backstage.shared,l=Ar("channel-update-split-dropdown-display"),f=Ro(i),d={getApi:n,onSetup:o.onSetup},$E.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:_({"aria-pressed":!1},vE(o.tooltip,r.providers))},onExecute:function(e){o.onAction(n(e))},onItemExecute:function(e,t,n){},splitDropdownBehaviours:Ku([Rv(r.providers.isDisabled),ov(),rm("split-dropdown-events",[Cr(XE,Tg.focus),iv(d,f),av(d,f)]),$w.config({})]),eventOrder:((a={})[Ii()]=["alloy.base.behaviour","split-dropdown-events"],a),toggleClass:"tox-tbtn--enabled",lazySink:r.getSink,fetch:(u=n,c=o,s=r.providers,function(e){return _y((function(e){return c.fetch(e)})).map((function(t){return ve.from(Tb(qo(mb(Ar("menu-value"),t,(function(t){c.onItemAction(u(e),t)}),c.columns,c.presets,fp.CLOSE_ON_EXECUTE,c.select.getOr(C),s),{movement:gb(c.columns,c.presets),menuBehaviours:Lp("auto"!==c.columns?[]:[Qi((function(e,t){Yh(e,4,Ph(c.presets)).each((function(t){var n=t.numRows,o=t.numColumns;kg.setGridSize(e,n,o)}))}))])})))}))}),parts:{menu:Uh(0,o.columns,o.presets)},components:[$E.parts.button(bE(o.icon,o.text,ve.none(),ve.some(l),ve.some([Ag.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),r.providers)),$E.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:Bm("chevron-down",r.providers.icons)},buttonBehaviours:Ku([Rv(r.providers.isDisabled),ov(),Rm()])}),$E.parts["aria-descriptor"]({text:r.providers.translate("To open the popup, press Shift+Enter")})]});function n(e){return{isDisabled:function(){return id.isDisabled(e)},setDisabled:function(t){return id.set(e,t)},setIconFill:function(t,n){Ta(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){ot(e,"fill",n)}))},setIconStroke:function(t,n){Ta(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){ot(e,"stroke",n)}))},setActive:function(t){ot(e.element,"aria-pressed",t),Ta(e.element,"span").each((function(n){e.getSystem().getByDom(n).each((function(e){return Ag.set(e,t)}))}))},isActive:function(){return Ta(e.element,"span").exists((function(t){return e.getSystem().getByDom(t).exists(Ag.isOn)}))}}}var o,r,a,u,c,s,l,f,d})),grouptoolbarbutton:xE((function(e){return io("GroupToolbarButton",yO,e)}),(function(e,t,n){var o,r,i,a,u,c,s=n.ui.registry.getAll().buttons,l=((o={})[$c]=t.backstage.shared.header.isPositionedAtTop()?vc.TopToBottom:vc.BottomToTop,o);if($p(n)!==up.floating)throw new Error("Toolbar groups are only supported when using floating toolbar mode");return i=t.backstage,a=function(e){return ez(n,{buttons:s,toolbar:e,allowToolbarGroups:!1},t,ve.none())},u=l,c=i.shared,UO.sketch({lazySink:c.getSink,fetch:function(){return _y((function(e){e(R(a(r.items),i_))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:bE((r=e).icon,r.text,r.tooltip,ve.none(),ve.none(),c.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:u}}}})})),styleSelectButton:function(e,t){return y_(e,n=t.backstage,gE(e,_({type:"advanced"},n.styleselect)));var n},fontsizeSelectButton:function(e,t){return y_(e,t.backstage,fE(e))},fontSelectButton:function(e,t){return y_(e,t.backstage,lE(e))},formatButton:function(e,t){return y_(e,t.backstage,mE(e))},alignMenuButton:function(e,t){return y_(e,t.backstage,cE(e))}},ZE={styleselect:QE.styleSelectButton,fontsizeselect:QE.fontsizeSelectButton,fontselect:QE.fontSelectButton,formatselect:QE.formatButton,align:QE.alignMenuButton},ez=function(e,t,n,o){var i,a,u,c,s=(u=t.toolbar,c=t.buttons,!1===u?[]:void 0===u||!0===u?(i=c,a=R(JE,(function(e){var t=L(e.items,(function(e){return Ee(i,e)||Ee(ZE,e)}));return{name:e.name,items:t}})),L(a,(function(e){return 0<e.items.length}))):l(u)?R(u.split("|"),(function(e){return{items:e.trim().split(" ")}})):r(u,(function(e){return Ee(e,"name")&&Ee(e,"items")}))?u:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[]));return L(R(s,(function(r){var i=j(r.items,(function(r){return 0===r.trim().length?[]:(i=e,a=t.buttons,u=r,c=t.allowToolbarGroups,s=n,l=o,ie(a,u.toLowerCase()).orThunk((function(){return l.bind((function(e){return Z(e,(function(e){return ie(a,e+u.toLowerCase())}))}))})).fold((function(){return ie(ZE,u.toLowerCase()).map((function(e){return e(i,s)})).orThunk((function(){return ve.none()}))}),(function(e){return"grouptoolbarbutton"!==e.type||c?(n=s,o=i,ie(QE,(t=e).type).fold((function(){return console.error("skipping button defined by",t),ve.none()}),(function(e){return ve.some(e(t,n,o))}))):(console.warn("Ignoring the '"+u+"' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested."),ve.none());var t,n,o})).toArray());var i,a,u,c,s,l}));return{title:ve.from(e.translate(r.name)),items:i}})),(function(e){return 0<e.items.length}))},tz=ln(),nz=tz.os.isiOS()&&tz.os.version.major<=12,oz=Object.freeze({__proto__:null,render:function(e,t,n,o,r){var i=Ro(0),a=t.outerContainer;iE(e);var u=Ae.fromDom(r.targetNode),c=et(gn(u)),s=t.mothership;af(u,s,Tt),Ds(c,t.uiMothership),e.on("PostRender",(function(){wE(e,t,n,o),i.set(e.getWin().innerWidth),oE.setMenubar(a,l_(e,n)),oE.setSidebar(a,n.sidebar),function(e,t){function n(){var t=c.get();t.left===a.innerWidth&&t.top===a.innerHeight||(c.set(Sn(a.innerWidth,a.innerHeight)),Mv(e))}function o(){var t=e.getDoc().documentElement,n=s.get();n.left===t.offsetWidth&&n.top===t.offsetHeight||(s.set(Sn(t.offsetWidth,t.offsetHeight)),Mv(e))}function r(t){return e.fire("ScrollContent",t)}var i=e.dom,a=e.getWin(),u=e.getDoc().documentElement,c=Ro(Sn(a.innerWidth,a.innerHeight)),s=Ro(Sn(u.offsetWidth,u.offsetHeight));i.bind(a,"resize",n),i.bind(a,"scroll",r);var l=sc(Ae.fromDom(e.getBody()),"load",o),f=t.uiMothership.element;e.on("hide",(function(){ft(f,"display","none")})),e.on("show",(function(){vt(f,"display")})),e.on("NodeChange",o),e.on("remove",(function(){l.unbind(),i.unbind(a,"resize",n),i.unbind(a,"scroll",r),a=null}))}(e,t)}));var l,f,d,g,h=oE.getSocket(a).getOrDie("Could not find expected socket element");nz&&(dt(h.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"}),f=function(){e.fire("ScrollContent")},d=null,g=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];m(d)&&(d=setTimeout((function(){d=null,f.apply(null,e)}),20))},l=cc(h.element,"scroll",g),e.on("remove",l.unbind)),nv(e,t),e.addCommand("ToggleSidebar",(function(t,n){oE.toggleSidebar(a,n),e.fire("ToggleSidebar")})),e.addQueryValueHandler("ToggleSidebar",(function(){return oE.whichSidebar(a)}));var p=$p(e);p!==up.sliding&&p!==up.floating||e.on("ResizeWindow ResizeEditor ResizeContent",(function(){var n=e.getWin().innerWidth;n!==i.get()&&(oE.refreshToolbar(t.outerContainer),i.set(n))}));var v={enable:function(){tv(t,!1)},disable:function(){tv(t,!0)},isDisabled:function(){return id.isDisabled(a)}};return{iframeContainer:h.element.dom,editorContainer:a.element.dom,api:v}}}),rz=Object.freeze({__proto__:null,render:function(e,t,n,o,r){var i=t.mothership,a=t.uiMothership,c=t.outerContainer,s=Ro(null),l=Ae.fromDom(r.targetNode),f=function(e,t,n,o,r){function i(){return w.get()&&!e.removed}function a(e){return x?e.fold(u(0),(function(e){return 1<e.components().length?xt(e.components()[1].element):0})):0}function c(){f.broadcastOn([ff()],{})}function s(e){var n,o,u,s,l;void 0===e&&(e=!1),i()&&(g||(n=p.getOrThunk((function(){var e=CE(gt(bn(),"margin-left")).getOr(0);return kt(bn())-St(t).left+e})),ft(r.get().element,"max-width",n+"px")),x&&oE.refreshToolbar(d),g||(o=a(oE.getToolbar(d)),u=An(t),s=b()?Math.max(u.y-xt(r.get().element)+o,0):u.bottom,dt(d.element,{position:"absolute",top:Math.round(s)+"px",left:Math.round(u.x)+"px"})),h&&(l=r.get(),e?mO.reset(l):mO.refresh(l)),c())}function l(n){var o,u;void 0===n&&(n=!0),!g&&h&&i()&&(o=v.getDockingMode(),(u=function(n){switch(Xp(e)){case sp.auto:var o=a(oE.getToolbar(d)),r=xt(n.element)-o,i=An(t);if(i.y>r)return"top";var u=qe(t),c=Math.max(u.dom.scrollHeight,xt(u));return i.bottom<c-r||Nn().bottom<i.bottom-r?"bottom":"top";case sp.bottom:return"bottom";default:return sp.top,"top"}}(r.get()))!==o&&(function(e){var t=r.get();mO.setModes(t,[e]),v.setDockingMode(e);var n=b()?vc.TopToBottom:vc.BottomToTop;ot(t.element,$c,n)}(u),n&&s(!0)))}var f=n.uiMothership,d=n.outerContainer,m=Wp.DOM,g=Jp(e),h=ev(e),p=np(e).or(_E(e)),v=o.shared.header,b=v.isPositionedAtTop,y=$p(e),x=y===up.sliding||y===up.floating,w=Ro(!1);return{isVisible:i,isPositionedAtTop:b,show:function(){w.set(!0),ft(d.element,"display","flex"),m.addClass(e.getBody(),"mce-edit-focus"),vt(f.element,"display"),l(!1),s()},hide:function(){w.set(!1),n.outerContainer&&(ft(d.element,"display","none"),m.removeClass(e.getBody(),"mce-edit-focus")),ft(f.element,"display","none")},update:s,updateMode:l,repositionPopups:c}}(e,l,t,o,s),d=e.getParam("toolbar_persist",!1,"boolean");function m(){var r;s.get()?f.show():(s.set(oE.getHeader(c).getOrDie()),Ds(r=Qp(e),i),Ds(r,a),wE(e,t,n,o),oE.setMenubar(c,l_(e,n)),f.show(),function(e,t,n,o){function r(o){var r=OE(t,n.isPositionedAtTop()),a=r.pos,u=r.bounds,c=i.get(),s=c.pos,l=c.bounds,f=u.height!==l.height||u.width!==l.width;i.set({pos:a,bounds:u}),f&&Mv(e,o),n.isVisible()&&(s!==a?n.update(!0):f&&(n.updateMode(),n.repositionPopups()))}var i=Ro(OE(t,n.isPositionedAtTop()));o||(e.on("activate",n.show),e.on("deactivate",n.hide)),e.on("SkinLoaded ResizeWindow",(function(){return n.update(!0)})),e.on("NodeChange keydown",(function(e){eh.requestAnimationFrame((function(){return r(e)}))})),e.on("ScrollWindow",(function(){return n.updateMode()}));var a=ac();a.set(sc(Ae.fromDom(e.getBody()),"load",r)),e.on("remove",(function(){a.clear()}))}(e,l,f,d),e.nodeChanged())}function g(){return eh.setEditorTimeout(e,m,0)}aE(e),e.on("show",m),e.on("hide",f.hide),d||(e.on("focus",g),e.on("blur",f.hide)),e.on("init",(function(){(e.hasFocus()||d)&&g()})),nv(e,t);var h={show:function(){f.show()},hide:function(){f.hide()},enable:function(){tv(t,!1)},disable:function(){tv(t,!0)},isDisabled:function(){return id.isDisabled(c)}};return{editorContainer:c.element.dom,api:h}}}),iz="contexttoolbar-hide",az=function(e,t){var n,o,r,a,u=e.label.fold((function(){return{}}),(function(e){return{"aria-label":e}})),c=Mm(ly.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:e.initValue(),inputAttributes:u,selectOnFocus:!0,inputBehaviours:Ku([kg.config({mode:"special",onEnter:function(e){return s.findPrimary(e).map((function(e){return vr(e),!0}))},onLeft:function(e,t){return t.cut(),ve.none()},onRight:function(e,t){return t.cut(),ve.none()}})])})),s=(n=c,o=e.commands,r=t,a=R(o,(function(e){return Mm(("contextformtogglebutton"===e.type?function(e,t,n){var o=t.original;o.primary;var r=O(o,["primary"]),a=ao(hh(_(_({},r),{type:"togglebutton",onAction:i})));return YE(a,n.backstage.shared.providers,[EE(e,t)])}:function(e,t,n){var o=t.original;o.primary;var r=O(o,["primary"]),a=ao(gh(_(_({},r),{type:"button",onAction:i})));return KE(a,n.backstage.shared.providers,[EE(e,t)])})(n,e,{backstage:{shared:{providers:r}}}))})),{asSpecs:function(){return R(a,(function(e){return e.asSpec()}))},findPrimary:function(e){return Z(o,(function(t,n){return t.primary?ve.from(a[n]).bind((function(t){return t.getOpt(e)})).filter(x(id.isDisabled)):ve.none()}))}});return[{title:ve.none(),items:[c.asSpec()]},{title:ve.none(),items:s.asSpecs()}]},uz={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},cz={maxHeightFunction:Ec(),maxWidthFunction:PO()},sz=Ar("forward-slide"),lz=Ar("backward-slide"),fz=Ar("change-slide-event"),dz="tox-pop--resizing",mz="tox-pop--transition",gz={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},hz=(LE=["Infinity",(RE="[0-9]+")+"\\."+pz(RE)+pz(HE="[eE][+-]?[0-9]+"),"\\."+RE+pz(HE),RE+pz(HE)].join("|"),new RegExp("^([+-]?(?:"+LE+"))(.*)$"));function pz(e){return"(?:"+e+")?"}function vz(e,t){function n(){var n=t.getOptions(e),o=t.getCurrent(e).map(t.hash),r=uc();return R(n,(function(n){return{type:"togglemenuitem",text:t.display(n),onSetup:function(i){function a(e){e&&(r.on((function(e){return e.setActive(!1)})),r.set(i)),i.setActive(e)}a(ue(o,t.hash(n)));var u=t.watcher(e,n,a);return function(){r.clear(),u()}},onAction:function(){return t.setCurrent(e,n)}}}))}e.ui.registry.addMenuButton(t.name,{tooltip:t.text,icon:t.icon,fetch:function(e){return e(n())},onSetup:t.onToolbarSetup}),e.ui.registry.addNestedMenuItem(t.name,{type:"nestedmenuitem",text:t.text,getSubmenuItems:n,onSetup:t.onMenuSetup})}function bz(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}}function yz(e,t){return h_(e,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",(function(n){n.setDisabled(e.mode.isReadOnly()||!e.undoManager[t]())}))}function xz(e,t){var n,o,r,i,a,c,s,l,f,d,m,g,p,v,b,y,x,w,C,S,k,O,E,z,T,M=e;Ce([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],(function(e){M.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onAction:v_(M,e.cmd),onSetup:g_(M,e.name)})})),M.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onAction:v_(M,"JustifyNone")}),function(e){var t,n;!function(e){FC.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(function(t,n){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:g_(e,t.name),onAction:bz(e,t.name)})}));for(var t=1;t<=6;t++){var n="h"+t;e.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+t,onSetup:g_(e,n),onAction:bz(e,n)})}}(e),t=e,FC.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],(function(e){t.ui.registry.addButton(e.name,{tooltip:e.text,icon:e.icon,onAction:v_(t,e.action)})})),n=e,FC.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(e){n.ui.registry.addToggleButton(e.name,{tooltip:e.text,icon:e.icon,onAction:v_(n,e.action),onSetup:g_(n,e.name)})}))}(z=e),T=z,FC.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],(function(e){T.ui.registry.addMenuItem(e.name,{text:e.text,icon:e.icon,shortcut:e.shortcut,onAction:v_(T,e.action)})})),T.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:bz(T,"code")}),E=b_(0,m=f=t,cE(d=l=e)),d.ui.registry.addNestedMenuItem("align",{text:m.shared.providers.translate("Align"),getSubmenuItems:function(){return E.items.validateItems(E.getStyleItems())}}),v=b_(0,p=f,lE(g=l)),g.ui.registry.addNestedMenuItem("fontformats",{text:p.shared.providers.translate("Fonts"),getSubmenuItems:function(){return v.items.validateItems(v.getStyleItems())}}),b=l,x=_({type:"advanced"},(y=f).styleselect),w=b_(0,y,gE(b,x)),b.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return w.items.validateItems(w.getStyleItems())}}),S=b_(0,f,mE(C=l)),C.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return S.items.validateItems(S.getStyleItems())}}),O=b_(0,f,fE(k=l)),k.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return O.items.validateItems(O.getStyleItems())}}),(c=a=e).ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:yz(c,"hasUndo"),onAction:v_(c,"undo")}),c.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:yz(c,"hasRedo"),onAction:v_(c,"redo")}),(s=a).ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",disabled:!0,onSetup:yz(s,"hasUndo"),onAction:v_(s,"undo")}),s.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",disabled:!0,onSetup:yz(s,"hasRedo"),onAction:v_(s,"redo")}),function(e){var t;(t=e).addCommand("mceApplyTextcolor",(function(e,n){var o,r=e,i=n;(o=t).undoManager.transact((function(){o.focus(),o.formatter.apply(r,{value:i}),o.nodeChanged()}))})),t.addCommand("mceRemoveTextcolor",(function(e){var n,o=e;(n=t).undoManager.transact((function(){n.focus(),n.formatter.remove(o,{value:null},null,!0),n.nodeChanged()}))}));var n=Ro(wb),o=Ro(wb);fb(e,"forecolor","forecolor","Text color",n),fb(e,"backcolor","hilitecolor","Background color",o),db(e,"forecolor","forecolor","Text color"),db(e,"backcolor","hilitecolor","Background color")}(e),function(e){var t;e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:v_(e,"mceToggleVisualAid")}),e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:h_(t=e,"VisualAid",(function(e){e.setActive(t.hasVisual)})),onAction:v_(e,"mceToggleVisualAid")})}(e),(r=e).ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:h_(i=r,"NodeChange",(function(e){e.setDisabled(!i.queryCommandState("outdent"))})),onAction:v_(r,"outdent")}),r.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:v_(r,"indent")}),vz(n=e,oT),o=n,ve.from(o.getParam("content_langs",void 0,"array")).map((function(e){return{name:"language",text:"Language",icon:"language",getOptions:u(e),hash:function(e){return h(e.customCode)?e.code:e.code+"/"+e.customCode},display:function(e){return e.title},watcher:function(e,t,n){return e.formatter.formatChanged("lang",n,!1,{value:t.code,customValue:t.customCode}).unbind},getCurrent:function(e){return fr(Ae.fromDom(e.selection.getNode()),(function(e){return ve.some(e).filter(qt).bind((function(e){return at(e,"lang").map((function(t){return{code:t,customCode:at(e,"data-mce-lang").getOrUndefined(),title:""}}))}))}))},setCurrent:function(e,t){return e.execCommand("Lang",!1,t)},onToolbarSetup:function(e){var t=ac();return e.setActive(o.formatter.match("lang",{},void 0,!0)),t.set(o.formatter.formatChanged("lang",e.setActive,!0)),t.clear}}})).each((function(e){return vz(n,e)}))}function wz(e,t){return{type:"makeshift",x:e,y:t}}function Cz(e){return"longpress"===e.type||0===e.type.indexOf("touch")}function Sz(e,t,n){switch(n){case"node":return{type:"node",node:ve.some(Ae.fromDom((o=e).selection.getNode())),root:Ae.fromDom(o.getBody())};case"point":return function(e,t){return"contextmenu"===t.type||"longpress"===t.type?e.inline?function(e){if(Cz(e)){var t=e.touches[0];return wz(t.pageX,t.pageY)}return wz(e.pageX,e.pageY)}(t):(n=e.getContentAreaContainer(),o=function(e){if(Cz(e)){var t=e.touches[0];return wz(t.clientX,t.clientY)}return wz(e.clientX,e.clientY)}(t),i=(r=Wp.DOM.getPos(n)).x,a=r.y,wz(o.x+i,o.y+a)):rT(e);var n,o,r,i,a}(e,t);case"selection":return rT(e)}var o}function kz(e,t,n,o,r,i){function a(){var a,u,c,m,g,h,p,v,b,y;c=n(),m=o,g=r,p=!(f||s||l&&d),b=Sz(a=e,u=t,v=h=i),y=_({bubble:gc(0,"point"===v?12:0,aT),layouts:iT,overrides:{maxWidthFunction:PO(),maxHeightFunction:Ec()}},b),xw(c,fp.CLOSE_ON_EXECUTE,m,!0).map((function(e){u.preventDefault(),Yg.showMenuWithinBounds(g,{anchor:y},{menu:{markers:Fh("normal"),highlightImmediately:p},data:e,type:"horizontal"},(function(){return ve.some(ME(a,m.shared,"node"===h?"node":"selection"))})),a.fire(iz)}))}var u,c=ln(),s=c.os.isiOS(),l=c.os.isOSX(),f=c.os.isAndroid(),d=c.deviceType.isTouch();(l||s)&&"node"!==i?(u=function(){(function(e){function t(){eh.setEditorTimeout(e,(function(){e.selection.setRng(n)}),10),i()}var n=e.selection.getRng();function o(e){e.preventDefault(),e.stopImmediatePropagation()}function r(){return i()}e.once("touchend",t),e.on("mousedown",o,!0),e.once("longpresscancel",r);var i=function(){e.off("touchend",t),e.off("longpresscancel",r),e.off("mousedown",o)}})(e),a()},function(e,t){var n=e.selection;if(!(n.isCollapsed()||t.touches.length<1)){var o=t.touches[0],r=n.getRng();return fs(e.getWin(),rs.domRange(r)).exists((function(e){return e.left<=o.clientX&&e.right>=o.clientX&&e.top<=o.clientY&&e.bottom>=o.clientY}))}}(e,t)?u():(e.once("selectionchange",u),e.once("touchend",(function(){return e.off("selectionchange",u)})))):a()}function _z(e){return"string"==typeof e?e.split(/[ ,]/):e}function Oz(e){return e.getParam("contextmenu_never_use_native",!1,"boolean")}function Ez(e){return l(e)?"|"===e:"separator"===e.type}function zz(e,t){if(0===t.length)return e;var n=Q(e).filter((function(e){return!Ez(e)})).fold((function(){return[]}),(function(e){return[uT]}));return e.concat(n).concat(t).concat([uT])}function Tz(e,t){return"longpress"!==t.type&&(2!==t.button||t.target===e.getBody()&&""===t.pointerType)}function Mz(e,t){return Tz(e,t)?e.selection.getStart(!0):t.target}function Dz(e,t,n){function o(e){return Yg.hide(a)}function r(t){var o;Oz(e)&&t.preventDefault(),t.ctrlKey&&!Oz(e)||!1===e.getParam("contextmenu")||(o=function(e,t){var n=e.getParam("contextmenu_avoid_overlap","","string"),o=Tz(e,t)?"selection":"point";if(de(n)){var r=Mz(e,t);return Mb(Ae.fromDom(r),n)?"node":o}return o}(e,t),(i()?kz:function(e,t,n,o,r,i){var a=n(),u=Sz(e,t,i);xw(a,fp.CLOSE_ON_EXECUTE,o,!1).map((function(e){t.preventDefault(),Yg.showMenuAt(r,{anchor:u},{menu:{markers:Fh("normal")},data:e})}))})(e,t,(function(){var n,o,r,i=Mz(e,t),a=e.ui.registry.getAll(),u=(r=(o=e).ui.registry.getAll().contextMenus,ve.from(o.getParam("contextmenu")).map(_z).getOrThunk((function(){return L(_z("link linkchecker image imagetools table spellchecker configurepermanentpen"),(function(e){return Ee(r,e)}))}))),c=a.contextMenus,s=i;return 0<(n=P(u,(function(e,t){return ie(c,t.toLowerCase()).map((function(t){var n=t.update(s);if(l(n))return zz(e,n.split(" "));if(0<n.length){var o=R(n,cT);return zz(e,o)}return e})).getOrThunk((function(){return e.concat([t])}))}),[])).length&&Ez(n[n.length-1])&&n.pop(),n}),n,a,o))}var i=ln().deviceType.isTouch,a=Ca(Yg.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return e.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:Ku([rm("dismissContextMenu",[Cr(Ui(),(function(t,n){sf.close(t),e.focus()}))])])}));e.on("init",(function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(i()?"":" ResizeWindow");e.on(t,o),e.on("longpress contextmenu",r)}))}function Az(e){return function(t){return t.translate(-e.left,-e.top)}}function Nz(e){return function(t){return t.translate(e.left,e.top)}}function Bz(e){return function(t,n){return P(e,(function(e,t){return t(e)}),Sn(t,n))}}function Rz(e,t,n){return e.fold(Bz([Nz(n),Az(t)]),Bz([Az(t)]),Bz([]))}function Hz(e,t,n){return e.fold(Bz([Nz(n)]),Bz([]),Bz([Nz(t)]))}function Lz(e,t,n){return e.fold(Bz([]),Bz([Az(n)]),Bz([Nz(t),Az(n)]))}function Vz(e,t,n){var o=e.fold((function(e,t){return{position:ve.some("absolute"),left:ve.some(e+"px"),top:ve.some(t+"px")}}),(function(e,t){return{position:ve.some("absolute"),left:ve.some(e-n.left+"px"),top:ve.some(t-n.top+"px")}}),(function(e,t){return{position:ve.some("fixed"),left:ve.some(e+"px"),top:ve.some(t+"px")}}));return _({right:ve.none(),bottom:ve.none()},o)}function Pz(e,t,n,o){function r(e,r){return function(i,a){var u=e(t,n,o);return r(i.getOr(u.left),a.getOr(u.top))}}return e.fold(r(Lz,lT),r(Hz,fT),r(Rz,dT))}function Iz(e,t){var n=it(e,t);return h(n)?NaN:parseInt(n,10)}function Fz(e,t,n,o){return Z(e,(function(e){var r,i,a=e.sensor,u=e.range.left,c=e.range.top,s=Hz(t,r=n,i=o),l=Hz(a,r,i);return Math.abs(s.left-l.left)<=u&&Math.abs(s.top-l.top)<=c?ve.some({output:Pz(e.output,t,n,o),extra:e.extra}):ve.none()}))}function Uz(e,t){var n;e.getSystem().addToGui(t),$e((n=t).element).filter(qt).each((function(e){ht(e,"z-index").each((function(t){ot(e,pT,t)})),ft(e,"z-index",gt(n.element,"z-index"))}))}function jz(e){$e(e.element).filter(qt).each((function(e){at(e,pT).fold((function(){return vt(e,"z-index")}),(function(t){return ft(e,"z-index",t)})),ct(e,pT)})),e.getSystem().removeFromGui(e)}function Wz(e,t,n){return e.getSystem().build(qb.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:n}))}function qz(e,t){return{bounds:e.getBounds(),height:wt(t.element),width:_t(t.element)}}function Gz(e,t,n,o,r){var i=n.update(o,r),a=n.getStartData().getOrThunk((function(){return qz(t,e)}));i.each((function(n){var o,r,i,c,s,l,f,d,m,g,h,p,v,b,y,x,w,C,S,k,_,O,E,z,T,M=e,D=a,A=n,N=(o=t).getTarget(M.element);o.repositionTarget&&(r=Bt(je(M.element)),i=gk(N),O=ht(_=N,"left"),E=ht(_,"top"),z=ht(_,"position"),T=function(e,t,n){return("fixed"===n?dT:lT)(parseInt(e,10),parseInt(t,10))},c=(O.isSome()&&E.isSome()&&z.isSome()?ve.some(T(O.getOrDie(),E.getOrDie(),z.getOrDie())):ve.none()).getOrThunk((function(){var e=St(_);return fT(e.left,e.top)})),s=M,l=o.snaps,f=c,d=r,m=i,g=A,h=D,v=l.fold((function(){var e,t,n=Rz((e=g.left,t=g.top,f.fold((function(n,o){return lT(n+e,o+t)}),(function(n,o){return fT(n+e,o+t)}),(function(n,o){return dT(n+e,o+t)}))),d,m);return dT(n.left,n.top)}),(function(e){var t=function(e,t,n,o,r,i){var a,u,c,s,l,f,d=(a=n,u=o,l=Iz(s=e.element,(c=t).leftAttr),f=Iz(s,c.topAttr),(isNaN(l)||isNaN(f)?ve.none():ve.some(Sn(l,f))).fold((function(){return a}),(function(e){return dT(e.left+u.left,e.top+u.top)}))),m=(t.mustSnap?mT:gT)(e,t,d,r,i),g=Rz(d,r,i),h=t,p=g,v=e.element;return ot(v,h.leftAttr,p.left+"px"),ot(v,h.topAttr,p.top+"px"),m.fold((function(){return{coord:dT(g.left,g.top),extra:ve.none()}}),(function(e){return{coord:e.output,extra:e.extra}}))}(s,e,f,g,d,m);return t.extra.each((function(t){e.onSensor(s,t)})),t.coord})),b=d,y=m,x=(p=h).bounds,w=Hz(v,b,y),C=Vu(w.left,x.x,x.x+x.width-p.width),S=Vu(w.top,x.y,x.y+x.height-p.height),k=fT(C,S),mt(N,Vz(v.fold((function(){var e=Lz(k,b,y);return lT(e.left,e.top)}),u(k),(function(){var e=Rz(k,b,y);return dT(e.left,e.top)})),0,i))),o.onDrag(M,N,A)}))}function $z(e,t,n,o){t.each(jz),n.snaps.each((function(t){var n,o;n=t,ct(o=e.element,n.leftAttr),ct(o,n.topAttr)}));var r=n.getTarget(e.element);o.reset(),n.onDrop(e,r)}function Xz(e){return function(t,n){function o(e){n.setStartData(qz(t,e))}return Ji(E([Cr(Vi(),(function(e){n.getStartData().each((function(){return o(e)}))}))],e(t,n,o),!0))}}function Kz(e,t,n){return[Cr(ci(),(function(o,r){var i,a,u,c,s;0===r.event.raw.button&&(r.stop(),u={drop:i=function(){return $z(o,ve.some(c),e,t)},delayDrop:(a=Db(i,200)).schedule,forceDrop:i,move:function(n){a.cancel(),Gz(o,e,t,yT,n)}},c=Wz(o,e.blockerClass,(s=u,Ji([Cr(ci(),s.forceDrop),Cr(fi(),s.drop),Cr(si(),(function(e,t){s.move(t.event)})),Cr(li(),s.delayDrop)]))),n(o),Uz(o,c))}))]}function Yz(e,t,n){function o(n){$z(n,r.get(),e,t),r.clear()}var r=uc();return[Cr(ri(),(function(i,a){a.stop();var u,c,s,l=Wz(i,e.blockerClass,(c=u=function(){return o(i)},s=function(n){Gz(i,e,t,wT,n)},Ji([Cr(ri(),c),Cr(ai(),u),Cr(ui(),u),Cr(ii(),(function(e,t){s(t.event)}))])));r.set(l),n(i),Uz(i,l)})),Cr(ii(),(function(n,o){o.stop(),Gz(n,e,t,wT,o.event)})),Cr(ai(),(function(e,t){t.stop(),o(e)})),Cr(ui(),o)]}function Jz(e,t,n,o,r,i){return e.fold((function(){return kT.snap({sensor:fT(n-20,o-20),range:Sn(r,i),output:fT(ve.some(n),ve.some(o)),extra:{td:t}})}),(function(e){var r=n-20,i=o-20,a=e.element.dom.getBoundingClientRect();return kT.snap({sensor:fT(r,i),range:Sn(40,40),output:fT(ve.some(n-a.width/2),ve.some(o-a.height/2)),extra:{td:t}})}))}function Qz(e,t,n){return{getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(e,o){var r=o.td,i=t.get(),a=r;i.exists((function(e){return Fe(e,a)}))||(t.set(r),n(r))},mustSnap:!0}}function Zz(e){return Mm(th.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:Ku([kT.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),$w.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))}function eT(e,t){function n(e){var n=Pt(e);return Jz(g.getOpt(t),e,n.x,n.y,n.width,n.height)}function o(e){var n=Pt(e);return Jz(h.getOpt(t),e,n.right,n.bottom,n.width,n.height)}function r(t,n,o,r){var i=o(n);kT.snapTo(t,i),function(t){var o=n.dom.getBoundingClientRect();vt(t.element,"display");var i=Ge(Ae.fromDom(e.getBody())).dom.innerHeight,a=o[r]<0,u=o[r]>i;(a||u)&&ft(t.element,"display","none")}(t)}function i(e){return r(p,e,n,"top")}function a(e){return r(v,e,o,"bottom")}var u=Ro([]),c=Ro([]),s=Ro(!1),l=uc(),f=uc(),d=Qz((function(){return R(u.get(),n)}),l,(function(t){f.get().each((function(n){e.fire("TableSelectorChange",{start:t,finish:n})}))})),m=Qz((function(){return R(c.get(),o)}),f,(function(t){l.get().each((function(n){e.fire("TableSelectorChange",{start:n,finish:t})}))})),g=Zz(d),h=Zz(m),p=Ca(g.asSpec()),v=Ca(h.asSpec());ln().deviceType.isTouch()&&(e.on("TableSelectionChange",(function(e){s.get()||(Es(t,p),Es(t,v),s.set(!0)),l.set(e.start),f.set(e.finish),e.otherCells.each((function(t){u.set(t.upOrLeftCells),c.set(t.downOrRightCells),i(e.start),a(e.finish)}))})),e.on("ResizeEditor ResizeWindow ScrollContent",(function(){l.get().each(i),f.get().each(a)})),e.on("TableSelectionClear",(function(){s.get()&&(Ts(p),Ts(v),s.set(!1)),l.clear(),f.clear()})))}var tT,nT,oT={name:"lineheight",text:"Line height",icon:"line-height",getOptions:function(e){return e.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},hash:function(e){return t=["fixed","relative","empty"],ve.from(hz.exec(e)).bind((function(e){var n=Number(e[1]),o=e[2],r=o;return A(t,(function(e){return A(gz[e],(function(e){return r===e}))}))?ve.some({value:n,unit:o}):ve.none()})).map((function(e){return e.value+e.unit})).getOr(e);var t},display:c,watcher:function(e,t,n){return e.formatter.formatChanged("lineheight",n,!1,{value:t}).unbind},getCurrent:function(e){return ve.from(e.queryCommandValue("LineHeight"))},setCurrent:function(e,t){return e.execCommand("LineHeight",!1,t)}},rT=function(e){return{type:"selection",root:Ae.fromDom(e.selection.getNode())}},iT={onLtr:function(){return[qu,Iu,Fu,Uu,ju,Wu,Qg,Zg,Sm,wm,Cm,xm]},onRtl:function(){return[qu,Fu,Iu,ju,Uu,Wu,Qg,Zg,Cm,xm,Sm,wm]}},aT={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},uT={type:"separator"},cT=function(e){function t(e){return{text:e.text,icon:e.icon,disabled:e.disabled,shortcut:e.shortcut}}var n;if(l(e))return e;switch(e.type){case"separator":return uT;case"submenu":return _(_({type:"nestedmenuitem"},t(e)),{getSubmenuItems:function(){var t=e.getSubmenuItems();return l(t)?t:R(t,cT)}});default:return _(_({type:"menuitem"},t(e)),{onAction:(n=e.onAction,function(){return n()})})}},sT=Ho([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),lT=sT.offset,fT=sT.absolute,dT=sT.fixed,mT=function(e,t,n,o,r){var i=t.getSnapPoints(e);return Fz(i,n,o,r).orThunk((function(){return P(i,(function(e,t){var i,a,u,c,s,l,f,d=(i=t.sensor,t.range.left,t.range.top,c=Hz(n,a=o,u=r),s=Hz(i,a,u),l=Math.abs(c.left-s.left),f=Math.abs(c.top-s.top),Sn(l,f));return e.deltas.fold((function(){return{deltas:ve.some(d),snap:ve.some(t)}}),(function(n){return(d.left+d.top)/2<=(n.left+n.top)/2?{deltas:ve.some(d),snap:ve.some(t)}:e}))}),{deltas:ve.none(),snap:ve.none()}).snap.map((function(e){return{output:Pz(e.output,n,o,r),extra:e.extra}}))}))},gT=function(e,t,n,o,r){return Fz(t.getSnapPoints(e),n,o,r)},hT=Object.freeze({__proto__:null,snapTo:function(e,t,n,o){var r,i,a,u=t.getTarget(e.element);t.repositionTarget&&(r=Bt(je(e.element)),i=gk(u),mt(u,Vz([Pz((a=o).output,a.output,r,i),a.extra][0],0,i)))}}),pT="data-initial-z-index",vT=_o("snaps",[lo("getSnapPoints"),Wa("onSensor"),lo("leftAttr"),lo("topAttr"),Oo("lazyViewport",Nn),Oo("mustSnap",!1)]),bT=[Oo("useFixed",C),lo("blockerClass"),Oo("getTarget",c),Oo("onDrag",i),Oo("repositionTarget",!0),Oo("onDrop",i),Ao("getBounds",Nn),vT],yT=Object.freeze({__proto__:null,getData:function(e){return ve.from(Sn(e.x,e.y))},getDelta:function(e,t){return Sn(t.left-e.left,t.top-e.top)}}),xT=E(E([],bT,!0),[Xa("dragger",{handlers:Xz(Kz)})],!1),wT=Object.freeze({__proto__:null,getData:function(e){var t,n=e.raw.touches;return 1===n.length?(t=n[0],ve.some(Sn(t.clientX,t.clientY))):ve.none()},getDelta:function(e,t){return Sn(t.left-e.left,t.top-e.top)}}),CT=E(E([],bT,!0),[Xa("dragger",{handlers:Xz(Yz)})],!1),ST=E(E([],bT,!0),[Xa("dragger",{handlers:Xz((function(e,t,n){return E(E([],Kz(e,t,n),!0),Yz(e,t,n),!0)}))})],!1),kT=hu({branchKey:"mode",branches:Object.freeze({__proto__:null,mouse:xT,touch:CT,mouseOrTouch:ST}),name:"dragging",active:{events:function(e,t){return e.dragger.handlers(e,t)}},extra:{snap:function(e){return{sensor:e.sensor,range:e.range,output:e.output,extra:ve.from(e.extra)}}},state:Object.freeze({__proto__:null,init:function(){var e=ve.none(),t=ve.none(),n=u({});return pa({readState:n,reset:function(){e=ve.none(),t=ve.none()},update:function(t,n){return t.getData(n).bind((function(n){return o=t,r=n,i=e.map((function(e){return o.getDelta(e,r)})),e=ve.some(r),i;var o,r,i}))},getStartData:function(){return t},setStartData:function(e){t=ve.some(e)}})}}),apis:hT});function _T(e,t,n){var o,r,i,a,u,c,s=Ae.fromDom(e.getContainer());ee((o=e,r=t,i=n,a=xt(s),u=kt(s),(c={}).height=kE(a+r.top,tp(o),op(o)),i===tT.Both&&(c.width=kE(u+r.left,ep(o),np(o))),c),(function(e,t){return ft(s,t,SE(e)),0})),e.fire("ResizeEditor")}function OT(e,t,n,o){return _T(e,Sn(20*n,20*o),t),ve.some(!0)}function ET(e,t){var n,o,r,i,a,u,c,s,l,f,d,m,g,h,p,v;return{dom:{tag:"div",classes:["tox-statusbar"]},components:(v=[],e.getParam("elementpath",!0,"boolean")&&v.push((g=e,p=t,(h={}).delimiter||(h.delimiter="»"),{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:Ku([kg.config({mode:"flow",selector:"div[role=button]"}),id.config({disabled:p.isDisabled}),ov(),Yb.config({}),Og.config({}),rm("elementPathEvents",[Qi((function(e,t){g.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return kg.focusIn(e)})),g.on("NodeChange",(function(t){var n,o,r=function(e){for(var t=[],n=e.length;0<n--;){var o=e[n];if(1===o.nodeType&&!function(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return 1;if("bookmark"===e.getAttribute("data-mce-type"))return 1}}(o)){var r=g.fire("ResolveName",{name:o.nodeName.toLowerCase(),target:o});if(r.isDefaultPrevented()||t.push({name:r.name,element:o}),r.isPropagationStopped())break}}return t}(t.parents);0<r.length?Og.set(e,(n=R(r||[],(function(e,t){return th.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":t,"tab-index":-1,"aria-level":t+1},innerHtml:e.name},action:function(t){g.focus(),g.selection.select(e.element),g.nodeChanged()},buttonBehaviours:Ku([Pv(p.isDisabled),ov()])})})),o={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+h.delimiter+" "}},P(n.slice(1),(function(e,t){var n=e;return n.push(o),n.push(t),n}),[n[0]]))):Og.set(e,[])}))}))])]),components:[]})),e.hasPlugin("wordcount")&&v.push((f=e,d=t,th.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:Ku([Pv(d.isDisabled),ov(),Yb.config({}),Og.config({}),xf.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),rm("wordcount-events",[ta((function(e){var t=xf.getValue(e),n="words"===t.mode?"characters":"words";xf.setValue(e,{mode:n,count:t.count}),b(e,t.count,n)})),Qi((function(e){f.on("wordCountUpdate",(function(t){var n=xf.getValue(e).mode;xf.setValue(e,{mode:n,count:t.wordCount}),b(e,t.wordCount,n)}))}))])]),eventOrder:((m={})[Ti()]=["disabling","alloy.base.behaviour","wordcount-events"],m)}))),e.getParam("branding",!0,"boolean")&&v.push({dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:'<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+(l=nh.translate(["Powered by {0}","Tiny"]))+'">'+l+"</a>"}}),n=0<v.length?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:v}]:[],i=t,u=!(a=r=e).hasPlugin("autoresize"),o=(s=!1===(c=a.getParam("resize",u))?tT.None:"both"===c?tT.Both:tT.Vertical)===tT.None?ve.none():ve.some(Lm("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:i.translate("Resize")},behaviours:[kT.config({mode:"mouse",repositionTarget:!1,onDrag:function(e,t,n){return _T(r,n,s)},blockerClass:"tox-blocker"}),kg.config({mode:"special",onLeft:function(){return OT(r,s,-1,0)},onRight:function(){return OT(r,s,1,0)},onUp:function(){return OT(r,s,0,-1)},onDown:function(){return OT(r,s,0,1)}}),Yb.config({}),Tg.config({})]},i.icons)),n.concat(o.toArray()))};function b(e,t,n){return Og.set(e,[Zr(d.translate(["{0} "+n,t[n]]))])}}function zT(e){function t(){return d.bind(oE.getHeader)}function n(){return Hn.value(x)}function o(){return d.bind((function(e){return oE.getThrobber(e)})).getOrDie("Could not find throbber element")}var r,a,u,c,s=e.inline,l=s?rz:oz,f=ev(e)?bO:cO,d=ve.none(),m=ln(),g=m.browser.isIE()?["tox-platform-ie"]:[],h=m.deviceType.isTouch()?["tox-platform-touch"]:[],p=Kp(e),v=Qp(e),b=nh.isRtl()?{attributes:{dir:"rtl"}}:{},y={attributes:((r={})[$c]=p?vc.BottomToTop:vc.TopToBottom,r)},x=Ca((a=Fe(bn(),v)&&"grid"===gt(v,"display"),u={dom:_({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(g).concat(h)},b),behaviours:Ku([tf.config({useFixed:function(){return f.isDocked(t)}})])},c={dom:{styles:{width:document.body.clientWidth+"px"}},events:Ji([Cr(Pi(),(function(){ft(Z.element,"width",document.body.clientWidth+"px")}))])},qo(u,a?c:{}))),w=Mm({dom:{tag:"div",classes:["tox-anchorbar"]}}),C=dk(x,e,(function(){return d.bind((function(e){return w.getOpt(e)})).getOrDie("Could not find a anchor bar element")})),S=oE.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:C,onEscape:function(){e.focus()}}),k=$p(e),O=oE.parts.toolbar(_({dom:{tag:"div",classes:["tox-toolbar"]},getSink:n,providers:C.shared.providers,onEscape:function(){e.focus()},type:k,lazyToolbar:function(){return d.bind((function(e){return oE.getToolbar(e)})).getOrDie("Could not find more toolbar element")},lazyHeader:function(){return t().getOrDie("Could not find header element")}},y)),E=oE.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:C.shared.providers,onEscape:function(){e.focus()},type:k}),z=oE.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),T=oE.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),M=oE.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:C}),D=e.getParam("statusbar",!0,"boolean")&&!s?ve.some(ET(e,C.shared.providers)):ve.none(),A={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[z,T]},N=Gp(e),B=ip(e),R=rp(e),H=oE.parts.header({dom:_({tag:"div",classes:["tox-editor-header"]},y),components:U([R?[S]:[],N?[E]:B?[O]:[],Jp(e)?[]:[w.asSpec()]]),sticky:ev(e),editor:e,sharedBackstage:C.shared}),L=U([p?[]:[H],s?[]:[A],p?[H]:[]]),V=U([[{dom:{tag:"div",classes:["tox-editor-container"]},components:L}],s?[]:D.toArray(),[M]]),P=Zp(e),I=_(_({role:"application"},nh.isRtl()?{dir:"rtl"}:{}),P?{"aria-hidden":"true"}:{}),F=Ca(oE.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(s?["tox-tinymce-inline"]:[]).concat(p?["tox-tinymce--toolbar-bottom"]:[]).concat(h).concat(g),styles:_({visibility:"hidden"},P?{opacity:"0",border:"0"}:{}),attributes:I},components:V,behaviours:Ku([ov(),id.config({disableClass:"tox-tinymce--disabled"}),kg.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])}));d=ve.some(F);e.shortcuts.add("alt+F9","focus menubar",(function(){oE.focusMenubar(F)})),e.shortcuts.add("alt+F10","focus toolbar",(function(){oE.focusToolbar(F)})),e.addCommand("ToggleToolbarDrawer",(function(){oE.toggleToolbarDrawer(F)})),e.addQueryStateHandler("ToggleToolbarDrawer",(function(){return oE.isToolbarDrawerToggled(F)}));var j,W,q,G,$,X,K,Y,J,Q=Hb(F),Z=Hb(x);return j=e,W=Q,q=Z,G=pu(),$=cc(G,"touchstart",oe),X=cc(G,"touchmove",(function(e){return ee(Hi(),e)})),K=cc(G,"touchend",(function(e){return ee(Li(),e)})),Y=cc(G,"mousedown",oe),J=cc(G,"mouseup",(function(e){0===e.raw.button&&ne(df(),{target:e.target})})),j.on("PostRender",(function(){j.on("click",re),j.on("tap",re),j.on("mouseup",ie),j.on("mousedown",ae),j.on("ScrollWindow",ce),j.on("ResizeWindow",se),j.on("ResizeEditor",le),j.on("AfterProgressState",fe),j.on("DismissPopups",de)})),j.on("remove",(function(){j.off("click",re),j.off("tap",re),j.off("mouseup",ie),j.off("mousedown",ae),j.off("ScrollWindow",ce),j.off("ResizeWindow",se),j.off("ResizeEditor",le),j.off("AfterProgressState",fe),j.off("DismissPopups",de),Y.unbind(),$.unbind(),X.unbind(),K.unbind(),J.unbind()})),j.on("detach",(function(){As(W),As(q),W.destroy(),q.destroy()})),{mothership:Q,uiMothership:Z,backstage:C,renderUI:function(){var r,i;f.setup(e,C.shared,t),xz(e,C),Dz(e,n,C),i=(r=e).ui.registry.getAll().sidebars,Ce(ke(i),(function(e){function t(){return ue(ve.from(r.queryCommandValue("ToggleSidebar")),e)}var n=i[e];r.ui.registry.addToggleButton(e,{icon:n.icon,tooltip:n.tooltip,onAction:function(n){r.execCommand("ToggleSidebar",!1,e),n.setActive(t())},onSetup:function(e){function n(){return e.setActive(t())}return r.on("ToggleSidebar",n),function(){r.off("ToggleSidebar",n)}}})})),Gk(e,o,C.shared),te(e.getParam("toolbar_groups",{},"object"),(function(t,n){e.ui.registry.addGroupToolbarButton(n,t)}));var a,u=e.ui.registry.getAll(),c=u.buttons,s=u.menuItems,d=u.contextToolbars,m=u.sidebars,g=ap(e),h={menuItems:s,menus:(a=e.getParam("menu"))?te(a,(function(e){return _(_({},e),{items:e.items})})):{},menubar:e.getParam("menubar"),toolbar:g.getOrThunk((function(){return e.getParam("toolbar",!0)})),allowToolbarGroups:k===up.floating,buttons:c,sidebar:m};BE(e,d,x,{backstage:C}),eT(e,x);var p=e.getElement(),v=function(){var t,n,o,r,i,a,u=SE((r=Qh(o=n=e),i=tp(o),a=op(o),CE(r).map((function(e){return kE(e,i,a)})).getOr(Qh(n)))),c=SE(_E(t=e).getOr(Zh(t)));return e.inline||(pt("div","width",c)&&ft(F.element,"width",c),pt("div","height",u)?ft(F.element,"height",u):ft(F.element,"height","200px")),u}();return l.render(e,{mothership:Q,uiMothership:Z,outerContainer:F},h,C,{targetNode:p,height:v})},getUi:function(){return{channels:{broadcastAll:Z.broadcast,broadcastOn:Z.broadcastOn,register:i}}}};function ee(e,t){Ce([W,q],(function(n){n.broadcastEvent(e,t)}))}function ne(e,t){Ce([W,q],(function(n){n.broadcastOn([e],t)}))}function oe(e){return ne(lf(),{target:e.target})}function re(e){return ne(lf(),{target:Ae.fromDom(e.target)})}function ie(e){0===e.button&&ne(df(),{target:Ae.fromDom(e.target)})}function ae(){Ce(j.editorManager.get(),(function(e){j!==e&&e.fire("DismissPopups",{relatedTarget:j})}))}function ce(e){return ee(Vi(),Sc(e))}function se(e){ne(ff(),{}),ee(Pi(),Sc(e))}function le(){return ne(ff(),{})}function fe(e){e.state&&ne(lf(),{target:Ae.fromDom(j.getContainer())})}function de(e){ne(lf(),{target:Ae.fromDom(e.relatedTarget.getContainer())})}}function TT(e){return ir("items","items",{tag:"required",process:{}},Zn(oo((function(t){return io("Checking item of "+e,vD,t).fold((function(e){return Hn.error(rr(e))}),(function(e){return Hn.value(e)}))}))))}function MT(e){return l(e.type)&&l(e.name)}function DT(e){return{internalDialog:ao(io("dialog",_D,e)),dataValidator:(t=j(L(zD(e),MT),(function(e){return ve.from(TD[e.type]).fold((function(){return[]}),(function(t){return[fo(e.name,t)]}))})),Ko(t)),initialData:e.initialData};var t}function AT(e){var t=[],n={};return ee(e,(function(e,o){e.fold((function(){t.push(o)}),(function(e){n[o]=e}))})),0<t.length?Hn.error(t):Hn.value(n)}function NT(e,t){ft(e,"height",t+"px"),ln().browser.isIE()?vt(e,"flex-basis"):ft(e,"flex-basis",t+"px")}function BT(e,t,n){za(e,'[role="dialog"]').each((function(e){Ta(e,'[role="tablist"]').each((function(o){n.get().map((function(n){return ft(t,"height","0"),ft(t,"flex-basis","0"),Math.min(n,(i=t,a=o,u=qe(r=e).dom,c="fixed"===gt(za(r,".tox-dialog-wrap").getOr(r),"position")?Math.max(u.clientHeight,window.innerHeight):Math.max(u.offsetHeight,u.scrollHeight),s=xt(i),l=i.dom.offsetLeft>=a.dom.offsetLeft+kt(a)?Math.max(xt(a),s):s,f=parseInt(gt(r,"margin-top"),10)||0,d=parseInt(gt(r,"margin-bottom"),10)||0,c-(xt(r)+f+d-l)));var r,i,a,u,c,s,l,f,d})).each((function(e){NT(t,e)}))}))}))}function RT(e){return Ta(e,'[role="tabpanel"]')}function HT(e,t){function n(e){var t=AT(xf.getValue(e)).getOr({}),n=a.get(),o=qo(n,t);a.set(o)}function o(e){var t=a.get();xf.setValue(e,t)}var r,i,a=Ro({}),u=Ro(null),c=R(e.tabs,(function(e){return{value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(e.title)},view:function(){return[AC.sketch((function(r){return{dom:{tag:"div",classes:["tox-form"]},components:R(e.items,(function(e){return US(r,e,t)})),formBehaviours:Ku([kg.config({mode:"acyclic",useTabstopAt:x(Xx)}),rm("TabView.form.events",[Qi(o),Zi(n)]),Zu.config({channels:cr([{key:PD,value:{onReceive:n}},{key:ID,value:{onReceive:o}}])})])}}))]}}})),s=(r=c,i=uc(),{extraEvents:[Qi((function(e){var t=e.element;RT(t).each((function(n){var o;ft(n,"visibility","hidden"),e.getSystem().getByDom(n).toOptional().each((function(e){var t,o,a;J(K((o=n,a=e,R(t=r,(function(e,n){Og.set(a,t[n].view());var r=o.dom.getBoundingClientRect();return Og.set(a,[]),r.height}))),(function(e,t){return t<e?-1:e<t?1:0}))).fold(i.clear,i.set)})),BT(t,n,i),vt(n,"visibility"),o=e,J(r).each((function(e){return VD.showTab(o,e.value)})),eh.requestAnimationFrame((function(){BT(t,n,i)}))}))})),Cr(Pi(),(function(e){var t=e.element;RT(t).each((function(e){BT(t,e,i)}))})),Cr(cy,(function(e,t){var n=e.element;RT(n).each((function(e){var t=yu(gn(e));ft(e,"visibility","hidden");var o=ht(e,"height").map((function(e){return parseInt(e,10)}));vt(e,"height"),vt(e,"flex-basis");var r=e.dom.getBoundingClientRect().height;o.forall((function(e){return e<r}))?(i.set(r),BT(n,e,i)):o.each((function(t){NT(e,t)})),vt(e,"visibility"),t.each(vu)}))}))],selectFirst:!1});return VD.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(e,t,n){var o=xf.getValue(t);pr(e,uy,{name:o,oldName:u.get()}),u.set(o)},tabs:c,components:[VD.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[BD.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:Ku([Yb.config({})])}),VD.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:Ku([rm("tabpanel",s.extraEvents),kg.config({mode:"acyclic"}),Zf.config({find:function(e){return J(VD.getViewItems(e))}}),xf.config({store:{mode:"manual",getValue:function(e){return e.getSystem().broadcastOn([PD],{}),a.get()},setValue:function(e,t){a.set(t),e.getSystem().broadcastOn([ID],{})}}})])})}function LT(e,t,n,o){return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:_(_({},t.map((function(e){return{id:e}})).getOr({})),o?{"aria-live":"polite"}:{})},components:[],behaviours:Ku([VC(0),WE.config({channel:jD,updateState:function(e,t){return ve.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},renderComponents:function(e){return"tabpanel"!==e.body.type?[(t=e.body,o=n,{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[(r=Mm(AC.sketch((function(e){return{dom:{tag:"div",classes:["tox-form"].concat(t.classes)},components:R(t.items,(function(t){return US(e,t,o)}))}})))).asSpec()]}],behaviours:Ku([kg.config({mode:"acyclic",useTabstopAt:x(Xx)}),LC(r),jC(r,{postprocess:function(e){return AT(e).fold((function(e){return console.error(e),{}}),c)}})])})]:[HT(e.body,n)];var t,o,r},initialData:e})])}}function VT(e,t){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,t]}}function PT(e,t){return dM.parts.close(th.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:Ku([Yb.config({})])}))}function IT(){return dM.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})}function FT(e,t){return dM.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Wk("<p>"+t.translate(e)+"</p>")}]}]})}function UT(e){return dM.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e})}function jT(e,t){return[qb.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),qb.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]}function WT(e){var t,n="tox-dialog",o=n+"-wrap",r=o+"__backdrop",i=n+"__disable-scroll";return dM.sketch({lazySink:e.lazySink,onEscape:function(t){return e.onEscape(t),ve.some(!0)},useTabstopAt:function(e){return!Xx(e)},dom:{tag:"div",classes:[n].concat(e.extraClasses),styles:_({position:"relative"},e.extraStyles)},components:E([e.header,e.body],e.footer.toArray(),!0),parts:{blocker:{dom:Wk('<div class="'+o+'"></div>'),components:[{dom:{tag:"div",classes:GD?[r,r+"--opaque"]:[r]}}]}},dragBlockClass:o,modalBehaviours:Ku(E([Tg.config({}),rm("dialog-events",e.dialogEvents.concat([zr(mi(),(function(e,t){kg.focusIn(e)}))])),rm("scroll-lock",[Qi((function(){Wr(bn(),i)})),Zi((function(){qr(bn(),i)}))])],e.extraBehaviours,!0)),eventOrder:_(((t={})[Ti()]=["dialog-events"],t[Ii()]=["scroll-lock","dialog-events","alloy.base.behaviour"],t[Fi()]=["alloy.base.behaviour","dialog-events","scroll-lock"],t),e.eventOrder)})}function qT(e){return th.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},components:[Lm("close",{tag:"div",classes:["tox-icon"]},e.icons)],action:function(e){hr(e,ny)}})}function GT(e,t,n){function o(e){return[Zr(n.translate(e.title))]}return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:_({},t.map((function(e){return{id:e}})).getOr({}))},components:o(e),behaviours:Ku([WE.config({channel:UD,renderComponents:o})])}}function $T(){return{dom:Wk('<div class="tox-dialog__draghandle"></div>')}}function XT(e,t){return n={title:t.shared.providers.translate(e),draggable:t.dialog.isDraggableModal()},o=t.shared.providers,r=dM.parts.title(GT(n,ve.none(),o)),i=dM.parts.draghandle($T()),a=dM.parts.close(qT(o)),u=[r].concat(n.draggable?[i]:[]).concat([a]),qb.sketch({dom:Wk('<div class="tox-dialog__header"></div>'),components:u});var n,o,r,i,a,u}function KT(e,t,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:t,components:[{dom:Wk('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}}function YT(e,t,n){return{onClose:function(){return n.closeWindow()},onBlock:function(n){dM.setBusy(e(),(function(e,o){return KT(n.message,o,t)}))},onUnblock:function(){dM.setIdle(e())}}}function JT(e,t,n,o){var r;return Ca(WT(_(_({},e),{lazySink:o.shared.getSink,extraBehaviours:E([WE.config({channel:FD,updateState:function(e,t){return ve.some(t)},initialData:t}),qC({})],e.extraBehaviours,!0),onEscape:function(e){hr(e,ny)},dialogEvents:n,eventOrder:((r={})[zi()]=[WE.name(),Zu.name()],r[Ii()]=["scroll-lock",WE.name(),"messages","dialog-events","alloy.base.behaviour"],r[Fi()]=["alloy.base.behaviour","dialog-events","messages",WE.name(),"scroll-lock"],r)})))}function QT(e){return R(e,(function(e){return"menu"===e.type?(n=R((t=e).items,(function(e){var t=Ro(!1);return _(_({},e),{storage:t})})),_(_({},t),{items:n})):e;var t,n}))}function ZT(e){return P(e,(function(e,t){return"menu"!==t.type?e:P(t.items,(function(e,t){return e[t.name]=t.storage,e}),e)}),{})}function eM(e,t){return[Or(mi(),$x),e(ty,(function(e,n){t.onClose(),n.onClose()})),e(ny,(function(e,t,n,o){t.onCancel(e),hr(o,ty)})),Cr(ay,(function(e,n){return t.onUnblock()})),Cr(iy,(function(e,n){return t.onBlock(n.event)}))]}function tM(e,t){function n(e,t){return qb.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+e]},components:R(t,(function(e){return e.memento.asSpec()}))})}var o=H(t.map((function(e){return e.footerButtons})).getOr([]),(function(e){return"start"===e.align}));return[n("start",o.pass),n("end",o.fail)]}function nM(e,t){return{dom:Wk('<div class="tox-dialog__footer"></div>'),components:[],behaviours:Ku([WE.config({channel:WD,initialData:e,updateState:function(e,n){var o=R(n.buttons,(function(e){var n=Mm(Tw(e,e.type,t));return{name:e.name,align:e.align,memento:n}}));return ve.some({lookupByName:function(e,t){return n=e,r=t,I(o,(function(e){return e.name===r})).bind((function(e){return e.memento.getOpt(n)}));var n,r},footerButtons:o})},renderComponents:tM})])}}function oM(e,t){return dM.parts.footer(nM(e,t))}function rM(e,t){if(e.getRoot().getSystem().isConnected()){var n=Zf.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return AC.getField(n,t).fold((function(){var o=e.getFooter();return WE.getState(o).get().bind((function(e){return e.lookupByName(n,t)}))}),(function(e){return ve.some(e)}))}return ve.none()}function iM(e,t,n){function o(t){var n=e.getRoot();n.getSystem().isConnected()&&t(n)}var r={getData:function(){var t=e.getRoot(),o=t.getSystem().isConnected()?e.getFormWrapper():t,r=xf.getValue(o),i=te(n,(function(e){return e.get()}));return _(_({},r),i)},setData:function(t){o((function(o){var i,a,u=r.getData(),c=_(_({},u),t),s=(i=c,a=e.getRoot(),WE.getState(a).get().map((function(e){return ao(io("data",e.dataValidator,i))})).getOr(i)),l=e.getFormWrapper();xf.setValue(l,s),ee(n,(function(e,t){Ee(c,t)&&e.set(c[t])}))}))},disable:function(t){rM(e,t).each(id.disable)},enable:function(t){rM(e,t).each(id.enable)},focus:function(t){rM(e,t).each(Tg.focus)},block:function(e){if(!l(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");o((function(t){pr(t,iy,{message:e})}))},unblock:function(){o((function(e){hr(e,ay)}))},showTab:function(t){o((function(n){var o=e.getBody();WE.getState(o).get().exists((function(e){return e.isTabPanel()}))&&Zf.getCurrent(o).each((function(e){VD.showTab(e,t)}))}))},redial:function(e){o((function(n){var o=t(e);n.getSystem().broadcastOn([FD],o),n.getSystem().broadcastOn([UD],o.internalDialog),n.getSystem().broadcastOn([jD],o.internalDialog),n.getSystem().broadcastOn([WD],o.internalDialog),r.setData(o.initialData)}))},close:function(){o((function(e){hr(e,ty)}))}};return r}function aM(e){return f(e)&&-1!==JD.indexOf(e.mceAction)}function uM(e){function t(e,t,n,o){return MD.open((function(e,r,i){function l(){return L.on((function(e){Yg.reposition(e),mO.refresh(e)}))}var f,d,m,g,h,p,v,b,y,x,w,C,S,k,O,z,T,M,D,A,N,B,R,H=ao(io("data",i,r)),L=uc(),V=a.shared.header.isPositionedAtTop(),P=(d={dataValidator:i,initialData:H,internalDialog:e},m={redial:MD.redial,closeWindow:function(){L.on(Yg.hide),c.off("ResizeEditor",l),L.clear(),n(P.instanceApi)}},g=a,h=o,k=Ar("dialog-label"),O=Ar("dialog-content"),z=Mm((b={title:d.internalDialog.title,draggable:!0},y=k,x=g.shared.providers,qb.sketch({dom:Wk('<div class="tox-dialog__header"></div>'),components:[GT(b,ve.some(y),x),$T(),qT(x)],containerBehaviours:Ku([kT.config({mode:"mouse",blockerClass:"blocker",getTarget:function(e){return Ma(e,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}))),T=Mm((w={body:d.internalDialog.body},C=g,S=h,LT(w,ve.some(O),C,S))),D=ZT(M=QT(d.internalDialog.buttons)),A=Mm(KD({buttons:M},g)),N=XD((function(){return R}),{onBlock:function(e){RO.block(B,(function(t,n){return KT(e.message,n,g.shared.providers)}))},onUnblock:function(){RO.unblock(B)},onClose:function(){return m.closeWindow()}},g.shared.getSink),B=Ca({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:((p={role:"dialog"})["aria-labelledby"]=k,p["aria-describedby"]=O,p)},eventOrder:((v={})[zi()]=[WE.name(),Zu.name()],v[Ti()]=["execute-on-form"],v[Ii()]=["reflecting","execute-on-form"],v),behaviours:Ku([kg.config({mode:"cyclic",onEscape:function(e){return hr(e,ty),ve.some(!0)},useTabstopAt:function(e){return!Xx(e)&&("button"!==Ne(e)||"disabled"!==it(e,"disabled"))}}),WE.config({channel:FD,updateState:function(e,t){return ve.some(t)},initialData:d}),Tg.config({}),rm("execute-on-form",N.concat([zr(mi(),(function(e,t){kg.focusIn(e)}))])),RO.config({getRoot:function(){return ve.some(B)}}),Og.config({}),qC({})]),components:[z.asSpec(),T.asSpec(),A.asSpec()]}),R=iM({getRoot:u(B),getFooter:function(){return A.get(B)},getBody:function(){return T.get(B)},getFormWrapper:function(){var e=T.get(B);return Zf.getCurrent(e).getOr(e)}},m.redial,D),{dialog:B,instanceApi:R}),I=Ca(Yg.sketch(_(_({lazySink:a.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},V?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:Ku(E([rm("window-manager-inline-events",[Cr(Ui(),(function(e,t){hr(P.dialog,ny)}))])],(f=c,s&&V?[]:[mO.config({contextual:{lazyContext:function(){return ve.some(An(Ae.fromDom(f.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]),!0)),isExtraPart:function(e,t){return Mb(n=t,".tox-alert-dialog")||Mb(n,".tox-confirm-dialog");var n}})));return L.set(I),Yg.showWithin(I,Sa(P.dialog),{anchor:t},ve.some(bn())),s&&V||(mO.refresh(I),c.on("ResizeEditor",l)),P.instanceApi.setData(H),kg.focusIn(P.dialog),P.instanceApi}),e)}var n,o,r,i,a=e.backstage,c=e.editor,s=ev(c),d=(o=(n=e).backstage.shared,{open:function(e,t){function r(){dM.hide(c),t()}var i=Mm(Tw({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:ve.none()},"cancel",n.backstage)),a=IT(),u=PT(r,o.providers),c=Ca(WT({lazySink:function(){return o.getSink()},header:VT(a,u),body:FT(e,o.providers),footer:ve.some(UT(jT([],[i.asSpec()]))),onEscape:r,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Cr(ny,r)],eventOrder:{}}));dM.show(c);var s=i.get(c);Tg.focus(s)}}),m=(i=(r=e).backstage.shared,{open:function(e,t){function n(e){dM.hide(s),t(e)}var o=Mm(Tw({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:ve.none()},"submit",r.backstage)),a=Tw({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:ve.none()},"cancel",r.backstage),u=IT(),c=PT((function(){return n(!1)}),i.providers),s=Ca(WT({lazySink:function(){return i.getSink()},header:VT(u,c),body:FT(e,i.providers),footer:ve.some(UT(jT([],[a,o.asSpec()]))),onEscape:function(){return n(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Cr(ny,(function(){return n(!1)})),Cr(ry,(function(){return n(!0)}))],eventOrder:{}}));dM.show(s);var l=o.get(s);Tg.focus(l)}});return{open:function(e,n,o){return void 0!==n&&"toolbar"===n.inline?t(e,a.shared.anchors.inlineDialog(),o,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?t(e,a.shared.anchors.cursor(),o,n.ariaAttrs):function(e,t){return MD.open((function(e,n,o){var r,i,c,s,l,f,d,m,g,h,p,v,b,y,x=n,w=(i={redial:MD.redial,closeWindow:function(){dM.hide(w.dialog),t(w.instanceApi)}},c=a,f=XT((r={dataValidator:o,initialData:x,internalDialog:e}).internalDialog.title,c),s=c,l=LT({body:r.internalDialog.body},ve.none(),s,!1),d=dM.parts.body(l),g=ZT(m=QT(r.internalDialog.buttons)),h=oM({buttons:m},c),p=XD((function(){return y}),YT((function(){return b}),c.shared.providers,i),c.shared.getSink),v=function(){switch(r.internalDialog.size){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}}(),b=JT({header:f,body:d,footer:ve.some(h),extraClasses:v,extraBehaviours:[],extraStyles:{}},r,p,c),y=iM({getRoot:u(b),getBody:function(){return dM.getBody(b)},getFooter:function(){return dM.getFooter(b)},getFormWrapper:function(){var e=dM.getBody(b);return Zf.getCurrent(e).getOr(e)}},i.redial,g),{dialog:b,instanceApi:y});return dM.show(w.dialog),w.instanceApi.setData(x),w.instanceApi}),e)}(e,o)},openUrl:function(e,t){return n=t,MD.openUrl((function(e){var t=function(e,t,n,o){var r,i,a,u=XT(e.title,o),c=(i={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[qx({dom:{tag:"iframe",attributes:{src:e.url}},behaviours:Ku([Yb.config({}),Tg.config({})])})]}],behaviours:Ku([kg.config({mode:"acyclic",useTabstopAt:x(Xx)})])},dM.parts.body(i)),s=e.buttons.bind((function(e){return 0===e.length?ve.none():ve.some(oM({buttons:e},o))})),d=$D((function(){return w}),YT((function(){return y}),o.shared.providers,t)),m=_(_({},e.height.fold((function(){return{}}),(function(e){return{height:e+"px","max-height":e+"px"}}))),e.width.fold((function(){return{}}),(function(e){return{width:e+"px","max-width":e+"px"}}))),h=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],p=new YD(e.url,{base_uri:new YD(window.location.href)}),v=p.protocol+"://"+p.host+(p.port?":"+p.port:""),b=ac(),y=JT({header:u,body:c,footer:s,extraClasses:h,extraBehaviours:[rm("messages",[Qi((function(){var t=cc(Ae.fromDom(window),"message",(function(t){var o,r;p.isSameOrigin(new YD(t.raw.origin))&&(aM(o=t.raw.data)?function(e,t,n){switch(n.mceAction){case"insertContent":e.insertContent(n.content);break;case"setContent":e.setContent(n.content);break;case"execCommand":var o=!!g(n.ui)&&n.ui;e.execCommand(n.cmd,o,n.value);break;case"close":t.close();break;case"block":t.block(n.message);break;case"unblock":t.unblock()}}(n,w,o):!aM(r=o)&&f(r)&&Ee(r,"mceAction")&&e.onMessage(w,o))}));b.set(t)})),Zi(b.clear)]),Zu.config({channels:((r={})[qD]={onReceive:function(e,t){Ta(e.element,"iframe").each((function(e){e.dom.contentWindow.postMessage(t,v)}))}},r)})],extraStyles:m},e,d,o),w={block:function(e){if(!l(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");C((function(t){pr(t,iy,{message:e})}))},unblock:function(){C((function(e){hr(e,ay)}))},close:function(){C((function(e){hr(e,ty)}))},sendMessage:function(e){C((function(t){t.getSystem().broadcastOn([qD],e)}))}};function C(e){a.getSystem().isConnected()&&e(a)}return{dialog:a=y,instanceApi:w}}(e,{closeWindow:function(){dM.hide(t.dialog),n(t.instanceApi)}},c,a);return dM.show(t.dialog),t.instanceApi}),e);var n},alert:function(e,t){d.open(e,(function(){t()}))},close:function(e){e.close()},confirm:function(e,t){m.open(e,(function(e){t(e)}))}}}(nT=tT=tT||{})[nT.None=0]="None",nT[nT.Both=1]="Both",nT[nT.Vertical=2]="Vertical";var cM,sM=u([lo("lazySink"),yo("dragBlockClass"),Ao("getBounds",Nn),Oo("useTabstopAt",S),Oo("eventOrder",{}),Ws("modalBehaviours",[kg]),qa("onExecute"),$a("onEscape")]),lM={sketch:c},fM=u([jf({name:"draghandle",overrides:function(e,t){return{behaviours:Ku([kT.config({mode:"mouse",getTarget:function(e){return za(e,'[role="dialog"]').getOr(e)},blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])}}}),Ff({schema:[lo("dom")],name:"title"}),Ff({factory:lM,schema:[lo("dom")],name:"close"}),Ff({factory:lM,schema:[lo("dom")],name:"body"}),jf({factory:lM,schema:[lo("dom")],name:"footer"}),Uf({factory:{sketch:function(e,t){return _(_({},e),{dom:t.dom,components:t.components})}},schema:[Oo("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Oo("components",[])],name:"blocker"})]),dM=hl({name:"ModalDialog",configFields:sM(),partFields:fM(),factory:function(e,t,n,o){var r,i=uc(),a=Ar("modal-events"),u=_(_({},e.eventOrder),((r={})[Ii()]=[a].concat(e.eventOrder["alloy.system.attached"]||[]),r));return{uid:e.uid,dom:e.dom,components:t,apis:{show:function(t){i.set(t);var n=e.lazySink(t).getOrDie(),r=o.blocker(),a=n.getSystem().build(_(_({},r),{components:r.components.concat([Sa(t)]),behaviours:Ku([Tg.config({}),rm("dialog-blocker-events",[zr(mi(),(function(){kg.focusIn(t)}))])])}));Es(n,a),kg.focusIn(t)},hide:function(e){i.clear(),$e(e.element).each((function(t){e.getSystem().getByDom(t).each((function(e){Ts(e)}))}))},getBody:function(t){return il(t,e,"body")},getFooter:function(t){return il(t,e,"footer")},setIdle:function(e){RO.unblock(e)},setBusy:function(e,t){RO.block(e,t)}},eventOrder:u,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Gs(e.modalBehaviours,[Og.config({}),kg.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt}),RO.config({getRoot:i.get}),rm(a,[Qi((function(t){var n,o,r,i=t.element,a=il(t,e,"title").element,u=at(i,"id").fold((function(){var e=Ar("dialog-label");return ot(a,"id",e),e}),c);ot(i,"aria-labelledby",u),n=t.element,o=il(t,e,"body").element,r=ve.from(it(n,"id")).fold((function(){var e=Ar("dialog-describe");return ot(o,"id",e),e}),c),ot(n,"aria-describedby",r)}))])])}},apis:{show:function(e,t){e.show(t)},hide:function(e,t){e.hide(t)},getBody:function(e,t){return e.getBody(t)},getFooter:function(e,t){return e.getFooter(t)},setBusy:function(e,t,n){e.setBusy(t,n)},setIdle:function(e,t){e.setIdle(t)}}}),mM=Ko([mo("type"),mo("name")].concat(Tp)),gM=er,hM=[ir("name","name",jn((function(){return Ar("button-name")})),Zo),Co("icon"),Mo("align","end",["start","end"]),Do("primary",!1),Do("disabled",!1)],pM=E(E([],hM,!0),[mo("text")],!1),vM=E([go("type",["submit","cancel","custom"])],pM,!0),bM=co("type",{submit:vM,cancel:vM,custom:vM,menu:E([go("type",["menu"]),Co("text"),Co("tooltip"),Co("icon"),bo("items",mM)],hM,!0)}),yM=[mo("type"),mo("text"),go("level",["info","warn","error","success"]),mo("icon"),Oo("url","")],xM=Ko(yM),wM=[mo("type"),mo("text"),Do("disabled",!1),Do("primary",!1),ir("name","name",jn((function(){return Ar("button-name")})),Zo),Co("icon"),Do("borderless",!1)],CM=Ko(wM),SM=[mo("type"),mo("name"),mo("label"),Do("disabled",!1)],kM=Ko(SM),_M=er,OM=[mo("type"),mo("name")],EM=OM.concat([Co("label")]),zM=EM.concat([Oo("columns","auto")]),TM=Ko(zM),MM=Yo([mo("value"),mo("text"),mo("icon")]),DM=Ko(EM),AM=Zo,NM=Ko(EM),BM=Zo,RM=OM.concat([To("tag","textarea"),mo("scriptId"),mo("scriptUrl"),Eo("settings",void 0,or)]),HM=OM.concat([To("tag","textarea"),ho("init")]),LM=oo((function(e){return io("customeditor.old",Qn(HM),e).orThunk((function(){return io("customeditor.new",Qn(RM),e)}))})),VM=Zo,PM=Ko(EM),IM=Zn(Xo),FM=[mo("type"),mo("html"),Mo("presets","presentation",["presentation","document"])],UM=Ko(FM),jM=EM.concat([Do("sandboxed",!0)]),WM=Ko(jM),qM=Zo,GM=EM.concat([fo("currentState",Ko([lo("blob"),mo("url")]))]),$M=Ko(GM),XM=EM.concat([Co("inputMode"),Co("placeholder"),Do("maximized",!1),Do("disabled",!1)]),KM=Ko(XM),YM=Zo,JM=[mo("text"),mo("value")],QM=[mo("text"),bo("items",(cM=Re((function(){return ZM})),{extract:function(e,t){return cM().extract(e,t)},toString:function(){return cM().toString()}}))],ZM=eo([Ko(JM),Ko(QM)]),eD=EM.concat([bo("items",ZM),Do("disabled",!1)]),tD=Ko(eD),nD=Zo,oD=EM.concat([vo("items",[mo("text"),mo("value")]),zo("size",1),Do("disabled",!1)]),rD=Ko(oD),iD=Zo,aD=EM.concat([Do("constrain",!0),Do("disabled",!1)]),uD=Ko(aD),cD=Ko([mo("width"),mo("height")]),sD=[mo("type"),bo("header",Zo),bo("cells",Zn(Zo))],lD=Ko(sD),fD=EM.concat([Co("placeholder"),Do("maximized",!1),Do("disabled",!1)]),dD=Ko(fD),mD=Zo,gD=EM.concat([Mo("filetype","file",["image","media","file"]),Oo("disabled",!1)]),hD=Ko(gD),pD=Ko([mo("value"),Oo("meta",{})]),vD=Jn((function(){return no("type",{alertbanner:xM,bar:Ko((n=TT("bar"),[mo("type"),n])),button:CM,checkbox:kM,colorinput:DM,colorpicker:NM,dropzone:PM,grid:Ko((e=TT("grid"),[mo("type"),fo("columns",Qo),e])),iframe:WM,input:KM,listbox:tD,selectbox:rD,sizeinput:uD,textarea:dD,urlinput:hD,customeditor:LM,htmlpanel:UM,imagetools:$M,collection:TM,label:Ko((t=TT("label"),[mo("type"),mo("label"),t])),table:lD,panel:yD});var e,t,n})),bD=[mo("type"),Oo("classes",[]),bo("items",vD)],yD=Ko(bD),xD=[ir("name","name",jn((function(){return Ar("tab-name")})),Zo),mo("title"),bo("items",vD)],wD=[mo("type"),vo("tabs",xD)],CD=Ko(wD),SD=pM,kD=bM,_D=Ko([mo("title"),fo("body",no("type",{panel:yD,tabpanel:CD})),To("size","normal"),bo("buttons",kD),Oo("initialData",{}),Ao("onAction",i),Ao("onChange",i),Ao("onSubmit",i),Ao("onClose",i),Ao("onCancel",i),Oo("onTabChange",i)]),OD=Ko(E([go("type",["cancel","custom"])],SD,!0)),ED=Ko([mo("title"),mo("url"),wo("height"),wo("width"),ko("buttons",OD),Ao("onAction",i),Ao("onCancel",i),Ao("onClose",i),Ao("onMessage",i)]),zD=function(e){return f(e)?[e].concat(j(re(e),zD)):d(e)?j(e,zD):[]},TD={checkbox:_M,colorinput:AM,colorpicker:BM,dropzone:IM,input:YM,iframe:qM,sizeinput:cD,selectbox:iD,listbox:nD,size:cD,textarea:mD,urlinput:pD,customeditor:VM,collection:MM,togglemenuitem:gM},MD={open:function(e,t){var n=DT(t);return e(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(e,t){return e(ao(io("dialog",ED,t)))},redial:DT},DD=gl({name:"TabButton",configFields:[Oo("uid",void 0),lo("value"),ir("dom","dom",qn((function(){return{attributes:{role:"tab",id:Ar("aria"),"aria-selected":"false"}}})),Jo()),yo("action"),Oo("domModification",{}),Ws("tabButtonBehaviours",[Tg,kg,xf]),lo("view")],factory:function(e,t){return{uid:e.uid,dom:e.dom,components:e.components,events:mm(e.action),behaviours:Gs(e.tabButtonBehaviours,[Tg.config({}),kg.config({mode:"execution",useSpace:!0,useEnter:!0}),xf.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification}}}),AD=u([lo("tabs"),lo("dom"),Oo("clickToDismiss",!1),Ws("tabbarBehaviours",[ud,kg]),Ua(["tabClass","selectedClass"])]),ND=u([Wf({factory:DD,name:"tabs",unit:"tab",overrides:function(e){return{action:function(t){var n=t.getSystem().getByUid(e.uid).getOrDie(),o=ud.isHighlighted(n,t);(o&&e.clickToDismiss?function(e,t){ud.dehighlight(e,t),pr(e,$i(),{tabbar:e,button:t})}:o?i:function(e,t){ud.highlight(e,t),pr(e,Gi(),{tabbar:e,button:t})})(n,t)},domModification:{classes:[e.markers.tabClass]}}}})]),BD=hl({name:"Tabbar",configFields:AD(),partFields:ND(),factory:function(e,t,n,o){return{uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Gs(e.tabbarBehaviours,[ud.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:function(e,t){ot(t.element,"aria-selected","true")},onDehighlight:function(e,t){ot(t.element,"aria-selected","false")}}),kg.config({mode:"flow",getInitial:function(e){return ud.getHighlighted(e).map((function(e){return e.element}))},selector:"."+e.markers.tabClass,executeOnMove:!0})])}}}),RD=gl({name:"Tabview",configFields:[Ws("tabviewBehaviours",[Og])],factory:function(e,t){return{uid:e.uid,dom:e.dom,behaviours:Gs(e.tabviewBehaviours,[Og.config({})]),domModification:{attributes:{role:"tabpanel"}}}}}),HD=u([Oo("selectFirst",!0),Wa("onChangeTab"),Wa("onDismissTab"),Oo("tabs",[]),Ws("tabSectionBehaviours",[])]),LD=u([Ff({factory:BD,schema:[lo("dom"),po("markers",[lo("tabClass"),lo("selectedClass")])],name:"tabbar",defaults:function(e){return{tabs:e.tabs}}}),Ff({factory:RD,name:"tabview"})]),VD=hl({name:"TabSection",configFields:HD(),partFields:LD(),factory:function(e,t,n,o){function r(t,n){rl(t,e,"tabbar").each((function(e){n(e).each(vr)}))}return{uid:e.uid,dom:e.dom,components:t,behaviours:qs(e.tabSectionBehaviours),events:Ji(U([e.selectFirst?[Qi((function(e,t){r(e,ud.getFirst)}))]:[],[Cr(Gi(),(function(t,n){var o=n.event.button,r=xf.getValue(o);rl(o,e,"tabview").each((function(t){I(e.tabs,(function(e){return e.value===r})).each((function(n){var r=n.view();at(o.element,"id").each((function(e){ot(t.element,"aria-labelledby",e)})),Og.set(t,r),e.onChangeTab(t,o,r)}))}))})),Cr($i(),(function(t,n){var o=n.event.button;e.onDismissTab(t,o)}))]])),apis:{getViewItems:function(t){return rl(t,e,"tabview").map((function(e){return Og.contents(e)})).getOr([])},showTab:function(e,t){r(e,(function(e){return I(ud.getCandidates(e),(function(e){return xf.getValue(e)===t})).filter((function(t){return!ud.isHighlighted(e,t)}))}))}}}},apis:{getViewItems:function(e,t){return e.getViewItems(t)},showTab:function(e,t,n){e.showTab(t,n)}}}),PD="send-data-to-section",ID="send-data-to-view",FD=Ar("update-dialog"),UD=Ar("update-title"),jD=Ar("update-body"),WD=Ar("update-footer"),qD=Ar("body-send-message"),GD=jv.deviceType.isTouch(),$D=function(e,t){function n(t,n){return Cr(t,(function(t,o){var r,i;r=t,i=function(r,i){n(e(),r,o.event,t)},WE.getState(r).get().each((function(e){i(e)}))}))}return E(E([],eM(n,t),!0),[n(oy,(function(e,t,n){t.onAction(e,{name:n.name})}))],!1)},XD=function(e,t,n){function o(t,n){return Cr(t,(function(t,o){var r,i;r=t,i=function(r,i){n(e(),r,o.event,t)},WE.getState(r).get().each((function(e){i(e.internalDialog)}))}))}return E(E([],eM(o,t),!0),[o(ry,(function(e,t){return t.onSubmit(e)})),o(ey,(function(e,t,n){t.onChange(e,{name:n.name})})),o(oy,(function(e,t,o,r){function i(){return kg.focusIn(r)}function a(e){return ut(e,"disabled")||at(e,"aria-disabled").exists((function(e){return"true"===e}))}var u=gn(r.element),c=yu(u);t.onAction(e,{name:o.name,value:o.value}),yu(u).fold(i,(function(e){a(e)||c.exists((function(t){return Ue(e,t)&&a(t)}))?i():n().toOptional().filter((function(t){return!Ue(t.element,e)})).each(i)}))})),o(uy,(function(e,t,n){t.onTabChange(e,{newTabName:n.name,oldTabName:n.oldName})})),Zi((function(t){var n=e();xf.setValue(t,n.getData())}))],!1)},KD=nM,YD=tinymce.util.Tools.resolve("tinymce.util.URI"),JD=["insertContent","setContent","execCommand","close","block","unblock"];k.add("silver",(function(e){var t=zT(e),n=t.uiMothership,o=t.backstage,r=t.renderUI,i=t.getUi;return Fb(e,o.shared),{renderUI:r,getWindowManagerImpl:u(uM({editor:e,backstage:o})),getNotificationManagerImpl:function(){return t=e,r=n,i=o.shared,{open:function(e,n){function o(){n(),Yg.hide(c)}var a=!e.closeButton&&e.timeout&&(0<e.timeout||e.timeout<0),u=Ca(ah.sketch({text:e.text,level:we(["success","error","warning","warn","info"],e.type)?e.type:void 0,progress:!0===e.progressBar,icon:ve.from(e.icon),closeButton:!a,onAction:o,iconProvider:i.providers.icons,translationProvider:i.providers.translate})),c=Ca(Yg.sketch(_({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:i.getSink,fireDismissalEventInstead:{}},i.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));function s(){var e=An(Ae.fromDom(t.getContentAreaContainer())),n=Nn(),o=Vu(n.x,e.x,e.right),r=Vu(n.y,e.y,e.bottom),i=Math.max(e.right,n.right),a=Math.max(e.bottom,n.bottom);return ve.some(Dn(o,r,i-o,a-r))}return r.add(c),0<e.timeout&&eh.setTimeout((function(){o()}),e.timeout),{close:o,moveTo:function(e,t){Yg.showAt(c,Sa(u),{anchor:{type:"makeshift",x:e,y:t}})},moveRel:function(e,t){var n,o,r,a=Sa(u),l={maxHeightFunction:Ec()};"banner"!==t&&p(e)?(n=function(){switch(t){case"bc-bc":return Zg;case"tc-tc":return Qg;case"tc-bc":return Wu;default:return qu}}(),o={type:"node",root:bn(),node:ve.some(Ae.fromDom(e)),overrides:l,layouts:{onRtl:function(){return[n]},onLtr:function(){return[n]}}},Yg.showWithinBounds(c,a,{anchor:o},s)):(r=_(_({},i.anchors.banner()),{overrides:l}),Yg.showWithinBounds(c,a,{anchor:r},s))},text:function(e){ah.updateText(u,e)},settings:e,getEl:function(){return u.element.dom},progressBar:{value:function(e){ah.updateProgress(u,e)}}}},close:function(e){e.close()},reposition:function(e){0<e.length&&Ce(e,(function(t,n){0===n?t.moveRel(null,"banner"):t.moveRel(e[n-1].getEl(),"bc-tc")}))},getArgs:function(e){return e.settings}};var t,r,i},ui:i()}}))}(),tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-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 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-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 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 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 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 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 01-.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 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></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 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 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 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 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 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.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 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.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 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 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 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-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>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></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 01-.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 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-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 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.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 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.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 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.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-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-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 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-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 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" 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 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-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 010-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 010-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 010-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 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.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 010-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 010-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 010-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 010-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 010-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 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.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 01-.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 01-.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 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.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 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.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 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 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-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-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 01-1-1v-2H7V9H5a1 1 0 110-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-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.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-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-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 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.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-.4zm8.5-7.1h-11v2h11v-2z"/></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 01-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 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 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 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-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 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.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 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-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-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></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 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 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 0119 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 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-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 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.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 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-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 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></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 002.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 002-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 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-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 00-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>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-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 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.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 00-.8.8.8.8 0 01-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 012.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 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-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 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 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 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 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 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-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 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-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 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.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 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 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>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></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 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.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 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 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-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.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 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 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-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-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.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.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.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-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 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-.2.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 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.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 00-.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-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></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-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.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.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 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.2zm-4.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-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-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></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 01-.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 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-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 110-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 01-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-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" 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 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.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 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-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 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 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 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.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 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-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 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-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 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 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 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.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 012.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 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-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 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.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 11-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 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-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 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-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 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 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 01-.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 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 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 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.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 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-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 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-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 01-.2-.6V8H5a1 1 0 110-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 01-.2-.6V13H5a1 1 0 010-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 01-.2-.6V18H5a1 1 0 010-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 010-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 00-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 01-.7-.3 1 1 0 01-.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 01-.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 017 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 010 2H5a1 1 0 010-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 00-.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 01-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-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-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 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-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 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.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 00.5.6h1.6a.5.5 0 00.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 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-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 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-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 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 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 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.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 010-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 01-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 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 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 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.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 01-.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 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-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 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-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 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.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>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></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 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}});
b IDATxytVսϓ22 A@IR:hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-E