/*! For license information please see 3672.ec397cd3.bundle.js.LICENSE.txt */ (self.webpackChunkamis_rpc_design=self.webpackChunkamis_rpc_design||[]).push([[3672],{80214:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,n,r){if("string"!=typeof e)return new t.Bootstrap(e,n,r);var a=document.querySelectorAll(e);n&&n.iframe_document&&(a=n.iframe_document.querySelectorAll(e));for(var o=[],i=0;i")},closeTagString:function(e){return"")},isFirstSibling:function t(n,r){void 0===r&&(r=!0);for(var a=n.previousSibling;a&&r&&e.node.hasClass(a,"fr-marker");)a=a.previousSibling;return!a||a.nodeType===Node.TEXT_NODE&&""===a.textContent&&t(a)},isLastSibling:function t(n,r){void 0===r&&(r=!0);for(var a=n.nextSibling;a&&r&&e.node.hasClass(a,"fr-marker");)a=a.nextSibling;return!a||a.nodeType===Node.TEXT_NODE&&""===a.textContent&&t(a)},isList:function(e){return!!e&&0<=["UL","OL"].indexOf(e.tagName)},isLink:function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE&&"a"===e.tagName.toLowerCase()},isElement:s,contents:r,isVoid:function(e){return e&&e.nodeType===Node.ELEMENT_NODE&&0<=t.VOID_ELEMENTS.indexOf((e.tagName||"").toLowerCase())},hasFocus:function(t){return t===e.doc.activeElement&&(!e.doc.hasFocus||e.doc.hasFocus())&&Boolean(s(t)||t.type||t.href||~t.tabIndex)},isEditable:function(e){return(!e.getAttribute||"false"!==e.getAttribute("contenteditable"))&&["STYLE","SCRIPT"].indexOf(e.tagName)<0},isDeletable:function(e){return e&&e.nodeType===Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=(e.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(e,t){return e instanceof n&&(e=e.get(0)),e&&e.classList&&e.classList.contains(t)},filter:function(t){return e.browser.msie?t:{acceptNode:t}}}},Object.assign(t.DEFAULTS,{htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video","wbr"],htmlRemoveTags:["script","style"],htmlAllowedAttrs:["accept","accept-charset","accesskey","action","align","allowfullscreen","allowtransparency","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","data-.*","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap"],htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,fullPage:!1}),t.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"},t.MODULES.clean=function(e){var n,r,a,o,i=e.$;function s(t){if(t.nodeType===Node.ELEMENT_NODE&&t.getAttribute("class")&&0<=t.getAttribute("class").indexOf("fr-marker"))return!1;var n,r=e.node.contents(t),a=[];for(n=0;n/g,">"):t.textContent.replace(/&/g,"&").replace(//g,">").replace(/\u00A0/g," ").replace(/\u0009/g,"");if(t.nodeType!==Node.ELEMENT_NODE)return t.outerHTML;if(t.nodeType===Node.ELEMENT_NODE&&0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(t.tagName))return t.outerHTML;if(t.nodeType===Node.ELEMENT_NODE&&"svg"===t.tagName){var r=document.createElement("div"),a=t.cloneNode(!0);return r.appendChild(a),r.innerHTML}if("IFRAME"===t.tagName)return t.outerHTML.replace(/</g,"<").replace(/>/g,">");var o=t.childNodes;if(0===o.length)return t.outerHTML;for(var i="",s=0;s)<[^<]*)*<\/script>/gi,(function(e){return c.push(e),"[FROALA.EDITOR.SCRIPT ".concat(c.length-1,"]")}))).replace(/)<[^<]*)*<\/noscript>/gi,(function(e){return c.push(e),"[FROALA.EDITOR.NOSCRIPT ".concat(c.length-1,"]")}))).replace(/")}))).replace(/":n;var i=f(e.html.extractNodeAttrs(r,"head")),s=f(e.html.extractNodeAttrs(r,"body"));return"".concat(a,"").concat(n,"").concat(t,"")}return t}(a,o,t))}function h(t){var n=e.doc.createElement("DIV");return n.innerText=t,n.textContent}function g(i){for(var s=e.node.contents(i),l=0;l"))}(i),i.nodeType===Node.ELEMENT_NODE&&(i.getAttribute("data-fr-src")&&0!==i.getAttribute("data-fr-src").indexOf("blob:")&&i.setAttribute("data-fr-src",e.helpers.sanitizeURL(h(i.getAttribute("data-fr-src")))),i.getAttribute("href")&&i.setAttribute("href",e.helpers.sanitizeURL(h(i.getAttribute("href")))),i.getAttribute("src")&&i.setAttribute("src",e.helpers.sanitizeURL(h(i.getAttribute("src")))),0<=["TABLE","TBODY","TFOOT","TR"].indexOf(i.tagName)&&(i.innerHTML=i.innerHTML.trim())),!e.opts.pasteAllowLocalImages&&i.nodeType===Node.ELEMENT_NODE&&"IMG"===i.tagName&&i.getAttribute("data-fr-src")&&0===i.getAttribute("data-fr-src").indexOf("file://"))return i.parentNode.removeChild(i),!1;if(i.nodeType===Node.ELEMENT_NODE&&t.HTML5Map[i.tagName]&&""===e.node.attributes(i)){var s=t.HTML5Map[i.tagName],l="<".concat(s,">").concat(i.innerHTML,"");i.insertAdjacentHTML("beforebegin",l),(i=i.previousSibling).parentNode.removeChild(i.nextSibling)}if(e.opts.htmlAllowComments||i.nodeType!==Node.COMMENT_NODE)if(i.tagName&&i.tagName.match(r))"STYLE"==i.tagName&&e.helpers.isMac()&&function(){for(var e,t=i.innerHTML.trim(),n=[],r=/{([^}]+)}/g;e=r.exec(t);)n.push(e[1]);for(var a=function(e){var r=t.substring(0,t.indexOf("{")).trim();i.parentNode.querySelectorAll(r).forEach((function(t){t.removeAttribute("class"),t.setAttribute("style",n[e])})),t=t.substring(t.indexOf("}")+1)},o=0;-1!=t.indexOf("{");o++)a(o)}(),i.parentNode.removeChild(i);else if(i.tagName&&!i.tagName.match(n))"svg"===i.tagName?i.parentNode.removeChild(i):e.browser.safari&&"path"===i.tagName&&i.parentNode&&"svg"===i.parentNode.tagName||(i.outerHTML=i.innerHTML);else{var c=i.attributes;if(c)for(var f=c.length-1;0<=f;f--){var p=c[f],u=p.nodeName.match(a),g=null;"style"===p.nodeName&&e.opts.htmlAllowedStyleProps.length&&(g=p.value.match(o)),u&&g?p.value=d(g.join(";")):u&&("style"!==p.nodeName||g)||i.removeAttribute(p.nodeName)}}else 0!==i.data.indexOf("[FROALA.EDITOR")&&i.parentNode.removeChild(i)}(i)}return{_init:function(){e.opts.fullPage&&i.merge(e.opts.htmlAllowedTags,["head","title","style","link","base","body","html","meta"])},html:function(t,s,l,c){void 0===s&&(s=[]),void 0===l&&(l=[]),void 0===c&&(c=!1);var d,f=i.merge([],e.opts.htmlAllowedTags);for(d=0;d").concat(n[a].innerHTML,""));r&&e.selection.restore()}},tables:function(){!function(){for(var t=e.el.querySelectorAll("tr"),n=0;n ul, ol > ol, ul > ol, ol > ul"),n=0;n"))}}(),function(){for(var t=e.el.querySelectorAll("li > ul, li > ol"),n=0;n ul, li > ol"),n=0;n");else if(r.previousSibling&&"BR"===r.previousSibling.tagName){for(var a=r.previousSibling.previousSibling;a&&e.node.hasClass(a,"fr-marker");)a=a.previousSibling;a&&"BR"!==a.tagName&&i(r.previousSibling).remove()}}}(),function(){for(var t=e.el.querySelectorAll("li:empty"),n=0;n/g,"%3E").replace(/"/g,"%22").replace(/ /g,"%20"),new RegExp("^".concat(t.LinkRegExHTTP).concat(t.LinkRegExEnd,"$"),"gi").test(e))},getAlignment:function(e){e.css||(e=a(e));var t=(e.css("text-align")||"").replace(/-(.*)-/g,"");if(["left","right","justify","center"].indexOf(t)<0){if(!r){var o=a('
..
'));a("body").first().append(o);var i=o.find("#s1").get(0).getBoundingClientRect().left,s=o.find("#s2").get(0).getBoundingClientRect().left;o.remove(),r=i=(window.innerHeight||document.documentElement.clientHeight)}}},t.MODULES.events=function(e){var n,r=e.$,a={};function o(e,t,n){u(e,t,n)}function i(n){if(void 0===n&&(n=!0),!e.$wp)return!1;if(e.helpers.isIOS()&&e.$win.get(0).focus(),e.core.hasFocus())return!1;if(!e.core.hasFocus()&&n){var a=e.$win.scrollTop();if(e.browser.msie&&e.$box&&e.$box.css("position","fixed"),e.browser.msie&&e.$wp&&e.$wp.css("overflow","visible"),e.browser.msie&&e.$sc&&e.$sc.css("position","fixed"),c(),e.el.focus(),e.events.trigger("focus"),l(),e.browser.msie&&e.$sc&&e.$sc.css("position",""),e.browser.msie&&e.$box&&e.$box.css("position",""),e.browser.msie&&e.$wp&&e.$wp.css("overflow","auto"),a!==e.$win.scrollTop()&&e.$win.scrollTop(a),!e.selection.info(e.el).atStart)return!1}if(!e.core.hasFocus()||0").concat(t,"")),t}var a={bold:function(){s(0,"strong")},subscript:function(){e.format.is("sup")&&e.format.remove("sup"),s(0,"sub")},superscript:function(){e.format.is("sub")&&e.format.remove("sub"),s(0,"sup")},italic:function(){s(0,"em")},strikeThrough:function(){s(0,"s")},underline:function(){s(0,"u")},undo:function(){e.undo.run()},redo:function(){e.undo.redo()},indent:function(){l(1)},outdent:function(){l(-1)},show:function(){e.opts.toolbarInline&&e.toolbar.showInline(null,!0)},insertHR:function(){e.selection.remove();var a="";e.core.isEmpty()&&(a=r(a="
")),e.html.insert('
'.concat(a));var o,i=e.$el.find("hr#fr-just").length?e.$el.find("hr#fr-just"):e.$el.find(".fr-just");if(i.removeAttr("id"),i.removeAttr("class"),0===i.next().length){var s=e.html.defaultTag();s?i.after(n(e.doc.createElement(s)).append("
").get(0)):i.after("
")}i.prev().is("hr")?o=e.selection.setAfter(i.get(0),!1):i.next().is("hr")?o=e.selection.setBefore(i.get(0),!1):e.selection.setAfter(i.get(0),!1)||e.selection.setBefore(i.get(0),!1),o||void 0===o||(a=r(a="".concat(t.MARKERS,"
")),i.after(a)),e.selection.restore()},clearFormatting:function(){e.format.remove()},selectAll:function(){e.doc.execCommand("selectAll",!1,!1)},moreText:function(e){o(e)},moreParagraph:function(e){o(e)},moreRich:function(e){o(e)},moreMisc:function(e){o(e)}};function o(t){!function(t){var n=e.$tb.find('.fr-more-toolbar[data-name="'.concat(t.attr("data-group-name"),'"]'));e.$tb.find(".fr-open").not(t).removeClass("fr-open"),t.toggleClass("fr-open"),e.$tb.find(".fr-more-toolbar").removeClass("fr-overflow-visible"),e.$tb.find(".fr-expanded").not(n).length?(e.$tb.find(".fr-expanded").toggleClass("fr-expanded"),n.toggleClass("fr-expanded")):(n.toggleClass("fr-expanded"),e.$box.toggleClass("fr-toolbar-open"),e.$tb.toggleClass("fr-toolbar-open"))}(e.$tb.find("[data-cmd=".concat(t,"]"))),e.toolbar.setMoreToolbarsHeight()}function i(r,o){if(!1!==e.events.trigger("commands.before",n.merge([r],o||[]))){var i=t.COMMANDS[r]&&t.COMMANDS[r].callback||a[r],s=!0,l=!1;t.COMMANDS[r]&&(void 0!==t.COMMANDS[r].focus&&(s=t.COMMANDS[r].focus),void 0!==t.COMMANDS[r].accessibilityFocus&&(l=t.COMMANDS[r].accessibilityFocus)),(!e.core.hasFocus()&&s&&!e.popups.areVisible()||!e.core.hasFocus()&&l&&e.accessibility.hasFocus())&&e.events.focus(!0),t.COMMANDS[r]&&!1!==t.COMMANDS[r].undo&&(e.$el.find(".fr-marker").length&&(e.events.disableBlur(),e.selection.restore()),e.undo.saveStep()),i&&i.apply(e,n.merge([r],o||[])),e.events.trigger("commands.after",n.merge([r],o||[])),t.COMMANDS[r]&&!1!==t.COMMANDS[r].undo&&e.undo.saveStep()}}function s(t,n){e.format.toggle(n)}function l(t){e.selection.save(),e.html.wrap(!0,!0,!0,!0),e.selection.restore();for(var r=e.selection.blocks(),a=0;a").concat(t.MARKERS,"
").concat(f):d?"".concat(p,"<").concat(d,">").concat(t.MARKERS,"
").concat(f):"".concat(p+t.MARKERS,"
").concat(f);["UL","OL"].indexOf(u.tagName)<0||u.parentNode&&"LI"===u.parentNode.tagName;)u=u.parentNode;n(s).replaceWith('');var g=e.node.openTagString(u)+n(u).html()+e.node.closeTagString(u);g=g.replace(/<\/span>/g,h),n(u).replaceWith(g),e.$el.find("li:empty").remove()}else if(c&&l||!e.node.isEmpty(s,!0)){for(var m="
",v=o.parentNode;v&&"LI"!==v.tagName;)m=e.node.openTagString(v)+m+e.node.closeTagString(v),v=v.parentNode;n(s).before("
  • ".concat(m,"
  • ")),n(o).remove()}else if(c){i=a(s);for(var b="".concat(t.MARKERS,"
    "),E=o.parentNode;E&&"LI"!==E.tagName;)b=e.node.openTagString(E)+b+e.node.closeTagString(E),E=E.parentNode;i.parentNode&&"LI"===i.parentNode.tagName?n(i.parentNode).after("
  • ".concat(b,"
  • ")):d?n(i).after("<".concat(d,">").concat(b,"")):n(i).after(b),n(s).remove()}else(i=a(s)).parentNode&&"LI"===i.parentNode.tagName?l?n(i.parentNode).before("".concat(e.node.openTagString(s)+t.MARKERS,"
    ")):n(i.parentNode).after("".concat(e.node.openTagString(s)+t.MARKERS,"
    ")):d?n(i).before("<".concat(d,">").concat(t.MARKERS,"
    ")):n(i).before("".concat(t.MARKERS,"
    ")),n(s).remove()},_middleEnter:function(a){for(var o=r(a),i="",s=a,l="",c="",d=!1;s!==o;){var f="A"===(s=s.parentNode).tagName&&e.cursor.isAtEnd(a,s)?"fr-to-remove":"";d||s==o||e.node.isBlock(s)||(d=!0,l+=t.INVISIBLE_SPACE),l=e.node.openTagString(n(s).clone().addClass(f).get(0))+l,c=e.node.closeTagString(s)+c}i=c+i+l+t.MARKERS+(e.opts.keepFormatOnDelete?t.INVISIBLE_SPACE:""),n(a).replaceWith('');var p=e.node.openTagString(o)+n(o).html()+e.node.closeTagString(o);p=p.replace(/<\/span>/g,i),n(o).replaceWith(p)},_endEnter:function(a){for(var o=r(a),i=t.MARKERS,s="",l=a,c=!1;l!==o;)if(!(l=l.parentNode).classList.contains("fr-img-space-wrap")&&!l.classList.contains("fr-img-space-wrap2")){var d="A"===l.tagName&&e.cursor.isAtEnd(a,l)?"fr-to-remove":"";c||l===o||e.node.isBlock(l)||(c=!0,s+=t.INVISIBLE_SPACE),s=e.node.openTagString(n(l).clone().addClass(d).get(0))+s,i+=e.node.closeTagString(l)}var f=s+i;n(a).remove(),n(o).after(f)},_backspace:function(o){var i=r(o),s=i.previousSibling;if(s){s=n(s).find(e.html.blockTagsQuery()).get(-1)||s,n(o).replaceWith(t.MARKERS);var l=e.node.contents(s);l.length&&"BR"===l[l.length-1].tagName&&n(l[l.length-1]).remove(),n(i).find(e.html.blockTagsQuery()).not("ol, ul, table").each((function(){this.parentNode===i&&n(this).replaceWith(n(this).html()+(e.node.isEmpty(this)?"":"
    "))}));for(var c,d=e.node.contents(i)[0];d&&!e.node.isList(d);)c=d.nextSibling,n(s).append(d),d=c;for(s=i.previousSibling;d;)c=d.nextSibling,n(s).append(d),d=c;1<(l=e.node.contents(s)).length&&"BR"===l[l.length-1].tagName&&n(l[l.length-1]).remove(),n(i).remove()}else{var f=a(i);if(n(o).replaceWith(t.MARKERS),f.parentNode&&"LI"===f.parentNode.tagName){var p=f.previousSibling;e.node.isBlock(p)?(n(i).find(e.html.blockTagsQuery()).not("ol, ul, table").each((function(){this.parentNode===i&&n(this).replaceWith(n(this).html()+(e.node.isEmpty(this)?"":"
    "))})),n(p).append(n(i).html())):n(f).before(n(i).html())}else{var u=e.html.defaultTag();u&&0===n(i).find(e.html.blockTagsQuery()).length?n(f).before("<".concat(u,">").concat(n(i).html(),"")):n(f).before(n(i).html())}n(i).remove(),e.html.wrap(),0===n(f).find("li").length&&n(f).remove()}},_del:function(a){var o,i=r(a),s=i.nextSibling;if(s){(o=e.node.contents(s)).length&&"BR"===o[0].tagName&&n(o[0]).remove(),n(s).find(e.html.blockTagsQuery()).not("ol, ul, table").each((function(){this.parentNode===s&&n(this).replaceWith(n(this).html()+(e.node.isEmpty(this)?"":"
    "))}));for(var l,c=a,d=e.node.contents(s)[0];d&&!e.node.isList(d);)l=d.nextSibling,n(c).after(d),c=d,d=l;for(;d;)l=d.nextSibling,n(i).append(d),d=l;n(a).replaceWith(t.MARKERS),n(s).remove()}else{for(var f=i;!f.nextSibling&&f!==e.el;)f=f.parentNode;if(f===e.el)return!1;if(f=f.nextSibling,e.node.isBlock(f))t.NO_DELETE_TAGS.indexOf(f.tagName)<0&&(n(a).replaceWith(t.MARKERS),(o=e.node.contents(i)).length&&"BR"===o[o.length-1].tagName&&n(o[o.length-1]).remove(),n(i).append(n(f).html()),n(f).remove());else for((o=e.node.contents(i)).length&&"BR"===o[o.length-1].tagName&&n(o[o.length-1]).remove(),n(a).replaceWith(t.MARKERS);f&&!e.node.isBlock(f)&&"BR"!==f.tagName;)n(i).append(n(f)),f=f.nextSibling}}}},t.NO_DELETE_TAGS=["TH","TD","TR","TABLE","FORM"],t.SIMPLE_ENTER_TAGS=["TH","TD","LI","DL","DT","FORM"],t.MODULES.cursor=function(e){var n=e.$;function r(t){return!!t&&(!!e.node.isBlock(t)||(t.nextSibling&&t.nextSibling.nodeType===Node.TEXT_NODE&&0===t.nextSibling.textContent.replace(/\u200b/g,"").length?r(t.nextSibling):!(t.nextSibling&&(!t.previousSibling||"BR"!==t.nextSibling.tagName||t.nextSibling.nextSibling))&&r(t.parentNode)))}function a(t){return!!t&&(!!e.node.isBlock(t)||(t.previousSibling&&t.previousSibling.nodeType===Node.TEXT_NODE&&0===t.previousSibling.textContent.replace(/\u200b/g,"").length?a(t.previousSibling):!t.previousSibling&&(!(t.previousSibling||!e.node.hasClass(t.parentNode,"fr-inner"))||a(t.parentNode))))}function o(t,n){return!!t&&t!==e.$wp.get(0)&&(t.previousSibling&&t.previousSibling.nodeType===Node.TEXT_NODE&&0===t.previousSibling.textContent.replace(/\u200b/g,"").length?o(t.previousSibling,n):!t.previousSibling&&(t.parentNode===n||o(t.parentNode,n)))}function i(t,n){return!!t&&t!==e.$wp.get(0)&&(t.nextSibling&&t.nextSibling.nodeType===Node.TEXT_NODE&&0===t.nextSibling.textContent.replace(/\u200b/g,"").length?i(t.nextSibling,n):!(t.nextSibling&&(!t.previousSibling||"BR"!==t.nextSibling.tagName||t.nextSibling.nextSibling))&&(t.parentNode===n||i(t.parentNode,n)))}function s(t){return 0=e.opts.tabSpaces&&0===i.substr(i.length-e.opts.tabSpaces,i.length-1).replace(/ /g,"").replace(new RegExp(t.UNICODE_NBSP,"g"),"").length&&(s=i.length-e.opts.tabSpaces+1),o.textContent=i.substring(0,s-l(i)),e.opts.htmlUntouched&&!r.nextSibling&&o.textContent.length&&" "===o.textContent[o.textContent.length-1]&&(o.textContent=o.textContent.substring(0,o.textContent.length-1)+t.UNICODE_NBSP);var d=i.length!==o.textContent.length;if(0===o.textContent.length)if(d&&e.opts.keepFormatOnDelete)n(o).after(t.INVISIBLE_SPACE+t.MARKERS);else if(0!==i.length&&e.node.isBlock(o.parentNode))n(o).after(t.MARKERS);else if((2!=o.parentNode.childNodes.length||o.parentNode!=r.parentNode)&&1!=o.parentNode.childNodes.length||e.node.isBlock(o.parentNode)||e.node.isElement(o.parentNode)||!e.node.isDeletable(o.parentNode)){for(;!e.node.isElement(o.parentNode)&&e.node.isEmpty(o.parentNode)&&t.NO_DELETE_TAGS.indexOf(o.parentNode.tagName)<0;){var f=o;o=o.parentNode,f.parentNode.removeChild(f)}n(o).after(t.MARKERS),e.node.isElement(o.parentNode)&&!r.nextSibling&&o.previousSibling&&"BR"===o.previousSibling.tagName&&n(r).after("
    "),o.parentNode.removeChild(o)}else n(o.parentNode).after(t.MARKERS),n(o.parentNode).remove();else n(o).after(t.MARKERS)}else e.node.isDeletable(o)?(n(o).after(t.MARKERS),n(o).remove()):r.nextSibling&&"BR"===r.nextSibling.tagName&&e.node.isVoid(o)&&"BR"!==o.tagName?(n(r.nextSibling).remove(),n(r).replaceWith(t.MARKERS)):!1!==e.events.trigger("node.remove",[n(o)])&&(n(o).after(t.MARKERS),n(o).remove())}else if(t.NO_DELETE_TAGS.indexOf(o.tagName)<0&&(e.node.isEditable(o)||e.node.isDeletable(o)))if(e.node.isDeletable(o))n(r).replaceWith(t.MARKERS),n(o).remove();else if(e.node.isEmpty(o)&&!e.node.isList(o))n(o).remove(),n(r).replaceWith(t.MARKERS);else{for(e.node.isList(o)&&(o=n(o).find("li").last().get(0)),(a=e.node.contents(o))&&"BR"===a[a.length-1].tagName&&n(a[a.length-1]).remove(),a=e.node.contents(o);a&&e.node.isBlock(a[a.length-1]);)o=a[a.length-1],a=e.node.contents(o);n(o).append(t.MARKERS);for(var p=r;!p.previousSibling;)p=p.parentNode;for(;p&&"BR"!==p.tagName&&!e.node.isBlock(p);){var u=p;p=p.nextSibling,n(o).append(u)}p&&"BR"===p.tagName&&n(p).remove(),n(r).remove()}else r.nextSibling&&"BR"===r.nextSibling.tagName&&n(r.nextSibling).remove();return!0}function d(r){var a=0"))})),n(o).append(e.node.contents(c.get(0))),c.remove(),0===n(l).find("li").length&&n(l).remove())}else{if((s=e.node.contents(l)).length&&"BR"===s[0].tagName&&n(s[0]).remove(),"BLOCKQUOTE"!==l.tagName&&"BLOCKQUOTE"===o.tagName)for(s=e.node.contents(o);s.length&&e.node.isBlock(s[s.length-1]);)o=s[s.length-1],s=e.node.contents(o);else if("BLOCKQUOTE"===l.tagName&&"BLOCKQUOTE"!==o.tagName)for(s=e.node.contents(l);s.length&&e.node.isBlock(s[0]);)l=s[0],s=e.node.contents(l);n(r).replaceWith(t.MARKERS),n(o).append(l.innerHTML),n(l).remove()}else{for(n(r).replaceWith(t.MARKERS);l&&"BR"!==l.tagName&&!e.node.isBlock(l)&&e.node.isEditable(l);){var d=l;l=l.nextSibling,n(o).append(d)}l&&"BR"===l.tagName&&e.node.isEditable(l)&&n(l).remove()}}}function f(){for(var t=e.el.querySelectorAll("blockquote:empty"),n=0;n"+t.MARKERS):s?n(l).after("<".concat(s,">").concat(t.MARKERS,"
    ")):n(l).after("".concat(t.MARKERS,"
    ")),n(r).remove()):u(r,a,o),!1;if(null===l)(s=e.html.defaultTag())&&e.node.isElement(r.parentNode)?n(r).replaceWith("<".concat(s,">").concat(t.MARKERS,"
    ")):!r.previousSibling||n(r.previousSibling).is("br")||r.nextSibling?n(r).replaceWith("
    ".concat(t.MARKERS)):n(r).replaceWith("
    ".concat(t.MARKERS,"
    "));else{var c=r,d="";"PRE"!=l.tagName||r.nextSibling||(a=!0),e.node.isBlock(l)&&!a||(d="
    ");var f,p="",h="",g="",m="";(s=e.html.defaultTag())&&e.node.isBlock(l)&&(g="<".concat(s,">"),m=""),l.tagName===s.toUpperCase()&&(g=e.node.openTagString(n(l).clone().removeAttr("id").get(0))));do{if(c=c.parentNode,!a||c!==l||a&&!e.node.isBlock(l))if(p+=e.node.closeTagString(c),c===l&&e.node.isBlock(l))h=g+h;else{var v=("A"===c.tagName||e.node.hasClass(c,"fa"))&&i(r,c)?"fr-to-remove":"";h=e.node.openTagString(n(c).clone().addClass(v).get(0))+h}}while(c!==l);d=p+d+h+(r.parentNode===l&&e.node.isBlock(l)?"":t.INVISIBLE_SPACE)+t.MARKERS,e.node.isBlock(l)&&!n(l).find("*").last().is("br")&&n(l).append("
    "),n(r).after(''),n(r).remove(),l.nextSibling&&!e.node.isBlock(l.nextSibling)||e.node.isBlock(l)||n(l).after("
    "),f=(f=!a&&e.node.isBlock(l)?e.node.openTagString(l)+n(l).html()+m:e.node.openTagString(l)+n(l).html()+e.node.closeTagString(l)).replace(/<\/span>/g,d),n(l).replaceWith(f)}}function u(r,a,s){var l=e.node.deepestParent(r,[],!s);if(null===l)e.html.defaultTag()&&r.parentNode===e.el?n(r).replaceWith("<".concat(e.html.defaultTag(),">").concat(t.MARKERS,"
    ")):(r.nextSibling&&!e.node.isBlock(r.nextSibling)||n(r).after("
    "),n(r).replaceWith("
    ".concat(t.MARKERS)));else if(r.previousSibling&&"IMG"==r.previousSibling.tagName||r.nextSibling&&"IMG"==r.nextSibling.tagName)n(r).replaceWith("<"+e.html.defaultTag()+">"+t.MARKERS+"
    ");else{var c=r,d="";"PRE"===l.tagName&&(a=!0),e.node.isBlock(l)&&!a||(d="
    ");var f="",p="";do{var u=c;if(c=c.parentNode,"BLOCKQUOTE"===l.tagName&&e.node.isEmpty(u)&&!e.node.hasClass(u,"fr-marker")&&n(u).contains(r)&&n(u).after(r),"BLOCKQUOTE"!==l.tagName||!i(r,c)&&!o(r,c))if(!a||c!==l||a&&!e.node.isBlock(l)){f+=e.node.closeTagString(c);var h="A"==c.tagName&&i(r,c)||e.node.hasClass(c,"fa")?"fr-to-remove":"";p=e.node.openTagString(n(c).clone().addClass(h).removeAttr("id").get(0))+p}else"BLOCKQUOTE"==l.tagName&&a&&(p=f="")}while(c!==l);var g=l===r.parentNode&&e.node.isBlock(l)||r.nextSibling;if("BLOCKQUOTE"===l.tagName)if(r.previousSibling&&e.node.isBlock(r.previousSibling)&&r.nextSibling&&"BR"===r.nextSibling.tagName&&(n(r.nextSibling).after(r),r.nextSibling&&"BR"===r.nextSibling.tagName&&n(r.nextSibling).remove()),a)d=f+d+t.MARKERS+p;else{var m=e.html.defaultTag();d="".concat(f+d+(m?"<".concat(m,">"):"")+t.MARKERS,"
    ").concat(m?""):"").concat(p)}else d=f+d+p+(g?"":t.INVISIBLE_SPACE)+t.MARKERS;n(r).replaceWith('');var v=e.node.openTagString(l)+n(l).html()+e.node.closeTagString(l);v=v.replace(/<\/span>/g,d),n(l).replaceWith(v)}}return{enter:function(l){var c=e.markers.insert();if(!c)return!0;for(var d=c.parentNode;d&&!e.node.isElement(d);){if("false"===d.getAttribute("contenteditable"))return n(c).replaceWith(t.MARKERS),e.selection.restore(),!1;if("true"===d.getAttribute("contenteditable"))break;d=d.parentNode}e.el.normalize();var f=!1;0").concat(t.MARKERS,"
    ")):n(d).before("".concat(t.MARKERS,"
    ")),n(a).remove(),!1}else i(a,d)?p(a,s,!0):u(a,s,!0);if(null===d)(c=e.html.defaultTag())&&e.node.isElement(a.parentNode)?n(a).replaceWith("<".concat(c,">").concat(t.MARKERS,"
    ")):n(a).replaceWith("
    ".concat(t.MARKERS));else{if(e.node.isBlock(d))if("PRE"===d.tagName&&(s=!0),s)n(a).remove(),n(d).prepend("
    ".concat(t.MARKERS));else if(a.nextSibling&&"IMG"==a.nextSibling.tagName||a.nextSibling&&a.nextSibling.nextElementSibling&&"IMG"==a.nextSibling.nextElementSibling)n(a).replaceWith("<"+e.html.defaultTag()+">"+t.MARKERS+"
    ");else{if(e.node.isEmpty(d,!0))return p(a,s,l);if(e.opts.keepFormatOnDelete){for(var f=a,h=t.INVISIBLE_SPACE;f!==d&&!e.node.isElement(f);)f=f.parentNode,h=e.node.openTagString(f)+h+e.node.closeTagString(f);n(d).before(h)}else n(d).before("".concat(e.node.openTagString(n(d).clone().removeAttr("id").get(0)),"
    ").concat(e.node.closeTagString(d)))}else n(d).before("
    ");n(a).remove()}}(c,l,f):e.cursorLists._startEnter(c):!s(c)||l||f?u(c,l,f):e.cursorLists._middleEnter(c),e.$el.find(".fr-to-remove").each((function(){for(var t=e.node.contents(this),r=0;r div").first(),c=l.find("> a"),"rtl"===e.opts.direction&&l.css("left","auto").css("right",0).attr("direction","rtl"),m++}function i(e){for(var t=[g("9qqG-7amjlwq=="),g("KA3B3C2A6D1D5H5H1A3=="),g("3B9B3B5F3C4G3E3=="),g("QzbzvxyB2yA-9m=="),g("ji1kacwmgG5bc=="),g("nmA-13aogi1A3c1jd=="),g("BA9ggq=="),g("emznbjbH3fij=="),g("tkC-22d1qC-13sD1wzF-7=="),g("tA3jjf=="),g("1D1brkm==")],n=0;nthis.length)&&(t=this.length),this.substring(t-e.length,t)===e}),e.endsWith(t[n]))return!0;return!1}function s(){var e=g(p),t=g("tzgatD-13eD1dtdrvmF3c1nrC-7saQcdav==").split(".");return window.parent.document.querySelector(e)&&window[t[1]][t[2]]}var l,c,d=e.$,f="sC-7OB2fwhVC4vsG-7ohPA4ZD4D-8f1J3stzB-11bFE2FC1A3NB2IF1HE1TH4WB8eB-11zVG2F3I3yYB5ZG4CB2DA15CC5AD3F1A1KG1oLA10B1A6wQF1H3vgale2C4F4XA2qc2A5D5B3pepmriKB3OE1HD1fUC10pjD-11E-11TB4YJ3bC-16zE-11yc1B2CE2BC3jhjKC1pdA-21OA6C1D5B-8vF4QA11pD6sqf1C3lldA-16BD4A2H3qoEA7bB-16rmNH5H1F1vSB7RE2A3TH4YC5A5b1A4d1B3whepyAC3AA2zknC3mbgf1SC4WH4PD8TC5ZB2C3H3jb2A5ZA2EF2aoFC5qqHC4B1H1zeGA7UA5RF4TA29TA6ZC4d1C3hyWA10A3rBB2E3decorationRD3QC10UD3E6E6ZD2F3F3fme2E5uxxrEC9C3E4fB-11azhHB1LD7D6VF4VVTPC6b1C4TYG3qzDD6B3B3AH4I2H2kxbHE1JD1yihfd1QD6WB1D4mhrc1B5rvFG3A14A7cDA2OC1AA1JB5zC-16KA6WB4C-8wvlTB5A5lkZB2C2C7zynBD2D2bI-7C-21d1HE2cubyvPC8A6VB3aroxxZE4C4F4e1I2BE1WjdifH1H4A14NA1GB1YG-10tWA3A14A9sVA2C5XH2A29b2A6gsleGG2jaED2D-13fhE1OA8NjwytyTD4e1sc1D-16ZC3B5C-9e1C2FB6EFF5B2C2JH4E1C2tdLE5A3UG4G-7b2D3B4fA-9oh1G3kqvB4AG3ibnjcAC6D2B1cDA9KC2QA6bRC4VA30RB8hYB2A4A-8h1A21A2B2==",p="MekC-11nB-8tIzpD7pewxvzC6mD-16xerg1==",u="sC-7OB2fwhVC4vsG-7ohPA4ZD4D-8f1J3stzB-11bFE2EE1MA2ND1KD1IE4cA-21pSD2D5ve1G3h1A8b1E5ZC3CD2FA16mC5OC5E1hpnG1NA10B1D7hkUD4I-7b2C3C5nXD2E3F3whidEC2EH3GI2mJE2E2bxci1WA10VC7pllSG2F3A7xd1A4ZC3DB2aaeGA2DE4H2E1j1ywD-13FD1A3VE4WA3D8C6wuc1A2hf1B5B7vnrrjA1B9ic1mpbD1oMB1iSB7rWC4RI4G-7upB6jd1A2F3H2EA4FD3kDF4A2moc1anJD1TD4VI4b2C7oeQF4c1E3XC7ZA3C3G3uDB2wGB6D1JC4D1JD4C1hTE6QC5pH4pD3C-22D7c1A3textAA4gdlB2mpozkmhNC1mrxA3yWA5edhg1I2H3B7ozgmvAI3I2B5GD1LD2RSNH1KA1XA5SB4PA3sA9tlmC-9tnf1G3nd1coBH4I2I2JC3C-16LE6A1tnUA3vbwQB1G3f1A20a3A8a1C6pxAB2eniuE1F3kH2lnjB2hB-16XA5PF1G4zwtYA5B-11mzTG2B9pHB3BE2hGH3B3B2cMD5C1F1wzPA8E7VG5H5vD3H-7C8tyvsVF2I1G2A5fE3bg1mgajoyxMA4fhuzSD8aQB2B4g1A20ukb1A4B3F3GG2CujjanIC1ObiB11SD1C5pWC1D4YB8YE5FE-11jXE2F-7jB4CC2G-10uLH4E1C2tA-13yjUH5d1H1A7sWD5E4hmjF-7pykafoGA16hDD4joyD-8OA33B3C2tC7cRE4SA31a1B8d1e2A4F4g1A2A22CC5zwlAC2C1A12==",h=function(){for(var e=0,t=document.domain,n=t.split("."),r="_gd".concat((new Date).getTime());e"}function a(e,t){var n=e;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n+="id"===r?"#".concat(t[r]):"class"===r?".".concat(t[r]):"[".concat(r,'="').concat(t[r],'"]'));return n}function o(e,t){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}function i(t,a,o){if(t){for(;t.nodeType===Node.COMMENT_NODE;)t=t.nextSibling;if(t){if(e.node.isBlock(t)&&"HR"!==t.tagName)return e.node.hasClass(t.firstChild,"fr-marker")?i(t.firstChild.nextSibling,a,o):i(t.firstChild,a,o),!1;var s=n(e.doc.createElement(a));s.attr(o),s.insertBefore(t);for(var l=t;l&&!n(l).is(".fr-marker")&&0===n(l).find(".fr-marker").length&&"UL"!==l.tagName&&"OL"!==l.tagName;){var c=l;if(e.node.isBlock(l)&&"HR"!==t.tagName)return i(l.firstChild,a,o),!1;l=l.nextSibling,s.append(c)}if(l){if(n(l).find(".fr-marker").length||"UL"===l.tagName||"OL"===l.tagName)i(l.firstChild,a,o);else if(e.browser.mozilla&&e.node.hasClass(l,"fr-marker")){var d,f=e.selection.blocks(),p=f.length;for(d=0;d")}(s)),e.selection.restore();else{var d;e.selection.save(),i(e.$el.find('.fr-marker[data-type="true"]').length&&e.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,s,l);do{for(d=e.$el.find("".concat(a(s,l)," > ").concat(a(s,l))),c=0;c
    '),l=f.html().replace(/<\/span>/,c+e.node.closeTagString(f.get(0))+d+p+c+e.node.openTagString(f.get(0))+d),f.replaceWith(e.node.openTagString(f.get(0))+l+e.node.closeTagString(f.get(0))),!0}return!1}function c(r,i){void 0===i&&(i={}),i.style&&delete i.style;var s=e.selection.isCollapsed();e.selection.save();for(var c=!0;c;){c=!1;for(var d=e.$el.find(".fr-marker"),f=0;f')){if(e.node.isEmpty(h.get(0)))u=n(e.doc.createElement("span")).attr("style","".concat(r,": ").concat(a,";")).html("".concat(t.INVISIBLE_SPACE).concat(t.MARKERS)),h.replaceWith(u);else{var g={};g["style*"]="".concat(r,":"),l(s,"span",g,!0),s=e.$el.find(".fr-marker"),a?(u=n(e.doc.createElement("span")).attr("style","".concat(r,": ").concat(a,";")).html("".concat(t.INVISIBLE_SPACE).concat(t.MARKERS)),s.replaceWith(u)):s.replaceWith(t.INVISIBLE_SPACE+t.MARKERS)}e.html.cleanEmptyTags()}else e.node.isEmpty(h.get(0))&&h.is("span")?(s.replaceWith(t.MARKERS),h.css(r,a)):(u=n('').concat(t.INVISIBLE_SPACE).concat(t.MARKERS,"")),s.replaceWith(u));u&&f(u,r,a)}else{if(e.selection.save(),null===a||"color"===r&&0").concat(f);t.replaceWith('');var m=l.get(0).outerHTML;n(l.get(0)).replaceWith(m.replace(/<\/span>/g,(function(){return g})))}}function p(t,n){void 0===n&&(n={}),n.style&&delete n.style;var r=e.selection.ranges(0),i=r.startContainer;if(i.nodeType===Node.ELEMENT_NODE&&0"),t.END_MARKER='"),t.MARKERS=t.START_MARKER+t.END_MARKER,t.MODULES.markers=function(e){var n=e.$;function r(){if(!e.$wp)return null;try{var r=e.selection.ranges(0),a=r.commonAncestorContainer;if(a!==e.el&&!e.$el.contains(a))return null;var o=r.cloneRange(),i=r.cloneRange();o.collapse(!0);var s=n(e.doc.createElement("SPAN")).addClass("fr-marker").attr("style","display: none; line-height: 0;").html(t.INVISIBLE_SPACE).get(0);if(o.insertNode(s),s=e.$el.find("span.fr-marker").get(0)){for(var l=s.nextSibling;l&&l.nodeType===Node.TEXT_NODE&&0===l.textContent.length;)n(l).remove(),l=e.$el.find("span.fr-marker").get(0).nextSibling;return e.selection.clear(),e.selection.get().addRange(i),s}return null}catch(e){}}function a(){e.$el.find(".fr-marker").remove()}return{place:function(r,a,o){var i,s,l;try{var c=r.cloneRange();if(c.collapse(a),c.insertNode(function(r,a){var o=n(e.doc.createElement("SPAN"));return o.addClass("fr-marker").attr("data-id",a).attr("data-type",r).attr("style","display: ".concat(e.browser.safari?"none":"inline-block","; line-height: 0;")).html(t.INVISIBLE_SPACE),o.get(0)}(a,o)),!0===a)for(l=(i=e.$el.find('span.fr-marker[data-type="true"][data-id="'.concat(o,'"]')).get(0)).nextSibling;l&&l.nodeType===Node.TEXT_NODE&&0===l.textContent.length;)n(l).remove(),l=i.nextSibling;if(!0===a&&!r.collapsed){for(;!e.node.isElement(i.parentNode)&&!l;)n(i.parentNode).after(i),l=i.nextSibling;if(l&&l.nodeType===Node.ELEMENT_NODE&&e.node.isBlock(l)&&"HR"!==l.tagName){for(s=[l];l=s[0],(s=e.node.contents(l))[0]&&e.node.isBlock(s[0]););n(l).prepend(n(i))}}if(!1===a&&!r.collapsed){if((l=(i=e.$el.find('span.fr-marker[data-type="false"][data-id="'.concat(o,'"]')).get(0)).previousSibling)&&l.nodeType===Node.ELEMENT_NODE&&e.node.isBlock(l)&&"HR"!==l.tagName){for(s=[l];l=s[s.length-1],(s=e.node.contents(l))[s.length-1]&&e.node.isBlock(s[s.length-1]););n(l).append(n(i))}(i.parentNode&&0<=["TD","TH"].indexOf(i.parentNode.tagName)||!i.previousSibling&&e.node.isBlock(i.parentElement))&&i.parentNode.previousSibling&&!i.previousSibling&&n(i.parentNode.previousSibling).append(i)}var d=e.$el.find('span.fr-marker[data-type="'.concat(a,'"][data-id="').concat(o,'"]')).get(0);return d&&(d.style.display="none"),d}catch(e){return null}},insert:r,split:function(){e.selection.isCollapsed()||e.selection.remove();var t=e.$el.find(".fr-marker").get(0);if(t||(t=r()),!t)return null;var a=e.node.deepestParent(t);if(a||(a=e.node.blockParent(t))&&"LI"!==a.tagName&&(a=null),a)if(e.node.isBlock(a)&&e.node.isEmpty(a))"LI"!==a.tagName||a.parentNode.firstElementChild!==a||e.node.isEmpty(a.parentNode)?n(a).replaceWith(''):n(a).append('');else if(e.cursor.isAtStart(t,a))n(a).before(''),n(t).remove();else if(e.cursor.isAtEnd(t,a))n(a).after(''),n(t).remove();else{for(var o=t,i="",s="";o=o.parentNode,i+=e.node.closeTagString(o),s=e.node.openTagString(o)+s,o!==a;);n(t).replaceWith('');var l=e.node.openTagString(a)+n(a).html()+e.node.closeTagString(a);l=l.replace(/<\/span>/g,"".concat(i,'').concat(s)),n(a).replaceWith(l)}return e.$el.find(".fr-marker").get(0)},insertAtPoint:function(t){var n,o=t.clientX,i=t.clientY;a();var s=null;if(void 0!==e.doc.caretPositionFromPoint?(n=e.doc.caretPositionFromPoint(o,i),(s=e.doc.createRange()).setStart(n.offsetNode,n.offset),s.setEnd(n.offsetNode,n.offset)):void 0!==e.doc.caretRangeFromPoint&&(n=e.doc.caretRangeFromPoint(o,i),(s=e.doc.createRange()).setStart(n.startContainer,n.startOffset),s.setEnd(n.startContainer,n.startOffset)),null!==s&&void 0!==e.win.getSelection){var l=e.win.getSelection();l.removeAllRanges(),l.addRange(s)}else if(void 0!==e.doc.body.createTextRange)try{(s=e.doc.body.createTextRange()).moveToPoint(o,i);var c=s.duplicate();c.moveToPoint(o,i),s.setEndPoint("EndToEnd",c),s.select()}catch(e){return!1}r()},remove:a}},t.MODULES.selection=function(e){var n=e.$;function r(){var t="";return e.win.getSelection?t=e.win.getSelection():e.doc.getSelection?t=e.doc.getSelection():e.doc.selection&&(t=e.doc.selection.createRange().text),t.toString()}function a(){return e.win.getSelection?e.win.getSelection():e.doc.getSelection?e.doc.getSelection():e.doc.selection.createRange()}function o(t){var n=a(),r=[];if(n&&n.getRangeAt&&n.rangeCount){r=[];for(var o=0;o'.concat(t.INVISIBLE_SPACE,"").concat(r[n].innerHTML));var a=!1,o=p(e.el);for(o.atStart&&o.atEnd&&(a=!0),r=e.el.querySelectorAll(".fr-mk"),n=0;n"):n(s).find(".fr-inner").filter(g).html("
    "):(n(s).empty(),n(s).attr("data-del-cell",!0)):0"),e.spaces.normalize());var L=e.$el.find(".fr-marker").last().get(0),R=e.$el.find(".fr-marker").first().get(0);void 0!==L&&void 0!==R&&!L.nextSibling&&R.previousSibling&&"BR"===R.previousSibling.tagName&&e.node.isElement(L.parentNode)&&e.node.isElement(R.parentNode)&&e.$el.append("
    "),c()},blocks:function(){var t,r,i=[],l=a();if(m()&&l.rangeCount){var c=o();for(t=0;t"))}function r(){e.$wp.removeClass("show-placeholder")}function a(){if(!e.$wp)return!1;e.core.isEmpty()?n():r()}return{_init:function(){if(!e.$wp)return!1;e.events.on("init input keydown keyup contentChanged initialized",a)},show:n,hide:r,refresh:a,isVisible:function(){return!e.$wp||e.node.hasClass(e.$wp.get(0),"show-placeholder")}}},t.UNICODE_NBSP=String.fromCharCode(160),t.VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],t.BLOCK_TAGS=["address","article","aside","audio","blockquote","canvas","details","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul","video"],Object.assign(t.DEFAULTS,{htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script",".fa",".fr-emoticon",".fr-inner","path","line","hr"],htmlDoNotWrapTags:["script","style"],htmlSimpleAmpersand:!1,htmlIgnoreCSSProperties:[],htmlExecuteScripts:!0}),t.MODULES.html=function(e){var n=e.$;function r(){return e.opts.enter===t.ENTER_P?"p":e.opts.enter===t.ENTER_DIV?"div":e.opts.enter===t.ENTER_BR?null:void 0}function a(t,n){return!(!t||t===e.el)&&(n?-1!=["PRE","SCRIPT","STYLE"].indexOf(t.tagName)||a(t.parentNode,n):-1!==["PRE","SCRIPT","STYLE"].indexOf(t.tagName))}function o(n){var r,a=[],o=[];if(n){var s=e.el.querySelectorAll(".fr-marker");for(r=0;r";return t&&(n="")),n}function h(n){var r=n.parentNode;if(r&&(e.node.isBlock(r)||e.node.isElement(r))&&["TD","TH"].indexOf(r.tagName)<0){for(var a=n.previousSibling,o=n.nextSibling;a&&(a.nodeType===Node.TEXT_NODE&&0===a.textContent.replace(/\n|\r/g,"").length||e.node.hasClass(a,"fr-tmp"));)a=a.previousSibling;if(o)return!1;a&&r&&"BR"!==a.tagName&&!e.node.isBlock(a)&&!o&&0").concat(t.MARKERS,"
    ")),e.selection.restore()):e.$el.html("<".concat(r(),">
    "))):e.el.querySelector("*:not(.fr-marker):not(br)")||(e.core.hasFocus()?(e.$el.html("".concat(t.MARKERS,"
    ")),e.selection.restore()):e.$el.html("
    ")))}function v(e,t){return p(e,"<".concat(t,"[^>]*?>([\\w\\W]*)"),1)}function b(t,r){var a=n("
    ]*?)>"),1)||"",">"));return e.node.rawAttributes(a.get(0))}function E(e){return(p(e,"]*?)>",0)||"").replace(/\n/g," ").replace(/ {2,}/g," ")}function A(t,n){e.opts.htmlExecuteScripts?t.html(n):t.get(0).innerHTML=n}function T(e){var t;return(t=/:not\(([^)]*)\)/g).test(e)&&(e=e.replace(t," $1 ")),100*(e.match(/(#[^\s+>~.[:]+)/g)||[]).length+10*(e.match(/(\[[^]]+\])/g)||[]).length+10*(e.match(/(\.[^\s+>~.[:]+)/g)||[]).length+10*(e.match(/(:[\w-]+\([^)]*\))/gi)||[]).length+10*(e.match(/(:[^\s+>~.[:]+)/g)||[]).length+(e.match(/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi)||[]).length+((e=(e=e.replace(/[*\s+>~]/g," ")).replace(/[#.]/g," ")).match(/([^\s+>~.[:]+)/g)||[]).length}function C(t){if(e.events.trigger("html.processGet",[t]),t&&t.getAttribute&&""===t.getAttribute("class")&&t.removeAttribute("class"),t&&t.getAttribute&&""===t.getAttribute("style")&&t.removeAttribute("style"),t&&t.nodeType===Node.ELEMENT_NODE){var n,r=t.querySelectorAll('[class=""],[style=""]');for(n=0;n")}},cleanEmptyTags:s,cleanWhiteTags:R,cleanBlankSpaces:f,blocks:function(){return e.$el.get(0).querySelectorAll(i())},getDoctype:u,set:function(t){var r=e.clean.html((t||"").trim(),[],[],e.opts.fullPage);if(e.opts.fullPage){var a=v(r,"body")||(0<=r.indexOf("",s=b(r,"head"),l=n("
    ");l.append(i).contents().each((function(){(this.nodeType===Node.COMMENT_NODE||0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName))&&this.parentNode.removeChild(this)}));var c=l.html().trim();i=n("
    ").append(i).contents().map((function(){return this.nodeType===Node.COMMENT_NODE?"\x3c!--".concat(this.nodeValue,"--\x3e"):0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName)?this.outerHTML:""})).toArray().join("");var d=E(r),f=b(r,"html");A(e.$el,"".concat(c,"\n").concat(a)),e.node.clearAttributes(e.el),e.$el.attr(o),e.$el.addClass("fr-view"),e.$el.attr("spellcheck",e.opts.spellcheck),e.$el.attr("dir",e.opts.direction),A(e.$head,i),e.node.clearAttributes(e.$head.get(0)),e.$head.attr(s),e.node.clearAttributes(e.$html.get(0)),e.$html.attr(f),e.iframe_document.doctype.parentNode.replaceChild(function(e,t){var n=e.match(//i);return n?t.implementation.createDocumentType(n[1],n[3],n[4]):t.implementation.createDocumentType("html")}(d,e.iframe_document),e.iframe_document.doctype)}else A(e.$el,r);var p=e.edit.isDisabled();e.edit.on(),e.core.injectStyle(e.opts.iframeDefaultStyle+e.opts.iframeStyle),g(),e.opts.useClasses||(e.$el.find("[fr-original-class]").each((function(){this.setAttribute("class",this.getAttribute("fr-original-class")),this.removeAttribute("fr-original-class")})),e.$el.find("[fr-original-style]").each((function(){this.setAttribute("style",this.getAttribute("fr-original-style")),this.removeAttribute("fr-original-style")}))),p&&e.edit.off(),e.events.trigger("html.set"),e.events.trigger("charCounter.update")},syncInputs:y,get:function(t,n){if(!e.$wp)return e.$oel.clone().removeClass("fr-view").removeAttr("contenteditable").get(0).outerHTML;var r="";e.events.trigger("html.beforeGet");var a,o,i=[],s={},l=[];if(y(),!e.opts.useClasses&&!n){var c=new RegExp("^".concat(e.opts.htmlIgnoreCSSProperties.join("$|^"),"$"),"gi");for(a=0;a=s[m[o]][A]&&(s[m[o]][A]=v,b[E].trim().length))){var L=b[E].trim().split(":");L.splice(0,1),l.push([m[o],A.trim(),L.join(":").trim(),v])}}}}}for(l.sort(S),a=0;a").concat(e.$html.find("head").get(0).outerHTML,""));else if(void 0===t&&(t=!1),e.opts.fullPage){r=u(e.iframe_document),e.$el.removeClass("fr-view");var x=e.opts.heightMin,I=e.opts.height,M=e.opts.heightMax;e.opts.heightMin=null,e.opts.height=null,e.opts.heightMax=null,e.size.refresh(),r+="").concat(e.$html.html(),""),e.opts.heightMin=x,e.opts.height=I,e.opts.heightMax=M,e.size.refresh(),e.$el.addClass("fr-view")}else r=e.$el.html();if(!e.opts.useClasses&&!n)for(a=0;a(?:[\w\W]*?)<\/style>/g,"")).replace(/]*)data-fr-style="true"([^>]*)>/g,"")).replace(/(?:[\w\W]*?)<\/style>/g,"")).replace(/((?:[\w\W]*?))<\/body>/g,"$3")).replace(/((?:[\w\W]*?))<\/body>/g,"$4")).replace(/((?:[\w\W]*?))<\/body>/g,"$4")).replace(/((?:[\w\W]*?))<\/body>/g,'$6')).replace(/((?:[\w\W]*?))<\/body>/g,"$3")),e.opts.htmlSimpleAmpersand&&(r=r.replace(/&/gi,"&")),e.events.trigger("html.afterGet"),t||(r=r.replace(/]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,"")),r=e.clean.invisibleSpaces(r),r=e.clean.exec(r,C);var D=e.events.chainTrigger("html.get",r);return"string"==typeof D&&(r=D),(r=r.replace(/(?:[\w\W]*?)<\/pre>/g,(function(e){return e.replace(/
    /g,"\n")}))).replace(/ ".concat(e.html.defaultTag())),o=a.length-1;0<=o;o--){var i=a[o];e.node.isBlock(i.previousSibling)||(i.previousSibling&&!e.node.isEmpty(i)&&n("
    ").insertAfter(i.previousSibling),i.outerHTML=i.innerHTML)}return r.innerHTML}(o)),!(i=e.markers.split()))return!1;i.outerHTML=o}else i.outerHTML=o}else e.el.innerHTML+=o}g(),e.keys.positionCaret(),e.events.trigger("html.inserted")},wrap:d,unwrap:function(){e.$el.find("div.fr-temp-div").each((function(){this.previousSibling&&this.previousSibling.nodeType===Node.TEXT_NODE&&n(this).before("
    "),n(this).attr("data-empty")||!this.nextSibling||e.node.isBlock(this.nextSibling)&&!n(this.nextSibling).hasClass("fr-temp-div")?n(this).replaceWith(n(this).html()):n(this).replaceWith("".concat(n(this).html(),"
    "))})),e.$el.find(".fr-temp-div").removeClass("fr-temp-div").filter((function(){return""===n(this).attr("class")})).removeAttr("class")},escapeEntities:function(e){return e.replace(//gi,">").replace(/"/gi,""").replace(/'/gi,"'")},checkIfEmpty:m,extractNode:v,extractNodeAttrs:b,extractDoctype:E,cleanBRs:function(){for(var t=e.el.getElementsByTagName("br"),n=0;n").concat(t.MARKERS,"
    ")):e.$el.html("".concat(t.MARKERS,"
    ")),e.selection.restore(),e.placeholder.refresh(),e.button.bulkRefresh(),e.undo.saveStep()}),0)}function f(){i=!1}function p(){i=!1}function u(){var n=e.html.defaultTag();n?e.$el.html("<".concat(n,">").concat(t.MARKERS,"
    ")):e.$el.html("".concat(t.MARKERS,"
    ")),e.selection.restore()}function h(e,t){if((-1/g,"")).length<1?e.parentElement.insertAdjacentHTML("afterbegin"," "):" "!=n&&" "!=n&&"Backspace"==t.key?s(t):" "!=n&&" "!=n&&"Delete"==t.key&&l(t),!0}if(o(e).is("p")){var r=e.innerHTML.replace(/
    /g,"");return r.length<1?e.insertAdjacentHTML("afterbegin"," "):" "!=r&&" "!=r&&"Backspace"==t.key?s(t):" "!=r&&" "!=r&&"Delete"==t.key&&l(t),!0}}return!1}function g(r){var a=e.selection.element();if(a&&0<=["INPUT","TEXTAREA"].indexOf(a.tagName))return!0;if(r&&E(r.which))return!0;e.events.disableBlur();var o=r.which;if(16===o)return!0;if((n=o)===t.KEYCODE.IME)return i=!0;i=!1;var c=A(o)&&!b(r)&&!r.altKey,d=o===t.KEYCODE.BACKSPACE||o===t.KEYCODE.DELETE;if((e.selection.isFull()&&!e.opts.keepFormatOnDelete&&!e.placeholder.isVisible()||d&&e.placeholder.isVisible()&&e.opts.keepFormatOnDelete)&&(c||d)&&(u(),!A(o)))return r.preventDefault(),!0;if(o===t.KEYCODE.ENTER)r.shiftKey||a.classList.contains("fr-inner")||a.parentElement.classList.contains("fr-inner")?function(t){t.preventDefault(),t.stopPropagation(),e.opts.multiLine&&(e.selection.isCollapsed()||e.selection.remove(),e.cursor.enter(!0))}(r):function(t){e.opts.multiLine?(e.helpers.isIOS()||(t.preventDefault(),t.stopPropagation()),e.selection.isCollapsed()||e.selection.remove(),e.cursor.enter()):(t.preventDefault(),t.stopPropagation())}(r);else if(o===t.KEYCODE.BACKSPACE&&(r.metaKey||r.ctrlKey))setTimeout((function(){e.events.disableBlur(),e.events.focus()}),0);else if(o!==t.KEYCODE.BACKSPACE||b(r)||r.altKey)if(o!==t.KEYCODE.DELETE||b(r)||r.altKey||r.shiftKey)o===t.KEYCODE.SPACE?function(n){var r=e.selection.element();if(!e.helpers.isMobile()&&r&&"A"===r.tagName){n.preventDefault(),n.stopPropagation(),e.selection.isCollapsed()||e.selection.remove();var a=e.markers.insert();if(a){var o=a.previousSibling;!a.nextSibling&&a.parentNode&&"A"===a.parentNode.tagName?(a.parentNode.insertAdjacentHTML("afterend"," ".concat(t.MARKERS)),a.parentNode.removeChild(a)):(o&&o.nodeType===Node.TEXT_NODE&&1===o.textContent.length&&160===o.textContent.charCodeAt(0)?o.textContent+=" ":a.insertAdjacentHTML("beforebegin"," "),a.outerHTML=t.MARKERS),e.selection.restore()}}}(r):o===t.KEYCODE.TAB?function(t){if(0e.$wp.offset().top-e.helpers.scrollTop()+e.$wp.height()-20&&e.$wp.scrollTop(t+e.$wp.scrollTop()-(e.$wp.height()+e.$wp.offset().top)+e.helpers.scrollTop()+20)):(t=e.position.getBoundingRect().top,e.opts.toolbarBottom&&(t+=e.opts.toolbarStickyOffset),(e.helpers.isIOS()||e.helpers.isAndroid())&&(t-=e.helpers.scrollTop()),e.opts.iframe&&(t+=e.$iframe.offset().top,t-=e.helpers.scrollTop()),(t+=e.opts.toolbarStickyOffset)>e.o_win.innerHeight-20&&o(e.o_win).scrollTop(t+e.helpers.scrollTop()-e.o_win.innerHeight+20),t=e.position.getBoundingRect().top,e.opts.toolbarBottom||(t-=e.opts.toolbarStickyOffset),(e.helpers.isIOS()||e.helpers.isAndroid())&&(t-=e.helpers.scrollTop()),e.opts.iframe&&(t+=e.$iframe.offset().top,t-=e.helpers.scrollTop()),t<100&&o(e.o_win).scrollTop(t+e.helpers.scrollTop()-100))}function v(r){var a=e.selection.element();if(a&&0<=["INPUT","TEXTAREA"].indexOf(a.tagName))return!0;if(r&&0===r.which&&n&&(r.which=n),e.helpers.isAndroid()&&e.browser.mozilla)return!0;if(i)return!1;if(r&&e.helpers.isIOS()&&r.which===t.KEYCODE.ENTER&&e.doc.execCommand("undo"),!e.selection.isCollapsed())return!0;if(r&&(r.which===t.KEYCODE.META||r.which===t.KEYCODE.CTRL))return!0;if(r&&E(r.which))return!0;if(r&&!e.helpers.isIOS()&&(r.which===t.KEYCODE.ENTER||r.which===t.KEYCODE.BACKSPACE||37<=r.which&&r.which<=40&&!e.browser.msie))try{m()}catch(e){}var o=e.selection.element();(function(e){if(!e)return!1;var t=e.innerHTML;return!!((t=t.replace(/]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,""))&&/\u200B/.test(t)&&0=t.KEYCODE.ARROW_LEFT&&e<=t.KEYCODE.ARROW_DOWN)return!0}function A(n){if(n>=t.KEYCODE.ZERO&&n<=t.KEYCODE.NINE)return!0;if(n>=t.KEYCODE.NUM_ZERO&&n<=t.KEYCODE.NUM_MULTIPLY)return!0;if(n>=t.KEYCODE.A&&n<=t.KEYCODE.Z)return!0;if(e.browser.webkit&&0===n)return!0;switch(n){case t.KEYCODE.SPACE:case t.KEYCODE.QUESTION_MARK:case t.KEYCODE.NUM_PLUS:case t.KEYCODE.NUM_MINUS:case t.KEYCODE.NUM_PERIOD:case t.KEYCODE.NUM_DIVISION:case t.KEYCODE.SEMICOLON:case t.KEYCODE.FF_SEMICOLON:case t.KEYCODE.DASH:case t.KEYCODE.EQUALS:case t.KEYCODE.FF_EQUALS:case t.KEYCODE.COMMA:case t.KEYCODE.PERIOD:case t.KEYCODE.SLASH:case t.KEYCODE.APOSTROPHE:case t.KEYCODE.SINGLE_QUOTE:case t.KEYCODE.OPEN_SQUARE_BRACKET:case t.KEYCODE.BACKSLASH:case t.KEYCODE.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}function T(n){var o=n.which;if(b(n)||37<=o&&o<=40||!A(o)&&o!==t.KEYCODE.DELETE&&o!==t.KEYCODE.BACKSPACE&&o!==t.KEYCODE.ENTER&&o!==t.KEYCODE.IME)return!0;r||(a=e.snapshot.get(),e.undo.canDo()||e.undo.saveStep()),clearTimeout(r),r=setTimeout((function(){r=null,e.undo.saveStep()}),Math.max(250,e.opts.typingTimer))}function C(t){var n=t.which;if(b(t)||37<=n&&n<=40)return!0;a&&r?(e.undo.saveStep(a),a=null):void 0!==n&&0!==n||a||r||e.undo.saveStep()}function S(t){if(t&&"BR"===t.tagName)return!1;try{return 0===(t.textContent||"").length&&t.querySelector&&!t.querySelector(":scope > br")||t.childNodes&&1===t.childNodes.length&&t.childNodes[0].getAttribute&&("false"===t.childNodes[0].getAttribute("contenteditable")||e.node.hasClass(t.childNodes[0],"fr-img-caption"))}catch(e){return!1}}function y(n){var r=e.el.childNodes,a=e.html.defaultTag(),o=e.node.blockParent(e.selection.blocks()[0]);return o&&"TR"==o.tagName&&null==o.getAttribute("contenteditable")&&(o=o.closest("table")),!e.node.isEditable(n.target)||o&&"false"===o.getAttribute("contenteditable")?e.toolbar.disable():e.toolbar.enable(),!(!n.target||n.target===e.el)||0===r.length||void(r[0].offsetHeight+r[0].offsetTop<=n.offsetY?S(r[r.length-1])&&(a?e.$el.append("<".concat(a,">").concat(t.MARKERS,"
    ")):e.$el.append("".concat(t.MARKERS,"
    ")),e.selection.restore(),m()):n.offsetY<=10&&S(r[0])&&(a?e.$el.prepend("<".concat(a,">").concat(t.MARKERS,"
    ")):e.$el.prepend("".concat(t.MARKERS,"
    ")),e.selection.restore(),m()))}function L(){r&&clearTimeout(r)}return{_init:function(){e.events.on("keydown",T),e.events.on("input",c),e.events.on("mousedown",p),e.events.on("keyup input",C),e.events.on("keypress",f),e.events.on("keydown",g),e.events.on("keyup",v),e.events.on("destroy",L),e.events.on("html.inserted",v),e.events.on("cut",d),e.opts.multiLine&&e.events.on("click",y)},ctrlKey:b,isCharacter:A,isArrow:E,forceUndo:function(){r&&(clearTimeout(r),e.undo.saveStep(),a=null)},isIME:function(){return i},isBrowserAction:function(e){var n=e.which;return b(e)||n===t.KEYCODE.F5},positionCaret:m}},Object.assign(t.DEFAULTS,{pastePlain:!1,pasteDeniedTags:["colgroup","col","meta"],pasteDeniedAttrs:["class","id"],pasteAllowedStyleProps:[".*"],pasteAllowLocalImages:!1}),t.MODULES.paste=function(e){var n,r,a,o,i=e.$;function s(t,n){try{e.win.localStorage.setItem("fr-copied-html",t),e.win.localStorage.setItem("fr-copied-text",n)}catch(e){}}function l(t){var n=e.html.getSelected();s(n,i(e.doc.createElement("div")).html(n).text()),"cut"===t.type&&(e.undo.saveStep(),setTimeout((function(){e.selection.save(),e.html.wrap(),e.selection.restore(),e.events.focus(),e.undo.saveStep()}),0))}var c=!1;function d(t){if("INPUT"===t.target.nodeName&&"text"===t.target.type)return!0;if(e.edit.isDisabled())return!1;if(f(t.target))return!1;if(c)return!1;if(t.originalEvent&&(t=t.originalEvent),!1===e.events.trigger("paste.before",[t]))return t.preventDefault(),!1;if(t&&t.clipboardData&&t.clipboardData.getData){var o="",s=t.clipboardData.types;if(e.helpers.isArray(s))for(var l=0;l
    '),e.browser.webkit||e.browser.mozilla?(a.css("top",e.$sc.scrollTop()),e.$el.after(a)):e.browser.edge&&e.opts.iframe?e.$el.append(a):e.$box.after(a),e.events.on("destroy",(function(){a.remove()}))),e.helpers.isIOS()&&e.$sc&&(t=e.$sc.scrollTop()),e.opts.iframe&&e.$el.attr("contenteditable","false"),a.focus(),e.helpers.isIOS()&&e.$sc&&e.$sc.scrollTop(t),e.win.setTimeout(u,1)}(),!1}function f(e){return e&&"false"===e.contentEditable}function p(a){if(a.originalEvent&&(a=a.originalEvent),f(a.target))return!1;if(a&&a.dataTransfer&&a.dataTransfer.getData){var s="",l=a.dataTransfer.types;if(e.helpers.isArray(l))for(var c=0;c")),""!==n){e.keys.forceUndo(),o=e.snapshot.get(),e.selection.save(),e.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-helper");var d=e.markers.insertAtPoint(a);if(e.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-placeholder"),e.$el.find(".fr-marker-helper").addClass("fr-marker").removeClass("fr-marker-helper"),e.selection.restore(),e.selection.remove(),e.$el.find(".fr-marker-placeholder").addClass("fr-marker").removeClass("fr-marker-placeholder"),!1!==d){var p=e.el.querySelector(".fr-marker");return i(p).replaceWith(t.MARKERS),e.selection.restore(),u(),a.preventDefault&&(a.stopPropagation(),a.preventDefault()),!1}}else n=null}}function u(){e.opts.iframe&&e.$el.attr("contenteditable","true"),e.browser.edge&&e.opts.iframe&&e.$box.after(a),o||(e.keys.forceUndo(),o=e.snapshot.get()),n||(n=a.get(0).innerHTML,e.selection.restore(),e.events.enableBlur());var t=n.match(/(class="?Mso|class='?Mso|class="?Xl|class='?Xl|class=Xl|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument|LibreOffice)/gi),r=e.events.chainTrigger("paste.beforeCleanup",n);r&&"string"==typeof r&&(n=r),(!t||t&&!1!==e.events.trigger("paste.wordPaste",[n]))&&g(n,t)}function h(e){for(var t="",n=0;n++]*(]*>[\s]*[.\s\S\w\W<>]*[\s]*<\/style>)[.\s\S\w\W<>]*/gi,"$1")),n=(n=d+n.replace(/[.\s\S\w\W<>]*]*>[\s]*([.\s\S\w\W<>]*)[\s]*<\/body>[.\s\S\w\W<>]*/gi,"$1")).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")}var f=!1;0<=n.indexOf('id="docs-internal-guid')&&(n=n.replace(/^[\w\W\s\S]* id="docs-internal-guid[^>]*>([\w\W\s\S]*)<\/b>[\w\W\s\S]*$/g,"$1"),f=!0),0<=n.indexOf('content="Sheets"')&&(n=n.replace(/width:0px;/g,""));var p=!1;if(!r)if((p=function(t){var n=null;try{n=e.win.localStorage.getItem("fr-copied-text")}catch(e){}return!(!n||i("
    ").html(t).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!==n.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(n))&&(n=e.win.localStorage.getItem("fr-copied-html")),p)n=e.clean.html(n,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs);else{var u=e.opts.htmlAllowedStyleProps;e.opts.htmlAllowedStyleProps=e.opts.pasteAllowedStyleProps,e.opts.htmlAllowComments=!1,n=(n=(n=n.replace(/\s*<\/span>/g,h(e.opts.tabSpaces||4))).replace(/(\t*)<\/span>/g,(function(t,n){return h(n.length*(e.opts.tabSpaces||4))}))).replace(/\t/g,h(e.opts.tabSpaces||4)),n=e.clean.html(n,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs),e.opts.htmlAllowedStyleProps=u,e.opts.htmlAllowComments=!0,n=(n=(n=v(n)).replace(/\r/g,"")).replace(/^ */g,"").replace(/ *$/g,"")}!r||e.wordPaste&&a||(0===(n=n.replace(/^\n*/g,"").replace(/^ /g,"")).indexOf("")&&(n="".concat(n,"
    ")),n=v(n=function(t){var n;t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/([\s\S]*?)<\/p>/gi,"
    • $3
    ")).replace(/([\s\S]*?)<\/p>/gi,"
    1. $3
    ")).replace(/([\s\S]*?)<\/p>/gi,"
      $5")).replace(/([\s\S]*?)<\/p>/gi,"
        $5")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)<\/p>/gi,"$5
    ")).replace(/([\s\S]*?)<\/p>/gi,"$5")).replace(/([\s\S]*?)([\s\S]*?)/gi,"")).replace(/([\s\S]*?)/gi,"")).replace(/(\n|\r| class=(")?Mso[a-zA-Z0-9]+(")?)/gi," ")).replace(//gi,"")).replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>/gi,"");var r,a=["style","script","applet","embed","noframes","noscript"];for(n=0;n"),"gi");t=t.replace(o,"")}for(t=(t=(t=t.replace(/ /gi," ")).replace(/]*)><\/td>/g,"
    ")).replace(/]*)><\/th>/g,"
    ");(t=(r=t).replace(/<[^/>][^>]*><\/[^>]+>/gi,""))!==r;);t=(t=t.replace(/]*)>/gi,'
  • ')).replace(/]*)>/gi,""),t=(t=(t=e.clean.html(t,e.opts.pasteDeniedTags,e.opts.pasteDeniedAttrs)).replace(/(.[^<]+)<\/a>/gi,"$1")).replace(/
    */g,"
    ");var i=e.o_doc.createElement("div");i.innerHTML=t;var s=i.querySelectorAll("li[data-indent]");for(n=0;n ul, :scope > ol");d||(d=document.createElement("ul"),c.appendChild(d)),d.appendChild(l)}else l.removeAttribute("data-indent")}return e.html.cleanBlankSpaces(i),i.innerHTML}(n))),e.opts.pastePlain&&!p&&(n=function(t){var n,r=null,a=e.doc.createElement("div");a.innerHTML=t;var o=a.querySelectorAll("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote");for(n=0;n").concat(r.innerHTML,"");for(n=(o=a.querySelectorAll("*:not(".concat("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote, ul, ol, li, table, tbody, thead, tr, td, br, img".split(",").join("):not("),")"))).length-1;0<=n;n--)(r=o[n]).outerHTML=r.innerHTML;return function t(n){for(var r=e.node.contents(n),a=0;a")?(e.html.cleanBlankSpaces(m),e.spaces.normalize(m,!0)):e.spaces.normalize(m);var b=m.getElementsByTagName("span");for(s=b.length-1;0<=s;s--){var E=b[s];0===E.attributes.length&&(E.outerHTML=E.innerHTML)}if(!0===e.opts.linkAlwaysBlank){var A=m.getElementsByTagName("a");for(s=A.length-1;0<=s;s--){var T=A[s];T.getAttribute("target")||T.setAttribute("target","_blank")}}var C=e.selection.element(),S=!1;if(C&&i(C).parentsUntil(e.el,"ul, ol").length&&(S=!0),S){var y=m.children;1===y.length&&0<=["OL","UL"].indexOf(y[0].tagName)&&(y[0].outerHTML=y[0].innerHTML)}if(!f){var L=m.getElementsByTagName("br");for(s=L.length-1;0<=s;s--){var R=L[s];e.node.isBlock(R.previousSibling)&&R.parentNode.removeChild(R)}}if(e.opts.enter===t.ENTER_BR)for(s=(l=m.querySelectorAll("p, div")).length-1;0<=s;s--)0===(c=l[s]).attributes.length&&(c.outerHTML=c.innerHTML+(c.nextSibling&&!e.node.isEmpty(c)?"
    ":""));else if(e.opts.enter===t.ENTER_DIV)for(s=(l=m.getElementsByTagName("p")).length-1;0<=s;s--)0===(c=l[s]).attributes.length&&(c.outerHTML="
    ".concat(c.innerHTML,"
    "));else e.opts.enter===t.ENTER_P&&1===m.childNodes.length&&"P"===m.childNodes[0].tagName&&0===m.childNodes[0].attributes.length&&(m.childNodes[0].outerHTML=m.childNodes[0].innerHTML);n=m.innerHTML,p&&(n=function(n){var r,a=e.o_doc.createElement("div");a.innerHTML=n;for(var o=a.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not(".concat(t.VOID_ELEMENTS.join("):not("),"):not(").concat(e.opts.htmlAllowedEmptyTags.join("):not("),")"));o.length;){for(r=0;r div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")));a.length;){var o=a[a.length-1];if(e.html.defaultTag()&&"div"!==e.html.defaultTag())o.querySelector(e.html.blockTagsQuery())?o.outerHTML=o.innerHTML:o.outerHTML="<".concat(e.html.defaultTag(),">").concat(o.innerHTML,"");else{var i=o.querySelectorAll("*");!i.length||"BR"!==i[i.length-1].tagName&&0===o.innerText.length||!i.length||"BR"!==i[i.length-1].tagName||i[i.length-1].nextSibling?o.outerHTML=o.innerHTML+(o.nextSibling?"
    ":""):o.outerHTML=o.innerHTML}a=m(Array.prototype.slice.call(r.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")))}for(a=m(Array.prototype.slice.call(r.querySelectorAll("div:not([style])")));a.length;){for(n=0;ne.undo_index;)e.undo_stack.pop()}function o(){e.undo_index=0,e.undo_stack=[]}function i(){e.undo_stack=[]}return{_init:function(){o(),e.events.on("initialized",(function(){r=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,"")})),e.events.on("blur",(function(){e.el.querySelector(".fr-dragging")||e.undo.saveStep()})),e.events.on("keydown",n),e.events.on("destroy",i)},run:function(){if(1'.concat(t,""));for(var r=0;r'));a.get(0).addEventListener("load",e.size.syncIframe),e.$head.append(a)}}},hasFocus:function(){return e.browser.mozilla&&e.helpers.isMobile()?e.selection.inEditor():e.node.hasFocus(e.el)||0 span").css("width")),f=e.helpers.getPX(c.css("paddingLeft")),p=e.helpers.getPX(c.css("paddingRight"));c.css("width",d*e.opts.colorsStep+f+p)}return e.button.bindCommands(l,!1),l}(r,o),c=g(r);m(c,r),e.events.$on(l,"mousedown mouseup touchstart touchend touch","*",c._preventFocus,!0),e.events.$on(l,"focus","input, textarea, button, select",c._inputFocus,!0),e.events.$on(l,"blur","input, textarea, button, select",c._inputBlur,!0);var d=l.find("input, textarea");return function(e){for(var t=0;t').concat(a.attr("placeholder"),"")),a.attr("placeholder",""))}}(d),e.events.$on(d,"focus",i),e.events.$on(d,"blur change",s),e.events.$on(l,"click",".fr-checkbox + label",v),e.accessibility.registerPopup(r),e.helpers.isIOS()&&e.events.$on(l,"touchend","label",(function(){n("#".concat(n(this).attr("for"))).prop("checked",(function(e,t){return!t}))}),!0),e.events.$on(n(e.o_win),"resize",c._windowResize,!0),l},get:function(t){var n=a[t];return n&&!n.data("inst".concat(e.id))&&m(g(t),t),n},show:function(t,n,i,s,d){if(l(t)||(c()&&0 .fr-dropdown-wrapper").css("height",""),p.next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),a[t].data("instance",e),e.$tb&&e.$tb.data("instance",e);var h=l(t);a[t].addClass("fr-active").removeClass("fr-hidden").find("input, textarea").removeAttr("disabled");var m=a[t].data("container");if(function(t,n){n.isVisible()||(n=e.$sc),n.contains([a[t].get(0)])||n.append(a[t])}(t,m),e.opts.toolbarInline&&m&&e.$tb&&m.get(0)===e.$tb.get(0)&&(o(t,e.$sc),i=e.$tb.offset().top-e.helpers.getPX(e.$tb.css("margin-top")),n=e.$tb.offset().left+e.$tb.outerWidth()/2,e.node.hasClass(e.$tb.get(0),"fr-above")&&i&&(i+=e.$tb.outerHeight()),s=0),m=a[t].data("container"),e.opts.iframe&&!s&&!h){var v=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-top")),b=e.helpers.getPX(e.$wp.find(".fr-iframe").css("padding-left"));n&&(n-=e.$iframe.offset().left+b),i&&(i-=e.$iframe.offset().top+v)}m.is(e.$tb)?e.$tb.css("zIndex",(e.opts.zIndex||1)+4):a[t].css("zIndex",(e.opts.zIndex||1)+4),e.opts.toolbarBottom&&m&&e.$tb&&m.get(0)===e.$tb.get(0)&&(a[t].addClass("fr-above"),i&&(i-=a[t].outerHeight())),d&&(n-=a[t].width()/2),n+a[t].outerWidth()>e.$sc.offset().left+e.$sc.width()&&(n-=n+a[t].outerWidth()-e.$sc.offset().left-e.$sc.width()),n button.fr-command").first());if(0t(e.o_win).width()&&(a=t(e.o_win).width()-e.$tooltip.outerWidth()),void 0===r&&(r=e.opts.toolbarBottom),n.offset().top-t(window).scrollTop()+n.outerHeight()+10>=t(window).height()&&(r=!0);var o=r?n.offset().top-e.$tooltip.height():n.offset().top+n.outerHeight();e.$tooltip.css("position",""),e.$tooltip.css("left",a),e.$tooltip.css("top",Math.ceil(o)),"static"!==t(e.o_doc).find("body").first().css("position")?(e.$tooltip.css("margin-left",-t(e.o_doc).find("body").first().offset().left),e.$tooltip.css("margin-top",-t(e.o_doc).find("body").first().offset().top)):(e.$tooltip.css("margin-left",""),e.$tooltip.css("margin-top",""))}}return{hide:n,to:r,bind:function(a,o,i){e.opts.tooltips&&!e.helpers.isMobile()&&(e.events.$on(a,"mouseover",o,(function(n){e.node.hasClass(n.currentTarget,"fr-disabled")||e.edit.isDisabled()||r(t(n.currentTarget),i)}),!0),e.events.$on(a,"mouseout ".concat(e._mousedown," ").concat(e._mouseup),o,(function(){n()}),!0))}}},t.TOOLBAR_VISIBLE_BUTTONS=3,t.MODULES.button=function(e){var n=e.$,r=[];(e.opts.toolbarInline||e.opts.toolbarContainer)&&(e.shared.buttons||(e.shared.buttons=[]),r=e.shared.buttons);var a=[];function o(e,t,r){for(var a=n(),o=0;o .fr-dropdown-wrapper").css("height",""),r.prev(".fr-expanded").removeClass("fr-expanded"),r.parents(".fr-toolbar:not(.fr-inline)").css("zIndex","")),e.parents(".fr-popup, .fr-toolbar").data("instance").commands.exec(t,n)}function l(r){var a=r.parents(".fr-popup, .fr-toolbar").data("instance");if(0===r.parents(".fr-popup").length&&r.data("popup")&&!r.hasClass("fr-btn-active-popup")&&r.addClass("fr-btn-active-popup"),0!==r.parents(".fr-popup").length||r.data("popup")||a.popups.hideAll(),a.popups.areVisible()&&!a.popups.areVisible(a)){for(var o=0;o .fr-dropdown-wrapper");if(!o){var p=r.data("cmd");a.find(".fr-command").removeClass("fr-active").attr("aria-selected",!1),t.COMMANDS[p]&&t.COMMANDS[p].refreshOnShow&&t.COMMANDS[p].refreshOnShow.apply(l,[r,a]),a.css("left",r.offset().left-r.parents(".fr-btn-wrap, .fr-toolbar, .fr-buttons").offset().left-("rtl"===e.opts.direction?a.width()-r.outerWidth():0)),a.addClass("test-height"),c=a.outerHeight(),d=e.helpers.getPX(f.css("max-height")),a.removeClass("test-height"),a.css("top","").css("bottom","");var u=r.outerHeight()/10;if(!e.opts.toolbarBottom&&a.offset().top+r.outerHeight()+ce.$sc.offset().left+e.$sc.width()&&a.css("margin-left",-(a.offset().left+a.outerWidth()-e.$sc.offset().left-e.$sc.width())),a.offset().left .fr-dropdown-wrapper").css("height",""),s.prev(".fr-expanded").removeClass("fr-expanded"),s.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",""),0!==r.parents(".fr-popup").length||e.opts.toolbarInline||(e.node.hasClass(r.get(0),"fr-active")?e.$tb.css("zIndex",(e.opts.zIndex||1)+4):e.$tb.css("zIndex",""));var m=a.find("a.fr-command.fr-active").first();e.helpers.isMobile()||(m.length?(e.accessibility.focusToolbarElement(m),f.scrollTop(Math.abs(m.parents(".fr-dropdown-content").offset().top-m.offset().top)-m.offset().top)):(e.accessibility.focusToolbarElement(r),f.scrollTop(0)))}(r):(function(e){s(e)}(r),t.COMMANDS[r.data("cmd")]&&!1!==t.COMMANDS[r.data("cmd")].refreshAfterCallback&&a.button.bulkRefresh())}function c(e){l(n(e.currentTarget))}function d(e){var t=e.find(".fr-dropdown.fr-active");t.length&&(t.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0).css("overflow","").find("> .fr-dropdown-wrapper").css("height",""),t.parents(".fr-toolbar:not(.fr-inline)").css("zIndex",""),t.prev().removeClass("fr-expanded"))}function f(e){e.preventDefault(),e.stopPropagation()}function p(t){if(t.stopPropagation(),!e.helpers.isMobile())return!1}function u(t){var n=1').concat(e.language.translate(i||n.title),"")}else o=e.icon.create(n.icon||t),o+=''.concat(e.language.translate(n.title)||"","");var s=n.popup?' data-popup="true"':"",l=n.modal?' data-modal="true"':"",c=e.shortcuts.get("".concat(t,"."));c=c?" (".concat(c,")"):"";var d="".concat(t,"-").concat(e.id),f="dropdown-menu-".concat(d),p='");if("dropdown"===n.type||"options"===n.type){var h='
    "}return n.hasOptions&&n.hasOptions.apply(e)&&(p='
    '.concat(p," ").concat(u(t+"Options",Object.assign({},n,{type:"options",hasOptions:!1}),r),"
    ")),p}function h(r){var a=e.$tb&&e.$tb.data("instance")||e;if(!1===e.events.trigger("buttons.refresh"))return!0;setTimeout((function(){for(var o=a.selection.inEditor()&&a.core.hasFocus(),i=0;i
  • ':"-"===i&&(a+=''))}return a},buildGroup:function(n){var r="",a="";for(var o in n){var i=n[o];if(i.buttons){for(var s="",l="",c=0,d="left",f=t.TOOLBAR_VISIBLE_BUTTONS,p=0;p
    ':"-"==h&&(s+='')),!g||g&&void 0!==g.plugin&&e.opts.pluginsEnabled.indexOf(g.plugin)<0||(void 0!==n[o].align&&(d=n[o].align),void 0!==n[o].buttonsVisible&&(f=n[o].buttonsVisible),n.showMoreButtons&&f<=c?l+=u(h,g,!0):s+=u(h,g,!0),c++)}if(n.showMoreButtons&&f').concat(s,"
    "),n.showMoreButtons&&0').concat(l,""))}}return e.opts.toolbarBottom?"".concat(a,'
    ').concat(r):"".concat(r,'
    ').concat(a)},bindCommands:function(o,i){e.events.bindClick(o,".fr-command:not(.fr-disabled)",c),e.events.$on(o,"".concat(e._mousedown," ").concat(e._mouseup," ").concat(e._move),".fr-dropdown-menu",f,!0),e.events.$on(o,"".concat(e._mousedown," ").concat(e._mouseup," ").concat(e._move),".fr-dropdown-menu .fr-dropdown-wrapper",p,!0);var s=o.get(0).ownerDocument,l="defaultView"in s?s.defaultView:s.parentWindow;function u(r){(!r||r.type===e._mouseup&&r.target!==n("html").get(0)||"keydown"===r.type&&(e.keys.isCharacter(r.which)&&!e.keys.ctrlKey(r)||r.which===t.KEYCODE.ESC))&&d(o)}e.events.$on(n(l),"".concat(e._mouseup," resize keydown"),u,!0),e.opts.iframe&&e.events.$on(e.$win,e._mouseup,u,!0),e.node.hasClass(o.get(0),"fr-popup")?n.merge(a,o.find(".fr-btn").toArray()):n.merge(r,o.find(".fr-btn").toArray()),e.tooltip.bind(o,".fr-btn, .fr-title",i)},refresh:function(n){var r,a=n.parents(".fr-popup, .fr-toolbar").data("instance")||e,o=n.data("cmd");e.node.hasClass(n.get(0),"fr-dropdown")?r=n.next():(n.removeClass("fr-active"),n.attr("aria-pressed")&&n.attr("aria-pressed",!1)),t.COMMANDS[o]&&t.COMMANDS[o].refresh?t.COMMANDS[o].refresh.apply(a,[n,r]):e.refresh[o]&&a.refresh[o](n,r)},bulkRefresh:g,exec:s,click:l,hideActiveDropdowns:d,addButtons:function(e){for(var t=0;t
    '),a.removeClass("fr-visible");else if(!1===t.markers.insertAtPoint(r.originalEvent))return!1;if(o.removeClass("fr-dragging"),!1===(o=t.events.chainTrigger("element.beforeDrop",o)))return!1;var l=o;if(o.parent().is("A")&&1===o.parent().get(0).childNodes.length&&(l=o.parent()),t.core.isEmpty()?t.events.focus():(t.$el.find(".fr-marker").replaceWith(e.MARKERS),t.selection.restore()),i===t||t.undo.canDo()||t.undo.saveStep(),t.core.isEmpty())t.$el.html(l);else{var c=t.markers.insert();0===l.find(c).length?n(c).replaceWith(l):0===o.find(c).length&&n(c).replaceWith(o),o.after(e.MARKERS),t.selection.restore()}return t.popups.hideAll(),t.selection.save(),t.$el.find(t.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").not(t.opts.htmlAllowedEmptyTags.join(",")).remove(),t.html.wrap(),t.html.fillEmptyBlocks(),t.selection.restore(),t.undo.saveStep(),t.opts.iframe&&t.size.syncIframe(),i!==t&&(i.popups.hideAll(),i.$el.find(i.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),i.html.wrap(),i.html.fillEmptyBlocks(),i.undo.saveStep(),i.events.trigger("element.dropped"),i.opts.iframe&&i.size.syncIframe()),t.events.trigger("element.dropped",[l]),!1}a&&a.removeClass("fr-visible"),t.undo.canDo()||t.undo.saveStep(),setTimeout((function(){t.undo.saveStep()}),0)}function f(e){if(e&&"DIV"===e.tagName&&t.node.hasClass(e,"fr-drag-helper"))e.parentNode.removeChild(e);else if(e&&e.nodeType===Node.ELEMENT_NODE)for(var n=e.querySelectorAll("div.fr-drag-helper"),r=0;r span").text(e.opts.fontFamily[a()]||r[0]||e.language.translate(e.opts.fontFamilyDefaultSelection))}}}},e.RegisterCommand("fontFamily",{type:"dropdown",displaySelection:function(e){return e.opts.fontFamilySelection},defaultSelection:function(e){return e.opts.fontFamilyDefaultSelection},displaySelectionWidth:120,html:function(){var e='"},title:"Font Family",callback:function(e,t){this.fontFamily.apply(t)},refresh:function(e){this.fontFamily.refresh(e)},refreshOnShow:function(e,t){this.fontFamily.refreshOnShow(e,t)},plugin:"fontFamily"}),e.DefineIcon("fontFamily",{NAME:"font",SVG_KEY:"fontFamily"})}(n(80214))},22133:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{fontSize:["8","9","10","11","12","14","18","24","30","36","48","60","72","96"],fontSizeSelection:!1,fontSizeDefaultSelection:"12",fontSizeUnit:"px"}),e.PLUGINS.fontSize=function(e){var t=e.$;return{apply:function(t){e.format.applyStyle("font-size",t)},refreshOnShow:function(n,r){var a=t(e.selection.element()).css("font-size");"pt"===e.opts.fontSizeUnit&&(a="".concat(Math.round(72*parseFloat(a,10)/96),"pt")),r.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),r.find('.fr-command[data-param1="'.concat(a,'"]')).addClass("fr-active").attr("aria-selected",!0)},refresh:function(n){if(e.opts.fontSizeSelection){var r=e.helpers.getPX(t(e.selection.element()).css("font-size"));"pt"===e.opts.fontSizeUnit&&(r="".concat(Math.round(72*parseFloat(r,10)/96),"pt")),n.find("> span").text(r)}}}},e.RegisterCommand("fontSize",{type:"dropdown",title:"Font Size",displaySelection:function(e){return e.opts.fontSizeSelection},displaySelectionWidth:30,defaultSelection:function(e){return e.opts.fontSizeDefaultSelection},html:function(){for(var e='"},callback:function(e,t){this.fontSize.apply(t)},refresh:function(e){this.fontSize.refresh(e)},refreshOnShow:function(e,t){this.fontSize.refreshOnShow(e,t)},plugin:"fontSize"}),e.DefineIcon("fontSize",{NAME:"text-height",SVG_KEY:"fontSize"})}(n(80214))},80631:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.POPUP_TEMPLATES,{"forms.edit":"[_BUTTONS_]","forms.update":"[_BUTTONS_][_TEXT_LAYER_]"}),Object.assign(e.DEFAULTS,{formEditButtons:["inputStyle","inputEdit"],formStyles:{"fr-rounded":"Rounded","fr-large":"Large"},formMultipleStyles:!0,formUpdateButtons:["inputBack","|"]}),e.PLUGINS.forms=function(e){var t,n=e.$;function r(t){e.selection.clear(),n(this).data("mousedown",!0)}function a(e){n(this).data("mousedown")&&(e.stopPropagation(),n(this).removeData("mousedown"),l(t=this)),e.preventDefault()}function o(){e.$el.find("input, textarea, button").removeData("mousedown")}function i(){n(this).removeData("mousedown")}function s(){return t||null}function l(r){if(-1==["checkbox","radio"].indexOf(r.type)){var a=e.popups.get("forms.edit");a||(a=function(){var t="";0'.concat(e.button.buildList(e.opts.formEditButtons),""));var n={buttons:t},r=e.popups.create("forms.edit",n);return e.$wp&&e.events.$on(e.$wp,"scroll.link-edit",(function(){s()&&e.popups.isVisible("forms.edit")&&l(s())})),r}());var o=n(t=r);e.popups.refresh("forms.edit"),e.popups.setContainer("forms.edit",e.$sc);var i=o.offset().left+o.outerWidth()/2,c=o.offset().top+o.outerHeight();e.popups.show("forms.edit",i,c,o.outerHeight())}}function c(){var t=e.popups.get("forms.update"),r=s();if(r){var a=n(r);a.is("button")?t.find('input[type="text"][name="text"]').val(a.text()):a.is("input[type=button]")||a.is("input[type=submit]")||a.is("input[type=reset]")?t.find('input[type="text"][name="text"]').val(a.val()):t.find('input[type="text"][name="text"]').val(a.attr("placeholder"))}t.find('input[type="text"][name="text"]').trigger("change")}function d(){t=null}function f(t){if(t)return e.popups.onRefresh("forms.update",c),e.popups.onHide("forms.update",d),!0;var n="";1<=e.opts.formUpdateButtons.length&&(n='
    '.concat(e.button.buildList(e.opts.formUpdateButtons),"
    "));var r=0,a={buttons:n,text_layer:'
    \n
    \n
    ")};return e.popups.create("forms.update",a)}return{_init:function(){e.events.$on(e.$el,e._mousedown,"input, textarea, button",r),e.events.$on(e.$el,e._mouseup,"input, textarea, button",a),e.events.$on(e.$el,"touchmove","input, textarea, button",i),e.events.$on(e.$el,e._mouseup,o),e.events.$on(e.$win,e._mouseup,o),f(!0),e.events.$on(e.$el,"submit","form",(function(e){return e.preventDefault(),!1}))},updateInput:function(){var t=e.popups.get("forms.update"),r=s();if(r){var a=n(r),o=t.find('input[type="text"][name="text"]').val()||"";a.is("button")?o.length?a.text(o):a.text("​"):-1!=["button","submit","reset"].indexOf(r.type)?a.attr("value",o):a.attr("placeholder",o),e.popups.hide("forms.update"),l(r)}},getInput:s,applyStyle:function(t,r,a){void 0===r&&(r=e.opts.formStyles),void 0===a&&(a=e.opts.formMultipleStyles);var o=s();if(!o)return!1;if(!a){var i=Object.keys(r);i.splice(i.indexOf(t),1),n(o).removeClass(i.join(" "))}n(o).toggleClass(t)},showUpdatePopup:function(){var t=s();if(t){var r=n(t),a=e.popups.get("forms.update");a||(a=f()),e.popups.isVisible("forms.update")||e.popups.refresh("forms.update"),e.popups.setContainer("forms.update",e.$sc);var o=r.offset().left+r.outerWidth()/2,i=r.offset().top+r.outerHeight();e.popups.show("forms.update",o,i,r.outerHeight())}},showEditPopup:l,back:function(){e.events.disableBlur(),e.selection.restore(),e.events.enableBlur();var t=s();t&&e.$wp&&("BUTTON"===t.tagName&&e.selection.restore(),l(t))}}},e.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}}),e.DefineIcon("inputStyle",{NAME:"magic",SVG_KEY:"inlineStyle"}),e.RegisterCommand("inputStyle",{title:"Style",type:"dropdown",html:function(){var e='"},callback:function(e,t){var n=this.forms.getInput();n&&(this.forms.applyStyle(t),this.forms.showEditPopup(n))},refreshOnShow:function(e,t){var n=this.$,r=this.forms.getInput();if(r){var a=n(r);t.find(".fr-command").each((function(){var e=n(this).data("param1");n(this).toggleClass("fr-active",a.hasClass(e))}))}}}),e.DefineIcon("inputEdit",{NAME:"edit",SVG_KEY:"edit"}),e.RegisterCommand("inputEdit",{title:"Edit Button",undo:!1,refreshAfterCallback:!1,callback:function(){this.forms.showUpdatePopup()}}),e.DefineIcon("inputBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("inputBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.forms.back()}}),e.RegisterCommand("updateInput",{undo:!1,focus:!1,title:"Update",callback:function(){this.forms.updateInput()}})}(n(80214))},68220:function(e,t,n){!function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).PLUGINS.fullscreen=function(e){var t,n,r,a,o=e.$,i=function(){return e.$box.hasClass("fr-fullscreen")};function s(){if(e.helpers.isIOS()&&e.core.hasFocus())return e.$el.blur(),setTimeout(c,250),!1;t=e.helpers.scrollTop(),e.$box.toggleClass("fr-fullscreen"),o("body").first().toggleClass("fr-fullscreen"),e.helpers.isMobile()&&(e.$tb.data("parent",e.$tb.parent()),e.$box.prepend(e.$tb),e.$tb.data("sticky-dummy")&&e.$tb.after(e.$tb.data("sticky-dummy"))),n=e.opts.height,r=e.opts.heightMax,a=e.opts.z_index,e.opts.height=e.o_win.innerHeight-(e.opts.toolbarInline?0:e.$tb.outerHeight()+(e.$second_tb?e.$second_tb.outerHeight():0)),e.opts.zIndex=2147483641,e.opts.heightMax=null,e.size.refresh(),e.opts.toolbarInline&&e.toolbar.showInline();for(var i=e.$box.parent();!i.first().is("body");)i.addClass("fr-fullscreen-wrapper"),i=i.parent();e.opts.toolbarContainer&&e.$box.prepend(e.$tb),e.events.trigger("charCounter.update"),e.events.trigger("codeView.update"),e.$win.trigger("scroll")}function l(){if(e.helpers.isIOS()&&e.core.hasFocus())return e.$el.blur(),setTimeout(c,250),!1;e.$box.toggleClass("fr-fullscreen"),o("body").first().toggleClass("fr-fullscreen"),e.$tb.data("parent")&&e.$tb.data("parent").prepend(e.$tb),e.$tb.data("sticky-dummy")&&e.$tb.after(e.$tb.data("sticky-dummy")),e.opts.height=n,e.opts.heightMax=r,e.opts.zIndex=a,e.size.refresh(),o(e.o_win).scrollTop(t),e.opts.toolbarInline&&e.toolbar.showInline(),e.events.trigger("charCounter.update"),e.opts.toolbarSticky&&e.opts.toolbarStickyOffset&&(e.opts.toolbarBottom?e.$tb.css("bottom",e.opts.toolbarStickyOffset).data("bottom",e.opts.toolbarStickyOffset):e.$tb.css("top",e.opts.toolbarStickyOffset).data("top",e.opts.toolbarStickyOffset));for(var i=e.$box.parent();!i.first().is("body");)i.removeClass("fr-fullscreen-wrapper"),i=i.parent();e.opts.toolbarContainer&&o(e.opts.toolbarContainer).append(e.$tb),o(e.o_win).trigger("scroll"),e.events.trigger("codeView.update")}function c(){i()?l():s(),d(e.$tb.find('.fr-command[data-cmd="fullscreen"]'));var t=e.$tb.find('.fr-command[data-cmd="moreText"]'),n=e.$tb.find('.fr-command[data-cmd="moreParagraph"]'),r=e.$tb.find('.fr-command[data-cmd="moreRich"]'),a=e.$tb.find('.fr-command[data-cmd="moreMisc"]');t.length&&e.refresh.moreText(t),n.length&&e.refresh.moreParagraph(n),r.length&&e.refresh.moreRich(r),a.length&&e.refresh.moreMisc(a)}function d(t){var n=i();t.toggleClass("fr-active",n).attr("aria-pressed",n),t.find("> *").not(".fr-sr-only").replaceWith(n?e.icon.create("fullscreenCompress"):e.icon.create("fullscreen"))}return{_init:function(){if(!e.$wp)return!1;e.events.$on(o(e.o_win),"resize",(function(){i()&&(l(),s())})),e.events.on("toolbar.hide",(function(){if(i()&&e.helpers.isMobile())return!1})),e.events.on("position.refresh",(function(){if(e.helpers.isIOS())return!i()})),e.events.on("destroy",(function(){i()&&l()}),!0)},toggle:c,refresh:d,isActive:i}},e.RegisterCommand("fullscreen",{title:"Fullscreen",undo:!1,focus:!1,accessibilityFocus:!0,forcedRefresh:!0,toggle:!0,callback:function(){this.fullscreen.toggle()},refresh:function(e){this.fullscreen.refresh(e)},plugin:"fullscreen"}),e.DefineIcon("fullscreen",{NAME:"expand",SVG_KEY:"fullscreen"}),e.DefineIcon("fullscreenCompress",{NAME:"compress",SVG_KEY:"exitFullscreen"})}(n(80214))},30609:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{helpSets:[{title:"Inline Editor",commands:[{val:"OSkeyE",desc:"Show the editor"}]},{title:"Common actions",commands:[{val:"OSkeyC",desc:"Copy"},{val:"OSkeyX",desc:"Cut"},{val:"OSkeyV",desc:"Paste"},{val:"OSkeyZ",desc:"Undo"},{val:"OSkeyShift+Z",desc:"Redo"},{val:"OSkeyK",desc:"Insert Link"},{val:"OSkeyP",desc:"Insert Image"}]},{title:"Basic Formatting",commands:[{val:"OSkeyA",desc:"Select All"},{val:"OSkeyB",desc:"Bold"},{val:"OSkeyI",desc:"Italic"},{val:"OSkeyU",desc:"Underline"},{val:"OSkeyS",desc:"Strikethrough"},{val:"OSkey]",desc:"Increase Indent"},{val:"OSkey[",desc:"Decrease Indent"}]},{title:"Quote",commands:[{val:"OSkey'",desc:"Increase quote level"},{val:"OSkeyShift+'",desc:"Decrease quote level"}]},{title:"Image / Video",commands:[{val:"OSkey+",desc:"Resize larger"},{val:"OSkey-",desc:"Resize smaller"}]},{title:"Table",commands:[{val:"Alt+Space",desc:"Select table cell"},{val:"Shift+Left/Right arrow",desc:"Extend selection one cell"},{val:"Shift+Up/Down arrow",desc:"Extend selection one row"}]},{title:"Navigation",commands:[{val:"OSkey/",desc:"Shortcuts"},{val:"Alt+F10",desc:"Focus popup / toolbar"},{val:"Esc",desc:"Return focus to previous position"}]}]}),e.PLUGINS.help=function(e){var t,n=e.$,r="help";return{_init:function(){},show:function(){if(!t){var a="

    ".concat(e.language.translate("Shortcuts"),"

    "),o=function(){for(var t='
    ',n=0;n";a+="".concat(e.language.translate(r.title),""),a+="";for(var o=0;o",a+="".concat(e.language.translate(i.desc),""),a+="".concat(i.val.replace("OSkey",e.helpers.isMac()?"⌘":"Ctrl+"),""),a+=""}t+=a+=""}return t+"
    "}(),i=e.modals.create(r,a,o);t=i.$modal,e.events.$on(n(e.o_win),"resize",(function(){e.modals.resize(r)}))}e.modals.show(r),e.modals.resize(r)},hide:function(){e.modals.hide(r)}}},e.DefineIcon("help",{NAME:"question",SVG_KEY:"help"}),e.RegisterShortcut(e.KEYCODE.SLASH,"help",null,"/"),e.RegisterCommand("help",{title:"Help",icon:"help",undo:!1,focus:!1,modal:!0,callback:function(){this.help.show()},plugin:"help",showOnMobile:!1})}(n(80214))},60833:function(e,t,n){!function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.POPUP_TEMPLATES,{"image.insert":"[_BUTTONS_][_UPLOAD_LAYER_][_BY_URL_LAYER_][_PROGRESS_BAR_]","image.edit":"[_BUTTONS_]","image.alt":"[_BUTTONS_][_ALT_LAYER_]","image.size":"[_BUTTONS_][_SIZE_LAYER_]"}),Object.assign(e.DEFAULTS,{imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageEditButtons:["imageReplace","imageAlign","imageCaption","imageRemove","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"],imageAltButtons:["imageBack","|"],imageSizeButtons:["imageBack","|"],imageUpload:!0,imageUploadURL:null,imageCORSProxy:"https://cors-anywhere.froala.com",imageUploadRemoteUrls:!0,imageUploadParam:"file",imageUploadParams:{},imageUploadToS3:!1,imageUploadMethod:"POST",imageMaxSize:10485760,imageAllowedTypes:["jpeg","jpg","png","gif","webp"],imageResize:!0,imageResizeWithPercent:!1,imageRoundPercent:!1,imageDefaultWidth:300,imageDefaultAlign:"center",imageDefaultDisplay:"block",imageSplitHTML:!1,imageStyles:{"fr-rounded":"Rounded","fr-bordered":"Bordered","fr-shadow":"Shadow"},imageMove:!0,imageMultipleStyles:!0,imageTextNear:!0,imagePaste:!0,imagePasteProcess:!1,imageMinWidth:16,imageOutputSize:!1,imageDefaultMargin:5,imageAddNewLine:!1}),e.PLUGINS.image=function(n){var r,a,o,i,s,l,c=n.$,d="https://i.froala.com/upload",f=!1,p=1,u=2,h=3,g=4,m=5,v=6,b={};function E(){var e=n.popups.get("image.insert").find(".fr-image-by-url-layer input");e.val(""),r&&e.val(r.attr("src")),e.trigger("change")}function A(){var e=n.popups.get("image.edit");if(e||(e=M()),e){var t=Te();Ce()&&(t=t.find(".fr-img-wrap")),n.popups.setContainer("image.edit",n.$sc),n.popups.refresh("image.edit");var a=t.offset().left+t.outerWidth()/2,o=t.offset().top+t.outerHeight();r.hasClass("fr-uploading")?D():n.popups.show("image.edit",a,o,t.outerHeight(),!0)}}function T(){k()}function C(e){0"),_(r)),s=i,l=t.timeStamp}}),!0),n.events.on("keyup",(function(){o=1}))}}(),!r)return!1;var t=n.$wp||n.$sc;t.append(a),a.data("instance",n);var o=t.scrollTop()-("static"!=t.css("position")?t.offset().top:0),s=t.scrollLeft()-("static"!=t.css("position")?t.offset().left:0);s-=n.helpers.getPX(t.css("border-left-width")),o-=n.helpers.getPX(t.css("border-top-width")),n.$el.is("img")&&n.$sc.is("body")&&(s=o=0);var l=Te();Ce()&&(l=l.find(".fr-img-wrap"));var d=0,f=0;n.opts.iframe&&(d=n.helpers.getPX(n.$wp.find(".fr-iframe").css("padding-top")),f=n.helpers.getPX(n.$wp.find(".fr-iframe").css("padding-left"))),a.css("top",(n.opts.iframe?l.offset().top+d:l.offset().top+o)-1).css("left",(n.opts.iframe?l.offset().left+f:l.offset().left+s)-1).css("width",l.get(0).getBoundingClientRect().width).css("height",l.get(0).getBoundingClientRect().height).addClass("fr-active")}function R(e){return'
    ')}function N(e){Ce()?r.parents(".fr-img-caption").css("width",e):r.css("width",e)}function O(e){if(!n.core.sameInstance(a))return!0;if(e.preventDefault(),e.stopPropagation(),n.$el.find("img.fr-error").left)return!1;n.undo.canDo()||n.undo.saveStep();var t=e.pageX||e.originalEvent.touches[0].pageX;if("mousedown"==e.type){var s=n.$oel.get(0).ownerDocument,l=s.defaultView||s.parentWindow,d=!1;try{d=l.location!=l.parent.location&&!(l.$&&l.$.FE)}catch(e){}d&&l.frameElement&&(t+=n.helpers.getPX(c(l.frameElement).offset().left)+l.frameElement.clientLeft)}(o=c(this)).data("start-x",t),o.data("start-width",r.width()),o.data("start-height",r.height());var f=r.width();if(n.opts.imageResizeWithPercent){var p=r.parentsUntil(n.$el,n.html.blockTagsQuery()).get(0)||n.el;f=(f/c(p).outerWidth()*100).toFixed(2)+"%"}N(f),i.show(),n.popups.hideAll(),he()}function w(e){if(!n.core.sameInstance(a))return!0;var t;if(o&&r){if(e.preventDefault(),n.$el.find("img.fr-error").left)return!1;var i=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null);if(!i)return!1;var s=i-o.data("start-x"),l=o.data("start-width");if((o.hasClass("fr-hnw")||o.hasClass("fr-hsw"))&&(s=0-s),n.opts.imageResizeWithPercent){var d=r.parentsUntil(n.$el,n.html.blockTagsQuery()).get(0)||n.el;l=((l+s)/c(d).outerWidth()*100).toFixed(2),n.opts.imageRoundPercent&&(l=Math.round(l)),N("".concat(l,"%")),(t=Ce()?(n.helpers.getPX(r.parents(".fr-img-caption").css("width"))/c(d).outerWidth()*100).toFixed(2):(n.helpers.getPX(r.css("width"))/c(d).outerWidth()*100).toFixed(2))===l||n.opts.imageRoundPercent||N("".concat(t,"%")),r.css("height","").removeAttr("height")}else l+s>=n.opts.imageMinWidth&&(N(l+s),t=Ce()?n.helpers.getPX(r.parents(".fr-img-caption").css("width")):n.helpers.getPX(r.css("width"))),t!==l+s&&N(t),((r.attr("style")||"").match(/(^height:)|(; *height:)/)||r.attr("height"))&&(r.css("height",o.data("start-height")*r.width()/o.data("start-width")),r.removeAttr("height"));L(),n.events.trigger("image.resize",[Ae()])}}function x(e){if(!n.core.sameInstance(a))return!0;if(o&&r){if(e&&e.stopPropagation(),n.$el.find("img.fr-error").left)return!1;o=null,i.hide(),L(),A(),n.undo.saveStep(),n.events.trigger("image.resizeEnd",[Ae()])}else a.removeClass("fr-active")}function I(e,t,a){n.edit.on(),r&&r.addClass("fr-error"),b[e]?B(n.language.translate(b[e])):B(n.language.translate("Something went wrong. Please try again.")),!r&&a&&ne(a),n.events.trigger("image.error",[{code:e,message:b[e]},t,a])}function M(e){if(e)return n.$wp&&n.events.$on(n.$wp,"scroll.image-edit",(function(){r&&n.popups.isVisible("image.edit")&&(n.events.disableBlur(),A())})),!0;var t="";if(0 \n '.concat(n.button.buildList(n.opts.imageEditButtons),"\n ")};return n.popups.create("image.edit",a)}return!1}function D(e){var t=n.popups.get("image.insert");if(t||(t=X()),t.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),t.find(".fr-image-progress-bar-layer").addClass("fr-active"),t.find(".fr-buttons").hide(),r){var a=Te();n.popups.setContainer("image.insert",n.$sc);var o=a.offset().left,i=a.offset().top+a.height();n.popups.show("image.insert",o,i,a.outerHeight())}void 0===e&&$(n.language.translate("Uploading"),0)}function k(e){var t=n.popups.get("image.insert");if(t&&(t.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),t.find(".fr-image-progress-bar-layer").removeClass("fr-active"),t.find(".fr-buttons").show(),e||n.$el.find("img.fr-error").length)){if(n.events.focus(),n.$el.find("img.fr-error").length&&(n.$el.find("img.fr-error").remove(),n.undo.saveStep(),n.undo.run(),n.undo.dropRedo()),!n.$wp&&r){var a=r;fe(!0),n.selection.setAfter(a.get(0)),n.selection.restore()}n.popups.hide("image.insert")}}function $(e,t){var r=n.popups.get("image.insert");if(r){var a=r.find(".fr-image-progress-bar-layer");a.find("h3").text(e+(t?" ".concat(t,"%"):"")),a.removeClass("fr-error"),t?(a.find("div").removeClass("fr-indeterminate"),a.find("div > span").css("width","".concat(t,"%"))):a.find("div").addClass("fr-indeterminate")}}function B(e){D();var t=n.popups.get("image.insert").find(".fr-image-progress-bar-layer");t.addClass("fr-error");var r=t.find("h3");r.text(e),n.events.disableBlur(),r.focus()}function _(e){de.call(e.get(0))}function H(){var e=c(this);n.popups.hide("image.insert"),e.removeClass("fr-uploading"),e.next().is("br")&&e.next().remove(),_(e),n.events.trigger("image.loaded",[e])}function P(e,t,r,a,o){a&&"string"==typeof a&&(a=n.$(a)),n.edit.off(),$(n.language.translate("Loading image")),t&&(e=n.helpers.sanitizeURL(e));var i=new Image;i.onload=function(){var t,i;if(a){n.undo.canDo()||a.hasClass("fr-uploading")||n.undo.saveStep();var s=a.data("fr-old-src");a.data("fr-image-pasted")&&(s=null),n.$wp?((t=a.clone().removeData("fr-old-src").removeClass("fr-uploading").removeAttr("data-fr-image-pasted")).off("load"),s&&a.attr("src",s),a.replaceWith(t)):t=a;for(var l=t.get(0).attributes,c=0;cn.opts.imageMaxSize)return I(m),!1;if(n.opts.imageAllowedTypes.indexOf(o.type.replace(/image\//g,""))<0)return I(v),!1;if(n.drag_support.formdata&&(a=n.drag_support.formdata?new FormData:null),a){var i;if(!1!==n.opts.imageUploadToS3)for(i in a.append("key",n.opts.imageUploadToS3.keyStart+(new Date).getTime()+"-"+(o.name||"untitled")),a.append("success_action_status","201"),a.append("X-Requested-With","xhr"),a.append("Content-Type",o.type),n.opts.imageUploadToS3.params)n.opts.imageUploadToS3.params.hasOwnProperty(i)&&a.append(i,n.opts.imageUploadToS3.params[i]);for(i in n.opts.imageUploadParams)n.opts.imageUploadParams.hasOwnProperty(i)&&a.append(i,n.opts.imageUploadParams[i]);a.append(n.opts.imageUploadParam,o,o.name);var s=n.opts.imageUploadURL;n.opts.imageUploadToS3&&(s=n.opts.imageUploadToS3.uploadURL?n.opts.imageUploadToS3.uploadURL:"https://".concat(n.opts.imageUploadToS3.region,".amazonaws.com/").concat(n.opts.imageUploadToS3.bucket)),function(e,t,r,a){function o(){var r=c(this);r.off("load"),r.addClass("fr-uploading"),r.next().is("br")&&r.next().remove(),n.placeholder.refresh(),_(r),L(),D(),n.edit.off(),e.onload=function(){U.call(e,r)},e.onerror=W,e.upload.onprogress=V,e.onabort=F,c(r.off("abortUpload")).on("abortUpload",(function(){4!=e.readyState&&(e.abort(),a?(a.attr("src",a.data("fr-old-src")),a.removeClass("fr-uploading")):r.remove(),fe(!0))})),e.send(t)}var i=new FileReader;i.onload=function(){var e=i.result;if(i.result.indexOf("svg+xml")<0){for(var t=atob(i.result.split(",")[1]),r=[],s=0;s'.concat(i,""));var s=n.opts.imageInsertButtons.indexOf("imageUpload"),l=n.opts.imageInsertButtons.indexOf("imageByURL"),d="";0<=s&&(t=" fr-active",0<=l&&l').concat(n.language.translate("Drop image"),"
    (").concat(n.language.translate("or click"),')
    '));var f="";0<=l&&(t=" fr-active",0<=s&&s
    "));var p={buttons:o,upload_layer:d,by_url_layer:f,progress_bar:'

    Uploading

    '};return 1<=n.opts.imageInsertButtons.length&&(a=n.popups.create("image.insert",p)),n.$wp&&n.events.$on(n.$wp,"scroll",(function(){r&&n.popups.isVisible("image.insert")&&be()})),function(e){n.events.$on(e,"dragover dragenter",".fr-image-upload-layer",(function(e){return c(this).addClass("fr-drop"),(n.browser.msie||n.browser.edge)&&e.preventDefault(),!1}),!0),n.events.$on(e,"dragleave dragend",".fr-image-upload-layer",(function(e){return c(this).removeClass("fr-drop"),(n.browser.msie||n.browser.edge)&&e.preventDefault(),!1}),!0),n.events.$on(e,"drop",".fr-image-upload-layer",(function(t){t.preventDefault(),t.stopPropagation(),c(this).removeClass("fr-drop");var r=t.originalEvent.dataTransfer;if(r&&r.files){var a=e.data("instance")||n;a.events.disableBlur(),a.image.upload(r.files),a.events.enableBlur()}}),!0),n.helpers.isIOS()&&n.events.$on(e,"touchstart",'.fr-image-upload-layer input[type="file"]',(function(){c(this).trigger("click")}),!0),n.events.$on(e,"change",'.fr-image-upload-layer input[type="file"]',(function(){if(this.files){var t=e.data("instance")||n;t.events.disableBlur(),e.find("input:focus").blur(),t.events.enableBlur(),t.image.upload(this.files,r)}c(this).val("")}),!0)}(a),a}function q(){r&&n.popups.get("image.alt").find("input").val(r.attr("alt")||"").trigger("change")}function j(){var e=n.popups.get("image.alt");e||(e=Z()),k(),n.popups.refresh("image.alt"),n.popups.setContainer("image.alt",n.$sc);var t=Te();Ce()&&(t=t.find(".fr-img-wrap"));var r=t.offset().left+t.outerWidth()/2,a=t.offset().top+t.outerHeight();n.popups.show("image.alt",r,a,t.outerHeight(),!0)}function Z(e){if(e)return n.popups.onRefresh("image.alt",q),!0;var t={buttons:'
    '.concat(n.button.buildList(n.opts.imageAltButtons),"
    "),alt_layer:'
    ")},a=n.popups.create("image.alt",t);return n.$wp&&n.events.$on(n.$wp,"scroll.image-alt",(function(){r&&n.popups.isVisible("image.alt")&&j()})),a}function Q(){var e=n.popups.get("image.size");if(r)if(Ce()){var t=r.parent();t.get(0).style.width||(t=r.parent().parent()),e.find('input[name="width"]').val(t.get(0).style.width).trigger("change"),e.find('input[name="height"]').val(t.get(0).style.height).trigger("change")}else e.find('input[name="width"]').val(r.get(0).style.width).trigger("change"),e.find('input[name="height"]').val(r.get(0).style.height).trigger("change")}function J(){var e=n.popups.get("image.size");e||(e=ee()),k(),n.popups.refresh("image.size"),n.popups.setContainer("image.size",n.$sc);var t=Te();Ce()&&(t=t.find(".fr-img-wrap"));var r=t.offset().left+t.outerWidth()/2,a=t.offset().top+t.outerHeight();n.popups.show("image.size",r,a,t.outerHeight(),!0)}function ee(e){if(e)return n.popups.onRefresh("image.size",Q),!0;var t={buttons:'
    '.concat(n.button.buildList(n.opts.imageSizeButtons),"
    "),size_layer:'
    ")},a=n.popups.create("image.size",t);return n.$wp&&n.events.$on(n.$wp,"scroll.image-size",(function(){r&&n.popups.isVisible("image.size")&&J()})),a}function te(e,t,n,r){return e.pageX=t,O.call(this,e),e.pageX=e.pageX+n*Math.floor(Math.pow(1.1,r)),w.call(this,e),x.call(this,e),++r}function ne(t){(t=t||Te())&&!1!==n.events.trigger("image.beforeRemove",[t])&&(n.popups.hideAll(),Ee(),fe(!0),n.undo.canDo()||n.undo.saveStep(),t.get(0)==n.el?t.removeAttr("src"):(t.get(0).parentNode&&"A"==t.get(0).parentNode.tagName?(n.selection.setBefore(t.get(0).parentNode)||n.selection.setAfter(t.get(0).parentNode)||t.parent().after(e.MARKERS),c(t.get(0).parentNode).remove()):(n.selection.setBefore(t.get(0))||n.selection.setAfter(t.get(0))||t.after(e.MARKERS),t.remove()),n.html.fillEmptyBlocks(),n.selection.restore()),n.undo.saveStep())}function re(t){var a=t.which;if(r&&(a==e.KEYCODE.BACKSPACE||a==e.KEYCODE.DELETE))return t.preventDefault(),t.stopPropagation(),ne(),!1;if(r&&a==e.KEYCODE.ESC){var o=r;return fe(!0),n.selection.setAfter(o.get(0)),n.selection.restore(),t.preventDefault(),!1}if(!r||a!=e.KEYCODE.ARROW_LEFT&&a!=e.KEYCODE.ARROW_RIGHT)return r&&a===e.KEYCODE.TAB?(t.preventDefault(),t.stopPropagation(),fe(!0),!1):r&&a!=e.KEYCODE.F10&&!n.keys.isBrowserAction(t)?(t.preventDefault(),t.stopPropagation(),!1):void 0;var i=r.get(0);return fe(!0),a==e.KEYCODE.ARROW_LEFT?n.selection.setBefore(i):n.selection.setAfter(i),n.selection.restore(),t.preventDefault(),!1}function ae(e){if(e&&"IMG"==e.tagName){if(n.node.hasClass(e,"fr-uploading")||n.node.hasClass(e,"fr-error")?e.parentNode.removeChild(e):n.node.hasClass(e,"fr-draggable")&&e.classList.remove("fr-draggable"),e.parentNode&&e.parentNode.parentNode&&n.node.hasClass(e.parentNode.parentNode,"fr-img-caption")){var t=e.parentNode.parentNode;t.removeAttribute("contenteditable"),t.removeAttribute("draggable"),t.classList.remove("fr-draggable");var r=e.nextSibling;r&&r.removeAttribute("contenteditable")}}else if(e&&e.nodeType==Node.ELEMENT_NODE)for(var a=e.querySelectorAll("img.fr-uploading, img.fr-error, img.fr-draggable"),o=0;o"));var a=n.$el.find('img[data-fr-image-pasted="true"]');a&&ge(a,n.opts.imageDefaultDisplay,n.opts.imageDefaultAlign),n.events.trigger("paste.after")}function le(e){if(e&&e.clipboardData&&e.clipboardData.items){var t=null;if(e.clipboardData.types&&-1!=[].indexOf.call(e.clipboardData.types,"text/rtf")||e.clipboardData.getData("text/rtf"))t=e.clipboardData.items[0].getAsFile();else for(var n=0;n"):c(n.node.blockParent(t.get(0))).after("<".concat(n.html.defaultTag(),">
    ")))})),"IMG"==n.el.tagName&&n.$el.addClass("fr-view"),n.events.$on(n.$el,n.helpers.isMobile()&&!n.helpers.isWindowsPhone()?"touchend":"click","IMG"==n.el.tagName?null:'img:not([contenteditable="false"])',de),n.helpers.isMobile()&&(n.events.$on(n.$el,"touchstart","IMG"==n.el.tagName?null:'img:not([contenteditable="false"])',(function(){l=!1})),n.events.$on(n.$el,"touchmove",(function(){l=!0}))),n.$wp?(n.events.on("window.keydown keydown",re,!0),n.events.on("keyup",(function(t){if(r&&t.which==e.KEYCODE.ENTER)return!1}),!0),n.events.$on(n.$el,"keydown",(function(){var t=n.selection.element();(t.nodeType===Node.TEXT_NODE||"BR"==t.tagName&&n.node.isLastSibling(t))&&(t=t.parentNode),n.node.hasClass(t,"fr-inner")||(n.node.hasClass(t,"fr-img-caption")||(t=c(t).parents(".fr-img-caption").get(0)),n.node.hasClass(t,"fr-img-caption")&&(c(t).after(e.INVISIBLE_SPACE+e.MARKERS),n.selection.restore()))}))):n.events.$on(n.$win,"keydown",re),n.events.on("toolbar.esc",(function(){if(r){if(n.$wp)n.events.disableBlur(),n.events.focus();else{var e=r;fe(!0),n.selection.setAfter(e.get(0)),n.selection.restore()}return!1}}),!0),n.events.on("toolbar.focusEditor",(function(){if(r)return!1}),!0),n.events.on("window.cut window.copy",(function(t){if(r&&n.popups.isVisible("image.edit")&&!n.popups.get("image.edit").find(":focus").length){var a=Te();Ce()?(a.before(e.START_MARKER),a.after(e.END_MARKER),n.selection.restore(),n.paste.saveCopiedText(a.get(0).outerHTML,a.text())):(Ee(),n.paste.saveCopiedText(r.get(0).outerHTML,r.attr("alt"))),"copy"==t.type?setTimeout((function(){_(r)})):(fe(!0),n.undo.saveStep(),setTimeout((function(){n.undo.saveStep()}),0))}}),!0),n.browser.msie&&n.events.on("keydown",(function(t){if(!n.selection.isCollapsed()||!r)return!0;var a=t.which;a==e.KEYCODE.C&&n.keys.ctrlKey(t)?n.events.trigger("window.copy"):a==e.KEYCODE.X&&n.keys.ctrlKey(t)&&n.events.trigger("window.cut")})),n.events.$on(c(n.o_win),"keydown",(function(t){var n=t.which;if(r&&n==e.KEYCODE.BACKSPACE)return t.preventDefault(),!1})),n.events.$on(n.$win,"keydown",(function(t){var n=t.which;r&&r.hasClass("fr-uploading")&&n==e.KEYCODE.ESC&&r.trigger("abortUpload")})),n.events.on("destroy",(function(){r&&r.hasClass("fr-uploading")&&r.trigger("abortUpload")})),n.events.on("paste.before",le),n.events.on("paste.beforeCleanup",ce),n.events.on("paste.after",ie),n.events.on("html.set",S),n.events.on("html.inserted",S),S(),n.events.on("destroy",(function(){s=[]})),n.events.on("html.processGet",ae),n.opts.imageOutputSize&&n.events.on("html.beforeGet",(function(){t=n.el.querySelectorAll("img");for(var e=0;e *").first().replaceWith(n.icon.create("image-align-".concat(me())))},refreshAlignOnShow:function(e,t){r&&t.find('.fr-command[data-param1="'.concat(me(),'"]')).addClass("fr-active").attr("aria-selected",!0)},display:function(e){var t=Te();t.removeClass("fr-dii fr-dib"),!n.opts.htmlUntouched&&n.opts.useClasses?"inline"==e?t.addClass("fr-dii"):"block"==e&&t.addClass("fr-dib"):ge(t,e,me()),Ee(),L(),A(),n.selection.clear()},refreshDisplayOnShow:function(e,t){r&&t.find('.fr-command[data-param1="'.concat(ve(),'"]')).addClass("fr-active").attr("aria-selected",!0)},replace:be,back:function(){r?(n.events.disableBlur(),c(".fr-popup input:focus").blur(),_(r)):(n.events.disableBlur(),n.selection.restore(),n.events.enableBlur(),n.popups.hide("image.insert"),n.toolbar.showInline())},get:Ae,getEl:Te,insert:P,showProgressBar:D,remove:ne,hideProgressBar:k,applyStyle:function(e,a,o){if(void 0===a&&(a=n.opts.imageStyles),void 0===o&&(o=n.opts.imageMultipleStyles),!r)return!1;var i=Te();if(!o){var s=Object.keys(a);s.splice(s.indexOf(e),1),i.removeClass(s.join(" "))}"object"==t(a[e])?(i.removeAttr("style"),i.css(a[e].style)):i.toggleClass(e),_(r)},showAltPopup:j,showSizePopup:J,setAlt:function(e){if(r){var t=n.popups.get("image.alt");r.attr("alt",e||t.find("input").val()||""),t.find("input:focus").blur(),_(r)}},setSize:function(e,t){if(r){var a=n.popups.get("image.size");e=e||a.find('input[name="width"]').val()||"",t=t||a.find('input[name="height"]').val()||"";var o=/^[\d]+((px)|%)*$/g;r.removeAttr("width").removeAttr("height"),e.match(o)?r.css("width",e):r.css("width",""),t.match(o)?r.css("height",t):r.css("height",""),Ce()&&(r.parents(".fr-img-caption").removeAttr("width").removeAttr("height"),e.match(o)?r.parents(".fr-img-caption").css("width",e):r.parents(".fr-img-caption").css("width",""),t.match(o)?r.parents(".fr-img-caption").css("height",t):r.parents(".fr-img-caption").css("height","")),a&&a.find("input:focus").blur(),_(r)}},toggleCaption:function(){var t;if(r&&!Ce()){(t=r).parent().is("a")&&(t=r.parent());var a,o,i=r.parents("ul")&&0

     

    '),t.wrap(''),r.after('").concat(e.START_MARKER).concat(n.language.translate("Image Caption")).concat(e.END_MARKER,"")),r.removeAttr("class").removeAttr("style").removeAttr("width"),r.parents(".fr-img-caption").css("width",d),fe(!0),n.selection.restore()}else t=Te(),r.insertAfter(t),r.attr("class",t.attr("class").replace("fr-img-caption","")).attr("style",t.attr("style")),t.remove(),_(r)},hasCaption:Ce,exitEdit:fe,edit:_}},e.DefineIcon("insertImage",{NAME:"image",SVG_KEY:"insertImage"}),e.RegisterShortcut(e.KEYCODE.P,"insertImage",null,"P"),e.RegisterCommand("insertImage",{title:"Insert Image",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("image.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("image.insert")):this.image.showInsertPopup()},plugin:"image"}),e.DefineIcon("imageUpload",{NAME:"upload",SVG_KEY:"upload"}),e.RegisterCommand("imageUpload",{title:"Upload Image",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-upload")},refresh:function(e){this.image.refreshUploadButton(e)}}),e.DefineIcon("imageByURL",{NAME:"link",SVG_KEY:"insertLink"}),e.RegisterCommand("imageByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.image.showLayer("image-by-url")},refresh:function(e){this.image.refreshByURLButton(e)}}),e.RegisterCommand("imageInsertByURL",{title:"Insert Image",undo:!0,refreshAfterCallback:!1,callback:function(){this.image.insertByURL()},refresh:function(e){this.image.get()?e.text(this.language.translate("Replace")):e.text(this.language.translate("Insert"))}}),e.DefineIcon("imageDisplay",{NAME:"star",SVG_KEY:"imageDisplay"}),e.RegisterCommand("imageDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(e,t){this.image.display(t)},refresh:function(e){this.opts.imageTextNear||e.addClass("fr-hidden")},refreshOnShow:function(e,t){this.image.refreshDisplayOnShow(e,t)}}),e.DefineIcon("image-align",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("image-align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("image-align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),e.DefineIcon("image-align-center",{NAME:"align-justify",SVG_KEY:"alignCenter"}),e.DefineIcon("imageAlign",{NAME:"align-justify",SVG_KEY:"alignJustify"}),e.RegisterCommand("imageAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var t='"},callback:function(e,t){this.image.align(t)},refresh:function(e){this.image.refreshAlign(e)},refreshOnShow:function(e,t){this.image.refreshAlignOnShow(e,t)}}),e.DefineIcon("imageReplace",{NAME:"exchange",FA5NAME:"exchange-alt",SVG_KEY:"replaceImage"}),e.RegisterCommand("imageReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.image.replace()}}),e.DefineIcon("imageRemove",{NAME:"trash",SVG_KEY:"remove"}),e.RegisterCommand("imageRemove",{title:"Remove",callback:function(){this.image.remove()}}),e.DefineIcon("imageBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("imageBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.image.back()},refresh:function(e){this.$,this.image.get()||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.RegisterCommand("imageDismissError",{title:"OK",undo:!1,callback:function(){this.image.hideProgressBar(!0)}}),e.DefineIcon("imageStyle",{NAME:"magic",SVG_KEY:"imageClass"}),e.RegisterCommand("imageStyle",{title:"Style",type:"dropdown",html:function(){var e='"},callback:function(e,t){this.image.applyStyle(t)},refreshOnShow:function(e,t){var n=this.$,r=this.image.getEl();r&&t.find(".fr-command").each((function(){var e=n(this).data("param1"),t=r.hasClass(e);n(this).toggleClass("fr-active",t).attr("aria-selected",t)}))}}),e.DefineIcon("imageAlt",{NAME:"info",SVG_KEY:"imageAltText"}),e.RegisterCommand("imageAlt",{undo:!1,focus:!1,popup:!0,title:"Alternative Text",callback:function(){this.image.showAltPopup()}}),e.RegisterCommand("imageSetAlt",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setAlt()}}),e.DefineIcon("imageSize",{NAME:"arrows-alt",SVG_KEY:"imageSize"}),e.RegisterCommand("imageSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.image.showSizePopup()}}),e.RegisterCommand("imageSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.image.setSize()}}),e.DefineIcon("imageCaption",{NAME:"commenting",FA5NAME:"comment-alt",SVG_KEY:"imageCaption"}),e.RegisterCommand("imageCaption",{undo:!0,focus:!1,title:"Image Caption",refreshAfterCallback:!0,callback:function(){this.image.toggleCaption()},refresh:function(e){this.image.get()&&e.toggleClass("fr-active",this.image.hasCaption())}})}(n(80214))},35020:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{inlineClasses:{"fr-class-code":"Code","fr-class-highlighted":"Highlighted","fr-class-transparency":"Transparent"}}),e.PLUGINS.inlineClass=function(e){var t=e.$;return{apply:function(t){e.format.toggle("span",{class:t})},refreshOnShow:function(n,r){r.find(".fr-command").each((function(){var n=t(this).data("param1"),r=e.format.is("span",{class:n});t(this).toggleClass("fr-active",r).attr("aria-selected",r)}))}}},e.RegisterCommand("inlineClass",{type:"dropdown",title:"Inline Class",html:function(){var e='"},callback:function(e,t){this.inlineClass.apply(t)},refreshOnShow:function(e,t){this.inlineClass.refreshOnShow(e,t)},plugin:"inlineClass"}),e.DefineIcon("inlineClass",{NAME:"tag",SVG_KEY:"inlineClass"})}(n(80214))},71630:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{inlineStyles:{"Big Red":"font-size: 20px; color: red;","Small Blue":"font-size: 14px; color: blue;"}}),e.PLUGINS.inlineStyle=function(e){return{apply:function(t){for(var n=t.split(";"),r=0;r').concat(this.language.translate(n),"
    ")}return e+""},title:"Inline Style",callback:function(e,t){this.inlineStyle.apply(t)},plugin:"inlineStyle"}),e.DefineIcon("inlineStyle",{NAME:"paint-brush",SVG_KEY:"inlineStyle"})}(n(80214))},86392:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{lineBreakerTags:["table","hr","form","dl","span.fr-video",".fr-embedly","img"],lineBreakerOffset:15,lineBreakerHorizontalOffset:10}),e.PLUGINS.lineBreaker=function(t){var n,r,a,o=t.$;function i(e,r){var a,i,s,l,c,d,f,p;if(null==e)c=(l=r.parent()).offset().top,a=(f=r.offset().top)-Math.min((f-c)/2,t.opts.lineBreakerOffset),s=l.outerWidth(),i=l.offset().left;else if(null==r)(d=(l=e.parent()).offset().top+l.outerHeight())<(p=e.offset().top+e.outerHeight())&&(d=(l=o(l).parent()).offset().top+l.outerHeight()),a=p+Math.min(Math.abs(d-p)/2,t.opts.lineBreakerOffset),s=l.outerWidth(),i=l.offset().left;else{l=e.parent();var u=e.offset().top+e.height(),h=r.offset().top;if(ht.$box.offset().left&&e").concat(e.MARKERS,"
    ")):i.before("".concat(e.MARKERS,"
    ")):s&&"TD"!=o.parent().get(0).tagName&&0===o.parents(s).length?o.after("<".concat(s,">").concat(e.MARKERS,"
    ")):o.after("".concat(e.MARKERS,"
    ")),a.selection.restore(),t.toolbar.enable()}return{_init:function(){if(!t.$wp)return!1;t.shared.$line_breaker||(t.shared.$line_breaker=o(document.createElement("div")).attr("class","fr-line-breaker").html(''))),n=t.shared.$line_breaker,t.events.on("shared.destroy",(function(){n.html("").removeData().remove(),n=null}),!0),t.events.on("destroy",(function(){n.removeData("instance").removeClass("fr-visible"),o("body").first().append(n),clearTimeout(a)}),!0),t.events.$on(n,"mousemove",(function(e){e.stopPropagation()}),!0),t.events.bindClick(n,"a",m),r=!1,t.events.$on(t.$win,"mousemove",p),t.events.$on(o(t.win),"scroll",u),t.events.on("popups.show.table.edit",u),t.events.on("commands.after",u),t.events.$on(o(t.win),"mousedown",h),t.events.$on(o(t.win),"mouseup",g)}}}}(n(80214))},76067:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{lineHeights:{Default:"",Single:"1",1.15:"1.15",1.5:"1.5",Double:"2"}}),e.PLUGINS.lineHeight=function(e){var t=e.$;return{_init:function(){},apply:function(n){e.selection.save(),e.html.wrap(!0,!0,!0,!0),e.selection.restore();var r=e.selection.blocks();r.length&&t(r[0]).parent().is("td")&&e.format.applyStyle("line-height",n.toString()),e.selection.save();for(var a=0;a').concat(this.language.translate(n),""));return e+""},title:"Line Height",callback:function(e,t){this.lineHeight.apply(t)},refreshOnShow:function(e,t){this.lineHeight.refreshOnShow(e,t)},plugin:"lineHeight"}),e.DefineIcon("lineHeight",{NAME:"arrows-v",FA5NAME:"arrows-alt-v",SVG_KEY:"lineHeight"})}(n(80214))},72529:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.POPUP_TEMPLATES,{"link.edit":"[_BUTTONS_]","link.insert":"[_BUTTONS_][_INPUT_LAYER_]"}),Object.assign(e.DEFAULTS,{linkEditButtons:["linkOpen","linkStyle","linkEdit","linkRemove"],linkInsertButtons:["linkBack","|","linkList"],linkAttributes:{},linkAutoPrefix:"http://",linkStyles:{"fr-green":"Green","fr-strong":"Thick"},linkMultipleStyles:!0,linkConvertEmailAddress:!0,linkAlwaysBlank:!1,linkAlwaysNoFollow:!1,linkNoOpener:!0,linkNoReferrer:!0,linkList:[{text:"Froala",href:"https://froala.com",target:"_blank"},{text:"Google",href:"https://google.com",target:"_blank"},{displayText:"Facebook",href:"https://facebook.com"}],linkText:!0}),e.PLUGINS.link=function(t){var n=t.$;function r(){var e=t.image?t.image.get():null;if(e||!t.$wp)return"A"==t.el.tagName?t.el:e&&e.get(0).parentNode&&"A"==e.get(0).parentNode.tagName?e.get(0).parentNode:void 0;var r=t.selection.ranges(0).commonAncestorContainer;try{r&&(r.contains&&r.contains(t.el)||!t.el.contains(r)||t.el==r)&&(r=null)}catch(e){r=null}if(r&&"A"===r.tagName)return r;var a=t.selection.element(),o=t.selection.endElement();"A"==a.tagName||t.node.isElement(a)||(a=n(a).parentsUntil(t.$el,"a").first().get(0)),"A"==o.tagName||t.node.isElement(o)||(o=n(o).parentsUntil(t.$el,"a").first().get(0));try{o&&(o.contains&&o.contains(t.el)||!t.el.contains(o)||t.el==o)&&(o=null)}catch(e){o=null}try{a&&(a.contains&&a.contains(t.el)||!t.el.contains(a)||t.el==a)&&(a=null)}catch(e){a=null}return o&&o==a&&"A"==o.tagName?(t.browser.msie||t.helpers.isMobile())&&(t.selection.info(a).atEnd||t.selection.info(a).atStart)?null:a:null}function a(){var e,n,r,a,o=t.image?t.image.get():null,i=[];if(o)"A"==o.get(0).parentNode.tagName&&i.push(o.get(0).parentNode);else if(t.win.getSelection){var s=t.win.getSelection();if(s.getRangeAt&&s.rangeCount){a=t.doc.createRange();for(var l=0;l'.concat(t.button.buildList(t.opts.linkEditButtons),""));var n={buttons:e},a=t.popups.create("link.edit",n);return t.$wp&&t.events.$on(t.$wp,"scroll.link-edit",(function(){r()&&t.popups.isVisible("link.edit")&&i(r())})),a}());var o=n(e);t.popups.isVisible("link.edit")||t.popups.refresh("link.edit"),t.popups.setContainer("link.edit",t.$sc);var s=o.offset().left+o.outerWidth()/2,l=o.offset().top+o.outerHeight();t.popups.show("link.edit",s,l,o.outerHeight(),!0)}function s(){t.popups.hide("link.edit")}function l(){var e=t.popups.get("link.insert"),a=r();if(a){var o,i,s=n(a),l=e.find('input.fr-link-attr[type="text"]'),c=e.find('input.fr-link-attr[type="checkbox"]');for(o=0;o'.concat(t.button.buildList(t.opts.linkInsertButtons),""));var r="",a=0;for(var o in r='")},c=t.popups.create("link.insert",s);return t.$wp&&t.events.$on(t.$wp,"scroll.link-insert",(function(){(t.image?t.image.get():null)&&t.popups.isVisible("link.insert")&&p(),t.popups.isVisible("link.insert")&&f()})),c}function d(i,s,l){if(void 0===l&&(l={}),!1===t.events.trigger("link.beforeInsert",[i,s,l]))return!1;var c=t.image?t.image.get():null;c||"A"==t.el.tagName?"A"==t.el.tagName&&t.$el.focus():(t.selection.restore(),t.popups.hide("link.insert"));var d=i;if(t.opts.linkConvertEmailAddress&&t.helpers.isEmail(i)&&!/^mailto:.*/i.test(i)&&(i="mailto:".concat(i)),""===t.opts.linkAutoPrefix||new RegExp("^("+e.LinkProtocols.join("|")+"):.","i").test(i)||/^data:image.*/i.test(i)||/^(https?:|ftps?:|file:|)\/\//i.test(i)||/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(i)||["/","{","[","#","(","."].indexOf((i||"")[0])<0&&(i=t.opts.linkAutoPrefix+t.helpers.sanitizeURL(i)),i=t.helpers.sanitizeURL(i),t.opts.linkAlwaysBlank&&(l.target="_blank"),t.opts.linkAlwaysNoFollow&&(l.rel="nofollow"),t.helpers.isEmail(d)&&(l.target=null,l.rel=null),"_blank"==l.target?(t.opts.linkNoOpener&&(l.rel?l.rel+=" noopener":l.rel="noopener"),t.opts.linkNoReferrer&&(l.rel?l.rel+=" noreferrer":l.rel="noreferrer")):null==l.target&&(l.rel?l.rel=l.rel.replace(/noopener/,"").replace(/noreferrer/,""):l.rel=null),s=s||"",i===t.opts.linkAutoPrefix)return t.popups.get("link.insert").find('input[name="href"]').addClass("fr-error"),t.events.trigger("link.bad",[d]),!1;var f,p=r();if(p){if((f=n(p)).attr("href",i),0')),t.image.hasCaption()&&c.parent().append(c.parents(".fr-img-caption").find(".fr-inner"))):(t.format.remove("a"),t.selection.isCollapsed()?(s=0===s.length?d:s,t.html.insert('').concat(e.START_MARKER).concat(s.replace(/&/g,"&").replace(/",">")).concat(e.END_MARKER,"")),t.selection.restore()):0').concat(e.START_MARKER).concat(s.replace(/&/g,"&")).concat(e.END_MARKER,"")),t.selection.restore()):(function(){if(!t.selection.isCollapsed()){t.selection.save();for(var e=t.$el.find(".fr-marker").addClass("fr-unprocessed").toArray();e.length;){var r=n(e.pop());r.removeClass("fr-unprocessed");var a=t.node.deepestParent(r.get(0));if(a){for(var o=r.get(0),i="",s="";o=o.parentNode,t.node.isBlock(o)||(i+=t.node.closeTagString(o),s=t.node.openTagString(o)+s),o!=a;);var l=t.node.openTagString(r.get(0))+r.html()+t.node.closeTagString(r.get(0));r.replaceWith('');var c=a.outerHTML;c=(c=c.replace(/<\/span>/g,i+l+s)).replace(s+i,""),a.outerHTML=c}e=t.$el.find(".fr-marker.fr-unprocessed").toArray()}t.html.cleanEmptyTags(),t.selection.restore()}}(),t.format.apply("a",{href:i})));for(var g=a(),m=0;m').concat(t[n].displayText||t[n].text,"");return e+""},callback:function(e,t){this.link.usePredefined(t)},plugin:"link"}),e.RegisterCommand("linkInsert",{focus:!1,refreshAfterCallback:!1,callback:function(){this.link.insertCallback()},refresh:function(e){this.link.get()?e.text(this.language.translate("Update")):e.text(this.language.translate("Insert"))},plugin:"link"}),e.DefineIcon("imageLink",{NAME:"link",SVG_KEY:"insertLink"}),e.RegisterCommand("imageLink",{title:"Insert Link",undo:!1,focus:!1,popup:!0,callback:function(){this.link.imageLink()},refresh:function(e){var t;this.link.get()?((t=e.prev()).hasClass("fr-separator")&&t.removeClass("fr-hidden"),e.addClass("fr-hidden")):((t=e.prev()).hasClass("fr-separator")&&t.addClass("fr-hidden"),e.removeClass("fr-hidden"))},plugin:"link"}),e.DefineIcon("linkStyle",{NAME:"magic",SVG_KEY:"linkStyles"}),e.RegisterCommand("linkStyle",{title:"Style",type:"dropdown",html:function(){var e='"},callback:function(e,t){this.link.applyStyle(t)},refreshOnShow:function(e,t){var n=this.$,r=this.link.get();if(r){var a=n(r);t.find(".fr-command").each((function(){var e=n(this).data("param1"),t=a.hasClass(e);n(this).toggleClass("fr-active",t).attr("aria-selected",t)}))}},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"})}(n(80214))},24496:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{listAdvancedTypes:!0}),e.PLUGINS.lists=function(t){var n=t.$;function r(e){return'')}function a(e){return'')}function o(e){var o,i;for(o=e.length-1;0<=o;o--)for(i=o-1;0<=i;i--)if(n(e[i]).find(e[o]).length||e[i]==e[o]){e.splice(o,1);break}var s=[];for(o=0;o"),l.append(r("LI")),l.prepend(a("LI"))}l.after(r(c.tagName)),"LI"==c.parentNode.tagName&&(c=c.parentNode.parentNode),s.indexOf(c)<0&&s.push(c)}for(o=0;o<\/span>/g,"")).replace(/<\/span>/g,"<$1>"),u.replaceWith(t.node.openTagString(u.get(0))+h+t.node.closeTagString(u.get(0)))}t.$el.find("li:empty").remove(),t.$el.find("ul:empty, ol:empty").remove(),t.clean.lists(),t.html.wrap()}function i(e){t.selection.save();for(var r=0;r ul, > ol").last().get(0);if(o){var i=n(document.createElement("li"));n(o).prepend(i);for(var s=t.node.contents(e[r])[0];s&&!t.node.isList(s);){var l=s.nextSibling;i.append(s),s=l}n(a).append(n(o)),n(e[r]).remove()}else{var c=n(a).find("> ul, > ol").last().get(0);if(c)n(c).append(n(e[r]));else{var d=n("<".concat(e[r].parentNode.tagName,">"));n(a).append(d),d.append(n(e[r]))}}}}t.clean.lists(),t.selection.restore()}function s(e){t.selection.save(),o(e),t.selection.restore()}function l(e){if("indent"==e||"outdent"==e){var n=!1,r=t.selection.blocks(),a=[],o=r[0].previousSibling||r[0].parentElement;if("outdent"==e){if("LI"==o.tagName||"LI"!=o.parentNode.tagName)return}else if(!r[0].previousSibling||"LI"!=r[0].previousSibling.tagName)return;for(var l=0;l").concat(l.html(),""))}}(e,r);var a,o=t.html.defaultTag(),i=null;e.length&&(a="rtl"==t.opts.direction||"rtl"==n(e[0]).css("direction")?"margin-right":"margin-left");for(var s=0;s'):"<".concat(r,">"),d="");for(l-=i;0"),d+=d,l-=t.opts.indentMargin;o&&e[s].tagName.toLowerCase()==o?n(e[s]).replaceWith("".concat(c,"").concat(n(e[s]).html(),"").concat(d)):n(e[s]).wrap("".concat(c,"
  • ").concat(d))}t.clean.lists()}(i,e),t.html.unwrap(),t.selection.restore(),r=r||"default"){for(i=t.selection.blocks(),a=0;a");n.prepend(o);for(var i=e.node.contents(n.get(0))[0];i&&["UL","OL"].indexOf(i.tagName)<0;){var s=i.nextSibling;o.append(i),i=s}}else n.html("<"+r+">"+n.html()+"")}return{apply:function(r){"N"==r&&(r=e.html.defaultTag()),e.selection.save(),e.html.wrap(!0,!0,!e.opts.paragraphFormat.BLOCKQUOTE,!0,!0),e.selection.restore();var a,o,i,s,l,c,d,f,p=e.selection.blocks();e.selection.save(),e.$el.find("pre").attr("skip",!0);for(var u=0;u").html(c.html()))):0<=["TD","TH"].indexOf(p[u].parentNode.tagName)?(i=h,s=r,l=e.html.defaultTag(),s||(s='div class="fr-temp-div"'+(e.node.isEmpty(i.get(0),!0)?' data-empty="true"':"")),s.toLowerCase()==l?(e.node.isEmpty(i.get(0),!0)||i.append("
    "),i.replaceWith(i.html())):i.replaceWith(t("<"+s+">").html(i.html()))):(a=h,(o=r)||(o='div class="fr-temp-div"'+(e.node.isEmpty(a.get(0),!0)?' data-empty="true"':"")),"H1"!=o&&"H2"!=o&&"H3"!=o&&"H4"!=o&&"H5"!=o||!e.node.attributes(a.get(0)).includes("font-size:")?a.replaceWith(t("<"+o+" "+e.node.attributes(a.get(0))+">").html(a.html()).removeAttr("data-empty")):a.replaceWith(t("<"+o+" "+e.node.attributes(a.get(0)).replace(/font-size:[0-9]+px;?/,"")+">").html(a.html()).removeAttr("data-empty")))}e.$el.find('pre:not([skip="true"]) + pre:not([skip="true"])').each((function(){t(this).prev().append("
    "+t(this).html()),t(this).remove()})),e.$el.find("pre").removeAttr("skip"),e.html.unwrap(),e.selection.restore()},refreshOnShow:function(t,n){var r=e.selection.blocks();if(r.length){var a=r[0],o="N",i=e.html.defaultTag();a.tagName.toLowerCase()!=i&&a!=e.el&&(o=a.tagName),n.find('.fr-command[data-param1="'+o+'"]').addClass("fr-active").attr("aria-selected",!0)}else n.find('.fr-command[data-param1="N"]').addClass("fr-active").attr("aria-selected",!0)},refresh:function(t){if(e.opts.paragraphFormatSelection){var n=e.selection.blocks();if(n.length){var r=n[0],a="N",o=e.html.defaultTag();r.tagName.toLowerCase()!=o&&r!=e.el&&(a=r.tagName),0<=["LI","TD","TH"].indexOf(a)&&(a="N"),t.find(">span").text(e.language.translate(e.opts.paragraphFormat[a]))}else t.find(">span").text(e.language.translate(e.opts.paragraphFormat.N))}}}},e.RegisterCommand("paragraphFormat",{type:"dropdown",displaySelection:function(e){return e.opts.paragraphFormatSelection},defaultSelection:function(e){return e.language.translate(e.opts.paragraphDefaultSelection)},displaySelectionWidth:80,html:function(){var e='"},title:"Paragraph Format",callback:function(e,t){this.paragraphFormat.apply(t)},refresh:function(e){this.paragraphFormat.refresh(e)},refreshOnShow:function(e,t){this.paragraphFormat.refreshOnShow(e,t)},plugin:"paragraphFormat"}),e.DefineIcon("paragraphFormat",{NAME:"paragraph",SVG_KEY:"paragraphFormat"})}(n(80214))},73397:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{paragraphStyles:{"fr-text-gray":"Gray","fr-text-bordered":"Bordered","fr-text-spaced":"Spaced","fr-text-uppercase":"Uppercase"},paragraphMultipleStyles:!0}),e.PLUGINS.paragraphStyle=function(e){var t=e.$;return{_init:function(){},apply:function(n,r,a){void 0===r&&(r=e.opts.paragraphStyles),void 0===a&&(a=e.opts.paragraphMultipleStyles);var o="";a||((o=Object.keys(r)).splice(o.indexOf(n),1),o=o.join(" ")),e.selection.save(),e.html.wrap(!0,!0,!0,!0),e.selection.restore();var i=e.selection.blocks();e.selection.save();for(var s=t(i[0]).hasClass(n),l=0;l').concat(this.language.translate(t[n]),""));return e+""},title:"Paragraph Style",callback:function(e,t){this.paragraphStyle.apply(t)},refreshOnShow:function(e,t){this.paragraphStyle.refreshOnShow(e,t)},plugin:"paragraphStyle"}),e.DefineIcon("paragraphStyle",{NAME:"magic",SVG_KEY:"paragraphStyle"})}(n(80214))},64936:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{html2pdf:window.html2pdf}),e.PLUGINS.print=function(e){return{run:function(){!function(t){var n=e.html.get(),r=null;e.shared.print_iframe?r=e.shared.print_iframe:((r=document.createElement("iframe")).name="fr-print",r.style.position="fixed",r.style.top="0",r.style.left="-9999px",r.style.height="100%",r.style.width="0",r.style.overflow="hidden",r.style["z-index"]="2147483647",r.style.tabIndex="-1",e.events.on("shared.destroy",(function(){r.remove()})),e.shared.print_iframe=r);try{document.body.removeChild(r)}catch(e){}document.body.appendChild(r);r.addEventListener("load",(function t(){setTimeout((function(){e.events.disableBlur(),window.frames["fr-print"].focus(),window.frames["fr-print"].print(),e.$win.get(0).focus(),e.events.disableBlur(),e.events.focus()}),0),r.removeEventListener("load",t)}));var a=r.contentWindow;a.document.open(),a.document.write(""+document.title+""),Array.prototype.forEach.call(document.querySelectorAll("style"),(function(e){e=e.cloneNode(!0),a.document.write(e.outerHTML)}));var o=document.querySelectorAll("link[rel=stylesheet]");Array.prototype.forEach.call(o,(function(e){var t=document.createElement("link");t.rel=e.rel,t.href=e.href,t.media="print",t.type="text/css",t.media="all",a.document.write(t.outerHTML)})),a.document.write('
    '),a.document.write(n),a.document.write("
    "),a.document.close()}()},toPDF:function(){e.opts.html2pdf&&(e.$el.css("text-align","left"),e.opts.html2pdf().set({margin:[10,20],html2canvas:{useCORS:!0}}).from(e.el).save(),setTimeout((function(){e.$el.css("text-align","")}),100))}}},e.DefineIcon("print",{NAME:"print",SVG_KEY:"print"}),e.RegisterCommand("print",{title:"Print",undo:!1,focus:!1,plugin:"print",callback:function(){this.print.run()}}),e.DefineIcon("getPDF",{NAME:"file-pdf-o",FA5NAME:"file-pdf",SVG_KEY:"pdfExport"}),e.RegisterCommand("getPDF",{title:"Download PDF",type:"button",focus:!1,undo:!1,callback:function(){this.print.toPDF()}})}(n(80214))},52034:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{quickInsertButtons:["image","video","embedly","table","ul","ol","hr"],quickInsertTags:["p","div","h1","h2","h3","h4","h5","h6","pre","blockquote"],quickInsertEnabled:!0}),e.QUICK_INSERT_BUTTONS={},e.DefineIcon("quickInsert",{SVG_KEY:"add",template:"svg"}),e.RegisterQuickInsertButton=function(t,n){e.QUICK_INSERT_BUTTONS[t]=Object.assign({undo:!0},n)},e.RegisterQuickInsertButton("image",{icon:"insertImage",requiredPlugin:"image",title:"Insert Image",undo:!1,callback:function(){var e=this,t=e.$;e.shared.$qi_image_input||(e.shared.$qi_image_input=t(document.createElement("input")).attr("accept","image/"+e.opts.imageAllowedTypes.join(", image/").toLowerCase()).attr("name","quickInsertImage".concat(this.id)).attr("style","display: none;").attr("type","file"),t("body").first().append(e.shared.$qi_image_input),e.events.$on(e.shared.$qi_image_input,"change",(function(){var e=t(this).data("inst");this.files&&(e.quickInsert.hide(),e.image.upload(this.files)),t(this).val("")}),!0)),e.$qi_image_input=e.shared.$qi_image_input,e.helpers.isMobile()&&e.selection.save(),e.events.disableBlur(),e.$qi_image_input.data("inst",e)[0].click()}}),e.RegisterQuickInsertButton("video",{icon:"insertVideo",requiredPlugin:"video",title:"Insert Video",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of the video you want to insert."));e&&this.video.insertByURL(e)}}),e.RegisterQuickInsertButton("embedly",{icon:"embedly",requiredPlugin:"embedly",title:"Embed URL",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of any web content you want to insert."));e&&this.embedly.add(e)}}),e.RegisterQuickInsertButton("table",{icon:"insertTable",requiredPlugin:"table",title:"Insert Table",callback:function(){this.table.insert(2,2)}}),e.RegisterQuickInsertButton("ol",{icon:"formatOL",requiredPlugin:"lists",title:"Ordered List",callback:function(){this.lists.format("OL")}}),e.RegisterQuickInsertButton("ul",{icon:"formatUL",requiredPlugin:"lists",title:"Unordered List",callback:function(){this.lists.format("UL")}}),e.RegisterQuickInsertButton("hr",{icon:"insertHR",title:"Insert Horizontal Line",callback:function(){this.commands.insertHR()}}),e.PLUGINS.quickInsert=function(t){var n,r,a=t.$;function o(o){var i,s,l;if(i=o.offset().top-t.$box.offset().top,s=(t.$iframe&&t.$iframe.offset().left||0)+o.offset().left').concat(t.icon.create("quickInsert"),""))),n=t.shared.$quick_insert,t.tooltip.bind(t.$box,".fr-quick-insert > a.fr-floating-btn"),t.events.on("destroy",(function(){a("body").first().append(n.removeClass("fr-on")),r&&(d(),a("body").first().append(r.css("left",-9999).css("top",-9999)))}),!0),t.events.on("shared.destroy",(function(){n.html("").removeData().remove(),n=null,r&&(r.html("").removeData().remove(),r=null)}),!0),t.events.on("commands.before",l),t.events.on("commands.after",(function(){t.popups.areVisible()||s()})),t.events.bindClick(t.$box,".fr-quick-insert > a",c),t.events.bindClick(t.$box,".fr-qi-helper > a.fr-btn",(function(n){var r=a(n.currentTarget).data("cmd");if(!1===t.events.trigger("quickInsert.commands.before",[r]))return!1;e.QUICK_INSERT_BUTTONS[r].callback.apply(t,[n.currentTarget]),e.QUICK_INSERT_BUTTONS[r].undo&&t.undo.saveStep(),t.events.trigger("quickInsert.commands.after",[r]),t.quickInsert.hide()})),t.events.$on(t.$wp,"scroll",f),t.events.$on(t.$tb,"transitionend",".fr-more-toolbar",f)),n.hasClass("fr-on")&&d(),t.$box.append(n),o(i),n.data("tag",i),n.addClass("fr-visible")}function s(){if(t.core.hasFocus()){var r=t.selection.element();if(t.opts.enter==e.ENTER_BR||t.node.isBlock(r)||(r=t.node.blockParent(r)),t.opts.enter==e.ENTER_BR&&!t.node.isBlock(r)){var o=t.node.deepestParent(r);o&&(r=o)}r&&(t.opts.enter!=e.ENTER_BR&&t.node.isEmpty(r)&&0<=t.opts.quickInsertTags.indexOf(r.tagName.toLowerCase())||t.opts.enter==e.ENTER_BR&&("BR"==r.tagName&&(!r.previousSibling||"BR"==r.previousSibling.tagName||t.node.isBlock(r.previousSibling))||t.node.isEmpty(r)&&(!r.previousSibling||"BR"==r.previousSibling.tagName||t.node.isBlock(r.previousSibling))&&(!r.nextSibling||"BR"==r.nextSibling.tagName||t.node.isBlock(r.nextSibling))))?n&&n.data("tag").is(a(r))&&n.hasClass("fr-on")?d():t.selection.isCollapsed()&&i(a(r)):l()}}function l(){n&&(n.hasClass("fr-on")&&d(),n.removeClass("fr-visible fr-on"),n.css("left",-9999).css("top",-9999))}function c(o){if(o&&o.preventDefault(),n.hasClass("fr-on")&&!n.hasClass("fr-hidden"))d();else{if(!t.shared.$qi_helper){for(var i=t.opts.quickInsertButtons,s='
    ',l=0,c=0;c').concat(t.icon.create(f.icon),""))}s+="
    ",t.shared.$qi_helper=a(s),t.tooltip.bind(t.shared.$qi_helper,"a.fr-btn"),t.events.$on(t.shared.$qi_helper,"mousedown",(function(e){e.preventDefault()}),!0)}r=t.shared.$qi_helper,t.$box.append(r),setTimeout((function(){r.css("top",parseFloat(n.css("top"))),r.css("left",parseFloat(n.css("left"))+n.outerWidth()),r.find("a").addClass("fr-size-1"),n.addClass("fr-on")}),10)}}function d(){var e=t.$box.find(".fr-qi-helper");e.length&&function(){for(var t=e.find("a"),r=0;r').concat(this.language.translate(t[n])).concat(r?''.concat(r,""):"","")}return e+""},callback:function(e,t){this.quote.apply(t)},plugin:"quote"}),e.DefineIcon("quote",{NAME:"quote-left",SVG_KEY:"blockquote"})}(n(80214))},62106:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{saveInterval:1e4,saveURL:null,saveParams:{},saveParam:"body",saveMethod:"POST"}),e.PLUGINS.save=function(e){var t=e.$,n=null,r=null,a=!1,o=1,i=2,s={};function l(t,n){e.events.trigger("save.error",[{code:t,message:s[t]},n])}function c(n){void 0===n&&(n=e.html.get());var a=n,s=e.events.trigger("save.before",[n]);if(!1===s)return!1;if("string"==typeof s&&(n=s),e.opts.saveURL){var c={};for(var d in e.opts.saveParams)if(e.opts.saveParams.hasOwnProperty(d)){var f=e.opts.saveParams[d];c[d]="function"==typeof f?f.call(this):f}var p={};p[e.opts.saveParam]=n,t(this).ajax({method:e.opts.saveMethod,url:e.opts.saveURL,data:Object.assign(p,c),crossDomain:e.opts.requestWithCORS,withCredentials:e.opts.requestWithCredentials,headers:e.opts.requestHeaders,done:function(t,n,o){r=a,e.events.trigger("save.after",[t])},fail:function(e){l(i,e.response||e.responseText)}})}else l(o)}function d(){clearTimeout(n),n=setTimeout((function(){var t=e.html.get();(r!=t||a)&&(a=!1,c(r=t))}),0)}return s[o]="Missing saveURL option.",s[i]="Something went wrong during save.",{_init:function(){e.opts.saveInterval&&(r=e.html.get(),e.events.on("contentChanged",(function(){setTimeout(d,e.opts.saveInterval)})),e.events.on("keydown destroy",(function(){clearTimeout(n)})))},save:c,reset:function(){d(),a=!1},force:function(){a=!0}}},e.DefineIcon("save",{NAME:"floppy-o",FA5NAME:"save"}),e.RegisterCommand("save",{title:"Save",undo:!1,focus:!1,refreshAfterCallback:!1,callback:function(){this.save.save()},plugin:"save"})}(n(80214))},45096:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{specialCharactersSets:[{title:"Latin",char:"¡",list:[{char:"¡",desc:"INVERTED EXCLAMATION MARK"},{char:"¢",desc:"CENT SIGN"},{char:"£",desc:"POUND SIGN"},{char:"¤",desc:"CURRENCY SIGN"},{char:"¥",desc:"YEN SIGN"},{char:"¦",desc:"BROKEN BAR"},{char:"§",desc:"SECTION SIGN"},{char:"¨",desc:"DIAERESIS"},{char:"©",desc:"COPYRIGHT SIGN"},{char:"™",desc:"TRADEMARK SIGN"},{char:"ª",desc:"FEMININE ORDINAL INDICATOR"},{char:"«",desc:"LEFT-POINTING DOUBLE ANGLE QUOTATION MARK"},{char:"¬",desc:"NOT SIGN"},{char:"®",desc:"REGISTERED SIGN"},{char:"¯",desc:"MACRON"},{char:"°",desc:"DEGREE SIGN"},{char:"±",desc:"PLUS-MINUS SIGN"},{char:"²",desc:"SUPERSCRIPT TWO"},{char:"³",desc:"SUPERSCRIPT THREE"},{char:"´",desc:"ACUTE ACCENT"},{char:"µ",desc:"MICRO SIGN"},{char:"¶",desc:"PILCROW SIGN"},{char:"·",desc:"MIDDLE DOT"},{char:"¸",desc:"CEDILLA"},{char:"¹",desc:"SUPERSCRIPT ONE"},{char:"º",desc:"MASCULINE ORDINAL INDICATOR"},{char:"»",desc:"RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK"},{char:"¼",desc:"VULGAR FRACTION ONE QUARTER"},{char:"½",desc:"VULGAR FRACTION ONE HALF"},{char:"¾",desc:"VULGAR FRACTION THREE QUARTERS"},{char:"¿",desc:"INVERTED QUESTION MARK"},{char:"À",desc:"LATIN CAPITAL LETTER A WITH GRAVE"},{char:"Á",desc:"LATIN CAPITAL LETTER A WITH ACUTE"},{char:"Â",desc:"LATIN CAPITAL LETTER A WITH CIRCUMFLEX"},{char:"Ã",desc:"LATIN CAPITAL LETTER A WITH TILDE"},{char:"Ä",desc:"LATIN CAPITAL LETTER A WITH DIAERESIS "},{char:"Å",desc:"LATIN CAPITAL LETTER A WITH RING ABOVE"},{char:"Æ",desc:"LATIN CAPITAL LETTER AE"},{char:"Ç",desc:"LATIN CAPITAL LETTER C WITH CEDILLA"},{char:"È",desc:"LATIN CAPITAL LETTER E WITH GRAVE"},{char:"É",desc:"LATIN CAPITAL LETTER E WITH ACUTE"},{char:"Ê",desc:"LATIN CAPITAL LETTER E WITH CIRCUMFLEX"},{char:"Ë",desc:"LATIN CAPITAL LETTER E WITH DIAERESIS"},{char:"Ì",desc:"LATIN CAPITAL LETTER I WITH GRAVE"},{char:"Í",desc:"LATIN CAPITAL LETTER I WITH ACUTE"},{char:"Î",desc:"LATIN CAPITAL LETTER I WITH CIRCUMFLEX"},{char:"Ï",desc:"LATIN CAPITAL LETTER I WITH DIAERESIS"},{char:"Ð",desc:"LATIN CAPITAL LETTER ETH"},{char:"Ñ",desc:"LATIN CAPITAL LETTER N WITH TILDE"},{char:"Ò",desc:"LATIN CAPITAL LETTER O WITH GRAVE"},{char:"Ó",desc:"LATIN CAPITAL LETTER O WITH ACUTE"},{char:"Ô",desc:"LATIN CAPITAL LETTER O WITH CIRCUMFLEX"},{char:"Õ",desc:"LATIN CAPITAL LETTER O WITH TILDE"},{char:"Ö",desc:"LATIN CAPITAL LETTER O WITH DIAERESIS"},{char:"×",desc:"MULTIPLICATION SIGN"},{char:"Ø",desc:"LATIN CAPITAL LETTER O WITH STROKE"},{char:"Ù",desc:"LATIN CAPITAL LETTER U WITH GRAVE"},{char:"Ú",desc:"LATIN CAPITAL LETTER U WITH ACUTE"},{char:"Û",desc:"LATIN CAPITAL LETTER U WITH CIRCUMFLEX"},{char:"Ü",desc:"LATIN CAPITAL LETTER U WITH DIAERESIS"},{char:"Ý",desc:"LATIN CAPITAL LETTER Y WITH ACUTE"},{char:"Þ",desc:"LATIN CAPITAL LETTER THORN"},{char:"ß",desc:"LATIN SMALL LETTER SHARP S"},{char:"à",desc:"LATIN SMALL LETTER A WITH GRAVE"},{char:"á",desc:"LATIN SMALL LETTER A WITH ACUTE "},{char:"â",desc:"LATIN SMALL LETTER A WITH CIRCUMFLEX"},{char:"ã",desc:"LATIN SMALL LETTER A WITH TILDE"},{char:"ä",desc:"LATIN SMALL LETTER A WITH DIAERESIS"},{char:"å",desc:"LATIN SMALL LETTER A WITH RING ABOVE"},{char:"æ",desc:"LATIN SMALL LETTER AE"},{char:"ç",desc:"LATIN SMALL LETTER C WITH CEDILLA"},{char:"è",desc:"LATIN SMALL LETTER E WITH GRAVE"},{char:"é",desc:"LATIN SMALL LETTER E WITH ACUTE"},{char:"ê",desc:"LATIN SMALL LETTER E WITH CIRCUMFLEX"},{char:"ë",desc:"LATIN SMALL LETTER E WITH DIAERESIS"},{char:"ì",desc:"LATIN SMALL LETTER I WITH GRAVE"},{char:"í",desc:"LATIN SMALL LETTER I WITH ACUTE"},{char:"î",desc:"LATIN SMALL LETTER I WITH CIRCUMFLEX"},{char:"ï",desc:"LATIN SMALL LETTER I WITH DIAERESIS"},{char:"ð",desc:"LATIN SMALL LETTER ETH"},{char:"ñ",desc:"LATIN SMALL LETTER N WITH TILDE"},{char:"ò",desc:"LATIN SMALL LETTER O WITH GRAVE"},{char:"ó",desc:"LATIN SMALL LETTER O WITH ACUTE"},{char:"ô",desc:"LATIN SMALL LETTER O WITH CIRCUMFLEX"},{char:"õ",desc:"LATIN SMALL LETTER O WITH TILDE"},{char:"ö",desc:"LATIN SMALL LETTER O WITH DIAERESIS"},{char:"÷",desc:"DIVISION SIGN"},{char:"ø",desc:"LATIN SMALL LETTER O WITH STROKE"},{char:"ù",desc:"LATIN SMALL LETTER U WITH GRAVE"},{char:"ú",desc:"LATIN SMALL LETTER U WITH ACUTE"},{char:"û",desc:"LATIN SMALL LETTER U WITH CIRCUMFLEX"},{char:"ü",desc:"LATIN SMALL LETTER U WITH DIAERESIS"},{char:"ý",desc:"LATIN SMALL LETTER Y WITH ACUTE"},{char:"þ",desc:"LATIN SMALL LETTER THORN"},{char:"ÿ",desc:"LATIN SMALL LETTER Y WITH DIAERESIS"}]},{title:"Greek",char:"Α",list:[{char:"Α",desc:"GREEK CAPITAL LETTER ALPHA"},{char:"Β",desc:"GREEK CAPITAL LETTER BETA"},{char:"Γ",desc:"GREEK CAPITAL LETTER GAMMA"},{char:"Δ",desc:"GREEK CAPITAL LETTER DELTA"},{char:"Ε",desc:"GREEK CAPITAL LETTER EPSILON"},{char:"Ζ",desc:"GREEK CAPITAL LETTER ZETA"},{char:"Η",desc:"GREEK CAPITAL LETTER ETA"},{char:"Θ",desc:"GREEK CAPITAL LETTER THETA"},{char:"Ι",desc:"GREEK CAPITAL LETTER IOTA"},{char:"Κ",desc:"GREEK CAPITAL LETTER KAPPA"},{char:"Λ",desc:"GREEK CAPITAL LETTER LAMBDA"},{char:"Μ",desc:"GREEK CAPITAL LETTER MU"},{char:"Ν",desc:"GREEK CAPITAL LETTER NU"},{char:"Ξ",desc:"GREEK CAPITAL LETTER XI"},{char:"Ο",desc:"GREEK CAPITAL LETTER OMICRON"},{char:"Π",desc:"GREEK CAPITAL LETTER PI"},{char:"Ρ",desc:"GREEK CAPITAL LETTER RHO"},{char:"Σ",desc:"GREEK CAPITAL LETTER SIGMA"},{char:"Τ",desc:"GREEK CAPITAL LETTER TAU"},{char:"Υ",desc:"GREEK CAPITAL LETTER UPSILON"},{char:"Φ",desc:"GREEK CAPITAL LETTER PHI"},{char:"Χ",desc:"GREEK CAPITAL LETTER CHI"},{char:"Ψ",desc:"GREEK CAPITAL LETTER PSI"},{char:"Ω",desc:"GREEK CAPITAL LETTER OMEGA"},{char:"α",desc:"GREEK SMALL LETTER ALPHA"},{char:"β",desc:"GREEK SMALL LETTER BETA"},{char:"γ",desc:"GREEK SMALL LETTER GAMMA"},{char:"δ",desc:"GREEK SMALL LETTER DELTA"},{char:"ε",desc:"GREEK SMALL LETTER EPSILON"},{char:"ζ",desc:"GREEK SMALL LETTER ZETA"},{char:"η",desc:"GREEK SMALL LETTER ETA"},{char:"θ",desc:"GREEK SMALL LETTER THETA"},{char:"ι",desc:"GREEK SMALL LETTER IOTA"},{char:"κ",desc:"GREEK SMALL LETTER KAPPA"},{char:"λ",desc:"GREEK SMALL LETTER LAMBDA"},{char:"μ",desc:"GREEK SMALL LETTER MU"},{char:"ν",desc:"GREEK SMALL LETTER NU"},{char:"ξ",desc:"GREEK SMALL LETTER XI"},{char:"ο",desc:"GREEK SMALL LETTER OMICRON"},{char:"π",desc:"GREEK SMALL LETTER PI"},{char:"ρ",desc:"GREEK SMALL LETTER RHO"},{char:"ς",desc:"GREEK SMALL LETTER FINAL SIGMA"},{char:"σ",desc:"GREEK SMALL LETTER SIGMA"},{char:"τ",desc:"GREEK SMALL LETTER TAU"},{char:"υ",desc:"GREEK SMALL LETTER UPSILON"},{char:"φ",desc:"GREEK SMALL LETTER PHI"},{char:"χ",desc:"GREEK SMALL LETTER CHI"},{char:"ψ",desc:"GREEK SMALL LETTER PSI"},{char:"ω",desc:"GREEK SMALL LETTER OMEGA"},{char:"ϑ",desc:"GREEK THETA SYMBOL"},{char:"ϒ",desc:"GREEK UPSILON WITH HOOK SYMBOL"},{char:"ϕ",desc:"GREEK PHI SYMBOL"},{char:"ϖ",desc:"GREEK PI SYMBOL"},{char:"Ϝ",desc:"GREEK LETTER DIGAMMA"},{char:"ϝ",desc:"GREEK SMALL LETTER DIGAMMA"},{char:"ϰ",desc:"GREEK KAPPA SYMBOL"},{char:"ϱ",desc:"GREEK RHO SYMBOL"},{char:"ϵ",desc:"GREEK LUNATE EPSILON SYMBOL"},{char:"϶",desc:"GREEK REVERSED LUNATE EPSILON SYMBOL"}]},{title:"Cyrillic",char:"Ѐ",list:[{char:"Ѐ",desc:"CYRILLIC CAPITAL LETTER IE WITH GRAVE"},{char:"Ё",desc:"CYRILLIC CAPITAL LETTER IO"},{char:"Ђ",desc:"CYRILLIC CAPITAL LETTER DJE"},{char:"Ѓ",desc:"CYRILLIC CAPITAL LETTER GJE"},{char:"Є",desc:"CYRILLIC CAPITAL LETTER UKRAINIAN IE"},{char:"Ѕ",desc:"CYRILLIC CAPITAL LETTER DZE"},{char:"І",desc:"CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I"},{char:"Ї",desc:"CYRILLIC CAPITAL LETTER YI"},{char:"Ј",desc:"CYRILLIC CAPITAL LETTER JE"},{char:"Љ",desc:"CYRILLIC CAPITAL LETTER LJE"},{char:"Њ",desc:"CYRILLIC CAPITAL LETTER NJE"},{char:"Ћ",desc:"CYRILLIC CAPITAL LETTER TSHE"},{char:"Ќ",desc:"CYRILLIC CAPITAL LETTER KJE"},{char:"Ѝ",desc:"CYRILLIC CAPITAL LETTER I WITH GRAVE"},{char:"Ў",desc:"CYRILLIC CAPITAL LETTER SHORT U"},{char:"Џ",desc:"CYRILLIC CAPITAL LETTER DZHE"},{char:"А",desc:"CYRILLIC CAPITAL LETTER A"},{char:"Б",desc:"CYRILLIC CAPITAL LETTER BE"},{char:"В",desc:"CYRILLIC CAPITAL LETTER VE"},{char:"Г",desc:"CYRILLIC CAPITAL LETTER GHE"},{char:"Д",desc:"CYRILLIC CAPITAL LETTER DE"},{char:"Е",desc:"CYRILLIC CAPITAL LETTER IE"},{char:"Ж",desc:"CYRILLIC CAPITAL LETTER ZHE"},{char:"З",desc:"CYRILLIC CAPITAL LETTER ZE"},{char:"И",desc:"CYRILLIC CAPITAL LETTER I"},{char:"Й",desc:"CYRILLIC CAPITAL LETTER SHORT I"},{char:"К",desc:"CYRILLIC CAPITAL LETTER KA"},{char:"Л",desc:"CYRILLIC CAPITAL LETTER EL"},{char:"М",desc:"CYRILLIC CAPITAL LETTER EM"},{char:"Н",desc:"CYRILLIC CAPITAL LETTER EN"},{char:"О",desc:"CYRILLIC CAPITAL LETTER O"},{char:"П",desc:"CYRILLIC CAPITAL LETTER PE"},{char:"Р",desc:"CYRILLIC CAPITAL LETTER ER"},{char:"С",desc:"CYRILLIC CAPITAL LETTER ES"},{char:"Т",desc:"CYRILLIC CAPITAL LETTER TE"},{char:"У",desc:"CYRILLIC CAPITAL LETTER U"},{char:"Ф",desc:"CYRILLIC CAPITAL LETTER EF"},{char:"Х",desc:"CYRILLIC CAPITAL LETTER HA"},{char:"Ц",desc:"CYRILLIC CAPITAL LETTER TSE"},{char:"Ч",desc:"CYRILLIC CAPITAL LETTER CHE"},{char:"Ш",desc:"CYRILLIC CAPITAL LETTER SHA"},{char:"Щ",desc:"CYRILLIC CAPITAL LETTER SHCHA"},{char:"Ъ",desc:"CYRILLIC CAPITAL LETTER HARD SIGN"},{char:"Ы",desc:"CYRILLIC CAPITAL LETTER YERU"},{char:"Ь",desc:"CYRILLIC CAPITAL LETTER SOFT SIGN"},{char:"Э",desc:"CYRILLIC CAPITAL LETTER E"},{char:"Ю",desc:"CYRILLIC CAPITAL LETTER YU"},{char:"Я",desc:"CYRILLIC CAPITAL LETTER YA"},{char:"а",desc:"CYRILLIC SMALL LETTER A"},{char:"б",desc:"CYRILLIC SMALL LETTER BE"},{char:"в",desc:"CYRILLIC SMALL LETTER VE"},{char:"г",desc:"CYRILLIC SMALL LETTER GHE"},{char:"д",desc:"CYRILLIC SMALL LETTER DE"},{char:"е",desc:"CYRILLIC SMALL LETTER IE"},{char:"ж",desc:"CYRILLIC SMALL LETTER ZHE"},{char:"з",desc:"CYRILLIC SMALL LETTER ZE"},{char:"и",desc:"CYRILLIC SMALL LETTER I"},{char:"й",desc:"CYRILLIC SMALL LETTER SHORT I"},{char:"к",desc:"CYRILLIC SMALL LETTER KA"},{char:"л",desc:"CYRILLIC SMALL LETTER EL"},{char:"м",desc:"CYRILLIC SMALL LETTER EM"},{char:"н",desc:"CYRILLIC SMALL LETTER EN"},{char:"о",desc:"CYRILLIC SMALL LETTER O"},{char:"п",desc:"CYRILLIC SMALL LETTER PE"},{char:"р",desc:"CYRILLIC SMALL LETTER ER"},{char:"с",desc:"CYRILLIC SMALL LETTER ES"},{char:"т",desc:"CYRILLIC SMALL LETTER TE"},{char:"у",desc:"CYRILLIC SMALL LETTER U"},{char:"ф",desc:"CYRILLIC SMALL LETTER EF"},{char:"х",desc:"CYRILLIC SMALL LETTER HA"},{char:"ц",desc:"CYRILLIC SMALL LETTER TSE"},{char:"ч",desc:"CYRILLIC SMALL LETTER CHE"},{char:"ш",desc:"CYRILLIC SMALL LETTER SHA"},{char:"щ",desc:"CYRILLIC SMALL LETTER SHCHA"},{char:"ъ",desc:"CYRILLIC SMALL LETTER HARD SIGN"},{char:"ы",desc:"CYRILLIC SMALL LETTER YERU"},{char:"ь",desc:"CYRILLIC SMALL LETTER SOFT SIGN"},{char:"э",desc:"CYRILLIC SMALL LETTER E"},{char:"ю",desc:"CYRILLIC SMALL LETTER YU"},{char:"я",desc:"CYRILLIC SMALL LETTER YA"},{char:"ѐ",desc:"CYRILLIC SMALL LETTER IE WITH GRAVE"},{char:"ё",desc:"CYRILLIC SMALL LETTER IO"},{char:"ђ",desc:"CYRILLIC SMALL LETTER DJE"},{char:"ѓ",desc:"CYRILLIC SMALL LETTER GJE"},{char:"є",desc:"CYRILLIC SMALL LETTER UKRAINIAN IE"},{char:"ѕ",desc:"CYRILLIC SMALL LETTER DZE"},{char:"і",desc:"CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I"},{char:"ї",desc:"CYRILLIC SMALL LETTER YI"},{char:"ј",desc:"CYRILLIC SMALL LETTER JE"},{char:"љ",desc:"CYRILLIC SMALL LETTER LJE"},{char:"њ",desc:"CYRILLIC SMALL LETTER NJE"},{char:"ћ",desc:"CYRILLIC SMALL LETTER TSHE"},{char:"ќ",desc:"CYRILLIC SMALL LETTER KJE"},{char:"ѝ",desc:"CYRILLIC SMALL LETTER I WITH GRAVE"},{char:"ў",desc:"CYRILLIC SMALL LETTER SHORT U"},{char:"џ",desc:"CYRILLIC SMALL LETTER DZHE"}]},{title:"Punctuation",char:"–",list:[{char:"–",desc:"EN DASH"},{char:"—",desc:"EM DASH"},{char:"‘",desc:"LEFT SINGLE QUOTATION MARK"},{char:"’",desc:"RIGHT SINGLE QUOTATION MARK"},{char:"‚",desc:"SINGLE LOW-9 QUOTATION MARK"},{char:"“",desc:"LEFT DOUBLE QUOTATION MARK"},{char:"”",desc:"RIGHT DOUBLE QUOTATION MARK"},{char:"„",desc:"DOUBLE LOW-9 QUOTATION MARK"},{char:"†",desc:"DAGGER"},{char:"‡",desc:"DOUBLE DAGGER"},{char:"•",desc:"BULLET"},{char:"…",desc:"HORIZONTAL ELLIPSIS"},{char:"‰",desc:"PER MILLE SIGN"},{char:"′",desc:"PRIME"},{char:"″",desc:"DOUBLE PRIME"},{char:"‹",desc:"SINGLE LEFT-POINTING ANGLE QUOTATION MARK"},{char:"›",desc:"SINGLE RIGHT-POINTING ANGLE QUOTATION MARK"},{char:"‾",desc:"OVERLINE"},{char:"⁄",desc:"FRACTION SLASH"}]},{title:"Currency",char:"₠",list:[{char:"₠",desc:"EURO-CURRENCY SIGN"},{char:"₡",desc:"COLON SIGN"},{char:"₢",desc:"CRUZEIRO SIGN"},{char:"₣",desc:"FRENCH FRANC SIGN"},{char:"₤",desc:"LIRA SIGN"},{char:"₥",desc:"MILL SIGN"},{char:"₦",desc:"NAIRA SIGN"},{char:"₧",desc:"PESETA SIGN"},{char:"₨",desc:"RUPEE SIGN"},{char:"₩",desc:"WON SIGN"},{char:"₪",desc:"NEW SHEQEL SIGN"},{char:"₫",desc:"DONG SIGN"},{char:"€",desc:"EURO SIGN"},{char:"₭",desc:"KIP SIGN"},{char:"₮",desc:"TUGRIK SIGN"},{char:"₯",desc:"DRACHMA SIGN"},{char:"₰",desc:"GERMAN PENNY SYMBOL"},{char:"₱",desc:"PESO SIGN"},{char:"₲",desc:"GUARANI SIGN"},{char:"₳",desc:"AUSTRAL SIGN"},{char:"₴",desc:"HRYVNIA SIGN"},{char:"₵",desc:"CEDI SIGN"},{char:"₶",desc:"LIVRE TOURNOIS SIGN"},{char:"₷",desc:"SPESMILO SIGN"},{char:"₸",desc:"TENGE SIGN"},{char:"₹",desc:"INDIAN RUPEE SIGN"}]},{title:"Arrows",char:"←",list:[{char:"←",desc:"LEFTWARDS ARROW"},{char:"↑",desc:"UPWARDS ARROW"},{char:"→",desc:"RIGHTWARDS ARROW"},{char:"↓",desc:"DOWNWARDS ARROW"},{char:"↔",desc:"LEFT RIGHT ARROW"},{char:"↕",desc:"UP DOWN ARROW"},{char:"↖",desc:"NORTH WEST ARROW"},{char:"↗",desc:"NORTH EAST ARROW"},{char:"↘",desc:"SOUTH EAST ARROW"},{char:"↙",desc:"SOUTH WEST ARROW"},{char:"↚",desc:"LEFTWARDS ARROW WITH STROKE"},{char:"↛",desc:"RIGHTWARDS ARROW WITH STROKE"},{char:"↜",desc:"LEFTWARDS WAVE ARROW"},{char:"↝",desc:"RIGHTWARDS WAVE ARROW"},{char:"↞",desc:"LEFTWARDS TWO HEADED ARROW"},{char:"↟",desc:"UPWARDS TWO HEADED ARROW"},{char:"↠",desc:"RIGHTWARDS TWO HEADED ARROW"},{char:"↡",desc:"DOWNWARDS TWO HEADED ARROW"},{char:"↢",desc:"LEFTWARDS ARROW WITH TAIL"},{char:"↣",desc:"RIGHTWARDS ARROW WITH TAIL"},{char:"↤",desc:"LEFTWARDS ARROW FROM BAR"},{char:"↥",desc:"UPWARDS ARROW FROM BAR"},{char:"↦",desc:"RIGHTWARDS ARROW FROM BAR"},{char:"↧",desc:"DOWNWARDS ARROW FROM BAR"},{char:"↨",desc:"UP DOWN ARROW WITH BASE"},{char:"↩",desc:"LEFTWARDS ARROW WITH HOOK"},{char:"↪",desc:"RIGHTWARDS ARROW WITH HOOK"},{char:"↫",desc:"LEFTWARDS ARROW WITH LOOP"},{char:"↬",desc:"RIGHTWARDS ARROW WITH LOOP"},{char:"↭",desc:"LEFT RIGHT WAVE ARROW"},{char:"↮",desc:"LEFT RIGHT ARROW WITH STROKE"},{char:"↯",desc:"DOWNWARDS ZIGZAG ARROW"},{char:"↰",desc:"UPWARDS ARROW WITH TIP LEFTWARDS"},{char:"↱",desc:"UPWARDS ARROW WITH TIP RIGHTWARDS"},{char:"↲",desc:"DOWNWARDS ARROW WITH TIP LEFTWARDS"},{char:"↳",desc:"DOWNWARDS ARROW WITH TIP RIGHTWARDS"},{char:"↴",desc:"RIGHTWARDS ARROW WITH CORNER DOWNWARDS"},{char:"↵",desc:"DOWNWARDS ARROW WITH CORNER LEFTWARDS"},{char:"↶",desc:"ANTICLOCKWISE TOP SEMICIRCLE ARROW"},{char:"↷",desc:"CLOCKWISE TOP SEMICIRCLE ARROW"},{char:"↸",desc:"NORTH WEST ARROW TO LONG BAR"},{char:"↹",desc:"LEFTWARDS ARROW TO BAR OVER RIGHTWARDS ARROW TO BAR"},{char:"↺",desc:"ANTICLOCKWISE OPEN CIRCLE ARROW"},{char:"↻",desc:"CLOCKWISE OPEN CIRCLE ARROW"},{char:"↼",desc:"LEFTWARDS HARPOON WITH BARB UPWARDS"},{char:"↽",desc:"LEFTWARDS HARPOON WITH BARB DOWNWARDS"},{char:"↾",desc:"UPWARDS HARPOON WITH BARB RIGHTWARDS"},{char:"↿",desc:"UPWARDS HARPOON WITH BARB LEFTWARDS"},{char:"⇀",desc:"RIGHTWARDS HARPOON WITH BARB UPWARDS"},{char:"⇁",desc:"RIGHTWARDS HARPOON WITH BARB DOWNWARDS"},{char:"⇂",desc:"DOWNWARDS HARPOON WITH BARB RIGHTWARDS"},{char:"⇃",desc:"DOWNWARDS HARPOON WITH BARB LEFTWARDS"},{char:"⇄",desc:"RIGHTWARDS ARROW OVER LEFTWARDS ARROW"},{char:"⇅",desc:"UPWARDS ARROW LEFTWARDS OF DOWNWARDS ARROW"},{char:"⇆",desc:"LEFTWARDS ARROW OVER RIGHTWARDS ARROW"},{char:"⇇",desc:"LEFTWARDS PAIRED ARROWS"},{char:"⇈",desc:"UPWARDS PAIRED ARROWS"},{char:"⇉",desc:"RIGHTWARDS PAIRED ARROWS"},{char:"⇊",desc:"DOWNWARDS PAIRED ARROWS"},{char:"⇋",desc:"LEFTWARDS HARPOON OVER RIGHTWARDS HARPOON"},{char:"⇌",desc:"RIGHTWARDS HARPOON OVER LEFTWARDS HARPOON"},{char:"⇍",desc:"LEFTWARDS DOUBLE ARROW WITH STROKE"},{char:"⇎",desc:"LEFT RIGHT DOUBLE ARROW WITH STROKE"},{char:"⇏",desc:"RIGHTWARDS DOUBLE ARROW WITH STROKE"},{char:"⇐",desc:"LEFTWARDS DOUBLE ARROW"},{char:"⇑",desc:"UPWARDS DOUBLE ARROW"},{char:"⇒",desc:"RIGHTWARDS DOUBLE ARROW"},{char:"⇓",desc:"DOWNWARDS DOUBLE ARROW"},{char:"⇔",desc:"LEFT RIGHT DOUBLE ARROW"},{char:"⇕",desc:"UP DOWN DOUBLE ARROW"},{char:"⇖",desc:"NORTH WEST DOUBLE ARROW"},{char:"⇗",desc:"NORTH EAST DOUBLE ARROW"},{char:"⇘",desc:"SOUTH EAST DOUBLE ARROW"},{char:"⇙",desc:"SOUTH WEST DOUBLE ARROW"},{char:"⇚",desc:"LEFTWARDS TRIPLE ARROW"},{char:"⇛",desc:"RIGHTWARDS TRIPLE ARROW"},{char:"⇜",desc:"LEFTWARDS SQUIGGLE ARROW"},{char:"⇝",desc:"RIGHTWARDS SQUIGGLE ARROW"},{char:"⇞",desc:"UPWARDS ARROW WITH DOUBLE STROKE"},{char:"⇟",desc:"DOWNWARDS ARROW WITH DOUBLE STROKE"},{char:"⇠",desc:"LEFTWARDS DASHED ARROW"},{char:"⇡",desc:"UPWARDS DASHED ARROW"},{char:"⇢",desc:"RIGHTWARDS DASHED ARROW"},{char:"⇣",desc:"DOWNWARDS DASHED ARROW"},{char:"⇤",desc:"LEFTWARDS ARROW TO BAR"},{char:"⇥",desc:"RIGHTWARDS ARROW TO BAR"},{char:"⇦",desc:"LEFTWARDS WHITE ARROW"},{char:"⇧",desc:"UPWARDS WHITE ARROW"},{char:"⇨",desc:"RIGHTWARDS WHITE ARROW"},{char:"⇩",desc:"DOWNWARDS WHITE ARROW"},{char:"⇪",desc:"UPWARDS WHITE ARROW FROM BAR"},{char:"⇫",desc:"UPWARDS WHITE ARROW ON PEDESTAL"},{char:"⇬",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH HORIZONTAL BAR"},{char:"⇭",desc:"UPWARDS WHITE ARROW ON PEDESTAL WITH VERTICAL BAR"},{char:"⇮",desc:"UPWARDS WHITE DOUBLE ARROW"},{char:"⇯",desc:"UPWARDS WHITE DOUBLE ARROW ON PEDESTAL"},{char:"⇰",desc:"RIGHTWARDS WHITE ARROW FROM WALL"},{char:"⇱",desc:"NORTH WEST ARROW TO CORNER"},{char:"⇲",desc:"SOUTH EAST ARROW TO CORNER"},{char:"⇳",desc:"UP DOWN WHITE ARROW"},{char:"⇴",desc:"RIGHT ARROW WITH SMALL CIRCLE"},{char:"⇵",desc:"DOWNWARDS ARROW LEFTWARDS OF UPWARDS ARROW"},{char:"⇶",desc:"THREE RIGHTWARDS ARROWS"},{char:"⇷",desc:"LEFTWARDS ARROW WITH VERTICAL STROKE"},{char:"⇸",desc:"RIGHTWARDS ARROW WITH VERTICAL STROKE"},{char:"⇹",desc:"LEFT RIGHT ARROW WITH VERTICAL STROKE"},{char:"⇺",desc:"LEFTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{char:"⇻",desc:"RIGHTWARDS ARROW WITH DOUBLE VERTICAL STROKE"},{char:"⇼",desc:"LEFT RIGHT ARROW WITH DOUBLE VERTICAL STROKE"},{char:"⇽",desc:"LEFTWARDS OPEN-HEADED ARROW"},{char:"⇾",desc:"RIGHTWARDS OPEN-HEADED ARROW"},{char:"⇿",desc:"LEFT RIGHT OPEN-HEADED ARROW"}]},{title:"Math",char:"∀",list:[{char:"∀",desc:"FOR ALL"},{char:"∂",desc:"PARTIAL DIFFERENTIAL"},{char:"∃",desc:"THERE EXISTS"},{char:"∅",desc:"EMPTY SET"},{char:"∇",desc:"NABLA"},{char:"∈",desc:"ELEMENT OF"},{char:"∉",desc:"NOT AN ELEMENT OF"},{char:"∋",desc:"CONTAINS AS MEMBER"},{char:"∏",desc:"N-ARY PRODUCT"},{char:"∑",desc:"N-ARY SUMMATION"},{char:"−",desc:"MINUS SIGN"},{char:"∗",desc:"ASTERISK OPERATOR"},{char:"√",desc:"SQUARE ROOT"},{char:"∝",desc:"PROPORTIONAL TO"},{char:"∞",desc:"INFINITY"},{char:"∠",desc:"ANGLE"},{char:"∧",desc:"LOGICAL AND"},{char:"∨",desc:"LOGICAL OR"},{char:"∩",desc:"INTERSECTION"},{char:"∪",desc:"UNION"},{char:"∫",desc:"INTEGRAL"},{char:"∴",desc:"THEREFORE"},{char:"∼",desc:"TILDE OPERATOR"},{char:"≅",desc:"APPROXIMATELY EQUAL TO"},{char:"≈",desc:"ALMOST EQUAL TO"},{char:"≠",desc:"NOT EQUAL TO"},{char:"≡",desc:"IDENTICAL TO"},{char:"≤",desc:"LESS-THAN OR EQUAL TO"},{char:"≥",desc:"GREATER-THAN OR EQUAL TO"},{char:"⊂",desc:"SUBSET OF"},{char:"⊃",desc:"SUPERSET OF"},{char:"⊄",desc:"NOT A SUBSET OF"},{char:"⊆",desc:"SUBSET OF OR EQUAL TO"},{char:"⊇",desc:"SUPERSET OF OR EQUAL TO"},{char:"⊕",desc:"CIRCLED PLUS"},{char:"⊗",desc:"CIRCLED TIMES"},{char:"⊥",desc:"UP TACK"}]},{title:"Misc",char:"♠",list:[{char:"♠",desc:"BLACK SPADE SUIT"},{char:"♣",desc:"BLACK CLUB SUIT"},{char:"♥",desc:"BLACK HEART SUIT"},{char:"♦",desc:"BLACK DIAMOND SUIT"},{char:"♩",desc:"QUARTER NOTE"},{char:"♪",desc:"EIGHTH NOTE"},{char:"♫",desc:"BEAMED EIGHTH NOTES"},{char:"♬",desc:"BEAMED SIXTEENTH NOTES"},{char:"♭",desc:"MUSIC FLAT SIGN"},{char:"♮",desc:"MUSIC NATURAL SIGN"},{char:"☀",desc:"BLACK SUN WITH RAYS"},{char:"☁",desc:"CLOUD"},{char:"☂",desc:"UMBRELLA"},{char:"☃",desc:"SNOWMAN"},{char:"☕",desc:"HOT BEVERAGE"},{char:"☘",desc:"SHAMROCK"},{char:"☯",desc:"YIN YANG"},{char:"✔",desc:"HEAVY CHECK MARK"},{char:"✖",desc:"HEAVY MULTIPLICATION X"},{char:"❄",desc:"SNOWFLAKE"},{char:"❛",desc:"HEAVY SINGLE TURNED COMMA QUOTATION MARK ORNAMENT"},{char:"❜",desc:"HEAVY SINGLE COMMA QUOTATION MARK ORNAMENT"},{char:"❝",desc:"HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT"},{char:"❞",desc:"HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT"},{char:"❤",desc:"HEAVY BLACK HEART"}]}],specialCharButtons:["specialCharBack","|"]}),Object.assign(e.POPUP_TEMPLATES,{specialCharacters:"[_BUTTONS_][_CUSTOM_LAYER_]"}),e.PLUGINS.specialCharacters=function(t){var n=t.$,r=t.opts.specialCharactersSets[0],a=t.opts.specialCharactersSets,o="";function i(){return'\n
    \n '.concat(function(e,t){var n="";return e.forEach((function(e){var r={elementClass:e.title===t.title?"fr-active fr-active-tab":"",title:e.title,dataParam1:e.title,desc:e.char};n+='")})),n}(a,r),'\n
    \n
    \n ').concat(function(e){var t="";return e.list.forEach((function(e){var n={dataParam1:e.char,title:e.desc,splCharValue:e.char};t+='').concat(n.splCharValue,"")})),t}(r),"\n
    ")}return{setSpecialCharacterCategory:function(e){r=a.filter((function(t){return t.title===e}))[0],t.popups.get("specialCharacters").html(o+i())},showSpecialCharsPopup:function(){var r=t.popups.get("specialCharacters");if(r||(r=function(){t.opts.toolbarInline&&0'.concat(t.button.buildList(t.opts.specialCharButtons),""));var r,a={buttons:o,custom_layer:i()},s=t.popups.create("specialCharacters",a);return r=s,t.events.on("popup.tab",(function(a){var o=n(a.currentTarget);if(!t.popups.isVisible("specialCharacters")||!o.is("span, a"))return!0;var i,s,l,c=a.which;if(e.KEYCODE.TAB==c){if(o.is("span.fr-icon")&&a.shiftKey||o.is("a")&&!a.shiftKey){var d=r.find(".fr-buttons");i=!t.accessibility.focusToolbar(d,!!a.shiftKey)}if(!1!==i){var f=r.find("span.fr-icon:focus").first().concat(r.findVisible(" span.fr-icon").first().concat(r.find("a")));o.is("span.fr-icon")&&(f=f.not("span.fr-icon:not(:focus)")),s=f.index(o),s=a.shiftKey?((s-1)%f.length+f.length)%f.length:(s+1)%f.length,l=f.get(s),t.events.disableBlur(),l.focus(),i=!1}}else if(e.KEYCODE.ARROW_UP==c||e.KEYCODE.ARROW_DOWN==c||e.KEYCODE.ARROW_LEFT==c||e.KEYCODE.ARROW_RIGHT==c){if(o.is("span.fr-icon")){var p=o.parent().find("span.fr-icon");s=p.index(o);var u=11,h=Math.floor(p.length/u),g=s%u,m=Math.floor(s/u)*u+g,v=h*u;e.KEYCODE.ARROW_UP==c?m=((m-u)%v+v)%v:e.KEYCODE.ARROW_DOWN==c?m=(m+u)%v:e.KEYCODE.ARROW_LEFT==c?m=((m-1)%v+v)%v:e.KEYCODE.ARROW_RIGHT==c&&(m=(m+1)%v),l=n(p.get(m)),t.events.disableBlur(),l.focus(),i=!1}}else e.KEYCODE.ENTER==c&&(o.is("a")?o[0].click():t.button.exec(o),i=!1);return!1===i&&(a.preventDefault(),a.stopPropagation()),i}),!0),s}()),!r.hasClass("fr-active")){t.popups.refresh("specialCharacters"),t.popups.setContainer("specialCharacters",t.$tb);var a=t.$tb.find('.fr-command[data-cmd="specialCharacters"]'),s=t.button.getPosition(a),l=s.left,c=s.top;t.popups.show("specialCharacters",l,c,outerHeight)}},back:function(){t.popups.hide("specialCharacters"),t.toolbar.showInline()}}},e.DefineIcon("specialCharacters",{NAME:"dollar-sign",SVG_KEY:"symbols"}),e.RegisterCommand("specialCharacters",{title:"Special Characters",icon:"specialCharacters",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,plugin:"specialCharacters",showOnMobile:!0,callback:function(){this.popups.isVisible("specialCharacters")?(this.$el.find(".fr-marker")&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("specialCharacters")):this.specialCharacters.showSpecialCharsPopup()}}),e.RegisterCommand("insertSpecialCharacter",{callback:function(e,t){this.undo.saveStep(),this.html.insert(t),this.undo.saveStep(),this.popups.hide("specialCharacters")}}),e.RegisterCommand("setSpecialCharacterCategory",{undo:!1,focus:!1,callback:function(e,t){this.specialCharacters.setSpecialCharacterCategory(t)}}),e.DefineIcon("specialCharBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("specialCharBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.specialCharacters.back()}})}(n(80214))},22733:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.POPUP_TEMPLATES,{"table.insert":"[_BUTTONS_][_ROWS_COLUMNS_]","table.edit":"[_BUTTONS_]","table.colors":"[_BUTTONS_][_COLORS_][_CUSTOM_COLOR_]"}),Object.assign(e.DEFAULTS,{tableInsertMaxSize:10,tableEditButtons:["tableHeader","tableRemove","tableRows","tableColumns","tableStyle","-","tableCells","tableCellBackground","tableCellVerticalAlign","tableCellHorizontalAlign","tableCellStyle"],tableInsertButtons:["tableBack","|"],tableResizer:!0,tableDefaultWidth:"100%",tableResizerOffset:5,tableResizingLimit:30,tableColorsButtons:["tableBack","|"],tableColors:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],tableColorsStep:7,tableCellStyles:{"fr-highlighted":"Highlighted","fr-thick":"Thick"},tableStyles:{"fr-dashed-borders":"Dashed Borders","fr-alternate-rows":"Alternate Rows"},tableCellMultipleStyles:!0,tableMultipleStyles:!0,tableInsertHelper:!0,tableInsertHelperOffset:15}),e.PLUGINS.table=function(t){var n,r,a,o,i,s,l,c=t.$;function d(){var e=C();if(e){var n=t.popups.get("table.edit");if(n||(n=h()),n){t.popups.setContainer("table.edit",t.$sc);var r=w(e),a=r.left+(r.right-r.left)/2,o=r.bottom;t.popups.show("table.edit",a,o,r.bottom-r.top,!0),t.edit.isDisabled()&&(1 span[data-row="1"][data-col="1"]').trigger("mouseover")})),!0;var r="";0'.concat(t.button.buildList(t.opts.tableInsertButtons),""));var a={buttons:r,rows_columns:function(){for(var e='
    1 × 1
    ',n=1;n<=t.opts.tableInsertMaxSize;n++){for(var r=1;r<=t.opts.tableInsertMaxSize;r++){var a="inline-block";2').concat(n," × ").concat(r,"   ")}e+='
    '}return e+"
    "}()},o=t.popups.create("table.insert",a);return t.events.$on(o,"mouseover",".fr-table-size .fr-select-table-size .fr-table-cell",(function(e){u(c(e.currentTarget))}),!0),function(n){t.events.$on(n,"focus","[tabIndex]",(function(e){u(c(e.currentTarget))})),t.events.on("popup.tab",(function(n){var r=c(n.currentTarget);if(!t.popups.isVisible("table.insert")||!r.is("span, a"))return!0;var a,o=n.which;if(e.KEYCODE.ARROW_UP==o||e.KEYCODE.ARROW_DOWN==o||e.KEYCODE.ARROW_LEFT==o||e.KEYCODE.ARROW_RIGHT==o){if(r.is("span.fr-table-cell")){var i=r.parent().find("span.fr-table-cell"),s=i.index(r),l=t.opts.tableInsertMaxSize,d=s%l,f=Math.floor(s/l);e.KEYCODE.ARROW_UP==o?f=Math.max(0,f-1):e.KEYCODE.ARROW_DOWN==o?f=Math.min(t.opts.tableInsertMaxSize-1,f+1):e.KEYCODE.ARROW_LEFT==o?d=Math.max(0,d-1):e.KEYCODE.ARROW_RIGHT==o&&(d=Math.min(t.opts.tableInsertMaxSize-1,d+1));var p=f*l+d,h=c(i.get(p));u(h),t.events.disableBlur(),h.focus(),a=!1}}else e.KEYCODE.ENTER==o&&(t.button.exec(r),a=!1);return!1===a&&(n.preventDefault(),n.stopPropagation()),a}),!0)}(o),o}function u(e){var n=e.data("row");null!==n&&(n=parseInt(n));var r=e.data("col");null!==r&&(r=parseInt(r));var a=e.parent();a.siblings(".fr-table-size-info").html("".concat(n," × ").concat(r)),a.find("> span").removeClass("hover fr-active-item");for(var o=1;o<=t.opts.tableInsertMaxSize;o++)for(var i=0;i<=t.opts.tableInsertMaxSize;i++){var s=a.find('> span[data-row="'.concat(o,'"][data-col="').concat(i,'"]'));o<=n&&i<=r?s.addClass("hover"):o<=n+1||o<=2&&!t.helpers.isMobile()?s.css("display","inline-block"):2'.concat(t.button.buildList(t.opts.tableEditButtons),"")},r=t.popups.create("table.edit",n);return t.events.$on(t.$wp,"scroll.table-edit",(function(){t.popups.isVisible("table.edit")&&d()})),r}return!1}function g(){if(0
    ';l+="",o=0 table tbody"))):c(n.find("tr").not(n.find("> table tr")).get(a)),"below"==e?"TBODY"==o.attr("tagName")?o.prepend(l):o[0].parentNode&&o[0].insertAdjacentHTML("afterend",l):"above"==e&&(o.before(l),t.popups.isVisible("table.edit")&&d())}}function v(e,t,n){var r,a,o,i,s,l=0,c=C(n);if(e<(t=Math.min(t,c[0].length-1)))for(a=e;a<=t;a++)if(!(e table tr")).each((function(e,n){var r=c(n),a=0;r.find("> th, > td").each((function(n,r){for(var o=c(r),i=parseInt(o.attr("colspan"),10)||1,s=parseInt(o.attr("rowspan"),10)||1,l=e;l")),n=t.shared.$table_resizer,t.events.$on(n,"mousedown",(function(e){return!t.core.sameInstance(n)||(0i-t.opts.tableResizerOffset?n.css("left",i-t.opts.tableResizerOffset-t.$wp.offset().left):c')),t.events.bindClick(t.shared.$ti_helper,"a",(function(){var e=r.data("selected-cell"),n=r.data("position"),a=r.data("instance")||t;"before"==n||"after"==n?(t.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertColumn(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()):("above"==n||"below"==n)&&(t.undo.saveStep(),e.addClass("fr-selected-cell"),a.table.insertRow(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()),U()})),t.events.on("shared.destroy",(function(){t.shared.$ti_helper.html("").removeData().remove(),t.shared.$ti_helper=null}),!0),t.events.$on(t.shared.$ti_helper,"mousemove",(function(e){e.stopPropagation()}),!0),t.events.$on(c(t.o_win),"scroll",(function(){U()}),!0),t.events.$on(t.$wp,"scroll",(function(){U()}),!0)),r=t.shared.$ti_helper,t.events.on("destroy",(function(){r=null})),t.tooltip.bind(t.$box,".fr-insert-helper > a.fr-floating-btn")}function j(){i=null,clearTimeout(s)}function Z(){return t.el.querySelectorAll(".fr-selected-cell")}function Q(){var e=Z();if(e.length){for(var n=e[0];n&&"TABLE"!=n.tagName&&n.parentNode!=t.el;)n=n.parentNode;return n&&"TABLE"==n.tagName?c(n):c([])}return c([])}function J(e){a=!1}return{_init:function(){if(!t.$wp)return!1;if(!t.helpers.isMobile()){l=a=o=!1,t.events.$on(t.$el,"mousedown",D),t.popups.onShow("image.edit",(function(){R(),a=o=!1})),t.popups.onShow("link.edit",(function(){R(),a=o=!1})),t.events.on("commands.mousedown",(function(e){0"),a==r.length-1&&c(r[a]).prepend(e.MARKERS);return t.selection.restore(),t.undo.saveStep(),!(r=[])}if(1',s=100/r;for(a=0;a",o=0;o",0===a&&0===o&&(i+=e.MARKERS),i+="
    ";i+=""}i+="",t.html.insert(i),t.selection.restore();var l=t.$el.find(".fr-inserted-table");l.removeClass("fr-inserted-table"),t.events.trigger("table.inserted",[l.get(0)])},remove:g,insertRow:m,deleteRow:function(){var e=Q();if(0=i.min_i;n--){for(a=c(e.find("tr").not(e.find("> table tr")).get(n)),r=0;r table tr")).get(n+1)).prepend(d):c(o[n+1][f-1])[0].parentNode&&c(o[n+1][f-1])[0].insertAdjacentElement("afterend",d)}}var p=a.parent();a.remove(),0===p.find("tr").length&&p.remove(),o=C(e)}A(0,o.length-1,0,o[0].length-1,e),0 table tr")).each((function(t){for(var n,o=c(this),i=0,d=0;i-1 th, > td").get(d))){n=null;break}n==a[t][i]?(i+=parseInt(c(n).attr("colspan"),10)||1,d++):(i+=parseInt(c(a[t][i]).attr("colspan"),10)||1,"after"==e&&(n=0===d?-1:o.find("> th, > td").get(d-1)))}var f,p=c(n);if("after"==e&&r
    '):'
    '),-1==n?o.prepend(f):null==n?o.append(f):"before"==e?p.before(f):"after"==e&&p[0].parentNode&&p[0].insertAdjacentHTML("afterend",f)})),n.find("th, td").each((function(){(i=c(this)).data("old-width")&&(i.css("width",(i.data("old-width")*l/s).toFixed(4)+"%"),i.removeData("old-width"))})),t.popups.isVisible("table.edit")&&d()}},deleteColumn:function(){var e=Q();if(0i.max_j)&&(s+=a.outerWidth()/e.outerWidth()*100));for(s/=o.length,r=i.max_j;r>=i.min_j;r--)for(n=0;n th, > td").length&&(0===d.prev().length||0===d.next().length||d.prev().find("> th[rowspan], > td[rowspan]").length th, > td").length)&&d.remove()}A(0,o.length-1,0,o[0].length-1,e),0"!=(n=c(a[e])).html()&&""!==n.html()&&(l+="
    ".concat(n.html())),n.remove();o.html(l),t.selection.setAtEnd(o.get(0)),t.selection.restore(),t.toolbar.enable(),b(r.min_i,r.max_i,s);var p=s.find("tr:empty");for(e=p.length-1;0<=e;e--)c(p[e]).remove();v(r.min_j,r.max_j,s),d()}},splitCellVertically:function(){if(1==Z().length){var e=t.$el.find(".fr-selected-cell"),n=parseInt(e.attr("colspan"),10)||1,r=e.parent().outerWidth(),a=e.outerWidth(),o=e.clone().html("
    "),i=C(),s=S(e.get(0),i);if(1");if(1 table tr")).get(d)).prepend(s):c(o[d][f])[0].parentNode&&c(o[d][f])[0].insertAdjacentElement("afterend",s[0])}else{var p,u=c(document.createElement("tr")).append(s);for(p=0;p td").each((function(){var e=c(this);r+=parseInt(e.attr("colspan"),10)||1})),t=0;t
    ";n+="",e.prepend(n),d()}},removeHeader:function(){var e=Q(),n=e.find("thead");if(0"));var a="";t.opts.colorsHEXInput&&(a='
    "));var o={buttons:r,colors:function(){for(var e='
    ',n=0;n"),"REMOVE"!=t.opts.tableColors[n]?e+='').concat(t.language.translate("Color")," ").concat(t.opts.tableColors[n],"   "):e+='').concat(t.icon.create("tableColorRemove"),'').concat(t.language.translate("Clear Formatting"),"");return e+"
    "}(),custom_color:a},i=t.popups.create("table.colors",o);return t.events.$on(t.$wp,"scroll.table-colors",(function(){t.popups.isVisible("table.colors")&&n()})),function(n){t.events.on("popup.tab",(function(r){var a=c(r.currentTarget);if(!t.popups.isVisible("table.colors")||!a.is("span"))return!0;var o=r.which,i=!0;if(e.KEYCODE.TAB==o){var s=n.find(".fr-buttons");i=!t.accessibility.focusToolbar(s,!!r.shiftKey)}else if(e.KEYCODE.ARROW_UP==o||e.KEYCODE.ARROW_DOWN==o||e.KEYCODE.ARROW_LEFT==o||e.KEYCODE.ARROW_RIGHT==o){var l=a.parent().find("span.fr-command"),d=l.index(a),f=t.opts.colorsStep,p=Math.floor(l.length/f),u=d%f,h=Math.floor(d/f)*f+u,g=p*f;e.KEYCODE.ARROW_UP==o?h=((h-f)%g+g)%g:e.KEYCODE.ARROW_DOWN==o?h=(h+f)%g:e.KEYCODE.ARROW_LEFT==o?h=((h-1)%g+g)%g:e.KEYCODE.ARROW_RIGHT==o&&(h=(h+1)%g);var m=c(l.get(h));t.events.disableBlur(),m.focus(),i=!1}else e.KEYCODE.ENTER==o&&(t.button.exec(a),i=!1);return!1===i&&(r.preventDefault(),r.stopPropagation()),i}),!0)}(i),i}()),t.popups.setContainer("table.colors",t.$sc);var o=w(r),i=(o.left+o.right)/2,s=o.bottom;!function(){var e=t.popups.get("table.colors"),n=t.$el.find(".fr-selected-cell").first(),r=t.helpers.RGBToHex(n.css("background-color")),a=e.find(".fr-table-colors-hex-layer input");e.find(".fr-selected-color").removeClass("fr-selected-color fr-active-item"),e.find('span[data-param1="'.concat(r,'"]')).addClass("fr-selected-color fr-active-item"),a.val(r).trigger("change")}(),t.popups.show("table.colors",i,s,o.bottom-o.top,!0)}},back:function(){0'+this.language.translate(n[r])+"");return t+""},callback:function(e,t){"above"==t||"below"==t?this.table.insertRow(t):this.table.deleteRow()}}),e.DefineIcon("tableColumns",{NAME:"bars fa-rotate-90",SVG_KEY:"columns"}),e.RegisterCommand("tableColumns",{type:"dropdown",focus:!1,title:"Column",options:{before:"Insert column before",after:"Insert column after",delete:"Delete column"},html:function(){var t='"},callback:function(e,t){"before"==t||"after"==t?this.table.insertColumn(t):this.table.deleteColumn()}}),e.DefineIcon("tableCells",{NAME:"square-o",FA5NAME:"square",SVG_KEY:"cellOptions"}),e.RegisterCommand("tableCells",{type:"dropdown",focus:!1,title:"Cell",options:{merge:"Merge cells","vertical-split":"Vertical split","horizontal-split":"Horizontal split"},html:function(){var t='"},callback:function(e,t){"merge"==t?this.table.mergeCells():"vertical-split"==t?this.table.splitCellVertically():this.table.splitCellHorizontally()},refreshOnShow:function(e,t){1').concat(this.language.translate(t[n]),""));return e+""},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell").closest("table"),this.opts.tableMultipleStyles,this.opts.tableStyles)},refreshOnShow:function(e,t){var n=this.$,r=this.$el.find(".fr-selected-cell").closest("table");r&&t.find(".fr-command").each((function(){var e=n(this).data("param1"),t=r.hasClass(e);n(this).toggleClass("fr-active",t).attr("aria-selected",t)}))}}),e.DefineIcon("tableCellBackground",{NAME:"tint",SVG_KEY:"cellBackground"}),e.RegisterCommand("tableCellBackground",{title:"Cell Background",focus:!1,popup:!0,callback:function(){this.table.showColorsPopup()}}),e.RegisterCommand("tableCellBackgroundColor",{undo:!0,focus:!1,callback:function(e,t){this.table.setBackground(t)}}),e.DefineIcon("tableBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("tableBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.table.back()},refresh:function(e){0!==this.table.selectedCells().length||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.DefineIcon("tableCellVerticalAlign",{NAME:"arrows-v",FA5NAME:"arrows-alt-v",SVG_KEY:"verticalAlignMiddle"}),e.RegisterCommand("tableCellVerticalAlign",{type:"dropdown",focus:!1,title:"Vertical Align",options:{Top:"Align Top",Middle:"Align Middle",Bottom:"Align Bottom"},html:function(){var t='"},callback:function(e,t){this.table.verticalAlign(t)},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.$el.find(".fr-selected-cell").css("vertical-align")+'"]').addClass("fr-active").attr("aria-selected",!0)}}),e.DefineIcon("tableCellHorizontalAlign",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),e.DefineIcon("align-center",{NAME:"align-center",SVG_KEY:"alignCenter"}),e.DefineIcon("align-justify",{NAME:"align-justify",SVG_KEY:"alignJustify"}),e.RegisterCommand("tableCellHorizontalAlign",{type:"dropdown",focus:!1,title:"Horizontal Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var t='"},callback:function(e,t){this.table.horizontalAlign(t)},refresh:function(e){var t=this.table.selectedCells(),n=this.$;t.length&&e.find("> *").first().replaceWith(this.icon.create("align-".concat(this.helpers.getAlignment(n(t[0])))))},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.helpers.getAlignment(this.$el.find(".fr-selected-cell").first())+'"]').addClass("fr-active").attr("aria-selected",!0)}}),e.DefineIcon("tableCellStyle",{NAME:"magic",SVG_KEY:"cellStyle"}),e.RegisterCommand("tableCellStyle",{title:"Cell Style",type:"dropdown",focus:!1,html:function(){var e='"},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell"),this.opts.tableCellMultipleStyles,this.opts.tableCellStyles)},refreshOnShow:function(e,t){var n=this.$,r=this.$el.find(".fr-selected-cell").first();r&&t.find(".fr-command").each((function(){var e=n(this).data("param1"),t=r.hasClass(e);n(this).toggleClass("fr-active",t).attr("aria-selected",t)}))}}),e.RegisterCommand("tableCellBackgroundCustomColor",{title:"OK",undo:!0,callback:function(){this.table.customColor()}}),e.DefineIcon("tableColorRemove",{NAME:"eraser",SVG_KEY:"remove"})}(n(80214))},16729:function(e,t,n){!function(e){"use strict";(e=e&&e.hasOwnProperty("default")?e.default:e).URLRegEx="(^| |\\u00A0)(".concat(e.LinkRegEx,"|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\\.[a-z0-9+-_]{1,}))$"),e.PLUGINS.url=function(t){var n=t.$,r=null;function a(e,n,a){for(var o="";a.length&&"."==a[a.length-1];)o+=".",a=a.substring(0,a.length-1);var i=a;if(t.opts.linkConvertEmailAddress)t.helpers.isEmail(i)&&!/^mailto:.*/i.test(i)&&(i="mailto:".concat(i));else if(t.helpers.isEmail(i))return n+a;return/^((http|https|ftp|ftps|mailto|tel|sms|notes|data)\:)/i.test(i)||(i="//".concat(i)),(n||"")+"').concat(a.replace(/&/g,"&").replace(/&/g,"&").replace(//g,">"),"").concat(o)}var o=function(){return new RegExp(e.URLRegEx,"gi")};function i(e){return t.opts.linkAlwaysNoFollow&&(r="nofollow"),t.opts.linkAlwaysBlank&&(t.opts.linkNoOpener&&(r?r+=" noopener":r="noopener"),t.opts.linkNoReferrer&&(r?r+=" noreferrer":r="noreferrer")),e.replace(o(),a)}function s(e){var t=e.split(" ");return t[t.length-1]}function l(){var e=t.selection.ranges(0),r=e.startContainer;if(!r||r.nodeType!==Node.TEXT_NODE||e.startOffset!==(r.textContent||"").length)return!1;if(function e(n){return!!n&&("A"===n.tagName||!(!n.parentNode||n.parentNode==t.el)&&e(n.parentNode))}(r))return!1;if(o().test(s(r.textContent))){n(r).before(i(r.textContent));var a=n(r.parentNode).find("a[data-fr-linked]");a.removeAttr("data-fr-linked"),r.parentNode.removeChild(r),t.events.trigger("url.linked",[a.get(0)])}else if(r.textContent.split(" ").length<=2&&r.previousSibling&&"A"===r.previousSibling.tagName){var l=r.previousSibling.innerText+r.textContent;o().test(s(l))&&(n(r.previousSibling).replaceWith(i(l)),r.parentNode.removeChild(r))}}return{_init:function(){t.events.on("keypress",(function(e){!t.selection.isCollapsed()||"."!=e.key&&")"!=e.key&&"("!=e.key||l()}),!0),t.events.on("keydown",(function(n){var r=n.which;!t.selection.isCollapsed()||r!=e.KEYCODE.ENTER&&r!=e.KEYCODE.SPACE||l()}),!0),t.events.on("paste.beforeCleanup",(function(e){if(t.helpers.isURL(e)){var n=null;return t.opts.linkAlwaysBlank&&(t.opts.linkNoOpener&&(n?n+=" noopener":n="noopener"),t.opts.linkNoReferrer&&(n?n+=" noreferrer":n="noreferrer")),"').concat(e,"")}}))}}}}(n(80214))},81838:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.POPUP_TEMPLATES,{"video.insert":"[_BUTTONS_][_BY_URL_LAYER_][_EMBED_LAYER_][_UPLOAD_LAYER_][_PROGRESS_BAR_]","video.edit":"[_BUTTONS_]","video.size":"[_BUTTONS_][_SIZE_LAYER_]"}),Object.assign(e.DEFAULTS,{videoAllowedTypes:["mp4","webm","ogg"],videoAllowedProviders:[".*"],videoDefaultAlign:"center",videoDefaultDisplay:"block",videoDefaultWidth:600,videoEditButtons:["videoReplace","videoRemove","videoDisplay","videoAlign","videoSize"],videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoMaxSize:52428800,videoMove:!0,videoResize:!0,videoResponsive:!1,videoSizeButtons:["videoBack","|"],videoSplitHTML:!1,videoTextNear:!0,videoUpload:!0,videoUploadMethod:"POST",videoUploadParam:"file",videoUploadParams:{},videoUploadToS3:!1,videoUploadURL:null}),e.VIDEO_PROVIDERS=[{test_regex:/^.*((youtu.be)|(youtube.com))\/((v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))?\??v?=?([^#\&\?]*).*/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=|embed\/)?([0-9a-zA-Z_\-]+)(.+)?/g,url_text:"https://www.youtube.com/embed/$1?$2",html:'',provider:"youtube"},{test_regex:/^.*(?:vimeo.com)\/(?:channels(\/\w+\/)?|groups\/*\/videos\/\u200b\d+\/|video\/|)(\d+)(?:$|\/|\?)/,url_regex:/(?:https?:\/\/)?(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?(\/[a-zA-Z0-9_\-]+)?/i,url_text:"https://player.vimeo.com/video/$1",html:'',provider:"vimeo"},{test_regex:/^.+(dailymotion.com|dai.ly)\/(video|hub)?\/?([^_]+)[^#]*(#video=([^_&]+))?/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:dailymotion\.com|dai\.ly)\/(?:video|hub)?\/?(.+)/g,url_text:"https://www.dailymotion.com/embed/video/$1",html:'',provider:"dailymotion"},{test_regex:/^.+(screen.yahoo.com)\/[^_&]+/,url_regex:"",url_text:"",html:'',provider:"yahoo"},{test_regex:/^.+(rutube.ru)\/[^_&]+/,url_regex:/(?:https?:\/\/)?(?:www\.)?(?:rutube\.ru)\/(?:video)?\/?(.+)/g,url_text:"https://rutube.ru/play/embed/$1",html:'',provider:"rutube"},{test_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&/]+)\/?(?:[^_.&]+)?/,url_regex:/^(?:.+)vidyard.com\/(?:watch)?\/?([^.&/]+)\/?(?:[^_.&]+)?/g,url_text:"https://play.vidyard.com/$1",html:'',provider:"vidyard"}],e.VIDEO_EMBED_REGEX=/^\W*(((\s|\n)*<\/iframe>)|())\W*$/i,e.PLUGINS.video=function(t){var n,r,a,o,i,s,l=t.$,c="https://i.froala.com/upload",d=2,f=3,p=4,u=5,h=6,g={};function m(){var e=t.popups.get("video.insert");e.find(".fr-video-by-url-layer input").val("").trigger("change");var n=e.find(".fr-video-embed-layer textarea");n.val("").trigger("change"),(n=e.find(".fr-video-upload-layer input")).val("").trigger("change")}function v(){var e=t.popups.get("video.edit");if(e||(e=function(){var e="";if(0 \n '.concat(t.button.buildList(t.opts.videoEditButtons)," \n ")},r=t.popups.create("video.edit",n);return t.events.$on(t.$wp,"scroll.video-edit",(function(){o&&t.popups.isVisible("video.edit")&&(t.events.disableBlur(),R(o))})),r}return!1}()),e){t.popups.setContainer("video.edit",t.$sc),t.popups.refresh("video.edit");var n=o.find("iframe, embed, video"),r=n.offset().left+n.outerWidth()/2,a=n.offset().top+n.outerHeight();t.popups.show("video.edit",r,a,n.outerHeight(),!0)}}function b(e){if(e)return t.popups.onRefresh("video.insert",m),t.popups.onHide("video.insert",j),!0;var n="";t.opts.videoUpload||-1===t.opts.videoInsertButtons.indexOf("videoUpload")||t.opts.videoInsertButtons.splice(t.opts.videoInsertButtons.indexOf("videoUpload"),1);var r=t.button.buildList(t.opts.videoInsertButtons);""!==r&&(n='
    '+r+"
    ");var a,o="",i=t.opts.videoInsertButtons.indexOf("videoUpload"),s=t.opts.videoInsertButtons.indexOf("videoByURL"),c=t.opts.videoInsertButtons.indexOf("videoEmbed");0<=s&&(a=" fr-active",(i
    "));var d="";0<=c&&(a=" fr-active",(i
    "));var f="";0<=i&&(a=" fr-active",(c').concat(t.language.translate("Drop video"),"
    (").concat(t.language.translate("or click"),')
    '));var p={buttons:n,by_url_layer:o,embed_layer:d,upload_layer:f,progress_bar:'

    Uploading

    '},u=t.popups.create("video.insert",p);return function(e){t.events.$on(e,"dragover dragenter",".fr-video-upload-layer",(function(){return l(this).addClass("fr-drop"),!1}),!0),t.events.$on(e,"dragleave dragend",".fr-video-upload-layer",(function(){return l(this).removeClass("fr-drop"),!1}),!0),t.events.$on(e,"drop",".fr-video-upload-layer",(function(n){n.preventDefault(),n.stopPropagation(),l(this).removeClass("fr-drop");var r=n.originalEvent.dataTransfer;if(r&&r.files){var a=e.data("instance")||t;a.events.disableBlur(),a.video.upload(r.files),a.events.enableBlur()}}),!0),t.helpers.isIOS()&&t.events.$on(e,"touchstart",'.fr-video-upload-layer input[type="file"]',(function(){l(this).trigger("click")}),!0),t.events.$on(e,"change",'.fr-video-upload-layer input[type="file"]',(function(){if(this.files){var n=e.data("instance")||t;n.events.disableBlur(),e.find("input:focus").blur(),n.events.enableBlur(),n.video.upload(this.files)}l(this).val("")}),!0)}(u),u}function E(e){t.events.focus(!0),t.selection.restore();var n=!1;o&&(q(),n=!0),t.html.insert(''.concat(e,""),!1,t.opts.videoSplitHTML),t.popups.hide("video.insert");var r=t.$el.find(".fr-jiv");r.removeClass("fr-jiv"),r.toggleClass("fr-rv",t.opts.videoResponsive),Z(r,t.opts.videoDefaultDisplay,t.opts.videoDefaultAlign),r.toggleClass("fr-draggable",t.opts.videoMove),t.events.trigger(n?"video.replaced":"video.inserted",[r])}function A(){var e=l(this);t.popups.hide("video.insert"),e.removeClass("fr-uploading"),e.parent().next().is("br")&&e.parent().next().remove(),R(e.parent()),t.events.trigger("video.loaded",[e.parent()])}function T(e,n,r,a,o){t.edit.off(),y("Loading video"),n&&(e=t.helpers.sanitizeURL(e));C("Loading video"),function(){var n,i;if(a){t.undo.canDo()||a.find("video").hasClass("fr-uploading")||t.undo.saveStep();var s=a.find("video").data("fr-old-src"),c=a.data("fr-replaced");a.data("fr-replaced",!1),t.$wp?((n=a.clone(!0)).find("video").removeData("fr-old-src").removeClass("fr-uploading"),n.find("video").off("canplay"),s&&a.find("video").attr("src",s),a.replaceWith(n)):n=a;for(var d=n.find("video").get(0).attributes,f=0;f"+t.language.translate("Your browser does not support HTML5 video.")+"");s.toggleClass("fr-draggable",t.opts.videoMove),t.edit.on(),t.events.focus(!0),t.selection.restore(),t.undo.saveStep(),t.opts.videoSplitHTML?t.markers.split():t.markers.insert(),t.html.wrap();var c=t.$el.find(".fr-marker");return t.node.isLastSibling(c)&&c.parent().hasClass("fr-deletable")&&c.insertAfter(c.parent()),c.replaceWith(s),t.selection.clear(),s.find("video").get(0).readyState>s.find("video").get(0).HAVE_FUTURE_DATA||t.helpers.isIOS()?r.call(s.find("video").get(0)):s.find("video").on("canplaythrough load",r),s}(e,r,A),B(),t.undo.saveStep(),t.events.trigger("video.inserted",[n,o])}()}function C(e){var n=t.popups.get("video.insert");if(n||(n=b()),n.find(".fr-layer.fr-active").removeClass("fr-active").addClass("fr-pactive"),n.find(".fr-video-progress-bar-layer").addClass("fr-active"),n.find(".fr-buttons").hide(),o){var r=o.find("video");t.popups.setContainer("video.insert",t.$sc);var a=r.offset().left,i=r.offset().top+r.height();t.popups.show("video.insert",a,i,r.outerHeight())}void 0===e&&y(t.language.translate("Uploading"),0)}function S(e){var n=t.popups.get("video.insert");if(n&&(n.find(".fr-layer.fr-pactive").addClass("fr-active").removeClass("fr-pactive"),n.find(".fr-video-progress-bar-layer").removeClass("fr-active"),n.find(".fr-buttons").show(),e||t.$el.find("video.fr-error").length)){if(t.events.focus(),t.$el.find("video.fr-error").length&&(t.$el.find("video.fr-error").parent().remove(),t.undo.saveStep(),t.undo.run(),t.undo.dropRedo()),!t.$wp&&o){var r=o;P(!0),t.selection.setAfter(r.find("video").get(0)),t.selection.restore()}t.popups.hide("video.insert")}}function y(e,n){var r=t.popups.get("video.insert");if(r){var a=r.find(".fr-video-progress-bar-layer");a.find("h3").text(e+(n?" ".concat(n,"%"):"")),a.removeClass("fr-error"),n?(a.find("div").removeClass("fr-indeterminate"),a.find("div > span").css("width","".concat(n,"%"))):a.find("div").addClass("fr-indeterminate")}}function L(e){C();var n=t.popups.get("video.insert").find(".fr-video-progress-bar-layer");n.addClass("fr-error");var r=n.find("h3");r.text(e),t.events.disableBlur(),r.focus()}function R(e){H.call(e.get(0))}function N(e){y("Loading video");var n=this.status,r=this.response,a=this.responseXML,o=this.responseText;try{if(t.opts.videoUploadToS3)if(201==n){var i=function(e){try{var n=l(e).find("Location").text(),r=l(e).find("Key").text();return!1===t.events.trigger("video.uploadedToS3",[n,r,e],!0)?(t.edit.on(),!1):n}catch(t){return F(p,e),!1}}(a);i&&T(i,!1,[],e,r||a)}else F(p,r||a);else if(200<=n&&n<300){var s=function(e){try{if(!1===t.events.trigger("video.uploaded",[e],!0))return t.edit.on(),!1;var n=JSON.parse(e);return n.link?n:(F(d,e),!1)}catch(t){return F(p,e),!1}}(o);s&&T(s.link,!1,s,e,r||o)}else F(f,r||o)}catch(e){F(p,r||o)}}function O(){F(p,this.response||this.responseText||this.responseXML)}function w(e){if(e.lengthComputable){var n=e.loaded/e.total*100|0;y(t.language.translate("Uploading"),n)}}function x(){t.edit.on(),S(!0)}function I(e){if(!t.core.sameInstance(a))return!0;e.preventDefault(),e.stopPropagation();var o=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null),i=e.pageY||(e.originalEvent.touches?e.originalEvent.touches[0].pageY:null);if(!o||!i)return!1;if("mousedown"==e.type){var s=t.$oel.get(0).ownerDocument,c=s.defaultView||s.parentWindow,d=!1;try{d=c.location!=c.parent.location&&!(c.$&&c.$.FE)}catch(e){}d&&c.frameElement&&(o+=t.helpers.getPX(l(c.frameElement).offset().left)+c.frameElement.clientLeft,i=e.clientY+t.helpers.getPX(l(c.frameElement).offset().top)+c.frameElement.clientTop)}t.undo.canDo()||t.undo.saveStep(),(r=l(this)).data("start-x",o),r.data("start-y",i),n.show(),t.popups.hideAll(),W()}function M(e){if(!t.core.sameInstance(a))return!0;if(r){e.preventDefault();var n=e.pageX||(e.originalEvent.touches?e.originalEvent.touches[0].pageX:null),i=e.pageY||(e.originalEvent.touches?e.originalEvent.touches[0].pageY:null);if(!n||!i)return!1;var s=r.data("start-x"),l=r.data("start-y");r.data("start-x",n),r.data("start-y",i);var c=n-s,d=i-l,f=o.find("iframe, embed, video"),p=f.width(),u=f.height();(r.hasClass("fr-hnw")||r.hasClass("fr-hsw"))&&(c=0-c),(r.hasClass("fr-hnw")||r.hasClass("fr-hne"))&&(d=0-d),f.css("width",p+c),f.css("height",u+d),f.removeAttr("width"),f.removeAttr("height"),_()}}function D(e){if(!t.core.sameInstance(a))return!0;r&&o&&(e&&e.stopPropagation(),r=null,n.hide(),_(),v(),t.undo.saveStep())}function k(e){return'
    ')}function $(e,t,n,r){return e.pageX=t,e.pageY=t,I.call(this,e),e.pageX=e.pageX+n*Math.floor(Math.pow(1.1,r)),e.pageY=e.pageY+n*Math.floor(Math.pow(1.1,r)),M.call(this,e),D.call(this,e),++r}function B(){var e,n=Array.prototype.slice.call(t.el.querySelectorAll("video, .fr-video > *")),r=[];for(e=0;et.opts.videoMaxSize)return F(u),!1;if(t.opts.videoAllowedTypes.indexOf(r.type.replace(/video\//g,""))<0)return F(h),!1;if(t.drag_support.formdata&&(n=t.drag_support.formdata?new FormData:null),n){var a;if(!1!==t.opts.videoUploadToS3)for(a in n.append("key",t.opts.videoUploadToS3.keyStart+(new Date).getTime()+"-"+(r.name||"untitled")),n.append("success_action_status","201"),n.append("X-Requested-With","xhr"),n.append("Content-Type",r.type),t.opts.videoUploadToS3.params)t.opts.videoUploadToS3.params.hasOwnProperty(a)&&n.append(a,t.opts.videoUploadToS3.params[a]);for(a in t.opts.videoUploadParams)t.opts.videoUploadParams.hasOwnProperty(a)&&n.append(a,t.opts.videoUploadParams[a]);n.append(t.opts.videoUploadParam,r);var i=t.opts.videoUploadURL;t.opts.videoUploadToS3&&(i=t.opts.videoUploadToS3.uploadURL?t.opts.videoUploadToS3.uploadURL:"https://".concat(t.opts.videoUploadToS3.region,".amazonaws.com/").concat(t.opts.videoUploadToS3.bucket));var s=t.core.getXHR(i,t.opts.videoUploadMethod);s.onload=function(){N.call(s,o)},s.onerror=O,s.upload.onprogress=w,s.onabort=x,C(),t.events.disableBlur(),t.edit.off(),t.events.enableBlur();var d=t.popups.get("video.insert");d&&l(d.off("abortUpload")).on("abortUpload",(function(){4!=s.readyState&&s.abort()})),s.send(n)}}}function F(e,n){t.edit.on(),o&&o.find("video").addClass("fr-error"),L(t.language.translate("Something went wrong. Please try again.")),t.events.trigger("video.error",[{code:e,message:g[e]},n])}function z(){if(o){var e=t.popups.get("video.size"),n=o.find("iframe, embed, video");e.find('input[name="width"]').val(n.get(0).style.width||n.attr("width")).trigger("change"),e.find('input[name="height"]').val(n.get(0).style.height||n.attr("height")).trigger("change")}}function Y(e){if(e)return t.popups.onRefresh("video.size",z),!0;var n={buttons:'
    '.concat(t.button.buildList(t.opts.videoSizeButtons),"
    "),size_layer:'
    ")},r=t.popups.create("video.size",n);return t.events.$on(t.$wp,"scroll",(function(){o&&t.popups.isVisible("video.size")&&(t.events.disableBlur(),R(o))})),r}function G(e){if(void 0===e&&(e=o),e){if(e.hasClass("fr-fvl"))return"left";if(e.hasClass("fr-fvr"))return"right";if(e.hasClass("fr-dvb")||e.hasClass("fr-dvi"))return"center";if("block"==e.css("display")){if("left"==e.css("text-algin"))return"left";if("right"==e.css("text-align"))return"right"}else{if("left"==e.css("float"))return"left";if("right"==e.css("float"))return"right"}}return"center"}function X(e){void 0===e&&(e=o);var t=e.css("float");return e.css("float","none"),"block"==e.css("display")?(e.css("float",""),e.css("float")!=t&&e.css("float",t),"block"):(e.css("float",""),e.css("float")!=t&&e.css("float",t),"inline")}function q(){if(o&&!1!==t.events.trigger("video.beforeRemove",[o])){var e=o;t.popups.hideAll(),P(!0),t.selection.setBefore(e.get(0))||t.selection.setAfter(e.get(0)),e.remove(),t.selection.restore(),t.html.fillEmptyBlocks()}}function j(){S()}function Z(e,n,r){!t.opts.htmlUntouched&&t.opts.useClasses?(e.removeClass("fr-fvl fr-fvr fr-dvb fr-dvi"),e.addClass("fr-fv".concat(r[0]," fr-dv").concat(n[0]))):"inline"==n?(e.css({display:"inline-block"}),"center"==r?e.css({float:"none"}):"left"==r?e.css({float:"left"}):e.css({float:"right"})):(e.css({display:"block",clear:"both"}),"left"==r?e.css({textAlign:"left"}):"right"==r?e.css({textAlign:"right"}):e.css({textAlign:"center"}))}function Q(){var n=t.$el.find("video").filter((function(){return 0===l(this).parents("span.fr-video").length}));if(0!=n.length){n.wrap(l(document.createElement("span")).attr("class","fr-video fr-deletable").attr("contenteditable","false")),t.$el.find("embed, iframe").filter((function(){if(t.browser.safari&&this.getAttribute("src")&&this.setAttribute("src",this.src),0*").first().replaceWith(t.icon.create("video-align-".concat(G())))},refreshAlignOnShow:function(e,t){o&&t.find('.fr-command[data-param1="'.concat(G(),'"]')).addClass("fr-active").attr("aria-selected",!0)},display:function(e){o.removeClass("fr-dvi fr-dvb"),!t.opts.htmlUntouched&&t.opts.useClasses?"inline"==e?o.addClass("fr-dvi"):"block"==e&&o.addClass("fr-dvb"):Z(o,e,G()),J(),_(),v(),t.selection.clear()},refreshDisplayOnShow:function(e,t){o&&t.find('.fr-command[data-param1="'.concat(X(),'"]')).addClass("fr-active").attr("aria-selected",!0)},remove:q,hideProgressBar:S,showSizePopup:function(){var e=t.popups.get("video.size");e||(e=Y()),S(),t.popups.refresh("video.size"),t.popups.setContainer("video.size",t.$sc);var n=o.find("iframe, embed, video"),r=n.offset().left+n.outerWidth()/2,a=n.offset().top+n.height();t.popups.show("video.size",r,a,n.height(),!0)},replace:function(){var e=t.popups.get("video.insert");e||(e=b()),t.popups.isVisible("video.insert")||(S(),t.popups.refresh("video.insert"),t.popups.setContainer("video.insert",t.$sc));var n=o.offset().left+o.outerWidth()/2,r=o.offset().top+o.height();t.popups.show("video.insert",n,r,o.outerHeight(),!0)},back:function(){o?(t.events.disableBlur(),o[0].click()):(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur(),t.popups.hide("video.insert"),t.toolbar.showInline())},setSize:function(e,n){if(o){var r=t.popups.get("video.size"),a=o.find("iframe, embed, video");a.css("width",e||r.find('input[name="width"]').val()),a.css("height",n||r.find('input[name="height"]').val()),a.get(0).style.width&&a.removeAttr("width"),a.get(0).style.height&&a.removeAttr("height"),r.find("input:focus").blur(),setTimeout((function(){o.trigger("click")}),t.helpers.isAndroid()?50:0)}},get:function(){return o},showProgressBar:C}},e.RegisterCommand("insertVideo",{title:"Insert Video",undo:!1,focus:!0,refreshAfterCallback:!1,popup:!0,callback:function(){this.popups.isVisible("video.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("video.insert")):this.video.showInsertPopup()},plugin:"video"}),e.DefineIcon("insertVideo",{NAME:"video-camera",FA5NAME:"camera",SVG_KEY:"insertVideo"}),e.DefineIcon("videoByURL",{NAME:"link",SVG_KEY:"insertLink"}),e.RegisterCommand("videoByURL",{title:"By URL",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-by-url")},refresh:function(e){this.video.refreshByURLButton(e)}}),e.DefineIcon("videoEmbed",{NAME:"code",SVG_KEY:"codeView"}),e.RegisterCommand("videoEmbed",{title:"Embedded Code",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-embed")},refresh:function(e){this.video.refreshEmbedButton(e)}}),e.DefineIcon("videoUpload",{NAME:"upload",SVG_KEY:"upload"}),e.RegisterCommand("videoUpload",{title:"Upload Video",undo:!1,focus:!1,toggle:!0,callback:function(){this.video.showLayer("video-upload")},refresh:function(e){this.video.refreshUploadButton(e)}}),e.RegisterCommand("videoInsertByURL",{undo:!0,focus:!0,callback:function(){this.video.insertByURL()}}),e.RegisterCommand("videoInsertEmbed",{undo:!0,focus:!0,callback:function(){this.video.insertEmbed()}}),e.DefineIcon("videoDisplay",{NAME:"star",SVG_KEY:"star"}),e.RegisterCommand("videoDisplay",{title:"Display",type:"dropdown",options:{inline:"Inline",block:"Break Text"},callback:function(e,t){this.video.display(t)},refresh:function(e){this.opts.videoTextNear||e.addClass("fr-hidden")},refreshOnShow:function(e,t){this.video.refreshDisplayOnShow(e,t)}}),e.DefineIcon("video-align",{NAME:"align-left",SVG_KEY:"align Left"}),e.DefineIcon("video-align-left",{NAME:"align-left",SVG_KEY:"alignLeft"}),e.DefineIcon("video-align-right",{NAME:"align-right",SVG_KEY:"alignRight"}),e.DefineIcon("video-align-center",{NAME:"align-justify",SVG_KEY:"alignJustify"}),e.DefineIcon("videoAlign",{NAME:"align-center",SVG_KEY:"alignCenter"}),e.RegisterCommand("videoAlign",{type:"dropdown",title:"Align",options:{left:"Align Left",center:"None",right:"Align Right"},html:function(){var t='"},callback:function(e,t){this.video.align(t)},refresh:function(e){this.video.refreshAlign(e)},refreshOnShow:function(e,t){this.video.refreshAlignOnShow(e,t)}}),e.DefineIcon("videoReplace",{NAME:"exchange",FA5NAME:"exchange-alt",SVG_KEY:"replaceImage"}),e.RegisterCommand("videoReplace",{title:"Replace",undo:!1,focus:!1,popup:!0,refreshAfterCallback:!1,callback:function(){this.video.replace()}}),e.DefineIcon("videoRemove",{NAME:"trash",SVG_KEY:"remove"}),e.RegisterCommand("videoRemove",{title:"Remove",callback:function(){this.video.remove()}}),e.DefineIcon("videoSize",{NAME:"arrows-alt",SVG_KEY:"imageSize"}),e.RegisterCommand("videoSize",{undo:!1,focus:!1,popup:!0,title:"Change Size",callback:function(){this.video.showSizePopup()}}),e.DefineIcon("videoBack",{NAME:"arrow-left",SVG_KEY:"back"}),e.RegisterCommand("videoBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.video.back()},refresh:function(e){this.video.get()||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.RegisterCommand("videoDismissError",{title:"OK",undo:!1,callback:function(){this.video.hideProgressBar(!0)}}),e.RegisterCommand("videoSetSize",{undo:!0,focus:!1,title:"Update",refreshAfterCallback:!1,callback:function(){this.video.setSize()}})}(n(80214))},26851:function(e,t,n){!function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,Object.assign(e.DEFAULTS,{wordDeniedTags:[],wordDeniedAttrs:[],wordAllowedStyleProps:["font-family","font-size","background","color","width","text-align","vertical-align","background-color","padding","margin","height","margin-top","margin-left","margin-right","margin-bottom","text-decoration","font-weight","font-style","text-indent","border","border-.*","line-height","list-style-type"],wordPasteModal:!0,wordPasteKeepFormatting:!0}),e.PLUGINS.wordPaste=function(t){var n,r,a=t.$,o="word_paste",i={};function s(e){var n=t.opts.wordAllowedStyleProps;e||(t.opts.wordAllowedStyleProps=[]),0===r.indexOf("")&&(r=""+r+"
    "),r=T(r=r.replace(/([\r\n\u00a0 ]*)<\/span>/g,(function(e,t){for(var n="",r=0;r++/gi,"")}function u(e,t){for(var n=document.createElement(t),r=0;r').remove()}}}}function A(n,r){var a=n.tagName,o=a.toLowerCase();if(n.firstElementChild&&("I"===n.firstElementChild.tagName?u(n.firstElementChild,"em"):"B"===n.firstElementChild.tagName&&u(n.firstElementChild,"strong")),-1!==["SCRIPT","APPLET","EMBED","NOFRAMES","NOSCRIPT"].indexOf(a))return l(n),!1;for(var i=["META","LINK","XML","ST1:","O:","W:","FONT"],s=0;s");for(var c=a.firstElementChild,f=1===a.children.length;c;)"P"!==c.tagName||d(c)||f&&h(c),c=c.nextElementSibling;if(r){var p=a.getAttribute("class");if(p){var u=(p=g(p)).match(/xl[0-9]+/gi);if(u){var v="."+u[0];r[v]&&m(a,r[v])}}r.td&&m(a,r.td)}var b=a.getAttribute("style");b&&(b=g(b))&&";"!==b.slice(-1)&&(b+=";");var E=a.getAttribute("valign");if(!E&&b){var A=b.match(/vertical-align:.+?[; "]{1,1}/gi);A&&(E=A[A.length-1].replace(/vertical-align:(.+?)[; "]{1,1}/gi,"$1"))}var T=null;if(b){var C=b.match(/text-align:.+?[; "]{1,1}/gi);C&&(T=C[C.length-1].replace(/text-align:(.+?)[; "]{1,1}/gi,"$1")),"general"===T&&(T=null)}var S=null;if(b){var y=b.match(/background:.+?[; "]{1,1}/gi);y&&(S=y[y.length-1].replace(/background:(.+?)[; "]{1,1}/gi,"$1"))}var L=a.getAttribute("colspan"),R=a.getAttribute("rowspan");L&&a.setAttribute("colspan",L),R&&a.setAttribute("rowspan",R),E&&(a.style["vertical-align"]=E),T&&(a.style["text-align"]=T),S&&(a.style["background-color"]=S),s&&a.setAttribute("width",s),a=a.nextElementSibling}for(a=n.firstElementChild;a;)s=a.getAttribute("width"),i?a.removeAttribute("width"):a.setAttribute("width",100*parseInt(s,10)/o+"%"),a=a.nextElementSibling}(n,r),"A"!==a||n.attributes.getNamedItem("href")||n.attributes.getNamedItem("name")||!n.innerHTML||(n.outerHTML=n.innerHTML),"A"==a&&n.getAttribute("href")&&n.querySelector("img"))for(var y=n.querySelectorAll("span"),L=0;L"),"TABLE"===a&&(n.style.width=n.style.width),n.getAttribute("lang")&&n.removeAttribute("lang"),n.getAttribute("style")&&-1!==n.getAttribute("style").toLowerCase().indexOf("mso")){var R=g(n.getAttribute("style"));(R=R.replace(/[0-9a-z-_]*mso[0-9a-z-_]*:.+?(;{1,1}|$)/gi,""))?n.setAttribute("style",R):n.removeAttribute("style")}return!0}function T(n,r){0<=n.indexOf("]*(]*>[.\s\S\w\W<>]*<\/html>)[.\s\S\w\W<>]*/i,"$1")),function(e){for(var t=e.split("v:shape"),n=1;n ul, ul > ol, ol > ul, ol > ol"),v=m.length-1;0<=v;v--)m[v].previousElementSibling&&"LI"===m[v].previousElementSibling.tagName&&m[v].previousElementSibling.appendChild(m[v]);c(s,(function(e){if(e.nodeType===Node.TEXT_NODE)return e.data=e.data.replace(/
    (\n|\r)/gi,"
    "),!1;if(e.nodeType===Node.ELEMENT_NODE){if(d(e)){var t,n=e.parentNode,r=e.previousSibling,a=function e(t,n,r,a){var o,i,s=/[0-9a-zA-Z]./gi,l=!1,c=navigator.userAgent.toLowerCase();-1!=c.indexOf("safari")&&(c=-1':"<"+g+' style="margin-left:'+S+T+';">',"list-style-type: upper-alpha;"==m){var y=v.charCodeAt(0)-64;E=m?"<"+g+A+' start="'+y+'" style = "'+m+" margin-left:"+S+T+';">':"<"+g+">"}else if("list-style-type: lower-alpha;"==m){var L=v.charCodeAt(0)-96;E=m?"<"+g+A+' start="'+L+'" style = "'+m+"margin-left:"+S+T+';">':"<"+g+">"}else E=m?"<"+g+A+' style = "'+m+";margin-left:"+S+T+';">':"<"+g+' style="margin-left:'+S+T+';">';else if("list-style-type: upper-alpha;"==m){var R=v.charCodeAt(0)-64;E=m?"<"+g+A+' style = "'+m+' start="'+R+'">':"<"+g+">"}else if("list-style-type: lower-alpha;"==m){var N=v.charCodeAt(0)-96;E=m?"<"+g+A+' style = "'+m+' start="'+N+'">':"<"+g+">"}else E=m?"<"+g+A+' style = "'+m+'">':"<"+g+">";for(var O=!1;t;){if(!d(t)){if(t.outerHTML&&0"):(1==w&&(E+="",O=!0,i=null),E+=(h=e(t,n,w,t.style.marginLeft)).el.outerHTML,t=h.currentNode);var I=t&&t.nextElementSibling;if(I&&(i=I.previousElementSibling),t&&!d(t)){if(t.outerHTML&&0");var M=document.createElement("div");return M.innerHTML=E,{el:M,currentNode:t}}(e,h).el;return(t=r?r.nextSibling:n.firstChild)?n.insertBefore(a,t):n.appendChild(a),!1}return"FONT"===e.tagName&&h["."+e.getAttribute("class")]&&(e=u(e,"span")),A(e,h)}if(e.nodeType!==Node.COMMENT_NODE)return!0;if(-1",r=function(){var e='
    ';return e+='

    '+t.language.translate("The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?")+"

    ",(e+='
    ")+"
    "}(),i=t.modals.create(o,e,r),s=i.$body;n=i.$modal,i.$modal.addClass("fr-middle"),t.events.bindClick(s,"button.fr-remove-word",(function(){(n.data("instance")||t).wordPaste.clean()})),t.events.bindClick(s,"button.fr-keep-word",(function(){(n.data("instance")||t).wordPaste.clean(!0)})),t.events.$on(a(t.o_win),"resize",(function(){t.modals.resize(o)}))}t.modals.show(o),t.modals.resize(o)}():s(t.opts.wordPasteKeepFormatting),!1}))},clean:s,_wordClean:T}}}(n(80214))}}]);