opentiny 6.9.20 → 6.9.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/models/dom/model.min.js +1 -1
  2. package/package.json +1 -1
  3. package/plugins/accordion/plugin.min.js +1 -1
  4. package/plugins/advlist/plugin.min.js +1 -1
  5. package/plugins/anchor/plugin.min.js +1 -1
  6. package/plugins/autolink/plugin.min.js +1 -1
  7. package/plugins/autoresize/plugin.min.js +1 -1
  8. package/plugins/autosave/plugin.min.js +1 -1
  9. package/plugins/charmap/plugin.min.js +1 -1
  10. package/plugins/code/plugin.min.js +1 -1
  11. package/plugins/codesample/plugin.min.js +1 -1
  12. package/plugins/directionality/plugin.min.js +1 -1
  13. package/plugins/emoticons/plugin.min.js +1 -1
  14. package/plugins/fullscreen/plugin.min.js +1 -1
  15. package/plugins/help/plugin.min.js +1 -1
  16. package/plugins/image/plugin.min.js +1 -1
  17. package/plugins/importcss/plugin.min.js +1 -1
  18. package/plugins/insertdatetime/plugin.min.js +1 -1
  19. package/plugins/link/plugin.min.js +1 -1
  20. package/plugins/lists/plugin.min.js +1 -1
  21. package/plugins/media/plugin.min.js +1 -1
  22. package/plugins/nonbreaking/plugin.min.js +1 -1
  23. package/plugins/pagebreak/plugin.min.js +1 -1
  24. package/plugins/preview/plugin.min.js +1 -1
  25. package/plugins/quickbars/plugin.min.js +1 -1
  26. package/plugins/save/plugin.min.js +1 -1
  27. package/plugins/searchreplace/plugin.min.js +1 -1
  28. package/plugins/table/plugin.min.js +1 -1
  29. package/plugins/visualblocks/plugin.min.js +1 -1
  30. package/plugins/visualchars/plugin.min.js +1 -1
  31. package/plugins/wordcount/plugin.min.js +1 -1
  32. package/themes/silver/theme.min.js +1 -1
  33. package/tinymce.js +7 -5
  34. package/tinymce.min.js +1 -1
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * TinyMCE version 7.0.0 (TBD)
3
3
  */
