!function(){"use strict";conste=e=>parseInt(e,10),t=(e,t)=>{constn=e-t;return0===n?0:n>0?1:-1},n=(e,t,n)=>({major:e,minor:t,patch:n}),o=t=>{consto=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(t);returno?n(e(o[1]),e(o[2]),e(o[3])):n(0,0,0)},r=e=>t=>typeoft===e,s=("string",e=>"string"===(e=>{constt=typeofe;returnnull===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(s=o.constructor)||void0===s?void0:s.name)===r.name)?"string":t;varn,o,r,s})(e));consti=r("boolean"),a=r("function"),c=r("number"),l=()=>{},m=(e,t)=>e===t,u=()=>!1;classd{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewd(!0,e)}staticnone(){returnd.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?d.some(e(this.value)):d.none()}bind(e){returnthis.tag?e(this.value):d.none()}exists(e){returnthis.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:d.none()}getOr(e){returnthis.tag?this.value:e}or(e){returnthis.tag?this:e}getOrThunk(e){returnthis.tag?this.value:e()}orThunk(e){returnthis.tag?this:e()}getOrDie(e){if(this.tag)returnthis.value;thrownewError(null!=e?e:"Called getOrDie on None")}staticfrom(e){returnnull==e?d.none():d.some(e)}getOrNull(){returnthis.tag?this.value:null}getOrUndefined(){returnthis.value}each(e){this.tag&&e(this.value)}toArray(){returnthis.tag?[this.value]:[]}toString(){returnthis.tag?`some(${this.value})`:"none()"}}d.singletonNone=newd(!1);consth=(e,t)=>{constn=e.length,o=newArray(n);for(letr=0;r<n;r++){constn=e[r];o[r]=t(n,r)}returno},p=(e,t)=>{for(letn=0,o=e.length;n<o;n++)t(e[n],n)},g=e=>t=>t.options.get(e),v=g("mentions_menu_hover"),f=g("mentions_fetch"),y=g("mentions_menu_complete"),_=g("mentions_menu_cancel"),b=g("mentions_select"),x=g("mentions_selector"),w=g("mentions_css_url"),T=g("mentions_item_type"),E=g("mentions_min_chars"),O=Object.hasOwnProperty,S=(e,t)=>A(e,t)?d.from(e[t]):d.none(),A=(e,t)=>O.call(e,t);"undefined"!=typeofwindow?window:Function("return this;")();constC=(e,t,n)=>{((e,t,n)=>{if(!(s(n)||i(n)||c(n)))throwconsole.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),newError("Attribute value was not simple");e.setAttribute(t,n+"")})(e.dom,t,n)},M=(e,t)=>{e.dom.removeAttribute(t)},N=(e,t)=>{(e=>void0!==e.dom.classList)(e)?e.dom.classList.add(t):((e,t)=>{((e,t,n)=>{consto=((e,t)=>{constn=((e,t)=>{constn=e.dom.getAttribute(t);returnnull===n?void0:n})(e,t);returnvoid0===n||""===n?[]:n.split(" ")})(e,t),r=o.concat([n]);C(e,t,r.join(" "))})(e,"class",t)})(e,t)},L=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},R=(e,t)=>{constn=(t||document).createElement(e);returnL(n)},P=L,j=(e,t)=>{constn=e.dom;if(1!==n.nodeType)return!1;{conste=n;if(void0!==e.matches)returne.matches(t);if(void0!==e.msMatchesSelector)returne.msMatchesSelector(t);if(void0!==e.webkitMatchesSelector)returne.webkitMatchesSelector(t);if(void0!==e.mozMatchesSelector)returne.mozMatchesSelector(t);thrownewError("Browser lacks native selectors")}},D=(e,t,n)=>((e,n,o)=>{letr=e.dom;consts=a(o)?o:u;for(;r.parentNode;){r=r.parentNode;conste=P(r);if(j(e,t))returnd.some(e);if(s(e))break}returnd.none()})(e,0,n),k=(e,t,n)=>((e,t,n,o,r)=>e(n,o)?d.some(n):a(r)&&r(n)?d.none():t(n,o,r))(((e,t)=>j(e,t)),D,e,t,n),V=(e,t)=>e.dom.is(t,z(e)),z=x,B="data-mce-mentions-id",H=e=>{console.error(e)},I=e=>e&&"string"==typeofe.id&&"string"==typeofe.name,W=e=>{I(e)||H("mentions_fetch didn't produce a valid list of users.")},q=(e,t)=>{e.dom.appendChild(t.dom)},F=(e,t)=>{e.dom.textContent=t},K=e=>t=>{varn;tinstanceofwindow.HTMLElement?e(t):(n=t,"profile"===n.type?d.some((e=>{vart;constn=R("div");N(n,"tox"),N(n,"tox-mentions__card"),d.from(e.image).each((e=>{constt=R("img");C(t,"src",e),N(t,"tox-mentions__avatar"),q(n,t)}));consto=R("div");N(o,"tox-mentions__container"),q(n,o);constr=R("div");returnN(r,"tox-mentions__username"),F(r,nul