/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.0.7 (2019-06-05) */ !function(x){"use strict";var tt=function(){},t=function(t){return function(){return t()}},p=function(e,o){return function(){for(var t=[],n=0;na[0]&&t[1] "+o.toString()},function(t,n){return"state("+t+")"})}).join("\n")+"}"},toDsl:function(){return Fo.objOf(M(a,function(t){return t.fold(function(t,n,e,o){return Io.field(t,e,o)},function(t,n){return Io.state(t)})}))}}},Xo=function(r){return{extract:function(e,o,t){var n=M(t,function(t,n){return r.extract(e.concat(["["+n+"]"]),o,t)});return Mo(n)},toString:function(){return"array("+r.toString()+")"},toDsl:function(){return Fo.arrOf(r)}}},Yo=function(a,c){return{extract:function(e,o,r){var t,n,i=Q(r),u=(t=e,n=i,Xo(Uo(a)).extract(t,d,n));return Eo(u,function(t){var n=M(t,function(t){return Po.field(t,t,go(),c)});return Go(n).extract(e,o,r)})},toString:function(){return"setOf("+c.toString()+")"},toDsl:function(){return Fo.setOf(a,c)}}},qo=nt(Uo(ko)),Ko=p(Xo,Go),$o=Po.state,Jo=Po.field,Zo=function(e,n,o,r,i){return Et(r,i).fold(function(){return t=r,n=i,No(e,function(){return'The chosen schema: "'+n+'" did not exist in branches: '+Ho(t)});var t,n},function(t){return Go(t).extract(e.concat(["branch: "+i]),n,o)})},Qo=function(r,i){return{extract:function(n,e,o){return Et(o,r).fold(function(){return t=r,No(n,function(){return'Choice schema did not contain choice key: "'+t+'"'});var t},function(t){return Zo(n,e,o,i,t)})},toString:function(){return"chooseOn("+r+"). Possible values: "+Q(i)},toDsl:function(){return Fo.choiceOf(r,i)}}},tr=Uo(ko),nr=function(t){return Ko(t)},er=function(){return Xo(tr)},or=function(n){return Uo(function(t){return n(t).fold(Oo,ko)})},rr=function(n,t){return Yo(function(t){return wo(n(t))},t)},ir=function(t,n,e,o){var r=n.extract([t],e,o);return Ao(r,function(t){return{input:o,errors:t}})},ur=function(t,n,e){return So(ir(t,n,d,e))},ar=function(t){return t.fold(function(t){throw new Error(sr(t))},d)},cr=function(t,n,e){return ar(ur(t,n,e))},sr=function(t){return"Errors: \n"+(n=t.errors,e=10 ")+")\n"+t.getErrorInfo()}))+"\n\nInput object: "+Ho(t.input);var n,e},fr=function(t,n){return Qo(t,n)},lr=nt(tr),dr=function(e,o){return Uo(function(t){var n=typeof t;return e(t)?ko(t):Oo("Expected type: "+o+" but got: "+n)})},mr=dr(_,"number"),gr=dr(S,"string"),pr=dr(C,"boolean"),hr=dr(b,"function"),vr=function(n){return or(function(t){return T(n,t)?vt.value(t):vt.error('Unsupported value: "'+t+'", choose one of "'+n.join(", ")+'".')})},br=function(t){return Jo(t,t,go(),qo())},yr=function(t,n){return Jo(t,t,go(),n)},xr=function(t){return yr(t,gr)},wr=function(t,n){return Jo(t,t,go(),vr(n))},Sr=function(t){return yr(t,hr)},kr=function(t,n){return Jo(t,t,go(),Go(n))},Cr=function(t,n){return Jo(t,t,go(),Ko(n))},Or=function(t,n){return Jo(t,t,go(),Xo(n))},Er=function(t){return Jo(t,t,po(),qo())},Tr=function(t,n){return Jo(t,t,po(),n)},Br=function(t){return Tr(t,mr)},Ar=function(t){return Tr(t,gr)},Dr=function(t){return Tr(t,hr)},_r=function(t,n){return Tr(t,Go(n))},Mr=function(t,n){return Jo(t,t,mo(n),qo())},Fr=function(t,n,e){return Jo(t,t,mo(n),e)},Ir=function(t,n){return Fr(t,n,mr)},Vr=function(t,n){return Fr(t,n,gr)},Rr=function(t,n,e){return Fr(t,n,vr(e))},Hr=function(t,n){return Fr(t,n,pr)},Nr=function(t,n){return Fr(t,n,hr)},Pr=function(t,n,e){return Fr(t,n,Go(e))},zr=function(t,n){return $o(t,n)},Lr=function(t,n){return he(t.element(),n.event().target())},jr=function(t){if(!Dt(t,"can")&&!Dt(t,"abort")&&!Dt(t,"run"))throw new Error("EventHandler defined by: "+Ro(t,null,2)+" does not have can, abort, or run!");return cr("Extracting event.handler",Wo([Mr("can",nt(!0)),Mr("abort",nt(!1)),Mr("run",tt)]),t)},Ur=function(e){var n,o,r,i,t=(n=e,o=function(t){return t.can},function(){for(var e=[],t=0;t "):o[0].name();return Tt(r,{handler:n,purpose:nt(e)})})});return At(n,{})},Ji=function(t){return ur("custom.definition",Go([Jo("dom","dom",go(),Go([br("tag"),Mr("styles",{}),Mr("classes",[]),Mr("attributes",{}),Er("value"),Er("innerHtml")])),br("components"),br("uid"),Mr("events",{}),Mr("apis",{}),Jo("eventOrder","eventOrder",(n={"alloy.execute":["disabling","alloy.base.behaviour","toggling","typeaheadevents"],"alloy.focus":["alloy.base.behaviour","focusing","keying"],"alloy.system.init":["alloy.base.behaviour","disabling","toggling","representing"],input:["alloy.base.behaviour","representing","streaming","invalidating"],"alloy.system.detached":["alloy.base.behaviour","representing","item-events","tooltipping"],mousedown:["focusing","alloy.base.behaviour","item-type-events"],mouseover:["item-type-events","tooltipping"]},lo.mergeWithThunk(nt(n))),lr()),Er("domModification")]),t);var n},Zi=function(t,n){var e=je(t,n);return e===undefined||""===e?[]:e.split(" ")},Qi=function(t){return t.dom().classList!==undefined},tu=function(t){return Zi(t,"class")},nu=function(t,n){return r=n,i=Zi(e=t,o="class").concat([r]),ze(e,o,i.join(" ")),!0;var e,o,r,i},eu=function(t,n){return r=n,0<(i=R(Zi(e=t,o="class"),function(t){return t!==r})).length?ze(e,o,i.join(" ")):Ge(e,o),!1;var e,o,r,i},ou=function(t,n){Qi(t)?t.dom().classList.add(n):nu(t,n)},ru=function(t,n){var e;Qi(t)?t.dom().classList.remove(n):eu(t,n),0===(Qi(e=t)?e.dom().classList:tu(e)).length&&Ge(e,"class")},iu=function(t,n){return Qi(t)&&t.dom().classList.contains(n)},uu=function(n,t){F(t,function(t){ou(n,t)})},au=function(n,t){F(t,function(t){ru(n,t)})},cu=function(t){return t.style!==undefined},su=function(t,n,e){if(!S(e))throw x.console.error("Invalid call to CSS.set. Property ",n,":: Value ",e,":: Element ",t),new Error("CSS value must be a string: "+e);cu(t)&&t.style.setProperty(n,e)},fu=function(t,n){cu(t)&&t.style.removeProperty(n)},lu=function(t,n,e){var o=t.dom();su(o,n,e)},du=function(t,n){var e=t.dom();rt(n,function(t,n){su(e,n,t)})},mu=function(t,n){var e=t.dom();rt(n,function(t,n){t.fold(function(){fu(e,n)},function(t){su(e,n,t)})})},gu=function(t,n){var e=t.dom(),o=x.window.getComputedStyle(e).getPropertyValue(n),r=""!==o||Zr(t)?o:pu(e,n);return null===r?undefined:r},pu=function(t,n){return cu(t)?t.style.getPropertyValue(n):""},hu=function(t,n){var e=t.dom(),o=pu(e,n);return et.from(o).filter(function(t){return 0"}),lr()),Of=zr("schema",function(){return[Er("preprocess")]}),Ef=Mr("defaults",nt({})),Tf=Mr("overrides",nt({})),Bf=Go([wf,Sf,kf,Cf,Ef,Tf]),Af=Go([wf,Sf,kf,Ef,Tf]),Df=Go([wf,Sf,kf,Cf,Ef,Tf]),_f=Go([wf,Of,kf,br("unit"),Cf,Ef,Tf]),Mf=function(t){return t.fold(et.some,et.none,et.some,et.some)},Ff=function(t){var n=function(t){return t.name};return t.fold(n,n,n,n)},If=function(e,o){return function(t){var n=cr("Converting part type",o,t);return e(n)}},Vf=If(xf.required,Bf),Rf=If(xf.external,Af),Hf=If(xf.optional,Df),Nf=If(xf.group,_f),Pf=nt("entirety"),zf=/* */Object.freeze({required:Vf,external:Rf,optional:Hf,group:Nf,asNamedPart:Mf,name:Ff,asCommon:function(t){return t.fold(d,d,d,d)},original:Pf}),Lf=function(t,n,e,o){return wt(n.defaults(t,e,o),e,{uid:t.partUids[n.name]},n.overrides(t,e,o))},jf=function(r,t){var n={};return F(t,function(t){Mf(t).each(function(e){var o=Uf(r,e.pname);n[e.name]=function(t){var n=cr("Part: "+e.name+" in "+r,Go(e.schema),t);return ao({},o,{config:t,validated:n})}})}),n},Uf=function(t,n){return{uiType:yf(),owner:t,name:n}},Wf=function(t,n,e){return{uiType:yf(),owner:t,name:n,config:e,validated:{}}},Gf=function(t){return W(t,function(t){return t.fold(et.none,et.some,et.none,et.none).map(function(t){return kr(t.name,t.schema.concat([Zu(Pf())]))}).toArray()})},Xf=function(t){return M(t,Ff)},Yf=function(t,n,e){return o=n,i={},r={},F(e,function(t){t.fold(function(o){i[o.pname]=vf(!0,function(t,n,e){return o.factory.sketch(Lf(t,o,n,e))})},function(t){var n=o.parts[t.name];r[t.name]=nt(t.factory.sketch(Lf(o,t,n[Pf()]),n))},function(o){i[o.pname]=vf(!1,function(t,n,e){return o.factory.sketch(Lf(t,o,n,e))})},function(r){i[r.pname]=bf(!0,function(n,t,e){var o=n[r.name];return M(o,function(t){return r.factory.sketch(wt(r.defaults(n,t,e),t,r.overrides(n,t)))})})})}),{internals:nt(i),externals:nt(r)};var o,i,r},qf=function(t,n,e){return hf(et.some(t),n,n.components,e)},Kf=function(t,n,e){var o=n.partUids[e];return t.getSystem().getByUid(o).toOption()},$f=function(t,n,e){return Kf(t,n,e).getOrDie("Could not find part: "+e)},Jf=function(t,n,e){var o={},r=n.partUids,i=t.getSystem();return F(e,function(t){o[t]=i.getByUid(r[t])}),it(o,nt)},Zf=function(t,n){var e=t.getSystem();return it(n.partUids,function(t,n){return nt(e.getByUid(t))})},Qf=function(t){return Q(t.partUids)},tl=function(t,n,e){var o={},r=n.partUids,i=t.getSystem();return F(e,function(t){o[t]=i.getByUid(r[t]).getOrDie()}),it(o,nt)},nl=function(n,t){var e=Xf(t);return Bt(M(e,function(t){return{key:t,value:n+"-"+t}}))},el=function(n){return Jo("partUids","partUids",vo(function(t){return nl(t.uid,n)}),lr())},ol=/* */Object.freeze({generate:jf,generateOne:Wf,schemas:Gf,names:Xf,substitutes:Yf,components:qf,defaultUids:nl,defaultUidsSchema:el,getAllParts:Zf,getAllPartNames:Qf,getPart:Kf,getPartOrDie:$f,getParts:Jf,getPartsOrDie:tl}),rl=function(t,n,e,o,r){var i,u,a=(u=r,(0<(i=o).length?[kr("parts",i)]:[]).concat([br("uid"),Mr("dom",{}),Mr("components",[]),Zu("originalSpec"),Mr("debug.sketcher",{})]).concat(u));return cr(t+" [SpecSchema]",Wo(a.concat(n)),e)},il=function(t,n,e,o,r){var i=ul(r),u=Gf(e),a=el(e),c=rl(t,n,i,u,[a]),s=Yf(0,c,e);return o(c,qf(t,c,s.internals()),i,s.externals())},ul=function(t){return t.hasOwnProperty("uid")?t:ao({},t,{uid:Di("uid")})};function al(t){return t.uid!==undefined}var cl,sl,fl=Wo([br("name"),br("factory"),br("configFields"),Mr("apis",{}),Mr("extraApis",{})]),ll=Wo([br("name"),br("factory"),br("configFields"),br("partFields"),Mr("apis",{}),Mr("extraApis",{})]),dl=function(t){var i=cr("Sketcher for "+t.name,fl,t),n=it(i.apis,Pi),e=it(i.extraApis,function(t,n){return Vi(t,n)});return ao({name:nt(i.name),partFields:nt([]),configFields:nt(i.configFields),sketch:function(t){return n=i.name,e=i.configFields,o=i.factory,r=ul(t),o(rl(n,e,r,[],[]),r);var n,e,o,r}},n,e)},ml=function(t){var n=cr("Sketcher for "+t.name,ll,t),e=jf(n.name,n.partFields),o=it(n.apis,Pi),r=it(n.extraApis,function(t,n){return Vi(t,n)});return ao({name:nt(n.name),partFields:nt(n.partFields),configFields:nt(n.configFields),sketch:function(t){return il(n.name,n.configFields,n.partFields,n.factory,t)},parts:nt(e)},o,r)},gl=function(t){return"input"===Fe(t)&&"radio"!==je(t,"type")||"textarea"===Fe(t)},pl=/* */Object.freeze({getCurrent:function(t,n,e){return n.find(t)}}),hl=[br("find")],vl=aa({fields:hl,name:"composing",apis:pl}),bl=function(t,n,e,o){var r=t+n;return o',e.getDoc());return Ee(t,Qn.fromDom(n.extractContents())),n.insertNode(t.dom()),ye(t).each(function(t){return t.dom().normalize()}),Jc(t).map(function(t){var n;e.selection.setCursorLocation(t.dom(),"img"===Fe(n=t)?1:qc(n).fold(function(){return we(n).length},function(t){return t.length}))}),t})},Gg=function(t){return Ru(t,'[data-mce-type="autocompleter"]')},Xg=/[\u00a0 \t\r\n]/,Yg=function(t,n){return t.toString().substring(n.length).replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},qg=function(t,u,a,c){return void 0===c&&(c=0),(n=u).collapsed&&3===n.startContainer.nodeType?Ug(t,u.startContainer,u.startOffset,function(e,o,r,t){var i=t.getOr(r.length);return function(t,n,e,o){var r;for(r=n-1;0<=r;r--){var i=t.charAt(r);if(Xg.test(i))return et.none();if(i===e)break}return-1===r||n-r=t.minChars&&t.matches.getOrThunk(function(){return e=n.dom,o=function(t,n,e,o){var r=o.getOr(e.length);return 0===r?t.kontinue():t.finish(/\s/.test(e.charAt(r-1)))},function(t){var n=tp(t.startContainer,t.startOffset);return Ug(e,n.element,n.offset,o).fold(nt(!0),nt(!0),d)};var e,o})(e.range,r,e.text)});if(0===i.length)return et.none();var u=Jg.all(M(i,function(n){return n.fetch(e.text,n.maxResults).then(function(t){return{matchText:e.text,items:t,columns:n.columns,onAction:n.onAction}})}));return et.some({lookupData:u,context:e})},op=Go([zr("type",function(){return"autocompleteitem"}),zr("active",function(){return!1}),zr("disabled",function(){return!1}),Mr("meta",{}),xr("value"),Ar("text"),Ar("icon")]),rp=Go([xr("type"),xr("ch"),Ir("minChars",1),Mr("columns",1),Ir("maxResults",10),Dr("matches"),Sr("fetch"),Sr("onAction")]),ip=function(t){var n,e,o=t.ui.registry.getAll().popups,r=it(o,function(t){return(n=t,ur("Autocompleter",rp,n)).fold(function(t){throw new Error(sr(t))},function(t){return t});var n}),i=(n=at(r,function(t){return t.ch}),e={},F(n,function(t){e[t]={}}),Q(e)),u=st(r);return{dataset:r,triggerChars:i,lookupByChar:function(n){return R(u,function(t){return t.ch===n})}}},up=[Hr("disabled",!1),Ar("text"),Ar("shortcut"),Jo("value","value",ho(function(){return io("menuitem-value")}),lr()),Mr("meta",{})],ap=Go([xr("type"),Nr("onSetup",function(){return tt}),Nr("onAction",tt),Ar("icon")].concat(up)),cp=Go([xr("type"),Sr("getSubmenuItems"),Nr("onSetup",function(){return tt}),Ar("icon")].concat(up)),sp=Go([xr("type"),Hr("active",!1),Nr("onSetup",function(){return tt}),Sr("onAction")].concat(up)),fp=Go([xr("type"),Hr("active",!1),Ar("icon")].concat(up)),lp=Go([xr("type"),Ar("text")]),dp=Go([xr("type"),wr("fancytype",["inserttable","colorswatch"]),Nr("onAction",tt)]),mp=function(t,o,n){var r=Qc(t.element(),"."+n);if(0o}).getOr(r.length);return et.some({numColumns:e,numRows:Math.ceil(r.length/e)})}return et.none()},gp=function(t,n){return ia([lg(t,n)])},pp=function(t){return gp(io("unnamed-events"),t)},hp=[br("lazySink"),br("tooltipDom"),Mr("exclusive",!0),Mr("tooltipComponents",[]),Mr("delay",300),Rr("mode","normal",["normal","follow-highlight"]),Mr("anchor",function(t){return{anchor:"hotspot",hotspot:t,layouts:{onLtr:nt([Cc,kc,yc,wc,xc,Sc]),onRtl:nt([Cc,kc,yc,wc,xc,Sc])}}}),Yu("onHide"),Yu("onShow")],vp=/* */Object.freeze({init:function(){var e=_t(et.none()),n=_t(et.none()),o=function(){e.get().each(function(t){x.clearTimeout(t)})},t=nt("not-implemented");return Li({getTooltip:function(){return n.get()},isShowing:function(){return n.get().isSome()},setTooltip:function(t){n.set(et.some(t))},clearTooltip:function(){n.set(et.none())},clearTimer:o,resetTimer:function(t,n){o(),e.set(et.some(x.setTimeout(function(){t()},n)))},readState:t})}}),bp=io("tooltip.exclusive"),yp=io("tooltip.show"),xp=io("tooltip.hide"),wp=function(t,n,e){t.getSystem().broadcastOn([bp],{})},Sp=/* */Object.freeze({hideAllExclusive:wp,setComponents:function(t,n,e,o){e.getTooltip().each(function(t){t.getSystem().isConnected()&&Bm.set(t,o)})}}),kp=aa({fields:hp,name:"tooltipping",active:/* */Object.freeze({events:function(o,r){var e=function(n){r.getTooltip().each(function(t){Ns(t),o.onHide(n,t),r.clearTooltip()}),r.clearTimer()};return ii(j([[si(yp,function(t){r.resetTimer(function(){!function(n){if(!r.isShowing()){wp(n);var t=o.lazySink(n).getOrDie(),e=n.getSystem().build({dom:o.tooltipDom,components:o.tooltipComponents,events:ii("normal"===o.mode?[si(Wt(),function(t){Wr(n,yp)}),si(jt(),function(t){Wr(n,xp)})]:[]),behaviours:ia([Bm.config({})])});r.setTooltip(e),Vs(t,e),o.onShow(n,e),Ms.position(t,o.anchor(n),e)}}(t)},o.delay)}),si(xp,function(t){r.resetTimer(function(){e(t)},o.delay)}),si(Mn(),function(t,n){T(n.channels(),bp)&&e(t)}),yi(function(t){e(t)})],"normal"===o.mode?[si(Gt(),function(t){Wr(t,yp)}),si(Dn(),function(t){Wr(t,xp)}),si(Wt(),function(t){Wr(t,yp)}),si(jt(),function(t){Wr(t,xp)})]:[si($n(),function(t,n){Wr(t,yp)}),si(Jn(),function(t){Wr(t,xp)})]]))}}),state:vp,apis:Sp}),Cp=function(t){var n,e,o,r=Qn.fromHtml(t),i=we(r),u=(e=(n=r).dom().attributes!==undefined?n.dom().attributes:[],U(e,function(t,n){var e;return"class"===n.name?t:ao({},t,((e={})[n.name]=n.value,e))},{})),a=(o=r,Array.prototype.slice.call(o.dom().classList,0)),c=0===i.length?{}:{innerHtml:_e(r)};return ao({tag:Fe(r),classes:a,attributes:u},c)},Op=tinymce.util.Tools.resolve("tinymce.util.I18n"),Ep="tox-menu-nav__js",Tp="tox-collection__item",Bp="tox-swatch",Ap={normal:Ep,color:Bp},Dp="tox-collection__item--enabled",_p="tox-collection__item-icon",Mp="tox-collection__item-label",Fp="tox-collection__item--active",Ip=function(t){return Et(Ap,t).getOr(Ep)},Vp=tinymce.util.Tools.resolve("tinymce.Env"),Rp=function(t){var e=Vp.mac?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},n=t.split("+"),o=M(n,function(t){var n=t.toLowerCase().trim();return lt(e,n)?e[n]:t});return Vp.mac?o.join(""):o.join("+")},Hp=function(t){return{dom:{tag:"div",classes:[_p],innerHtml:t}}},Np=function(t){return{dom:{tag:"div",classes:[Mp]},components:[Bu(Op.translate(t))]}},Pp=function(t,n){return{dom:{tag:"div",classes:[Mp]},components:[{dom:{tag:t.tag,attributes:{style:t.styleAttr}},components:[Bu(Op.translate(n))]}]}},zp=function(t){return{dom:{tag:"div",classes:["tox-collection__item-accessory"],innerHtml:Rp(t)}}},Lp=function(t){return{dom:{tag:"div",classes:[_p,"tox-collection__item-checkmark"],innerHtml:_g("checkmark",t)}}},jp=function(t,n,e,o,r){var i=e?t.checkMark.orThunk(function(){return n.or(et.some("")).map(Hp)}):et.none(),u=t.ariaLabel.map(function(t){return{attributes:{title:Op.translate(t)}}}).getOr({});return{dom:St({tag:"div",classes:[Ep,Tp].concat(r?["tox-collection__item-icon-rtl"]:[])},u),optComponents:[i,t.htmlContent.fold(function(){return t.textContent.map(o)},function(t){return et.some({dom:{tag:"div",classes:[Mp],innerHtml:t}})}),t.shortcutContent.map(zp),t.caret]}},Up=["list-num-default","list-num-lower-alpha","list-num-lower-greek","list-num-lower-roman","list-num-upper-alpha","list-num-upper-roman"],Wp=["list-bull-circle","list-bull-default","list-bull-square"],Gp=function(t,r,n,i){void 0===i&&(i=et.none());var e,o,u,a,c,s,f,l=Op.isRtl()&&t.iconContent.exists(function(t){return T(Wp,t)}),d=(e=t.iconContent,e.map(function(t){return Op.isRtl()&&T(Up,t)?t+"-rtl":t})).map(function(t){return n=t,e=r.icons,o=i,et.from(e()[n]).or(o).getOrThunk(function(){return Dg(e)});var n,e,o}),m=et.from(t.meta).fold(function(){return Np},function(t){return lt(t,"style")?g(Pp,t.style):Np});return"color"===t.presets?(o=t.ariaLabel,u=t.value,a=r,{dom:(c=Bp,s=d.getOr(""),f=o.map(function(t){return' title="'+a.translate(t)+'"'}).getOr(""),Cp("custom"===u?'":"remove"===u?'
"+s+"
":'
")),optComponents:[]}):jp(t,d,n,m,l)},Xp=["input","button","textarea"],Yp=function(t,n,e){n.disabled&&Qp(t,n,e)},qp=function(t){return T(Xp,Fe(t.element()))},Kp=function(t){ze(t.element(),"disabled","disabled")},$p=function(t){Ge(t.element(),"disabled")},Jp=function(t){ze(t.element(),"aria-disabled","true")},Zp=function(t){ze(t.element(),"aria-disabled","false")},Qp=function(n,t,e){t.disableClass.each(function(t){ou(n.element(),t)}),(qp(n)?Kp:Jp)(n)},th=function(n,t,e){t.disableClass.each(function(t){ru(n.element(),t)}),(qp(n)?$p:Zp)(n)},nh=function(t){return qp(t)?We(t.element(),"disabled"):"true"===je(t.element(),"aria-disabled")},eh=/* */Object.freeze({enable:th,disable:Qp,isDisabled:nh,onLoad:Yp,set:function(t,n,e,o){(o?Qp:th)(t,n,e)}}),oh=/* */Object.freeze({exhibit:function(t,n,e){return Ui({classes:n.disabled?n.disableClass.map(q).getOr([]):[]})},events:function(t,n){return ii([ui(Fn(),function(t,n){return nh(t)}),ta(t,n,Yp)])}}),rh=[Mr("disabled",!1),Er("disableClass")],ih=aa({fields:rh,name:"disabling",active:oh,apis:eh}),uh=function(t){return ih.config({disabled:t,disableClass:"tox-collection__item--state-disabled"})},ah=function(t){return ih.config({disabled:t})},ch=function(t){return ih.config({disabled:t,disableClass:"tox-tbtn--disabled"})},sh=function(t,n){var e=t.getApi(n);return function(t){t(e)}},fh=function(e,o){return bi(function(t){sh(e,t)(function(t){var n=e.onSetup(t);null!==n&&n!==undefined&&o.set(n)})})},lh=function(n,e){return yi(function(t){return sh(n,t)(e.get())})};(Hg=Rg||(Rg={}))[Hg.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",Hg[Hg.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX";var dh,mh,gh=Rg,ph={"alloy.execute":["disabling","alloy.base.behaviour","toggling","item-events"]},hh=function(t){return W(t,function(t){return t.toArray()})},vh=function(t,n,e){var o,r,i=_t(tt);return{type:"item",dom:n.dom,components:hh(n.optComponents),data:t.data,eventOrder:ph,hasSubmenu:t.triggersSubmenu,itemBehaviours:ia([lg("item-events",[(o=t,r=e,wi(function(t,n){sh(o,t)(o.onAction),o.triggersSubmenu||r!==gh.CLOSE_ON_EXECUTE||(Wr(t,Nn()),n.stop())})),fh(t,i),lh(t,i)]),uh(t.disabled),Bm.config({})].concat(t.itemBehaviours))}},bh=function(t){return{value:t.value,meta:St({text:t.text.getOr("")},t.meta)}},yh=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),xh=function(t,n){var e,o=Op.translate(t),r=(e=o,yh.DOM.encode(e));if(0'+t+""})}return r},wh=nt(jf("item-widget",gg())),Sh=io("cell-over"),kh=io("cell-execute"),Ch=function(n,e,t){var o,r=function(t){return Gr(t,kh,{row:n,col:e})};return _u({dom:{tag:"div",attributes:(o={role:"button"},o["aria-labelledby"]=t,o)},behaviours:ia([lg("insert-table-picker-cell",[si(Wt(),Xm.focus),si(Fn(),r),si(Rn(),r)]),rg.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Xm.config({onFocus:function(t){return Gr(t,Sh,{row:n,col:e})}})])})},Oh=function(t){return{value:nt(t)}},Eh=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Th=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Bh=function(t){return Eh.test(t)||Th.test(t)},Ah=function(t){var n,e=(n=t.value().replace(Eh,function(t,n,e,o){return n+n+e+e+o+o}),{value:nt(n)}),o=Th.exec(e.value());return null===o?["FFFFFF","FF","FF","FF"]:o},Dh=function(t){var n=t.toString(16);return 1===n.length?"0"+n:n},_h=function(t){var n=Dh(t.red())+Dh(t.green())+Dh(t.blue());return Oh(n)},Mh=Math.min,Fh=Math.max,Ih=Math.round,Vh=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,Rh=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,Hh=function(t,n,e,o){return{red:nt(t),green:nt(n),blue:nt(e),alpha:nt(o)}},Nh=function(t){var n=parseInt(t,10);return n.toString()===t&&0<=n&&n<=255},Ph=function(t){var n,e,o,r=(t.hue()||0)%360,i=t.saturation()/100,u=t.value()/100;if(i=Fh(0,Mh(i,1)),u=Fh(0,Mh(u,1)),0===i)return n=e=o=Ih(255*u),Hh(n,e,o,1);var a=r/60,c=u*i,s=c*(1-Math.abs(a%2-1)),f=u-c;switch(Math.floor(a)){case 0:n=c,e=s,o=0;break;case 1:n=s,e=c,o=0;break;case 2:n=0,e=c,o=s;break;case 3:n=0,e=s,o=c;break;case 4:n=s,e=0,o=c;break;case 5:n=c,e=0,o=s;break;default:n=e=o=0}return n=Ih(255*(n+f)),e=Ih(255*(e+f)),o=Ih(255*(o+f)),Hh(n,e,o,1)},zh=function(t){var n=Ah(t),e=parseInt(n[1],16),o=parseInt(n[2],16),r=parseInt(n[3],16);return Hh(e,o,r,1)},Lh=function(t,n,e,o){var r=parseInt(t,10),i=parseInt(n,10),u=parseInt(e,10),a=parseFloat(o);return Hh(r,i,u,a)},jh=function(t){return"rgba("+t.red()+","+t.green()+","+t.blue()+","+t.alpha()+")"},Uh=nt(Hh(255,0,0,1)),Wh=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),Gh="tinymce-custom-colors",Xh="choiceitem",Yh=[{type:Xh,text:"Turquoise",value:"#18BC9B"},{type:Xh,text:"Green",value:"#2FCC71"},{type:Xh,text:"Blue",value:"#3598DB"},{type:Xh,text:"Purple",value:"#9B59B6"},{type:Xh,text:"Navy Blue",value:"#34495E"},{type:Xh,text:"Dark Turquoise",value:"#18A085"},{type:Xh,text:"Dark Green",value:"#27AE60"},{type:Xh,text:"Medium Blue",value:"#2880B9"},{type:Xh,text:"Medium Purple",value:"#8E44AD"},{type:Xh,text:"Midnight Blue",value:"#2B3E50"},{type:Xh,text:"Yellow",value:"#F1C40F"},{type:Xh,text:"Orange",value:"#E67E23"},{type:Xh,text:"Red",value:"#E74C3C"},{type:Xh,text:"Light Gray",value:"#ECF0F1"},{type:Xh,text:"Gray",value:"#95A5A6"},{type:Xh,text:"Dark Yellow",value:"#F29D12"},{type:Xh,text:"Dark Orange",value:"#D35400"},{type:Xh,text:"Dark Red",value:"#C0392B"},{type:Xh,text:"Medium Gray",value:"#BDC3C7"},{type:Xh,text:"Dark Gray",value:"#7E8C8D"},{type:Xh,text:"Black",value:"#000000"},{type:Xh,text:"White",value:"#ffffff"}],qh=function P_(n){void 0===n&&(n=10);var t,e=Wh.getItem(Gh),o=S(e)?JSON.parse(e):[],r=n-(t=o).length<0?t.slice(0,n):t,i=function(t){r.splice(t,1)};return{add:function(t){E(r,t).each(i),r.unshift(t),r.length>n&&r.pop(),Wh.setItem(Gh,JSON.stringify(r))},state:function(){return r.slice(0)}}}(10),Kh=function(t){var n,e=[];for(n=0;n=r.minChars){var o=vl.getCurrent(e).bind(function(t){return Dl.getHighlighted(t).map(Lm.getValue)});r.previewing.set(!0),Zb(r,u(t),t,e,i,function(t){vl.getCurrent(e).each(function(t){o.fold(function(){r.model.selectsOver&&Dl.highlightFirst(t)},function(n){Dl.highlightBy(t,function(t){return Lm.getValue(t).value===n.value}),Dl.getHighlighted(t).orThunk(function(){return Dl.highlightFirst(t),et.none()})})})},xb.HighlightFirst).get(tt)}},cancelEvent:Pn()}),km.config({mode:"special",onDown:function(t,n){return e(t,n,Dl.highlightFirst),et.some(!0)},onEscape:function(t){var n=Pb.getCoupled(t,"sandbox");return Js.isOpen(n)?(Js.close(n),et.some(!0)):et.none()},onUp:function(t,n){return e(t,n,Dl.highlightLast),et.some(!0)},onEnter:function(n){var t=Pb.getCoupled(n,"sandbox"),e=Js.isOpen(t);if(e&&!r.previewing.get())return vl.getCurrent(t).bind(function(t){return Dl.getHighlighted(t)}).map(function(t){return Gr(n,ly(),{item:t}),!0});var o=Lm.getValue(n);return Wr(n,Pn()),r.onExecute(t,n,o),e&&Js.close(t),et.some(!0)}}),rg.config({toggleClass:r.markers.openClass,aria:{mode:"expanded"}}),Pb.config({others:{sandbox:function(t){return oy(r,t,{onOpen:function(){return rg.on(t)},onClose:function(){return rg.off(t)}})}}}),lg("typeaheadevents",[wi(function(t){var n=tt;ty(r,u(t),t,i,n,xb.HighlightFirst).get(tt)}),si(ly(),function(t,n){var e=Pb.getCoupled(t,"sandbox");ry(r.model,t,n.event().item()),Wr(t,Pn()),r.onItemExecute(t,e,n.event().item(),Lm.getValue(t)),Js.close(e),uy(t)})].concat(r.dismissOnBlur?[si(Dn(),function(t){var n=Pb.getCoupled(t,"sandbox");Wl(n.element()).isNone()&&Js.close(n)})]:[]))];return{uid:r.uid,dom:fy(wt(r,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:ao({},o,uf(r.typeaheadBehaviours,a)),eventOrder:r.eventOrder}}}),hy=function(t,n,e){var o=by(t,n,e);return Rb.sketch(o)},vy=function(t,n){return hy(t,n,[])},by=function(t,n,e){return{dom:yy(e),components:t.toArray().concat([n])}},yy=function(t){return{tag:"div",classes:["tox-form__group"].concat(t)}},xy=function(t,n){return Rb.parts().label({dom:{tag:"label",classes:["tox-label"],innerHtml:n.translate(t)}})},wy=function(t){return"separator"===t.type},Sy={type:"separator"},ky=function(t,e){var n=U(t,function(t,n){return S(n)?""===n?t:"|"===n?0"},Lw=function(o,t,n){return{uid:o.uid,dom:o.dom,components:t,behaviours:uf(o.formBehaviours,[Lm.config({store:{mode:"manual",getValue:function(t){var n=Zf(t,o);return it(n,function(t,n){return t().bind(function(t){var n,e=vl.getCurrent(t);return n="missing current",e.fold(function(){return vt.error(n)},vt.value)}).map(Lm.getValue)})},setValue:function(e,t){rt(t,function(n,t){Kf(e,o,t).each(function(t){vl.getCurrent(t).each(function(t){Lm.setValue(t,n)})})})}}})]),apis:{getField:function(t,n){return Kf(t,o,n).bind(vl.getCurrent)}}}},jw={getField:Pi(function(t,n,e){return t.getField(n,e)}),sketch:function(t){var e,n=(e=[],{field:function(t,n){return e.push(t),Wf("form",zw(t),n)},record:function(){return e}}),o=t(n),r=n.record(),i=M(r,function(t){return Vf({name:t,pname:zw(t)})});return il("form",Pw,i,Lw,o)}},Uw=io("valid-input"),Ww=io("invalid-input"),Gw=io("validating-input"),Xw="colorcustom.rgb.",Yw=function(d,m,g,p){var h=function(t,n,e,o,r){var i,u,a=d(Xw+"range"),c=[Rb.parts().label({dom:{tag:"label",innerHtml:e,attributes:{"aria-label":o}}}),Rb.parts().field({data:r,factory:Ty,inputAttributes:ao({type:"text"},"hex"===n?{"aria-live":"polite"}:{}),inputClasses:[m("textfield")],inputBehaviours:ia([(i=n,u=t,Hy.config({invalidClass:m("invalid"),notify:{onValidate:function(t){Gr(t,Gw,{type:i})},onValid:function(t){Gr(t,Uw,{type:i,value:Lm.getValue(t)})},onInvalid:function(t){Gr(t,Ww,{type:i,value:Lm.getValue(t)})}},validator:{validate:function(t){var n=Lm.getValue(t),e=u(n)?vt.value(!0):vt.error(d("aria.input.invalid"));return qb.pure(e)},validateOnLoad:!1}})),zy.config({})]),onSetValue:function(t){Hy.isInvalid(t)&&Hy.run(t).get(tt)}})],s="hex"!==n?[Rb.parts()["aria-descriptor"]({text:a})]:[];return{dom:{tag:"div",attributes:{role:"presentation"}},components:c.concat(s)}},v=function(t,n){var e=n.red(),o=n.green(),r=n.blue();Lm.setValue(t,{red:e,green:o,blue:r})},b=Ag({dom:{tag:"div",classes:[m("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),y=function(t,n){b.getOpt(t).each(function(t){lu(t.element(),"background-color","#"+n.value())})};return dl({factory:function(){var e={red:nt(_t(et.some(255))),green:nt(_t(et.some(255))),blue:nt(_t(et.some(255))),hex:nt(_t(et.some("ffffff")))},o=function(t){return e[t]().get()},i=function(t,n){e[t]().set(n)},r=function(t){var n=t.red(),e=t.green(),o=t.blue();i("red",et.some(n)),i("green",et.some(e)),i("blue",et.some(o))},n=function(t,n){var e=n.event();"hex"!==e.type()?i(e.type(),et.none()):p(t)},u=function(r,t,n){var e=parseInt(n,10);i(t,et.some(e)),o("red").bind(function(e){return o("green").bind(function(n){return o("blue").map(function(t){return Hh(e,n,t,1)})})}).each(function(t){var n,e,o=(n=r,e=_h(t),jw.getField(n,"hex").each(function(t){Xm.isFocused(t)||Lm.setValue(n,{hex:e.value()})}),e);y(r,o)})},a=function(t,n){var e=n.event();"hex"===e.type()?function(t,n){g(t);var e=Oh(n);i("hex",et.some(n));var o=zh(e);v(t,o),r(o),Gr(t,$y(),{hex:e}),y(t,e)}(t,e.value()):u(t,e.type(),e.value())},t=function(t){return{label:d(Xw+t+".label"),description:d(Xw+t+".description")}},c=t("red"),s=t("green"),f=t("blue"),l=t("hex");return wt(jw.sketch(function(t){return{dom:{tag:"form",classes:[m("rgb-form")],attributes:{"aria-label":d("aria.color.picker")}},components:[t.field("red",Rb.sketch(h(Nh,"red",c.label,c.description,255))),t.field("green",Rb.sketch(h(Nh,"green",s.label,s.description,255))),t.field("blue",Rb.sketch(h(Nh,"blue",f.label,f.description,255))),t.field("hex",Rb.sketch(h(Bh,"hex",l.label,l.description,"ffffff"))),b.asSpec()],formBehaviours:ia([Hy.config({invalidClass:m("form-invalid")}),lg("rgb-form-events",[si(Uw,a),si(Ww,n),si(Gw,n)])])}}),{apis:{updateHex:function(t,n){var e,o;Lm.setValue(t,{hex:n.value()}),e=t,o=zh(n),v(e,o),r(o),y(t,n)}}})},name:"RgbForm",configFields:[],apis:{updateHex:function(t,n,e){t.updateHex(n,e)}},extraApis:{}})},qw=function(t,o){var r=Hw.parts().spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[o("sv-palette-spectrum")]}}),i=Hw.parts().thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[o("sv-palette-thumb")],innerHtml:"'}}),u=function(t,n){var e=t.width,o=t.height,r=t.getContext("2d");if(null!==r){r.fillStyle=n,r.fillRect(0,0,e,o);var i=r.createLinearGradient(0,0,e,0);i.addColorStop(0,"rgba(255,255,255,1)"),i.addColorStop(1,"rgba(255,255,255,0)"),r.fillStyle=i,r.fillRect(0,0,e,o);var u=r.createLinearGradient(0,0,0,o);u.addColorStop(0,"rgba(0,0,0,0)"),u.addColorStop(1,"rgba(0,0,0,1)"),r.fillStyle=u,r.fillRect(0,0,e,o)}};return dl({factory:function(t){var n=nt({x:nt(0),y:nt(0)}),e=ia([vl.config({find:et.some}),Xm.config({})]);return Hw.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[o("sv-palette")]},model:{mode:"xy",getInitialValue:n},rounded:!1,components:[r,i],onChange:function(t,n,e){Gr(t,Zy(),{value:e})},onInit:function(t,n,e,o){u(e.element().dom(),jh(Uh()))},sliderBehaviours:e})},name:"SaturationBrightnessPalette",configFields:[],apis:{setRgba:function(t,n,e){var o,r;o=e,r=n.components()[0].element().dom(),u(r,jh(o))}},extraApis:{}})},Kw=function(c,s){return dl({name:"ColourPicker",configFields:[br("dom"),Mr("onValidHex",tt),Mr("onInvalidHex",tt)],factory:function(t){var a,v,e=Yw(c,s,t.onValidHex,t.onInvalidHex),o=qw(c,s),b={paletteRgba:nt(_t(Uh()))},n=Ag(o.sketch({})),r=Ag(e.sketch({})),i=function(t,e){n.getOpt(t).each(function(t){var n=zh(e);b.paletteRgba().set(n),o.setRgba(t,n)})},u=function(t,n){r.getOpt(t).each(function(t){e.updateHex(t,n)})},y=function(n,e,t){F(t,function(t){t(n,e)})};return{uid:t.uid,dom:t.dom,components:[n.asSpec(),Nw(c,s),r.asSpec()],behaviours:ia([lg("colour-picker-events",[si(Zy(),(v=[u],function(t,n){var e,o,r,i,u,a,c,s,f,l=n.event().value(),d=b.paletteRgba().get(),m=(i=r=0,u=(e=d).red()/255,a=e.green()/255,c=e.blue()/255,s=Math.min(u,Math.min(a,c)),f=Math.max(u,Math.max(a,c)),s===f?Ky(0,0,100*(i=s)):(r=60*((r=u===s?3:c===s?1:5)-(u===s?a-c:c===s?u-a:c-u)/(f-s)),o=(f-s)/f,i=f,Ky(Math.round(r),Math.round(100*o),Math.round(100*i)))),g=Ky(m.hue(),l.x(),100-l.y()),p=Ph(g),h=_h(p);y(t,h,v)})),si(Jy(),(a=[i,u],function(t,n){var e,o,r,i=n.event().value(),u=(e=i.y(),o=Ky((100-e)/100*360,100,100),r=Ph(o),_h(r));y(t,u,a)}))]),vl.config({find:function(t){return r.getOpt(t)}}),km.config({mode:"acyclic"})])}}})},$w=function(){return vl.config({find:et.some})},Jw=function(t){return vl.config({find:t.getOpt})},Zw=function(t){return vl.config({find:function(n){return Se(n.element(),t).bind(function(t){return n.getSystem().getByDom(t).toOption()})}})},Qw={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},tS=function(t){return Qw[t]},nS=Go([Mr("preprocess",d),Mr("postprocess",d)]),eS=function(t,n,e){return Lm.config(wt({store:{mode:"manual",getValue:n,setValue:e}},t.map(function(t){return{store:{initialValue:t}}}).getOr({})))},oS=function(t,n,e){return eS(t,function(t){return n(t.element())},function(t,n){return e(t.element(),n)})},rS=function(r,t){var i=cr("RepresentingConfigs.memento processors",nS,t);return Lm.config({store:{mode:"manual",getValue:function(t){var n=r.get(t),e=Lm.getValue(n);return i.postprocess(e)},setValue:function(t,n){var e=i.preprocess(n),o=r.get(t);Lm.setValue(o,e)}}})},iS=eS,uS=function(t){return oS(t,_e,Me)},aS=function(t){return Lm.config({store:{mode:"memory",initialValue:t}})},cS=function(r,n){var e=function(t,n){n.stop()},o=function(t){return function(n,e){F(t,function(t){t(n,e)})}},i=function(t,n){if(!ih.isDisabled(t)){var e=n.event().raw();a(t,e.dataTransfer.files)}},u=function(t,n){var e=n.event().raw().target.files;a(t,e)},a=function(t,n){var e,o;Lm.setValue(t,(e=n,o=new RegExp("("+".jpg,.jpeg,.png,.gif".split(/\s*,\s*/).join("|")+")$","i"),R(Z(e),function(t){return o.test(t.name)}))),Gr(t,Ob,{name:r.name})},c=Ag({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:ia([lg("input-file-events",[pi(Rn())])])}),t=r.label.map(function(t){return xy(t,n)}),s=Rb.parts().field({factory:{sketch:function(t){return{uid:t.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:ia([aS([]),$w(),ih.config({}),rg.config({toggleClass:"dragenter",toggleOnExecute:!1}),lg("dropzone-events",[si("dragenter",o([e,rg.toggle])),si("dragleave",o([e,rg.toggle])),si("dragover",e),si("drop",o([e,i])),si($t(),u)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:n.translate("Drop an image here")}},Bg.sketch({dom:{tag:"button",innerHtml:n.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[c.asSpec()],action:function(t){c.get(t).element().dom().click()},buttonBehaviours:ia([zy.config({})])})]}]}}}});return hy(t,s,["tox-form__group--stretched"])},sS=io("alloy-fake-before-tabstop"),fS=io("alloy-fake-after-tabstop"),lS=function(t){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:t},behaviours:ia([Xm.config({ignore:!0}),zy.config({})])}},dS=function(t,n){Gr(t,Yt(),{raw:{which:9,shiftKey:n}})},mS=function(t){return Kv(t,["."+sS,"."+fS].join(","),nt(!1))},gS=function(t,n){var e=n.element();iu(e,sS)?dS(t,!0):iu(e,fS)&&dS(t,!1)},pS=function(t){return{dom:{tag:"div",classes:["tox-navobj"]},components:[lS([sS]),t,lS([fS])],behaviours:ia([Zw(1)])}},hS=!(Tn.detect().browser.isIE()||Tn.detect().browser.isEdge()),vS=function(t,n){var o,r,e=hS&&t.sandboxed,i=ao({},t.label.map(function(t){return{title:t}}).getOr({}),e?{sandbox:"allow-scripts allow-same-origin"}:{}),u=(o=e,r=_t(""),{getValue:function(t){return r.get()},setValue:function(t,n){if(o)ze(t.element(),"src","data:text/html;charset=utf-8,"+encodeURIComponent(n));else{ze(t.element(),"src","javascript:''");var e=t.element().dom().contentWindow.document;e.open(),e.write(n),e.close()}r.set(n)}}),a=t.label.map(function(t){return xy(t,n)}),c=Rb.parts().field({factory:{sketch:function(t){return pS({uid:t.uid,dom:{tag:"iframe",attributes:i},behaviours:ia([zy.config({}),Xm.config({}),iS(et.none(),u.getValue,u.setValue)])})}}});return hy(a,c,["tox-form__group--stretched"])};function bS(t,n){return wS(x.document.createElement("canvas"),t,n)}function yS(t){var n=bS(t.width,t.height);return xS(n).drawImage(t,0,0),n}function xS(t){return t.getContext("2d")}function wS(t,n,e){return t.width=n,t.height=e,t}var SS={atob:function(t){return ue.getOrDie("atob")(t)},requestAnimationFrame:function(t){ue.getOrDie("requestAnimationFrame")(t)}};function kS(t){return t.naturalWidth||t.width}function CS(t){return t.naturalHeight||t.height}var OS=window.Promise?window.Promise:function(){var i=function(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],f(t,o(r,this),o(a,this))},t=i.immediateFn||"function"==typeof window.setImmediate&&window.setImmediate||function(t){x.setTimeout(t,1)};function o(t,n){return function(){return t.apply(n,arguments)}}var e=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function u(o){var r=this;null!==this._state?t(function(){var t=r._state?o.onFulfilled:o.onRejected;if(null!==t){var n;try{n=t(r._value)}catch(e){return void o.reject(e)}o.resolve(n)}else(r._state?o.resolve:o.reject)(r._value)}):this._deferreds.push(o)}function r(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if("function"==typeof n)return void f(o(n,t),o(r,this),o(a,this))}this._state=!0,this._value=t,c.call(this)}catch(e){a.call(this,e)}}function a(t){this._state=!1,this._value=t,c.call(this)}function c(){for(var t=0,n=this._deferreds;t").css({position:"absolute",top:0,left:0,width:o.width,height:o.height,zIndex:2147483647,opacity:1e-4,cursor:e}).appendTo(d.body),Ak(d).on("mousemove touchmove",c).on("mouseup touchend",a),r.start(t)},c=function(t){if(Ik(t),t.button!==u)return a(t);t.deltaX=t.screenX-f,t.deltaY=t.screenY-l,t.preventDefault(),r.drag(t)},a=function(t){Ik(t),Ak(d).off("mousemove touchmove",c).off("mouseup touchend",a),i.remove(),r.stop&&r.stop(t)},this.destroy=function(){Ak(m).off()},Ak(m).on("mousedown touchstart",n)}var Rk,Hk,Nk,Pk,zk=0,Lk=function(n){var f=Ag({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),l=_t(1),d=_t(et.none()),m=_t({x:0,y:0,w:1,h:1}),c=_t({x:0,y:0,w:1,h:1}),s=function(t,s){g.getOpt(t).each(function(t){var e=l.get(),o=ka(t.element()),r=Ea(t.element()),i=s.dom().naturalWidth*e,u=s.dom().naturalHeight*e,a=Math.max(0,o/2-i/2),c=Math.max(0,r/2-u/2),n={left:a.toString()+"px",top:c.toString()+"px",width:i.toString()+"px",height:u.toString()+"px",position:"absolute"};du(s,n),f.getOpt(t).each(function(t){du(t.element(),n)}),d.get().each(function(t){var n=m.get();t.setRect({x:n.x*e+a,y:n.y*e+c,w:n.w*e,h:n.h*e}),t.setClampRect({x:a,y:c,w:i,h:u}),t.setViewPortRect({x:0,y:0,w:o,h:r})})})},e=function(t,n){var e,a=Qn.fromTag("img");return ze(a,"src",n),(e=a.dom(),new Jg(function(t){var n=function(){e.removeEventListener("load",n),t(e)};e.complete?t(e):e.addEventListener("load",n)})).then(function(){return g.getOpt(t).map(function(t){var n=Au({element:a});Bm.replaceAt(t,1,et.some(n));var e=c.get(),o={x:0,y:0,w:a.dom().naturalWidth,h:a.dom().naturalHeight};c.set(o);var r,u,i=Dk.inflate(o,-20,-20);return m.set(i),e.w===o.w&&e.h===o.h||(r=t,u=a,g.getOpt(r).each(function(t){var n=ka(t.element()),e=Ea(t.element()),o=u.dom().naturalWidth,r=u.dom().naturalHeight,i=Math.min(n/o,e/r);1<=i?l.set(1):l.set(i)})),s(t,a),a})})},t=gb.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[f.asSpec(),{dom:{tag:"img",attributes:{src:n}}},{dom:{tag:"div"},behaviours:ia([lg("image-panel-crop-events",[bi(function(t){g.getOpt(t).each(function(t){var n=function S(s,e,f,o,r){var l,u,n,i,a="tox-",c="tox-crid-"+zk++;function d(t,n){return{x:n.x-t.x,y:n.y-t.y,w:n.w,h:n.h}}function m(t,n,e,o){var r,i,u,a,c;r=n.x,i=n.y,u=n.w,a=n.h,r+=e*t.deltaX,i+=o*t.deltaY,(u+=e*t.deltaW)<20&&(u=20),(a+=o*t.deltaH)<20&&(a=20),c=s=Dk.clamp({x:r,y:i,w:u,h:a},f,"move"===t.name),c=d(f,c),l.fire("updateRect",{rect:c}),h(c)}function g(n){function t(t,n){n.h<0&&(n.h=0),n.w<0&&(n.w=0),Ak("#"+c+"-"+t,o).css({left:n.x,top:n.y,width:n.w,height:n.h})}Mk.each(u,function(t){Ak("#"+c+"-"+t.name,o).css({left:n.w*t.xMul+n.x,top:n.h*t.yMul+n.y})}),t("top",{x:e.x,y:e.y,w:e.w,h:n.y-e.y}),t("right",{x:n.x+n.w,y:n.y,w:e.w-n.x-n.w+e.x,h:n.h}),t("bottom",{x:e.x,y:n.y+n.h,w:e.w,h:e.h-n.y-n.h+e.y}),t("left",{x:e.x,y:n.y,w:n.x-e.x,h:n.h}),t("move",n)}function p(t){g(s=t)}function h(t){p(function e(t,n){return{x:n.x+t.x,y:n.y+t.y,w:n.w,h:n.h}}(f,t))}return u=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}],i=["top","right","bottom","left"],function v(){Ak('
').appendTo(o),Mk.each(i,function(t){Ak("#"+c,o).append(''),components:[],behaviours:ia([OE.config({channel:qD,initialData:t,updateState:function(t,n){var r=M(n.buttons,function(t){var n,e,o=Ag((e=i,mk(n=t,n.type,e)));return{name:t.name,align:t.align,memento:o}});return et.some({lookupByName:function(t,n){return e=t,o=n,N(r,function(t){return t.name===o}).bind(function(t){return t.memento.getOpt(e)});var e,o},footerButtons:r})},renderComponents:t_})])}},e_=function(t,n){return RA.parts().footer(n_(t,n))},o_=function(n,e){if(n.getRoot().getSystem().isConnected()){var o=vl.getCurrent(n.getFormWrapper()).getOr(n.getFormWrapper());return jw.getField(o,e).fold(function(){var t=n.getFooter();return OE.getState(t).get().bind(function(t){return t.lookupByName(o,e)})},function(t){return et.some(t)})}return et.none()},r_=function(c,o){var t=function(t){var n=c.getRoot();n.getSystem().isConnected()&&t(n)},s={getData:function(){var t=c.getRoot(),n=t.getSystem().isConnected()?c.getFormWrapper():t;return Lm.getValue(n)},setData:function(a){t(function(t){var n,e,o=s.getData(),r=St(o,a),i=(n=r,e=c.getRoot(),OE.getState(e).get().map(function(t){return ar(ur("data",t.dataValidator,n))}).getOr(n)),u=c.getFormWrapper();Lm.setValue(u,i)})},disable:function(t){o_(c,t).each(ih.disable)},enable:function(t){o_(c,t).each(ih.enable)},focus:function(t){o_(c,t).each(Xm.focus)},block:function(n){if(!S(n))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t(function(t){Gr(t,Db,{message:n})})},unblock:function(){t(function(t){Wr(t,_b)})},showTab:function(e){t(function(t){var n=c.getBody();OE.getState(n).get().exists(function(t){return t.isTabPanel()})&&vl.getCurrent(n).each(function(t){zD.showTab(t,e)})})},redial:function(e){t(function(t){var n=o(e);t.getSystem().broadcastOn([GD],n),t.getSystem().broadcastOn([XD],n.internalDialog),t.getSystem().broadcastOn([YD],n.internalDialog),t.getSystem().broadcastOn([qD],n.internalDialog),s.setData(n.initialData)})},close:function(){t(function(t){Wr(t,Eb)})}};return s},i_=function(t){return Bg.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close"),title:t.translate("Close")}},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:''}}],action:function(t){Wr(t,Tb)}})},u_=function(t,n,e){var o=function(t){return[Bu(e.translate(t.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:ao({},n.map(function(t){return{id:t}}).getOr({}))},components:o(t),behaviours:ia([OE.config({channel:XD,renderComponents:o})])}},a_=function(t,n){return e={title:n.shared.providers.translate(t),draggable:!0},o=n.shared.providers,r=RA.parts().title(u_(e,et.none(),o)),i=RA.parts().draghandle({dom:Cp('
')}),u=RA.parts().close(i_(o)),a=[r].concat(e.draggable?[i]:[]).concat([u]),gb.sketch({dom:Cp('
'),components:a});var e,o,r,i,u,a},c_=function(t,n){return{onClose:function(){return n.closeWindow()},onBlock:function(e){RA.setBusy(t(),function(t,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":e.message()},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:n,components:[{dom:Cp('
')}]}})},onUnblock:function(){RA.setIdle(t())}}},s_=function(t,n,e,o){var r;return _u(RA.sketch({lazySink:o.shared.getSink,onEscape:function(t){return Wr(t,Tb),et.some(!0)},useTabstopAt:function(t){return!mS(t)&&("button"!==Fe(t)||"disabled"!==je(t,"disabled"))},modalBehaviours:ia([OE.config({channel:GD,updateState:function(t,n){return et.some(n)},initialData:n}),aS({}),Xm.config({}),lg("execute-on-form",e.concat([vi(Gt(),function(t,n){km.focusIn(t)})])),lg("scroll-lock",[bi(function(){ou(Qr(),"tox-dialog__disable-scroll")}),yi(function(){ru(Qr(),"tox-dialog__disable-scroll")})])].concat(t.extraBehaviours)),eventOrder:(r={},r[Fn()]=["execute-on-form"],r[Mn()]=["reflecting","receiving"],r[Un()]=["scroll-lock","reflecting","messages","execute-on-form","alloy.base.behaviour"],r[Wn()]=["alloy.base.behaviour","execute-on-form","messages","reflecting","scroll-lock"],r),dom:{tag:"div",classes:["tox-dialog"].concat(t.extraClasses),styles:ao({position:"relative"},t.extraStyles)},components:[t.header,t.body].concat(t.footer.toArray()),dragBlockClass:"tox-dialog-wrap",parts:{blocker:{dom:Cp('
'),components:[{dom:{tag:"div",classes:["tox-dialog-wrap__backdrop"]}}]}}}))},f_=function(t,n,e){var o,r,i,u=a_(t.internalDialog.title,e),a=(o={body:t.internalDialog.body},r=e,i=$D(o,et.none(),r,!1),RA.parts().body(i)),c=e_({buttons:t.internalDialog.buttons},e.shared.providers),s=QD(function(){return m},c_(function(){return d},n)),f="normal"!==t.internalDialog.size?"large"===t.internalDialog.size?["tox-dialog--width-lg"]:["tox-dialog--width-md"]:[],l={header:u,body:a,footer:et.some(c),extraClasses:f,extraBehaviours:[],extraStyles:{}},d=s_(l,t,s,e),m=r_({getRoot:function(){return d},getBody:function(){return RA.getBody(d)},getFooter:function(){return RA.getFooter(d)},getFormWrapper:function(){var t=RA.getBody(d);return vl.getCurrent(t).getOr(t)}},n.redial);return{dialog:d,instanceApi:m}},l_=tinymce.util.Tools.resolve("tinymce.util.URI"),d_=["insertContent","setContent","execCommand","close","block","unblock"],m_=function(t){return k(t)&&-1!==d_.indexOf(t.mceAction)},g_=function(o,t,r,n){var e,i,u,a,c=a_(o.title,n),s=(i={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[pS({dom:{tag:"iframe",attributes:{src:o.url}},behaviours:ia([zy.config({}),Xm.config({})])})]}],behaviours:ia([km.config({mode:"acyclic",useTabstopAt:w(mS)})])},RA.parts().body(i)),f=o.buttons.bind(function(t){return 0===t.length?et.none():et.some(e_({buttons:t},n.shared.providers))}),l=ZD(function(){return y},c_(function(){return b},t)),d=ao({},o.height.fold(function(){return{}},function(t){return{height:t+"px","max-height":t+"px"}}),o.width.fold(function(){return{}},function(t){return{width:t+"px","max-width":t+"px"}})),m=o.width.isNone()&&o.height.isNone()?["tox-dialog--width-lg"]:[],g=new l_(o.url,{base_uri:new l_(x.window.location.href)}),p=g.protocol+"://"+g.host+(g.port?":"+g.port:""),h=_t(et.none()),v=[lg("messages",[bi(function(){var t=Yv(Qn.fromDom(x.window),"message",function(t){if(g.isSameOrigin(new l_(t.raw().origin))){var n=t.raw().data;m_(n)?function(t,n,e){switch(e.mceAction){case"insertContent":t.insertContent(e.content);break;case"setContent":t.setContent(e.content);break;case"execCommand":var o=!!C(e.ui)&&e.ui;t.execCommand(e.cmd,o,e.value);break;case"close":n.close();break;case"block":n.block(e.message);break;case"unblock":n.unblock()}}(r,y,n):!m_(e=n)&&k(e)&<(e,"mceAction")&&o.onMessage(y,n)}var e});h.set(et.some(t))}),yi(function(){h.get().each(function(t){return t.unbind()})})]),ma.config({channels:(e={},e[KD]={onReceive:function(t,n){Vu(t.element(),"iframe").each(function(t){t.dom().contentWindow.postMessage(n,p)})}},e)})],b=s_({header:c,body:s,footer:f,extraClasses:m,extraBehaviours:v,extraStyles:d},o,l,n),y=(u=b,a=function(t){u.getSystem().isConnected()&&t(u)},{block:function(n){if(!S(n))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");a(function(t){Gr(t,Db,{message:n})})},unblock:function(){a(function(t){Wr(t,_b)})},close:function(){a(function(t){Wr(t,Eb)})},sendMessage:function(n){a(function(t){t.getSystem().broadcastOn([KD],n)})}});return{dialog:b,instanceApi:y}},p_=function(t,n,e,o){var r,i,u,a,c,s,f,l,d,m,g,p=io("dialog-label"),h=io("dialog-content"),v=Ag((u={title:t.internalDialog.title,draggable:!0},a=p,c=e.shared.providers,gb.sketch({dom:Cp('
'),components:[u_(u,et.some(a),c),i_(c)],containerBehaviours:ia([sA.config({mode:"mouse",blockerClass:"blocker",getTarget:function(t){return Ru(t,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}))),b=Ag((s={body:t.internalDialog.body},f=h,l=e,d=o,$D(s,et.some(f),l,d))),y=Ag((m={buttons:t.internalDialog.buttons},g=e.shared.providers,n_(m,g))),x=QD(function(){return S},{onBlock:function(){},onUnblock:function(){},onClose:function(){return n.closeWindow()}}),w=_u({dom:{tag:"div",classes:["tox-dialog"],attributes:(r={role:"dialog"},r["aria-labelledby"]=p,r["aria-describedby"]=""+h,r)},eventOrder:(i={},i[Mn()]=[OE.name(),ma.name()],i[Fn()]=["execute-on-form"],i[Un()]=["reflecting","execute-on-form"],i),behaviours:ia([km.config({mode:"cyclic",onEscape:function(t){return Wr(t,Eb),et.some(!0)},useTabstopAt:function(t){return!mS(t)&&("button"!==Fe(t)||"disabled"!==je(t,"disabled"))}}),OE.config({channel:GD,updateState:function(t,n){return et.some(n)},initialData:t}),lg("execute-on-form",x),aS({})]),components:[v.asSpec(),b.asSpec(),y.asSpec()]}),S=r_({getRoot:function(){return w},getFooter:function(){return y.get(w)},getBody:function(){return b.get(w)},getFormWrapper:function(){var t=b.get(w);return vl.getCurrent(t).getOr(t)}},n.redial);return{dialog:w,instanceApi:S}},h_=function(t,n){return RA.parts().close(Bg.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":n.translate("Close")}},action:t,buttonBehaviours:ia([zy.config({})])}))},v_=function(){return RA.parts().title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},b_=function(t,n){return RA.parts().body({dom:{tag:"div",classes:["tox-dialog__body","todo-tox-fit"]},components:[{dom:Cp("

"+n.translate(t)+"

")}]})},y_=function(t){return RA.parts().footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:t})},x_=function(t,n){return[gb.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:t}),gb.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:n})]},w_=function(e){return RA.sketch({lazySink:e.lazySink,onEscape:function(){return e.onCancel(),et.some(!0)},dom:{tag:"div",classes:["tox-dialog"].concat(e.extraClasses)},components:[{dom:{tag:"div",classes:["tox-dialog__header"]},components:[e.partSpecs.title,e.partSpecs.close]},e.partSpecs.body,e.partSpecs.footer],parts:{blocker:{dom:Cp('
'),components:[{dom:{tag:"div",classes:["tox-dialog-wrap__backdrop"]}}]}},modalBehaviours:ia([lg("basic-dialog-events",[si(Tb,function(t,n){e.onCancel()}),si(Ab,function(t,n){e.onSubmit()})])])})},S_=function(s){var u,a,e=(u=s.backstage.shared,{open:function(t,n){var e=function(){RA.hide(r),n()},o=Ag(mk({name:"close-alert",text:"OK",primary:!0,icon:et.none()},"cancel",u.providers)),r=_u(w_({lazySink:function(){return u.getSink()},partSpecs:{title:v_(),close:h_(function(){e()},u.providers),body:b_(t,u.providers),footer:y_(x_([],[o.asSpec()]))},onCancel:function(){return e()},onSubmit:tt,extraClasses:["tox-alert-dialog"]}));RA.show(r);var i=o.get(r);Xm.focus(i)}}),o=(a=s.backstage.shared,{open:function(t,n){var e=function(t){RA.hide(i),n(t)},o=Ag(mk({name:"yes",text:"Yes",primary:!0,icon:et.none()},"submit",a.providers)),r=mk({name:"no",text:"No",primary:!0,icon:et.none()},"cancel",a.providers),i=_u(w_({lazySink:function(){return a.getSink()},partSpecs:{title:v_(),close:h_(function(){e(!1)},a.providers),body:b_(t,a.providers),footer:y_(x_([],[r,o.asSpec()]))},onCancel:function(){return e(!1)},onSubmit:function(){return e(!0)},extraClasses:["tox-confirm-dialog"]}));RA.show(i);var u=o.get(i);Xm.focus(u)}}),r=function(t,e){return BD.openUrl(function(t){var n=g_(t,{closeWindow:function(){RA.hide(n.dialog),e(n.instanceApi)}},s.editor,s.backstage);return RA.show(n.dialog),n.instanceApi},t)},i=function(t,i){return BD.open(function(t,n,e){var o=n,r=f_({dataValidator:e,initialData:o,internalDialog:t},{redial:BD.redial,closeWindow:function(){RA.hide(r.dialog),i(r.instanceApi)}},s.backstage);return RA.show(r.dialog),r.instanceApi.setData(o),r.instanceApi},t)},c=function(t,u,a,c){return BD.open(function(t,n,e){var o=ar(ur("data",e,n)),r=p_({dataValidator:e,initialData:o,internalDialog:t},{redial:BD.redial,closeWindow:function(){Eg.hide(i),a(r.instanceApi)}},s.backstage,c),i=_u(Eg.sketch({lazySink:s.backstage.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{},inlineBehaviours:ia([lg("window-manager-inline-events",[si(Gn(),function(t,n){Wr(r.dialog,Tb)})])])}));return Eg.showAt(i,u,Mu(r.dialog)),r.instanceApi.setData(o),km.focusIn(r.dialog),r.instanceApi},t)};return{open:function(t,n,e){return n!==undefined&&"toolbar"===n.inline?c(t,s.backstage.shared.anchors.toolbar(),e,n.ariaAttrs):n!==undefined&&"cursor"===n.inline?c(t,s.backstage.shared.anchors.cursor(),e,n.ariaAttrs):i(t,e)},openUrl:function(t,n){return r(t,n)},alert:function(t,n){e.open(t,function(){n()})},close:function(t){t.close()},confirm:function(t,n){o.open(t,function(t){n(t)})}}};uo.add("silver",function(t){var n=wA(t),e=n.mothership,o=n.uiMothership,r=n.backstage,i=n.renderUI,u=n.getUi;_A(t,r),eo(io("silver-demo"),e),eo(io("silver-ui-demo"),o),jv(t,r.shared);var a=S_({editor:t,backstage:r});return{renderUI:i,getWindowManagerImpl:nt(a),getNotificationManagerImpl:function(){return Vg(t,{backstage:r},o)},ui:u()}}),function q_(){}}(window);