4
- !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");let t=0;const o=e=>t=>typeof t===e,n=e=>"string"===(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(o=n=e,(r=String).prototype.isPrototypeOf(o)||(null===(s=n.constructor)||void 0===s?void 0:s.name)===r.name)?"string":t;var o,n,r,s})(e),r=o("boolean"),s=e=>null==e,a=e=>!s(e),i=o("function"),d=o("number"),l=e=>()=>e,c=(e,t)=>e===t,m=l(!1);class u{constructor(e,t){this.tag=e,this.value=t}static some(e){return new u(!0,e)}static none(){return u.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?u.some(e(this.value)):u.none()}bind(e){return this.tag?e(this.value):u.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:u.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return a(e)?u.some(e):u.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}u.singletonNone=new u(!1);const g=Array.prototype.indexOf,p=(e,t)=>{return o=e,n=t,g.call(o,n)>-1;var o,n},h=(e,t)=>{const o=e.length,n=new Array(o);for(let r=0;r<o;r++){const o=e[r];n[r]=t(o,r)}return n},f=(e,t)=>{for(let o=0,n=e.length;o<n;o++)t(e[o],o)},y=Object.keys;"undefined"!=typeof window?window:Function("return this;")();const v=e=>e.dom.nodeName.toLowerCase(),w=e=>e.dom.nodeType,b=e=>t=>w(t)===e,N=b(1),T=b(3),A=b(9),C=b(11),S=(e,t,o)=>{if(!(n(o)||r(o)||d(o)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",o,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,o+"")},x=(e,t)=>{const o=e.dom.getAttribute(t);return null===o?void 0:o},E=(e,t)=>u.from(x(e,t)),D=(e,t)=>{e.dom.removeAttribute(t)},M=e=>{if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},P={fromHtml:(e,t)=>{const o=(t||document).createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1){const t="HTML does not have a single root node";throw console.error(t,e),new Error(t)}return M(o.childNodes[0])},fromTag:(e,t)=>{const o=(t||document).createElement(e);return M(o)},fromText:(e,t)=>{const o=(t||document).createTextNode(e);return M(o)},fromDom:M,fromPoint:(e,t,o)=>u.from(e.dom.elementFromPoint(t,o)).map(M)},O=(e,t)=>{const o=e.dom;if(1!==o.nodeType)return!1;{const e=o;if(void 0!==e.matches)return e.matches(t);if(void 0!==e.msMatchesSelector)return e.msMatchesSelector(t);if(void 0!==e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(void 0!==e.mozMatchesSelector)return e.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}},k=e=>1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount,B=O,R=(L=/^\s+|\s+$/g,e=>e.replace(L,""));var L;const $=e=>void 0!==e.style&&i(e.style.getPropertyValue),I=e=>A(e)?e:P.fromDom(e.dom.ownerDocument),V=e=>u.from(e.dom.parentNode).map(P.fromDom),j=e=>u.from(e.dom.nextSibling).map(P.fromDom),q=e=>h(e.dom.childNodes,P.fromDom),F=i(Element.prototype.attachShadow)&&i(Node.prototype.getRootNode)?e=>P.fromDom(e.dom.getRootNode()):I,H=e=>P.fromDom(e.dom.host),z=e=>{const t=T(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;const o=t.ownerDocument;return(e=>{const t=F(e);return C(o=t)&&a(o.dom.host)?u.some(t):u.none();var o})(P.fromDom(t)).fold((()=>o.body.contains(t)),(n=z,r=H,e=>n(r(e))));var n,r},K=(e,t)=>$(e)?e.style.getPropertyValue(t):"",U=(e,t)=>{V(e).each((o=>{o.dom.insertBefore(t.dom,e.dom)}))},Y=(e,t)=>{j(e).fold((()=>{V(e).each((e=>{_(e,t)}))}),(e=>{U(e,t)}))},_=(e,t)=>{e.dom.appendChild(t.dom)},G=(e,t)=>{f(t,((o,n)=>{const r=0===n?e:t[n-1];Y(r,o)}))},J=(e,t)=>{let o=[];return f(q(e),(e=>{t(e)&&(o=o.concat([e])),o=o.concat(J(e,t))})),o},Q=(e,t,o)=>{let n=e.dom;const r=i(o)?o:m;for(;n.parentNode;){n=n.parentNode;const e=P.fromDom(n);if(t(e))return u.some(e);if(r(e))break}return u.none()},W=e=>{const t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},X=(e,t,o)=>Q(e,(e=>O(e,t)),o),Z=(e,t)=>((e,t)=>{const o=void 0===t?document:t.dom;return k(o)?u.none():u.from(o.querySelector(e)).map(P.fromDom)})(t,e),ee=(e=>{const t=t=>e(t)?u.from(t.dom.nodeValue):u.none();return{get:o=>{if(!e(o))throw new Error("Can only get text value of a text node");return t(o).getOr("")},getOption:t,set:(t,o)=>{if(!e(t))throw new Error("Can only set raw text value of a text node");t.dom.nodeValue=o}}})(T);var te=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];const oe=(e,t)=>({element:e,offset:t}),ne=(e,t,o)=>e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?o(t).bind((t=>ne(e,t,o).orThunk((()=>u.some(t))))):u.none(),re=(e,t)=>e.property().isText(t)?e.property().getText(t).length:e.property().children(t).length,se=(e,t)=>{const o=ne(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(o))return oe(o,re(e,o));const n=e.property().children(o);return n.length>0?se(e,n[n.length-1]):oe(o,re(e,o))},ae=se,ie={up:l({selector:X,closest:(e,t,o)=>((e,t,o,n,r)=>((e,t)=>O(e,t))(o,n)?u.some(o):i(r)&&r(o)?u.none():t(o,n,r))(0,X,e,t,o),predicate:Q,all:(e,t)=>{const o=i(t)?t:m;let n=e.dom;const r=[];for(;null!==n.parentNode&&void 0!==n.parentNode;){const e=n.parentNode,t=P.fromDom(e);if(r.push(t),!0===o(t))break;n=e}return r}}),down:l({selector:(e,t)=>((e,t)=>{const o=void 0===t?document:t.dom;return k(o)?[]:h(o.querySelectorAll(e),P.fromDom)})(t,e),predicate:J}),styles:l({get:(e,t)=>{const o=e.dom,n=window.getComputedStyle(o).getPropertyValue(t);return""!==n||z(e)?n:K(o,t)},getRaw:(e,t)=>{const o=e.dom,n=K(o,t);return u.from(n).filter((e=>e.length>0))},set:(e,t,o)=>{((e,t,o)=>{if(!n(o))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",o,":: Element ",e),new Error("CSS value must be a string: "+o);$(e)&&e.style.setProperty(t,o)})(e.dom,t,o)},remove:(e,t)=>{((e,t)=>{$(e)&&e.style.removeProperty(t)})(e.dom,t),((e,t,o=c)=>e.exists((e=>o(e,t))))(E(e,"style").map(R),"")&&D(e,"style")}}),attrs:l({get:x,set:(e,t,o)=>{S(e.dom,t,o)},remove:D,copyTo:(e,t)=>{const o=(n=e.dom.attributes,r=(e,t)=>(e[t.name]=t.value,e),s={},f(n,((e,t)=>{s=r(s,e)})),s);var n,r,s;((e,t)=>{const o=e.dom;((e,t)=>{const o=y(e);for(let n=0,r=o.length;n<r;n++){const r=o[n];t(e[r],r)}})(t,((e,t)=>{S(o,t,e)}))})(t,o)}}),insert:l({before:U,after:Y,afterAll:G,append:_,appendAll:(e,t)=>{f(t,(t=>{_(e,t)}))},prepend:(e,t)=>{(e=>(e=>{const t=e.dom.childNodes;return u.from(t[0]).map(P.fromDom)})(e))(e).fold((()=>{_(e,t)}),(o=>{e.dom.insertBefore(t.dom,o.dom)}))},wrap:(e,t)=>{U(e,t),_(t,e)}}),remove:l({unwrap:e=>{const t=q(e);t.length>0&&G(e,t),W(e)},remove:W}),create:l({nu:P.fromTag,clone:e=>P.fromDom(e.dom.cloneNode(!1)),text:P.fromText}),query:l({comparePosition:(e,t)=>e.dom.compareDocumentPosition(t.dom),prevSibling:e=>u.from(e.dom.previousSibling).map(P.fromDom),nextSibling:j}),property:l({children:q,name:v,parent:V,document:e=>I(e).dom,isText:T,isComment:e=>8===w(e)||"#comment"===v(e),isElement:N,isSpecial:e=>{const t=v(e);return p(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},getLanguage:e=>N(e)?E(e,"lang"):u.none(),getText:e=>ee.get(e),setText:(e,t)=>ee.set(e,t),isBoundary:e=>!!N(e)&&("body"===v(e)||p(te,v(e))),isEmptyTag:e=>!!N(e)&&p(["br","img","hr","input"],v(e)),isNonEditable:e=>N(e)&&"false"===x(e,"contenteditable")}),eq:(e,t)=>e.dom===t.dom,is:B},de="details",le="mce-accordion",ce="mce-accordion-summary",me="mce-accordion-body",ue="div";var ge=tinymce.util.Tools.resolve("tinymce.util.Tools");const pe=e=>"SUMMARY"===(null==e?void 0:e.nodeName),he=e=>"DETAILS"===(null==e?void 0:e.nodeName),fe=e=>e.hasAttribute("open"),ye=e=>{const t=e.selection.getNode();return pe(t)||Boolean(e.dom.getParent(t,pe))},ve=e=>!ye(e)&&e.dom.isEditable(e.selection.getNode()),we=e=>u.from(e.dom.getParent(e.selection.getNode(),he)),be=e=>(e.innerHTML='<br data-mce-bogus="1" />',e),Ne=e=>be(e.dom.create("p")),Te=e=>t=>{((e,t)=>{if(pe(null==t?void 0:t.lastChild)){const o=Ne(e);t.appendChild(o),e.selection.setCursorLocation(o,0)}})(e,t),((e,t)=>{if(!pe(null==t?void 0:t.firstChild)){const o=(e=>be(e.dom.create("summary")))(e);t.prepend(o),e.selection.setCursorLocation(o,0)}})(e,t)},Ae=(e,t)=>{const o=null!=t?t:!fe(e);return o?e.setAttribute("open","open"):e.removeAttribute("open"),o},Ce=e=>{e.addCommand("InsertAccordion",(()=>(e=>{if(!ve(e))return;const o=P.fromDom(e.getBody()),n=(()=>{const e=(new Date).getTime(),o=Math.floor(1e9*Math.random());return t++,"acc_"+o+t+String(e)})(),r=e.dom.encode(e.selection.getRng().toString()||e.translate("Accordion summary...")),s=e.dom.encode(e.translate("Accordion body...")),a=`<summary class="${ce}">${r}</summary>`,i=`<${ue} class="${me}"><p>${s}</p></${ue}>`;e.undoManager.transact((()=>{e.insertContent([`<details data-mce-id="${n}" class="${le}" open="open">`,a,i,"</details>"].join("")),Z(o,`[data-mce-id="${n}"]`).each((t=>{D(t,"data-mce-id"),Z(t,"summary").each((t=>{const o=e.dom.createRng(),n=ae(ie,t);o.setStart(n.element.dom,n.offset),o.setEnd(n.element.dom,n.offset),e.selection.setRng(o)}))}))}))})(e))),e.addCommand("ToggleAccordion",((t,o)=>((e,t)=>{we(e).each((o=>{((e,t,o)=>{e.dispatch("ToggledAccordion",{element:t,state:o})})(e,o,Ae(o,t))}))})(e,o))),e.addCommand("ToggleAllAccordions",((t,o)=>((e,t)=>{const o=Array.from(e.getBody().querySelectorAll("details"));0!==o.length&&(f(o,(e=>Ae(e,null!=t?t:!fe(e)))),((e,t,o)=>{e.dispatch("ToggledAllAccordions",{elements:t,state:o})})(e,o,t))})(e,o))),e.addCommand("RemoveAccordion",(()=>(e=>{we(e).each((t=>{const{nextSibling:o}=t;o?(e.selection.select(o,!0),e.selection.collapse(!0)):((e,t)=>{const o=Ne(e);t.insertAdjacentElement("afterend",o),e.selection.setCursorLocation(o,0)})(e,t),t.remove()}))})(e)))};var Se=tinymce.util.Tools.resolve("tinymce.html.Node");const xe=e=>{var t,o;return null!==(o=null===(t=e.attr("class"))||void 0===t?void 0:t.split(" "))&&void 0!==o?o:[]},Ee=(e,t)=>{const o=new Set([...xe(e),...t]),n=Array.from(o);n.length>0&&e.attr("class",n.join(" "))},De=(e,t)=>{const o=(e=>{const o=[];for(let r=0,s=e.length;r<s;r++){const s=e[r];n=s,!t.has(n)&&o.push(s)}var n;return o})(xe(e));e.attr("class",o.length>0?o.join(" "):null)},Me=e=>e.name===de&&p(xe(e),le),Pe=e=>{const t=e.children();let o,n;const r=[];for(let e=0;e<t.length;e++){const i=t[e];"summary"===i.name&&s(o)?o=i:(a=i).name===ue&&p(xe(a),me)&&s(n)?n=i:r.push(i)}var a;return{summaryNode:o,wrapperNode:n,otherNodes:r}},Oe=e=>{const t=new Se("br",1);t.attr("data-mce-bogus","1"),e.empty(),e.append(t)};var ke=tinymce.util.Tools.resolve("tinymce.util.VK");const Be=e=>{(e=>{e.on("keydown",(t=>{(!t.shiftKey&&t.keyCode===ke.ENTER&&ye(e)||(e=>{const t=e.selection.getRng();return he(t.startContainer)&&t.collapsed&&0===t.startOffset})(e))&&(t.preventDefault(),e.execCommand("ToggleAccordion"))}))})(e),e.on("ExecCommand",(t=>{const o=t.command.toLowerCase();"delete"!==o&&"forwarddelete"!==o||!(e=>we(e).isSome())(e)||(e=>{ge.each(ge.grep(e.dom.select("details",e.getBody())),Te(e))})(e)}))};var Re=tinymce.util.Tools.resolve("tinymce.Env");const Le=e=>t=>{const o=()=>t.setEnabled(ve(e));return e.on("NodeChange",o),()=>e.off("NodeChange",o)};e.add("accordion",(e=>{(e=>{const t=()=>e.execCommand("InsertAccordion");e.ui.registry.addButton("accordion",{icon:"accordion",tooltip:"Insert accordion",onSetup:Le(e),onAction:t}),e.ui.registry.addMenuItem("accordion",{icon:"accordion",text:"Accordion",onSetup:Le(e),onAction:t}),e.ui.registry.addToggleButton("accordiontoggle",{icon:"accordion-toggle",tooltip:"Toggle accordion",onAction:()=>e.execCommand("ToggleAccordion")}),e.ui.registry.addToggleButton("accordionremove",{icon:"remove",tooltip:"Delete accordion",onAction:()=>e.execCommand("RemoveAccordion")}),e.ui.registry.addContextToolbar("accordion",{predicate:t=>e.dom.is(t,"details")&&e.getBody().contains(t)&&e.dom.isEditable(t.parentNode),items:"accordiontoggle accordionremove",scope:"node",position:"node"})})(e),Ce(e),Be(e),(e=>{e.on("PreInit",(()=>{const{serializer:t,parser:o}=e;o.addNodeFilter(de,(e=>{for(let t=0;t<e.length;t++){const o=e[t];if(Me(o)){const e=o,{summaryNode:t,wrapperNode:n,otherNodes:r}=Pe(e),i=a(t),d=i?t:new Se("summary",1);s(d.firstChild)&&Oe(d),Ee(d,[ce]),i||(a(e.firstChild)?e.insert(d,e.firstChild,!0):e.append(d));const l=a(n),c=l?n:new Se(ue,1);if(c.attr("data-mce-bogus","1"),Ee(c,[me]),r.length>0)for(let e=0;e<r.length;e++){const t=r[e];c.append(t)}if(s(c.firstChild)){const e=new Se("p",1);Oe(e),c.append(e)}l||e.append(c)}}})),t.addNodeFilter(de,(e=>{const t=new Set([ce]);for(let o=0;o<e.length;o++){const n=e[o];if(Me(n)){const e=n,{summaryNode:o,wrapperNode:r}=Pe(e);a(o)&&De(o,t),a(r)&&r.unwrap()}}}))}))})(e),(e=>{Re.browser.isSafari()&&e.on("click",(t=>{if(pe(t.target)){const o=t.target,n=e.selection.getRng();n.collapsed&&n.startContainer===o.parentNode&&0===n.startOffset&&e.selection.setCursorLocation(o,0)}}))})(e)}))}();
4
+ !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");let t=0;const o=e=>t=>typeof t===e,n=e=>"string"===(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(o=n=e,(r=String).prototype.isPrototypeOf(o)||(null===(s=n.constructor)||void 0===s?void 0:s.name)===r.name)?"string":t;var o,n,r,s})(e),r=o("boolean"),s=e=>null==e,i=e=>!s(e),a=o("function"),d=o("number"),l=e=>()=>e,c=(e,t)=>e===t,m=l(!1);class u{constructor(e,t){this.tag=e,this.value=t}static some(e){return new u(!0,e)}static none(){return u.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?u.some(e(this.value)):u.none()}bind(e){return this.tag?e(this.value):u.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:u.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return i(e)?u.some(e):u.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}u.singletonNone=new u(!1);const g=Array.prototype.indexOf,p=(e,t)=>{return o=e,n=t,g.call(o,n)>-1;var o,n},h=(e,t)=>{const o=e.length,n=new Array(o);for(let r=0;r<o;r++){const o=e[r];n[r]=t(o,r)}return n},f=(e,t)=>{for(let o=0,n=e.length;o<n;o++)t(e[o],o)},y=Object.keys;"undefined"!=typeof window?window:Function("return this;")();const v=e=>e.dom.nodeName.toLowerCase(),w=e=>e.dom.nodeType,b=e=>t=>w(t)===e,N=b(1),T=b(3),A=b(9),C=b(11),S=(e,t,o)=>{if(!(n(o)||r(o)||d(o)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",o,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,o+"")},x=(e,t)=>{const o=e.dom.getAttribute(t);return null===o?void 0:o},E=(e,t)=>u.from(x(e,t)),D=(e,t)=>{e.dom.removeAttribute(t)},M=e=>{if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},P={fromHtml:(e,t)=>{const o=(t||document).createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1){const t="HTML does not have a single root node";throw console.error(t,e),new Error(t)}return M(o.childNodes[0])},fromTag:(e,t)=>{const o=(t||document).createElement(e);return M(o)},fromText:(e,t)=>{const o=(t||document).createTextNode(e);return M(o)},fromDom:M,fromPoint:(e,t,o)=>u.from(e.dom.elementFromPoint(t,o)).map(M)},O=(e,t)=>{const o=e.dom;if(1!==o.nodeType)return!1;{const e=o;if(void 0!==e.matches)return e.matches(t);if(void 0!==e.msMatchesSelector)return e.msMatchesSelector(t);if(void 0!==e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(void 0!==e.mozMatchesSelector)return e.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}},k=e=>1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount,B=O,R=(L=/^\s+|\s+$/g,e=>e.replace(L,""));var L;const $=e=>void 0!==e.style&&a(e.style.getPropertyValue),I=e=>A(e)?e:P.fromDom(e.dom.ownerDocument),V=e=>u.from(e.dom.parentNode).map(P.fromDom),j=e=>u.from(e.dom.nextSibling).map(P.fromDom),q=e=>h(e.dom.childNodes,P.fromDom),F=a(Element.prototype.attachShadow)&&a(Node.prototype.getRootNode)?e=>P.fromDom(e.dom.getRootNode()):I,H=e=>P.fromDom(e.dom.host),z=e=>{const t=T(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;const o=t.ownerDocument;return(e=>{const t=F(e);return C(o=t)&&i(o.dom.host)?u.some(t):u.none();var o})(P.fromDom(t)).fold(()=>o.body.contains(t),(n=z,r=H,e=>n(r(e))));var n,r},K=(e,t)=>$(e)?e.style.getPropertyValue(t):"",U=(e,t)=>{V(e).each(o=>{o.dom.insertBefore(t.dom,e.dom)})},Y=(e,t)=>{j(e).fold(()=>{V(e).each(e=>{_(e,t)})},e=>{U(e,t)})},_=(e,t)=>{e.dom.appendChild(t.dom)},G=(e,t)=>{f(t,(o,n)=>{const r=0===n?e:t[n-1];Y(r,o)})},J=(e,t)=>{let o=[];return f(q(e),e=>{t(e)&&(o=o.concat([e])),o=o.concat(J(e,t))}),o},Q=(e,t,o)=>{let n=e.dom;const r=a(o)?o:m;for(;n.parentNode;){n=n.parentNode;const e=P.fromDom(n);if(t(e))return u.some(e);if(r(e))break}return u.none()},W=e=>{const t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},X=(e,t,o)=>Q(e,e=>O(e,t),o),Z=(e,t)=>((e,t)=>{const o=void 0===t?document:t.dom;return k(o)?u.none():u.from(o.querySelector(e)).map(P.fromDom)})(t,e),ee=(e=>{const t=t=>e(t)?u.from(t.dom.nodeValue):u.none();return{get:o=>{if(!e(o))throw new Error("Can only get text value of a text node");return t(o).getOr("")},getOption:t,set:(t,o)=>{if(!e(t))throw new Error("Can only set raw text value of a text node");t.dom.nodeValue=o}}})(T);var te=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];const oe=(e,t)=>({element:e,offset:t}),ne=(e,t,o)=>e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?o(t).bind(t=>ne(e,t,o).orThunk(()=>u.some(t))):u.none(),re=(e,t)=>e.property().isText(t)?e.property().getText(t).length:e.property().children(t).length,se=(e,t)=>{const o=ne(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(o))return oe(o,re(e,o));const n=e.property().children(o);return n.length>0?se(e,n[n.length-1]):oe(o,re(e,o))},ie=se,ae={up:l({selector:X,closest:(e,t,o)=>((e,t,o,n,r)=>((e,t)=>O(e,t))(o,n)?u.some(o):a(r)&&r(o)?u.none():t(o,n,r))(0,X,e,t,o),predicate:Q,all:(e,t)=>{const o=a(t)?t:m;let n=e.dom;const r=[];for(;null!==n.parentNode&&void 0!==n.parentNode;){const e=n.parentNode,t=P.fromDom(e);if(r.push(t),!0===o(t))break;n=e}return r}}),down:l({selector:(e,t)=>((e,t)=>{const o=void 0===t?document:t.dom;return k(o)?[]:h(o.querySelectorAll(e),P.fromDom)})(t,e),predicate:J}),styles:l({get:(e,t)=>{const o=e.dom,n=window.getComputedStyle(o).getPropertyValue(t);return""!==n||z(e)?n:K(o,t)},getRaw:(e,t)=>{const o=e.dom,n=K(o,t);return u.from(n).filter(e=>e.length>0)},set:(e,t,o)=>{((e,t,o)=>{if(!n(o))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",o,":: Element ",e),new Error("CSS value must be a string: "+o);$(e)&&e.style.setProperty(t,o)})(e.dom,t,o)},remove:(e,t)=>{((e,t)=>{$(e)&&e.style.removeProperty(t)})(e.dom,t),((e,t,o=c)=>e.exists(e=>o(e,t)))(E(e,"style").map(R),"")&&D(e,"style")}}),attrs:l({get:x,set:(e,t,o)=>{S(e.dom,t,o)},remove:D,copyTo:(e,t)=>{const o=(n=e.dom.attributes,r=(e,t)=>(e[t.name]=t.value,e),s={},f(n,(e,t)=>{s=r(s,e)}),s);var n,r,s;((e,t)=>{const o=e.dom;((e,t)=>{const o=y(e);for(let n=0,r=o.length;n<r;n++){const r=o[n];t(e[r],r)}})(t,(e,t)=>{S(o,t,e)})})(t,o)}}),insert:l({before:U,after:Y,afterAll:G,append:_,appendAll:(e,t)=>{f(t,t=>{_(e,t)})},prepend:(e,t)=>{(e=>(e=>{const t=e.dom.childNodes;return u.from(t[0]).map(P.fromDom)})(e))(e).fold(()=>{_(e,t)},o=>{e.dom.insertBefore(t.dom,o.dom)})},wrap:(e,t)=>{U(e,t),_(t,e)}}),remove:l({unwrap:e=>{const t=q(e);t.length>0&&G(e,t),W(e)},remove:W}),create:l({nu:P.fromTag,clone:e=>P.fromDom(e.dom.cloneNode(!1)),text:P.fromText}),query:l({comparePosition:(e,t)=>e.dom.compareDocumentPosition(t.dom),prevSibling:e=>u.from(e.dom.previousSibling).map(P.fromDom),nextSibling:j}),property:l({children:q,name:v,parent:V,document:e=>I(e).dom,isText:T,isComment:e=>8===w(e)||"#comment"===v(e),isElement:N,isSpecial:e=>{const t=v(e);return p(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},getLanguage:e=>N(e)?E(e,"lang"):u.none(),getText:e=>ee.get(e),setText:(e,t)=>ee.set(e,t),isBoundary:e=>!!N(e)&&("body"===v(e)||p(te,v(e))),isEmptyTag:e=>!!N(e)&&p(["br","img","hr","input"],v(e)),isNonEditable:e=>N(e)&&"false"===x(e,"contenteditable")}),eq:(e,t)=>e.dom===t.dom,is:B},de="details",le="mce-accordion",ce="mce-accordion-summary",me="mce-accordion-body",ue="div";var ge=tinymce.util.Tools.resolve("tinymce.util.Tools");const pe=e=>"SUMMARY"===(null==e?void 0:e.nodeName),he=e=>"DETAILS"===(null==e?void 0:e.nodeName),fe=e=>e.hasAttribute("open"),ye=e=>{const t=e.selection.getNode();return pe(t)||Boolean(e.dom.getParent(t,pe))},ve=e=>!ye(e)&&e.dom.isEditable(e.selection.getNode()),we=e=>u.from(e.dom.getParent(e.selection.getNode(),he)),be=e=>(e.innerHTML='<br data-mce-bogus="1" />',e),Ne=e=>be(e.dom.create("p")),Te=e=>t=>{((e,t)=>{if(pe(null==t?void 0:t.lastChild)){const o=Ne(e);t.appendChild(o),e.selection.setCursorLocation(o,0)}})(e,t),((e,t)=>{if(!pe(null==t?void 0:t.firstChild)){const o=(e=>be(e.dom.create("summary")))(e);t.prepend(o),e.selection.setCursorLocation(o,0)}})(e,t)},Ae=(e,t)=>{const o=null!=t?t:!fe(e);return o?e.setAttribute("open","open"):e.removeAttribute("open"),o},Ce=e=>{e.addCommand("InsertAccordion",()=>(e=>{if(!ve(e))return;const o=P.fromDom(e.getBody()),n=(()=>{const e=(new Date).getTime(),o=Math.floor(1e9*Math.random());return t++,"acc_"+o+t+String(e)})(),r=e.dom.encode(e.selection.getRng().toString()||e.translate("Accordion summary...")),s=e.dom.encode(e.translate("Accordion body...")),i=`<summary class="${ce}">${r}</summary>`,a=`<${ue} class="${me}"><p>${s}</p></${ue}>`;e.undoManager.transact(()=>{e.insertContent([`<details data-mce-id="${n}" class="${le}" open="open">`,i,a,"</details>"].join("")),Z(o,`[data-mce-id="${n}"]`).each(t=>{D(t,"data-mce-id"),Z(t,"summary").each(t=>{const o=e.dom.createRng(),n=ie(ae,t);o.setStart(n.element.dom,n.offset),o.setEnd(n.element.dom,n.offset),e.selection.setRng(o)})})})})(e)),e.addCommand("ToggleAccordion",(t,o)=>((e,t)=>{we(e).each(o=>{((e,t,o)=>{e.dispatch("ToggledAccordion",{element:t,state:o})})(e,o,Ae(o,t))})})(e,o)),e.addCommand("ToggleAllAccordions",(t,o)=>((e,t)=>{const o=Array.from(e.getBody().querySelectorAll("details"));0!==o.length&&(f(o,e=>Ae(e,null!=t?t:!fe(e))),((e,t,o)=>{e.dispatch("ToggledAllAccordions",{elements:t,state:o})})(e,o,t))})(e,o)),e.addCommand("RemoveAccordion",()=>(e=>{we(e).each(t=>{const{nextSibling:o}=t;o?(e.selection.select(o,!0),e.selection.collapse(!0)):((e,t)=>{const o=Ne(e);t.insertAdjacentElement("afterend",o),e.selection.setCursorLocation(o,0)})(e,t),t.remove()})})(e))};var Se=tinymce.util.Tools.resolve("tinymce.html.Node");const xe=e=>{var t,o;return null!==(o=null===(t=e.attr("class"))||void 0===t?void 0:t.split(" "))&&void 0!==o?o:[]},Ee=(e,t)=>{const o=new Set([...xe(e),...t]),n=Array.from(o);n.length>0&&e.attr("class",n.join(" "))},De=(e,t)=>{const o=((e,t)=>{const o=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];t(r)&&o.push(r)}return o})(xe(e),e=>!t.has(e));e.attr("class",o.length>0?o.join(" "):null)},Me=e=>e.name===de&&p(xe(e),le),Pe=e=>e.name===ue&&p(xe(e),me),Oe=e=>{const t=e.children();let o,n;const r=[];for(let e=0;e<t.length;e++){const i=t[e];"summary"===i.name&&s(o)?o=i:Pe(i)&&s(n)?n=i:r.push(i)}return{summaryNode:o,wrapperNode:n,otherNodes:r}},ke=e=>{const t=new Se("br",1);t.attr("data-mce-bogus","1"),e.empty(),e.append(t)};var Be=tinymce.util.Tools.resolve("tinymce.util.VK");const Re=e=>{(e=>{e.on("keydown",t=>{(!t.shiftKey&&t.keyCode===Be.ENTER&&ye(e)||(e=>{const t=e.selection.getRng();return he(t.startContainer)&&t.collapsed&&0===t.startOffset})(e))&&(t.preventDefault(),e.execCommand("ToggleAccordion"))})})(e),e.on("ExecCommand",t=>{const o=t.command.toLowerCase();"delete"!==o&&"forwarddelete"!==o||!(e=>we(e).isSome())(e)||(e=>{ge.each(ge.grep(e.dom.select("details",e.getBody())),Te(e))})(e)})};var Le=tinymce.util.Tools.resolve("tinymce.Env");const $e=e=>t=>{const o=()=>t.setEnabled(ve(e));return e.on("NodeChange",o),()=>e.off("NodeChange",o)};e.add("accordion",e=>{(e=>{const t=()=>e.execCommand("InsertAccordion");e.ui.registry.addButton("accordion",{icon:"accordion",tooltip:"Insert accordion",onSetup:$e(e),onAction:t}),e.ui.registry.addMenuItem("accordion",{icon:"accordion",text:"Accordion",onSetup:$e(e),onAction:t}),e.ui.registry.addToggleButton("accordiontoggle",{icon:"accordion-toggle",tooltip:"Toggle accordion",onAction:()=>e.execCommand("ToggleAccordion")}),e.ui.registry.addToggleButton("accordionremove",{icon:"remove",tooltip:"Delete accordion",onAction:()=>e.execCommand("RemoveAccordion")}),e.ui.registry.addContextToolbar("accordion",{predicate:t=>e.dom.is(t,"details")&&e.getBody().contains(t)&&e.dom.isEditable(t.parentNode),items:"accordiontoggle accordionremove",scope:"node",position:"node"})})(e),Ce(e),Re(e),(e=>{e.on("PreInit",()=>{const{serializer:t,parser:o}=e;o.addNodeFilter(de,e=>{for(let t=0;t<e.length;t++){const o=e[t];if(Me(o)){const e=o,{summaryNode:t,wrapperNode:n,otherNodes:r}=Oe(e),a=i(t),d=a?t:new Se("summary",1);s(d.firstChild)&&ke(d),Ee(d,[ce]),a||(i(e.firstChild)?e.insert(d,e.firstChild,!0):e.append(d));const l=i(n),c=l?n:new Se(ue,1);if(c.attr("data-mce-bogus","1"),Ee(c,[me]),r.length>0)for(let e=0;e<r.length;e++){const t=r[e];c.append(t)}if(s(c.firstChild)){const e=new Se("p",1);ke(e),c.append(e)}l||e.append(c)}}}),t.addNodeFilter(de,e=>{const t=new Set([ce]);for(let o=0;o<e.length;o++){const n=e[o];if(Me(n)){const e=n,{summaryNode:o,wrapperNode:r}=Oe(e);i(o)&&De(o,t),i(r)&&r.unwrap()}}})})})(e),(e=>{Le.browser.isSafari()&&e.on("click",t=>{if(pe(t.target)){const o=t.target,n=e.selection.getRng();n.collapsed&&n.startContainer===o.parentNode&&0===n.startOffset&&e.selection.setCursorLocation(o,0)}})})(e)})}();
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * TinyMCE version 7.0.0 (TBD)
3
3
  */
4
- !function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(t,e,s)=>{const r="UL"===e?"InsertUnorderedList":"InsertOrderedList";t.execCommand(r,!1,!1===s?null:{"list-style-type":s})},s=t=>e=>e.options.get(t),r=s("advlist_number_styles"),n=s("advlist_bullet_styles"),i=t=>null==t,l=t=>!i(t);var o=tinymce.util.Tools.resolve("tinymce.util.Tools");class a{constructor(t,e){this.tag=t,this.value=e}static some(t){return new a(!0,t)}static none(){return a.singletonNone}fold(t,e){return this.tag?e(this.value):t()}isSome(){return this.tag}isNone(){return!this.tag}map(t){return this.tag?a.some(t(this.value)):a.none()}bind(t){return this.tag?t(this.value):a.none()}exists(t){return this.tag&&t(this.value)}forall(t){return!this.tag||t(this.value)}filter(t){return!this.tag||t(this.value)?this:a.none()}getOr(t){return this.tag?this.value:t}or(t){return this.tag?this:t}getOrThunk(t){return this.tag?this.value:t()}orThunk(t){return this.tag?this:t()}getOrDie(t){if(this.tag)return this.value;throw new Error(null!=t?t:"Called getOrDie on None")}static from(t){return l(t)?a.some(t):a.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(t){this.tag&&t(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}a.singletonNone=new a(!1);const u=t=>e=>l(e)&&t.test(e.nodeName),d=u(/^(OL|UL|DL)$/),g=u(/^(TH|TD)$/),c=t=>i(t)||"default"===t?"":t,h=(t,e)=>s=>((t,e)=>{const s=t.selection.getNode();return e({parents:t.dom.getParents(s),element:s}),t.on("NodeChange",e),()=>t.off("NodeChange",e)})(t,(r=>((t,r)=>{const n=t.selection.getStart(!0);s.setActive(((t,e,s)=>((t,e,s)=>{for(let e=0,n=t.length;e<n;e++){const n=t[e];if(d(r=n)&&!/\btox\-/.test(r.className))return a.some(n);if(s(n,e))break}var r;return a.none()})(e,0,g).exists((e=>e.nodeName===s&&((t,e)=>t.dom.isChildOf(e,t.getBody()))(t,e))))(t,r,e)),s.setEnabled(!((t,e)=>{const s=t.dom.getParent(e,"ol,ul,dl");return((t,e)=>null!==e&&!t.dom.isEditable(e))(t,s)&&t.selection.isEditable()})(t,n)&&t.selection.isEditable())})(t,r.parents))),m=(t,s,r,n,i,l)=>{l.length>1?((t,s,r,n,i,l)=>{t.ui.registry.addSplitButton(s,{tooltip:r,icon:"OL"===i?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:t=>{t(o.map(l,(t=>{const e="OL"===i?"num":"bull",s="disc"===t||"decimal"===t?"default":t,r=c(t),n=(t=>t.replace(/\-/g," ").replace(/\b\w/g,(t=>t.toUpperCase())))(t);return{type:"choiceitem",value:r,icon:"list-"+e+"-"+s,text:n}})))},onAction:()=>t.execCommand(n),onItemAction:(s,r)=>{e(t,i,r)},select:e=>{const s=(t=>{const e=t.dom.getParent(t.selection.getNode(),"ol,ul"),s=t.dom.getStyle(e,"listStyleType");return a.from(s)})(t);return s.map((t=>e===t)).getOr(!1)},onSetup:h(t,i)})})(t,s,r,n,i,l):((t,s,r,n,i,l)=>{t.ui.registry.addToggleButton(s,{active:!1,tooltip:r,icon:"OL"===i?"ordered-list":"unordered-list",onSetup:h(t,i),onAction:()=>t.queryCommandState(n)||""===l?t.execCommand(n):e(t,i,l)})})(t,s,r,n,i,c(l[0]))};t.add("advlist",(t=>{t.hasPlugin("lists")?((t=>{const e=t.options.register;e("advlist_number_styles",{processor:"string[]",default:"default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")}),e("advlist_bullet_styles",{processor:"string[]",default:"default,circle,square".split(",")})})(t),(t=>{m(t,"numlist","Numbered list","InsertOrderedList","OL",r(t)),m(t,"bullist","Bullet list","InsertUnorderedList","UL",n(t))})(t),(t=>{t.addCommand("ApplyUnorderedListStyle",((s,r)=>{e(t,"UL",r["list-style-type"])})),t.addCommand("ApplyOrderedListStyle",((s,r)=>{e(t,"OL",r["list-style-type"])}))})(t)):console.error("Please use the Lists plugin together with the Advanced List plugin.")}))}();
4
+ !function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(t,e,s)=>{const r="UL"===e?"InsertUnorderedList":"InsertOrderedList";t.execCommand(r,!1,!1===s?null:{"list-style-type":s})},s=t=>e=>e.options.get(t),r=s("advlist_number_styles"),n=s("advlist_bullet_styles"),i=t=>null==t,l=t=>!i(t);var o=tinymce.util.Tools.resolve("tinymce.util.Tools");class a{constructor(t,e){this.tag=t,this.value=e}static some(t){return new a(!0,t)}static none(){return a.singletonNone}fold(t,e){return this.tag?e(this.value):t()}isSome(){return this.tag}isNone(){return!this.tag}map(t){return this.tag?a.some(t(this.value)):a.none()}bind(t){return this.tag?t(this.value):a.none()}exists(t){return this.tag&&t(this.value)}forall(t){return!this.tag||t(this.value)}filter(t){return!this.tag||t(this.value)?this:a.none()}getOr(t){return this.tag?this.value:t}or(t){return this.tag?this:t}getOrThunk(t){return this.tag?this.value:t()}orThunk(t){return this.tag?this:t()}getOrDie(t){if(this.tag)return this.value;throw new Error(null!=t?t:"Called getOrDie on None")}static from(t){return l(t)?a.some(t):a.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(t){this.tag&&t(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}a.singletonNone=new a(!1);const u=t=>e=>l(e)&&t.test(e.nodeName),d=u(/^(OL|UL|DL)$/),g=u(/^(TH|TD)$/),c=t=>i(t)||"default"===t?"":t,h=(t,e)=>s=>((t,e)=>{const s=t.selection.getNode();return e({parents:t.dom.getParents(s),element:s}),t.on("NodeChange",e),()=>t.off("NodeChange",e)})(t,r=>((t,r)=>{const n=t.selection.getStart(!0);s.setActive(((t,e,s)=>((t,e,s)=>{for(let r=0,n=t.length;r<n;r++){const n=t[r];if(e(n))return a.some(n);if(s(n,r))break}return a.none()})(e,t=>d(t)&&!/\btox\-/.test(t.className),g).exists(e=>e.nodeName===s&&((t,e)=>t.dom.isChildOf(e,t.getBody()))(t,e)))(t,r,e)),s.setEnabled(!((t,e)=>{const s=t.dom.getParent(e,"ol,ul,dl");return((t,e)=>null!==e&&!t.dom.isEditable(e))(t,s)&&t.selection.isEditable()})(t,n)&&t.selection.isEditable())})(t,r.parents)),m=(t,s,r,n,i,l)=>{l.length>1?((t,s,r,n,i,l)=>{t.ui.registry.addSplitButton(s,{tooltip:r,icon:"OL"===i?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:t=>{t(o.map(l,t=>{const e="OL"===i?"num":"bull",s="disc"===t||"decimal"===t?"default":t,r=c(t),n=(t=>t.replace(/\-/g," ").replace(/\b\w/g,t=>t.toUpperCase()))(t);return{type:"choiceitem",value:r,icon:"list-"+e+"-"+s,text:n}}))},onAction:()=>t.execCommand(n),onItemAction:(s,r)=>{e(t,i,r)},select:e=>{const s=(t=>{const e=t.dom.getParent(t.selection.getNode(),"ol,ul"),s=t.dom.getStyle(e,"listStyleType");return a.from(s)})(t);return s.map(t=>e===t).getOr(!1)},onSetup:h(t,i)})})(t,s,r,n,i,l):((t,s,r,n,i,l)=>{t.ui.registry.addToggleButton(s,{active:!1,tooltip:r,icon:"OL"===i?"ordered-list":"unordered-list",onSetup:h(t,i),onAction:()=>t.queryCommandState(n)||""===l?t.execCommand(n):e(t,i,l)})})(t,s,r,n,i,c(l[0]))};t.add("advlist",t=>{t.hasPlugin("lists")?((t=>{const e=t.options.register;e("advlist_number_styles",{processor:"string[]",default:"default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")}),e("advlist_bullet_styles",{processor:"string[]",default:"default,circle,square".split(",")})})(t),(t=>{m(t,"numlist","Numbered list","InsertOrderedList","OL",r(t)),m(t,"bullist","Bullet list","InsertUnorderedList","UL",n(t))})(t),(t=>{t.addCommand("ApplyUnorderedListStyle",(s,r)=>{e(t,"UL",r["list-style-type"])}),t.addCommand("ApplyOrderedListStyle",(s,r)=>{e(t,"OL",r["list-style-type"])})})(t)):console.error("Please use the Lists plugin together with the Advanced List plugin.")})}();
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * TinyMCE version 7.0.0 (TBD)
3
3
  */
4
- !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),n=tinymce.util.Tools.resolve("tinymce.util.Tools");const o=e=>e.options.get("allow_html_in_named_anchor");const a="a:not([href])",r=e=>!e,i=e=>e.getAttribute("id")||e.getAttribute("name")||"",l=e=>(e=>"a"===e.nodeName.toLowerCase())(e)&&!e.getAttribute("href")&&""!==i(e),s=e=>e.dom.getParent(e.selection.getStart(),a),c=(e,a)=>{const r=s(e);r?((e,t,n)=>{n.removeAttribute("name"),n.id=t,e.addVisual(),e.undoManager.add()})(e,a,r):((e,a)=>{e.undoManager.transact((()=>{o(e)||e.selection.collapse(!0),e.selection.isCollapsed()?e.insertContent(e.dom.createHTML("a",{id:a})):((e=>{const o=e.dom;t(o).walk(e.selection.getRng(),(e=>{n.each(e,(e=>{var t;l(t=e)&&!t.firstChild&&o.remove(e,!1)}))}))})(e),e.formatter.remove("namedAnchor",void 0,void 0,!0),e.formatter.apply("namedAnchor",{value:a}),e.addVisual())}))})(e,a),e.focus()};var d=tinymce.util.Tools.resolve("tinymce.util.I18n");const m=e=>(e=>r(e.attr("href"))&&!r(e.attr("id")||e.attr("name")))(e)&&!e.firstChild,h=e=>t=>{for(let n=0;n<t.length;n++){const o=t[n];m(o)&&o.attr("contenteditable",e)}},u=e=>t=>{const n=()=>{t.setEnabled(e.selection.isEditable())};return e.on("NodeChange",n),n(),()=>{e.off("NodeChange",n)}};e.add("anchor",(e=>{(e=>{(0,e.options.register)("allow_html_in_named_anchor",{processor:"boolean",default:!1})})(e),(e=>{e.on("PreInit",(()=>{e.parser.addNodeFilter("a",h("false")),e.serializer.addNodeFilter("a",h(null))}))})(e),(e=>{e.addCommand("mceAnchor",(()=>{(e=>{const t=(e=>{const t=s(e);return t?i(t):""})(e);e.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{type:"htmlpanel",html:'<p style="font-size: 14px; margin-bottom: 10px;">'+d.translate("The anchor tool is used to create a link that allows the user to jump to a specific part of the document marked by the anchor. For example, you can link to an image or a specific section of text (e.g., a heading or a paragraph)")+"<br><br>"+d.translate('Enter an anchor identifier in the "ID" field (e.g., "anchor1") > click Save > Insert > Link > select the anchor in the "Anchors" field > the "Link URL" and "Link Text" fields will auto-fill > adjust the "Link Title" as needed.')+"</p>"},{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:t},onSubmit:t=>{((e,t)=>/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(t)?(c(e,t),!0):(e.windowManager.alert("ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!1))(e,t.getData().id)&&t.close()}})})(e)}))})(e),(e=>{const t=()=>e.execCommand("mceAnchor");e.ui.registry.addToggleButton("anchor",{icon:"bookmark",tooltip:"Anchor",onAction:t,onSetup:t=>{const n=e.selection.selectorChangedWithUnbind("a:not([href])",t.setActive).unbind,o=u(e)(t);return()=>{n(),o()}}}),e.ui.registry.addMenuItem("anchor",{icon:"bookmark",text:"Anchor...",onAction:t,onSetup:u(e)})})(e),e.on("PreInit",(()=>{(e=>{e.formatter.register("namedAnchor",{inline:"a",selector:a,remove:"all",split:!0,deep:!0,attributes:{id:"%value"},onmatch:(e,t,n)=>l(e)})})(e)}))}))}();
4
+ !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),n=tinymce.util.Tools.resolve("tinymce.util.Tools");const o=e=>e.options.get("allow_html_in_named_anchor");const a="a:not([href])",r=e=>!e,i=e=>e.getAttribute("id")||e.getAttribute("name")||"",l=e=>(e=>"a"===e.nodeName.toLowerCase())(e)&&!e.getAttribute("href")&&""!==i(e),s=e=>e.dom.getParent(e.selection.getStart(),a),c=(e,a)=>{const r=s(e);r?((e,t,n)=>{n.removeAttribute("name"),n.id=t,e.addVisual(),e.undoManager.add()})(e,a,r):((e,a)=>{e.undoManager.transact(()=>{o(e)||e.selection.collapse(!0),e.selection.isCollapsed()?e.insertContent(e.dom.createHTML("a",{id:a})):((e=>{const o=e.dom;t(o).walk(e.selection.getRng(),e=>{n.each(e,e=>{var t;l(t=e)&&!t.firstChild&&o.remove(e,!1)})})})(e),e.formatter.remove("namedAnchor",void 0,void 0,!0),e.formatter.apply("namedAnchor",{value:a}),e.addVisual())})})(e,a),e.focus()};var d=tinymce.util.Tools.resolve("tinymce.util.I18n");const m=e=>(e=>r(e.attr("href"))&&!r(e.attr("id")||e.attr("name")))(e)&&!e.firstChild,h=e=>t=>{for(let n=0;n<t.length;n++){const o=t[n];m(o)&&o.attr("contenteditable",e)}},u=e=>t=>{const n=()=>{t.setEnabled(e.selection.isEditable())};return e.on("NodeChange",n),n(),()=>{e.off("NodeChange",n)}};e.add("anchor",e=>{(e=>{(0,e.options.register)("allow_html_in_named_anchor",{processor:"boolean",default:!1})})(e),(e=>{e.on("PreInit",()=>{e.parser.addNodeFilter("a",h("false")),e.serializer.addNodeFilter("a",h(null))})})(e),(e=>{e.addCommand("mceAnchor",()=>{(e=>{const t=(e=>{const t=s(e);return t?i(t):""})(e);e.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{type:"htmlpanel",html:'<p style="font-size: 14px; margin-bottom: 10px;">'+d.translate("The anchor tool is used to create a link that allows the user to jump to a specific part of the document marked by the anchor. For example, you can link to an image or a specific section of text (e.g., a heading or a paragraph)")+"<br><br>"+d.translate('Enter an anchor identifier in the "ID" field (e.g., "anchor1") > click Save > Insert > Link > select the anchor in the "Anchors" field > the "Link URL" and "Link Text" fields will auto-fill > adjust the "Link Title" as needed.')+"</p>"},{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:t},onSubmit:t=>{((e,t)=>/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(t)?(c(e,t),!0):(e.windowManager.alert("ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!1))(e,t.getData().id)&&t.close()}})})(e)})})(e),(e=>{const t=()=>e.execCommand("mceAnchor");e.ui.registry.addToggleButton("anchor",{icon:"bookmark",tooltip:"Anchor",onAction:t,onSetup:t=>{const n=e.selection.selectorChangedWithUnbind("a:not([href])",t.setActive).unbind,o=u(e)(t);return()=>{n(),o()}}}),e.ui.registry.addMenuItem("anchor",{icon:"bookmark",text:"Anchor...",onAction:t,onSetup:u(e)})})(e),e.on("PreInit",()=>{(e=>{e.formatter.register("namedAnchor",{inline:"a",selector:a,remove:"all",split:!0,deep:!0,attributes:{id:"%value"},onmatch:(e,t,n)=>l(e)})})(e)})})}();
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * TinyMCE version 7.0.0 (TBD)
3
3
  */
4
- !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=e=>t=>t.options.get(e),n=t("autolink_pattern"),o=t("link_default_target"),r=t("link_default_protocol"),a=t("allow_unsafe_link_target"),s=e=>"string"===(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(a=o.constructor)||void 0===a?void 0:a.name)===r.name)?"string":t;var n,o,r,a})(e);const l=e=>undefined===e;const i=e=>!(e=>null==e)(e),c=Object.hasOwnProperty,d=e=>"\ufeff"===e;var u=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");const f=e=>/^[(\[{ \u00a0]$/.test(e),g=(e,t,n)=>{for(let o=t-1;o>=0;o--){const t=e.charAt(o);if(!d(t)&&n(t))return o}return-1},m=(e,t)=>{var o;const a=e.schema.getVoidElements(),s=n(e),{dom:i,selection:d}=e;if(null!==i.getParent(d.getNode(),"a[href]"))return null;const m=d.getRng(),k=u(i,(e=>{return i.isBlock(e)||(t=a,n=e.nodeName.toLowerCase(),c.call(t,n))||"false"===i.getContentEditable(e);var t,n})),{container:p,offset:y}=((e,t)=>{let n=e,o=t;for(;1===n.nodeType&&n.childNodes[o];)n=n.childNodes[o],o=3===n.nodeType?n.data.length:n.childNodes.length;return{container:n,offset:o}})(m.endContainer,m.endOffset),w=null!==(o=i.getParent(p,i.isBlock))&&void 0!==o?o:i.getRoot(),h=k.backwards(p,y+t,((e,t)=>{const n=e.data,o=g(n,t,(r=f,e=>!r(e)));var r,a;return-1===o||(a=n[o],/[?!,.;:]/.test(a))?o:o+1}),w);if(!h)return null;let v=h.container;const _=k.backwards(h.container,h.offset,((e,t)=>{v=e;const n=g(e.data,t,f);return-1===n?n:n+1}),w),A=i.createRng();_?A.setStart(_.container,_.offset):A.setStart(v,0),A.setEnd(h.container,h.offset);const C=A.toString().replace(/\uFEFF/g,"").match(s);if(C){let t=C[0];return $="www.",(b=t).length>=4&&b.substr(0,4)===$?t=r(e)+"://"+t:((e,t,n=0,o)=>{const r=e.indexOf(t,n);return-1!==r&&(!!l(o)||r+t.length<=o)})(t,"@")&&!(e=>/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(e))(t)&&(t="mailto:"+t),{rng:A,url:t}}var b,$;return null},k=(e,t)=>{const{dom:n,selection:r}=e,{rng:l,url:i}=t,c=r.getBookmark();r.setRng(l);const d="createlink",u={command:d,ui:!1,value:i};if(!e.dispatch("BeforeExecCommand",u).isDefaultPrevented()){e.getDoc().execCommand(d,!1,i),e.dispatch("ExecCommand",u);const t=o(e);if(s(t)){const o=r.getNode();n.setAttrib(o,"target",t),"_blank"!==t||a(e)||n.setAttrib(o,"rel","noopener")}}r.moveToBookmark(c),e.nodeChanged()},p=e=>{const t=m(e,-1);i(t)&&k(e,t)},y=p;e.add("autolink",(e=>{(e=>{const t=e.options.register;t("autolink_pattern",{processor:"regexp",default:new RegExp("^"+/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g.source+"$","i")}),t("link_default_target",{processor:"string"}),t("link_default_protocol",{processor:"string",default:"https"})})(e),(e=>{e.on("keydown",(t=>{13!==t.keyCode||t.isDefaultPrevented()||(e=>{const t=m(e,0);i(t)&&k(e,t)})(e)})),e.on("keyup",(t=>{32===t.keyCode?p(e):(48===t.keyCode&&t.shiftKey||221===t.keyCode)&&y(e)}))})(e)}))}();
4
+ !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=e=>t=>t.options.get(e),n=t("autolink_pattern"),o=t("link_default_target"),r=t("link_default_protocol"),a=t("allow_unsafe_link_target"),s=e=>"string"===(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(a=o.constructor)||void 0===a?void 0:a.name)===r.name)?"string":t;var n,o,r,a})(e);const l=e=>undefined===e;const i=e=>!(e=>null==e)(e),c=Object.hasOwnProperty,d=e=>"\ufeff"===e;var u=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");const f=e=>3===e.nodeType,g=e=>1===e.nodeType,m=e=>/^[(\[{ \u00a0]$/.test(e),k=(e,t,n)=>{for(let o=t-1;o>=0;o--){const t=e.charAt(o);if(!d(t)&&n(t))return o}return-1},p=(e,t)=>{var o;const a=e.schema.getVoidElements(),s=n(e),{dom:i,selection:d}=e;if(null!==i.getParent(d.getNode(),"a[href]"))return null;const p=d.getRng(),y=u(i,e=>{return i.isBlock(e)||(t=a,n=e.nodeName.toLowerCase(),c.call(t,n))||"false"===i.getContentEditable(e);var t,n}),{container:w,offset:h}=((e,t)=>{let n=e,o=t;for(;g(n)&&n.childNodes[o];)n=n.childNodes[o],o=f(n)?n.data.length:n.childNodes.length;return{container:n,offset:o}})(p.endContainer,p.endOffset),v=null!==(o=i.getParent(w,i.isBlock))&&void 0!==o?o:i.getRoot(),_=y.backwards(w,h+t,(e,t)=>{const n=e.data,o=k(n,t,(r=m,e=>!r(e)));var r,a;return-1===o||(a=n[o],/[?!,.;:]/.test(a))?o:o+1},v);if(!_)return null;let A=_.container;const C=y.backwards(_.container,_.offset,(e,t)=>{A=e;const n=k(e.data,t,m);return-1===n?n:n+1},v),b=i.createRng();C?b.setStart(C.container,C.offset):b.setStart(A,0),b.setEnd(_.container,_.offset);const $=b.toString().replace(/\uFEFF/g,"").match(s);if($){let t=$[0];return E="www.",(x=t).length>=4&&x.substr(0,4)===E?t=r(e)+"://"+t:((e,t,n=0,o)=>{const r=e.indexOf(t,n);return-1!==r&&(!!l(o)||r+t.length<=o)})(t,"@")&&!(e=>/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(e))(t)&&(t="mailto:"+t),{rng:b,url:t}}var x,E;return null},y=(e,t)=>{const{dom:n,selection:r}=e,{rng:l,url:i}=t,c=r.getBookmark();r.setRng(l);const d="createlink",u={command:d,ui:!1,value:i};if(!e.dispatch("BeforeExecCommand",u).isDefaultPrevented()){e.getDoc().execCommand(d,!1,i),e.dispatch("ExecCommand",u);const t=o(e);if(s(t)){const o=r.getNode();n.setAttrib(o,"target",t),"_blank"!==t||a(e)||n.setAttrib(o,"rel","noopener")}}r.moveToBookmark(c),e.nodeChanged()},w=e=>{const t=p(e,-1);i(t)&&y(e,t)},h=w;e.add("autolink",e=>{(e=>{const t=e.options.register;t("autolink_pattern",{processor:"regexp",default:new RegExp("^"+/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g.source+"$","i")}),t("link_default_target",{processor:"string"}),t("link_default_protocol",{processor:"string",default:"https"})})(e),(e=>{e.on("keydown",t=>{13!==t.keyCode||t.isDefaultPrevented()||(e=>{const t=p(e,0);i(t)&&y(e,t)})(e)}),e.on("keyup",t=>{32===t.keyCode?w(e):(48===t.keyCode&&t.shiftKey||221===t.keyCode)&&h(e)})})(e)})}();
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * TinyMCE version 7.0.0 (TBD)
3
3
  */
4
- !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env");const o=e=>t=>t.options.get(e),s=o("min_height"),i=o("max_height"),n=o("autoresize_overflow_padding"),r=o("autoresize_bottom_margin"),l=(e,t)=>{const o=e.getBody();o&&(o.style.overflowY=t?"":"hidden",t||(o.scrollTop=0))},g=(e,t,o,s)=>{var i;const n=parseInt(null!==(i=e.getStyle(t,o,s))&&void 0!==i?i:"",10);return isNaN(n)?0:n},a=(e,o,r,c)=>{var d;const f=e.dom,u=e.getDoc();if(!u)return;if((e=>e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen())(e))return void l(e,!0);const m=u.documentElement,h=c?c():n(e),p=null!==(d=s(e))&&void 0!==d?d:e.getElement().offsetHeight;let y=p;const S=g(f,m,"margin-top",!0),v=g(f,m,"margin-bottom",!0);let C=m.offsetHeight+S+v+h;C<0&&(C=0);const b=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight;C+b>p&&(y=C+b);const w=i(e);if(w&&y>w?(y=w,l(e,!0)):l(e,!1),y!==o.get()){const s=y-o.get();if(f.setStyle(e.getContainer(),"height",y+"px"),o.set(y),(e=>{e.dispatch("ResizeEditor")})(e),t.browser.isSafari()&&(t.os.isMacOS()||t.os.isiOS())){const t=e.getWin();t.scrollTo(t.pageXOffset,t.pageYOffset)}e.hasFocus()&&(e=>{if("setcontent"===(null==e?void 0:e.type.toLowerCase())){const t=e;return!0===t.selection||!0===t.paste}return!1})(r)&&e.selection.scrollIntoView(),(t.browser.isSafari()||t.browser.isChromium())&&s<0&&a(e,o,r,c)}};e.add("autoresize",(e=>{if((e=>{const t=e.options.register;t("autoresize_overflow_padding",{processor:"number",default:1}),t("autoresize_bottom_margin",{processor:"number",default:50})})(e),e.options.isSet("resize")||e.options.set("resize",!1),!e.inline){const o=(()=>{let e=0;return{get:()=>e,set:t=>{e=t}}})();((e,t)=>{e.addCommand("mceAutoResize",(()=>{a(e,t)}))})(e,o),((e,o)=>{let s,i,l=()=>r(e);e.on("init",(i=>{s=0;const r=n(e),g=e.dom;g.setStyles(e.getDoc().documentElement,{height:"auto"}),t.browser.isEdge()||t.browser.isIE()?g.setStyles(e.getBody(),{paddingLeft:r,paddingRight:r,"min-height":0}):g.setStyles(e.getBody(),{paddingLeft:r,paddingRight:r}),a(e,o,i,l),s+=1})),e.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",(t=>{if(1===s)i=e.getContainer().offsetHeight,a(e,o,t,l),s+=1;else if(2===s){const t=i<e.getContainer().offsetHeight;if(t){const t=e.dom,o=e.getDoc();t.setStyles(o.documentElement,{"min-height":0}),t.setStyles(e.getBody(),{"min-height":"inherit"})}l=t?()=>0:l,s+=1}else a(e,o,t,l)}))})(e,o)}}))}();
4
+ !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env");const o=e=>t=>t.options.get(e),s=o("min_height"),i=o("max_height"),n=o("autoresize_overflow_padding"),r=o("autoresize_bottom_margin"),l=(e,t)=>{const o=e.getBody();o&&(o.style.overflowY=t?"":"hidden",t||(o.scrollTop=0))},g=(e,t,o,s)=>{var i;const n=parseInt(null!==(i=e.getStyle(t,o,s))&&void 0!==i?i:"",10);return isNaN(n)?0:n},a=(e,o,r,c)=>{var d;const f=e.dom,u=e.getDoc();if(!u)return;if((e=>e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen())(e))return void l(e,!0);const m=u.documentElement,h=c?c():n(e),p=null!==(d=s(e))&&void 0!==d?d:e.getElement().offsetHeight;let y=p;const S=g(f,m,"margin-top",!0),v=g(f,m,"margin-bottom",!0);let C=m.offsetHeight+S+v+h;C<0&&(C=0);const b=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight;C+b>p&&(y=C+b);const w=i(e);if(w&&y>w?(y=w,l(e,!0)):l(e,!1),y!==o.get()){const s=y-o.get();if(f.setStyle(e.getContainer(),"height",y+"px"),o.set(y),(e=>{e.dispatch("ResizeEditor")})(e),t.browser.isSafari()&&(t.os.isMacOS()||t.os.isiOS())){const t=e.getWin();t.scrollTo(t.pageXOffset,t.pageYOffset)}e.hasFocus()&&(e=>{if("setcontent"===(null==e?void 0:e.type.toLowerCase())){const t=e;return!0===t.selection||!0===t.paste}return!1})(r)&&e.selection.scrollIntoView(),(t.browser.isSafari()||t.browser.isChromium())&&s<0&&a(e,o,r,c)}};e.add("autoresize",e=>{if((e=>{const t=e.options.register;t("autoresize_overflow_padding",{processor:"number",default:1}),t("autoresize_bottom_margin",{processor:"number",default:50})})(e),e.options.isSet("resize")||e.options.set("resize",!1),!e.inline){const o=(()=>{let e=0;return{get:()=>e,set:t=>{e=t}}})();((e,t)=>{e.addCommand("mceAutoResize",()=>{a(e,t)})})(e,o),((e,o)=>{let s,i,l=()=>r(e);e.on("init",i=>{s=0;const r=n(e),g=e.dom;g.setStyles(e.getDoc().documentElement,{height:"auto"}),t.browser.isEdge()||t.browser.isIE()?g.setStyles(e.getBody(),{paddingLeft:r,paddingRight:r,"min-height":0}):g.setStyles(e.getBody(),{paddingLeft:r,paddingRight:r}),a(e,o,i,l),s+=1}),e.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",t=>{if(1===s)i=e.getContainer().offsetHeight,a(e,o,t,l),s+=1;else if(2===s){const t=i<e.getContainer().offsetHeight;if(t){const t=e.dom,o=e.getDoc();t.setStyles(o.documentElement,{"min-height":0}),t.setStyles(e.getBody(),{"min-height":"inherit"})}l=t?()=>0:l,s+=1}else a(e,o,t,l)})})(e,o)}})}();
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * TinyMCE version 7.0.0 (TBD)
3
3
  */
4
- !function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=t=>"string"===(t=>{const e=typeof t;return null===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(r=o=t,(a=String).prototype.isPrototypeOf(r)||(null===(s=o.constructor)||void 0===s?void 0:s.name)===a.name)?"string":e;var r,o,a,s})(t);const r=t=>undefined===t;var o=tinymce.util.Tools.resolve("tinymce.util.Delay"),a=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),s=tinymce.util.Tools.resolve("tinymce.util.Tools");const n=t=>{const e=/^(\d+)([ms]?)$/.exec(t);return(e&&e[2]?{s:1e3,m:6e4}[e[2]]:1)*parseInt(t,10)},i=t=>e=>e.options.get(t),u=i("autosave_ask_before_unload"),l=i("autosave_restore_when_empty"),c=i("autosave_interval"),d=i("autosave_retention"),m=t=>{const e=document.location;return t.options.get("autosave_prefix").replace(/{path}/g,e.pathname).replace(/{query}/g,e.search).replace(/{hash}/g,e.hash).replace(/{id}/g,t.id)},v=(t,e)=>{if(r(e))return t.dom.isEmpty(t.getBody());{const r=s.trim(e);if(""===r)return!0;{const e=(new DOMParser).parseFromString(r,"text/html");return t.dom.isEmpty(e)}}},f=t=>{var e;const r=parseInt(null!==(e=a.getItem(m(t)+"time"))&&void 0!==e?e:"0",10)||0;return!((new Date).getTime()-r>d(t)&&(p(t,!1),1))},p=(t,e)=>{const r=m(t);a.removeItem(r+"draft"),a.removeItem(r+"time"),!1!==e&&(t=>{t.dispatch("RemoveDraft")})(t)},g=t=>{const e=m(t);!v(t)&&t.isDirty()&&(a.setItem(e+"draft",t.getContent({format:"raw",no_events:!0})),a.setItem(e+"time",(new Date).getTime().toString()),(t=>{t.dispatch("StoreDraft")})(t))},y=t=>{var e;const r=m(t);f(t)&&(t.setContent(null!==(e=a.getItem(r+"draft"))&&void 0!==e?e:"",{format:"raw"}),(t=>{t.dispatch("RestoreDraft")})(t))};var D=tinymce.util.Tools.resolve("tinymce.EditorManager");const h=t=>e=>{e.setEnabled(f(t));const r=()=>e.setEnabled(f(t));return t.on("StoreDraft RestoreDraft RemoveDraft",r),()=>t.off("StoreDraft RestoreDraft RemoveDraft",r)};t.add("autosave",(t=>((t=>{const r=t.options.register,o=t=>{const r=e(t);return r?{value:n(t),valid:r}:{valid:!1,message:"Must be a string."}};r("autosave_ask_before_unload",{processor:"boolean",default:!0}),r("autosave_prefix",{processor:"string",default:"tinymce-autosave-{path}{query}{hash}-{id}-"}),r("autosave_restore_when_empty",{processor:"boolean",default:!1}),r("autosave_interval",{processor:o,default:"30s"}),r("autosave_retention",{processor:o,default:"20m"})})(t),(t=>{t.editorManager.on("BeforeUnload",(t=>{let e;s.each(D.get(),(t=>{t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&u(t)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))})),e&&(t.preventDefault(),t.returnValue=e)}))})(t),(t=>{(t=>{const e=c(t);o.setEditorInterval(t,(()=>{g(t)}),e)})(t);const e=()=>{(t=>{t.undoManager.transact((()=>{y(t),p(t)})),t.focus()})(t)};t.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:e,onSetup:h(t)}),t.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:e,onSetup:h(t)})})(t),t.on("init",(()=>{l(t)&&t.dom.isEmpty(t.getBody())&&y(t)})),(t=>({hasDraft:()=>f(t),storeDraft:()=>g(t),restoreDraft:()=>y(t),removeDraft:e=>p(t,e),isEmpty:e=>v(t,e)}))(t))))}();
4
+ !function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=t=>"string"===(t=>{const e=typeof t;return null===t?"null":"object"===e&&Array.isArray(t)?"array":"object"===e&&(r=o=t,(a=String).prototype.isPrototypeOf(r)||(null===(s=o.constructor)||void 0===s?void 0:s.name)===a.name)?"string":e;var r,o,a,s})(t);const r=t=>undefined===t;var o=tinymce.util.Tools.resolve("tinymce.util.Delay"),a=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),s=tinymce.util.Tools.resolve("tinymce.util.Tools");const n=t=>{const e=/^(\d+)([ms]?)$/.exec(t);return(e&&e[2]?{s:1e3,m:6e4}[e[2]]:1)*parseInt(t,10)},i=t=>e=>e.options.get(t),u=i("autosave_ask_before_unload"),l=i("autosave_restore_when_empty"),c=i("autosave_interval"),d=i("autosave_retention"),m=t=>{const e=document.location;return t.options.get("autosave_prefix").replace(/{path}/g,e.pathname).replace(/{query}/g,e.search).replace(/{hash}/g,e.hash).replace(/{id}/g,t.id)},v=(t,e)=>{if(r(e))return t.dom.isEmpty(t.getBody());{const r=s.trim(e);if(""===r)return!0;{const e=(new DOMParser).parseFromString(r,"text/html");return t.dom.isEmpty(e)}}},f=t=>{var e;const r=parseInt(null!==(e=a.getItem(m(t)+"time"))&&void 0!==e?e:"0",10)||0;return!((new Date).getTime()-r>d(t)&&(p(t,!1),1))},p=(t,e)=>{const r=m(t);a.removeItem(r+"draft"),a.removeItem(r+"time"),!1!==e&&(t=>{t.dispatch("RemoveDraft")})(t)},g=t=>{const e=m(t);!v(t)&&t.isDirty()&&(a.setItem(e+"draft",t.getContent({format:"raw",no_events:!0})),a.setItem(e+"time",(new Date).getTime().toString()),(t=>{t.dispatch("StoreDraft")})(t))},y=t=>{var e;const r=m(t);f(t)&&(t.setContent(null!==(e=a.getItem(r+"draft"))&&void 0!==e?e:"",{format:"raw"}),(t=>{t.dispatch("RestoreDraft")})(t))};var D=tinymce.util.Tools.resolve("tinymce.EditorManager");const h=t=>e=>{e.setEnabled(f(t));const r=()=>e.setEnabled(f(t));return t.on("StoreDraft RestoreDraft RemoveDraft",r),()=>t.off("StoreDraft RestoreDraft RemoveDraft",r)};t.add("autosave",t=>((t=>{const r=t.options.register,o=t=>{const r=e(t);return r?{value:n(t),valid:r}:{valid:!1,message:"Must be a string."}};r("autosave_ask_before_unload",{processor:"boolean",default:!0}),r("autosave_prefix",{processor:"string",default:"tinymce-autosave-{path}{query}{hash}-{id}-"}),r("autosave_restore_when_empty",{processor:"boolean",default:!1}),r("autosave_interval",{processor:o,default:"30s"}),r("autosave_retention",{processor:o,default:"20m"})})(t),(t=>{t.editorManager.on("BeforeUnload",t=>{let e;s.each(D.get(),t=>{t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&u(t)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))}),e&&(t.preventDefault(),t.returnValue=e)})})(t),(t=>{(t=>{const e=c(t);o.setEditorInterval(t,()=>{g(t)},e)})(t);const e=()=>{(t=>{t.undoManager.transact(()=>{y(t),p(t)}),t.focus()})(t)};t.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:e,onSetup:h(t)}),t.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:e,onSetup:h(t)})})(t),t.on("init",()=>{l(t)&&t.dom.isEmpty(t.getBody())&&y(t)}),(t=>({hasDraft:()=>f(t),storeDraft:()=>g(t),restoreDraft:()=>y(t),removeDraft:e=>p(t,e),isEmpty:e=>v(t,e)}))(t)))}();
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * TinyMCE version 7.0.0 (TBD)
3
3
  */
