!function(e,t){"use strict";functionn(e,t){for(varn,r=[],o=0;o<e.length;++o){if(n=c[e[o]]||i(e[o]),!n)throw"module definition dependecy not found: "+e[o];r.push(n)}t.apply(null,r)}functionr(e,r,o){if("string"!=typeofe)throw"invalid module definition, module id must be defined and be a string";if(r===t)throw"invalid module definition, dependencies must be specified";if(o===t)throw"invalid module definition, definition function must be specified";n(r,function(){c[e]=o.apply(null,arguments)})}functiono(e){return!!c[e]}functioni(t){for(varn=e,r=t.split(/[.\/]/),o=0;o<r.length;++o){if(!n[r[o]])return;n=n[r[o]]}returnn}functiona(n){for(varr=0;r<n.length;r++){for(varo=e,i=n[r],a=i.split(/[.\/]/),l=0;l<a.length-1;++l)o[a[l]]===t&&(o[a[l]]={}),o=o[a[l]];o[a[a.length-1]]=c[i]}}varc={},l="tinymce/spellcheckerplugin/DomTextMatcher",s="tinymce/spellcheckerplugin/Plugin",d="tinymce/PluginManager",u="tinymce/util/Tools",f="tinymce/ui/Menu",h="tinymce/dom/DOMUtils",g="tinymce/util/XHR",m="tinymce/util/URI",p="tinymce/util/JSON";r(l,[],function(){returnfunction(e,t){functionn(e,t){if(!e[0])throw"findAndReplaceDOMText cannot handle zero-length matches";return{start:e.index,end:e.index+e[0].length,text:e[0],data:t}}functionr(e){vart;if(3===e.nodeType)returne.data;if(T[e.nodeName]&&!S[e.nodeName])return"";if(t="",(S[e.nodeName]||B[e.nodeName])&&(t+="\n"),e=e.firstChild)dot+=r(e);while(e=e.nextSibling);returnt}functiono(e,t,n){varr,o,i,a,c=[],l=0,s=e,d,u=0;t=t.slice(0),t.sort(function(e,t){returne.start-t.start}),d=t.shift();e:for(;;){if((S[s.nodeName]||B[s.nodeName])&&l++,3===s.nodeType&&(!o&&s.length+l>=d.end?(o=s,a=d.end-l):r&&c.push(s),!r&&s.length+l>d.start&&(r=s,i=d.start-l),l+=s.length),r&&o){if(s=n({startNode:r,startNodeIndex:i,endNode:o,endNodeIndex:a,innerNodes:c,match:d.text,matchIndex:u}),l-=o.length-a,r=null,o=null,c=[],d=t.shift(),u++,!d)break}else{if((!T[s.nodeName]||S[s.nodeName])&&s.firstChild){s=s.firstChild;continue}if(s.nextSibling){s=s.nextSibling;continue}}for(;;){if(s.nextSibling){s=s.nextSibling;break}if(s.parentNode===e)breake;s=s.parentNode}}}functioni(e){functiont(t,n){varr=w[n];r.stencil||(r.stencil=e(r));varo=r.stencil.cloneNode(!1);returno.setAttribute("data-mce-index",n),t&&o.appendChild(b.doc.createTextNode(t)),o}returnfunction(e){varn,r,o,i=e.startNode,a=e.endNode,c=e.matchIndex,l=b.doc;if(i===a){vars=i;o=s.parentNode,e.startNodeIndex>0&&(n=l.createTextNode(s.data.substring(0,e.startNodeIndex)),o.insertBefore(n,s));vard=t(e.match,c);returno.insertBefore(d,s),e.endNodeIndex<s.length&&(r=l.createTextNode(s.data.substring(e.endNodeIndex)),o.insertBefore(r,s)),s.parentNode.removeChild(s),d}n=l.createTextNode(i.data.substring(0,e.startNodeIndex)),r=l.createTextNode(a.data.substring(e.endNodeIndex));for(varu=t(i.data.substring(e.startNodeIndex),c),f=[],h=0,g=e.innerNodes.length;g>h;++h){varm=e.innerNodes[h],p=t(m.data,c);m.parentNode.replaceChild(p,m),f.push(p)}varv=t(a.data.substring(0,e.endNodeIndex),c);returno=i.parentNode,o.insertBefore(n,i),o.insertBefore(u,i),o.removeChild(i),o=a.parentNode,o.insertBefore(v,a),o.insertBefore(r,a),o.removeChild(a),v}}functiona(e){vart=e.parentNode;t.insertBefore(e.firstChild,e),e.parentNode.removeChild(e)}functionc(t){varn=e.getElementsByTagName("*"),r=[];t="number"==typeoft?""+t:null;for(varo=0;o<n.length;o++){vari=n[o],a=i.getAttribute("data-mce-index");null!==a&&a.length&&(a===t||null===t)&&r.push(i)}returnr}functionl(e){for(vart=w.length;t--;)if(w[t]===e)returnt;return-1}functions(e){vart=[];returnd(function(n,r){e(n,r)&&t.push(n)}),w=t,this}functiond(e){for(vart=0,n=w.length;n>t&&e(w[t],t)!==!1;t++);returnthis}functionu(t){returnw.length&&o(e,w,i(t)),this}functionf(e,t){if(y&&e.global)for(;k=e.exec(y);)w.push(n(k,t));returnthis}functionh(e){vart,n=c(e?l(e):null);for(t=n.length;t--;)a(n[t]);returnthis}functiong(e){returnw[e.getAttribute("data-mce-index")]}functionm(e){returnc(l(e))[0]}functionp(e,t,n){returnw.push({start:e,end:e+t,text:y.substr(e,t),data:n}),this}functionv(e){varn=c(l(e)),r=t.dom.createR