UNPKG

fastlion-amis

Version:

一种MIS页面生成工具

2 lines 1.47 MB
;/*!node_modules/tinymce/tinymce.js*/ amis.define("350375d",(function(e,t,n,r){!function(){"use strict";var e=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},t=function(e){return{eq:e}},r=t((function(e,t){return e===t})),o=function(e){return t((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e.eq(t[o],n[o]))return!1;return!0}))},i=function(e,n){return function(e,n){return t((function(t,r){return e.eq(n(t),n(r))}))}(o(e),(function(e){return function(e,t){return Array.prototype.slice.call(e).sort(t)}(e,n)}))},a=function(e){return t((function(t,n){var o=Object.keys(t),a=Object.keys(n);if(!i(r).eq(o,a))return!1;for(var u=o.length,c=0;c<u;c++){var s=o[c];if(!e.eq(t[s],n[s]))return!1}return!0}))},u=t((function(t,n){if(t===n)return!0;var r=e(t);return r===e(n)&&(function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)}(r)?t===n:"array"===r?o(u).eq(t,n):"object"===r&&a(u).eq(t,n))})),c=function(e){return function(t){return r=typeof(n=t),(null===n?"null":"object"===r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===e;var n,r}},s=function(e){return function(t){return typeof t===e}},f=function(e){return function(t){return e===t}},l=c("string"),d=c("object"),m=c("array"),g=f(null),p=s("boolean"),h=f(void 0),v=function(e){return null==e},b=function(e){return!v(e)},y=s("function"),C=s("number"),x=function(){},w=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},S=function(e,t){return function(n){return e(t(n))}},k=function(e){return function(){return e}},N=function(e){return e},E=function(e,t){return e===t};function _(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}var A=function(e){return function(t){return!e(t)}},R=function(e){return e()},D=function(e){e()},T=k(!1),O=k(!0),B=function(){return P},P=function(){var e=function(e){return e()},t=N;return{fold:function(e,t){return e()},isSome:T,isNone:O,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:k(null),getOrUndefined:k(void 0),or:t,orThunk:e,map:B,each:x,bind:B,exists:T,forall:O,filter:function(){return B()},toArray:function(){return[]},toString:k("none()")}}(),L=function(e){var t=k(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},isSome:O,isNone:T,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return L(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:P},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},I={some:L,none:B,from:function(e){return null==e?P:L(e)}},M=Array.prototype.slice,F=Array.prototype.indexOf,U=Array.prototype.push,z=function(e,t){return F.call(e,t)},H=function(e,t){return z(e,t)>-1},j=function(e,t){for(var n=0,r=e.length;n<r;n++){if(t(e[n],n))return!0}return!1},V=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},q=function(e,t){for(var n=0,r=e.length;n<r;n++){t(e[n],n)}},$=function(e,t){for(var n=e.length-1;n>=0;n--){t(e[n],n)}},W=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o];(t(a,o)?n:r).push(a)}return{pass:n,fail:r}},K=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},X=function(e,t,n){return $(e,(function(e,r){n=t(n,e,r)})),n},Y=function(e,t,n){return q(e,(function(e,r){n=t(n,e,r)})),n},G=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return I.some(i);if(n(i,r))break}return I.none()},J=function(e,t){return G(e,t,T)},Q=function(e,t){for(var n=0,r=e.length;n<r;n++){if(t(e[n],n))return I.some(n)}return I.none()},Z=function(e,t){return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!m(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);U.apply(t,e[n])}return t}(V(e,t))},ee=function(e,t){for(var n=0,r=e.length;n<r;++n){if(!0!==t(e[n],n))return!1}return!0},te=function(e){var t=M.call(e,0);return t.reverse(),t},ne=function(e,t){return K(e,(function(e){return!H(t,e)}))},re=function(e,t){var n=M.call(e,0);return n.sort(t),n},oe=function(e,t){return t>=0&&t<e.length?I.some(e[t]):I.none()},ie=function(e){return oe(e,0)},ae=function(e){return oe(e,e.length-1)},ue=y(Array.from)?Array.from:function(e){return M.call(e)},ce=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return I.none()},se=Object.keys,fe=Object.hasOwnProperty,le=function(e,t){for(var n=se(e),r=0,o=n.length;r<o;r++){var i=n[r];t(e[i],i)}},de=function(e,t){return me(e,(function(e,n){return{k:n,v:t(e,n)}}))},me=function(e,t){var n={};return le(e,(function(e,r){var o=t(e,r);n[o.k]=o.v})),n},ge=function(e){return function(t,n){e[n]=t}},pe=function(e,t,n,r){return le(e,(function(e,o){(t(e,o)?n:r)(e,o)})),{}},he=function(e,t){var n={};return pe(e,t,ge(n),x),n},ve=function(e){return function(e,t){var n=[];return le(e,(function(e,r){n.push(t(e,r))})),n}(e,N)},be=function(e,t){return ye(e,t)?I.from(e[t]):I.none()},ye=function(e,t){return fe.call(e,t)},Ce=function(e,t){return ye(e,t)&&void 0!==e[t]&&null!==e[t]},xe=Array.isArray,we=function(e,t,n){var r,o;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,o=e.length;r<o;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(ye(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0},Se=function(e,t){var n=[];return we(e,(function(r,o){n.push(t(r,o,e))})),n},ke=function(e,t){var n=[];return we(e,(function(r,o){t&&!t(r,o,e)||n.push(r)})),n},Ne=function(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Ee=function(e,t,n,r){for(var o=h(n)?e[0]:n,i=0;i<e.length;i++)o=t.call(r,o,e[i],i);return o},_e=function(e,t,n){var r,o;for(r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return r;return-1},Ae=function(e){return e[e.length-1]},Re=function(){return Re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Re.apply(this,arguments)};function De(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var Te=function(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}},Oe=function(){return Be(0,0)},Be=function(e,t){return{major:e,minor:t}},Pe={nu:Be,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?Oe():function(e,t){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}}(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Be(r(1),r(2))}(e,n)},unknown:Oe},Le=function(e,t){var n=String(t).toLowerCase();return J(e,(function(e){return e.search(n)}))},Ie=function(e,t){return-1!==e.indexOf(t)},Me=function(e,t){return function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t}(e,t,0)},Fe=function(e){return function(t){return t.replace(e,"")}},Ue=Fe(/^\s+|\s+$/g),ze=Fe(/^\s+/g),He=Fe(/\s+$/g),je=function(e){return e.length>0},Ve=function(e){return!je(e)},qe=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,$e=function(e){return function(t){return Ie(t,e)}},We=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Ie(e,"edge/")&&Ie(e,"chrome")&&Ie(e,"safari")&&Ie(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,qe],search:function(e){return Ie(e,"chrome")&&!Ie(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Ie(e,"msie")||Ie(e,"trident")}},{name:"Opera",versionRegexes:[qe,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:$e("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:$e("firefox")},{name:"Safari",versionRegexes:[qe,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Ie(e,"safari")||Ie(e,"mobile/"))&&Ie(e,"applewebkit")}}],Ke=[{name:"Windows",search:$e("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Ie(e,"iphone")||Ie(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:$e("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:$e("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:$e("linux"),versionRegexes:[]},{name:"Solaris",search:$e("sunos"),versionRegexes:[]},{name:"FreeBSD",search:$e("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:$e("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Xe={browsers:k(We),oses:k(Ke)},Ye="Edge",Ge="Chrome",Je="Opera",Qe="Firefox",Ze="Safari",et=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Ye),isChrome:r(Ge),isIE:r("IE"),isOpera:r(Je),isFirefox:r(Qe),isSafari:r(Ze)}},tt={unknown:function(){return et({current:void 0,version:Pe.unknown()})},nu:et,edge:k(Ye),chrome:k(Ge),ie:k("IE"),opera:k(Je),firefox:k(Qe),safari:k(Ze)},nt="Windows",rt="Android",ot="Linux",it="Solaris",at="FreeBSD",ut="ChromeOS",ct=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(nt),isiOS:r("iOS"),isAndroid:r(rt),isOSX:r("OSX"),isLinux:r(ot),isSolaris:r(it),isFreeBSD:r(at),isChromeOS:r(ut)}},st={unknown:function(){return ct({current:void 0,version:Pe.unknown()})},nu:ct,windows:k(nt),ios:k("iOS"),android:k(rt),linux:k(ot),osx:k("OSX"),solaris:k(it),freebsd:k(at),chromeos:k(ut)},ft=function(e,t,n){var r=Xe.browsers(),o=Xe.oses(),i=t.bind((function(e){return function(e,t){return ce(t.brands,(function(t){var n=t.brand.toLowerCase();return J(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:Pe.nu(parseInt(t.version,10),0)}}))}))}(r,e)})).orThunk((function(){return function(e,t){return Le(e,t).map((function(e){var n=Pe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))}(r,e)})).fold(tt.unknown,tt.nu),a=function(e,t){return Le(e,t).map((function(e){var n=Pe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))}(o,e).fold(st.unknown,st.nu),u=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),i=e.isiOS()&&!o,a=e.isiOS()||e.isAndroid(),u=a||r("(pointer:coarse)"),c=o||!i&&a&&r("(min-device-width:768px)"),s=i||a&&!c,f=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),l=!s&&!c&&!f;return{isiPad:k(o),isiPhone:k(i),isTablet:k(c),isPhone:k(s),isTouch:k(u),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:k(f),isDesktop:k(l)}}(a,i,e,n);return{browser:i,os:a,deviceType:u}},lt=function(e){return window.matchMedia(e).matches},dt=Te((function(){return ft(navigator.userAgent,I.from(navigator.userAgentData),lt)})),mt=function(){return dt()},gt=navigator.userAgent,pt=mt(),ht=pt.browser,vt=pt.os,bt=pt.deviceType,yt=/WebKit/.test(gt)&&!ht.isEdge(),Ct="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,xt=-1!==gt.indexOf("Windows Phone"),wt={opera:ht.isOpera(),webkit:yt,ie:!(!ht.isIE()&&!ht.isEdge())&&ht.version.major,gecko:ht.isFirefox(),mac:vt.isOSX()||vt.isiOS(),iOS:bt.isiPad()||bt.isiPhone(),android:vt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:ht.isIE()?document.documentMode||7:10,fileApi:Ct,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!ht.isIE(),desktop:bt.isDesktop(),windowsPhone:xt,browser:{current:ht.current,version:ht.version,isChrome:ht.isChrome,isEdge:ht.isEdge,isFirefox:ht.isFirefox,isIE:ht.isIE,isOpera:ht.isOpera,isSafari:ht.isSafari},os:{current:vt.current,version:vt.version,isAndroid:vt.isAndroid,isChromeOS:vt.isChromeOS,isFreeBSD:vt.isFreeBSD,isiOS:vt.isiOS,isLinux:vt.isLinux,isOSX:vt.isOSX,isSolaris:vt.isSolaris,isWindows:vt.isWindows},deviceType:{isDesktop:bt.isDesktop,isiPad:bt.isiPad,isiPhone:bt.isiPhone,isPhone:bt.isPhone,isTablet:bt.isTablet,isTouch:bt.isTouch,isWebView:bt.isWebView}},St=/^\s*|\s*$/g,kt=function(e){return null==e?"":(""+e).replace(St,"")},Nt=function(e,t){return t?!("array"!==t||!xe(e))||typeof e===t:void 0!==e},Et=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),we(e,(function(e,o){if(!1===t.call(r,e,o,n))return!1;Et(e,t,n,r)})))},_t={trim:kt,isArray:xe,is:Nt,toArray:function(e){if(xe(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},makeMap:function(e,t,n){var r;for(t=t||",","string"==typeof(e=e||[])&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},each:we,map:Se,grep:ke,inArray:Ne,hasOwn:ye,extend:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var o=t[r];for(var i in o)if(ye(o,i)){var a=o[i];void 0!==a&&(e[i]=a)}}return e},create:function(e,t,n){var r,o,i,a=this,u=0,c=(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e))[3].match(/(^|\.)(\w+)$/i)[2],s=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!s[c]){if("static"===e[2])return s[c]=t,void(this.onCreate&&this.onCreate(e[2],e[3],s[c]));t[c]||(t[c]=function(){},u=1),s[c]=t[c],a.extend(s[c].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,o=e[5].match(/\.(\w+)$/i)[1],i=s[c],s[c]=u?function(){return r[o].apply(this,arguments)}:function(){return this.parent=r[o],i.apply(this,arguments)},s[c].prototype[c]=s[c],a.each(r,(function(e,t){s[c].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?s[c].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==c&&(s[c].prototype[t]=e)}))),a.each(t.static,(function(e,t){s[c][t]=e}))}},walk:Et,createNS:function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)t[r=e[n]]||(t[r]={}),t=t[r];return t},resolve:function(e,t){var n,r;for(t=t||window,n=0,r=(e=e.split(".")).length;n<r&&(t=t[e[n]]);n++);return t},explode:function(e,t){return!e||Nt(e,"array")?e:Se(e.split(t||","),kt)},_addCacheSuffix:function(e){var t=wt.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},At=function(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}},Rt={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return At(n.childNodes[0])},fromTag:function(e,t){var n=(t||document).createElement(e);return At(n)},fromText:function(e,t){var n=(t||document).createTextNode(e);return At(n)},fromDom:At,fromPoint:function(e,t,n){return I.from(e.dom.elementFromPoint(t,n)).map(At)}},Dt=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},o=t(e);do{o=o.bind(r)}while(o.isSome());return n},Tt=function(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Ot=function(e){return 1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount},Bt=function(e,t){return e.dom===t.dom},Pt=function(e,t){return n=e.dom,r=t.dom,function(e,t,n){return 0!=(e.compareDocumentPosition(t)&n)}(n,r,Node.DOCUMENT_POSITION_CONTAINED_BY);var n,r},Lt=function(e,t){return mt().browser.isIE()?Pt(e,t):function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)}(e,t)};"undefined"!=typeof window?window:Function("return this;")();var It=function(e){return e.dom.nodeName.toLowerCase()},Mt=function(e){return e.dom.nodeType},Ft=function(e){return function(t){return Mt(t)===e}},Ut=Ft(1),zt=Ft(3),Ht=Ft(9),jt=Ft(11),Vt=function(e){return Rt.fromDom(e.dom.ownerDocument)},qt=function(e){return Ht(e)?e:Vt(e)},$t=function(e){return Rt.fromDom(qt(e).dom.defaultView)},Wt=function(e){return I.from(e.dom.parentNode).map(Rt.fromDom)},Kt=function(e){return I.from(e.dom.previousSibling).map(Rt.fromDom)},Xt=function(e){return I.from(e.dom.nextSibling).map(Rt.fromDom)},Yt=function(e){return te(Dt(e,Kt))},Gt=function(e){return Dt(e,Xt)},Jt=function(e){return V(e.dom.childNodes,Rt.fromDom)},Qt=function(e,t){var n=e.dom.childNodes;return I.from(n[t]).map(Rt.fromDom)},Zt=function(e){return Qt(e,0)},en=function(e){return Qt(e,e.dom.childNodes.length-1)},tn=function(e){return e.dom.childNodes.length},nn=function(e){return jt(e)&&b(e.dom.host)},rn=y(Element.prototype.attachShadow)&&y(Node.prototype.getRootNode),on=k(rn),an=rn?function(e){return Rt.fromDom(e.dom.getRootNode())}:qt,un=function(e){return nn(e)?e:function(e){var t=e.dom.head;if(null==t)throw new Error("Head is not available yet");return Rt.fromDom(t)}(qt(e))},cn=function(e){return Rt.fromDom(e.dom.host)},sn=function(e){return b(e.dom.shadowRoot)},fn=function(e,t){Wt(e).each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},ln=function(e,t){Xt(e).fold((function(){Wt(e).each((function(e){mn(e,t)}))}),(function(e){fn(e,t)}))},dn=function(e,t){Zt(e).fold((function(){mn(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},mn=function(e,t){e.dom.appendChild(t.dom)},gn=function(e,t){q(t,(function(t){mn(e,t)}))},pn=function(e){e.dom.textContent="",q(Jt(e),(function(e){hn(e)}))},hn=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},vn=function(e){var t,n=Jt(e);n.length>0&&(t=e,q(n,(function(e){fn(t,e)}))),hn(e)},bn=function(e){var t=zt(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return function(e){var t=an(e);return nn(t)?I.some(t):I.none()}(Rt.fromDom(t)).fold((function(){return n.body.contains(t)}),S(bn,cn))},yn=function(e,t){return{left:e,top:t,translate:function(n,r){return yn(e+n,t+r)}}},Cn=yn,xn=function(e,t){return void 0!==e?e:void 0!==t?t:0},wn=function(e){var t=e.dom,n=t.ownerDocument.body;return n===t?Cn(n.offsetLeft,n.offsetTop):bn(e)?function(e){var t=e.getBoundingClientRect();return Cn(t.left,t.top)}(t):Cn(0,0)},Sn=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Cn(n,r)},kn=function(e,t,n){var r=(void 0!==n?n.dom:document).defaultView;r&&r.scrollTo(e,t)},Nn=function(e,t){mt().browser.isSafari()&&y(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},En=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},_n=function(e){var t=void 0===e?window:e,n=t.document,r=Sn(Rt.fromDom(n));return function(e){var t=void 0===e?window:e;return mt().browser.isFirefox()?I.none():I.from(t.visualViewport)}(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return En(r.left,r.top,n,o)}),(function(e){return En(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},An=function(e){return function(t){return!!t&&t.nodeType===e}},Rn=function(e){return!!e&&!Object.getPrototypeOf(e)},Dn=An(1),Tn=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return H(t,n)}return!1}},On=function(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Dn(t))for(var r=0;r<n.length;r++){var o=t.ownerDocument.defaultView.getComputedStyle(t,null);if((o?o.getPropertyValue(e):null)===n[r])return!0}return!1}},Bn=function(e){return function(t){return Dn(t)&&t.hasAttribute(e)}},Pn=function(e){return Dn(e)&&e.hasAttribute("data-mce-bogus")},Ln=function(e){return Dn(e)&&"TABLE"===e.tagName},In=function(e){return function(t){if(Dn(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Mn=Tn(["textarea","input"]),Fn=An(3),Un=An(8),zn=An(9),Hn=An(11),jn=Tn(["br"]),Vn=Tn(["img"]),qn=In("true"),$n=In("false"),Wn=Tn(["td","th"]),Kn=Tn(["video","audio","object","embed"]),Xn=function(e,t,n){return void 0===n&&(n=E),e.exists((function(e){return n(e,t)}))},Yn=function(e,t,n){return e.isSome()&&t.isSome()?I.some(n(e.getOrDie(),t.getOrDie())):I.none()},Gn=function(e){return void 0!==e.style&&y(e.style.getPropertyValue)},Jn=function(e,t,n){if(!(l(n)||p(n)||C(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Qn=function(e,t,n){Jn(e.dom,t,n)},Zn=function(e,t){var n=e.dom;le(t,(function(e,t){Jn(n,t,e)}))},er=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},tr=function(e,t){return I.from(er(e,t))},nr=function(e,t){e.dom.removeAttribute(t)},rr=function(e,t){var n=e.dom;le(t,(function(e,t){!function(e,t,n){if(!l(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);Gn(e)&&e.style.setProperty(t,n)}(n,t,e)}))},or=function(e,t){var n=e.dom,r=window.getComputedStyle(n).getPropertyValue(t);return""!==r||bn(e)?r:ir(n,t)},ir=function(e,t){return Gn(e)?e.style.getPropertyValue(t):""},ar=function(e,t){var n=e.dom,r=ir(n,t);return I.from(r).filter((function(e){return e.length>0}))},ur=function(e){var t={},n=e.dom;if(Gn(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);t[o]=n.style[o]}return t},cr=mt().browser,sr=function(e){return J(e,Ut)},fr=function(e,t){return e.children&&H(e.children,t)},lr=function(e,t,n){var r=0,o=0,i=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===or(Rt.fromDom(e),"position")){var a=t.getBoundingClientRect();return{x:r=a.left+(i.documentElement.scrollLeft||e.scrollLeft)-i.documentElement.clientLeft,y:o=a.top+(i.documentElement.scrollTop||e.scrollTop)-i.documentElement.clientTop}}for(var u=t;u&&u!==n&&u.nodeType&&!fr(u,n);){var c=u;r+=c.offsetLeft||0,o+=c.offsetTop||0,u=c.offsetParent}for(u=t.parentNode;u&&u!==n&&u.nodeType&&!fr(u,n);)r-=u.scrollLeft||0,o-=u.scrollTop||0,u=u.parentNode;o+=function(e){return cr.isFirefox()&&"table"===It(e)?sr(Jt(e)).filter((function(e){return"caption"===It(e)})).bind((function(e){return sr(Gt(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,o=e.dom.offsetHeight;return n<=r?-o:0}))})).getOr(0):0}(Rt.fromDom(t))}return{x:r,y:o}},dr={},mr={exports:dr};!function(e,t,n,r){!function(r,o){"object"==typeof t&&void 0!==n?n.exports=o():"function"==typeof e&&e.amd?e(o):(r="undefined"!=typeof globalThis?globalThis:r||self).EphoxContactWrapper=o()}(this,(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={exports:{}};!function(t){!function(e){var n=setTimeout;function r(){}function o(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function i(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}a(t.promise,r)}else(1===e._state?a:u)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void f((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(t){u(e,t)}var r,i}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}function s(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function f(e,t){var n=!1;try{e((function(e){n||(n=!0,a(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(e){if(n)return;n=!0,u(t,e)}}o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return i(this,new s(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o((function(e,n){if(0===t.length)return e([]);var r=t.length;function o(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,(function(e){o(i,e)}),n)}t[i]=a,0==--r&&e(t)}catch(e){n(e)}}for(var i=0;i<t.length;i++)o(i,t[i])}))},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)}))},o._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},t.exports?t.exports=o:e.Promise||(e.Promise=o)}(e)}(t);var n=t.exports;return{boltExport:("undefined"!=typeof window?window:Function("return this;")()).Promise||n}}))}(void 0,dr,mr);var gr=mr.exports.boltExport,pr=function(e){var t=I.none(),n=[],r=function(e){o()?a(e):n.push(e)},o=function(){return t.isSome()},i=function(e){q(e,a)},a=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e((function(e){o()||(t=I.some(e),i(n),n=[])})),{get:r,map:function(e){return pr((function(t){r((function(n){t(e(n))}))}))},isReady:o}},hr={nu:pr,pure:function(e){return pr((function(t){t(e)}))}},vr=function(e){setTimeout((function(){throw e}),0)},br=function(e){var t=function(t){e().then(t,vr)};return{map:function(t){return br((function(){return e().then(t)}))},bind:function(t){return br((function(){return e().then((function(e){return t(e).toPromise()}))}))},anonBind:function(t){return br((function(){return e().then((function(){return t.toPromise()}))}))},toLazy:function(){return hr.nu(t)},toCached:function(){var t=null;return br((function(){return null===t&&(t=e()),t}))},toPromise:e,get:t}},yr=function(e){return br((function(){return new gr(e)}))},Cr=function(e,t){return t((function(t){var n=[],r=0;0===e.length?t([]):q(e,(function(o,i){o.get(function(o){return function(i){n[o]=i,++r>=e.length&&t(n)}}(i))}))}))},xr=function(e){return{isValue:O,isError:T,getOr:k(e),getOrThunk:k(e),getOrDie:k(e),or:function(t){return xr(e)},orThunk:function(t){return xr(e)},fold:function(t,n){return n(e)},map:function(t){return xr(t(e))},mapError:function(t){return xr(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOptional:function(){return I.some(e)}}},wr=function(e){return{isValue:T,isError:O,getOr:N,getOrThunk:function(e){return e()},getOrDie:function(){return(t=String(e),function(){throw new Error(t)})();var t},or:N,orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return wr(e)},mapError:function(t){return wr(t(e))},each:x,bind:function(t){return wr(e)},exists:T,forall:O,toOptional:I.none}},Sr={value:xr,error:wr,fromOption:function(e,t){return e.fold((function(){return wr(t)}),xr)}},kr=function(e){if(!m(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return q(e,(function(r,o){var i=se(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],u=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!m(u))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+i);var c=function(e){var r=se(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));if(!ee(t,(function(e){return H(r,e)})))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var i=t[o];return i.apply(null,n)},match:c,log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}})),n};kr([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var Nr=function(e){return e.fold(N,N)};function Er(e,t,n,r,o){return e(n,r)?I.some(n):y(o)&&o(n)?I.none():t(n,r,o)}var _r,Ar,Rr,Dr,Tr,Or,Br,Pr,Lr,Ir,Mr,Fr,Ur,zr,Hr,jr,Vr,qr,$r,Wr,Kr=function(e,t,n){for(var r=e.dom,o=y(n)?n:T;r.parentNode;){r=r.parentNode;var i=Rt.fromDom(r);if(t(i))return I.some(i);if(o(i))break}return I.none()},Xr=function(e,t,n){return Er((function(e,t){return t(e)}),Kr,e,t,n)},Yr=function(e,t){return J(e.dom.childNodes,(function(e){return t(Rt.fromDom(e))})).map(Rt.fromDom)},Gr=function(e,t,n){return Kr(e,(function(e){return Tt(e,t)}),n)},Jr=function(e,t){return function(e,t){var n=void 0===t?document:t.dom;return Ot(n)?I.none():I.from(n.querySelector(e)).map(Rt.fromDom)}(t,e)},Qr=function(e,t,n){return Er((function(e,t){return Tt(e,t)}),Gr,e,t,n)},Zr=window.Promise?window.Promise:gr,eo=function(e,t){return"number"!=typeof t&&(t=0),setTimeout(e,t)},to=function(e,t){return"number"!=typeof t&&(t=1),setInterval(e,t)},no=function(e,t){var n,r=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];clearTimeout(n),n=eo((function(){e.apply(this,r)}),t)};return r.stop=function(){clearTimeout(n)},r},ro={requestAnimationFrame:function(e,t){_r?_r.then(e):_r=new Zr((function(e){t||(t=document.body),function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],o=0;o<r.length&&!n;o++)n=window[r[o]+"RequestAnimationFrame"];n||(n=function(e){window.setTimeout(e,0)}),n(e,t)}(e,t)})).then(e)},setTimeout:eo,setInterval:to,setEditorTimeout:function(e,t,n){return eo((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=to((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:no,throttle:no,clearInterval:function(e){return clearInterval(e)},clearTimeout:function(e){return clearTimeout(e)}},oo=function(e,t){void 0===t&&(t={});var n=0,r={},o=Rt.fromDom(e),i=qt(o),a=t.maxLoadTime||5e3,u=function(u,c,s){var f,l=_t._addCacheSuffix(u),d=function(e){return be(r,e).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))}(l);r[l]=d,d.count++;var m=function(e,t){for(var n=e.length;n--;)e[n]();d.status=t,d.passed=[],d.failed=[],f&&(f.onload=null,f.onerror=null,f=null)},g=function(){return m(d.passed,2)},p=function(){return m(d.failed,3)},h=function(){var t,n;t=function(){for(var t=e.styleSheets,n=t.length;n--;){var r=t[n].ownerNode;if(r&&r.id===f.id)return g(),!0}return!1},n=h,t()||(Date.now()-y<a?ro.setTimeout(n):p())};if(c&&d.passed.push(c),s&&d.failed.push(s),1!==d.status)if(2!==d.status)if(3!==d.status){d.status=1;var v=Rt.fromTag("link",i.dom);Zn(v,{rel:"stylesheet",type:"text/css",id:d.id});var b,y=Date.now();t.contentCssCors&&Qn(v,"crossOrigin","anonymous"),t.referrerPolicy&&Qn(v,"referrerpolicy",t.referrerPolicy),(f=v.dom).onload=h,f.onerror=p,b=v,mn(un(o),b),Qn(v,"href",l)}else p();else g()},c=function(e){return yr((function(t){u(e,w(t,k(Sr.value(e))),w(t,k(Sr.error(e))))}))},s=function(e){var t=_t._addCacheSuffix(e);be(r,t).each((function(e){var n,i;0===--e.count&&(delete r[t],n=e.id,i=un(o),Jr(i,"#"+n).each(hn))}))};return{load:u,loadAll:function(e,t,n){var r;(r=V(e,c),Cr(r,yr)).get((function(e){var r=W(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(Nr)):t(r.pass.map(Nr))}))},unload:s,unloadAll:function(e){q(e,(function(e){s(e)}))},_setReferrerPolicy:function(e){t.referrerPolicy=e}}},io=function(){var e=new WeakMap;return{forElement:function(t,n){var r=an(t).dom;return I.from(e.get(r)).getOrThunk((function(){var t=oo(r,n);return e.set(r,t),t}))}}}(),ao=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(o=e[n])return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n])return o}}},e.prototype.findPreviousNode=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}if((i=e.parentNode)&&i!==this.rootNode)return i}},e}(),uo=function(e){var t;return function(n){return t=t||function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n}(e,O),ye(t,It(n))}},co=uo(["h1","h2","h3","h4","h5","h6"]),so=uo(["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"]),fo=function(e){return Ut(e)&&!so(e)},lo=function(e){return Ut(e)&&"br"===It(e)},mo=uo(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),go=uo(["ul","ol","dl"]),po=uo(["li","dd","dt"]),ho=uo(["thead","tbody","tfoot"]),vo=uo(["td","th"]),bo=uo(["pre","script","textarea","style"]),yo=" ",Co="\ufeff",xo=function(e){return"\ufeff"===e},wo=function(e){return e.replace(/\uFEFF/g,"")},So=Dn,ko=Fn,No=function(e){return ko(e)&&(e=e.parentNode),So(e)&&e.hasAttribute("data-mce-caret")},Eo=function(e){return ko(e)&&xo(e.data)},_o=function(e){return No(e)||Eo(e)},Ao=function(e){return e.firstChild!==e.lastChild||!jn(e.firstChild)},Ro=function(e){var t=e.container();return!!Fn(t)&&(t.data.charAt(e.offset())===Co||e.isAtStart()&&Eo(t.previousSibling))},Do=function(e){var t=e.container();return!!Fn(t)&&(t.data.charAt(e.offset()-1)===Co||e.isAtEnd()&&Eo(t.nextSibling))},To=function(e,t,n){var r,o=t.ownerDocument.createElement(e);o.setAttribute("data-mce-caret",n?"before":"after"),o.setAttribute("data-mce-bogus","all"),o.appendChild(((r=document.createElement("br")).setAttribute("data-mce-bogus","1"),r));var i=t.parentNode;return n?i.insertBefore(o,t):t.nextSibling?i.insertBefore(o,t.nextSibling):i.appendChild(o),o},Oo=function(e){return ko(e)&&e.data[0]===Co},Bo=function(e){return ko(e)&&e.data[e.data.length-1]===Co},Po=function(e){return e&&e.hasAttribute("data-mce-caret")?(t=e.getElementsByTagName("br"),n=t[t.length-1],Pn(n)&&n.parentNode.removeChild(n),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null;var t,n},Lo=function(e){return No(e.startContainer)},Io=qn,Mo=$n,Fo=jn,Uo=Fn,zo=Tn(["script","style","textarea"]),Ho=Tn(["img","input","textarea","hr","iframe","video","audio","object","embed"]),jo=Tn(["table"]),Vo=_o,qo=function(e){return!Vo(e)&&(Uo(e)?!zo(e.parentNode):Ho(e)||Fo(e)||jo(e)||$o(e))},$o=function(e){return!1===function(e){return Dn(e)&&"true"===e.getAttribute("unselectable")}(e)&&Mo(e)},Wo=function(e,t){return qo(e)&&function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if($o(e))return!1;if(Io(e))return!0}return!0}(e,t)},Ko=/^[ \t\r\n]*$/,Xo=function(e){return Ko.test(e)},Yo=function(e,t){var n,r,o,i=Rt.fromDom(t),a=Rt.fromDom(e);return n=a,r="pre,code",o=_(Bt,i),Gr(n,r,o).isSome()},Go=function(e,t){return qo(e)&&!1===function(e,t){return Fn(e)&&Xo(e.data)&&!1===Yo(e,t)}(e,t)||function(e){return Dn(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))}(e)||Jo(e)},Jo=Bn("data-mce-bookmark"),Qo=Bn("data-mce-bogus"),Zo=(Ar="data-mce-bogus",Rr="all",function(e){return Dn(e)&&e.getAttribute(Ar)===Rr}),ei=function(e,t){return void 0===t&&(t=!0),function(e,t){var n=0;if(Go(e,e))return!1;var r=e.firstChild;if(!r)return!0;var o=new ao(r,e);do{if(t){if(Zo(r)){r=o.next(!0);continue}if(Qo(r)){r=o.next();continue}}if(jn(r))n++,r=o.next();else{if(Go(r,e))return!1;r=o.next()}}while(r);return n<=1}(e.dom,t)},ti=function(e,t){return b(e)&&(Go(e,t)||fo(Rt.fromDom(e)))},ni=function(e){return function(e){return"span"===e.nodeName.toLowerCase()}(e)&&"bookmark"===e.getAttribute("data-mce-type")},ri=function(e,t){return Fn(e)&&e.data.length>0&&function(e,t){var n=new ao(e,t).prev(!1),r=new ao(e,t).next(!1),o=h(n)||ti(n,t),i=h(r)||ti(r,t);return o&&i}(e,t)},oi=function(e,t,n){var r=n||t;if(Dn(t)&&ni(t))return t;for(var o=t.childNodes,i=o.length-1;i>=0;i--)oi(e,o[i],r);if(Dn(t)){var a=t.childNodes;1===a.length&&ni(a[0])&&t.parentNode.insertBefore(a[0],t)}return function(e){return Hn(e)||zn(e)}(t)||Go(t,r)||function(e){return!!Dn(e)&&e.childNodes.length>0}(t)||ri(t,r)||e.remove(t),t},ii=_t.makeMap,ai=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ui=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ci=/[<>&\"\']/g,si=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,fi={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},li={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},di={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},mi=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),li[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}},gi=mi("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),pi=function(e,t){return e.replace(t?ai:ui,(function(e){return li[e]||e}))},hi=function(e,t){return e.replace(t?ai:ui,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":li[e]||"&#"+e.charCodeAt(0)+";"}))},vi=function(e,t,n){return n=n||gi,e.replace(t?ai:ui,(function(e){return li[e]||n[e]||e}))},bi={encodeRaw:pi,encodeAllRaw:function(e){return(""+e).replace(ci,(function(e){return li[e]||e}))},encodeNumeric:hi,encodeNamed:vi,getEncodeFunc:function(e,t){var n=mi(t)||gi,r=ii(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?ai:ui,(function(e){return void 0!==li[e]?li[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))}:r.named?t?function(e,t){return vi(e,t,n)}:vi:r.numeric?hi:pi},decode:function(e){return e.replace(si,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):fi[t]||String.fromCharCode(t):di[e]||gi[e]||function(e){var t=Rt.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e}(e)}))}},yi={},Ci={},xi=_t.makeMap,wi=_t.each,Si=_t.extend,ki=_t.explode,Ni=_t.inArray,Ei=function(e,t){return(e=_t.trim(e))?e.split(t||" "):[]},_i=function(e,t){var n;return e&&(n={},"string"==typeof e&&(e={"*":e}),wi(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?xi(e,/[, ]/):ki(e,/[, ]/)}))),n},Ai=function(e){var t={},n={},r=[],o={},i={},a=function(t,n,r){var o=e[t];return o?o=xi(o,/[, ]/,xi(o.toUpperCase(),/[, ]/)):(o=yi[t])||(o=xi(n," ",xi(n.toUpperCase()," ")),o=Si(o,r),yi[t]=o),o},u=function(e){var t,n,r,o,i,a,u={},c=function(e,n,r){var o,i,a,c=function(e,t){var n,r,o={};for(n=0,r=e.length;n<r;n++)o[e[n]]=t||{};return o};n=n||"","string"==typeof(r=r||[])&&(r=Ei(r));var s=Ei(e);for(o=s.length;o--;)a={attributes:c(i=Ei([t,n].join(" "))),attributesOrder:i,children:c(r,Ci)},u[s[o]]=a},s=function(e,t){var n,r,o,i,a=Ei(e);n=a.length;for(var c=Ei(t);n--;)for(r=u[a[n]],o=0,i=c.length;o<i;o++)r.attributes[c[o]]={},r.attributesOrder.push(c[o])};return yi[e]?yi[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",r=[r,a="acronym applet basefont big font strike tt"].join(" "),wi(Ei(a),(function(e){c(e,"",r)})),n=[n,i="center dir isindex noframes"].join(" "),o=[n,r].join(" "),wi(Ei(i),(function(e){c(e,"",o)}))),o=o||[n,r].join(" "),c("html","manifest","head body"),c("head","","base command link meta noscript script style title"),c("title hr noscript br"),c("base","href target"),c("link","href rel media hreflang type sizes hreflang"),c("meta","name http-equiv content charset"),c("style","media type scoped"),c("script","src async defer type charset"),c("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",o),c("address dt dd div caption","",o),c("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),c("blockquote","cite",o),c("ol","reversed start type","li"),c("ul","","li"),c("li","value",o),c("dl","","dt dd"),c("a","href target rel media hreflang type",r),c("q","cite",r),c("ins del","cite datetime",o),c("img","src sizes srcset alt usemap ismap width height"),c("iframe","src name width height",o),c("embed","src type width height"),c("object","data type typemustmatch name usemap form width height",[o,"param"].join(" ")),c("param","name value"),c("map","name",[o,"area"].join(" ")),c("area","alt coords shape href target rel media hreflang type"),c("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),c("colgroup","span","col"),c("col","span"),c("tbody thead tfoot","","tr"),c("tr","","td th"),c("td","colspan rowspan headers",o),c("th","colspan rowspan headers scope abbr",o),c("form","accept-charset action autocomplete enctype method name novalidate target",o),c("fieldset","disabled form name",[o,"legend"].join(" ")),c("label","form for",r),c("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),c("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?o:r),c("select","disabled form multiple name required size","option optgroup"),c("optgroup","disabled label","option"),c("option","disabled label selected value"),c("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),c("menu","type label",[o,"li"].join(" ")),c("noscript","",o),"html4"!==e&&(c("wbr"),c("ruby","",[r,"rt rp"].join(" ")),c("figcaption","",o),c("mark rt rp summary bdi","",r),c("canvas","width height",o),c("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[o,"track source"].join(" ")),c("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[o,"track source"].join(" ")),c("picture","","img source"),c("source","src srcset type media sizes"),c("track","kind src srclang label default"),c("datalist","",[r,"option"].join(" ")),c("article section nav aside main header footer","",o),c("hgroup","","h1 h2 h3 h4 h5 h6"),c("figure","",[o,"figcaption"].join(" ")),c("time","datetime",r),c("dialog","open",o),c("command","type label icon disabled checked radiogroup command"),c("output","for form name",r),c("progress","value max",r),c("meter","value min max low high optimum",r),c("details","open",[o,"summary"].join(" ")),c("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(s("script","language xml:space"),s("style","xml:space"),s("object","declare classid code codebase codetype archive standby align border hspace vspace"),s("embed","align name hspace vspace"),s("param","valuetype type"),s("a","charset name rev shape coords"),s("br","clear"),s("applet","codebase archive code object alt name width height align hspace vspace"),s("img","name longdesc align border hspace vspace"),s("iframe","longdesc frameborder marginwidth marginheight scrolling align"),s("font basefont","size color face"),s("input","usemap align"),s("select"),s("textarea"),s("h1 h2 h3 h4 h5 h6 div p legend caption","align"),s("ul","type compact"),s("li","type"),s("ol dl menu dir","compact"),s("pre","width xml:space"),s("hr","align noshade size width"),s("isindex","prompt"),s("table","summary width frame rules cellspacing cellpadding align bgcolor"),s("col","width align char charoff valign"),s("colgroup","width align char charoff valign"),s("thead","align char charoff valign"),s("tr","align char charoff valign bgcolor"),s("th","axis align char charoff valign nowrap bgcolor width height"),s("form","accept"),s("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),s("tfoot","align char charoff valign"),s("tbody","align char charoff valign"),s("area","nohref"),s("body","background bgcolor text link vlink alink")),"html4"!==e&&(s("input button select textarea","autofocus"),s("input textarea","placeholder"),s("a","download"),s("link script img","crossorigin"),s("img","loading"),s("iframe","sandbox seamless allowfullscreen loading")),wi(Ei("a form meter progress dfn"),(function(e){u[e]&&delete u[e].children[e]})),delete u.caption.children.table,delete u.script,yi[e]=u,u)}((e=e||{}).schema);!1===e.verify_html&&(e.valid_elements="*[*]");var c=_i(e.valid_styles),s=_i(e.invalid_styles,"map"),f=_i(e.valid_classes,"map"),l=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),d=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),m=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),g=a("boolean_attributes","check