4
- !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const r=(e,r)=>{const t=((e,r)=>e.dispatch("insertCustomChar",{chr:r}))(e,r).chr;e.execCommand("mceInsertContent",!1,t)},t=e=>r=>e===r,a=e=>"array"===(e=>{const r=typeof e;return null===e?"null":"object"===r&&Array.isArray(e)?"array":"object"===r&&(t=a=e,(o=String).prototype.isPrototypeOf(t)||(null===(i=a.constructor)||void 0===i?void 0:i.name)===o.name)?"string":r;var t,a,o,i})(e);const o=t(null),i=t(void 0),s=e=>"function"==typeof e,l=()=>false;class n{constructor(e,r){this.tag=e,this.value=r}static some(e){return new n(!0,e)}static none(){return n.singletonNone}fold(e,r){return this.tag?r(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?n.some(e(this.value)):n.none()}bind(e){return this.tag?e(this.value):n.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:n.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return null==e?n.none():n.some(e)}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}n.singletonNone=new n(!1);const c=Array.prototype.push,u=(e,r)=>{const t=e.length,a=new Array(t);for(let o=0;o<t;o++){const t=e[o];a[o]=r(t,o)}return a};var h=tinymce.util.Tools.resolve("tinymce.util.Tools");const d=e=>r=>r.options.get(e),w=d("charmap"),g=d("charmap_append"),m=h.isArray,p="User Defined",f=e=>{return m(e)?(r=e,h.grep(r,(e=>m(e)&&2===e.length))):"function"==typeof e?e():[];var r},b=e=>{const r=((e,r)=>{const t=w(e);t&&(r=[{name:p,characters:f(t)}]);const a=g(e);if(a){const e=h.grep(r,(e=>e.name===p));return e.length?(e[0].characters=[...e[0].characters,...f(a)],r):r.concat({name:p,characters:f(a)})}return r})(e,[{name:"Currency",characters:[[36,"dollar sign"],[162,"cent sign"],[8364,"euro sign"],[163,"pound sign"],[165,"yen sign"],[164,"currency sign"],[8352,"euro-currency sign"],[8353,"colon sign"],[8354,"cruzeiro sign"],[8355,"french franc sign"],[8356,"lira sign"],[8357,"mill sign"],[8358,"naira sign"],[8359,"peseta sign"],[8360,"rupee sign"],[8361,"won sign"],[8362,"new sheqel sign"],[8363,"dong sign"],[8365,"kip sign"],[8366,"tugrik sign"],[8367,"drachma sign"],[8368,"german penny symbol"],[8369,"peso sign"],[8370,"guarani sign"],[8371,"austral sign"],[8372,"hryvnia sign"],[8373,"cedi sign"],[8374,"livre tournois sign"],[8375,"spesmilo sign"],[8376,"tenge sign"],[8377,"indian rupee sign"],[8378,"turkish lira sign"],[8379,"nordic mark sign"],[8380,"manat sign"],[8381,"ruble sign"],[20870,"yen character"],[20803,"yuan character"],[22291,"yuan character, in hong kong and taiwan"],[22278,"yen/yuan character variant one"]]},{name:"Text",characters:[[169,"copyright sign"],[174,"registered sign"],[8482,"trade mark sign"],[8240,"per mille sign"],[181,"micro sign"],[183,"middle dot"],[8226,"bullet"],[8230,"three dot leader"],[8242,"minutes / feet"],[8243,"seconds / inches"],[167,"section sign"],[182,"paragraph sign"],[223,"sharp s / ess-zed"]]},{name:"Quotations",characters:[[8249,"single left-pointing angle quotation mark"],[8250,"single right-pointing angle quotation mark"],[171,"left pointing guillemet"],[187,"right pointing guillemet"],[8216,"left single quotation mark"],[8217,"right single quotation mark"],[8220,"left double quotation mark"],[8221,"right double quotation mark"],[8218,"single low-9 quotation mark"],[8222,"double low-9 quotation mark"],[60,"less-than sign"],[62,"greater-than sign"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8211,"en dash"],[8212,"em dash"],[175,"macron"],[8254,"overline"],[164,"currency sign"],[166,"broken bar"],[168,"diaeresis"],[161,"inverted exclamation mark"],[191,"turned question mark"],[710,"circumflex accent"],[732,"small tilde"],[176,"degree sign"],[8722,"minus sign"],[177,"plus-minus sign"],[247,"division sign"],[8260,"fraction slash"],[215,"multiplication sign"],[185,"superscript one"],[178,"superscript two"],[179,"superscript three"],[188,"fraction one quarter"],[189,"fraction one half"],[190,"fraction three quarters"]]},{name:"Mathematical",characters:[[8704,"for all"],[8705,"complement"],[8706,"partial differential"],[8707,"there exist"],[8708,"there does not exist"],[8709,"empty set"],[8710,"increment"],[8711,"nabla"],[8712,"element of"],[8713,"not an element of"],[8714,"small element of"],[8715,"contains as member"],[8716,"does not contain as member"],[8717,"small contains as member"],[8718,"end of proof"],[8719,"n-ary product"],[8720,"n-ary coproduct"],[8721,"n-ary summation"],[8722,"minus sign"],[8723,"minus-or-plus sign"],[8724,"dot plus"],[8725,"division slash"],[8726,"set minus"],[8727,"asterisk operator"],[8728,"ring operator"],[8729,"bullet operator"],[8730,"square root"],[8731,"cube root"],[8732,"fourth root"],[8733,"proportional to"],[8734,"infinity"],[8735,"right angle"],[8736,"angle"],[8737,"measured angle"],[8738,"spherical angle"],[8739,"divides"],[8740,"does not divide"],[8741,"parallel to"],[8742,"not parallel to"],[8743,"logical and"],[8744,"logical or"],[8745,"intersection"],[8746,"union"],[8747,"integral"],[8748,"double integral"],[8749,"triple integral"],[8750,"contour integral"],[8751,"surface integral"],[8752,"volume integral"],[8753,"clockwise integral"],[8754,"clockwise contour integral"],[8755,"anticlockwise contour integral"],[8756,"therefore"],[8757,"because"],[8758,"ratio"],[8759,"proportion"],[8760,"dot minus"],[8761,"excess"],[8762,"geometric proportion"],[8763,"homothetic"],[8764,"tilde operator"],[8765,"reversed tilde"],[8766,"inverted lazy s"],[8767,"sine wave"],[8768,"wreath product"],[8769,"not tilde"],[8770,"minus tilde"],[8771,"asymptotically equal to"],[8772,"not asymptotically equal to"],[8773,"approximately equal to"],[8774,"approximately but not actually equal to"],[8775,"neither approximately nor actually equal to"],[8776,"almost equal to"],[8777,"not almost equal to"],[8778,"almost equal or equal to"],[8779,"triple tilde"],[8780,"all equal to"],[8781,"equivalent to"],[8782,"geometrically equivalent to"],[8783,"difference between"],[8784,"approaches the limit"],[8785,"geometrically equal to"],[8786,"approximately equal to or the image of"],[8787,"image of or aproximately equal to"],[8788,"colon equals"],[8789,"equals colon"],[8790,"ring in equal to"],[8791,"ring equal to"],[8792,"corresponds to"],[8793,"estimates"],[8794,"equiangular to"],[8795,"star equals"],[8796,"delta equal to"],[8797,"equal to by definition"],[8798,"measured by"],[8799,"questioned equal to"],[8800,"not equal to"],[8801,"identical to"],[8802,"not identical to"],[8803,"strictly equivalent to"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8806,"less-than over equal to"],[8807,"greater-than over equal to"],[8808,"less-than but not equal to"],[8809,"greater-than but not equal to"],[8810,"much less-than"],[8811,"much greater-than"],[8812,"between"],[8813,"not equivalent to"],[8814,"not less-than"],[8815,"not greater-than"],[8816,"neither less-than nor equal to"],[8817,"neither greater-than nor equal to"],[8818,"less-than or equivalent to"],[8819,"greater-than or equivalent to"],[8820,"neither less-than nor equivalent to"],[8821,"neither greater-than nor equivalent to"],[8822,"less-than or greater-than"],[8823,"greater-than or less-than"],[8824,"neither less-than nor greater-than"],[8825,"neither greater-than nor less-than"],[8826,"precedes"],[8827,"succeeds"],[8828,"precedes or equal to"],[8829,"succeeds or equal to"],[8830,"precedes or equivalent to"],[8831,"succeeds or equivalent to"],[8832,"does not precede"],[8833,"does not succeed"],[8834,"subset of"],[8835,"superset of"],[8836,"not a subset of"],[8837,"not a superset of"],[8838,"subset of or equal to"],[8839,"superset of or equal to"],[8840,"neither a subset of nor equal to"],[8841,"neither a superset of nor equal to"],[8842,"subset of with not equal to"],[8843,"superset of with not equal to"],[8844,"multiset"],[8845,"multiset multiplication"],[8846,"multiset union"],[8847,"square image of"],[8848,"square original of"],[8849,"square image of or equal to"],[8850,"square original of or equal to"],[8851,"square cap"],[8852,"square cup"],[8853,"circled plus"],[8854,"circled minus"],[8855,"circled times"],[8856,"circled division slash"],[8857,"circled dot operator"],[8858,"circled ring operator"],[8859,"circled asterisk operator"],[8860,"circled equals"],[8861,"circled dash"],[8862,"squared plus"],[8863,"squared minus"],[8864,"squared times"],[8865,"squared dot operator"],[8866,"right tack"],[8867,"left tack"],[8868,"down tack"],[8869,"up tack"],[8870,"assertion"],[8871,"models"],[8872,"true"],[8873,"forces"],[8874,"triple vertical bar right turnstile"],[8875,"double vertical bar double right turnstile"],[8876,"does not prove"],[8877,"not true"],[8878,"does not force"],[8879,"negated double vertical bar double right turnstile"],[8880,"precedes under relation"],[8881,"succeeds under relation"],[8882,"normal subgroup of"],[8883,"contains as normal subgroup"],[8884,"normal subgroup of or equal to"],[8885,"contains as normal subgroup or equal to"],[8886,"original of"],[8887,"image of"],[8888,"multimap"],[8889,"hermittan conjugate matrix"],[8890,"intercalate"],[8891,"xor"],[8892,"nand"],[8893,"nor"],[8894,"right angle with arc"],[8895,"right triangle"],[8896,"n-ary logical and"],[8897,"n-ary logical or"],[8898,"n-ary intersection"],[8899,"n-ary union"],[8900,"diamond operator"],[8901,"dot operator"],[8902,"star operator"],[8903,"division times"],[8904,"bowtie"],[8905,"left normal factor semidirect product"],[8906,"right normal factor semidirect product"],[8907,"left semidirect product"],[8908,"right semidirect product"],[8909,"reversed tilde equals"],[8910,"curly logical or"],[8911,"curly logical and"],[8912,"double subset"],[8913,"double superset"],[8914,"double intersection"],[8915,"double union"],[8916,"pitchfork"],[8917,"equal and parallel to"],[8918,"less-than with dot"],[8919,"greater-than with dot"],[8920,"very much less-than"],[8921,"very much greater-than"],[8922,"less-than equal to or greater-than"],[8923,"greater-than equal to or less-than"],[8924,"equal to or less-than"],[8925,"equal to or greater-than"],[8926,"equal to or precedes"],[8927,"equal to or succeeds"],[8928,"does not precede or equal"],[8929,"does not succeed or equal"],[8930,"not square image of or equal to"],[8931,"not square original of or equal to"],[8932,"square image of or not equal to"],[8933,"square original of or not equal to"],[8934,"less-than but not equivalent to"],[8935,"greater-than but not equivalent to"],[8936,"precedes but not equivalent to"],[8937,"succeeds but not equivalent to"],[8938,"not normal subgroup of"],[8939,"does not contain as normal subgroup"],[8940,"not normal subgroup of or equal to"],[8941,"does not contain as normal subgroup or equal"],[8942,"vertival ellipsis"],[8943,"midline horizontal ellipsis"],[8944,"up right diagonal ellipsis"],[8945,"down right diagonal ellipsis"],[8946,"element of with long horizontal stroke"],[8947,"element of with vertical bar at end of horizontal stroke"],[8948,"small element of with vertical bar at end of horizontal stroke"],[8949,"element of with dot above"],[8950,"element of with overbar"],[8951,"small element of with overbar"],[8952,"element of with underbar"],[8953,"element of with two horizontal strokes"],[8954,"contains with long horizontal stroke"],[8955,"contains with vertical bar at end of horizontal stroke"],[8956,"small contains with vertical bar at end of horizontal stroke"],[8957,"contains with overbar"],[8958,"small contains with overbar"],[8959,"z notation bag membership"]]},{name:"Extended Latin",characters:[[192,"A - grave"],[193,"A - acute"],[194,"A - circumflex"],[195,"A - tilde"],[196,"A - diaeresis"],[197,"A - ring above"],[256,"A - macron"],[198,"ligature AE"],[199,"C - cedilla"],[200,"E - grave"],[201,"E - acute"],[202,"E - circumflex"],[203,"E - diaeresis"],[274,"E - macron"],[204,"I - grave"],[205,"I - acute"],[206,"I - circumflex"],[207,"I - diaeresis"],[298,"I - macron"],[208,"ETH"],[209,"N - tilde"],[210,"O - grave"],[211,"O - acute"],[212,"O - circumflex"],[213,"O - tilde"],[214,"O - diaeresis"],[216,"O - slash"],[332,"O - macron"],[338,"ligature OE"],[352,"S - caron"],[217,"U - grave"],[218,"U - acute"],[219,"U - circumflex"],[220,"U - diaeresis"],[362,"U - macron"],[221,"Y - acute"],[376,"Y - diaeresis"],[562,"Y - macron"],[222,"THORN"],[224,"a - grave"],[225,"a - acute"],[226,"a - circumflex"],[227,"a - tilde"],[228,"a - diaeresis"],[229,"a - ring above"],[257,"a - macron"],[230,"ligature ae"],[231,"c - cedilla"],[232,"e - grave"],[233,"e - acute"],[234,"e - circumflex"],[235,"e - diaeresis"],[275,"e - macron"],[236,"i - grave"],[237,"i - acute"],[238,"i - circumflex"],[239,"i - diaeresis"],[299,"i - macron"],[240,"eth"],[241,"n - tilde"],[242,"o - grave"],[243,"o - acute"],[244,"o - circumflex"],[245,"o - tilde"],[246,"o - diaeresis"],[248,"o slash"],[333,"o macron"],[339,"ligature oe"],[353,"s - caron"],[249,"u - grave"],[250,"u - acute"],[251,"u - circumflex"],[252,"u - diaeresis"],[363,"u - macron"],[253,"y - acute"],[254,"thorn"],[255,"y - diaeresis"],[563,"y - macron"],[913,"Alpha"],[914,"Beta"],[915,"Gamma"],[916,"Delta"],[917,"Epsilon"],[918,"Zeta"],[919,"Eta"],[920,"Theta"],[921,"Iota"],[922,"Kappa"],[923,"Lambda"],[924,"Mu"],[925,"Nu"],[926,"Xi"],[927,"Omicron"],[928,"Pi"],[929,"Rho"],[931,"Sigma"],[932,"Tau"],[933,"Upsilon"],[934,"Phi"],[935,"Chi"],[936,"Psi"],[937,"Omega"],[945,"alpha"],[946,"beta"],[947,"gamma"],[948,"delta"],[949,"epsilon"],[950,"zeta"],[951,"eta"],[952,"theta"],[953,"iota"],[954,"kappa"],[955,"lambda"],[956,"mu"],[957,"nu"],[958,"xi"],[959,"omicron"],[960,"pi"],[961,"rho"],[962,"final sigma"],[963,"sigma"],[964,"tau"],[965,"upsilon"],[966,"phi"],[967,"chi"],[968,"psi"],[969,"omega"]]},{name:"Greek Letters",characters:[[945,"small letter alpha"],[946,"small letter beta"],[947,"small letter gamma"],[948,"small letter delta"],[949,"small letter epsilon"],[950,"small letter zeta"],[951,"small letter eta"],[952,"small letter theta"],[953,"small letter iota"],[954,"small letter kappa"],[955,"small letter lambda"],[956,"small letter mu"],[957,"small letter nu"],[958,"small letter xi"],[959,"small letter omicron"],[960,"small letter pi"],[961,"small letter rho"],[962,"small letter final sigma"],[963,"small letter sigma"],[964,"small letter tau"],[965,"small letter upsilon"],[966,"small letter phi"],[967,"small letter chi"],[968,"small letter psi"],[969,"small letter omega"],[913,"capital letter alpha"],[914,"capital letter beta"],[915,"capital letter gamma"],[916,"capital letter delta"],[917,"capital letter epsilon"],[918,"capital letter zeta"],[919,"capital letter eta"],[920,"capital letter theta"],[921,"capital letter iota"],[922,"capital letter kappa"],[923,"capital letter lambda"],[924,"capital letter mu"],[925,"capital letter nu"],[926,"capital letter xi"],[927,"capital letter omicron"],[928,"capital letter pi"],[929,"capital letter rho"],[931,"capital letter sigma"],[932,"capital letter tau"],[933,"capital letter upsilon"],[934,"capital letter phi"],[935,"capital letter chi"],[936,"capital letter psi"],[937,"capital letter omega"]]},{name:"Arrows",characters:[[8592,"leftwards arrow"],[8593,"upwards arrow"],[8594,"rightwards arrow"],[8595,"downwards arrow"],[8596,"left right arrow"],[8597,"up down arrow"],[8598,"north west arrow"],[8599,"north east arrow"],[8600,"south east arrow"],[8601,"south west arrow"],[8602,"leftwards arrow with stroke"],[8603,"rightwards arrow with stroke"],[8604,"leftwards wave arrow"],[8605,"rightwards wave arrow"],[8606,"leftwards two headed arrow"],[8607,"upwards two headed arrow"],[8608,"rightwards two headed arrow"],[8609,"downwards two headed arrow"],[8610,"leftwards arrow with tail"],[8611,"rightwards arrow with tail"],[8612,"leftwards arrow from bar"],[8613,"upwards arrow from bar"],[8614,"rightwards arrow from bar"],[8615,"downwards arrow from bar"],[8616,"up down arrow with base"],[8617,"leftwards arrow with hook"],[8618,"rightwards arrow with hook"],[8619,"leftwards arrow with loop"],[8620,"rightwards arrow with loop"],[8621,"left right wave arrow"],[8622,"left right arrow with stroke"],[8623,"downwards zigzag arrow"],[8624,"upwards arrow with tip leftwards"],[8625,"upwards arrow with tip rightwards"],[8626,"downwards arrow with tip leftwards"],[8627,"downwards arrow with tip rightwards"],[8628,"rightwards arrow with corner downwards"],[8629,"downwards arrow with corner leftwards"],[8630,"anticlockwise top semicircle arrow"],[8631,"clockwise top semicircle arrow"],[8632,"north west arrow to long bar"],[8633,"leftwards arrow to bar over rightwards arrow to bar"],[8634,"anticlockwise open circle arrow"],[8635,"clockwise open circle arrow"],[8636,"leftwards harpoon with barb upwards"],[8637,"leftwards harpoon with barb downwards"],[8638,"upwards harpoon with barb rightwards"],[8639,"upwards harpoon with barb leftwards"],[8640,"rightwards harpoon with barb upwards"],[8641,"rightwards harpoon with barb downwards"],[8642,"downwards harpoon with barb rightwards"],[8643,"downwards harpoon with barb leftwards"],[8644,"rightwards arrow over leftwards arrow"],[8645,"upwards arrow leftwards of downwards arrow"],[8646,"leftwards arrow over rightwards arrow"],[8647,"leftwards paired arrows"],[8648,"upwards paired arrows"],[8649,"rightwards paired arrows"],[8650,"downwards paired arrows"],[8651,"leftwards harpoon over rightwards harpoon"],[8652,"rightwards harpoon over leftwards harpoon"],[8653,"leftwards double arrow with stroke"],[8654,"left right double arrow with stroke"],[8655,"rightwards double arrow with stroke"],[8656,"leftwards double arrow"],[8657,"upwards double arrow"],[8658,"rightwards double arrow"],[8659,"downwards double arrow"],[8660,"left right double arrow"],[8661,"up down double arrow"],[8662,"north west double arrow"],[8663,"north east double arrow"],[8664,"south east double arrow"],[8665,"south west double arrow"],[8666,"leftwards triple arrow"],[8667,"rightwards triple arrow"],[8668,"leftwards squiggle arrow"],[8669,"rightwards squiggle arrow"],[8670,"upwards arrow with double stroke"],[8671,"downwards arrow with double stroke"],[8672,"leftwards dashed arrow"],[8673,"upwards dashed arrow"],[8674,"rightwards dashed arrow"],[8675,"downwards dashed arrow"],[8676,"leftwards arrow to bar"],[8677,"rightwards arrow to bar"],[8678,"leftwards thick arrow"],[8679,"upwards thick arrow"],[8680,"rightwards thick arrow"],[8681,"downwards thick arrow"],[8682,"upwards thick arrow from bar"],[8683,"upwards thick arrow on pedestal"],[8684,"upwards thick arrow on pedestal with horizontal bar"],[8685,"upwards thick arrow on pedestal with vertical bar"],[8686,"upwards thick double arrow"],[8687,"upwards thick double arrow on pedestal"],[8688,"rightwards thick arrow from wal"],[8689,"north west arrow to corner"],[8690,"south east arrow to corner"],[8691,"up down thick arrow"],[8692,"right arrow with smal circle"],[8693,"downwards arrow leftwards of upwards arrow"],[8694,"Three rightwards arrows"],[8695,"leftwards arrow with vertical stroke"],[8696,"rightwards arrow with vertical stroke"],[8697,"left right arrow with vertical stroke"],[8698,"leftwards arrow with double vertical stroke"],[8699,"rightwards arrow with double vertical stroke"],[8700,"left right arrow with double vertical stroke"],[8701,"leftwards open-headed arrow"],[8702,"rightwards open-headed arrow"],[8703,"left right open-headed arrow"],[10146,"black small arrowhead"]]},{name:"Brackets",characters:[[40,"left parenthesis"],[41,"right parenthesis"],[91,"left square bracket"],[93,"right square bracket"],[123,"left curly bracket"],[125,"right curly bracket"],[12296,"left angle bracket"],[12297,"right angle bracket"]]},{name:"Other",characters:[[9633,"white square"],[9642,"black small square"],[9643,"white medium square"],[9745,"ballot box with check"],[9786,"white smiling face"],[9826,"black diamond suit"],[9984,"black safety scissors"],[9985,"upper blade scissors"],[9986,"black scissors"],[9987,"lower blade scissors"],[9988,"white scissors"],[9998,"lower right pencil"],[10022,"black diamond"],[10004,"heavy check mark"]]}]);return r.length>1?[{name:"All",characters:(t=r,o=e=>e.characters,(e=>{const r=[];for(let t=0,o=e.length;t<o;++t){if(!a(e[t]))throw new Error("Arr.flatten item "+t+" was not an array, input: "+e);c.apply(r,e[t])}return r})(u(t,o)))}].concat(r):r;var t,o},q=e=>{let r=e;return{get:()=>r,set:e=>{r=e}}},v=(e,r,t=0,a)=>{const o=e.indexOf(r,t);return-1!==o&&(!!i(a)||o+r.length<=a)},k=String.fromCodePoint;var y=tinymce.util.Tools.resolve("tinymce.util.I18n");const x=(e,r)=>{const t=[],a=r.toLowerCase();return(e=>{for(let o=0,i=e.length;o<i;o++)((e,r,t)=>!!v(k(e).toLowerCase(),t)||v(r.toLowerCase(),t)||v(r.toLowerCase().replace(/\s+/g,""),t))((r=e[o])[0],y.translate([r[1]]),a)&&t.push(r);var r})(e.characters),u(t,(e=>({text:e[1],value:k(e[0]),icon:k(e[0])})))},C="pattern",A=(e,t)=>{const a=()=>[{label:"Search",type:"input",name:C},{type:"collection",name:"results"}],i=1===t.length?q(p):q("All"),s=(e=>{let r=null;const t=()=>{o(r)||(clearTimeout(r),r=null)};return{cancel:t,throttle:(...a)=>{t(),r=setTimeout((()=>{r=null,e.apply(null,a)}),40)}}})((e=>{const r=e.getData().pattern;((e,r)=>{var a,o;(a=t,o=e=>e.name===i.get(),((e,r,t)=>{for(let a=0,o=e.length;a<o;a++){const o=e[a];if(r(o,a))return n.some(o);if(t(o,a))break}return n.none()})(a,o,l)).each((t=>{const a=x(t,r);e.setData({results:a})}))})(e,r)})),c={title:"Special Character",size:"normal",body:1===t.length?{type:"panel",items:a()}:{type:"tabpanel",tabs:u(t,(e=>({title:e.name,name:e.name,items:a()})))},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{pattern:"",results:x(t[0],"")},onAction:(t,a)=>{"results"===a.name&&(r(e,a.value),t.close())},onTabChange:(e,r)=>{i.set(r.newTabName),s.throttle(e)},onChange:(e,r)=>{r.name===C&&s.throttle(e)}};e.windowManager.open(c).focus(C)},O=e=>r=>{const t=()=>{r.setEnabled(e.selection.isEditable())};return e.on("NodeChange",t),t(),()=>{e.off("NodeChange",t)}};e.add("charmap",(e=>{(e=>{const r=e.options.register,t=e=>s(e)||a(e);r("charmap",{processor:t}),r("charmap_append",{processor:t})})(e);const t=b(e);return((e,r)=>{e.addCommand("mceShowCharmap",(()=>{A(e,r)}))})(e,t),(e=>{const r=()=>e.execCommand("mceShowCharmap");e.ui.registry.addButton("charmap",{icon:"insert-character",tooltip:"Special character",onAction:r,onSetup:O(e)}),e.ui.registry.addMenuItem("charmap",{icon:"insert-character",text:"Special character...",onAction:r,onSetup:O(e)})})(e),((e,r)=>{e.ui.registry.addAutocompleter("charmap",{trigger:":",columns:"auto",minChars:2,fetch:(e,t)=>new Promise(((t,a)=>{t(x(r,e))})),onAction:(r,t,a)=>{e.selection.setRng(t),e.insertContent(a),r.hide()}})})(e,t[0]),(e=>({getCharMap:()=>b(e),insertChar:t=>{r(e,t)}}))(e)}))}();
4
+ !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const r=(e,r)=>{const t=((e,r)=>e.dispatch("insertCustomChar",{chr:r}))(e,r).chr;e.execCommand("mceInsertContent",!1,t)},t=e=>r=>e===r,a=e=>"array"===(e=>{const r=typeof e;return null===e?"null":"object"===r&&Array.isArray(e)?"array":"object"===r&&(t=a=e,(o=String).prototype.isPrototypeOf(t)||(null===(i=a.constructor)||void 0===i?void 0:i.name)===o.name)?"string":r;var t,a,o,i})(e);const o=t(null),i=t(void 0),s=e=>"function"==typeof e,l=()=>false;class n{constructor(e,r){this.tag=e,this.value=r}static some(e){return new n(!0,e)}static none(){return n.singletonNone}fold(e,r){return this.tag?r(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?n.some(e(this.value)):n.none()}bind(e){return this.tag?e(this.value):n.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:n.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return null==e?n.none():n.some(e)}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}n.singletonNone=new n(!1);const c=Array.prototype.push,u=(e,r)=>{const t=e.length,a=new Array(t);for(let o=0;o<t;o++){const t=e[o];a[o]=r(t,o)}return a};var h=tinymce.util.Tools.resolve("tinymce.util.Tools");const d=e=>r=>r.options.get(e),w=d("charmap"),g=d("charmap_append"),m=h.isArray,p="User Defined",f=e=>{return m(e)?(r=e,h.grep(r,e=>m(e)&&2===e.length)):"function"==typeof e?e():[];var r},b=e=>{const r=((e,r)=>{const t=w(e);t&&(r=[{name:p,characters:f(t)}]);const a=g(e);if(a){const e=h.grep(r,e=>e.name===p);return e.length?(e[0].characters=[...e[0].characters,...f(a)],r):r.concat({name:p,characters:f(a)})}return r})(e,[{name:"Currency",characters:[[36,"dollar sign"],[162,"cent sign"],[8364,"euro sign"],[163,"pound sign"],[165,"yen sign"],[164,"currency sign"],[8352,"euro-currency sign"],[8353,"colon sign"],[8354,"cruzeiro sign"],[8355,"french franc sign"],[8356,"lira sign"],[8357,"mill sign"],[8358,"naira sign"],[8359,"peseta sign"],[8360,"rupee sign"],[8361,"won sign"],[8362,"new sheqel sign"],[8363,"dong sign"],[8365,"kip sign"],[8366,"tugrik sign"],[8367,"drachma sign"],[8368,"german penny symbol"],[8369,"peso sign"],[8370,"guarani sign"],[8371,"austral sign"],[8372,"hryvnia sign"],[8373,"cedi sign"],[8374,"livre tournois sign"],[8375,"spesmilo sign"],[8376,"tenge sign"],[8377,"indian rupee sign"],[8378,"turkish lira sign"],[8379,"nordic mark sign"],[8380,"manat sign"],[8381,"ruble sign"],[20870,"yen character"],[20803,"yuan character"],[22291,"yuan character, in hong kong and taiwan"],[22278,"yen/yuan character variant one"]]},{name:"Text",characters:[[169,"copyright sign"],[174,"registered sign"],[8482,"trade mark sign"],[8240,"per mille sign"],[181,"micro sign"],[183,"middle dot"],[8226,"bullet"],[8230,"three dot leader"],[8242,"minutes / feet"],[8243,"seconds / inches"],[167,"section sign"],[182,"paragraph sign"],[223,"sharp s / ess-zed"]]},{name:"Quotations",characters:[[8249,"single left-pointing angle quotation mark"],[8250,"single right-pointing angle quotation mark"],[171,"left pointing guillemet"],[187,"right pointing guillemet"],[8216,"left single quotation mark"],[8217,"right single quotation mark"],[8220,"left double quotation mark"],[8221,"right double quotation mark"],[8218,"single low-9 quotation mark"],[8222,"double low-9 quotation mark"],[60,"less-than sign"],[62,"greater-than sign"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8211,"en dash"],[8212,"em dash"],[175,"macron"],[8254,"overline"],[164,"currency sign"],[166,"broken bar"],[168,"diaeresis"],[161,"inverted exclamation mark"],[191,"turned question mark"],[710,"circumflex accent"],[732,"small tilde"],[176,"degree sign"],[8722,"minus sign"],[177,"plus-minus sign"],[247,"division sign"],[8260,"fraction slash"],[215,"multiplication sign"],[185,"superscript one"],[178,"superscript two"],[179,"superscript three"],[188,"fraction one quarter"],[189,"fraction one half"],[190,"fraction three quarters"]]},{name:"Mathematical",characters:[[8704,"for all"],[8705,"complement"],[8706,"partial differential"],[8707,"there exist"],[8708,"there does not exist"],[8709,"empty set"],[8710,"increment"],[8711,"nabla"],[8712,"element of"],[8713,"not an element of"],[8714,"small element of"],[8715,"contains as member"],[8716,"does not contain as member"],[8717,"small contains as member"],[8718,"end of proof"],[8719,"n-ary product"],[8720,"n-ary coproduct"],[8721,"n-ary summation"],[8722,"minus sign"],[8723,"minus-or-plus sign"],[8724,"dot plus"],[8725,"division slash"],[8726,"set minus"],[8727,"asterisk operator"],[8728,"ring operator"],[8729,"bullet operator"],[8730,"square root"],[8731,"cube root"],[8732,"fourth root"],[8733,"proportional to"],[8734,"infinity"],[8735,"right angle"],[8736,"angle"],[8737,"measured angle"],[8738,"spherical angle"],[8739,"divides"],[8740,"does not divide"],[8741,"parallel to"],[8742,"not parallel to"],[8743,"logical and"],[8744,"logical or"],[8745,"intersection"],[8746,"union"],[8747,"integral"],[8748,"double integral"],[8749,"triple integral"],[8750,"contour integral"],[8751,"surface integral"],[8752,"volume integral"],[8753,"clockwise integral"],[8754,"clockwise contour integral"],[8755,"anticlockwise contour integral"],[8756,"therefore"],[8757,"because"],[8758,"ratio"],[8759,"proportion"],[8760,"dot minus"],[8761,"excess"],[8762,"geometric proportion"],[8763,"homothetic"],[8764,"tilde operator"],[8765,"reversed tilde"],[8766,"inverted lazy s"],[8767,"sine wave"],[8768,"wreath product"],[8769,"not tilde"],[8770,"minus tilde"],[8771,"asymptotically equal to"],[8772,"not asymptotically equal to"],[8773,"approximately equal to"],[8774,"approximately but not actually equal to"],[8775,"neither approximately nor actually equal to"],[8776,"almost equal to"],[8777,"not almost equal to"],[8778,"almost equal or equal to"],[8779,"triple tilde"],[8780,"all equal to"],[8781,"equivalent to"],[8782,"geometrically equivalent to"],[8783,"difference between"],[8784,"approaches the limit"],[8785,"geometrically equal to"],[8786,"approximately equal to or the image of"],[8787,"image of or aproximately equal to"],[8788,"colon equals"],[8789,"equals colon"],[8790,"ring in equal to"],[8791,"ring equal to"],[8792,"corresponds to"],[8793,"estimates"],[8794,"equiangular to"],[8795,"star equals"],[8796,"delta equal to"],[8797,"equal to by definition"],[8798,"measured by"],[8799,"questioned equal to"],[8800,"not equal to"],[8801,"identical to"],[8802,"not identical to"],[8803,"strictly equivalent to"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8806,"less-than over equal to"],[8807,"greater-than over equal to"],[8808,"less-than but not equal to"],[8809,"greater-than but not equal to"],[8810,"much less-than"],[8811,"much greater-than"],[8812,"between"],[8813,"not equivalent to"],[8814,"not less-than"],[8815,"not greater-than"],[8816,"neither less-than nor equal to"],[8817,"neither greater-than nor equal to"],[8818,"less-than or equivalent to"],[8819,"greater-than or equivalent to"],[8820,"neither less-than nor equivalent to"],[8821,"neither greater-than nor equivalent to"],[8822,"less-than or greater-than"],[8823,"greater-than or less-than"],[8824,"neither less-than nor greater-than"],[8825,"neither greater-than nor less-than"],[8826,"precedes"],[8827,"succeeds"],[8828,"precedes or equal to"],[8829,"succeeds or equal to"],[8830,"precedes or equivalent to"],[8831,"succeeds or equivalent to"],[8832,"does not precede"],[8833,"does not succeed"],[8834,"subset of"],[8835,"superset of"],[8836,"not a subset of"],[8837,"not a superset of"],[8838,"subset of or equal to"],[8839,"superset of or equal to"],[8840,"neither a subset of nor equal to"],[8841,"neither a superset of nor equal to"],[8842,"subset of with not equal to"],[8843,"superset of with not equal to"],[8844,"multiset"],[8845,"multiset multiplication"],[8846,"multiset union"],[8847,"square image of"],[8848,"square original of"],[8849,"square image of or equal to"],[8850,"square original of or equal to"],[8851,"square cap"],[8852,"square cup"],[8853,"circled plus"],[8854,"circled minus"],[8855,"circled times"],[8856,"circled division slash"],[8857,"circled dot operator"],[8858,"circled ring operator"],[8859,"circled asterisk operator"],[8860,"circled equals"],[8861,"circled dash"],[8862,"squared plus"],[8863,"squared minus"],[8864,"squared times"],[8865,"squared dot operator"],[8866,"right tack"],[8867,"left tack"],[8868,"down tack"],[8869,"up tack"],[8870,"assertion"],[8871,"models"],[8872,"true"],[8873,"forces"],[8874,"triple vertical bar right turnstile"],[8875,"double vertical bar double right turnstile"],[8876,"does not prove"],[8877,"not true"],[8878,"does not force"],[8879,"negated double vertical bar double right turnstile"],[8880,"precedes under relation"],[8881,"succeeds under relation"],[8882,"normal subgroup of"],[8883,"contains as normal subgroup"],[8884,"normal subgroup of or equal to"],[8885,"contains as normal subgroup or equal to"],[8886,"original of"],[8887,"image of"],[8888,"multimap"],[8889,"hermittan conjugate matrix"],[8890,"intercalate"],[8891,"xor"],[8892,"nand"],[8893,"nor"],[8894,"right angle with arc"],[8895,"right triangle"],[8896,"n-ary logical and"],[8897,"n-ary logical or"],[8898,"n-ary intersection"],[8899,"n-ary union"],[8900,"diamond operator"],[8901,"dot operator"],[8902,"star operator"],[8903,"division times"],[8904,"bowtie"],[8905,"left normal factor semidirect product"],[8906,"right normal factor semidirect product"],[8907,"left semidirect product"],[8908,"right semidirect product"],[8909,"reversed tilde equals"],[8910,"curly logical or"],[8911,"curly logical and"],[8912,"double subset"],[8913,"double superset"],[8914,"double intersection"],[8915,"double union"],[8916,"pitchfork"],[8917,"equal and parallel to"],[8918,"less-than with dot"],[8919,"greater-than with dot"],[8920,"very much less-than"],[8921,"very much greater-than"],[8922,"less-than equal to or greater-than"],[8923,"greater-than equal to or less-than"],[8924,"equal to or less-than"],[8925,"equal to or greater-than"],[8926,"equal to or precedes"],[8927,"equal to or succeeds"],[8928,"does not precede or equal"],[8929,"does not succeed or equal"],[8930,"not square image of or equal to"],[8931,"not square original of or equal to"],[8932,"square image of or not equal to"],[8933,"square original of or not equal to"],[8934,"less-than but not equivalent to"],[8935,"greater-than but not equivalent to"],[8936,"precedes but not equivalent to"],[8937,"succeeds but not equivalent to"],[8938,"not normal subgroup of"],[8939,"does not contain as normal subgroup"],[8940,"not normal subgroup of or equal to"],[8941,"does not contain as normal subgroup or equal"],[8942,"vertival ellipsis"],[8943,"midline horizontal ellipsis"],[8944,"up right diagonal ellipsis"],[8945,"down right diagonal ellipsis"],[8946,"element of with long horizontal stroke"],[8947,"element of with vertical bar at end of horizontal stroke"],[8948,"small element of with vertical bar at end of horizontal stroke"],[8949,"element of with dot above"],[8950,"element of with overbar"],[8951,"small element of with overbar"],[8952,"element of with underbar"],[8953,"element of with two horizontal strokes"],[8954,"contains with long horizontal stroke"],[8955,"contains with vertical bar at end of horizontal stroke"],[8956,"small contains with vertical bar at end of horizontal stroke"],[8957,"contains with overbar"],[8958,"small contains with overbar"],[8959,"z notation bag membership"]]},{name:"Extended Latin",characters:[[192,"A - grave"],[193,"A - acute"],[194,"A - circumflex"],[195,"A - tilde"],[196,"A - diaeresis"],[197,"A - ring above"],[256,"A - macron"],[198,"ligature AE"],[199,"C - cedilla"],[200,"E - grave"],[201,"E - acute"],[202,"E - circumflex"],[203,"E - diaeresis"],[274,"E - macron"],[204,"I - grave"],[205,"I - acute"],[206,"I - circumflex"],[207,"I - diaeresis"],[298,"I - macron"],[208,"ETH"],[209,"N - tilde"],[210,"O - grave"],[211,"O - acute"],[212,"O - circumflex"],[213,"O - tilde"],[214,"O - diaeresis"],[216,"O - slash"],[332,"O - macron"],[338,"ligature OE"],[352,"S - caron"],[217,"U - grave"],[218,"U - acute"],[219,"U - circumflex"],[220,"U - diaeresis"],[362,"U - macron"],[221,"Y - acute"],[376,"Y - diaeresis"],[562,"Y - macron"],[222,"THORN"],[224,"a - grave"],[225,"a - acute"],[226,"a - circumflex"],[227,"a - tilde"],[228,"a - diaeresis"],[229,"a - ring above"],[257,"a - macron"],[230,"ligature ae"],[231,"c - cedilla"],[232,"e - grave"],[233,"e - acute"],[234,"e - circumflex"],[235,"e - diaeresis"],[275,"e - macron"],[236,"i - grave"],[237,"i - acute"],[238,"i - circumflex"],[239,"i - diaeresis"],[299,"i - macron"],[240,"eth"],[241,"n - tilde"],[242,"o - grave"],[243,"o - acute"],[244,"o - circumflex"],[245,"o - tilde"],[246,"o - diaeresis"],[248,"o slash"],[333,"o macron"],[339,"ligature oe"],[353,"s - caron"],[249,"u - grave"],[250,"u - acute"],[251,"u - circumflex"],[252,"u - diaeresis"],[363,"u - macron"],[253,"y - acute"],[254,"thorn"],[255,"y - diaeresis"],[563,"y - macron"],[913,"Alpha"],[914,"Beta"],[915,"Gamma"],[916,"Delta"],[917,"Epsilon"],[918,"Zeta"],[919,"Eta"],[920,"Theta"],[921,"Iota"],[922,"Kappa"],[923,"Lambda"],[924,"Mu"],[925,"Nu"],[926,"Xi"],[927,"Omicron"],[928,"Pi"],[929,"Rho"],[931,"Sigma"],[932,"Tau"],[933,"Upsilon"],[934,"Phi"],[935,"Chi"],[936,"Psi"],[937,"Omega"],[945,"alpha"],[946,"beta"],[947,"gamma"],[948,"delta"],[949,"epsilon"],[950,"zeta"],[951,"eta"],[952,"theta"],[953,"iota"],[954,"kappa"],[955,"lambda"],[956,"mu"],[957,"nu"],[958,"xi"],[959,"omicron"],[960,"pi"],[961,"rho"],[962,"final sigma"],[963,"sigma"],[964,"tau"],[965,"upsilon"],[966,"phi"],[967,"chi"],[968,"psi"],[969,"omega"]]},{name:"Greek Letters",characters:[[945,"small letter alpha"],[946,"small letter beta"],[947,"small letter gamma"],[948,"small letter delta"],[949,"small letter epsilon"],[950,"small letter zeta"],[951,"small letter eta"],[952,"small letter theta"],[953,"small letter iota"],[954,"small letter kappa"],[955,"small letter lambda"],[956,"small letter mu"],[957,"small letter nu"],[958,"small letter xi"],[959,"small letter omicron"],[960,"small letter pi"],[961,"small letter rho"],[962,"small letter final sigma"],[963,"small letter sigma"],[964,"small letter tau"],[965,"small letter upsilon"],[966,"small letter phi"],[967,"small letter chi"],[968,"small letter psi"],[969,"small letter omega"],[913,"capital letter alpha"],[914,"capital letter beta"],[915,"capital letter gamma"],[916,"capital letter delta"],[917,"capital letter epsilon"],[918,"capital letter zeta"],[919,"capital letter eta"],[920,"capital letter theta"],[921,"capital letter iota"],[922,"capital letter kappa"],[923,"capital letter lambda"],[924,"capital letter mu"],[925,"capital letter nu"],[926,"capital letter xi"],[927,"capital letter omicron"],[928,"capital letter pi"],[929,"capital letter rho"],[931,"capital letter sigma"],[932,"capital letter tau"],[933,"capital letter upsilon"],[934,"capital letter phi"],[935,"capital letter chi"],[936,"capital letter psi"],[937,"capital letter omega"]]},{name:"Arrows",characters:[[8592,"leftwards arrow"],[8593,"upwards arrow"],[8594,"rightwards arrow"],[8595,"downwards arrow"],[8596,"left right arrow"],[8597,"up down arrow"],[8598,"north west arrow"],[8599,"north east arrow"],[8600,"south east arrow"],[8601,"south west arrow"],[8602,"leftwards arrow with stroke"],[8603,"rightwards arrow with stroke"],[8604,"leftwards wave arrow"],[8605,"rightwards wave arrow"],[8606,"leftwards two headed arrow"],[8607,"upwards two headed arrow"],[8608,"rightwards two headed arrow"],[8609,"downwards two headed arrow"],[8610,"leftwards arrow with tail"],[8611,"rightwards arrow with tail"],[8612,"leftwards arrow from bar"],[8613,"upwards arrow from bar"],[8614,"rightwards arrow from bar"],[8615,"downwards arrow from bar"],[8616,"up down arrow with base"],[8617,"leftwards arrow with hook"],[8618,"rightwards arrow with hook"],[8619,"leftwards arrow with loop"],[8620,"rightwards arrow with loop"],[8621,"left right wave arrow"],[8622,"left right arrow with stroke"],[8623,"downwards zigzag arrow"],[8624,"upwards arrow with tip leftwards"],[8625,"upwards arrow with tip rightwards"],[8626,"downwards arrow with tip leftwards"],[8627,"downwards arrow with tip rightwards"],[8628,"rightwards arrow with corner downwards"],[8629,"downwards arrow with corner leftwards"],[8630,"anticlockwise top semicircle arrow"],[8631,"clockwise top semicircle arrow"],[8632,"north west arrow to long bar"],[8633,"leftwards arrow to bar over rightwards arrow to bar"],[8634,"anticlockwise open circle arrow"],[8635,"clockwise open circle arrow"],[8636,"leftwards harpoon with barb upwards"],[8637,"leftwards harpoon with barb downwards"],[8638,"upwards harpoon with barb rightwards"],[8639,"upwards harpoon with barb leftwards"],[8640,"rightwards harpoon with barb upwards"],[8641,"rightwards harpoon with barb downwards"],[8642,"downwards harpoon with barb rightwards"],[8643,"downwards harpoon with barb leftwards"],[8644,"rightwards arrow over leftwards arrow"],[8645,"upwards arrow leftwards of downwards arrow"],[8646,"leftwards arrow over rightwards arrow"],[8647,"leftwards paired arrows"],[8648,"upwards paired arrows"],[8649,"rightwards paired arrows"],[8650,"downwards paired arrows"],[8651,"leftwards harpoon over rightwards harpoon"],[8652,"rightwards harpoon over leftwards harpoon"],[8653,"leftwards double arrow with stroke"],[8654,"left right double arrow with stroke"],[8655,"rightwards double arrow with stroke"],[8656,"leftwards double arrow"],[8657,"upwards double arrow"],[8658,"rightwards double arrow"],[8659,"downwards double arrow"],[8660,"left right double arrow"],[8661,"up down double arrow"],[8662,"north west double arrow"],[8663,"north east double arrow"],[8664,"south east double arrow"],[8665,"south west double arrow"],[8666,"leftwards triple arrow"],[8667,"rightwards triple arrow"],[8668,"leftwards squiggle arrow"],[8669,"rightwards squiggle arrow"],[8670,"upwards arrow with double stroke"],[8671,"downwards arrow with double stroke"],[8672,"leftwards dashed arrow"],[8673,"upwards dashed arrow"],[8674,"rightwards dashed arrow"],[8675,"downwards dashed arrow"],[8676,"leftwards arrow to bar"],[8677,"rightwards arrow to bar"],[8678,"leftwards thick arrow"],[8679,"upwards thick arrow"],[8680,"rightwards thick arrow"],[8681,"downwards thick arrow"],[8682,"upwards thick arrow from bar"],[8683,"upwards thick arrow on pedestal"],[8684,"upwards thick arrow on pedestal with horizontal bar"],[8685,"upwards thick arrow on pedestal with vertical bar"],[8686,"upwards thick double arrow"],[8687,"upwards thick double arrow on pedestal"],[8688,"rightwards thick arrow from wal"],[8689,"north west arrow to corner"],[8690,"south east arrow to corner"],[8691,"up down thick arrow"],[8692,"right arrow with smal circle"],[8693,"downwards arrow leftwards of upwards arrow"],[8694,"Three rightwards arrows"],[8695,"leftwards arrow with vertical stroke"],[8696,"rightwards arrow with vertical stroke"],[8697,"left right arrow with vertical stroke"],[8698,"leftwards arrow with double vertical stroke"],[8699,"rightwards arrow with double vertical stroke"],[8700,"left right arrow with double vertical stroke"],[8701,"leftwards open-headed arrow"],[8702,"rightwards open-headed arrow"],[8703,"left right open-headed arrow"],[10146,"black small arrowhead"]]},{name:"Brackets",characters:[[40,"left parenthesis"],[41,"right parenthesis"],[91,"left square bracket"],[93,"right square bracket"],[123,"left curly bracket"],[125,"right curly bracket"],[12296,"left angle bracket"],[12297,"right angle bracket"]]},{name:"Other",characters:[[9633,"white square"],[9642,"black small square"],[9643,"white medium square"],[9745,"ballot box with check"],[9786,"white smiling face"],[9826,"black diamond suit"],[9984,"black safety scissors"],[9985,"upper blade scissors"],[9986,"black scissors"],[9987,"lower blade scissors"],[9988,"white scissors"],[9998,"lower right pencil"],[10022,"black diamond"],[10004,"heavy check mark"]]}]);return r.length>1?[{name:"All",characters:(t=r,o=e=>e.characters,(e=>{const r=[];for(let t=0,o=e.length;t<o;++t){if(!a(e[t]))throw new Error("Arr.flatten item "+t+" was not an array, input: "+e);c.apply(r,e[t])}return r})(u(t,o)))}].concat(r):r;var t,o},q=e=>{let r=e;return{get:()=>r,set:e=>{r=e}}},v=(e,r,t=0,a)=>{const o=e.indexOf(r,t);return-1!==o&&(!!i(a)||o+r.length<=a)},k=String.fromCodePoint;var y=tinymce.util.Tools.resolve("tinymce.util.I18n");const x=(e,r)=>{const t=[],a=r.toLowerCase();return((e,r)=>{for(let t=0,a=e.length;t<a;t++)r(e[t])})(e.characters,e=>{((e,r,t)=>!!v(k(e).toLowerCase(),t)||v(r.toLowerCase(),t)||v(r.toLowerCase().replace(/\s+/g,""),t))(e[0],y.translate([e[1]]),a)&&t.push(e)}),u(t,e=>({text:e[1],value:k(e[0]),icon:k(e[0])}))},C="pattern",A=(e,t)=>{const a=()=>[{label:"Search",type:"input",name:C},{type:"collection",name:"results"}],i=1===t.length?q(p):q("All"),s=(e=>{let r=null;const t=()=>{o(r)||(clearTimeout(r),r=null)};return{cancel:t,throttle:(...a)=>{t(),r=setTimeout(()=>{r=null,e.apply(null,a)},40)}}})(e=>{const r=e.getData().pattern;((e,r)=>{var a,o;(a=t,o=e=>e.name===i.get(),((e,r,t)=>{for(let a=0,o=e.length;a<o;a++){const o=e[a];if(r(o,a))return n.some(o);if(t(o,a))break}return n.none()})(a,o,l)).each(t=>{const a=x(t,r);e.setData({results:a})})})(e,r)}),c={title:"Special Character",size:"normal",body:1===t.length?{type:"panel",items:a()}:{type:"tabpanel",tabs:u(t,e=>({title:e.name,name:e.name,items:a()}))},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{pattern:"",results:x(t[0],"")},onAction:(t,a)=>{"results"===a.name&&(r(e,a.value),t.close())},onTabChange:(e,r)=>{i.set(r.newTabName),s.throttle(e)},onChange:(e,r)=>{r.name===C&&s.throttle(e)}};e.windowManager.open(c).focus(C)},O=e=>r=>{const t=()=>{r.setEnabled(e.selection.isEditable())};return e.on("NodeChange",t),t(),()=>{e.off("NodeChange",t)}};e.add("charmap",e=>{(e=>{const r=e.options.register,t=e=>s(e)||a(e);r("charmap",{processor:t}),r("charmap_append",{processor:t})})(e);const t=b(e);return((e,r)=>{e.addCommand("mceShowCharmap",()=>{A(e,r)})})(e,t),(e=>{const r=()=>e.execCommand("mceShowCharmap");e.ui.registry.addButton("charmap",{icon:"insert-character",tooltip:"Special character",onAction:r,onSetup:O(e)}),e.ui.registry.addMenuItem("charmap",{icon:"insert-character",text:"Special character...",onAction:r,onSetup:O(e)})})(e),((e,r)=>{e.ui.registry.addAutocompleter("charmap",{trigger:":",columns:"auto",minChars:2,fetch:(e,t)=>new Promise((t,a)=>{t(x(r,e))}),onAction:(r,t,a)=>{e.selection.setRng(t),e.insertContent(a),r.hide()}})})(e,t[0]),(e=>({getCharMap:()=>b(e),insertChar:t=>{r(e,t)}}))(e)})}();
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * TinyMCE version 7.0.0 (TBD)
3
3
  */
4
- !function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("code",(e=>((e=>{e.addCommand("mceCodeEditor",(()=>{(e=>{const o=(e=>e.getContent({source_view:!0}))(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:o},onSubmit:o=>{((e,o)=>{e.focus(),e.undoManager.transact((()=>{e.setContent(o)})),e.selection.setCursorLocation(),e.nodeChanged()})(e,o.getData().code),o.close()}})})(e)}))})(e),(e=>{const o=()=>e.execCommand("mceCodeEditor");e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:o}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:o})})(e),{})))}();
4
+ !function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("code",e=>((e=>{e.addCommand("mceCodeEditor",()=>{(e=>{const o=(e=>e.getContent({source_view:!0}))(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:o},onSubmit:o=>{((e,o)=>{e.focus(),e.undoManager.transact(()=>{e.setContent(o)}),e.selection.setCursorLocation(),e.nodeChanged()})(e,o.getData().code),o.close()}})})(e)})})(e),(e=>{const o=()=>e.execCommand("mceCodeEditor");e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:o}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:o})})(e),{}))}();