!function(){"use strict";varc=function(e){vart=e,n=function(){returnt};return{get:n,set:function(e){t=e},clone:function(){returnc(n())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(e){return!(!/(^|[ ,])tinymcespellchecker([, ]|$)/.test(e.settings.plugins)||!t.get("tinymcespellchecker")||("undefined"!=typeofwindow.console&&window.console.log&&window.console.log("Spell Checker Pro is incompatible with Spell Checker plugin! Remove 'spellchecker' from the 'plugins' option."),0))},g=function(e){returne.getParam("spellchecker_languages","English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr_FR,German=de,Italian=it,Polish=pl,Portuguese=pt_BR,Spanish=es,Swedish=sv")},l=function(e){vart=e.getParam("language","en");returne.getParam("spellchecker_language",t)},d=function(e){returne.getParam("spellchecker_rpc_url")},f=function(e){returne.getParam("spellchecker_callback")},s=function(e){vart=newRegExp('[^\\s!"#$%&()*+,-./:;<=>?@[\\]^_{|}`\xa7\xa9\xab\xae\xb1\xb6\xb7\xb8\xbb\xbc\xbd\xbe\xbf\xd7\xf7\xa4\u201d\u201c\u201e\xa0\u2002\u2003\u2009]+',"g");returne.getParam("spellchecker_wordchar_pattern",t)},h=tinymce.util.Tools.resolve("tinymce.util.Tools"),m=tinymce.util.Tools.resolve("tinymce.util.URI"),p=tinymce.util.Tools.resolve("tinymce.util.XHR"),u=function(e){returne.fire("SpellcheckStart")},o=function(e){returne.fire("SpellcheckEnd")};functionx(e){returne&&1===e.nodeType&&"false"===e.contentEditable}varv,r=function(c,r){varn,o,f,g,h,i=[],v=r.dom;functiona(e,t){if(!e[0])thrownewError("findAndReplaceDOMText cannot handle zero-length matches");return{start:e.index,end:e.index+e[0].length,text:e[0],data:t}}functionl(e){vart=c.getElementsByTagName("*"),n=[];e="number"==typeofe?""+e:null;for(varr=0;r<t.length;r++){varo=t[r],i=o.getAttribute("data-mce-index");null!==i&&i.length&&-1!==o.className.indexOf("mce-spellchecker-word")&&(i!==e&&null!==e||n.push(o))}returnn}functions(e){for(vart=i.length;t--;)if(i[t]===e)returnt;return-1}functiont(e){for(vart=0,n=i.length;t<n&&!1!==e(i[t],t);t++);returnthis}functionu(e){vart,n,r=l(e?s(e):null);for(t=r.length;t--;)(n=r[t]).parentNode.insertBefore(n.firstChild,n),n.parentNode.removeChild(n);returnthis}functiond(e){vart=l(s(e)),n=r.dom.createRng();returnn.setStartBefore(t[0]),n.setEndAfter(t[t.length-1]),n}returnf=r.schema.getBlockElements(),g=r.schema.getWhiteSpaceElements(),h=r.schema.getShortEndedElements(),{text:o=functione(t){varn;if(3===t.nodeType)returnt.data;if(g[t.nodeName]&&!f[t.nodeName])return"";if(x(t))return"\n";if(n="",(f[t.nodeName]||h[t.nodeName])&&(n+="\n"),t=t.firstChild)for(;n+=e(t),t=t.nextSibling;);returnn}(c),matches:i,each:t,filter:function(n){varr=[];returnt(function(e,t){n(e,t)&&r.push(e)}),i=r,this},reset:function(){returni.splice(0,i.length),u(),this},matchFromElement:function(e){returni[e.getAttribute("data-mce-index")]},elementFromMatch:function(e){returnl(s(e))[0]},find:function(e,t){if(o&&e.global)for(;n=e.exec(o);)i.push(a(n,t));returnthis},add:function(e,t,n){returni.push({start:e,end:e+t,text:o.substr(e,t),data:n}),this},wrap:function(e){returni.length&&function(e,t,n){varr,o,i,c,a,l=[],s=0,u=e,d=0;(t=t.slice(0)).sort(function(e,t){returne.start-t.start}),a=t.shift();e:for(;;){if((f[u.nodeName]||h[u.nodeName]||x(u))&&s++,3===u.nodeType&&(!o&&u.length+s>=a.end?(o=u,c=a.end-s):r&&l.push(u),!r&&u.length+s>a.start&&(r=u,i=a.start-s),s+=u.length),r&&o){if(u=n({startNode:r,startNodeIndex:i,endNode:o,endNodeIndex:c,innerNodes:l,match:a.text,matchIndex:d}),s-=o.length-c,o=r=null,l=[],d++,!(a=t.shift()))break}elseif(g[u.nodeName]&&!f[u.nodeName]||!u.firstChild){if(u.nextSibling){u=u.nextSibling;continue}}elseif(!x(u)){u=u.firstChild;continue}for(;;){if(u.nextSibling){u=u.nextSibling;break}if(u.parentNode===e)breake;u=u.parentNode}}}(c,i,function(o){functionp(e,t){varn=i[t];n.stencil||(n.stencil=o(n));varr=n.stencil.cloneNode(!1);returnr.setAttribute("data-mce-index",t),e&&r.appendChild(v.doc.createTextNode(e)),r}returnfunction(e){vart,n,r,o=e.startNode,i=e.endNode,c=e.matchIndex,a=v.doc;if(o=