import{c as PC}from"./@babel.49d8906a.js";var IC={exports:{}};(function(LC){(function(){var Lc=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var t=typeof e;return t==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":t==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":t},$C=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},FC=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},MC=function(e,t){return Ma(function(n,r){return e.eq(t(n),t(r))})},Ma=function(e){return{eq:e}},UC=Ma(function(e,t){return e===t}),zC=UC,$c=function(e){return Ma(function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,a=0;a-1},dt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},qc=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},h0=function(e,t){return pr(e,t)?p0(e,t.length):e},ut=function(e,t){return e.indexOf(t)!==-1},pr=function(e,t){return g0(e,t,0)},tf=function(e){return function(t){return t.replace(e,"")}},nf=tf(/^\s+|\s+$/g),b0=tf(/^\s+/g),tv=tf(/\s+$/g),Mi=function(e){return e.length>0},nv=function(e){return!Mi(e)},rf=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Rn=function(e){return function(t){return ut(t,e)}},y0=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ut(e,"edge/")&&ut(e,"chrome")&&ut(e,"safari")&&ut(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,rf],search:function(e){return ut(e,"chrome")&&!ut(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ut(e,"msie")||ut(e,"trident")}},{name:"Opera",versionRegexes:[rf,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Rn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Rn("firefox")},{name:"Safari",versionRegexes:[rf,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ut(e,"safari")||ut(e,"mobile/"))&&ut(e,"applewebkit")}}],C0=[{name:"Windows",search:Rn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ut(e,"iphone")||ut(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Rn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Rn("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Rn("linux"),versionRegexes:[]},{name:"Solaris",search:Rn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Rn("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Rn("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],rv={browsers:X(y0),oses:X(C0)},av="Edge",iv="Chrome",ov="IE",uv="Opera",fv="Firefox",sv="Safari",w0=function(){return lv({current:void 0,version:Wa.unknown()})},lv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(av),isChrome:r(iv),isIE:r(ov),isOpera:r(uv),isFirefox:r(fv),isSafari:r(sv)}},cv={unknown:w0,nu:lv,edge:X(av),chrome:X(iv),ie:X(ov),opera:X(uv),firefox:X(fv),safari:X(sv)},vv="Windows",dv="iOS",mv="Android",pv="Linux",gv="OSX",hv="Solaris",bv="FreeBSD",yv="ChromeOS",E0=function(){return Cv({current:void 0,version:Wa.unknown()})},Cv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(vv),isiOS:r(dv),isAndroid:r(mv),isOSX:r(gv),isLinux:r(pv),isSolaris:r(hv),isFreeBSD:r(bv),isChromeOS:r(yv)}},wv={unknown:E0,nu:Cv,windows:X(vv),ios:X(dv),android:X(mv),linux:X(pv),osx:X(gv),solaris:X(hv),freebsd:X(bv),chromeos:X(yv)},S0=function(e,t,n){var r=rv.browsers(),a=rv.oses(),i=t.bind(function(f){return v0(r,f)}).orThunk(function(){return d0(r,e)}).fold(cv.unknown,cv.nu),o=m0(a,e).fold(wv.unknown,wv.nu),u=f0(o,i,e,n);return{browser:i,os:o,deviceType:u}},k0={detect:S0},x0=function(e){return window.matchMedia(e).matches},N0=Ju(function(){return k0.detect(navigator.userAgent,b.from(navigator.userAgentData),x0)}),Mt=function(){return N0()},Ev=navigator.userAgent,af=Mt(),mt=af.browser,Rt=af.os,ln=af.deviceType,T0=/WebKit/.test(Ev)&&!mt.isEdge(),A0="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,R0=Ev.indexOf("Windows Phone")!==-1,ue={opera:mt.isOpera(),webkit:T0,ie:mt.isIE()||mt.isEdge()?mt.version.major:!1,gecko:mt.isFirefox(),mac:Rt.isOSX()||Rt.isiOS(),iOS:ln.isiPad()||ln.isiPhone(),android:Rt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:mt.isIE()?document.documentMode||7:10,fileApi:A0,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!mt.isIE(),desktop:ln.isDesktop(),windowsPhone:R0,browser:{current:mt.current,version:mt.version,isChrome:mt.isChrome,isEdge:mt.isEdge,isFirefox:mt.isFirefox,isIE:mt.isIE,isOpera:mt.isOpera,isSafari:mt.isSafari},os:{current:Rt.current,version:Rt.version,isAndroid:Rt.isAndroid,isChromeOS:Rt.isChromeOS,isFreeBSD:Rt.isFreeBSD,isiOS:Rt.isiOS,isLinux:Rt.isLinux,isOSX:Rt.isOSX,isSolaris:Rt.isSolaris,isWindows:Rt.isWindows},deviceType:{isDesktop:ln.isDesktop,isiPad:ln.isiPad,isiPhone:ln.isiPhone,isPhone:ln.isPhone,isTablet:ln.isTablet,isTouch:ln.isTouch,isWebView:ln.isWebView}},B0=/^\s*|\s*$/g,Sv=function(e){return e==null?"":(""+e).replace(B0,"")},kv=function(e,t){return t?t==="array"&&Zu(e)?!0:typeof e===t:e!==void 0},D0=function(e,t,n){var r;for(e=e||[],t=t||",",typeof e=="string"&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},_0=ve,O0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var f=e[3].match(/(^|\.)(\w+)$/i)[2],s=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!s[f]){if(e[2]==="static"){s[f]=t,this.onCreate&&this.onCreate(e[2],e[3],s[f]);return}t[f]||(t[f]=function(){},u=1),s[f]=t[f],r.extend(s[f].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=s[f],u?s[f]=function(){return a[i].apply(this,arguments)}:s[f]=function(){return this.parent=a[i],o.apply(this,arguments)},s[f].prototype[f]=s[f],r.each(a,function(l,c){s[f].prototype[c]=a[c]}),r.each(t,function(l,c){a[c]?s[f].prototype[c]=function(){return this.parent=a[c],l.apply(this,arguments)}:c!==f&&(s[f].prototype[c]=l)})),r.each(t.static,function(l,c){s[f][c]=l})}},P0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return ja(r.childNodes[0])},U0=function(e,t){var n=t||document,r=n.createElement(e);return ja(r)},z0=function(e,t){var n=t||document,r=n.createTextNode(e);return ja(r)},ja=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},H0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(ja)},k={fromHtml:M0,fromTag:U0,fromText:z0,fromDom:ja,fromPoint:H0},Nv=function(e,t){var n=[],r=function(i){return n.push(i),t(i)},a=t(e);do a=a.bind(r);while(a.isSome());return n},V0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},q0=function(e,t){return V0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},W0=8,Tv=9,Av=11,of=1,j0=3,Xr=function(e,t){var n=e.dom;if(n.nodeType!==of)return!1;var r=n;if(r.matches!==void 0)return r.matches(t);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(t);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Rv=function(e){return e.nodeType!==of&&e.nodeType!==Tv&&e.nodeType!==Av||e.childElementCount===0},K0=function(e,t){var n=t===void 0?document:t.dom;return Rv(n)?[]:Te(n.querySelectorAll(e),k.fromDom)},G0=function(e,t){var n=t===void 0?document:t.dom;return Rv(n)?b.none():b.from(n.querySelector(e)).map(k.fromDom)},Se=function(e,t){return e.dom===t.dom},X0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},Y0=function(e,t){return q0(e.dom,t.dom)},zn=function(e,t){return Mt().browser.isIE()?Y0(e,t):X0(e,t)};typeof window!="undefined"||Function("return this;")();var He=function(e){var t=e.dom.nodeName;return t.toLowerCase()},Bv=function(e){return e.dom.nodeType},Ui=function(e){return function(t){return Bv(t)===e}},Z0=function(e){return Bv(e)===W0||He(e)==="#comment"},Kt=Ui(of),Ut=Ui(j0),Q0=Ui(Tv),J0=Ui(Av),ew=function(e){return function(t){return Kt(t)&&He(t)===e}},Dv=function(e){return k.fromDom(e.dom.ownerDocument)},Yr=function(e){return Q0(e)?e:Dv(e)},tw=function(e){return k.fromDom(Yr(e).dom.documentElement)},_v=function(e){return k.fromDom(Yr(e).dom.defaultView)},Gt=function(e){return b.from(e.dom.parentNode).map(k.fromDom)},nw=function(e,t){for(var n=Re(t)?t:xe,r=e.dom,a=[];r.parentNode!==null&&r.parentNode!==void 0;){var i=r.parentNode,o=k.fromDom(i);if(a.push(o),n(o)===!0)break;r=i}return a},rw=function(e){var t=function(n){return ce(n,function(r){return!Se(e,r)})};return Gt(e).map(zt).map(t).getOr([])},gr=function(e){return b.from(e.dom.previousSibling).map(k.fromDom)},Ka=function(e){return b.from(e.dom.nextSibling).map(k.fromDom)},Ov=function(e){return $i(Nv(e,gr))},Pv=function(e){return Nv(e,Ka)},zt=function(e){return Te(e.dom.childNodes,k.fromDom)},zi=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(k.fromDom)},Iv=function(e){return zi(e,0)},uf=function(e){return zi(e,e.dom.childNodes.length-1)},Lv=function(e){return e.dom.childNodes.length},aw=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return k.fromDom(t)},$v=function(e){return J0(e)&&Ee(e.dom.host)},Fv=Re(Element.prototype.attachShadow)&&Re(Node.prototype.getRootNode),iw=X(Fv),hr=Fv?function(e){return k.fromDom(e.dom.getRootNode())}:Yr,ff=function(e){return $v(e)?e:aw(Yr(e))},ow=function(e){var t=hr(e);return $v(t)?b.some(t):b.none()},uw=function(e){return k.fromDom(e.dom.host)},fw=function(e){if(iw()&&Ee(e.target)){var t=k.fromDom(e.target);if(Kt(t)&&sw(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return At(n)}}return b.from(e.target)},sw=function(e){return Ee(e.dom.shadowRoot)},Xt=function(e,t){var n=Gt(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},Ga=function(e,t){var n=Ka(e);n.fold(function(){var r=Gt(e);r.each(function(a){Je(a,t)})},function(r){Xt(r,t)})},Mv=function(e,t){var n=Iv(e);n.fold(function(){Je(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},Je=function(e,t){e.dom.appendChild(t.dom)},lw=function(e,t){Xt(e,t),Je(t,e)},cw=function(e,t){K(t,function(n){Xt(e,n)})},Hi=function(e,t){K(t,function(n){Je(e,n)})},sf=function(e){e.dom.textContent="",K(zt(e),function(t){Ve(t)})},Ve=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},Uv=function(e){var t=zt(e);t.length>0&&cw(e,t),Ve(e)},Xa=function(e){var t=Ut(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return ow(k.fromDom(t)).fold(function(){return n.body.contains(t)},zc(Xa,uw))},zv=function(e,t){var n=function(r,a){return zv(e+r,t+a)};return{left:e,top:t,translate:n}},Zr=zv,vw=function(e){var t=e.getBoundingClientRect();return Zr(t.left,t.top)},Vi=function(e,t){return e!==void 0?e:t!==void 0?t:0},dw=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return Zr(n.offsetLeft,n.offsetTop);var i=Vi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Vi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Vi(a.clientTop,n.clientTop),f=Vi(a.clientLeft,n.clientLeft);return lf(e).translate(o-f,i-u)},lf=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Zr(r.offsetLeft,r.offsetTop):Xa(e)?vw(t):Zr(0,0)},cf=function(e){var t=e!==void 0?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Zr(n,r)},Hv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Vv=function(e,t){var n=Mt().browser.isSafari();n&&Re(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},mw=function(e){var t=e===void 0?window:e;return Mt().browser.isFirefox()?b.none():b.from(t.visualViewport)},qv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Wv=function(e){var t=e===void 0?window:e,n=t.document,r=cf(k.fromDom(n));return mw(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return qv(r.left,r.top,i,o)},function(a){return qv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},Ya=function(e){return function(t){return!!t&&t.nodeType===e}},qi=function(e){return!!e&&!Object.getPrototypeOf(e)},re=Ya(1),Ht=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return Ye(t,r)}return!1}},Wi=function(e,t){var n=t.toLowerCase().split(" ");return function(r){if(re(r))for(var a=0;a0})},Qv=function(e){var t={},n=e.dom;if(Gi(n))for(var r=0;r=e.length&&n(r)}};e.length===0?n([]):K(e,function(o,u){o.get(i(u))})})},Iw=function(e){return Pw(e,rd.nu)},ta=function(e){var t=function(c){return ta(e)},n=function(c){return ta(e)},r=function(c){return ta(c(e))},a=function(c){return ta(e)},i=function(c){c(e)},o=function(c){return c(e)},u=function(c,v){return v(e)},f=function(c){return c(e)},s=function(c){return c(e)},l=function(){return b.some(e)};return{isValue:Ue,isError:xe,getOr:X(e),getOrThunk:X(e),getOrDie:X(e),or:t,orThunk:n,fold:u,map:r,mapError:a,each:i,bind:o,exists:f,forall:s,toOptional:l}},Za=function(e){var t=function(s){return s()},n=function(){return WC(String(e))()},r=wt,a=function(s){return s()},i=function(s){return Za(e)},o=function(s){return Za(s(e))},u=function(s){return Za(e)},f=function(s,l){return s(e)};return{isValue:xe,isError:Ue,getOr:wt,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:f,map:i,mapError:o,each:se,bind:u,exists:xe,forall:Ue,toOptional:b.none}},Lw=function(e,t){return e.fold(function(){return Za(t)},ta)},ad={value:ta,error:Za,fromOption:Lw},$w=function(e){if(!Ft(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var t=[],n={};return K(e,function(r,a){var i=jr(r);if(i.length!==1)throw new Error("one and only one name per case");var o=i[0],u=r[o];if(n[o]!==void 0)throw new Error("duplicate key detected:"+o);if(o==="cata")throw new Error("cannot have a case named cata (sorry)");if(!Ft(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var f=[],s=0;s0?h(E.fail.map(id)):y(E.pass.map(id))})},m=function(g){var y=B._addCacheSuffix(g);ze(r,y).each(function(h){var S=--h.count;S===0&&(delete r[y],s(h.id))})},p=function(g){K(g,function(y){m(y)})};return{load:c,loadAll:d,unload:m,unloadAll:p,_setReferrerPolicy:u}},Vw=function(){var e=new WeakMap,t=function(n,r){var a=hr(n),i=a.dom;return b.from(e.get(i)).getOrThunk(function(){var o=sd(i,r);return e.set(i,o),o})};return{forElement:t}},ld=Vw(),qe=function(){function e(t,n){this.node=t,this.rootNode=n,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(t){return this.node=this.findSibling(this.node,"firstChild","nextSibling",t),this.node},e.prototype.prev=function(t){return this.node=this.findSibling(this.node,"lastChild","previousSibling",t),this.node},e.prototype.prev2=function(t){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",t),this.node},e.prototype.findSibling=function(t,n,r,a){var i,o;if(t){if(!a&&t[n])return t[n];if(t!==this.rootNode){if(i=t[r],i)return i;for(o=t.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[r],i)return i}}},e.prototype.findPreviousNode=function(t,n,r,a){var i,o,u;if(t){if(i=t[r],this.rootNode&&i===this.rootNode)return;if(i){if(!a){for(u=i[n];u;u=u[n])if(!u[n])return u}return i}if(o=t.parentNode,o&&o!==this.rootNode)return o}},e}(),qw=["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"],Ww=["td","th"],jw=["thead","tbody","tfoot"],Kw=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Gw=["h1","h2","h3","h4","h5","h6"],Xw=["li","dd","dt"],Yw=["ul","ol","dl"],Zw=["pre","script","textarea","style"],qn=function(e){var t;return function(n){return t=t||JC(e,Ue),ve(t,He(n))}},Qw=qn(Gw),dn=qn(qw),Jw=function(e){return He(e)==="table"},wf=function(e){return Kt(e)&&!dn(e)},na=function(e){return Kt(e)&&He(e)==="br"},cd=qn(Kw),Ef=qn(Yw),Ja=qn(Xw),eE=qn(jw),Qi=qn(Ww),Ji=qn(Zw),tE=function(e,t,n){return Yi(e,t,n).isSome()},Sf="\uFEFF",Et="\xA0",nE=function(e){return e===Sf},rE=function(e){return e.replace(/\uFEFF/g,"")},We=Sf,eo=nE,Bt=rE,aE=re,ra=Y,aa=function(e){return ra(e)&&(e=e.parentNode),aE(e)&&e.hasAttribute("data-mce-caret")},ia=function(e){return ra(e)&&eo(e.data)},Dt=function(e){return aa(e)||ia(e)},vd=function(e){return e.firstChild!==e.lastChild||!Pe(e.firstChild)},iE=function(e,t){var n=e.ownerDocument,r=n.createTextNode(We),a=e.parentNode;if(t){var i=e.previousSibling;if(ra(i)){if(Dt(i))return i;if(no(i))return i.splitText(i.data.length-1)}a.insertBefore(r,e)}else{var i=e.nextSibling;if(ra(i)){if(Dt(i))return i;if(to(i))return i.splitText(1),i}e.nextSibling?a.insertBefore(r,e.nextSibling):a.appendChild(r)}return r},kf=function(e){var t=e.container();return Y(t)?t.data.charAt(e.offset())===We||e.isAtStart()&&ia(t.previousSibling):!1},xf=function(e){var t=e.container();return Y(t)?t.data.charAt(e.offset()-1)===We||e.isAtEnd()&&ia(t.nextSibling):!1},oE=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},uE=function(e,t,n){var r=t.ownerDocument,a=r.createElement(e);a.setAttribute("data-mce-caret",n?"before":"after"),a.setAttribute("data-mce-bogus","all"),a.appendChild(oE());var i=t.parentNode;return n?i.insertBefore(a,t):t.nextSibling?i.insertBefore(a,t.nextSibling):i.appendChild(a),a},to=function(e){return ra(e)&&e.data[0]===We},no=function(e){return ra(e)&&e.data[e.data.length-1]===We},fE=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];br(n)&&n.parentNode.removeChild(n)},Nf=function(e){return e&&e.hasAttribute("data-mce-caret")?(fE(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},dd=function(e){return aa(e.startContainer)},md=cn,sE=Ae,lE=Pe,cE=Y,vE=Ht(["script","style","textarea"]),pd=Ht(["img","input","textarea","hr","iframe","video","audio","object","embed"]),dE=Ht(["table"]),mE=Dt,mn=function(e){return mE(e)?!1:cE(e)?!vE(e.parentNode):pd(e)||lE(e)||dE(e)||Tf(e)},pE=function(e){return re(e)&&e.getAttribute("unselectable")==="true"},Tf=function(e){return pE(e)===!1&&sE(e)},gE=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Tf(e))return!1;if(md(e))return!0}return!0},hE=function(e){return Tf(e)?jt(sn(e.getElementsByTagName("*")),function(t,n){return t||md(n)},!1)!==!0:!1},bE=function(e){return pd(e)||hE(e)},ro=function(e,t){return mn(e)&&gE(e,t)},yE=/^[ \t\r\n]*$/,yr=function(e){return yE.test(e)},CE=function(e,t){var n=k.fromDom(t),r=k.fromDom(e);return tE(r,"pre,code",j(Se,n))},wE=function(e,t){return Y(e)&&yr(e.data)&&CE(e,t)===!1},EE=function(e){return re(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},ao=function(e,t){return mn(e)&&wE(e,t)===!1||EE(e)||SE(e)},SE=jv("data-mce-bookmark"),kE=jv("data-mce-bogus"),xE=pw("data-mce-bogus","all"),NE=function(e,t){var n=0;if(ao(e,e))return!1;var r=e.firstChild;if(!r)return!0;var a=new qe(r,e);do{if(t){if(xE(r)){r=a.next(!0);continue}if(kE(r)){r=a.next();continue}}if(Pe(r)){n++,r=a.next();continue}if(ao(r,e))return!1;r=a.next()}while(r);return n<=1},je=function(e,t){return t===void 0&&(t=!0),NE(e.dom,t)},TE=function(e){return e.nodeName.toLowerCase()==="span"},gd=function(e,t){return Ee(e)&&(ao(e,t)||wf(k.fromDom(e)))},AE=function(e,t){var n=new qe(e,t).prev(!1),r=new qe(e,t).next(!1),a=Ct(n)||gd(n,t),i=Ct(r)||gd(r,t);return a&&i},hd=function(e){return TE(e)&&e.getAttribute("data-mce-type")==="bookmark"},RE=function(e,t){return Y(e)&&e.data.length>0&&AE(e,t)},BE=function(e){return re(e)?e.childNodes.length>0:!1},DE=function(e){return mf(e)||df(e)},Af=function(e,t,n){var r=n||t;if(re(t)&&hd(t))return t;for(var a=t.childNodes,i=a.length-1;i>=0;i--)Af(e,a[i],r);if(re(t)){var o=t.childNodes;o.length===1&&hd(o[0])&&t.parentNode.insertBefore(o[0],t)}return!DE(t)&&!ao(t,r)&&!BE(t)&&!RE(t,r)&&e.remove(t),t},_E=B.makeMap,io=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,oo=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,OE=/[<>&\"\']/g,PE=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,IE={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"},Cr={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},LE={"<":"<",">":">","&":"&",""":'"',"'":"'"},$E=function(e){var t=k.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},bd=function(e,t){var n,r,a,i={};if(e){for(e=e.split(","),t=t||10,n=0;n1?"&#"+((n.charCodeAt(0)-55296)*1024+(n.charCodeAt(1)-56320)+65536)+";":Cr[n]||"&#"+n.charCodeAt(0)+";"})},Bf=function(e,t,n){return n=n||Rf,e.replace(t?io:oo,function(r){return Cr[r]||n[r]||r})},ME=function(e,t){var n=bd(t)||Rf,r=function(o,u){return o.replace(u?io:oo,function(f){return Cr[f]!==void 0?Cr[f]:n[f]!==void 0?n[f]:f.length>1?"&#"+((f.charCodeAt(0)-55296)*1024+(f.charCodeAt(1)-56320)+65536)+";":"&#"+f.charCodeAt(0)+";"})},a=function(o,u){return Bf(o,u,n)},i=_E(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?a:Bf:i.numeric?Cd:yd},UE=function(e){return e.replace(PE,function(t,n){return n?(n.charAt(0).toLowerCase()==="x"?n=parseInt(n.substr(1),16):n=parseInt(n,10),n>65535?(n-=65536,String.fromCharCode(55296+(n>>10),56320+(n&1023))):IE[n]||String.fromCharCode(n)):LE[t]||Rf[t]||$E(t)})},Wn={encodeRaw:yd,encodeAllRaw:FE,encodeNumeric:Cd,encodeNamed:Bf,getEncodeFunc:ME,decode:UE},jn={},zE={},oa=B.makeMap,nt=B.each,Df=B.extend,wd=B.explode,HE=B.inArray,Qe=function(e,t){return e=B.trim(e),e?e.split(t||" "):[]},Ed=function(e,t){var n=oa(e," ",oa(e.toUpperCase()," "));return Df(n,t)},Sd=function(e){return Ed("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},VE=function(e){var t={},n,r,a,i,o,u,f=function(l,c,v){var d,m,p,g=function(h,S){var E={},C,x;for(C=0,x=h.length;C