auto-vue-manual 0.2.34 → 0.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49937,7 +49937,8 @@ const aue = 8, bNe = "undo redo cut copy paste indent2em | image | styleselect f
|
|
|
49937
49937
|
clear: N,
|
|
49938
49938
|
blur: W,
|
|
49939
49939
|
focus: G,
|
|
49940
|
-
filterOptions: A
|
|
49940
|
+
filterOptions: A,
|
|
49941
|
+
formatOptions: T
|
|
49941
49942
|
};
|
|
49942
49943
|
}, A1e = () => {
|
|
49943
49944
|
const n = L0();
|
|
@@ -128,7 +128,7 @@ The conflicting element is`+(vs($.element)?" ":" not ")+"already in the DOM");b(
|
|
|
128
128
|
`.trim()])},behaviours:Ft([Vn.config({})])}]}),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:H}})()),S.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...(()=>{const H="tox-statusbar__text-container--flex-start",$="tox-statusbar__text-container--flex-end";if(M){const j="tox-statusbar__text-container-3-cols";return F||N?F&&!N?[j,$]:[j,H]:[j,"tox-statusbar__text-container--space-around"]}return[F&&!N?$:H]})()]},components:S}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const S=b(),M=((N,F)=>{const H=(Q=>{const X=KR(Q);return X===!1?gm.None:X==="both"?gm.Both:gm.Vertical})(N);if(H===gm.None)return z.none();const $=H===gm.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.",j=H===gm.Both?"tox-statusbar__resize-cursor-both":"tox-statusbar__resize-cursor-default";return z.some(Bf("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle",j],attributes:{"aria-label":F.translate($),"data-mce-name":"resize-handle"},behaviours:[wh.config({mode:"mouse",repositionTarget:!1,onDrag:(Q,X,ae)=>MW(N,ae,H),blockerClass:"tox-blocker"}),xn.config({mode:"special",onLeft:()=>NT(N,H,-1,0),onRight:()=>NT(N,H,1,0),onUp:()=>NT(N,H,0,-1),onDown:()=>NT(N,H,0,1)}),wo.config({}),Vn.config({}),qo.config(F.tooltips.getConfig({tooltipText:F.translate("Resize")}))]},F.icons))})(u,m);return S.concat(M.toArray())})()}},OI=(u,m)=>m.get().getOrDie(`UI for ${u} has not been rendered`),Px=(u,m)=>{const b=u.inline,S=b?sre:ire,M=Bd(u)?Vne:Fne,N=(()=>{const He=fo(),je=fo(),tt=fo();return{dialogUi:He,popupUi:je,mainUi:tt,getUiMotherships:()=>{const ht=He.get().map(xt=>xt.mothership),Ct=je.get().map(xt=>xt.mothership);return ht.fold(()=>Ct.toArray(),xt=>Ct.fold(()=>[xt],wt=>yo(xt.element,wt.element)?[xt]:[xt,wt]))},lazyGetInOuterOrDie:(ht,Ct)=>()=>tt.get().bind(xt=>Ct(xt.outerContainer)).getOrDie(`Could not find ${ht} element in OuterContainer`)}})(),F=fo(),H=fo(),$=fo(),j=Ql().deviceType.isTouch()?["tox-platform-touch"]:[],Q=QR(u),X=lm(u),ae=Qr({dom:{tag:"div",classes:["tox-anchorbar"]}}),fe=Qr({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),he=()=>N.mainUi.get().map(He=>He.outerContainer).bind(ea.getHeader),ke=N.lazyGetInOuterOrDie("anchor bar",ae.getOpt),we=N.lazyGetInOuterOrDie("bottom anchor bar",fe.getOpt),Le=N.lazyGetInOuterOrDie("toolbar",ea.getToolbar),xe=N.lazyGetInOuterOrDie("throbber",ea.getThrobber),_e=((He,je,tt,ht)=>{const Ct=un(!1),xt=(Tr=>{const Mn=un(QR(Tr)?"bottom":"top");return{isPositionedAtTop:()=>Mn.get()==="top",getDockingMode:Mn.get,setDockingMode:Mn.set}})(je),wt={icons:()=>je.ui.registry.getAll().icons,menuItems:()=>je.ui.registry.getAll().menuItems,translate:If.translate,isDisabled:()=>!je.ui.isEnabled(),getOption:je.options.get,tooltips:yU(He.dialog),checkUiComponentContext:Tr=>{if(Uk(je))return{contextType:"disabled",shouldDisable:!0};const[Mn,Do=""]=Tr.split(":"),po=je.ui.registry.getAll().contexts;return{contextType:Mn,shouldDisable:!gn(po,Mn).fold(()=>gn(po,"mode").map(_i=>_i("design")).getOr(!1),_i=>Do.charAt(0)==="!"?!_i(Do.slice(1)):_i(Do))}}},Vt=Bne(je),bn=(Tr=>{const Mn=Ci=>()=>Tr.formatter.match(Ci),Do=Ci=>()=>{const Qi=Tr.formatter.get(Ci);return Qi!==void 0?z.some({tag:Qi.length>0&&(Qi[0].inline||Qi[0].block)||"div",styles:Tr.dom.parseStyle(Tr.formatter.getCssText(Ci))}):z.none()},po=un([]),_i=un([]),bo=un(!1);return Tr.on("PreInit",Ci=>{const Qi=Rx(Tr),gy=vU(Tr,Qi,Mn,Do);po.set(gy)}),Tr.on("addStyleModifications",Ci=>{const Qi=vU(Tr,Ci.items,Mn,Do);_i.set(Qi),bo.set(Ci.replace)}),{getData:()=>{const Ci=bo.get()?[]:po.get(),Qi=_i.get();return Ci.concat(Qi)}}})(je),En=(Tr=>({colorPicker:Ene(Tr),hasCustomColors:Ane(Tr),getColors:Tne(Tr),getColorCols:Dne(Tr)}))(je),Fn=(Tr=>({isDraggableModal:kne(Tr)}))(je),gr={shared:{providers:wt,anchors:wne(je,tt,ht,xt.isPositionedAtTop),header:xt},urlinput:Vt,styles:bn,colorinput:En,dialog:Fn,isContextMenuOpen:()=>Ct.get(),setContextMenuState:Tr=>Ct.set(Tr)},Ho=Tr=>z.none(),fa={...gr,shared:{...gr.shared,interpreter:Tr=>_ne(Tr,{},fa,Ho),getSink:He.popup}},ro={...gr,shared:{...gr.shared,interpreter:Tr=>_ne(Tr,{},ro,Ho),getSink:He.dialog}};return{popup:fa,dialog:ro}})({popup:()=>ur.fromOption(N.popupUi.get().map(He=>He.sink),"(popup) UI has not been rendered"),dialog:()=>ur.fromOption(N.dialogUi.get().map(He=>He.sink),"UI has not been rendered")},u,ke,we),Re=()=>{const He=(()=>{const gr={attributes:{[l2]:Q?bd.BottomToTop:bd.TopToBottom}},Ho=ea.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:_e.popup,onEscape:()=>{u.focus()}}),fa=ea.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:_e.popup.shared.getSink,providers:_e.popup.shared.providers,onEscape:()=>{u.focus()},onToolbarToggled:Qi=>{((gy,n0)=>{gy.dispatch("ToggleToolbarDrawer",{state:n0})})(u,Qi)},type:X,lazyToolbar:Le,lazyHeader:()=>he().getOrDie("Could not find header element"),...gr}),ro=ea.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:_e.popup.shared.providers,onEscape:()=>{u.focus()},type:X}),Tr=Op(u),Mn=Qk(u),Do=Jk(u),po=gz(u),_i=Tr||Mn||Do,bo=[(Ci=po,ea.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]},promotionLink:Ci})),Ho];var Ci;return ea.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(_i?[]:["tox-editor-header--empty"]),...gr},components:Xt([Do?bo:[],Tr?[ro]:Mn?[fa]:[],Ph(u)?[]:[ae.asSpec()]]),sticky:Bd(u),editor:u,sharedBackstage:_e.popup.shared})})(),je={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[ea.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),ea.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}})]},tt=ea.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:_e.popup}),ht=ea.parts.viewWrapper({backstage:_e.popup}),Ct=fz(u)&&!b?z.some(xre(u,_e.popup.shared.providers)):z.none(),xt=Xt([Q?[]:[He],b?[]:[je],Q?[He]:[]]),wt=ea.parts.editorContainer({components:Xt([xt,b?[]:[fe.asSpec()]])}),Vt=e6(u),bn={role:"application",...If.isRtl()?{dir:"rtl"}:{},...Vt?{"aria-hidden":"true"}:{}},En=zs(ea.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(b?["tox-tinymce-inline"]:[]).concat(Q?["tox-tinymce--toolbar-bottom"]:[]).concat(j),styles:{visibility:"hidden",...Vt?{opacity:"0",border:"0"}:{}},attributes:bn},components:[wt,...b?[]:[ht,...Ct.toArray()],tt],behaviours:Ft([Ga(()=>_e.popup.shared.providers.checkUiComponentContext("any")),_n.config({disableClass:"tox-tinymce--disabled"}),xn.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),Fn=DA(En);return F.set(Fn),{mothership:Fn,outerContainer:En}},Ie=He=>{const je=dM((ht=>(Ct=>{const xt=((bn,En)=>{if(typeof En=="number")return z.from(En);const Fn=/^([0-9.]+)(pt|em|px)$/.exec(En.trim());if(Fn){const gr=Fn[2],Ho=Number.parseFloat(Fn[1]);if(Number.isNaN(Ho)||Ho<0)return z.none();if(gr==="em")return z.from(Ho*Number.parseFloat(window.getComputedStyle(bn.dom).fontSize));if(gr==="pt")return z.from(.75*Ho);if(gr==="px")return z.from(Ho)}return z.none()})(rn(Ct.targetElm),qA(Ct)),wt=qR(Ct),Vt=Gk(Ct);return xt.map(bn=>YC(bn,wt,Vt))})(ht).getOr(qA(ht)))(u)),tt=dM((ht=>pI(ht).getOr(GR(ht)))(u));return u.inline||(ih("div","width",tt)&&qn(He.element,"width",tt),ih("div","height",je)?qn(He.element,"height",je):qn(He.element,"height","400px")),je};return{popups:{backstage:_e.popup,getMothership:()=>OI("popups",$)},dialogs:{backstage:_e.dialog,getMothership:()=>OI("dialogs",H)},renderUI:()=>{const He=Re(),je=(()=>{const ht=e5(u),Ct=yo($e(),ht)&&fi(ht,"display")==="grid",xt={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(j),attributes:{...If.isRtl()?{dir:"rtl"}:{}}},behaviours:Ft([tl.config({useFixed:()=>M.isDocked(he)})])},wt={dom:{styles:{width:document.body.clientWidth+"px"}},events:Fo([_t(Pg(),En=>{qn(En.element,"width",document.body.clientWidth+"px")})])},Vt=zs(vr(xt,Ct?wt:{})),bn=DA(Vt);return H.set(bn),{sink:Vt,mothership:bn}})(),tt=K1(u)?(()=>{const ht={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(j),attributes:{...If.isRtl()?{dir:"rtl"}:{}}},behaviours:Ft([tl.config({useFixed:()=>M.isDocked(he),getBounds:()=>m.getPopupSinkBounds()})])},Ct=zs(ht),xt=DA(Ct);return $.set(xt),{sink:Ct,mothership:xt}})():(ht=>($.set(ht.mothership),ht))(je);return N.dialogUi.set(je),N.popupUi.set(tt),N.mainUi.set(He),(ht=>{const{mainUi:Ct,popupUi:xt,uiMotherships:wt}=ht;$t(Zk(u),(Mn,Do)=>{u.ui.registry.addGroupToolbarButton(Do,Mn)});const{buttons:Vt,menuItems:bn,contextToolbars:En,sidebars:Fn,views:gr}=u.ui.registry.getAll(),Ho=JR(u),fa={menuItems:bn,menus:Cz(u),menubar:iz(u),toolbar:Ho.getOrThunk(()=>jA(u)),allowToolbarGroups:X===Id.floating,buttons:Vt,sidebar:Fn,views:gr};var ro;ro=Ct.outerContainer,u.addShortcut("alt+F9","focus menubar",()=>{ea.focusMenubar(ro)}),u.addShortcut("alt+F10","focus toolbar",()=>{ea.focusToolbar(ro)}),u.addCommand("ToggleToolbarDrawer",(Mn,Do)=>{Do!=null&&Do.skipFocus?ea.toggleToolbarDrawerWithoutFocusing(ro):ea.toggleToolbarDrawer(ro)}),u.addQueryStateHandler("ToggleToolbarDrawer",()=>ea.isToolbarDrawerToggled(ro)),((Mn,Do,po)=>{const _i=(Zr,i0)=>{Fe([Do,...po],zp=>{zp.broadcastEvent(Zr,i0)})},bo=(Zr,i0)=>{Fe([Do,...po],zp=>{zp.broadcastOn([Zr],i0)})},Ci=Zr=>bo(Od(),{target:Zr.target}),Qi=q0(),gy=Go(Qi,"touchstart",Ci),n0=Go(Qi,"touchmove",Zr=>_i(C4(),Zr)),LM=Go(Qi,"touchend",Zr=>_i(jw(),Zr)),RT=Go(Qi,"mousedown",Ci),my=Go(Qi,"mouseup",Zr=>{Zr.raw.button===0&&bo(yi(),{target:Zr.target})}),r0=Zr=>bo(Od(),{target:rn(Zr.target)}),vm=Zr=>{Zr.button===0&&bo(yi(),{target:rn(Zr.target)})},QC=()=>{Fe(Mn.editorManager.get(),Zr=>{Mn!==Zr&&Zr.dispatch("DismissPopups",{relatedTarget:Mn})})},eS=Zr=>_i(pd(),O_(Zr)),o0=Zr=>{bo(Yu(),{}),_i(Pg(),O_(Zr))},tS=ms(rn(Mn.getElement())),Fx=ip(tS,"scroll",Zr=>{requestAnimationFrame(()=>{if(Mn.getContainer()!=null){const i0=Rp(Mn,Do.element).map(zp=>[zp.element,...zp.others]).getOr([]);We(i0,zp=>yo(zp,Zr.target))&&(Mn.dispatch("ElementScroll",{target:Zr.target.dom}),_i(hb(),Zr))}})}),IT=()=>bo(Yu(),{}),BT=Zr=>{Zr.state&&bo(Od(),{target:rn(Mn.getContainer())})},Vx=Zr=>{bo(Od(),{target:rn(Zr.relatedTarget.getContainer())})},vy=Zr=>Mn.dispatch("focusin",Zr),a0=Zr=>Mn.dispatch("focusout",Zr);Mn.on("PostRender",()=>{Mn.on("click",r0),Mn.on("tap",r0),Mn.on("mouseup",vm),Mn.on("mousedown",QC),Mn.on("ScrollWindow",eS),Mn.on("ResizeWindow",o0),Mn.on("ResizeEditor",IT),Mn.on("AfterProgressState",BT),Mn.on("DismissPopups",Vx),Fe([Do,...po],Zr=>{Zr.element.dom.addEventListener("focusin",vy),Zr.element.dom.addEventListener("focusout",a0)})}),Mn.on("remove",()=>{Mn.off("click",r0),Mn.off("tap",r0),Mn.off("mouseup",vm),Mn.off("mousedown",QC),Mn.off("ScrollWindow",eS),Mn.off("ResizeWindow",o0),Mn.off("ResizeEditor",IT),Mn.off("AfterProgressState",BT),Mn.off("DismissPopups",Vx),Fe([Do,...po],Zr=>{Zr.element.dom.removeEventListener("focusin",vy),Zr.element.dom.removeEventListener("focusout",a0)}),RT.unbind(),gy.unbind(),n0.unbind(),LM.unbind(),my.unbind(),Fx.unbind()}),Mn.on("detach",()=>{Fe([Do,...po],VE),Fe([Do,...po],Zr=>Zr.destroy())})})(u,Ct.mothership,wt),M.setup(u,_e.popup.shared,he),gre(u,_e.popup),yre(u,_e.popup.shared.getSink,_e.popup),(Mn=>{const{sidebars:Do}=Mn.ui.registry.getAll();Fe(jn(Do),po=>{const _i=Do[po],bo=()=>fl(z.from(Mn.queryCommandValue("ToggleSidebar")),po);Mn.ui.registry.addToggleButton(po,{icon:_i.icon,tooltip:_i.tooltip,onAction:Ci=>{Mn.execCommand("ToggleSidebar",!1,po),Ci.setActive(bo())},onSetup:Ci=>{Ci.setActive(bo());const Qi=()=>Ci.setActive(bo());return Mn.on("ToggleSidebar",Qi),()=>{Mn.off("ToggleSidebar",Qi)}},context:"any"})})})(u),OU(u,xe,_e.popup.shared),hre(u,En,xt.sink,{backstage:_e.popup}),bre(u,xt.sink);const Tr={targetNode:u.getElement(),height:Ie(Ct.outerContainer)};return S.render(u,ht,fa,_e.popup,Tr)})({popupUi:tt,dialogUi:je,mainUi:He,uiMotherships:N.getUiMotherships()})}}},LW=u=>{const m=[],b={};return Dt(u,(S,M)=>{S.fold(()=>{m.push(M)},N=>{b[M]=N})}),m.length>0?ur.error(m):ur.value(b)},NW=(u,m,b,S)=>{const M=Qr(so.sketch(F=>({dom:{tag:"div",classes:["tox-form"].concat(u.classes)},components:Me(u.items,H=>fU(F,H,m,b,S))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[M.asSpec()]}],behaviours:Ft([xn.config({mode:"acyclic",useTabstopAt:re(ST)}),(N=M,Ir.config({find:N.getOpt})),D$(M,{postprocess:F=>LW(F).fold(H=>(console.error(H),{}),G)}),Yn("dialog-body-panel",[_t(Vl(),(F,H)=>{F.getSystem().broadcastOn([G5],{newFocus:z.some(H.event.target)})})])])};var N},OW=(u,m)=>{qn(u,"height",m+"px"),qn(u,"flex-basis",m+"px")},SM=(u,m,b)=>{Pc(u,'[role="dialog"]').each(S=>{dr(S,'[role="tablist"]').each(M=>{b.get().map(N=>(qn(m,"height","0"),qn(m,"flex-basis","0"),Math.min(N,((F,H,$)=>{const j=sa(F).dom,Q=Pc(F,".tox-dialog-wrap").getOr(F);let X;X=fi(Q,"position")==="fixed"?Math.max(j.clientHeight,window.innerHeight):Math.max(j.offsetHeight,j.scrollHeight);const ae=Da(H),fe=H.dom.offsetLeft>=$.dom.offsetLeft+Js($)?Math.max(Da($),ae):ae,he=parseInt(fi(F,"margin-top"),10)||0,ke=parseInt(fi(F,"margin-bottom"),10)||0;return X-(Da(F)+he+ke-fe)})(S,m,M)))).each(N=>{OW(m,N)})})})},RI=u=>dr(u,'[role="tabpanel"]'),RW="send-data-to-section",II="send-data-to-view",_re=(u,m,b,S)=>{const M=un({}),N=Q=>{const X=Jt.getValue(Q),ae=LW(X).getOr({}),fe=M.get(),he=vr(fe,ae);M.set(he)},F=Q=>{const X=M.get();Jt.setValue(Q,X)},H=un(null),$=Me(u.tabs,Q=>({value:Q.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[Qo(b.shared.providers.translate(Q.title))],view:()=>[so.sketch(X=>({dom:{tag:"div",classes:["tox-form"]},components:Me(Q.items,ae=>fU(X,ae,m,b,S)),formBehaviours:Ft([xn.config({mode:"acyclic",useTabstopAt:re(ST)}),Yn("TabView.form.events",[Vo(F),_d(N)]),$l.config({channels:J0([{key:RW,value:{onReceive:N}},{key:II,value:{onReceive:F}}])})])}))]})),j=(Q=>{const X=fo();return{extraEvents:[Vo(fe=>{const he=fe.element;RI(he).each(ke=>{qn(ke,"visibility","hidden"),fe.getSystem().getByDom(ke).toOptional().each(we=>{const Le=((_e,Re,Ie)=>Me(_e,(He,je)=>{Xn.set(Ie,_e[je].view());const tt=Re.dom.getBoundingClientRect();return Xn.set(Ie,[]),tt.height}))(Q,ke,we);(_e=>Je(Qe(_e,(Re,Ie)=>Re>Ie?-1:Re<Ie?1:0)))(Le).fold(X.clear,X.set)}),SM(he,ke,X),pr(ke,"visibility"),((we,Le)=>{Je(we).each(xe=>Y1.showTab(Le,xe.value))})(Q,fe),requestAnimationFrame(()=>{SM(he,ke,X)})})}),_t(Pg(),fe=>{const he=fe.element;RI(he).each(ke=>{SM(he,ke,X)})}),_t(H5,(fe,he)=>{const ke=fe.element;RI(ke).each(we=>{const Le=tu(ms(we));qn(we,"visibility","hidden");const xe=zi(we,"height").map(Re=>parseInt(Re,10));pr(we,"height"),pr(we,"flex-basis");const _e=we.dom.getBoundingClientRect().height;xe.forall(Re=>_e>Re)?(X.set(_e),SM(ke,we,X)):xe.each(Re=>{OW(we,Re)}),pr(we,"visibility"),Le.each(os)})})],selectFirst:!1}})($);return Y1.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:(Q,X,ae)=>{const fe=Jt.getValue(X);kn(Q,xT,{name:fe,oldName:H.get()}),H.set(fe)},tabs:$,components:[Y1.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[qv.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:Ft([wo.config({})])}),Y1.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:j.selectFirst,tabSectionBehaviours:Ft([Yn("tabpanel",j.extraEvents),xn.config({mode:"acyclic"}),Ir.config({find:Q=>Je(Y1.getViewItems(Q))}),Nx(z.none(),Q=>(Q.getSystem().broadcastOn([RW],{}),M.get()),(Q,X)=>{M.set(X),Q.getSystem().broadcastOn([II],{})})])})},BI=(u,m,b,S,M,N)=>({dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...b.map(F=>({id:F})).getOr({}),...M?{"aria-live":"polite"}:{}}},components:[],behaviours:Ft([_T(0),qc.config({channel:`${H$}-${m}`,updateState:(F,H)=>z.some({isTabPanel:()=>H.body.type==="tabpanel"}),renderComponents:F=>{const H=F.body;return H.type==="tabpanel"?[_re(H,F.initialData,S,N)]:[NW(H,F.initialData,S,N)]},initialData:u})])}),PI=_C.deviceType.isTouch(),mm=(u,m)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[u,m]}),wM=(u,m)=>bi.parts.close(ri.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":m.translate("Close")}},action:u,buttonBehaviours:Ft([wo.config({})])})),FI=()=>bi.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),VI=(u,m)=>bi.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:rl(`<p>${Rz(m.translate(u))}</p>`)}]}]}),EM=u=>bi.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:u}),zI=(u,m)=>[Lf.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:u}),Lf.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:m})],JC=u=>{const m="tox-dialog",b=m+"-wrap",S=b+"__backdrop",M=m+"__disable-scroll";return bi.sketch({lazySink:u.lazySink,onEscape:N=>(u.onEscape(N),z.some(!0)),useTabstopAt:N=>!ST(N),firstTabstop:u.firstTabstop,dom:{tag:"div",classes:[m].concat(u.extraClasses),styles:{position:"relative",...u.extraStyles}},components:[u.header,u.body,...u.footer.toArray()],parts:{blocker:{dom:rl(`<div class="${b}"></div>`),components:[{dom:{tag:"div",classes:PI?[S,S+"--opaque"]:[S]}}]}},dragBlockClass:b,modalBehaviours:Ft([Vn.config({}),Yn("dialog-events",u.dialogEvents.concat([o1(Vl(),(N,F)=>{Dd.isBlocked(N)||xn.focusIn(N)}),_t(db(),(N,F)=>{N.getSystem().broadcastOn([G5],{newFocus:F.event.newFocus})})])),Yn("scroll-lock",[Vo(()=>{qr($e(),M)}),_d(()=>{ra($e(),M)})]),...u.extraBehaviours]),eventOrder:{[lu()]:["dialog-events"],[$c()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[Ma()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...u.eventOrder}})},HI=u=>ri.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":u.translate("Close"),"data-mce-name":"close"}},buttonBehaviours:Ft([wo.config({}),qo.config(u.tooltips.getConfig({tooltipText:u.translate("Close")}))]),components:[Bf("close",{tag:"span",classes:["tox-icon"]},u.icons)],action:m=>{Sr(m,ly)}}),$I=(u,m,b,S)=>({dom:{tag:"h1",classes:["tox-dialog__title"],attributes:{...b.map(M=>({id:M})).getOr({})}},components:[],behaviours:Ft([qc.config({channel:`${z$}-${m}`,initialData:u,renderComponents:M=>[Qo(S.translate(M.title))]})])}),IW=()=>({dom:rl('<div class="tox-dialog__draghandle"></div>')}),BW=(u,m,b)=>((S,M,N)=>{const F=bi.parts.title($I(S,M,z.none(),N)),H=bi.parts.draghandle(IW()),$=bi.parts.close(HI(N)),j=[F].concat(S.draggable?[H]:[]).concat([$]);return Lf.sketch({dom:rl('<div class="tox-dialog__header"></div>'),components:j})})({title:b.shared.providers.translate(u),draggable:b.dialog.isDraggableModal()},m,b.shared.providers),PW=(u,m,b,S)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":b.translate(u)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${S.getOr(0)}px`,position:"absolute"}},behaviours:m,components:[{dom:rl('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}),FW=(u,m,b)=>({onClose:()=>b.closeWindow(),onBlock:S=>{const M=dr(u().element,".tox-dialog__header").map(N=>Da(N));bi.setBusy(u(),(N,F)=>PW(S.message,F,m,M))},onUnblock:()=>{bi.setIdle(u())}}),VW="tox-dialog--fullscreen",AM="tox-dialog--width-lg",TM="tox-dialog--width-md",DM=u=>{switch(u){case"large":return z.some(AM);case"medium":return z.some(TM);default:return z.none()}},zW=(u,m)=>{const b=rn(m.element.dom);el(b,VW)||(Vc(b,[AM,TM]),DM(u).each(S=>qr(b,S)))},HW=(u,m)=>{const b=rn(u.element.dom),S=tb(b),M=le(S,N=>N===AM||N===TM).or(DM(m));((N,F)=>{Fe(F,H=>{(($,j)=>{vl($)?$.dom.classList.toggle(j):((Q,X)=>Ce(Ca(Q),X)?rv(Q,X):nv(Q,X))($,j),ld($)})(N,H)})})(b,[VW,...M.toArray()])},OT=(u,m,b)=>zs(JC({...u,firstTabstop:1,lazySink:b.shared.getSink,extraBehaviours:[U5({}),...u.extraBehaviours],onEscape:S=>{Sr(S,ly)},dialogEvents:m,eventOrder:{[gv()]:[qc.name(),$l.name()],[$c()]:["scroll-lock",qc.name(),"messages","dialog-events","alloy.base.behaviour"],[Ma()]:["alloy.base.behaviour","dialog-events","messages",qc.name(),"scroll-lock"]}})),UI=(u,m={})=>Me(u,b=>b.type==="menu"?(S=>{const M=Me(S.items,N=>{const F=gn(m,N.name).getOr(un(!1));return{...N,storage:F}});return{...S,items:M}})(b):b),$W=u=>en(u,(m,b)=>b.type==="menu"?en(b.items,(S,M)=>(S[M.name]=M.storage,S),m):m,{}),WI=(u,m)=>[CE(Vl(),nne),u(yT,(b,S,M,N)=>{sp(N.element)&&tu(ms(N.element)).each(yf),m.onClose(),S.onClose()}),u(ly,(b,S,M,N)=>{S.onCancel(b),Sr(N,yT)}),_t(_8,(b,S)=>m.onUnblock()),_t(x8,(b,S)=>m.onBlock(S.event))],GI=(u,m,b)=>{const S=(N,F)=>_t(N,(H,$)=>{M(H,(j,Q)=>{F(u(),j,$.event,H)})}),M=(N,F)=>{qc.getState(N).get().each(H=>{F(H.internalDialog,N)})};return[...WI(S,m),S(bT,(N,F)=>F.onSubmit(N)),S(wu,(N,F,H)=>{F.onChange(N,{name:H.name})}),S(um,(N,F,H,$)=>{const j=()=>$.getSystem().isConnected()?xn.focusIn($):void 0,Q=fe=>Xy(fe,"disabled")||as(fe,"aria-disabled").exists(he=>he==="true"),X=ms($.element),ae=tu(X);F.onAction(N,{name:H.name,value:H.value}),tu(X).fold(j,fe=>{Q(fe)||ae.exists(he=>Aa(fe,he)&&Q(he))?j():b().toOptional().filter(he=>!Aa(he.element,fe)).each(j)})}),S(xT,(N,F,H)=>{F.onTabChange(N,{newTabName:H.name,oldTabName:H.oldName})}),_d(N=>{const F=u();Jt.setValue(N,F.getData())})]},Cre=(u,m)=>{const b=m.map(N=>N.footerButtons).getOr([]),S=Ye(b,N=>N.align==="start"),M=(N,F)=>Lf.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${N}`]},components:Me(F,H=>H.memento.asSpec())});return[M("start",S.pass),M("end",S.fail)]},UW=(u,m,b)=>({dom:rl('<div class="tox-dialog__footer"></div>'),components:[],behaviours:Ft([qc.config({channel:`${$$}-${m}`,initialData:u,updateState:(S,M)=>{const N=Me(M.buttons,F=>{const H=Qr((($,j)=>X5($,$.type,j))(F,b));return{name:F.name,align:F.align,memento:H}});return z.some({lookupByName:F=>((H,$,j)=>le($,Q=>Q.name===j).bind(Q=>Q.memento.getOpt(H)))(S,N,F),footerButtons:N})},renderComponents:Cre})])}),kM=(u,m,b)=>bi.parts.footer(UW(u,m,b)),MM=(u,m)=>{if(u.getRoot().getSystem().isConnected()){const b=Ir.getCurrent(u.getFormWrapper()).getOr(u.getFormWrapper());return so.getField(b,m).orThunk(()=>u.getFooter().bind(M=>qc.getState(M).get()).bind(M=>M.lookupByName(m)))}return z.none()},ZI=(u,m,b)=>{const S=N=>{const F=u.getRoot();F.getSystem().isConnected()&&N(F)},M={getData:()=>{const N=u.getRoot(),F=N.getSystem().isConnected()?u.getFormWrapper():N;return{...Jt.getValue(F),...$t(b,H=>H.get())}},setData:N=>{S(F=>{const H=M.getData(),$=vr(H,N),j=((X,ae)=>{const fe=X.getRoot();return qc.getState(fe).get().map(he=>iu(oa("data",he.dataValidator,ae))).getOr(ae)})(u,$),Q=u.getFormWrapper();Jt.setValue(Q,j),Dt(b,(X,ae)=>{xr($,ae)&&X.set($[ae])})})},setEnabled:(N,F)=>{MM(u,N).each(F?_n.enable:_n.disable)},focus:N=>{MM(u,N).each(Vn.focus)},block:N=>{if(!i(N))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");S(F=>{kn(F,x8,{message:N})})},unblock:()=>{S(N=>{Sr(N,_8)})},showTab:N=>{S(F=>{const H=u.getBody();qc.getState(H).get().exists($=>$.isTabPanel())&&Ir.getCurrent(H).each($=>{Y1.showTab($,N)})})},redial:N=>{S(F=>{const H=u.getId(),$=m(N),j=UI($.internalDialog.buttons,b);F.getSystem().broadcastOn([`${W5}-${H}`],$),F.getSystem().broadcastOn([`${z$}-${H}`],$.internalDialog),F.getSystem().broadcastOn([`${H$}-${H}`],$.internalDialog),F.getSystem().broadcastOn([`${$$}-${H}`],{...$.internalDialog,buttons:j}),M.setData($.initialData)})},close:()=>{S(N=>{Sr(N,yT)})},toggleFullscreen:u.toggleFullscreen};return M},WW=(u,m,b,S=!1,M)=>{const N=Kt("dialog"),F=Kt("dialog-label"),H=Kt("dialog-content"),$=u.internalDialog,j=un($.size),Q=DM(j.get()).toArray(),X=Qr(((Ie,He,je,tt)=>Lf.sketch({dom:rl('<div class="tox-dialog__header"></div>'),components:[$I(Ie,He,z.some(je),tt),IW(),HI(tt)],containerBehaviours:Ft([wh.config({mode:"mouse",blockerClass:"blocker",getTarget:ht=>Il(ht,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"},onDrag:(ht,Ct)=>{ht.getSystem().broadcastOn([Yu()],{target:Ct})}})])}))({title:$.title,draggable:!0},N,F,b.shared.providers)),ae=Qr(((Ie,He,je,tt,ht,Ct)=>BI(Ie,He,z.some(je),tt,ht,Ct))({body:$.body,initialData:$.initialData},N,H,b,S,Ie=>MM(_e,Ie))),fe=UI($.buttons),he=$W(fe),ke=dl(fe.length!==0,Qr(((Ie,He,je)=>UW(Ie,He,je))({buttons:fe},N,b))),we=GI(()=>Re,{onBlock:Ie=>{Dd.block(xe,(He,je)=>{const tt=X.getOpt(xe).map(ht=>Da(ht.element));return PW(Ie.message,je,b.shared.providers,tt)})},onUnblock:()=>{Dd.unblock(xe)},onClose:()=>m.closeWindow()},b.shared.getSink),Le=Ql().os,xe=zs({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline",...Q],attributes:{role:"dialog",...Le.isMacOS()?{"aria-label":$.title}:{"aria-labelledby":F}}},eventOrder:{[gv()]:[qc.name(),$l.name()],[lu()]:["execute-on-form"],[$c()]:["reflecting","execute-on-form"]},behaviours:Ft([xn.config({mode:"cyclic",onEscape:Ie=>(Sr(Ie,yT),z.some(!0)),useTabstopAt:Ie=>!ST(Ie)&&(Rc(Ie)!=="button"||Vi(Ie,"disabled")!=="disabled"),firstTabstop:1}),qc.config({channel:`${W5}-${N}`,updateState:(Ie,He)=>(j.set(He.internalDialog.size),zW(He.internalDialog.size,Ie),M(),z.some(He)),initialData:u}),Vn.config({}),Yn("execute-on-form",we.concat([o1(Vl(),(Ie,He)=>{xn.focusIn(Ie)}),_t(db(),(Ie,He)=>{Ie.getSystem().broadcastOn([G5],{newFocus:He.event.newFocus})})])),Dd.config({getRoot:()=>z.some(xe)}),Xn.config({}),U5({})]),components:[X.asSpec(),ae.asSpec(),...ke.map(Ie=>Ie.asSpec()).toArray()]}),_e={getId:I(N),getRoot:I(xe),getFooter:()=>ke.map(Ie=>Ie.get(xe)),getBody:()=>ae.get(xe),getFormWrapper:()=>{const Ie=ae.get(xe);return Ir.getCurrent(Ie).getOr(Ie)},toggleFullscreen:()=>{HW(xe,j.get())}},Re=ZI(_e,m.redial,he);return{dialog:xe,instanceApi:Re}};var qI=tinymce.util.Tools.resolve("tinymce.util.URI");const Sre=["insertContent","setContent","execCommand","close","block","unblock"],jI=u=>l(u)&&Sre.indexOf(u.mceAction)!==-1,GW=(u,m,b,S)=>{const M=Kt("dialog"),N=BW(u.title,M,S),F=(Le=>{const xe={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[F$(z.none(),{dom:{tag:"iframe",attributes:{src:Le.url}},behaviours:Ft([wo.config({}),Vn.config({})])})]}],behaviours:Ft([xn.config({mode:"acyclic",useTabstopAt:re(ST)})])};return bi.parts.body(xe)})(u),H=u.buttons.bind(Le=>Le.length===0?z.none():z.some(kM({buttons:Le},M,S))),$=((Le,xe)=>{const _e=(Ie,He)=>_t(Ie,(je,tt)=>{Re(je,(ht,Ct)=>{He(we,ht,tt.event,je)})}),Re=(Ie,He)=>{qc.getState(Ie).get().each(je=>{He(je,Ie)})};return[...WI(_e,xe),_e(um,(Ie,He,je)=>{He.onAction(Ie,{name:je.name})})]})(0,FW(()=>ke,S.shared.providers,m)),j={...u.height.fold(()=>({}),Le=>({height:Le+"px","max-height":Le+"px"})),...u.width.fold(()=>({}),Le=>({width:Le+"px","max-width":Le+"px"}))},Q=u.width.isNone()&&u.height.isNone()?["tox-dialog--width-lg"]:[],X=new qI(u.url,{base_uri:new qI(window.location.href)}),ae=`${X.protocol}://${X.host}${X.port?":"+X.port:""}`,fe=ki(),he=[qc.config({channel:`${W5}-${M}`,updateState:(Le,xe)=>z.some(xe),initialData:u}),Yn("messages",[Vo(()=>{const Le=Go(rn(window),"message",xe=>{if(X.isSameOrigin(new qI(xe.raw.origin))){const _e=xe.raw.data;jI(_e)?((Re,Ie,He)=>{switch(He.mceAction){case"insertContent":Re.insertContent(He.content);break;case"setContent":Re.setContent(He.content);break;case"execCommand":const je=!!p(He.ui)&&He.ui;Re.execCommand(He.cmd,je,He.value);break;case"close":Ie.close();break;case"block":Ie.block(He.message);break;case"unblock":Ie.unblock()}})(b,we,_e):(Re=>!jI(Re)&&l(Re)&&xr(Re,"mceAction"))(_e)&&u.onMessage(we,_e)}});fe.set(Le)}),_d(fe.clear)]),$l.config({channels:{[U$]:{onReceive:(Le,xe)=>{dr(Le.element,"iframe").each(_e=>{const Re=_e.dom.contentWindow;_(Re)&&Re.postMessage(xe,ae)})}}}})],ke=OT({id:M,header:N,body:F,footer:H,extraClasses:Q,extraBehaviours:he,extraStyles:j},$,S),we=(Le=>{const xe=_e=>{Le.getSystem().isConnected()&&_e(Le)};return{block:_e=>{if(!i(_e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");xe(Re=>{kn(Re,x8,{message:_e})})},unblock:()=>{xe(_e=>{Sr(_e,_8)})},close:()=>{xe(_e=>{Sr(_e,yT)})},sendMessage:_e=>{xe(Re=>{Re.getSystem().broadcastOn([U$],_e)})}}})(ke);return{dialog:ke,instanceApi:we}},ZW=(u,m)=>iu(oa("data",m,u)),qW=u=>Cf(u,".tox-alert-dialog")||Cf(u,".tox-confirm-dialog"),wre=(u,m,b,S)=>m&&b?[]:[ua.config({contextual:{lazyContext:()=>z.some(ma(rn(u.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition",onHide:S},modes:["top"],lazyViewport:M=>Rp(u,M.element).map(N=>({bounds:J1(N),optScrollEnv:z.some({currentScrollTop:N.element.dom.scrollTop,scrollElmTop:Ja(N.element).top})})).getOrThunk(()=>({bounds:is(),optScrollEnv:z.none()}))})],Ere=u=>{const m=u.editor,b=Bd(m),S=($=>{const j=$.shared;return{open:(Q,X)=>{const ae=()=>{bi.hide(we),X()},fe=Qr(X5({context:"any",name:"close-alert",text:"OK",primary:!0,buttonType:z.some("primary"),align:"end",enabled:!0,icon:z.none()},"cancel",$)),he=FI(),ke=wM(ae,j.providers),we=zs(JC({lazySink:()=>j.getSink(),header:mm(he,ke),body:VI(Q,j.providers),footer:z.some(EM(zI([],[fe.asSpec()]))),onEscape:ae,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[_t(ly,ae)],eventOrder:{}}));bi.show(we);const Le=fe.get(we);Vn.focus(Le)}}})(u.backstages.dialog),M=($=>{const j=$.shared;return{open:(Q,X)=>{const ae=_e=>{bi.hide(Le),X(_e)},fe=Qr(X5({context:"any",name:"yes",text:"Yes",primary:!0,buttonType:z.some("primary"),align:"end",enabled:!0,icon:z.none()},"submit",$)),he=X5({context:"any",name:"no",text:"No",primary:!1,buttonType:z.some("secondary"),align:"end",enabled:!0,icon:z.none()},"cancel",$),ke=FI(),we=wM(()=>ae(!1),j.providers),Le=zs(JC({lazySink:()=>j.getSink(),header:mm(ke,we),body:VI(Q,j.providers),footer:z.some(EM(zI([],[he,fe.asSpec()]))),onEscape:()=>ae(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[_t(ly,()=>ae(!1)),_t(bT,()=>ae(!0))],eventOrder:{}}));bi.show(Le);const xe=fe.get(Le);Vn.focus(xe)}}})(u.backstages.dialog),N=($,j)=>Ex.open((Q,X,ae)=>{const fe=X,he=((ke,we,Le)=>{const xe=Kt("dialog"),_e=ke.internalDialog,Re=BW(_e.title,xe,Le),Ie=un(_e.size),He=DM(Ie.get()).toArray(),je=((Fn,gr,Ho,fa)=>{const ro=BI(Fn,gr,z.none(),Ho,!1,fa);return bi.parts.body(ro)})({body:_e.body,initialData:_e.initialData},xe,Le,Fn=>MM(bn,Fn)),tt=UI(_e.buttons),ht=$W(tt),Ct=dl(tt.length!==0,kM({buttons:tt},xe,Le)),xt=GI(()=>En,FW(()=>Vt,Le.shared.providers,we),Le.shared.getSink),wt={id:xe,header:Re,body:je,footer:Ct,extraClasses:He,extraBehaviours:[qc.config({channel:`${W5}-${xe}`,updateState:(Fn,gr)=>(Ie.set(gr.internalDialog.size),zW(gr.internalDialog.size,Fn),z.some(gr)),initialData:ke})],extraStyles:{}},Vt=OT(wt,xt,Le),bn={getId:I(xe),getRoot:I(Vt),getBody:()=>bi.getBody(Vt),getFooter:()=>bi.getFooter(Vt),getFormWrapper:()=>{const Fn=bi.getBody(Vt);return Ir.getCurrent(Fn).getOr(Fn)},toggleFullscreen:()=>{HW(Vt,Ie.get())}},En=ZI(bn,we.redial,ht);return{dialog:Vt,instanceApi:En}})({dataValidator:ae,initialData:fe,internalDialog:Q},{redial:Ex.redial,closeWindow:()=>{bi.hide(he.dialog),j(he.instanceApi)}},u.backstages.dialog);return bi.show(he.dialog),he.instanceApi.setData(fe),he.instanceApi},$),F=($,j,Q,X)=>Ex.open((ae,fe,he)=>{const ke=ZW(fe,he),we=fo(),Le=u.backstages.popup.shared.header.isPositionedAtTop(),xe=()=>we.on(He=>{Sa.reposition(He),b&&Le||ua.refresh(He)}),_e=WW({dataValidator:he,initialData:ke,internalDialog:ae},{redial:Ex.redial,closeWindow:()=>{we.on(Sa.hide),m.off("ResizeEditor",xe),m.off("ScrollWindow",Re),we.clear(),Q(_e.instanceApi)}},u.backstages.popup,X.ariaAttrs,xe),Re=()=>_e.dialog.getSystem().broadcastOn([Yu()],{target:_e.dialog.element}),Ie=zs(Sa.sketch({lazySink:u.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:X.persistent?{event:"doNotDismissYet"}:{},...Le?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Ft([Yn("window-manager-inline-events",[_t(gh(),(He,je)=>{Sr(_e.dialog,ly)})]),...wre(m,b,Le,()=>_e.dialog.getSystem().broadcastOn([Od()],{target:_e.dialog.element}))]),isExtraPart:(He,je)=>qW(je)}));return we.set(Ie),Sa.showWithinBounds(Ie,vc(_e.dialog),{anchor:j},()=>{const He=m.inline?$e():rn(m.getContainer()),je=ma(He);return z.some(je)}),b&&Le||(ua.refresh(Ie),m.on("ResizeEditor",xe)),m.on("ScrollWindow",Re),_e.instanceApi.setData(ke),xn.focusIn(_e.dialog),_e.instanceApi},$),H=($,j,Q,X)=>Ex.open((ae,fe,he)=>{const ke=ZW(fe,he),we=fo(),Le=u.backstages.popup.shared.header.isPositionedAtTop(),xe=()=>we.on(Ie=>{Sa.reposition(Ie),ua.refresh(Ie)}),_e=WW({dataValidator:he,initialData:ke,internalDialog:ae},{redial:Ex.redial,closeWindow:()=>{we.on(Sa.hide),m.off("ResizeEditor ScrollWindow ElementScroll",xe),we.clear(),Q(_e.instanceApi)}},u.backstages.popup,X.ariaAttrs,xe),Re=zs(Sa.sketch({lazySink:u.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:X.persistent?{event:"doNotDismissYet"}:{},...Le?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Ft([Yn("window-manager-inline-events",[_t(gh(),(Ie,He)=>{Sr(_e.dialog,ly)})]),ua.config({contextual:{lazyContext:()=>z.some(ma(rn(m.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:Ie=>Rp(m,Ie.element).map(He=>({bounds:J1(He),optScrollEnv:z.some({currentScrollTop:He.element.dom.scrollTop,scrollElmTop:Ja(He.element).top})})).getOrThunk(()=>({bounds:is(),optScrollEnv:z.none()}))})]),isExtraPart:(Ie,He)=>qW(He)}));return we.set(Re),Sa.showWithinBounds(Re,vc(_e.dialog),{anchor:j},()=>u.backstages.popup.shared.getSink().toOptional().bind(Ie=>{const He=Rp(m,Ie.element).map(ht=>J1(ht)).getOr(is()),je=ma(rn(m.getContentAreaContainer())),tt=rb(je,He);return z.some(ga(tt.x,tt.y,tt.width,tt.height-15))})),ua.refresh(Re),m.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",xe),_e.instanceApi.setData(ke),xn.focusIn(_e.dialog),_e.instanceApi},$);return{open:($,j,Q)=>{if(!v(j)){if(j.inline==="toolbar")return F($,u.backstages.popup.shared.anchors.inlineDialog(),Q,j);if(j.inline==="bottom")return H($,u.backstages.popup.shared.anchors.inlineBottomDialog(),Q,j);if(j.inline==="cursor")return F($,u.backstages.popup.shared.anchors.cursor(),Q,j)}return N($,Q)},openUrl:($,j)=>((Q,X)=>Ex.openUrl(ae=>{const fe=GW(ae,{closeWindow:()=>{bi.hide(fe.dialog),X(fe.instanceApi)}},m,u.backstages.dialog);return bi.show(fe.dialog),fe.instanceApi},Q))($,j),alert:($,j)=>{S.open($,j)},close:$=>{$.close()},confirm:($,j)=>{M.open($,j)}}},jW=u=>{UR(u),(m=>{const b=m.options.register,S=N=>{return T(N,i)?{value:(F=N,d8(F.map((H,$)=>$%2==0?"#"+(j=>{return(Q=j,e8(Q)?z.some({value:t8(Q)}):z.none()).orThunk(()=>a8(j).map(IC)).getOrThunk(()=>{const X=document.createElement("canvas");X.height=1,X.width=1;const ae=X.getContext("2d");ae.clearRect(0,0,X.width,X.height),ae.fillStyle="#FFFFFF",ae.fillStyle=j,ae.fillRect(0,0,1,1);const fe=ae.getImageData(0,0,1,1).data,he=fe[0],ke=fe[1],we=fe[2],Le=fe[3];return IC(bc(he,ke,we,Le))});var Q})(H).value:H))),valid:!0}:{valid:!1,message:"Must be an array of strings."};var F},M=N=>A(N)&&N>0?{value:N,valid:!0}:{valid:!1,message:"Must be a positive number."};b("color_map",{processor:S,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),b("color_map_raw",{processor:N=>T(N,i)?{value:d8(N),valid:!0}:{valid:!1,message:"Must be an array of strings."}}),b("color_map_background",{processor:S}),b("color_map_foreground",{processor:S}),b("color_cols",{processor:M,default:pT(m)}),b("color_cols_foreground",{processor:M,default:B5(m,f8)}),b("color_cols_background",{processor:M,default:B5(m,R5)}),b("custom_colors",{processor:"boolean",default:!0}),b("color_default_foreground",{processor:"string",default:I5}),b("color_default_background",{processor:"string",default:I5})})(u),(m=>{const b=m.options.register;b("contextmenu_avoid_overlap",{processor:"string",default:""}),b("contextmenu_never_use_native",{processor:"boolean",default:!1}),b("contextmenu",{processor:S=>S===!1?{value:[],valid:!0}:i(S)||T(S,i)?{value:mre(S),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})})(u)};$k.add("silver",u=>{jW(u);let m=()=>is();const{dialogs:b,popups:S,renderUI:M}=Px(u,{getPopupSinkBounds:()=>m()});_$(u,S.backstage.shared);const N=Ere({editor:u,backstages:{popup:S.backstage,dialog:b.backstage}}),F=fo();return{renderUI:()=>{const H=M();return Rp(u,S.getMothership().element).each($=>{m=()=>J1($)}),H},getWindowManagerImpl:I(N),getNotificationManagerImpl:()=>Mee(u,{backstage:S.backstage},S.getMothership(),F),getPromotionElement:()=>dr(rn(u.getContainer()),".tox-promotion").map(H=>H.dom).getOrNull()}})})(),tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2c0-1.1.9-2 2-2Zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5c0-.6-.4-1-1-1a1 1 0 0 0-1 1v5c0 .6-.4 1-1 1a1 1 0 0 1-1-1V9H4a1 1 0 1 1 0-2h16c.6 0 1 .4 1 1s-.4 1-1 1Z" fill-rule="nonzero"/></svg>',"accordion-toggle":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 15c0-.6.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1h-6a1 1 0 0 1-1-1Z"/><path opacity=".2" fill-rule="evenodd" clip-rule="evenodd" d="M4 15c0-.6.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1-1-1Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12 19c0-.6.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1h-6a1 1 0 0 1-1-1Z"/><path opacity=".2" fill-rule="evenodd" clip-rule="evenodd" d="M4 19c0-.6.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1-1-1Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.3 7.3a1 1 0 0 1 1.4 0L16 9.6l2.3-2.3a1 1 0 1 1 1.4 1.4L16 12.4l-3.7-3.7a1 1 0 0 1 0-1.4ZM4.3 11.7a1 1 0 0 1 0-1.4L6.6 8 4.3 5.7a1 1 0 0 1 1.4-1.4L9.4 8l-3.7 3.7a1 1 0 0 1-1.4 0Z"/></svg>',accordion:'<svg width="24" height="24"><rect x="12" y="7" width="10" height="2" rx="1"/><rect x="12" y="11" width="10" height="2" rx="1"/><rect x="12" y="15" width="6" height="2" rx="1"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2.3 7.3a1 1 0 0 1 1.4 0L6 9.6l2.3-2.3a1 1 0 0 1 1.4 1.4L6 12.4 2.3 8.7a1 1 0 0 1 0-1.4Z"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 0 0-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 1 0-1.4-1.4L12 13.6 5.7 7.3Z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 0 0 1.4-1.4L12 6.6l-7.7 7.7a1 1 0 0 0 1.4 1.4L12 9.4l6.3 6.3Z"/></svg>',addtag:'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M15 5a2 2 0 0 1 1.6.8L21 12l-4.4 6.2a2 2 0 0 1-1.6.8h-3v-2h3l3.5-5L15 7H5v3H3V7c0-1.1.9-2 2-2h10Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6 12a1 1 0 0 0-1 1v2H3a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 0 1 0 0-2H7v-2c0-.6-.4-1-1-1Z"/></svg>',"ai-prompt":'<svg width="24" height="24"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M15 6.7a1 1 0 0 0-1.4 0l-9.9 10a1 1 0 0 0 0 1.3l2.1 2.1c.4.4 1 .4 1.4 0l10-9.9c.3-.3.3-1 0-1.4l-2.2-2Zm1.4 2.8-2-2-3 2.7 2.2 2.2 2.8-2.9Z"/><path d="m18.5 7.3-.7-1.5-1.5-.8 1.5-.7.7-1.5.7 1.5 1.5.7-1.5.8-.7 1.5ZM18.5 16.5l-.7-1.6-1.5-.7 1.5-.7.7-1.6.7 1.6 1.5.7-1.5.7-.7 1.6ZM9.7 7.3 9 5.8 7.5 5 9 4.3l.7-1.5.7 1.5L12 5l-1.5.8-.7 1.5Z"/></g><defs><clipPath id="a"><path d="M0 0h24v24H0z"/></clipPath></defs></svg>',ai:'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M5 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H5Zm6.8 11.5.5 1.2a68.3 68.3 0 0 0 .7 1.1l.4.1c.3 0 .5 0 .7-.3.2-.1.3-.3.3-.6l-.3-1-2.6-6.2a20.4 20.4 0 0 0-.5-1.3l-.5-.4-.7-.2c-.2 0-.5 0-.6.2-.2 0-.4.2-.5.4l-.3.6-.3.7L5.7 15l-.2.6-.1.4c0 .3 0 .5.3.7l.6.2c.3 0 .5 0 .7-.2l.4-1 .5-1.2h3.9ZM9.8 9l1.5 4h-3l1.5-4Zm5.6-.9v7.6c0 .4 0 .7.2 1l.7.2c.3 0 .6 0 .8-.3l.2-.9V8.1c0-.4 0-.7-.2-.9a1 1 0 0 0-.8-.3c-.2 0-.5.1-.7.3l-.2 1Z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2Zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2Zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5 13 7H5a1 1 0 1 1 0-2h9.2Zm4 0h.8a1 1 0 0 1 0 2h-2l1.2-2Zm-6.4 4-1.2 2H5a1 1 0 0 1 0-2h6.8Zm4 0H19a1 1 0 0 1 0 2h-4.4l1.2-2Zm-6.4 4-1.2 2H5a1 1 0 0 1 0-2h4.4Zm4 0H19a1 1 0 0 1 0 2h-6.8l1.2-2ZM7 17l-1.2 2H5a1 1 0 0 1 0-2h2Zm4 0h8a1 1 0 0 1 0 2H9.8l1.2-2Zm5.2-13.5 1.3.7-9.7 16.3-1.3-.7 9.7-16.3Z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2Zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="m5.6 13 12 6a1 1 0 0 0 1.4-1V6a1 1 0 0 0-1.4-.9l-12 6a1 1 0 0 0 0 1.8Z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="m18.5 13-12 6A1 1 0 0 1 5 18V6a1 1 0 0 1 1.4-.9l12 6a1 1 0 0 1 0 1.8Z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 0 1-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8Zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4Zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4Z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 0 0-1 1Z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12.7 18.3a1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v1a1 1 0 0 0 .3.7 1 1 0 0 0 .7.3 1 1 0 0 0 .7-.3 1 1 0 0 0 .3-.7v-1a1 1 0 0 0-.3-.7ZM11.3 5.7a1 1 0 0 0 .7.3 1 1 0 0 0 .7-.3A1 1 0 0 0 13 5V4a1 1 0 0 0-.3-.7A1 1 0 0 0 12 3a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v1a1 1 0 0 0 .3.7Zm9.4 5.6a1 1 0 0 0-.7-.3h-1a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7 1 1 0 0 0 .3.7 1 1 0 0 0 .7.3h1a1 1 0 0 0 .7-.3 1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.7Zm-15 1.4A1 1 0 0 0 6 12a1 1 0 0 0-.3-.7A1 1 0 0 0 5 11H4a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7 1 1 0 0 0 .3.7 1 1 0 0 0 .7.3h1a1 1 0 0 0 .7-.3Zm13 4.6-.7-.8a1 1 0 0 0-.8-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7 1 1 0 0 0 .3.8l.7.7a1 1 0 0 0 .7.3 1 1 0 0 0 .8-.3 1 1 0 0 0 .3-.8 1 1 0 0 0-.3-.7ZM5.3 6.7l.7.8a1 1 0 0 0 .8.3 1 1 0 0 0 .7-.3 1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.8l-.7-.7A1 1 0 0 0 6 5a1 1 0 0 0-.8.3 1 1 0 0 0-.3.8 1 1 0 0 0 .3.6Zm12 1a1 1 0 0 0 .7-.2l.7-.7A1 1 0 0 0 19 6a1 1 0 0 0-.3-.8 1 1 0 0 0-.8-.3 1 1 0 0 0-.7.3l-.7.7a1 1 0 0 0-.3.8 1 1 0 0 0 .3.7 1 1 0 0 0 .7.2ZM6.7 16.4a1 1 0 0 0-.8.2l-.7.7a1 1 0 0 0-.3.7 1 1 0 0 0 .3.8 1 1 0 0 0 .8.3 1 1 0 0 0 .7-.3l.7-.7a1 1 0 0 0 .3-.8 1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3Z"/><path fill-rule="evenodd" d="M13.6 8.3A4 4 0 0 0 12 8a4 4 0 0 0-1.6.3A4 4 0 0 0 9 9.5a4 4 0 0 0-.6 1A4 4 0 0 0 8 12c0 .6.1 1 .3 1.6a4 4 0 0 0 2.1 2 4 4 0 0 0 1.6.4 4 4 0 0 0 1.6-.3 4 4 0 0 0 2-2.1A4 4 0 0 0 16 12a4 4 0 0 0-.3-1.6 4 4 0 0 0-2.1-2ZM14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm-8 9.4-2.3 2.3a1 1 0 1 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1-1.4 1.4L13 13.4V20a1 1 0 0 1-2 0v-6.6Z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 1 1 0 14.8 7.4 7.4 0 0 1 0-14.8ZM12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7Z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="m15.7 2 1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 0 1-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2ZM18 12l-4.5-4L9 12h9ZM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16Z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 0 1-2-2v-5h2zm8-7V4h6a2 2 0 0 1 2 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="m13 11-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="m18.4 8 1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 0 1-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8Zm1.6 7-3-3-3 3h6Z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 0 1-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 0 1-1 .7h-.2a.7.7 0 0 1-.7-1l4-12a1 1 0 0 1 2 0l4 12a.7.7 0 0 1-.8 1h-.2a1 1 0 0 1-1-.7l-.8-2.6zm-.3-1.5-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1Zm4.8-6.8V10H7.7V5.8h-1v-1h2ZM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1Zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1ZM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2V18.7l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 0 1-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 0 0-.5-.1 1 1 0 0 0-.4 0l-.3.4h-1Zm2.3.8h-.2l-.2.1-.4.1a1 1 0 0 0-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6Zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4Zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 0 0 1.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 0 0-.6-.3l-.6.3-.2.8Zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 0 0-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 0 1-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 0 1-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1Z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0-6h8a1 1 0 0 1 0 2h-8a1 1 0 0 1 0-2ZM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8Zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8Zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8Z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11Z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 0 1 0-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8Z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3 4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 0 1 0-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1Z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 0 1 0-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 0 1 0-1.1L6 5 2.2 1.3Z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8 5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 0 1 0-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0Z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2 13.4 12l3.9 3.8a1 1 0 0 1-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 0 1-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 0 1 1.5-1.5l3.8 3.9 3.8-3.9a1 1 0 0 1 1.5 1.5Z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 0 1-.8 2 2.8 2.8 0 0 1 .8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11Zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 0 1-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 0 1 .8-2 2.8 2.8 0 0 1-.8-2Zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2ZM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 0 1-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 0 1-.5-.5V17a3 3 0 0 0 1-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5Z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0 1 18 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 0 1-3.7 3 5.7 5.7 0 0 1-3.2 0A5.9 5.9 0 0 1 7.6 18a6.2 6.2 0 0 1-1.4-2.6 6.7 6.7 0 0 1 0-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 0 1 2.3-4A20 20 0 0 1 12 4a26.4 26.4 0 0 1 3.2 3.4 18.2 18.2 0 0 1 2.3 4Zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 0 0-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 0 1-1.3 3 5.3 5.3 0 0 1-2.3 1.5 4.9 4.9 0 0 1-2 .1 4.3 4.3 0 0 0 2.4.8 4 4 0 0 0 2-.6 4 4 0 0 0 1.5-1.5Z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 0 0 0 18 1.5 1.5 0 0 0 1.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-8-9-8Zm-5.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm3-4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm3 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24" class="color-swatch-remove-color"><path stroke="#000" stroke-width="2" d="M21 3 3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="m9 19 3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 0 0-1 1v10c0 .6.4 1 1 1h4v2Zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23Z"/><path d="M13 10h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 0v-2H9a1 1 0 0 1 0-2h2V8a1 1 0 0 1 2 0v2Z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="m9 19 3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 0 0-1 1v10c0 .6.4 1 1 1h4v2Zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23Z"/></svg>',contrast:'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 0 1 19.4 9c.4 1 .6 2 .6 3.1s-.2 2.1-.6 3.1a8 8 0 0 1-1.7 2.6 8 8 0 0 1-2.6 1.7 7.8 7.8 0 0 1-3.1.6 7.8 7.8 0 0 1-3.1-.6 8 8 0 0 1-2.6-1.7A8 8 0 0 1 4.6 15 7.8 7.8 0 0 1 4 12c0-1.1.2-2.1.6-3.1a8 8 0 0 1 1.7-2.6A8 8 0 0 1 9 4.6 7.8 7.8 0 0 1 12 4Zm-6 8a6 6 0 0 0 1.8 4.2 6 6 0 0 0 1.9 1.3 5.8 5.8 0 0 0 2.3.5V6c-.8 0-1.6.2-2.3.5a6 6 0 0 0-2 1.3 6 6 0 0 0-1.2 1.9A5.8 5.8 0 0 0 6 12Z"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 0 0-2 2v11h2V5h10V3Zm1 4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7Zm0 12V9h-7v10h7Z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-2H7V9H5a1 1 0 1 1 0-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3ZM9 9v5l5-5H9Zm1 6h5v-5l-5 5Z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0 1 10.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 0 1 2 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 0 1 7 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7Zm12.3 5h-3v10h3v-10ZM8 13.8h-.3l-.4.2a2.8 2.8 0 0 0-.7.4v.1a2.8 2.8 0 0 0-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 0 0 .8-.3 2.4 2.4 0 0 0 .7-.7 2.5 2.5 0 0 0 .3-.8 1.5 1.5 0 0 0 0-.8 1 1 0 0 0-.2-.4 1 1 0 0 0-.5-.2H8Zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4ZM7 5.8h-.4a1 1 0 0 0-.5.3 1 1 0 0 0-.2.5v.7a2.5 2.5 0 0 0 .3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 0 0 0-.8 2.6 2.6 0 0 0-.3-.8A2.5 2.5 0 0 0 7.7 6l-.4-.1H7Z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 0 1-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 0 1 8.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 0 1 0-2c0-.4.3-.7.5-1l2 2V3h14ZM8.5 15.3h-.3a2.6 2.6 0 0 0-.8.4 2.5 2.5 0 0 0-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 0 0 .8-.3L9 18V18l.4-.4.2-.4.1-.4v-.7a1 1 0 0 0-.2-.5 1 1 0 0 0-.4-.2h-.5Zm7 0H15a1 1 0 0 0-.4.3 1 1 0 0 0-.2.5 1.5 1.5 0 0 0 0 .7v.4a2.8 2.8 0 0 0 .5.7h.1a2.8 2.8 0 0 0 .8.6l.4.1h.7l.5-.2.2-.5v-.7a2.6 2.6 0 0 0-.3-.8 2.4 2.4 0 0 0-.7-.7 2.5 2.5 0 0 0-.8-.3h-.3ZM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4Zm8.5-7.1h-11v2h11v-2Z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 0 1-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 0 1 8.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 0 1 0-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 0 1 0 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8Zm-8.5 2.2.1-.4v-.7a1 1 0 0 0-.2-.5 1 1 0 0 0-.4-.2 1.6 1.6 0 0 0-.8 0 2.6 2.6 0 0 0-.8.3 2.5 2.5 0 0 0-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 0 0 .8-.3 2.8 2.8 0 0 0 1-1Zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4Zm5.4 4 .2-.5v-.7a2.6 2.6 0 0 0-.3-.8 2.4 2.4 0 0 0-.7-.7 2.5 2.5 0 0 0-.8-.3 1.5 1.5 0 0 0-.8 0 1 1 0 0 0-.4.2 1 1 0 0 0-.2.5 1.5 1.5 0 0 0 0 .7v.4l.3.4.3.4a2.8 2.8 0 0 0 .8.5l.4.1h.7l.5-.2Z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3ZM17 19H7V5h6v4h4v10Z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5Zm0 4h2v2h-2V9ZM9 9h2v2H9V9Zm4 4h2v2h-2v-2Zm-4 0h2v2H9v-2Zm0 4h2v2H9v-2Zm4 0h2v2h-2v-2ZM9 5h2v2H9V5Z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7Zm-2 2h-3v12h3V8Zm-2-6v2H8v15H6V2h7Z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16Zm-2 2H8v3h12v-3Zm-1-6v2H4v5H2V7h17Z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10Zm3 8h-2V9h-7v10h9a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7a2 2 0 0 1 2 2v2Z"/><path d="M17 14h1a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1h-1a1 1 0 0 1 0-2h1v-1a1 1 0 0 1 2 0v1Z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="m19.8 8.8-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5Zm-2-.2 1-.9v-.3l-2.2-2.2a.3.3 0 0 0-.3 0l-1 1L18 8.5Zm-1 1-2.5-2.4-6 6 2.5 2.5 6-6Zm-7 7.1-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5Z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 0 0-2-2H7v2h11v9ZM6 17h15a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1H6a2 2 0 0 1-2-2V7H3a1 1 0 1 1 0-2h1V4a1 1 0 1 1 2 0v13Zm3-5.3 1.3 2 3-4.7 3.7 6H7l2-3.3Z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0 1 19 6Zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4Zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6Zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3Zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 0 0 8 19h3ZM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 0 0-4 4.5h2.2Zm-3.4 0a12 12 0 0 1 2.8-4 12 12 0 0 0-5 4h2.2Z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm1 2v14h14V5H5Zm4.8 2.6 5.6 4a.5.5 0 0 1 0 .8l-5.6 4A.5.5 0 0 1 9 16V8a.5.5 0 0 1 .8-.4Z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1Zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1Zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13Z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3 18 7v1h-5V5H7v14h9a1 1 0 0 1 2 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5Z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3Z"/><path d="M16.4 9.2a1 1 0 0 1 1.4.2l2.4 3.6-2.4 3.6a1 1 0 0 1-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 0 1 .2-1.4Z"/></g></svg>',fill:'<svg width="24" height="26"><path d="m16.6 12-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 0 0 2.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2ZM5.2 13 10 8.2l4.8 4.8H5.2ZM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.3-2-3.5-2-3.5Z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2Zm4-8h2V9h-2v2ZM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 0 0-2 2Zm14-2v2h2a2 2 0 0 0-2-2Zm-7 16h2V3h-2v18Zm7-6h2v-2h-2v2Zm-4-8h2V5h-2v2Zm4 12a2 2 0 0 0 2-2h-2v2Z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5Zm8 4v2h2v-2h-2Zm4-14H7a2 2 0 0 0-2 2v3h2V6h10v3h2V6a2 2 0 0 0-2-2Zm2 14h-2v2a2 2 0 0 0 2-2ZM3 11v2h18v-2H3Zm6 7v2h2v-2H9Zm8-4v2h2v-2h-2ZM5 18c0 1.1.9 2 2 2v-2H5Z" fill-rule="nonzero"/></svg>',footnote:'<svg width="24" height="24"><path d="M19 13c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2h14Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M19 4v6h-1V5h-1.5V4h2.6Z"/><path d="M12 18c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2h7ZM14 8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2h9Z"/></svg>',"format-code":'<svg width="24" height="24"><path d="m10 22 2-7H6l9-13h2l-2 8h7L12 22h-2ZM6 2h7l-1.4 2H6V2Zm4.2 4H4v2h4.8l1.4-2Zm-2.7 4H2v2h4l1.5-2Z"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 0 0-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3Z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 0 1 0 2h-4v11a1 1 0 0 1-2 0V7H7a1 1 0 1 1 0-2h10Z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="m15.3 10-1.2-1.3 2.9-3h-2.3a.9.9 0 1 1 0-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 1 1-1.8 0V7l-2.9 3Zm0 4 3 3v-2.3a.9.9 0 1 1 1.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 1 1 0-1.8H17l-3-2.9 1.3-1.2ZM10 15.4l-2.9 3h2.3a.9.9 0 1 1 0 1.7H5a.9.9 0 0 1-.9-.9v-4.4a.9.9 0 1 1 1.8 0V17l2.9-3 1.2 1.3ZM8.7 10 5.7 7v2.3a.9.9 0 0 1-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 0 1 0 1.8H7l3 2.9-1.3 1.2Z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="m5 15.7 2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7ZM5 18V19h3l1.8-1.9-2-2L5 17.9Zm14-3-2.5-2.4-6.4 6.5H19v-4ZM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V7c0-.6.4-1 1-1Zm6 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4ZM4.5 4h15a.5.5 0 1 1 0 1h-15a.5.5 0 0 1 0-1Zm2-2h11a.5.5 0 1 1 0 1h-11a.5.5 0 0 1 0-1Z"/></svg>',gamma:'<svg height="24" width="24"><path d="M11.5 16.3a.7.7 0 1 0 1.4 0V14l2.7-6a.7.7 0 1 0-1.2-.6l-2.2 5-2.3-4.9C9.6 7 8.7 7 8 7.2v1.1c.8-.2.9 0 1.2 1l2.3 4.7z"/><path d="M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm1 2h14v14H5z" fill-rule="evenodd"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 0 0-6 9 6.3 6.3 0 0 0 1.4 2l1 1a6.3 6.3 0 0 0 3.6 1 6.5 6.5 0 0 0 6-9 6.3 6.3 0 0 0-1.4-2l-1-1a6.3 6.3 0 0 0-3.6-1ZM12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4Z"/><path d="M9.6 9.7a.7.7 0 0 1-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 0 0-.8.8.8.8 0 0 1-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8Z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path class="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 0 1 2.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="m5 15.7 3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7ZM5 18V19h3l2.8-2.9-2-2L5 17.9Zm14-3-2.5-2.4-6.4 6.5H19v-4ZM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2Zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2Zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2Zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2Zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6Z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4Zm-1 3v2h2V7h-2Zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4Z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 0 0 1.8-2.9 6.3 6.3 0 0 0-.1-4.1 5.8 5.8 0 0 0-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 0 0-3.9 1.8 6.3 6.3 0 0 0-1.3 6 6.2 6.2 0 0 0 1.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 0 1 4 11c0-1 .2-1.9.6-2.7A7 7 0 0 1 6.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 0 1 5.7 2 7 7 0 0 1 1.7 2.3 6 6 0 0 1 .2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 0 1-3.6 2.5v.5Z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm0 2a9 9 0 1 1 0-18 9 9 0 0 1 0 18Z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 0 0-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1Z"/></g></svg>',invert:'<svg height="24" width="24"><path d="M5 4 3.6 5.4l3.9 4C6.6 10.7 6 12.3 6 14a6 6 0 0 0 10.3 4.2l1.9 1.8 1.4-1.4z" fill-rule="evenodd"/><path d="M13.4 8.4c.9 1 1.6 2.1 2 3.2l2.6 2.6V14c0-5-6-10-6-10s-1 .8-2.1 2l1.4 1.5.7-.7 1.4 1.6z"/></svg>',italic:'<svg width="24" height="24"><path d="m16.7 4.7-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8Z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 0 0 3.2-2.1l-.2-.2a6 6 0 0 0-1-.6Zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 0 1-2-2.8Zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7Zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3Zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 0 1-.3-2Zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1Zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6Zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3Zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1Zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3Zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1Zm3-1.4-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 0 0-1.3-3.5Zm-9 0 2 .2V5.5a9 9 0 0 0-2 2.2Zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 0 0-2-2.3Zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 0 1 1.9-2.5Zm4.4 0 .1.1a10 10 0 0 1 1.8 2.4l1.1-.7a7.5 7.5 0 0 0-3-1.8Z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zm0 4a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zm0 4a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zm0 4a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zM7 3.6l3.7 3.7a1 1 0 0 1-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 0 1 1.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 0 1 1.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 0 1-1.3 0h-.1a1 1 0 0 1 0-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="m15 9-8 8H4v-3l8-8 3 3Zm1-1-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1ZM4 18h16v2H4v-2Z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2 2a2 2 0 1 0 2.6 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2Zm11.6-.6a1 1 0 0 1-1.4-1.4l2-2a2 2 0 1 0-2.6-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2Z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg height="48" width="48"><path d="M8 14a3 3 0 1 0 6 0 3 3 0 0 0-6 0zm5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zM8 24a3 3 0 1 0 6 0 3 3 0 0 0-6 0zm5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0zM8 34a3 3 0 1 0 6 0 3 3 0 0 0-6 0zm5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z" fill-rule="evenodd"/><path d="M18 12h22v4H18zm0 10h22v4H18zm0 10h22v4H18z" opacity=".2"/></svg>',"list-bull-default":'<svg height="48" width="48"><path d="M14 14a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path d="M12 24a3 3 0 1 0 6 0 3 3 0 0 0-6 0zm5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z" fill-rule="evenodd"/><path d="M16 31h6v6h-6z"/><path d="M16 31h6v6h-6z"/><path d="M18 12h22v4H18zm4 10h18v4H22zm4 10h14v4H26z" opacity=".2"/></svg>',"list-bull-disc":'<svg height="48" width="48"><path d="M14 14a3 3 0 1 1-6 0 3 3 0 0 1 6 0zm0 10a3 3 0 1 1-6 0 3 3 0 0 1 6 0zm0 10a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/><path d="M18 12h22v4H18zm0 10h22v4H18zm0 10h22v4H18z" opacity=".2"/></svg>',"list-bull-square":'<svg height="48" width="48"><path d="M8 21h6v6H8zm0 10h6v6H8zm0-20h6v6H8z"/><path d="M18 12h22v4H18zm0 10h22v4H18zm0 10h22v4H18z" opacity=".2"/></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8h-.1l-1.5 1v-1.1l1.6-1.1h1.2v6zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2Zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7Zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5Zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7ZM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7Zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7Z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7Zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6ZM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7ZM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4Zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3ZM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6Zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7Zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4Zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3Zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7Zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8Zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4ZM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7ZM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22Zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3ZM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7ZM37.1 34.6 34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2Zm.7 1a2 2 0 0 0-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1ZM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4Zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8Zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7Zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3ZM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22Zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7Zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2Zm.7 1a2 2 0 0 0-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1Zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33Zm0 10v-1.2h-1.3V26H33Zm0 10v-1.2h-1.3V36H33Z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15Zm0 10v-1.2h1.3V26H15Zm0 10v-1.2h1.3V36H15Z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="m39.3 17-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3Zm-1.6-4.7-.7 2.3h1.6l-.8-2.3ZM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7Zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7Zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1Zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26ZM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2Zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="m12.6 17-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3ZM11 12.3l-.7 2.3h1.6l-.8-2.3Zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7ZM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7ZM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1Zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26Zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2Zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7Z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3Zm0 10v-1.2H33V27h-1.3Zm0 10v-1.2H33V37h-1.3Z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15Zm0 10v-1.2h1.3V27H15Zm0 10v-1.2h1.3V37H15Z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3ZM10 8v3h4V8a1 1 0 0 0-.3-.7A1 1 0 0 0 13 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7Z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 7.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L11 5ZM4.4 16.2 6.2 15l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6Z" fill-rule="evenodd"/></svg>',"math-equation":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 4.8c.1-.5.5-.8 1-.8h10a1 1 0 1 1 0 2h-9.2L8.3 19.2a1 1 0 0 1-1.7.4l-3.4-4.2a1 1 0 0 1 1.6-1.2l2 2.5L9 4.8Zm9.7 5.5c.4.4.4 1 0 1.4L17 13.5l1.8 1.8a1 1 0 1 1-1.4 1.4L15.5 15l-1.8 1.8a1 1 0 0 1-1.4-1.4l1.8-1.8-1.8-1.8a1 1 0 0 1 1.4-1.4l1.8 1.8 1.8-1.8a1 1 0 0 1 1.4 0Z"/></svg>',mentions:'<svg height="24" width="24"><path d="M12 21a8.8 8.8 0 0 1-3.5-.7 9 9 0 0 1-2.9-2 9 9 0 0 1-1.9-2.8A8.8 8.8 0 0 1 3 12c0-1.3.2-2.4.7-3.5a9 9 0 0 1 4.8-4.8A8.8 8.8 0 0 1 12 3c1.3 0 2.4.2 3.5.7a9.1 9.1 0 0 1 4.8 4.8A8.7 8.7 0 0 1 21 12v1.4a3 3 0 0 1-.9 2.2 3 3 0 0 1-2.2.9c-.5 0-1-.1-1.5-.4a3.8 3.8 0 0 1-1.1-1 4.8 4.8 0 0 1-1.5 1 4.3 4.3 0 0 1-1.8.4c-1.2 0-2.3-.4-3.2-1.3-.9-.9-1.3-2-1.3-3.2s.4-2.3 1.3-3.2c.9-.9 2-1.3 3.2-1.3s2.3.4 3.2 1.3c.9.9 1.3 2 1.3 3.2v1.4c0 .4.1.7.4 1 .3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1V12c0-2-.7-3.8-2.1-5.2S14 4.7 12 4.7s-3.8.7-5.2 2.1S4.7 10 4.7 12s.7 3.8 2.1 5.2 3.2 2.1 5.2 2.1h4.5V21zm0-6.2c.8 0 1.4-.3 2-.8a2.7 2.7 0 0 0 .8-2c0-.8-.3-1.4-.8-2a2.7 2.7 0 0 0-2-.8c-.8 0-1.4.3-2 .8a2.7 2.7 0 0 0-.8 2c0 .8.3 1.4.8 2a2.7 2.7 0 0 0 2 .8z"/></svg>',minus:'<svg width="24" height="24"><path d="M19 11a1 1 0 0 1 .1 2H5a1 1 0 0 1-.1-2H19Z"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2Z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3ZM17 19H7V5h6v4h4v10Z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="m15 13 2-2v8H5V7h8l-2 2H7v8h8v-4Zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19Z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 1 1 0-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-3Zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1Z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M15.5 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7ZM13 17v-2h-2v2h2Zm0-4V7h-2v6h2Z" fill-rule="evenodd" clip-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2Zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2Zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 1 1 0-2Zm13-1v3.5a.5.5 0 1 1-1 0V5h-.5a.5.5 0 1 1 0-1H19Zm-1 8.8.2.2h1.3a.5.5 0 1 1 0 1h-1.6a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2h-1.3a.5.5 0 0 1-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3Zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 0 1 0-1h1.2a.3.3 0 1 0 0-.6h-1.3a.4.4 0 1 1 0-.8h1.3a.3.3 0 0 0 0-.6h-1.2a.5.5 0 1 1 0-1H19c.6 0 1 .4 1 1Z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 1 1 0-2ZM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.5V5h-.5a.5.5 0 0 1 0-1H6Zm-1 8.8.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2H4.5a.5.5 0 0 1-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3ZM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 0 1 0-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 1 1 0-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 1 1 0-1H6c.6 0 1 .4 1 1Z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4 1 13l6.4 6.5 6.5-6.5-6.5-6.5ZM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7ZM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 0 1 0-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 1 1-4.3 16.9l1.5-1.5A7 7 0 1 0 13 6h-1Z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2Zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2Zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2Zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2Zm1.6-3.8a1 1 0 0 1-1.2 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 0 1 1.2 1.6L6.8 12l1.8 1.2Z" fill-rule="evenodd"/></svg>',"export-pdf":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M7 3h7.4L19 7.6V17h-2V9h-4V5H7v3H5V5c0-1.1.9-2 2-2Z"/><path d="M2.6 15.2v-1.9h1c.6 0 1-.2 1.4-.5.3-.3.5-.7.5-1.2s-.2-.9-.5-1.2a2 2 0 0 0-1.3-.4H1v5.2h1.6Zm.4-3h-.4v-1.1h.5l.6.1.2.5c0 .1 0 .3-.2.4l-.7.1Zm5.7 3 1-.1c.3 0 .5-.2.7-.4l.5-.8c.2-.3.2-.7.2-1.3v-1l-.5-.8c-.2-.3-.4-.5-.7-.6L8.7 10H6.3v5.2h2.4Zm-.4-1.1H8v-3h.4c.5 0 .8.2 1 .4l.2 1.1-.1 1-.3.3-.8.2Zm5.3 1.2V13h2v-1h-2v-1H16V10h-4v5.2h1.6Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15 17a1 1 0 1 0-2 0v3.1l-1.4-1a1 1 0 1 0-1.2 1.7l3.6 2.4 3.6-2.4a1 1 0 0 0-1.2-1.6l-1.4 1V17Z"/></svg>',"export-word":'<svg width="24" height="24"><path d="M9.5 7A1.5 1.5 0 0 1 11 8.4v7.1A1.5 1.5 0 0 1 9.6 17H2.5A1.5 1.5 0 0 1 1 15.6V8.5A1.5 1.5 0 0 1 2.4 7h7.1Zm-1 2.8-1 2.6-1-2.5v-.1a.6.6 0 0 0-1 0l-.1.1-.9 2.5-1-2.5v-.1a.6.6 0 0 0-1 .4v.1l1.5 4v.1a.6.6 0 0 0 1 0v-.1l1-2.5.9 2.5v.1a.6.6 0 0 0 1 0H8l1.6-4v-.2a.6.6 0 0 0-1.1-.4Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 3h7.4L19 7.6V17h-2V9h-4V5H5c0-1.1.9-2 2-2ZM15 17a1 1 0 1 0-2 0v3.1l-1.4-1a1 1 0 1 0-1.2 1.7l3.6 2.4 3.6-2.4a1 1 0 0 0-1.2-1.6l-1.4 1V17Z"/></svg>',"import-word":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M7 3h7.4L19 7.6V15h-2V9h-4V5H5c0-1.1.9-2 2-2Z"/><path d="M9.5 7A1.5 1.5 0 0 1 11 8.4v7.1A1.5 1.5 0 0 1 9.6 17H2.5A1.5 1.5 0 0 1 1 15.6V8.5A1.5 1.5 0 0 1 2.4 7h7.1Zm-1 2.8-1 2.6-1-2.5v-.1a.6.6 0 0 0-1 0l-.1.1-.9 2.5-1-2.5v-.1a.6.6 0 0 0-1 .4v.1l1.5 4v.1a.6.6 0 0 0 1 0v-.1l1-2.5.9 2.5v.1a.6.6 0 0 0 1 0H8l1.6-4v-.2a.6.6 0 0 0-1.1-.4Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.4 18.2a1 1 0 0 0 1.2 1.6l1.4-1V22a1 1 0 1 0 2 0v-3.1l1.4 1a1 1 0 0 0 1.2-1.7L15 15.8l-3.6 2.4Z"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2Zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2Zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2Zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 0 1 0-2Zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2ZM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1ZM6 22a1 1 0 0 1-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5H7v5c0 .6-.4 1-1 1Z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 6.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L10 5Z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 0 1 2.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0 1 12 1Zm8 7v12h-6V8h6Zm-1.5 1.5h-3v9h3v-9ZM12 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 0 1 2.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0 1 12 1Zm-2 7v12H4V8h6ZM8.5 9.5h-3v9h3v-9ZM12 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 0 1 2.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0 1 12 1Zm10 11v5H8v-5h14Zm-1.5 1.5h-11v2h11v-2ZM12 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 0 1 2.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0 1 12 1Zm10 7v5H8V8h14Zm-1.5 1.5h-11v2h11v-2ZM12 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9ZM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1Zm1.5-9.5v9h9v-9h-9ZM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1Zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2Z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9ZM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1Zm1.5-9.5v9h9v-9h-9ZM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1Z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5 8 20H3v-3l3.5-3.5a2 2 0 0 1 0-3L14 3l1 1-7.3 7.3a1 1 0 0 0 0 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 0 1-2.8 0l-.1-.1Z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 0 1 .1 2H13v6a1 1 0 0 1-2 .1V13H5a1 1 0 0 1-.1-2H11V5c0-.6.4-1 1-1Z"/></svg>',preferences:'<svg width="24" height="24"><path d="m20.1 13.5-1.9.2a5.8 5.8 0 0 1-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 0 1-1.4 0l-1.5-1.2a6.2 6.2 0 0 1-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 0 1-1-.9l-.2-1.9a5.8 5.8 0 0 1-1.5-.6l-1.5 1.2a1 1 0 0 1-1.4 0l-.7-.7a1 1 0 0 1 0-1.4l1.2-1.5a6.2 6.2 0 0 1-.6-1.5l-1.9-.2a1 1 0 0 1-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 0 1 .6-1.5L5.2 7.3a1 1 0 0 1 0-1.4l.7-.7a1 1 0 0 1 1.4 0l1.5 1.2a6.2 6.2 0 0 1 1.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 0 1 1.5.6l1.5-1.2a1 1 0 0 1 1.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 0 1 .6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 0 0 2.1-2.8 15.7 15.7 0 0 0-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 0 0-6.7 3.2A16.2 16.2 0 0 0 3.2 12c0 .2.2.3.3.5Zm-2.4-1 .7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 0 1 2.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 0 1-2.8-3.7 1 1 0 0 1 0-1Zm12-3.3a2 2 0 1 0 2.7 2.6 4 4 0 1 1-2.6-2.6Z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 0 0-3 3v6h2v3h14v-3h2v-6a3 3 0 0 0-3-3Zm-1 10H7v-4h10v4Zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5Zm.5-8H6v2h12V5Z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3Zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3Z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 1 1-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 1 1 1.4-1.4l5 5a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4-1.4l3.3-3.3Z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="m5 22.1-1.2-4.7v-.2a1 1 0 0 1 1-1l5 .4a1 1 0 1 1-.2 2l-2.2-.2a7.8 7.8 0 0 0 8.4.2 7.5 7.5 0 0 0 3.5-6.4 1 1 0 1 1 2 0 9.5 9.5 0 0 1-4.5 8 9.9 9.9 0 0 1-10.2 0l.4 1.4a1 1 0 1 1-2 .5ZM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 0 0-9.5-1 7.5 7.5 0 0 0-3.6 7 1 1 0 0 1-2 0 9.5 9.5 0 0 1 4.5-8.6 10 10 0 0 1 10.9.3l-.3-1a1 1 0 0 1 2-.5l1.1 4.8a1 1 0 0 1-1 1.2l-5-.4a1 1 0 0 1-.9-1Z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 0 1 0 .2l-2.6 10a1 1 0 0 1-1 .8h-.2a.8.8 0 0 1-.8-1l2.6-10H8a1 1 0 1 1 0-2h9a1 1 0 0 1 0 2h-3.8ZM5 18h7a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Zm13 1.5L16.5 18 15 19.5a.7.7 0 0 1-1-1l1.5-1.5-1.5-1.5a.7.7 0 0 1 1-1l1.5 1.5 1.5-1.5a.7.7 0 0 1 1 1L17.5 17l1.5 1.5a.7.7 0 0 1-1 1Z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 0 1 0 2h-1v9a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9H5a1 1 0 1 1 0-2h3V6a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v1Zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 0 0-1 1v1h4Zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9Zm-7 3a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4Zm4 0a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4Z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 1 1 9 2l-7 7A.5.5 0 1 1 1 8l7-7ZM8.1 5.1A.5.5 0 1 1 9 6l-3 3A.5.5 0 1 1 5 8l3-3Z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-6a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3A1 1 0 0 1 4 11V5Z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1Z"/><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10Z" fill-rule="nonzero"/></g></svg>',"revision-history":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1Z"/><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10Z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10Z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 0 1 2 0v6c0 .6-.4 1-1 1h-6a1 1 0 0 1 0-2h4.3L16 7A7.2 7.2 0 0 0 7.7 6a7 7 0 0 0 3 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 0 1 1.4 1.5A9.2 9.2 0 0 1 2.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8Z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 4.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L8 5Zm12 11.2a1 1 0 1 1-1 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 1 1 1 1.6L18.4 15l1.8 1.2Z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2Zm0 2v2h14v-2H5Zm10 0h2v2h-2v-2Zm-4-6.4L8.7 9.3a1 1 0 1 0-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 1 0-1.4-1.4L13 11.6V4a1 1 0 0 0-2 0v7.6Z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3Zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 0 0-2 2Zm0 8h2v-2H3v2Zm4 8h2v-2H7v2ZM3 9h2V7H3v2Zm10-6h-2v2h2V3Zm6 0v2h2a2 2 0 0 0-2-2ZM5 21v-2H3c0 1.1.9 2 2 2Zm-2-4h2v-2H3v2ZM9 3H7v2h2V3Zm2 18h2v-2h-2v2Zm8-8h2v-2h-2v2Zm0 8a2 2 0 0 0 2-2h-2v2Zm0-12h2V7h-2v2Zm0 8h2v-2h-2v2Zm-4 4h2v-2h-2v2Zm0-16h2V3h-2v2ZM7 17h10V7H7v10Zm2-8h6v6H9V9Z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2Zm3.6 10.9L7 12.3a.7.7 0 0 0-1 1L9.6 17 18 8.6a.7.7 0 0 0 0-1 .7.7 0 0 0-1 0l-7.4 7.3Z"/></svg>',send:'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="m13.3 22 7-18.3-18.3 7L9 15l4.3 7ZM18 6.8l-.7-.7L9.4 14l.7.7L18 6.8Z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V8H5a1 1 0 1 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6ZM8 8h2V6H8v2Zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V13H5a1 1 0 0 1 0-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6ZM14 13h2v-2h-2v2Zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V18H5a1 1 0 0 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6ZM8 18h2v-2H8v2Z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path fill-rule="evenodd" d="m16 6 4 4-8 9-8-9 4-4h8Zm-4 10.2 5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2Z"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 0 1 0-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7ZM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 0 0-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7Z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6Zm0-3v2h2V5H6Zm13 0h-3v5h3v1h-3a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1Zm-5 1.5-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5ZM13 10V8h-2v2h2Zm0-3V5h-2v2h2Zm3 5 1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12Z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 0 1 7 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1Z"/><path d="M5 11h14a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="m10.4 10 4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10ZM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 0 0-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 0 1-1.3 1.3l-.6.6h2.6V19Z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4 10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4Zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11Z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h14ZM5 15v3h6v-3H5Zm14 0h-6v3h6v-3Zm0-5h-6v3h6v-3ZM5 13h6v-3H5v3Z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8Zm-2 2H5v5h6V6Z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 0 1 2 2v7h-8v-2h6V6h-6V4Z" opacity=".2"/><path d="m18 20-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3.1.2-2.4 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3Z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm-8 9H5v5h6v-5Zm8 0h-6v5h6v-5Zm-8-7H5v5h6V6Z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm0 2H5v12h14V6Z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2Z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm0 2H5v12h14V6Z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2Z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v7h-8v7H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm-8 9H5v5h6v-5Zm8-7h-6v5h6V6Zm-8 0H5v5h6V6Z"/><path d="m18 20-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3.1.2-2.4 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2Zm.3.5 1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5Z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6Zm-4.7 1.8 1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3Z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14ZM5 6v12h14V6H5Z"/><path d="m14.4 8.6 1.1 1-2.4 2.4 2.4 2.4-1.1 1.1-2.4-2.4-2.4 2.4-1-1.1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 0 1-2 0V6h-8v12h8v-1a1 1 0 0 1 2 0v2c0 .5-.4 1-.9 1H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h15ZM9 13H5v5h4v-5Zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 0 1 .1 2H17v2a1 1 0 0 1-2 .1V13h-2a1 1 0 0 1-.1-2H15V9c0-.6.4-1 1-1ZM9 6H5v5h4V6Z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a1 1 0 0 1-1-1v-2a1 1 0 0 1 2 0v1h8V6H5v1a1 1 0 1 1-2 0V5c0-.6.4-1 1-1h15Zm0 9h-4v5h4v-5ZM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 0 1 .1 2H9v2a1 1 0 0 1-2 .1V13H5a1 1 0 0 1-.1-2H7V9c0-.6.4-1 1-1Zm11-2h-4v5h4V6Z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 1 1 0 2H5v6h14V6h-1a1 1 0 0 1 0-2h2c.6 0 1 .4 1 1v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5c0-.6.4-1 1-1h2Zm5 10H5v4h6v-4Zm8 0h-6v4h6v-4ZM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 .1V8H9a1 1 0 0 1 0-2h2V4c0-.6.4-1 1-1Z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 0 1 .1 2H13v2a1 1 0 0 1-2 .1V18H9a1 1 0 0 1-.1-2H11v-2c0-.6.4-1 1-1Zm6 7a1 1 0 0 1 0-2h1v-6H5v6h1a1 1 0 0 1 0 2H4a1 1 0 0 1-1-1V6c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v13c0 .5-.4 1-.9 1H18ZM11 6H5v4h6V6Zm8 0h-6v4h6V6Z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm0 9h-4v5h4v-5Zm-6 0H9v5h4v-5Zm0-7H9v5h4V6Zm6 0h-4v5h4V6Z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14ZM5 15.5V18h3v-2.5H5Zm14-5h-9V18h9v-7.5ZM19 6h-4v2.5h4V6ZM8 6H5v2.5h3V6Zm5 0h-3v2.5h3V6Zm-8 7.5h3v-3H5v3Z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6Zm0 12h8v3H6v-3Zm11 0c.6 0 1 .4 1 1v1a1 1 0 0 1-2 0v-1c0-.6.4-1 1-1ZM6 11h8v3H6v-3Zm11 0c.6 0 1 .4 1 1v1a1 1 0 0 1-2 0v-1c0-.6.4-1 1-1ZM6 6h8v3H6V6Zm11 0c.6 0 1 .4 1 1v1a1 1 0 1 1-2 0V7c0-.6.4-1 1-1Z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h12Zm0 12h-8v3h8v-3ZM7 16a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0v-1c0-.6-.4-1-1-1Zm11-5h-8v3h8v-3ZM7 11a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0v-1c0-.6-.4-1-1-1Zm11-5h-8v3h8V6ZM7 6a1 1 0 0 0-1 1v1a1 1 0 1 0 2 0V7c0-.6-.4-1-1-1Z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14ZM5 15v3h6v-3H5Zm14 0h-6v3h6v-3Zm0-9h-6v3h6V6ZM5 9h6V6H5v3Z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14ZM8 15.5H5V18h3v-2.5Zm11-5h-9V18h9v-7.5Zm-2.5 1 1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2Zm-8.5-1H5v3h3v-3ZM19 6h-4v2.5h4V6ZM8 6H5v2.5h3V6Zm5 0h-3v2.5h3V6Z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14Zm-8 11H5v3h6v-3Zm8 0h-6v3h6v-3Zm0-5h-6v3h6v-3ZM5 13h6v-3H5v3Z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14ZM5 14v4h6v-4H5Zm14 0h-6v4h6v-4Zm0-6h-6v4h6V8ZM5 12h6V8H5v4Z"/></svg>',"template-add":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 12v4H5a2 2 0 0 0-2 2v3h9.3a6 6 0 0 1-.3-2H5v-1h7a6 6 0 0 1 .8-2H11v-5l-.8-.6a3 3 0 1 1 3.6 0l-.8.6v4.7a6 6 0 0 1 2-1.9V12a5 5 0 1 0-6 0Z"/><path d="M18 15c.5 0 1 .4 1 .9V18h2a1 1 0 0 1 .1 2H19v2a1 1 0 0 1-2 .1V20h-2a1 1 0 0 1-.1-2H17v-2c0-.6.4-1 1-1Z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14ZM9 16v-4a5 5 0 1 1 6 0v4h4a2 2 0 0 1 2 2v3H3v-3c0-1.1.9-2 2-2h4Zm4 0v-5l.8-.6a3 3 0 1 0-3.6 0l.8.6v5h2Z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 1 1 1 0V6H15v1.6a8 8 0 1 1-6 0Zm-2.6 5.3a.5.5 0 0 0 .3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 0 1 3.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 0 0-4.1 3.7Z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path class="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 0 1-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 0 1-.5.6h-.8a.5.5 0 0 1-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4Zm2.6-7.6-.6 2a.5.5 0 0 0 .5.6h1.6a.5.5 0 0 0 .5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4Z"/></g></svg>',"text-size-decrease":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M14 5a1 1 0 1 1 0 2h-4v11a1 1 0 1 1-2 0V7H4a1 1 0 0 1 0-2h10ZM14 12a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-6Z"/></svg>',"text-size-increase":'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M14 5a1 1 0 1 1 0 2h-4v11a1 1 0 1 1-2 0V7H4a1 1 0 0 1 0-2h10ZM17 9a1 1 0 0 0-1 1v2h-2a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 0 1 0 0-2h-2v-2c0-.6-.4-1-1-1Z"/></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2Zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2Zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2Zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2Zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2Zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2Zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="m12.7 14.3-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 0 1 0-1l3.1-3A12.4 12.4 0 0 1 6.7 9H8a10.1 10.1 0 0 0 1.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 1 1 0-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 0 1-1 2.4 13.5 13.5 0 0 1-1.7 2.3l1.9 1.8Zm4.3-3 2.7 7.3a.5.5 0 0 1-.4.7 1 1 0 0 1-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 0 1-1 .7.5.5 0 0 1-.4-.7l2.7-7.4a1 1 0 0 1 2 0Zm-2.2 4.4h2.4L16 12.5l-1.2 3.2Z" fill-rule="evenodd"/></svg>',typography:'<svg width="24" height="24"><path fill-rule="evenodd" clip-rule="evenodd" d="M17 5a1 1 0 1 1 0 2h-4v11a1 1 0 1 1-2 0V7H7a1 1 0 0 1 0-2h10Z"/><path d="m17.5 14 .8-1.7 1.7-.8-1.7-.8-.8-1.7-.8 1.7-1.7.8 1.7.8.8 1.7ZM7 14l1 2 2 1-2 1-1 2-1-2-2-1 2-1 1-2Z"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 0 1-.4 1.8l-1 1.4a5.3 5.3 0 0 1-5.5 1 5 5 0 0 1-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 0 1-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 0 0 2.2.8 3.4 3.4 0 0 0 2.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1ZM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2Z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 0 1-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 1 1-1.4 1.4l-5-5a1 1 0 0 1 0-1.4l5-5a1 1 0 0 1 1.4 1.4L6.4 8Z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2 2a2 2 0 1 0 2.6 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2Zm11.6-.6a1 1 0 0 1-1.4-1.4l2.1-2a2 2 0 1 0-2.7-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2ZM7.6 6.3a.8.8 0 0 1-1 1.1L3.3 4.2a.7.7 0 1 1 1-1l3.2 3.1ZM5.1 8.6a.8.8 0 0 1 0 1.5H3a.8.8 0 0 1 0-1.5H5Zm5-3.5a.8.8 0 0 1-1.5 0V3a.8.8 0 0 1 1.5 0V5Zm6 11.8a.8.8 0 0 1 1-1l3.2 3.2a.8.8 0 0 1-1 1L16 17Zm-2.2 2a.8.8 0 0 1 1.5 0V21a.8.8 0 0 1-1.5 0V19Zm5-3.5a.7.7 0 1 1 0-1.5H21a.8.8 0 0 1 0 1.5H19Z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 0 0-.3-.7A1 1 0 0 0 16 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2Z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2ZM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1Zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1Zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1Z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2Zm0 1a1 1 0 0 0-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6Z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 0 1 2 0v3c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 2 0v2h12ZM11 6.4 8.7 8.7a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 1 1-1.4 1.4L13 6.4V16a1 1 0 0 1-2 0V6.4Z" fill-rule="nonzero"/></svg>',"add-file":'<svg height="24" width="24"><path d="M2 7h2V4h3V2H4a2 2 0 0 0-2 2zm20 0h-2V4h-3V2h3a2 2 0 0 1 2 2zm0 2h-2v6h2zm0 8h-2v3h-3v2h3a2 2 0 0 0 2-2zM2 9h2v6H2zm0 8h2v3h3v2H4a2 2 0 0 1-2-2zm7 5v-2h6v2zm6-20v2H9V2zM6 17h12l-4-5-3 3.8-2-2.6z"/><path d="M2 7h2V4h3V2H4a2 2 0 0 0-2 2zm20 0h-2V4h-3V2h3a2 2 0 0 1 2 2zm0 2h-2v6h2zm0 8h-2v3h-3v2h3a2 2 0 0 0 2-2zM2 9h2v6H2zm0 8h2v3h3v2H4a2 2 0 0 1-2-2zm7 5v-2h6v2zm6-20v2H9V2zM6 17h12l-4-5-3 3.8-2-2.6z"/><path d="M6 17h12l-4-5-3 3.8-2-2.6z"/><path d="M6 17h12l-4-5-3 3.8-2-2.6z"/><path d="M6 17h12l-4-5-3 3.8-2-2.6z"/><path d="M6 17h12l-4-5-3 3.8-2-2.6z"/></svg>',adjustments:'<svg width="24" height="24"><path d="M16 11a3 3 0 1 1 2.8-4H21v2h-2.2a3 3 0 0 1-2.8 2Zm0-2a1 1 0 1 1 0-2 1 1 0 0 1 0 2ZM3 9h8V7H3v2Zm5 10a3 3 0 1 0-2.8-4H3v2h2.2A3 3 0 0 0 8 19Zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm13 0h-8v-2h8v2Z"/></svg>',"alt-text":'<svg width="24" height="24"><path d="M3 20a2 2 0 0 1-1.4-.6A2 2 0 0 1 1 18V6c0-.6.2-1 .6-1.4A2 2 0 0 1 3 4h18c.6 0 1 .2 1.4.6.4.4.6.9.6 1.4v12c0 .6-.2 1-.6 1.4a2 2 0 0 1-1.4.6H3Zm0-2h18V6H3v12Zm1.5-3H6v-1.5h1.5V15H9v-5a1 1 0 0 0-.3-.7A1 1 0 0 0 8 9H5.5a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v5ZM6 12v-1.5h1.5V12H6Z"/><path d="M11 15V9h1.3v4.5h2V15H11Zm5.8-4.5V15h1.4v-4.5h1.3V9h-4v1.5h1.3Z"/></svg>',"auto-image-enhancement":'<svg width="24" height="24"><path d="M7.7 10.6a5.8 5.8 0 0 0 5.7 5.7A5.8 5.8 0 0 0 7.7 22 5.8 5.8 0 0 0 2 16.3a5.8 5.8 0 0 0 5.7-5.7ZM15.5 2c.3 3 3.3 6 6.5 6.4-3.2.5-6.2 3.4-6.5 6.5-.3-3.4-3-6-6.4-6.5 3.3-.5 6.1-3 6.4-6.4Z"/></svg>',blur:'<svg width="24" height="24"><path d="M19.3 9.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3a1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.7A1 1 0 0 0 20 9a1 1 0 0 0-.7.3Zm-16 0a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3A1 1 0 0 0 5 10a1 1 0 0 0-.3-.7A1 1 0 0 0 4 9a1 1 0 0 0-.7.3Zm16 6a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3a1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3Zm-16 0a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3A1 1 0 0 0 5 16a1 1 0 0 0-.3-.7A1 1 0 0 0 4 15a1 1 0 0 0-.7.3Zm5-11A1 1 0 0 0 8 5a1 1 0 0 0 1 1c.3 0 .5-.1.7-.3A1 1 0 0 0 10 5a1 1 0 0 0-.3-.7A1 1 0 0 0 9 4a1 1 0 0 0-.7.3Zm6 0a1 1 0 0 0-.3.7 1 1 0 0 0 1 1c.3 0 .5-.1.7-.3A1 1 0 0 0 16 5a1 1 0 0 0-.3-.7A1 1 0 0 0 15 4a1 1 0 0 0-.7.3Zm-6 16a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3a1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.7A1 1 0 0 0 9 20a1 1 0 0 0-.7.3Zm6 0a1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3s.5-.1.7-.3a1 1 0 0 0 .3-.7 1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3ZM7.6 8.6A2 2 0 0 0 7 10c0 .6.2 1 .6 1.4.4.4.8.6 1.4.6s1-.2 1.4-.6c.4-.4.6-.8.6-1.4s-.2-1-.6-1.4A2 2 0 0 0 9 8a2 2 0 0 0-1.4.6Zm0 6A2 2 0 0 0 7 16c0 .6.2 1 .6 1.4.4.4.8.6 1.4.6s1-.2 1.4-.6c.4-.4.6-.8.6-1.4s-.2-1-.6-1.4A2 2 0 0 0 9 14a2 2 0 0 0-1.4.6Zm6-6A2 2 0 0 0 13 10c0 .6.2 1 .6 1.4.4.4.8.6 1.4.6s1-.2 1.4-.6c.4-.4.6-.8.6-1.4s-.2-1-.6-1.4A2 2 0 0 0 15 8a2 2 0 0 0-1.4.6Zm0 6A2 2 0 0 0 13 16c0 .6.2 1 .6 1.4.4.4.8.6 1.4.6s1-.2 1.4-.6c.4-.4.6-.8.6-1.4s-.2-1-.6-1.4A2 2 0 0 0 15 14a2 2 0 0 0-1.4.6Z"/></svg>',box:'<svg width="24" height="24"><path d="M3.8 7a1 1 0 0 0-.7.6l-.1 3V13.8a3.5 3.5 0 0 0 4 2.7c.8-.2 1.4-.5 2-1l.3-.3.3.2c.7.7 1.4 1 2.4 1.1 1.2 0 2.4-.6 3-1.6.9-1.2.8-2.8 0-4a3.7 3.7 0 0 0-2-1.2c-.4-.1-1.2-.1-1.6 0a3.4 3.4 0 0 0-1.7 1l-.3.2-.2-.1c-.4-.5-1.2-1-2-1.1-.6-.2-1.5 0-2 .2H5V9c0-1.3 0-1.3-.3-1.6a1 1 0 0 0-1-.3Zm12 2.6c-.3.2-.5.4-.6.8v.6l.9 1 .7 1v.1l-.8 1-.7 1a1 1 0 0 0 0 .7 1 1 0 0 0 1.3.6c.2 0 .3-.2 1-1l.5-.7.6.8.7.8c.4.3 1 .3 1.3 0l.2-.3a1 1 0 0 0 0-.8l-.8-1.2-.7-1a26 26 0 0 0 1.5-2 .8.8 0 0 0 .1-.4c0-.4-.1-.7-.5-.9H20c-.4 0-.5 0-1.2.8l-.7.8-.6-.7-.7-.9a1 1 0 0 0-1 0Zm-9 2 .4.1c.3.1.6.5.7.8l.1.6v.6c-.6 1-2 1.2-2.7.3-.3-.3-.3-.5-.3-1v-.5c.3-.5.7-.8 1.1-1a1.5 1.5 0 0 1 .7 0Zm5.7 0c.4 0 .8.4 1 .8l.2.6-.1.7c-.5.9-1.6 1.1-2.4.6a1.4 1.4 0 0 1-.6-1.1 1.4 1.4 0 0 1 .5-1.2 1.5 1.5 0 0 1 1.4-.4Z"/></svg>',camera:'<svg height="24" width="24"><g clip-rule="evenodd" fill-rule="evenodd"><path d="M10 5.4a1 1 0 0 1 .8-.4h4.4a1 1 0 0 1 .8.4l1.2 1.8h2.3A2.5 2.5 0 0 1 22 9.6v8a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 4 17.6v-8a2.5 2.5 0 0 1 2.5-2.4h2.3zM11.4 7l-1.2 1.7a1 1 0 0 1-.8.5h-3a.5.5 0 0 0-.4.4v8a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.4h-2.9a1 1 0 0 1-.8-.5L14.6 7z"/><path d="M13 11.4a2 2 0 1 0 0 3.8 2 2 0 0 0 0-3.8zm-4 1.9a4 4 0 1 1 8 0 4 4 0 0 1-8 0z"/></g></svg>',caption:'<svg height="24" width="24"><path d="M6 16h8v-2H6zm10 0h2v-2h-2zM4 20a2 2 0 0 1-1.5-.6A2 2 0 0 1 2 18V6c0-.6.2-1 .6-1.4A2 2 0 0 1 4 4h16c.6 0 1 .2 1.4.6.4.4.6.9.6 1.4v12c0 .6-.2 1-.6 1.4a2 2 0 0 1-1.4.6zm0-2h16V6H4z"/></svg>',dropbox:'<svg height="24" width="24"><path clip-rule="evenodd" d="m6.4 9.3-3-2a1 1 0 0 1 0-1.6l4-2.5a1 1 0 0 1 1 0L12 5.5l3.6-2.3a1 1 0 0 1 1 0l4 2.5a1 1 0 0 1 0 1.7l-3 1.9 3 1.9a1 1 0 0 1 0 1.6l-2.9 1.9V16c0 .3-.1.6-.4.8l-4.5 3a1 1 0 0 1-1.2 0l-4.4-3a1 1 0 0 1-.5-.9v-1l-3.2-2.2a1 1 0 0 1 0-1.6zm3 0L12 7.5l2.6 1.8L12 11zM8.9 15v.4l3.3 2.3 3.4-2.3v-.2L12 13l-3.1 2zm-1-10-2 1.4 2 1.3 2-1.3zm8.2 0-2 1.4 2 1.3 2-1.3zm-2 6.9 2-1.3 2 1.3-2 1.3-2-1.3zm-8.3 0 2-1.3L10 12l-2 1.3-2-1.3z" fill-rule="evenodd"/></svg>',evernote:'<svg width="24" height="24"><path fill-rule="evenodd" d="m9.5 3-.3.1-2.6 2.6C3.8 8.5 4 8.2 4 8.7c0 1.3.3 3 .6 4.3.5 2 1.1 3.2 2 3.7l1.2.3c1 .2 1.5.2 2.2.2 1.3 0 1.7 0 2.2-.4.3-.2.3-.4.4-1a38.4 38.4 0 0 1 .3-.4l.3.1 1.8.1h1.6v-1.8H14l-.1-.2a6.8 6.8 0 0 1-.5-1c-.2-.4-.3-.6-.5-.7a.8.8 0 0 0-.5-.1.9.9 0 0 0-.8.5l-.4 1.6-.3 1.5H9.4l-2-.3a1 1 0 0 1-.1-.2A10.1 10.1 0 0 1 6 9.7v-.2h4l.5-.5V5H12c.4.2.7.7.8 1.1a1 1 0 0 0 .2.6c.2.2.3.2 1 .3 1.2 0 2 .2 2.5.6.4.2.8.7 1 1.2.3 1.2.5 4 .3 6.4 0 1.8-.4 3.4-.8 4h-.7a8 8 0 0 1-.8 0c-.2 0-.3-.3-.2-.5a.5.5 0 0 1 .4-.3h.9v-1.8H16c-.7 0-.9 0-1.2.2-.9.4-1.4 1.2-1.4 2.1l.1.4.1.2a1 1 0 0 1 .1.2c.3.7.8 1.2 1.4 1.3l1.2.1h1.2a2 2 0 0 0 1-.8 9 9 0 0 0 1.1-4.3c.2-3 0-6.3-.4-7.7A4.3 4.3 0 0 0 16 5.3a7 7 0 0 0-1.3-.2 7.2 7.2 0 0 1-.4 0 5.5 5.5 0 0 1 0-.3c-.2-.5-.6-1-1.2-1.4a3 3 0 0 0-.5-.2c-.4-.2-.5-.2-1.8-.2a26.5 26.5 0 0 0-1.3 0Zm-.8 4v.7H7.2l.7-.8.8-.7v.7Zm7 3.5c-.4 0-.7.5-.9 1v.7h.3c.7 0 1.1.2 1.5.6l.3.2.3-.6V11a1 1 0 0 0-.6-.4 2 2 0 0 0-.8 0Z" clip-rule="evenodd"/></svg>',exposure:'<svg width="24" height="24"><path d="M5 21a2 2 0 0 1-1.4-.6A2 2 0 0 1 3 19V5c0-.6.2-1 .6-1.4A2 2 0 0 1 5 3h14c.6 0 1 .2 1.4.6.4.4.6.8.6 1.4v14c0 .6-.2 1-.6 1.4a2 2 0 0 1-1.4.6H5Zm0-2h14V5L5 19Zm9.5-1v-2h-2v-1.5h2v-2H16v2h2V16h-2v2h-1.5ZM6 8.5h5V7H6v1.5Z"/></svg>',fb:'<svg width="24" height="24"><path fill-rule="evenodd" d="M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-11 6.7V14H8.1v-2.5h2v-1C10 8.2 11.5 7 12.8 7H16v2.5h-2.4c-.8 0-1 .7-1 1.3v.7h3.2l-1 2.5h-2v5a7 7 0 1 0-2.8-.2Z" clip-rule="evenodd"/></svg>',flickr:'<svg width="24" height="24"><path d="M8.2 15.3c1.7 0 3.1-1.4 3.1-3.1A3.2 3.2 0 0 0 8.1 9 3.2 3.2 0 0 0 5 12.2c0 1.7 1.4 3 3.2 3Zm7.6 0c1.7 0 3.2-1.4 3.2-3.1a3.2 3.2 0 0 0-6.3 0c0 1.7 1.4 3 3.1 3Z"/></svg>',folder:'<svg width="24" height="24"><path fill-rule="evenodd" d="M5.6 6a.6.6 0 0 0-.6.6v11.2a.6.6 0 0 0 .6.6h12.8a.6.6 0 0 0 .6-.6V9a.6.6 0 0 0-.6-.6h-7.2a1 1 0 0 1-.8-.4L9 6H5.6ZM3.8 4.8A2.6 2.6 0 0 1 5.6 4h4a1 1 0 0 1 .8.4l1.3 2h6.7A2.6 2.6 0 0 1 21 9v8.8a2.6 2.6 0 0 1-2.6 2.6H5.6A2.6 2.6 0 0 1 3 17.8V6.6c0-.7.3-1.4.8-1.8Z" clip-rule="evenodd"/></svg>',"google-drive":'<svg height="24" width="24"><path clip-rule="evenodd" d="M8.7 4.5a1 1 0 0 1 .9-.5h4.8a1 1 0 0 1 .9.5l5.6 9.7a1 1 0 0 1 0 1l-2.4 4.2a1 1 0 0 1-.9.5H6.4a1 1 0 0 1-.9-.5l-2.4-4.2a1 1 0 0 1 0-1zM10.2 6l-4.5 7.7h2.5L12.7 6h-2.5zm4.2 1 4.4 7.7-1.2 2.2-4.4-7.7zM12 11.2l-1.5 2.5h3zm2.6 4.5H5.7L7 17.9h8.9l-1.3-2.2z" fill-rule="evenodd"/></svg>',"google-photos":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12.4 3c-.8 0-1.4.7-1.4 1.4v3.2a5 5 0 0 0-8 4c0 .8.6 1.4 1.4 1.4h3.2a5 5 0 0 0-1 3 5 5 0 0 0 5 5c.8 0 1.4-.6 1.4-1.4v-3.2a5 5 0 0 0 8-4c0-.8-.7-1.4-1.4-1.4h-3.2a5 5 0 0 0-4-8Zm.6 8V5a3 3 0 0 1 2.4 3 3 3 0 0 1-2.4 3Zm-2 0H5a3 3 0 0 1 3-2.4 3 3 0 0 1 3 2.4Zm2 2a3 3 0 0 0 3 2.4 3 3 0 0 0 3-2.4h-6Zm-4.4 3a3 3 0 0 1 2.4-3v6a3 3 0 0 1-2.4-3Z" clip-rule="evenodd"/></svg>',grayscale:'<svg height="24" width="24"><path d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm12.4 0H19v3.6zm-2.8 0h-2.2l8.6 8.6v-2.2zm-5 0H5l14 14v-2.6z" fill-rule="evenodd"/></svg>',huddle:'<svg height="24" width="24"><path d="M10.3 5.6V8h.8v-2l3.5 2 4.3-2.5L14.6 3l-4.3 2.6zM14.6 8v5.2l4.3-2.6V5.6L14.6 8zM6 13.3v2.5h.9v-2l3.4 2 4.3-2.5-4.3-2.6zm4.3 2.6V21l4.3-2.6v-5.1l-4.3 2.6z"/></svg>',"image-decorative":'<svg width="24" height="24"><path d="M12 10c.3 0 .5-.1.7-.3A1 1 0 0 0 13 9a1 1 0 0 0-.3-.7A1 1 0 0 0 12 8a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7 1 1 0 0 0 1 1Zm0 6a3 3 0 0 1-1.8-.5A3 3 0 0 1 9.1 14a2 2 0 0 0-.2 0 3 3 0 0 1-2.5-1 3 3 0 0 1-.9-2.2A3 3 0 0 1 6.2 9a3.4 3.4 0 0 1-.5-1 3 3 0 0 1-.2-1 3 3 0 0 1 1-2.2A3 3 0 0 1 8.8 4H9a3 3 0 0 1 1.1-1.4A3 3 0 0 1 12 2a3 3 0 0 1 1.8.5c.5.4.9.9 1.1 1.5h.2a3 3 0 0 1 2.5.8 3 3 0 0 1 .9 2.3c0 .3 0 .7-.2 1a2.8 2.8 0 0 1-.5.9l.5 1 .2 1a3 3 0 0 1-1 2.2 3 3 0 0 1-2.4.9 1.8 1.8 0 0 0-.2 0 3 3 0 0 1-1.1 1.4 3 3 0 0 1-1.8.5Zm0 7a8.7 8.7 0 0 1 .7-3.5 9.2 9.2 0 0 1 2-2.8 9.2 9.2 0 0 1 2.8-2A8.6 8.6 0 0 1 21 14a8.6 8.6 0 0 1-.7 3.5 9.2 9.2 0 0 1-2 2.8 9.2 9.2 0 0 1-2.8 2 8.6 8.6 0 0 1-3.5.7Zm2.5-2.5a6.8 6.8 0 0 0 2.4-1.5 6.8 6.8 0 0 0 1.7-2.6c-1 .4-1.8 1-2.6 1.7a6.8 6.8 0 0 0-1.5 2.4ZM12 23a8.6 8.6 0 0 0-.7-3.5 9.2 9.2 0 0 0-2-2.9 9.2 9.2 0 0 0-2.8-1.9A8.6 8.6 0 0 0 3 14a8.7 8.7 0 0 0 .7 3.5 9.2 9.2 0 0 0 2 2.9 9.2 9.2 0 0 0 2.8 1.9 8.6 8.6 0 0 0 3.5.7Zm-2.5-2.5A6.8 6.8 0 0 1 7.2 19a6.8 6.8 0 0 1-1.6-2.6c.9.4 1.7 1 2.5 1.7a6.8 6.8 0 0 1 1.6 2.4Zm5.9-8.4c.3 0 .5-.1.8-.4.2-.2.3-.5.3-.8 0-.2 0-.4-.2-.6a1.3 1.3 0 0 0-.5-.4l-.8-.4a3 3 0 0 1-.2.5 3.8 3.8 0 0 1-.2.5 2.5 2.5 0 0 1-.3.4 4 4 0 0 1-.4.4l.8.6a.8.8 0 0 0 .3.1h.4ZM15 8.5l.8-.4.5-.4.2-.6a1.1 1.1 0 0 0-.3-.8 1 1 0 0 0-.8-.4 1.1 1.1 0 0 0-.7.2l-.8.6.4.4.3.4a3.9 3.9 0 0 1 .4 1Zm-4-2.3a2.7 2.7 0 0 1 1-.2 2.7 2.7 0 0 1 1 .2l.2-1.1c0-.3-.1-.6-.4-.8A1.2 1.2 0 0 0 12 4c-.3 0-.6.1-.8.3-.3.2-.4.5-.3.8v1.1Zm1 7.8c.3 0 .6-.1.8-.3.3-.2.4-.5.3-.8v-1.1a2.7 2.7 0 0 1-1.1.2 2.7 2.7 0 0 1-1-.2l-.2 1.1c0 .3.1.6.4.8.2.2.5.3.8.3ZM9 8.5a3 3 0 0 1 .4-1l.3-.4.4-.4-.8-.6A.9.9 0 0 0 9 6a1.2 1.2 0 0 0-.3 0c-.4 0-.6 0-.9.3a1.1 1.1 0 0 0-.3.8c0 .2 0 .4.2.6l.5.4.9.4Zm-.3 3.6H9l.3-.2.8-.6a5.5 5.5 0 0 1-.4-.4 2.1 2.1 0 0 1-.3-.4 3.8 3.8 0 0 1-.2-.5 3 3 0 0 1-.1-.5l-1 .4-.4.4a1.1 1.1 0 0 0-.2.6c0 .3.2.6.4.8.2.2.4.4.7.4Z"/></svg>',"image-enhancements":'<svg height="24" width="24"><path d="M5.3 21a2 2 0 0 1-1.5-.6 2 2 0 0 1-.6-1.4V5c0-.6.2-1 .6-1.4A2 2 0 0 1 5.2 3H13v2H5.2v14h14v-8h2v8c0 .6-.1 1-.5 1.4a2 2 0 0 1-1.4.6z"/><path d="M11 9a4 4 0 0 0 4 4 4 4 0 0 0-4 4 4 4 0 0 0-4-4 4 4 0 0 0 4-4zm5.5-6c.2 2.1 2.2 4.1 4.5 4.5-2.3.4-4.3 2.4-4.5 4.5A5.2 5.2 0 0 0 12 7.5 5.2 5.2 0 0 0 16.5 3z"/></svg>',instagram:'<svg height="24" width="24"><path clip-rule="evenodd" d="M10.1 9a4 4 0 1 1 4.4 6.6A4 4 0 0 1 10.1 9zm2.2 1.3a2 2 0 1 0 0 4 2 2 0 0 0 0-4z" fill-rule="evenodd"/><path d="M16 9.3a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6z"/><path clip-rule="evenodd" d="M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm3-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z" fill-rule="evenodd"/></svg>',onedrive:'<svg height="24" width="24"><path d="M4 13.7h1zm16 .7h-1zm-11.7-4A4.4 4.4 0 0 1 12.1 8V6a6.4 6.4 0 0 0-5.6 3.4l1.8 1zM12.1 8c2 0 3.6 1.4 4 2.8l2-.5A6.3 6.3 0 0 0 12 6v2zm8.1 6.8-9.8-5.5-1 1.8 9.8 5.5 1-1.8zm-9.8-5.5A5 5 0 0 0 3 13.7h2A3 3 0 0 1 9.5 11l1-1.8zM3 13.7a5 5 0 0 0 1 2.8l1.5-1.1a3 3 0 0 1-.5-1.7zm15.8 1.6a2.3 2.3 0 0 1-2 1.4v2a4.3 4.3 0 0 0 3.9-2.6zm-2 1.4H8v2h8.7zm-8.8 0a3 3 0 0 1-2.5-1.3L4 16.5a5 5 0 0 0 4 2.2v-2zm12.7-.6c.2-.6.3-1.1.3-1.7h-2c0 .3 0 .6-.2.9zm.3-1.7c0-3-3.1-5.1-6-4l.8 1.9a2.3 2.3 0 0 1 3.2 2h2zm-6-4L4.4 15l.8 1.9 10.7-4.6-.7-1.8z"/></svg>',"photo-filter":'<svg height="24" width="24"><path d="M4.4 21c-.3 0-.6-.2-.9-.5-.3-.3-.4-.6-.5-.9L19.6 3c.3 0 .6.3.9.5l.5.9zM3 14.7v-2.8L11.9 3h2.8zM3 7V5c0-.6.2-1 .6-1.4A2 2 0 0 1 5 3h2zm14 14 4-4v2c0 .6-.2 1-.6 1.4a2 2 0 0 1-1.4.6zm-7.7 0L21 9.3v2.8L12 21z"/></svg>',"revert-changes":'<svg height="24" width="24"><path d="m8.9 18.8.4 3.2H13v-2h-2v-2.6a4.6 4.6 0 0 1-1.6-.6 5.9 5.9 0 0 1-1.3-1l-2.5 1-1-1.7 2.2-1.6a4 4 0 0 1-.2-.7 5.9 5.9 0 0 1 0-.8v-.8l.2-.8-2.2-1.6 1-1.7 2.5 1a6 6 0 0 1 1.2-.9l1.4-.6.4-2.6h2l.3 2.6A5.6 5.6 0 0 1 16 8.2l2.5-1 1 1.6-2.2 1.7.2.7v.8a5 5 0 0 1 0 1h2a2.6 2.6 0 0 0 0-.5V11.3l2.6-2-2.8-4.7-3 1.3a8.2 8.2 0 0 0-.5-.4 3.8 3.8 0 0 0-.6-.3L14.8 2H9.3l-.4 3.2a5 5 0 0 0-1.2.7l-3-1.3L2 9.4l2.6 2V12.6l-2.6 2 2.7 4.7 3-1.3a8 8 0 0 0 1.2.7z"/><path d="m14.5 20.3 2.1-2-2.1-2.2 1.4-1.4 2.1 2.1 2.1-2 1.4 1.3-2 2.1 2 2.1-1.4 1.4-2.1-2-2.1 2zM12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/></svg>',saturation:'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 20.5a6 6 0 1 1-5.9-10.2 6 6 0 1 1 11.8 0A6 6 0 1 1 12 20.5Zm-1.1-7.7a6 6 0 0 0-.2.3 4.3 4.3 0 0 1-2-1.3c.9.1 1.6.5 2.2 1Zm2.4.3a6 6 0 0 0-.2-.3 4.3 4.3 0 0 1 2.2-1 4.3 4.3 0 0 1-2 1.3ZM12.2 15a6.3 6.3 0 0 1-.4 0 4.3 4.3 0 0 0 .2 2.5 4.3 4.3 0 0 0 .2-2.5Zm.9 4.2a6 6 0 0 0 .8-4.5 6 6 0 0 0 3.4-2.8 4.3 4.3 0 0 1-1.3 8.4 4.3 4.3 0 0 1-2.9-1.1Zm-2.2 0a4.3 4.3 0 1 1-4.2-7.3 6 6 0 0 0 3.4 2.8 6 6 0 0 0 .8 4.5Zm-3-9.2a4.3 4.3 0 1 1 8.3 0 6 6 0 0 0-4.2 1.5A6 6 0 0 0 7.8 10Z"/></svg>',"transform-image":'<svg height="24" width="24"><path d="M3 21v-6h2V9H3V3h6v2h6V3h6v6h-2v6h2v6h-6v-2H9v2zm6-4h6v-2h2V9h-2V7H9v2H7v6h2zM5 7h2V5H5zm12 0h2V5h-2zm0 12h2v-2h-2zM5 19h2v-2H5z"/></svg>',vibrance:'<svg height="24" width="24"><path d="M12 20 22 4H2zm2.6-8 1.3-2H8l1.3 2h5.2zm-1.2 2h-2.8l1.4 2.2zm5-8L17 8H7L5.6 6h12.8z" fill-rule="evenodd"/></svg>',vk:'<svg width="24" height="24"><path fill-rule="evenodd" d="M14.8 17.4a2 2 0 0 1-1.3.7 8 8 0 0 1-7.7-3.6c-1.4-2-2.2-4.4-2.6-5.7L3 8.6A2 2 0 0 1 5 6h2.5c.4 0 .8.1 1.2.4A2 2 0 0 1 9.8 6h3.5a2 2 0 0 1 1.4.6 2 2 0 0 1 1.5-.6h2.4a2 2 0 0 1 2 2.5c-.5 1.5-1.2 2.6-1.8 3.6a12.5 12.5 0 0 1 2 3.2A2 2 0 0 1 19 18h-2.6a2 2 0 0 1-1.3-.5 6.9 6.9 0 0 1-.3-.2Zm.5-2.5-1.2-1a3 3 0 0 0-.8-.2v2.4h-1.7a5.6 5.6 0 0 1-.3 0c-3-.7-4.7-3.7-5.6-6.1A38.1 38.1 0 0 1 5 8.1V8h2.5a80.5 80.5 0 0 1 1.2 2.5c.6 1.2 1.2 2 2 2.1V9l-.9-1h3.5v4.1a5 5 0 0 0 .4-.3c.7-.7 1.2-1.4 1.6-2.2l.2-.3.7-1.3h2.4a8.5 8.5 0 0 1-.8 2l-1.3 2-.3.3a10.5 10.5 0 0 1 2.8 3.8h-2.6l-.8-.9a20.6 20.6 0 0 0-.3-.3Z" clip-rule="evenodd"/></svg>',warmth:'<svg height="24" width="24"><path d="M12 21.1c-1.4 0-2.6-.5-3.6-1.5s-1.5-2.1-1.5-3.5c0-.8.2-1.6.6-2.2A5 5 0 0 1 8.9 12v-6c0-.8.3-1.5 1-2.1a2.9 2.9 0 0 1 2-.9c.9 0 1.6.3 2.2.9.5.6.8 1.3.8 2.1v6a5 5 0 0 1 1.5 1.8A4.9 4.9 0 0 1 17 16c0 1.4-.5 2.6-1.4 3.5s-2.2 1.5-3.6 1.5zm-3-5h6c0-.5-.2-1-.4-1.4a3 3 0 0 0-.9-1l-.8-.6v-7a1 1 0 0 0-.3-.7A1 1 0 0 0 12 5a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v7l-.8.6a2.9 2.9 0 0 0-.9 1 3 3 0 0 0-.3 1.4z"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 1 1 0-24 12 12 0 0 1 0 24Zm-8.7-5.3a11 11 0 0 0 17.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7ZM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13Z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 0 1 1.2 1.5l-.1.1-4.1 3-4-3a1 1 0 0 1 1-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8 4 2.9a1 1 0 0 1-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 0 1-1-1v-4l-2 1.3a1 1 0 0 1-1.2-.1l-.1-.1a1 1 0 0 1 .1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2Zm-4 0v2a2 2 0 0 1-2-2h2Zm8 0v2h-2v-2h2Zm8 0a2 2 0 0 1-2 2v-2h2Zm-4 0v2h-2v-2h2ZM15 7a1 1 0 0 1 0 2v7a1 1 0 0 1-2 0V9h-1v7a1 1 0 0 1-2 0v-4a2.5 2.5 0 0 1-.2-5H15ZM5 15v2H3v-2h2Zm16 0v2h-2v-2h2ZM5 11v2H3v-2h2Zm16 0v2h-2v-2h2ZM5 7v2H3V7h2Zm16 0v2h-2V7h2ZM5 3v2H3c0-1.1.9-2 2-2Zm8 0v2h-2V3h2Zm6 0a2 2 0 0 1 2 2h-2V3ZM9 3v2H7V3h2Zm8 0v2h-2V3h2Z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 6.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L10 5Z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6ZM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3Zm.7-3 .3-4a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7l.3 4h1.4Z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3Zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12Zm-1-9a1 1 0 0 1 2 0v6a1 1 0 0 1-2 0V8Zm-2 4a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8Z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3Zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12Zm-3-5a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8Z" fill-rule="nonzero"/></svg>'}});var Kle={},Jle={},Qle;function eke(){return Qle||(Qle=1,function(){var n=tinymce.util.Tools.resolve("tinymce.ModelManager");const e=(C,D,B)=>{var U;return B(C,D.prototype)?!0:((U=C.constructor)===null||U===void 0?void 0:U.name)===D.name},t=C=>{const D=typeof C;return C===null?"null":D==="object"&&Array.isArray(C)?"array":D==="object"&&e(C,String,(B,U)=>U.isPrototypeOf(B))?"string":D},r=C=>D=>t(D)===C,a=C=>D=>typeof D===C,i=C=>D=>C===D,l=r("string"),c=r("object"),d=r("array"),h=i(null),p=a("boolean"),v=i(void 0),y=C=>C==null,_=C=>!y(C),w=a("function"),A=a("number"),T=()=>{},k=(C,D)=>(...B)=>C(D.apply(null,B)),R=(C,D)=>B=>C(D(B)),O=C=>()=>C,I=C=>C,G=(C,D)=>C===D;function Z(C,...D){return(...B)=>{const U=D.concat(B);return C.apply(null,U)}}const q=C=>D=>!C(D),re=C=>()=>{throw new Error(C)},oe=C=>C(),ee=O(!1),Y=O(!0);class ne{constructor(D,B){this.tag=D,this.value=B}static some(D){return new ne(!0,D)}static none(){return ne.singletonNone}fold(D,B){return this.tag?B(this.value):D()}isSome(){return this.tag}isNone(){return!this.tag}map(D){return this.tag?ne.some(D(this.value)):ne.none()}bind(D){return this.tag?D(this.value):ne.none()}exists(D){return this.tag&&D(this.value)}forall(D){return!this.tag||D(this.value)}filter(D){return!this.tag||D(this.value)?this:ne.none()}getOr(D){return this.tag?this.value:D}or(D){return this.tag?this:D}getOrThunk(D){return this.tag?this.value:D()}orThunk(D){return this.tag?this:D()}getOrDie(D){if(this.tag)return this.value;throw new Error(D??"Called getOrDie on None")}static from(D){return _(D)?ne.some(D):ne.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(D){this.tag&&D(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}ne.singletonNone=new ne(!1);const z=Array.prototype.slice,be=Array.prototype.indexOf,ye=Array.prototype.push,Te=(C,D)=>be.call(C,D),Ve=(C,D)=>Te(C,D)>-1,Ce=(C,D)=>{for(let B=0,U=C.length;B<U;B++){const te=C[B];if(D(te,B))return!0}return!1},We=(C,D)=>{const B=[];for(let U=0;U<C;U++)B.push(D(U));return B},Ue=(C,D)=>{const B=C.length,U=new Array(B);for(let te=0;te<B;te++){const ie=C[te];U[te]=D(ie,te)}return U},Ee=(C,D)=>{for(let B=0,U=C.length;B<U;B++){const te=C[B];D(te,B)}},Me=(C,D)=>{for(let B=C.length-1;B>=0;B--){const U=C[B];D(U,B)}},Fe=(C,D)=>{const B=[],U=[];for(let te=0,ie=C.length;te<ie;te++){const ge=C[te];(D(ge,te)?B:U).push(ge)}return{pass:B,fail:U}},Ye=(C,D)=>{const B=[];for(let U=0,te=C.length;U<te;U++){const ie=C[U];D(ie,U)&&B.push(ie)}return B},at=(C,D,B)=>(Me(C,(U,te)=>{B=D(B,U,te)}),B),Nt=(C,D,B)=>(Ee(C,(U,te)=>{B=D(B,U,te)}),B),en=(C,D,B)=>{for(let U=0,te=C.length;U<te;U++){const ie=C[U];if(D(ie,U))return ne.some(ie);if(B(ie,U))break}return ne.none()},le=(C,D)=>en(C,D,ee),Pt=(C,D)=>{for(let B=0,U=C.length;B<U;B++){const te=C[B];if(D(te,B))return ne.some(B)}return ne.none()},Xt=C=>{const D=[];for(let B=0,U=C.length;B<U;++B){if(!d(C[B]))throw new Error("Arr.flatten item "+B+" was not an array, input: "+C);ye.apply(D,C[B])}return D},kt=(C,D)=>Xt(Ue(C,D)),ln=(C,D)=>{for(let B=0,U=C.length;B<U;++B){const te=C[B];if(D(te,B)!==!0)return!1}return!0},zn=C=>{const D=z.call(C,0);return D.reverse(),D},it=(C,D)=>{const B={};for(let U=0,te=C.length;U<te;U++){const ie=C[U];B[String(ie)]=D(ie,U)}return B},Et=(C,D)=>{const B=z.call(C,0);return B.sort(D),B},St=(C,D)=>D>=0&&D<C.length?ne.some(C[D]):ne.none(),Qe=C=>St(C,0),Ke=C=>St(C,C.length-1),Je=(C,D)=>{for(let B=0;B<C.length;B++){const U=D(C[B],B);if(U.isSome())return U}return ne.none()},ct=Object.keys,vn=Object.hasOwnProperty,Sn=(C,D)=>{const B=ct(C);for(let U=0,te=B.length;U<te;U++){const ie=B[U],ge=C[ie];D(ge,ie)}},jn=(C,D)=>rr(C,(B,U)=>({k:U,v:D(B,U)})),rr=(C,D)=>{const B={};return Sn(C,(U,te)=>{const ie=D(U,te);B[ie.k]=ie.v}),B},Dt=C=>(D,B)=>{C[B]=D},$t=(C,D,B,U)=>{Sn(C,(te,ie)=>{(D(te,ie)?B:U)(te,ie)})},Cr=(C,D)=>{const B={};return $t(C,D,Dt(B),T),B},Kn=(C,D)=>{const B=[];return Sn(C,(U,te)=>{B.push(D(U,te))}),B},ts=C=>Kn(C,I),Ns=(C,D)=>Ea(C,D)?ne.from(C[D]):ne.none(),Ea=(C,D)=>vn.call(C,D),qa=(C,D)=>Ea(C,D)&&C[D]!==void 0&&C[D]!==null,Nl=C=>{for(const D in C)if(vn.call(C,D))return!1;return!0},xr={generate:C=>{if(!d(C))throw new Error("cases must be an array");if(C.length===0)throw new Error("there must be at least one case");const D=[],B={};return Ee(C,(U,te)=>{const ie=ct(U);if(ie.length!==1)throw new Error("one and only one name per case");const ge=ie[0],Ae=U[ge];if(B[ge]!==void 0)throw new Error("duplicate key detected:"+ge);if(ge==="cata")throw new Error("cannot have a case named cata (sorry)");if(!d(Ae))throw new Error("case arguments must be an array");D.push(ge),B[ge]=(...Be)=>{const Ze=Be.length;if(Ze!==Ae.length)throw new Error("Wrong number of arguments to case "+ge+". Expected "+Ae.length+" ("+Ae+"), got "+Ze);return{fold:(...It)=>{if(It.length!==C.length)throw new Error("Wrong number of arguments to fold. Expected "+C.length+", got "+It.length);return It[te].apply(null,Be)},match:It=>{const on=ct(It);if(D.length!==on.length)throw new Error("Wrong number of arguments to match. Expected: "+D.join(",")+`
|
|
129
129
|
Actual: `+on.join(","));if(!ln(D,wn=>Ve(on,wn)))throw new Error("Not all branches were specified when using match. Specified: "+on.join(", ")+`
|
|
130
130
|
Required: `+D.join(", "));return It[ge].apply(null,Be)},log:It=>{console.log(It,{constructors:D,constructor:ge,params:Be})}}}}),B}},Xo=C=>{let D=C;return{get:()=>D,set:te=>{D=te}}},za=C=>C.slice(0).sort(),un=(C,D)=>{throw new Error("All required keys ("+za(C).join(", ")+") were not specified. Specified keys were: "+za(D).join(", ")+".")},Bi=C=>{throw new Error("Unsupported keys for object: "+za(C).join(", "))},ep=(C,D)=>{if(!d(D))throw new Error("The "+C+" fields must be an array. Was: "+D+".");Ee(D,B=>{if(!l(B))throw new Error("The value "+B+" in the "+C+" fields was not a string.")})},xo=(C,D)=>{throw new Error("All values need to be of type: "+D+". Keys ("+za(C).join(", ")+") were not.")},ja=C=>{const D=za(C);le(D,(U,te)=>te<D.length-1&&U===D[te+1]).each(U=>{throw new Error("The field: "+U+" occurs more than once in the combined fields: ["+D.join(", ")+"].")})},Xl=(C,D)=>Di(C,D,{validate:w,label:"function"}),Di=(C,D,B)=>{if(D.length===0)throw new Error("You must specify at least one required field.");return ep("required",D),ja(D),U=>{const te=ct(U);ln(D,Ae=>Ve(te,Ae))||un(D,te),C(D,te);const ge=Ye(D,Ae=>!B.validate(U[Ae],Ae));return ge.length>0&&xo(ge,B.label),U}},tp=(C,D)=>{const B=Ye(D,U=>!Ve(C,U));B.length>0&&Bi(B)},od=C=>Xl(tp,C),ur=C=>{const D=ie=>ie(C),B=O(C),U=()=>te,te={tag:!0,inner:C,fold:(ie,ge)=>ge(C),isValue:Y,isError:ee,map:ie=>_o.value(ie(C)),mapError:U,bind:D,exists:D,forall:D,getOr:B,or:U,getOrThunk:B,orThunk:U,getOrDie:B,each:ie=>{ie(C)},toOptional:()=>ne.some(C)};return te},cl=C=>{const D=()=>B,B={tag:!1,inner:C,fold:(U,te)=>U(C),isValue:ee,isError:Y,map:D,mapError:U=>_o.error(U(C)),bind:D,exists:ee,forall:Y,getOr:I,or:I,getOrThunk:oe,orThunk:oe,getOrDie:re(String(C)),each:T,toOptional:ne.none};return B},_o={value:ur,error:cl,fromOption:(C,D)=>C.fold(()=>cl(D),ur)},Hn=typeof window<"u"?window:Function("return this;")(),Io=C=>{const D=C.replace(/\./g,"-");return{resolve:U=>D+"-"+U}},ul=(C,D,B=G)=>C.exists(U=>B(U,D)),Kt=C=>{const D=[],B=U=>{D.push(U)};for(let U=0;U<C.length;U++)C[U].each(B);return D},qs=(C,D)=>C!=null?D(C):ne.none(),vr=(C,D)=>C?ne.some(D):ne.none(),mg=(C,D)=>{let B=D??Hn;for(let U=0;U<C.length&&B!==void 0&&B!==null;++U)B=B[C[U]];return B},fl=(C,D)=>{const B=C.split(".");return mg(B,D)},eh=C=>{const D=Xo(ne.none()),B=()=>D.get().each(C);return{clear:()=>{B(),D.set(ne.none())},isSet:()=>D.get().isSome(),get:()=>D.get(),set:Ae=>{B(),D.set(ne.some(Ae))}}},Ya=()=>{const C=eh(T);return{...C,on:B=>C.get().each(B)}},H0=(C,D)=>C.substring(D),dl=(C,D,B)=>D===""||C.length>=D.length&&C.substr(B,B+D.length)===D,np=(C,D)=>ki(C,D)?H0(C,D.length):C,xa=(C,D,B=0,U)=>{const te=C.indexOf(D,B);return te!==-1?v(U)?!0:te+D.length<=U:!1},ki=(C,D)=>dl(C,D,0),fo=(C,D)=>dl(C,D,C.length-D.length),vg=(C=>D=>D.replace(C,""))(/^\s+|\s+$/g),_a=C=>C.length>0,ad=C=>{const D=parseFloat(C);return isNaN(D)?ne.none():ne.some(D)},Lc=(C,D)=>{let B=null;const U=()=>{h(B)||(clearTimeout(B),B=null)};return{cancel:U,throttle:(...ie)=>{U(),B=setTimeout(()=>{B=null,C.apply(null,ie)},D)}}},Qc=C=>{let D=!1,B;return(...U)=>(D||(D=!0,B=C.apply(null,U)),B)},yg=" ",ui=["tfoot","thead","tbody","colgroup"],$m=C=>Ve(ui,C),js=(C,D)=>({rows:C,columns:D}),rp=(C,D)=>({row:C,column:D}),Um=(C,D,B)=>({element:C,rowspan:D,colspan:B}),vf=(C,D,B,U)=>({element:C,rowspan:D,colspan:B,isNew:U}),Wm=(C,D,B,U,te,ie)=>({element:C,rowspan:D,colspan:B,row:U,column:te,isLocked:ie}),rn=(C,D,B)=>({element:C,cells:D,section:B}),Nc=(C,D,B,U)=>({element:C,cells:D,section:B,isNew:U}),ns=(C,D,B)=>({element:C,isNew:D,isLocked:B}),Kl=(C,D,B,U)=>({element:C,cells:D,section:B,isNew:U}),id=(C,D,B,U)=>({startRow:C,startCol:D,finishRow:B,finishCol:U}),Pi=(C,D,B)=>({element:C,colspan:D,column:B}),Ha=(C,D)=>({element:C,columns:D}),op=(C,D,B)=>{const U=C.cells,te=U.slice(0,D),ie=U.slice(D),ge=te.concat(B).concat(ie);return Gm(C,ge)},hl=(C,D,B)=>op(C,D,[B]),eu=(C,D,B)=>{const U=C.cells;U[D]=B},Gm=(C,D)=>Kl(C.element,D,C.section,C.isNew),yo=(C,D)=>{const B=C.cells,U=Ue(B,D);return Kl(C.element,U,C.section,C.isNew)},Aa=(C,D)=>C.cells[D],Fi=(C,D)=>Aa(C,D).element,rs=C=>C.cells.length,pa=C=>{const D=Fe(C,B=>B.section==="colgroup");return{rows:D.fail,cols:D.pass}},Ys=(C,D,B)=>{const U=Ue(C.cells,B);return Kl(D(C.element),U,C.section,!0)},th=(C,D)=>{const U=(D||document).createElement("div");if(U.innerHTML=C,!U.hasChildNodes()||U.childNodes.length>1){const te="HTML does not have a single root node";throw console.error(te,C),new Error(te)}return na(U.childNodes[0])},Xa=(C,D)=>{const U=(D||document).createElement(C);return na(U)},Xs=(C,D)=>{const U=(D||document).createTextNode(C);return na(U)},na=C=>{if(C==null)throw new Error("Node cannot be null or undefined");return{dom:C}},sn={fromHtml:th,fromTag:Xa,fromText:Xs,fromDom:na,fromPoint:(C,D,B)=>ne.from(C.dom.elementFromPoint(D,B)).map(na)},Zm=(C,D)=>{const B=C.document.createRange();return B.selectNode(D.dom),B},ap=(C,D)=>{const B=C.document.createRange();return qm(B,D),B},qm=(C,D)=>C.selectNodeContents(D.dom),jm=(C,D)=>{D.fold(B=>{C.setStartBefore(B.dom)},(B,U)=>{C.setStart(B.dom,U)},B=>{C.setStartAfter(B.dom)})},Oc=(C,D)=>{D.fold(B=>{C.setEndBefore(B.dom)},(B,U)=>{C.setEnd(B.dom,U)},B=>{C.setEndAfter(B.dom)})},bg=(C,D,B)=>{const U=C.document.createRange();return jm(U,D),Oc(U,B),U},Iu=(C,D,B,U,te)=>{const ie=C.document.createRange();return ie.setStart(D.dom,B),ie.setEnd(U.dom,te),ie},Ym=C=>({left:C.left,top:C.top,right:C.right,bottom:C.bottom,width:C.width,height:C.height}),xg=C=>{const D=C.getClientRects(),B=D.length>0?D[0]:C.getBoundingClientRect();return B.width>0||B.height>0?ne.some(B).map(Ym):ne.none()},nh=xr.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),pl=(C,D,B)=>D(sn.fromDom(B.startContainer),B.startOffset,sn.fromDom(B.endContainer),B.endOffset),$0=(C,D)=>D.match({domRange:B=>({ltr:O(B),rtl:ne.none}),relative:(B,U)=>({ltr:Qc(()=>bg(C,B,U)),rtl:Qc(()=>ne.some(bg(C,U,B)))}),exact:(B,U,te,ie)=>({ltr:Qc(()=>Iu(C,B,U,te,ie)),rtl:Qc(()=>ne.some(Iu(C,te,ie,B,U)))})}),Xm=(C,D)=>{const B=D.ltr();return B.collapsed?D.rtl().filter(te=>te.collapsed===!1).map(te=>nh.rtl(sn.fromDom(te.endContainer),te.endOffset,sn.fromDom(te.startContainer),te.startOffset)).getOrThunk(()=>pl(C,nh.ltr,B)):pl(C,nh.ltr,B)},U0=(C,D)=>{const B=$0(C,D);return Xm(C,B)},_g=(C,D)=>U0(C,D).match({ltr:(U,te,ie,ge)=>{const Ae=C.document.createRange();return Ae.setStart(U.dom,te),Ae.setEnd(ie.dom,ge),Ae},rtl:(U,te,ie,ge)=>{const Ae=C.document.createRange();return Ae.setStart(ie.dom,ge),Ae.setEnd(U.dom,te),Ae}});nh.ltr,nh.rtl;const Km=8,Cg=9,sd=11,Jl=1,Ql=3,Ol=(C,D)=>{const B=C.dom;if(B.nodeType!==Jl)return!1;{const U=B;if(U.matches!==void 0)return U.matches(D);if(U.msMatchesSelector!==void 0)return U.msMatchesSelector(D);if(U.webkitMatchesSelector!==void 0)return U.webkitMatchesSelector(D);if(U.mozMatchesSelector!==void 0)return U.mozMatchesSelector(D);throw new Error("Browser lacks native selectors")}},Sg=C=>C.nodeType!==Jl&&C.nodeType!==Cg&&C.nodeType!==sd||C.childElementCount===0,Rc=(C,D)=>{const B=D===void 0?document:D.dom;return Sg(B)?[]:Ue(B.querySelectorAll(C),sn.fromDom)},gl=(C,D)=>{const B=D===void 0?document:D.dom;return Sg(B)?ne.none():ne.from(B.querySelector(C)).map(sn.fromDom)},Wo=(C,D)=>C.dom===D.dom,ps=(C,D)=>{const B=C.dom,U=D.dom;return B===U?!1:B.contains(U)},pe=Ol,Oe=(C,D,B,U)=>{const te=C.isiOS()&&/ipad/i.test(B)===!0,ie=C.isiOS()&&!te,ge=C.isiOS()||C.isAndroid(),Ae=ge||U("(pointer:coarse)"),Be=te||!ie&&ge&&U("(min-device-width:768px)"),Ze=ie||ge&&!Be,ot=D.isSafari()&&C.isiOS()&&/safari/i.test(B)===!1,It=!Ze&&!Be&&!ot;return{isiPad:O(te),isiPhone:O(ie),isTablet:O(Be),isPhone:O(Ze),isTouch:O(Ae),isAndroid:C.isAndroid,isiOS:C.isiOS,isWebView:O(ot),isDesktop:O(It)}},Ge=(C,D)=>{for(let B=0;B<C.length;B++){const U=C[B];if(U.test(D))return U}},dt=(C,D)=>{const B=Ge(C,D);if(!B)return{major:0,minor:0};const U=te=>Number(D.replace(B,"$"+te));return sa(U(1),U(2))},fn=(C,D)=>{const B=String(D).toLowerCase();return C.length===0?Mr():dt(C,B)},Mr=()=>sa(0,0),sa=(C,D)=>({major:C,minor:D}),Ka={nu:sa,detect:fn,unknown:Mr},mi=(C,D)=>Je(D.brands,B=>{const U=B.brand.toLowerCase();return le(C,te=>{var ie;return U===((ie=te.brand)===null||ie===void 0?void 0:ie.toLowerCase())}).map(te=>({current:te.name,version:Ka.nu(parseInt(B.version,10),0)}))}),gs=(C,D)=>{const B=String(D).toLowerCase();return le(C,U=>U.search(B))},ml=(C,D)=>gs(C,D).map(B=>{const U=Ka.detect(B.versionRegexes,D);return{current:B.name,version:U}}),Ks=(C,D)=>gs(C,D).map(B=>{const U=Ka.detect(B.versionRegexes,D);return{current:B.name,version:U}}),Rl=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ic=C=>D=>xa(D,C),Jm=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:C=>xa(C,"edge/")&&xa(C,"chrome")&&xa(C,"safari")&&xa(C,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Rl],search:C=>xa(C,"chrome")&&!xa(C,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:C=>xa(C,"msie")||xa(C,"trident")},{name:"Opera",versionRegexes:[Rl,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ic("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ic("firefox")},{name:"Safari",versionRegexes:[Rl,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:C=>(xa(C,"safari")||xa(C,"mobile/"))&&xa(C,"applewebkit")}],W0=[{name:"Windows",search:Ic("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:C=>xa(C,"iphone")||xa(C,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ic("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Ic("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ic("linux"),versionRegexes:[]},{name:"Solaris",search:Ic("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ic("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ic("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ec={browsers:O(Jm),oses:O(W0)},ms="Edge",rh="Chromium",oh="IE",G0="Opera",L_="Firefox",N_="Safari",wg=()=>Z0({current:void 0,version:Ka.unknown()}),Z0=C=>{const D=C.current,B=C.version,U=te=>()=>D===te;return{current:D,version:B,isEdge:U(ms),isChromium:U(rh),isIE:U(oh),isOpera:U(G0),isFirefox:U(L_),isSafari:U(N_)}},Go={unknown:wg,nu:Z0},ip="Windows",O_="iOS",q0="Android",os="Linux",yf="macOS",sp="Solaris",tu="FreeBSD",Ta="ChromeOS",tc=()=>ah({current:void 0,version:Ka.unknown()}),ah=C=>{const D=C.current,B=C.version,U=te=>()=>D===te;return{current:D,version:B,isWindows:U(ip),isiOS:U(O_),isAndroid:U(q0),isMacOS:U(yf),isLinux:U(os),isSolaris:U(sp),isFreeBSD:U(tu),isChromeOS:U(Ta)}},R_={unknown:tc,nu:ah},I_={detect:(C,D,B)=>{const U=ec.browsers(),te=ec.oses(),ie=D.bind(Be=>mi(U,Be)).orThunk(()=>ml(U,C)).fold(Go.unknown,Go.nu),ge=Ks(te,C).fold(R_.unknown,R_.nu),Ae=Oe(ge,ie,C,B);return{browser:ie,os:ge,deviceType:Ae}}},jy=C=>window.matchMedia(C).matches;let Zn=Qc(()=>I_.detect(window.navigator.userAgent,ne.from(window.navigator.userAgentData),jy));const Yy=()=>Zn(),Vi=(C,D)=>fl(C,D),as=(C,D)=>{const B=Vi(C,D);if(B==null)throw new Error(C+" not available on this browser");return B},Xy=Object.getPrototypeOf,Oa=C=>as("HTMLElement",C),Ky=C=>{const D=fl("ownerDocument.defaultView",C);return c(C)&&(Oa(D).prototype.isPrototypeOf(C)||/^HTML\w*Element$/.test(Xy(C).constructor.name))},Zo=C=>C.dom.nodeName.toLowerCase(),qt=C=>C.dom.nodeType,Eg=C=>D=>qt(D)===C,Ag=C=>qt(C)===Km||Zo(C)==="#comment",Jy=C=>Rs(C)&&Ky(C.dom),Rs=Eg(Jl),vs=Eg(Ql),$e=Eg(Cg),zw=Eg(sd),ys=C=>D=>Rs(D)&&Zo(D)===C,Tg=C=>sn.fromDom(C.dom.ownerDocument),qn=C=>$e(C)?C:Tg(C),Bu=C=>sn.fromDom(qn(C).dom.documentElement),Qm=C=>sn.fromDom(qn(C).dom.defaultView),fi=C=>ne.from(C.dom.parentNode).map(sn.fromDom),Qy=C=>ne.from(C.dom.parentElement).map(sn.fromDom),zi=(C,D)=>{const B=w(D)?D:ee;let U=C.dom;const te=[];for(;U.parentNode!==null&&U.parentNode!==void 0;){const ie=U.parentNode,ge=sn.fromDom(ie);if(te.push(ge),B(ge)===!0)break;U=ie}return te},Dg=C=>ne.from(C.dom.previousSibling).map(sn.fromDom),ih=C=>ne.from(C.dom.nextSibling).map(sn.fromDom),pr=C=>Ue(C.dom.childNodes,sn.fromDom),nc=(C,D)=>{const B=C.dom.childNodes;return ne.from(B[D]).map(sn.fromDom)},lp=C=>nc(C,0),Bc=(C,D,B,U)=>{const ie=Tg(C).dom.createRange();return ie.setStart(C.dom,D),ie.setEnd(B.dom,U),ie},Da=(C,D,B,U)=>{const te=Bc(C,D,B,U),ie=Wo(C,B)&&D===U;return te.collapsed&&!ie},rc=C=>zw(C)&&_(C.dom.host),sh=C=>sn.fromDom(C.dom.getRootNode()),zr=C=>rc(C)?C:sn.fromDom(qn(C).dom.body),Pu=C=>{const D=sh(C);return rc(D)?ne.some(D):ne.none()},Js=C=>sn.fromDom(C.dom.host),Pr=C=>{if(_(C.target)){const D=sn.fromDom(C.target);if(Rs(D)&&cp(D)&&C.composed&&C.composedPath){const B=C.composedPath();if(B)return Qe(B)}}return ne.from(C.target)},cp=C=>_(C.dom.shadowRoot),ev=(C,D,B,U,te,ie,ge)=>({target:C,x:D,y:B,stop:U,prevent:te,kill:ie,raw:ge}),Ko=C=>{const D=sn.fromDom(Pr(C).getOr(C.target)),B=()=>C.stopPropagation(),U=()=>C.preventDefault(),te=k(U,B);return ev(D,C.clientX,C.clientY,B,U,te,C)},bf=(C,D)=>B=>{C(B)&&D(Ko(B))},Ja=(C,D,B,U,te)=>{const ie=bf(B,U);return C.dom.addEventListener(D,ie,te),{unbind:Z(oc,C,D,ie,te)}},bs=(C,D,B,U)=>Ja(C,D,B,U,!1),oc=(C,D,B,U)=>{C.dom.removeEventListener(D,B,U)},tv=Y,xf=(C,D,B)=>bs(C,D,tv,B),lh=Ko,Fu=(C,D)=>{fi(C).each(U=>{U.dom.insertBefore(D.dom,C.dom)})},ch=(C,D)=>{ih(C).fold(()=>{fi(C).each(te=>{Bo(te,D)})},U=>{Fu(U,D)})},_f=(C,D)=>{lp(C).fold(()=>{Bo(C,D)},U=>{C.dom.insertBefore(D.dom,U.dom)})},Bo=(C,D)=>{C.dom.appendChild(D.dom)},kg=(C,D,B)=>{nc(C,B).fold(()=>{Bo(C,D)},U=>{Fu(U,D)})},eb=(C,D)=>{Fu(C,D),Bo(D,C)},Pc=(C,D)=>{Ee(D,(B,U)=>{const te=U===0?C:D[U-1];ch(te,B)})},Qs=(C,D)=>{Ee(D,B=>{Bo(C,B)})},Vu=(C,D,B)=>{if(l(B)||p(B)||A(B))C.setAttribute(D,B+"");else throw console.error("Invalid call to Attribute.set. Key ",D,":: Value ",B,":: Element ",C),new Error("Attribute value was not simple")},dr=(C,D,B)=>{Vu(C.dom,D,B)},Il=(C,D)=>{const B=C.dom;Sn(D,(U,te)=>{Vu(B,te,U)})},xs=(C,D)=>{Sn(D,(B,U)=>{B.fold(()=>{Ca(C,U)},te=>{Vu(C.dom,U,te)})})},Fc=(C,D)=>{const B=C.dom.getAttribute(D);return B===null?void 0:B},vl=(C,D)=>ne.from(Fc(C,D)),Ca=(C,D)=>{C.dom.removeAttribute(D)},nv=C=>Nt(C.dom.attributes,(D,B)=>(D[B.name]=B.value,D),{}),rv=C=>{C.dom.textContent="",Ee(pr(C),D=>{qr(D)})},qr=C=>{const D=C.dom;D.parentNode!==null&&D.parentNode.removeChild(D)},ld=C=>{const D=pr(C);D.length>0&&Pc(C,D),qr(C)},ra=(C,D)=>sn.fromDom(C.dom.cloneNode(D)),el=C=>ra(C,!1),nu=C=>ra(C,!0),Vc=(C,D)=>{const B=sn.fromTag(D),U=nv(C);return Il(B,U),B},tb=(C,D)=>{const B=Vc(C,D),U=pr(nu(C));return Qs(B,U),B},cd=(C,D)=>{const B=Vc(C,D);ch(C,B);const U=pr(C);return Qs(B,U),qr(C),B},uh=(C,D)=>{const U=document.createElement("div");return U.innerHTML=C,pr(sn.fromDom(U))},B_=C=>Ue(C,sn.fromDom),_s=C=>C.dom.innerHTML,P_=C=>{const D=sn.fromTag("div"),B=sn.fromDom(C.dom.cloneNode(!0));return Bo(D,B),_s(D)},Cf=C=>C.style!==void 0&&w(C.style.getPropertyValue),Sf=C=>{const D=vs(C)?C.dom.parentNode:C.dom;if(D==null||D.ownerDocument===null)return!1;const B=D.ownerDocument;return Pu(sn.fromDom(D)).fold(()=>B.body.contains(D),R(Sf,Js))},nb=C=>{const D=C.dom.body;if(D==null)throw new Error("Body is not available yet");return sn.fromDom(D)},up=(C,D,B)=>{if(!l(B))throw console.error("Invalid call to CSS.set. Property ",D,":: Value ",B,":: Element ",C),new Error("CSS value must be a string: "+B);Cf(C)&&C.style.setProperty(D,B)},ov=(C,D)=>{Cf(C)&&C.style.removeProperty(D)},Mi=(C,D,B)=>{const U=C.dom;up(U,D,B)},Mg=(C,D)=>{const B=C.dom;Sn(D,(U,te)=>{up(B,te,U)})},ru=(C,D)=>{const B=C.dom,te=window.getComputedStyle(B).getPropertyValue(D);return te===""&&!Sf(C)?Lg(B,D):te},Lg=(C,D)=>Cf(C)?C.style.getPropertyValue(D):"",Is=(C,D)=>{const B=C.dom,U=Lg(B,D);return ne.from(U).filter(te=>te.length>0)},Bs=(C,D)=>{const B=C.dom;ov(B,D),ul(vl(C,"style").map(vg),"")&&Ca(C,"style")},Ng=(C,D)=>{const B=C.dom,U=D.dom;Cf(B)&&Cf(U)&&(U.style.cssText=B.style.cssText)},Qa=(C,D)=>{const B=(Ae,Be)=>{if(!A(Be)&&!Be.match(/^[0-9]+$/))throw new Error(C+".set accepts only positive integer values. Value was "+Be);const Ze=Ae.dom;Cf(Ze)&&(Ze.style[C]=Be+"px")},U=Ae=>{const Be=D(Ae);if(Be<=0||Be===null){const Ze=ru(Ae,C);return parseFloat(Ze)||0}return Be},te=U,ie=(Ae,Be)=>Nt(Be,(Ze,ot)=>{const It=ru(Ae,ot),on=It===void 0?0:parseInt(It,10);return isNaN(on)?Ze:Ze+on},0);return{set:B,get:U,getOuter:te,aggregate:ie,max:(Ae,Be,Ze)=>{const ot=ie(Ae,Ze);return Be>ot?Be-ot:0}}},F_=(C,D)=>ad(C).getOr(D),ud=(C,D,B)=>F_(ru(C,D),B),fd=(C,D,B,U)=>{const te=ud(C,`padding-${B}`,0),ie=ud(C,`padding-${U}`,0),ge=ud(C,`border-${B}-width`,0),Ae=ud(C,`border-${U}-width`,0);return D-te-ie-ge-Ae},av=(C,D)=>{const B=C.dom,U=B.getBoundingClientRect().width||B.offsetWidth;return fd(C,U,"left","right")},Hi=C=>ud(C,"height",C.dom.offsetHeight),dd=C=>ud(C,"width",C.dom.offsetWidth),yl=C=>av(C),ga=Qa("height",C=>{const D=C.dom;return Sf(C)?D.getBoundingClientRect().height:D.offsetHeight}),ma=C=>ga.get(C),Ra=C=>ga.getOuter(C),rb=Hi,is=Qa("width",C=>C.dom.offsetWidth),Bl=C=>is.get(C),K=C=>is.getOuter(C),ce=yl,ve=dd,ze=(C,D)=>({left:C,top:D,translate:(U,te)=>ze(C+U,D+te)}),Xe=ze,Bt=C=>{const D=C.getBoundingClientRect();return Xe(D.left,D.top)},Dn=(C,D)=>C!==void 0?C:D!==void 0?D:0,Jn=C=>{const D=C.dom.ownerDocument,B=D.body,U=D.defaultView,te=D.documentElement;if(B===C.dom)return Xe(B.offsetLeft,B.offsetTop);const ie=Dn(U==null?void 0:U.pageYOffset,te.scrollTop),ge=Dn(U==null?void 0:U.pageXOffset,te.scrollLeft),Ae=Dn(te.clientTop,B.clientTop),Be=Dn(te.clientLeft,B.clientLeft);return lr(C).translate(ge-Be,ie-Ae)},lr=C=>{const D=C.dom,U=D.ownerDocument.body;return U===D?Xe(U.offsetLeft,U.offsetTop):Sf(C)?Bt(D):Xe(0,0)},Pn=C=>{const D=C!==void 0?C.dom:document,B=D.body.scrollLeft||D.documentElement.scrollLeft,U=D.body.scrollTop||D.documentElement.scrollTop;return Xe(B,U)},So=(C,D,B)=>{const te=(B!==void 0?B.dom:document).defaultView;te&&te.scrollBy(C,D)},Pl=((C,D)=>{const B=ie=>{if(!C(ie))throw new Error("Can only get "+D+" value of a "+D+" node");return U(ie).getOr("")},U=ie=>C(ie)?ne.from(ie.dom.nodeValue):ne.none();return{get:B,getOption:U,set:(ie,ge)=>{if(!C(ie))throw new Error("Can only set raw "+D+" value of a "+D+" node");ie.dom.nodeValue=ge}}})(vs,"text"),la=C=>Pl.get(C),j0=C=>Pl.getOption(C),V_=(C,D)=>Pl.set(C,D),vi=(C,D)=>B=>iv(B)==="rtl"?D:C,iv=C=>ru(C,"direction")==="rtl"?"rtl":"ltr",ou=(C,D)=>{const B=Fc(C,D);return B===void 0||B===""?[]:B.split(" ")},Hw=(C,D,B)=>{const te=ou(C,D).concat([B]);return dr(C,D,te.join(" ")),!0},z_=(C,D,B)=>{const U=Ye(ou(C,D),te=>te!==B);return U.length>0?dr(C,D,U.join(" ")):Ca(C,D),!1};var sv=(C,D,B,U,te)=>C(B,U)?ne.some(B):w(te)&&te(B)?ne.none():D(B,U,te);const fp=(C,D,B)=>{let U=C.dom;const te=w(B)?B:ee;for(;U.parentNode;){U=U.parentNode;const ie=sn.fromDom(U);if(D(ie))return ne.some(ie);if(te(ie))break}return ne.none()},ob=(C,D,B)=>sv((te,ie)=>ie(te),fp,C,D,B),lO=(C,D)=>{const B=te=>D(sn.fromDom(te));return le(C.dom.childNodes,B).map(sn.fromDom)},$w=(C,D)=>{const B=U=>{for(let te=0;te<U.childNodes.length;te++){const ie=sn.fromDom(U.childNodes[te]);if(D(ie))return ne.some(ie);const ge=B(U.childNodes[te]);if(ge.isSome())return ge}return ne.none()};return B(C.dom)},Og=(C,D,B)=>fp(C,U=>Ol(U,D),B),ab=(C,D)=>lO(C,B=>Ol(B,D)),fh=(C,D)=>gl(D,C),Ps=(C,D,B)=>sv((te,ie)=>Ol(te,ie),Og,C,D,B),lv=C=>C.dom.classList!==void 0,au=C=>ou(C,"class"),$n=(C,D)=>Hw(C,"class",D),dh=(C,D)=>z_(C,"class",D),zu=(C,D)=>{lv(C)?C.dom.classList.add(D):$n(C,D)},y4=C=>{(lv(C)?C.dom.classList:au(C)).length===0&&Ca(C,"class")},H_=(C,D)=>{lv(C)?C.dom.classList.remove(D):dh(C,D),y4(C)},wf=(C,D)=>lv(C)&&C.dom.classList.contains(D),cv=(C,D)=>{Ee(D,B=>{H_(C,B)})},uv=C=>Ps(C,"[contenteditable]"),oa=(C,D=!1)=>Sf(C)?C.dom.isContentEditable:uv(C).fold(O(D),B=>iu(B)==="true"),iu=C=>C.dom.contentEditable,bl=C=>D=>{zu(D,C)},Y0=C=>D=>{cv(D,C)},ac=(C,D,B)=>Ye(zi(C,B),D),Uw=(C,D)=>Ye(pr(C),D),Ba=(C,D)=>{let B=[];return Ee(pr(C),U=>{D(U)&&(B=B.concat([U])),B=B.concat(Ba(U,D))}),B},$a=(C,D,B)=>ac(C,U=>Ol(U,D),B),X0=(C,D)=>Uw(C,B=>Ol(B,D)),At=(C,D)=>Rc(D,C),ic=(C,D,B,U)=>({parent:C,children:D,element:B,index:U}),K0=C=>fi(C).bind(D=>{const B=pr(D);return di(B,C).map(U=>ic(D,B,C,U))}),di=(C,D)=>Pt(C,Z(Wo,D)),Fl=(C,D,B)=>fp(C,D,B).isSome(),$i=C=>Zo(C)==="img"?1:j0(C).fold(()=>pr(C).length,D=>D.length),hh=C=>j0(C).filter(D=>D.trim().length!==0||D.indexOf(yg)>-1).isSome(),Ww=C=>Jy(C)&&Fc(C,"contenteditable")==="false",sc=["img","br"],Kr=C=>hh(C)||Ve(sc,Zo(C))||Ww(C),lc=C=>$w(C,Kr),fv=C=>ka(C,Kr),ka=(C,D)=>{const B=U=>{const te=pr(U);for(let ie=te.length-1;ie>=0;ie--){const ge=te[ie];if(D(ge))return ne.some(ge);const Ae=B(ge);if(Ae.isSome())return Ae}return ne.none()};return B(C)},zc={create:(C,D,B,U)=>({start:C,soffset:D,finish:B,foffset:U})},$_=xr.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Hc=(C,D,B,U)=>C.fold(D,B,U),st=C=>C.fold(I,I,I),Fs=$_.before,Gw=$_.on,ca=$_.after,ei={before:Fs,on:Gw,after:ca,cata:Hc,getStart:st},Ui=xr.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Or=C=>Ui.exact(C.start,C.soffset,C.finish,C.foffset),dp=C=>C.match({domRange:D=>sn.fromDom(D.startContainer),relative:(D,B)=>ei.getStart(D),exact:(D,B,U,te)=>D}),Zw=Ui.domRange,hp=Ui.relative,J0=Ui.exact,Cs=C=>{const D=dp(C);return Qm(D)},pp=zc.create,Ef={domRange:Zw,relative:hp,exact:J0,exactFromRange:Or,getWin:Cs,range:pp},dv=(C,D,B)=>{var U;return ne.from((U=C.caretPositionFromPoint)===null||U===void 0?void 0:U.call(C,D,B)).bind(te=>{if(te.offsetNode===null)return ne.none();const ie=C.createRange();return ie.setStart(te.offsetNode,te.offset),ie.collapse(),ne.some(ie)})},b4=(C,D,B)=>{var U;return ne.from((U=C.caretRangeFromPoint)===null||U===void 0?void 0:U.call(C,D,B))},su=(C,D,B)=>C.caretPositionFromPoint?dv(C,D,B):C.caretRangeFromPoint?b4(C,D,B):ne.none(),U_=(C,D,B)=>{const U=C.document;return su(U,D,B).map(te=>zc.create(sn.fromDom(te.startContainer),te.startOffset,sn.fromDom(te.endContainer),te.endOffset))},hv=(C,D)=>{const B=Zo(C);return B==="input"?ei.after(C):Ve(["br","img"],B)?D===0?ei.before(C):ei.after(C):ei.on(C,D)},x4=(C,D)=>{const B=C.fold(ei.before,hv,ei.after),U=D.fold(ei.before,hv,ei.after);return Ef.relative(B,U)},hd=(C,D,B,U)=>{const te=hv(C,D),ie=hv(B,U);return Ef.relative(te,ie)},Vl=C=>ne.from(C.getSelection()),qw=(C,D)=>{Vl(C).each(B=>{B.removeAllRanges(),B.addRange(D)})},Hu=(C,D,B,U,te)=>{const ie=Iu(C,D,B,U,te);qw(C,ie)},uO=(C,D,B,U,te,ie)=>{D.collapse(B.dom,U),D.extend(te.dom,ie)},ph=(C,D)=>U0(C,D).match({ltr:(B,U,te,ie)=>{Hu(C,B,U,te,ie)},rtl:(B,U,te,ie)=>{Vl(C).each(ge=>{if(ge.setBaseAndExtent)ge.setBaseAndExtent(B.dom,U,te.dom,ie);else if(ge.extend)try{uO(C,ge,B,U,te,ie)}catch{Hu(C,te,ie,B,U)}else Hu(C,te,ie,B,U)})}}),pv=(C,D,B,U,te)=>{const ie=hd(D,B,U,te);ph(C,ie)},cc=(C,D,B)=>{const U=x4(D,B);ph(C,U)},ib=C=>{if(C.rangeCount>0){const D=C.getRangeAt(0),B=C.getRangeAt(C.rangeCount-1);return ne.some(zc.create(sn.fromDom(D.startContainer),D.startOffset,sn.fromDom(B.endContainer),B.endOffset))}else return ne.none()},sb=C=>{if(C.anchorNode===null||C.focusNode===null)return ib(C);{const D=sn.fromDom(C.anchorNode),B=sn.fromDom(C.focusNode);return Da(D,C.anchorOffset,B,C.focusOffset)?ne.some(zc.create(D,C.anchorOffset,B,C.focusOffset)):ib(C)}},_4=(C,D,B=!0)=>{const te=(B?ap:Zm)(C,D);qw(C,te)},fO=C=>Vl(C).filter(D=>D.rangeCount>0).bind(sb),ti=C=>fO(C).map(D=>Ef.exact(D.start,D.soffset,D.finish,D.foffset)),dO=(C,D)=>{const B=_g(C,D);return xg(B)},Rg=(C,D,B)=>U_(C,D,B),lb=C=>{Vl(C).each(D=>D.removeAllRanges())},Ig={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},gv=(()=>{const C="[0-9]+",B="[eE]"+("[+-]?"+C),U="\\.",te=Ae=>`(?:${Ae})?`,ge=`[+-]?(?:${["Infinity",C+U+te(C)+te(B),U+C+te(B),C+te(B)].join("|")})`;return new RegExp(`^(${ge})(.*)$`)})(),lu=(C,D)=>Ce(D,B=>Ce(Ig[B],U=>C===U)),cb=(C,D)=>ne.from(gv.exec(C)).bind(U=>{const te=Number(U[1]),ie=U[2];return lu(ie,D)?ne.some({value:te,unit:ie}):ne.none()}),Bg=C=>Ue(C,O(0)),ub=(C,D,B,U,te)=>te(C.slice(0,D)).concat(U).concat(te(C.slice(B))),fb=C=>(D,B,U,te)=>{if(C(U)){const ie=Math.max(te,D[B]-Math.abs(U)),ge=Math.abs(ie-D[B]);return U>=0?ge:-ge}else return U},mv=fb(C=>C<0),W_=fb(Y),C4=()=>{const C=(Ae,Be,Ze,ot,It)=>{const on=mv(Ae,Be,ot,It);return ub(Ae,Be,Ze+1,[on,0],Bg)},D=(Ae,Be,Ze,ot)=>{const It=(100+Ze)/100,on=Math.max(ot,(Ae[Be]+Ze)/It);return Ue(Ae,(tn,wn)=>(wn===Be?on:tn/It)-tn)},B=(Ae,Be,Ze,ot,It,on)=>on?D(Ae,Be,ot,It):C(Ae,Be,Ze,ot,It);return{resizeTable:(Ae,Be)=>Ae(Be),clampTableDelta:mv,calcLeftEdgeDeltas:B,calcMiddleDeltas:(Ae,Be,Ze,ot,It,on,tn)=>B(Ae,Ze,ot,It,on,tn),calcRightEdgeDeltas:(Ae,Be,Ze,ot,It,on)=>{if(on)return D(Ae,Ze,ot,It);{const tn=mv(Ae,Ze,ot,It);return Bg(Ae.slice(0,Ze)).concat([tn])}},calcRedestributedWidths:(Ae,Be,Ze,ot)=>{if(ot){const on=(Be+Ze)/Be,tn=Ue(Ae,wn=>wn/on);return{delta:on*100-100,newSizes:tn}}else return{delta:Ze,newSizes:Ae}}}},jw=()=>{const C=(ge,Ae,Be,Ze,ot)=>{const It=Ze>=0?Be:Ae,on=W_(ge,It,Ze,ot);return ub(ge,Ae,Be+1,[on,-on],Bg)};return{resizeTable:(ge,Ae,Be)=>{Be&&ge(Ae)},clampTableDelta:(ge,Ae,Be,Ze,ot)=>{if(ot){if(Be>=0)return Be;{const It=Nt(ge,(on,tn)=>on+tn-Ze,0);return Math.max(-It,Be)}}else return mv(ge,Ae,Be,Ze)},calcLeftEdgeDeltas:C,calcMiddleDeltas:(ge,Ae,Be,Ze,ot,It)=>C(ge,Be,Ze,ot,It),calcRightEdgeDeltas:(ge,Ae,Be,Ze,ot,It)=>{if(It)return Bg(ge);{const on=Ze/ge.length;return Ue(ge,O(on))}},calcRedestributedWidths:(ge,Ae,Be,Ze)=>({delta:0,newSizes:ge})}},pd=(C,D,B=0)=>vl(C,D).map(U=>parseInt(U,10)).getOr(B),Pg=(C,D)=>pd(C,D,1),$c=C=>ys("col")(C)?pd(C,"span",1)>1:Pg(C,"colspan")>1,Ma=C=>Pg(C,"rowspan")>1,gh=(C,D)=>parseInt(ru(C,D),10),gd=O(10),db=O(10),Q0=(C,D)=>hb(C,D,Y),hb=(C,D,B)=>kt(pr(C),U=>Ol(U,D)?B(U)?[U]:[]:hb(U,D,B)),S4=(C,D,B=ee)=>{if(B(D))return ne.none();if(Ve(C,Zo(D)))return ne.some(D);const U=te=>Ol(te,"table")||B(te);return Og(D,C.join(","),U)},G_=(C,D)=>S4(["td","th"],C,D),cu=C=>Q0(C,"th,td"),Fg=C=>Ol(C,"colgroup")?X0(C,"col"):kt(Z_(C),D=>X0(D,"col")),an=(C,D)=>Ps(C,"table",D),uc=C=>Q0(C,"tr"),Z_=C=>an(C).fold(O([]),D=>X0(D,"colgroup")),gp=ys("th"),fc=C=>ln(C,D=>gp(D.element)),q_=(C,D)=>C&&D?"sectionCells":C?"section":"cells",Yw=C=>{const D=C.section==="thead",B=ul(md(C.cells),"th");return C.section==="tfoot"?{type:"footer"}:D||B?{type:"header",subType:q_(D,B)}:{type:"body"}},md=C=>{const D=Ye(C,B=>gp(B.element));return D.length===0?ne.some("td"):D.length===C.length?ne.some("th"):ne.none()},hO=C=>{const D=Ue(C,te=>Yw(te).type),B=Ve(D,"header"),U=Ve(D,"footer");if(!B&&!U)return ne.some("body");{const te=Ve(D,"body");return B&&!te&&!U?ne.some("header"):!B&&!te&&U?ne.some("footer"):ne.none()}},mh=C=>Je(C.all,D=>{const B=Yw(D);return B.type==="header"?ne.from(B.subType):ne.none()}),e1=(C,D)=>Ue(C,B=>{if(Zo(B)==="colgroup"){const U=Ue(Fg(B),te=>{const ie=pd(te,"span",1);return Um(te,1,ie)});return rn(B,U,"colgroup")}else{const U=Ue(cu(B),te=>{const ie=pd(te,"rowspan",1),ge=pd(te,"colspan",1);return Um(te,ie,ge)});return rn(B,U,D(B))}}),mp=C=>fi(C).map(D=>{const B=Zo(D);return $m(B)?B:"tbody"}).getOr("tbody"),zt=C=>{const D=uc(C),U=[...Z_(C),...D];return e1(U,mp)},Wr=(C,D)=>e1(C,()=>D),xl="data-snooker-locked-cols",uu=C=>vl(C,xl).bind(D=>ne.from(D.match(/\d+/g))).map(D=>it(D,Y)),$u=C=>{const D=Nt(pa(C).rows,(U,te)=>(Ee(te.cells,(ie,ge)=>{ie.isLocked&&(U[ge]=!0)}),U),{}),B=Kn(D,(U,te)=>parseInt(te,10));return Et(B)},Po=(C,D)=>C+","+D,La=(C,D,B)=>ne.from(C.access[Po(D,B)]),Xw=(C,D,B)=>{const U=j_(C,te=>B(D,te.element));return U.length>0?ne.some(U[0]):ne.none()},j_=(C,D)=>{const B=kt(C.all,U=>U.cells);return Ye(B,D)},fu=C=>{const D={};let B=0;return Ee(C.cells,U=>{const te=U.colspan;We(te,ie=>{const ge=B+ie;D[ge]=Pi(U.element,te,ge)}),B+=te}),D},aa=C=>{const D={},B=[],te=Qe(C).map(tn=>tn.element).bind(an).bind(uu).getOr({});let ie=0,ge=0,Ae=0;const{pass:Be,fail:Ze}=Fe(C,tn=>tn.section==="colgroup");Ee(Ze,tn=>{const wn=[];Ee(tn.cells,Yt=>{let Lt=0;for(;D[Po(Ae,Lt)]!==void 0;)Lt++;const In=qa(te,Lt.toString()),tr=Wm(Yt.element,Yt.rowspan,Yt.colspan,Ae,Lt,In);for(let dn=0;dn<Yt.colspan;dn++)for(let to=0;to<Yt.rowspan;to++){const ho=Ae+to,no=Lt+dn,Eo=Po(ho,no);D[Eo]=tr,ge=Math.max(ge,no+1)}wn.push(tr)}),ie++,B.push(rn(tn.element,wn,tn.section)),Ae++});const{columns:ot,colgroups:It}=Ke(Be).map(tn=>{const wn=fu(tn);return{colgroups:[Ha(tn.element,ts(wn))],columns:wn}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:js(ie,ge),access:D,all:B,columns:ot,colgroups:It}},Rr={fromTable:C=>{const D=zt(C);return aa(D)},generate:aa,getAt:La,findItem:Xw,filterItems:j_,justCells:C=>kt(C.all,D=>D.cells),justColumns:C=>ts(C.columns),hasColumns:C=>ct(C.columns).length>0,getColumnAt:(C,D)=>ne.from(C.columns[D])},Y_=(C,D,B)=>ns(B(C.element,D),!0,C.isLocked),X_=(C,D)=>C.section!==D?Kl(C.element,C.cells,D,C.isNew):C,Jw=()=>({transformRow:X_,transformCell:(C,D,B)=>{const U=B(C.element,D),te=Zo(U)!=="td"?cd(U,"td"):U;return ns(te,C.isNew,C.isLocked)}}),pb=()=>({transformRow:X_,transformCell:Y_}),gb=()=>({transformRow:(C,D)=>X_(C,D==="thead"?"tbody":D),transformCell:Y_}),vv={getTableSectionType:(C,D)=>{const B=Rr.fromTable(C);switch(mh(B).getOr(D)){case"section":return Jw();case"sectionCells":return pb();case"cells":return gb()}},section:Jw,sectionCells:pb,cells:gb,fallback:()=>({transformRow:I,transformCell:Y_})},eE=(C,D=Y)=>{const B=C.grid,U=We(B.columns,I),te=We(B.rows,I);return Ue(U,ie=>yv(()=>kt(te,Ze=>Rr.getAt(C,Ze,ie).filter(ot=>ot.column===ie).toArray()),Ze=>Ze.colspan===1&&D(Ze.element),()=>Rr.getAt(C,0,ie)))},yv=(C,D,B)=>{const U=C();return le(U,D).orThunk(()=>ne.from(U[0]).orThunk(B)).map(ge=>ge.element)},Uu=C=>{const D=C.grid,B=We(D.rows,I),U=We(D.columns,I);return Ue(B,te=>yv(()=>kt(U,Be=>Rr.getAt(C,te,Be).filter(Ze=>Ze.row===te).fold(O([]),Ze=>[Ze])),Be=>Be.rowspan===1,()=>Rr.getAt(C,te,0)))},_l=(C,D)=>{if(D<0||D>=C.length-1)return ne.none();const B=C[D].fold(()=>{const te=zn(C.slice(0,D));return Je(te,(ie,ge)=>ie.map(Ae=>({value:Ae,delta:ge+1})))},te=>ne.some({value:te,delta:0})),U=C[D+1].fold(()=>{const te=C.slice(D+1);return Je(te,(ie,ge)=>ie.map(Ae=>({value:Ae,delta:ge+1})))},te=>ne.some({value:te,delta:1}));return B.bind(te=>U.map(ie=>{const ge=ie.delta+te.delta;return Math.abs(ie.value-te.value)/ge}))},tE=(C,D)=>({row:C,y:D}),nE=(C,D)=>({col:C,x:D}),Vg=C=>Jn(C).left+K(C),mb=C=>Jn(C).left,K_=(C,D)=>nE(C,mb(D)),vb=(C,D)=>nE(C,Vg(D)),Ss=C=>Jn(C).top,Uc=(C,D)=>tE(C,Ss(D)),Wu=(C,D)=>tE(C,Ss(D)+Ra(D)),zg=(C,D,B)=>{if(B.length===0)return[];const U=Ue(B.slice(1),(ie,ge)=>ie.map(Ae=>C(ge,Ae))),te=B[B.length-1].map(ie=>D(B.length-1,ie));return U.concat([te])},J_=C=>-C,yb={delta:I,positions:C=>zg(Uc,Wu,C),edge:Ss},oE=vi({delta:I,edge:mb,positions:C=>zg(K_,vb,C)},{delta:J_,edge:Vg,positions:C=>zg(vb,K_,C)}),t1={delta:(C,D)=>oE(D).delta(C,D),positions:(C,D)=>oE(D).positions(C,D),edge:C=>oE(C).edge(C)},bb=/(\d+(\.\d+)?)%/,T4=/(\d+(\.\d+)?)px|em/,aE=ys("col"),xb=ys("tr"),Co=(C,D,B)=>{const U=Qy(C).getOrThunk(()=>nb(Tg(C)));return D(C)/B(U)*100},vd=(C,D)=>{Mi(C,"width",D+"px")},vp=(C,D)=>{Mi(C,"width",D+"%")},Q_=(C,D)=>{Mi(C,"height",D+"px")},e2=C=>{Bs(C,"height")},iE=C=>rb(C)+"px",sE=(C,D,B,U)=>{const te=an(C).map(ie=>{const ge=B(ie);return Math.floor(D/100*ge)}).getOr(D);return U(C,te),te},lE=(C,D,B,U)=>{const te=parseFloat(C);return fo(C,"%")&&Zo(D)!=="table"?sE(D,te,B,U):te},D4=C=>{const D=iE(C);return D?lE(D,C,ma,Q_):ma(C)},gO=(C,D,B)=>{const U=B(C),te=Pg(C,D);return U/te},du=(C,D)=>Is(C,D).orThunk(()=>vl(C,D).map(B=>B+"px")),Hg=C=>du(C,"width"),ws=C=>du(C,"height"),$g=C=>Co(C,Bl,ce),n1=C=>aE(C)?Bl(C):ve(C),t2=C=>xb(C)?ma(C):gO(C,"rowspan",D4),n2=C=>Hg(C).bind(B=>cb(B,["fixed","relative","empty"])),r2=(C,D,B)=>{Mi(C,"width",D+B)},k4=C=>Bl(C)+"px",M4=C=>ma(C)+"px",_b=C=>Co(C,Bl,ce)+"%",L4=C=>Hg(C).exists(D=>bb.test(D)),Wi=C=>Hg(C).exists(D=>T4.test(D)),yd=C=>Hg(C).isNone(),N4=O(bb),O4=ys("col"),R4=C=>Hg(C).getOrThunk(()=>n1(C)+"px"),yp=C=>ws(C).getOrThunk(()=>t2(C)+"px"),cE=C=>Ue(Rr.justColumns(C),D=>ne.from(D.element)),I4=C=>{const D=Yy().browser,B=D.isChromium()||D.isFirefox();return O4(C)?B:!0},ni=(C,D,B,U,te,ie)=>C.filter(U).fold(()=>ie(_l(B,D)),ge=>te(ge)),Ua=(C,D,B,U)=>{const te=eE(C),ie=Rr.hasColumns(C)?cE(C):te,ge=[ne.some(t1.edge(D))].concat(Ue(t1.positions(te,D),Be=>Be.map(Ze=>Ze.x))),Ae=q($c);return Ue(ie,(Be,Ze)=>ni(Be,Ze,ge,Ae,ot=>{if(I4(ot))return B(ot);{const It=qs(te[Ze],I);return ni(It,Ze,ge,Ae,on=>U(ne.some(Bl(on))),U)}},U))},ss=C=>C.map(D=>D+"px").getOr(""),Vs=(C,D)=>Ua(C,D,R4,ss),Gi=(C,D,B)=>Ua(C,D,$g,U=>U.fold(()=>B.minCellWidth(),te=>te/B.pixelWidth()*100)),Wa=(C,D,B)=>Ua(C,D,n1,U=>U.getOrThunk(B.minCellWidth)),uE=(C,D,B,U)=>{const te=Uu(C),ie=Ue(C.all,Ae=>ne.some(Ae.element)),ge=[ne.some(yb.edge(D))].concat(Ue(yb.positions(te,D),Ae=>Ae.map(Be=>Be.y)));return Ue(ie,(Ae,Be)=>ni(Ae,Be,ge,Y,B,U))},B4=(C,D)=>uE(C,D,t2,B=>B.getOrThunk(db)),Ug=(C,D)=>uE(C,D,yp,ss),Zi=(C,D)=>()=>Sf(C)?D(C):parseFloat(Is(C,"width").getOr("0")),o2=C=>{const D=Zi(C,Bl),B=O(0);return{width:D,pixelWidth:D,getWidths:(te,ie)=>Wa(te,C,ie),getCellDelta:B,singleColumnWidth:O([0]),minCellWidth:B,setElementWidth:T,adjustTableWidth:T,isRelative:!0,label:"none"}},fE=C=>{const D=Zi(C,Be=>parseFloat(_b(Be))),B=Zi(C,Bl);return{width:D,pixelWidth:B,getWidths:(Be,Ze)=>Gi(Be,C,Ze),getCellDelta:Be=>Be/B()*100,singleColumnWidth:(Be,Ze)=>[100-Be],minCellWidth:()=>gd()/B()*100,setElementWidth:vp,adjustTableWidth:Be=>{const Ze=D(),ot=Be/100*Ze,It=Ze+ot;vp(C,It)},isRelative:!0,label:"percent"}},a2=C=>{const D=Zi(C,Bl);return{width:D,pixelWidth:D,getWidths:(ge,Ae)=>Wa(ge,C,Ae),getCellDelta:I,singleColumnWidth:(ge,Ae)=>[Math.max(gd(),ge+Ae)-ge],minCellWidth:gd,setElementWidth:vd,adjustTableWidth:ge=>{const Ae=D()+ge;vd(C,Ae)},isRelative:!1,label:"pixel"}},dE=(C,D)=>N4().exec(D)!==null?fE(C):a2(C),Wg={getTableSize:C=>Hg(C).fold(()=>o2(C),B=>dE(C,B)),pixelSize:a2,percentageSize:fE,noneSize:o2},hu=(C,D,B,U)=>{B===U?Ca(C,D):dr(C,D,B)},i2=(C,D,B)=>{Ke(X0(C,D)).fold(()=>_f(C,B),U=>ch(U,B))},pE=(C,D)=>{const B=ab(C,D).getOrThunk(()=>{const U=sn.fromTag(D,Tg(C).dom);return D==="thead"?i2(C,"caption,colgroup",U):D==="colgroup"?i2(C,"caption",U):Bo(C,U),U});return rv(B),B},gE=(C,D)=>{const B=[],U=[],te=tn=>Ue(tn,wn=>{wn.isNew&&B.push(wn.element);const Yt=wn.element;return rv(Yt),Ee(wn.cells,Lt=>{Lt.isNew&&U.push(Lt.element),hu(Lt.element,"colspan",Lt.colspan,1),hu(Lt.element,"rowspan",Lt.rowspan,1),Bo(Yt,Lt.element)}),Yt}),ie=tn=>kt(tn,wn=>Ue(wn.cells,Yt=>(hu(Yt.element,"span",Yt.colspan,1),Yt.element))),ge=(tn,wn)=>{const Yt=pE(C,wn),In=(wn==="colgroup"?ie:te)(tn);Qs(Yt,In)},Ae=tn=>{ab(C,tn).each(qr)},Be=(tn,wn)=>{tn.length>0?ge(tn,wn):Ae(wn)},Ze=[],ot=[],It=[],on=[];return Ee(D,tn=>{switch(tn.section){case"thead":Ze.push(tn);break;case"tbody":ot.push(tn);break;case"tfoot":It.push(tn);break;case"colgroup":on.push(tn);break}}),Be(on,"colgroup"),Be(Ze,"thead"),Be(ot,"tbody"),Be(It,"tfoot"),{newRows:B,newCells:U}},mE=C=>Ue(C,D=>{const B=el(D.element);return Ee(D.cells,U=>{const te=nu(U.element);hu(te,"colspan",U.colspan,1),hu(te,"rowspan",U.rowspan,1),Bo(B,te)}),B}),Cb=(C,D)=>Ue(C,B=>Aa(B,D)),P4=(C,D)=>C[D],Sb=(C,D)=>{if(C.length===0)return 0;const B=C[0];return Pt(C,te=>!D(B.element,te.element)).getOr(C.length)},s2=(C,D,B,U)=>{const te=P4(C,D),ie=te.section==="colgroup",ge=Sb(te.cells.slice(B),U),Ae=ie?1:Sb(Cb(C.slice(D),B),U);return{colspan:ge,rowspan:Ae}},wb=(C,D)=>{const B=Ue(C,te=>Ue(te.cells,ee)),U=(te,ie,ge,Ae)=>{for(let Be=te;Be<te+ge;Be++)for(let Ze=ie;Ze<ie+Ae;Ze++)B[Be][Ze]=!0};return Ue(C,(te,ie)=>{const ge=kt(te.cells,(Ae,Be)=>{if(B[ie][Be]===!1){const Ze=s2(C,ie,Be,D);return U(ie,Be,Ze.rowspan,Ze.colspan),[vf(Ae.element,Ze.rowspan,Ze.colspan,Ae.isNew)]}else return[]});return Nc(te.element,ge,te.section,te.isNew)})},Tf=(C,D,B)=>{const U=[];Ee(C.colgroups,te=>{const ie=[];for(let ge=0;ge<C.grid.columns;ge++){const Ae=Rr.getColumnAt(C,ge).map(Be=>ns(Be.element,B,!1)).getOrThunk(()=>ns(D.colGap(),!0,!1));ie.push(Ae)}U.push(Kl(te.element,ie,"colgroup",B))});for(let te=0;te<C.grid.rows;te++){const ie=[];for(let Be=0;Be<C.grid.columns;Be++){const Ze=Rr.getAt(C,te,Be).map(ot=>ns(ot.element,B,ot.isLocked)).getOrThunk(()=>ns(D.gap(),!0,!1));ie.push(Ze)}const ge=C.all[te],Ae=Kl(ge.element,ie,ge.section,B);U.push(Ae)}return U},dc=(C,D)=>Tf(C,D,!1),Cl=C=>wb(C,Wo),Eb=(C,D)=>Je(C.all,B=>le(B.cells,U=>Wo(D,U.element))),Ab=(C,D,B)=>{const U=Ue(D.selection,ie=>G_(ie).bind(ge=>Eb(C,ge)).filter(B)),te=Kt(U);return vr(te.length>0,te)},Es=(C,D,B,U,te,ie,ge,Ae,Be)=>{const Ze=Rr.fromTable(ie),ot=ne.from(Be==null?void 0:Be.section).getOrThunk(vv.fallback);return D(Ze,ge).map(on=>{const tn=dc(Ze,Ae),wn=C(tn,on,Wo,te(Ae),ot),Yt=$u(wn.grid),Lt=Cl(wn.grid);return{info:on,grid:Lt,cursor:wn.cursor,lockedColumns:Yt}}).bind(on=>{const tn=gE(ie,on.grid),wn=ne.from(Be==null?void 0:Be.sizing).getOrThunk(()=>Wg.getTableSize(ie)),Yt=ne.from(Be==null?void 0:Be.resize).getOrThunk(jw);return B(ie,on.grid,on.info,{sizing:wn,resize:Yt,section:ot}),U(ie),Ca(ie,xl),on.lockedColumns.length>0&&dr(ie,xl,on.lockedColumns.join(",")),ne.some({cursor:on.cursor,newRows:tn.newRows,newCells:tn.newCells})})},vE=(C,D)=>G_(D.element).bind(B=>Eb(C,B).map(U=>({...U,generators:D.generators,clipboard:D.clipboard}))),Tb=(C,D)=>Ab(C,D,Y).map(B=>({cells:B,generators:D.generators,clipboard:D.clipboard})),Gg=(C,D)=>D.mergable,F4=(C,D)=>D.unmergable,Gu=(C,D)=>Ab(C,D,Y),Zu=(C,D)=>Ab(C,D,B=>!B.isLocked),yE=(C,D)=>Eb(C,D).exists(B=>!B.isLocked),bd=(C,D)=>ln(D,B=>yE(C,B)),l2=(C,D)=>Gg(C,D).filter(B=>bd(C,B.cells)),mO=(C,D)=>F4(C,D).filter(B=>bd(C,B)),hc={...xr.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},Wc=(C,D)=>C.length===0?hc.none():C.length===1?hc.only(0):D===0?hc.left(0,1):D===C.length-1?hc.right(D-1,D):D>0&&D<C.length-1?hc.middle(D-1,D,D+1):hc.none(),vO=(C,D,B,U,te)=>{const ie=C.slice(0),ge=Wc(C,D),Ae=O(Ue(ie,O(0))),Be=on=>U.singleColumnWidth(ie[on],B),Ze=(on,tn)=>te.calcLeftEdgeDeltas(ie,on,tn,B,U.minCellWidth(),U.isRelative),ot=(on,tn,wn)=>te.calcMiddleDeltas(ie,on,tn,wn,B,U.minCellWidth(),U.isRelative),It=(on,tn)=>te.calcRightEdgeDeltas(ie,on,tn,B,U.minCellWidth(),U.isRelative);return ge.fold(Ae,Be,Ze,ot,It)},yh=(C,D,B)=>{let U=0;for(let te=C;te<D;te++)U+=B[te]!==void 0?B[te]:0;return U},Sr=(C,D)=>{const B=Rr.justCells(C);return Ue(B,U=>{const te=yh(U.column,U.column+U.colspan,D);return{element:U.element,width:te,colspan:U.colspan}})},kn=(C,D)=>{const B=Rr.justColumns(C);return Ue(B,(U,te)=>({element:U.element,width:D[te],colspan:U.colspan}))},bv=(C,D)=>Ue(C.all,(B,U)=>({element:B.element,height:D[U]})),bE=C=>at(C,(D,B)=>D+B,0),xE=(C,D)=>Rr.hasColumns(C)?kn(C,D):Sr(C,D),Db=(C,D,B)=>{const U=xE(C,D);Ee(U,te=>{B.setElementWidth(te.element,te.width)})},Fo=(C,D,B,U,te)=>{const ie=Rr.fromTable(C),ge=te.getCellDelta(D),Ae=te.getWidths(ie,te),Be=B===ie.grid.columns-1,Ze=U.clampTableDelta(Ae,B,ge,te.minCellWidth(),Be),ot=vO(Ae,B,Ze,te,U),It=Ue(ot,(on,tn)=>on+Ae[tn]);Db(ie,It,te),U.resizeTable(te.adjustTableWidth,Ze,Be)},_E=(C,D,B)=>{const U=Rr.fromTable(C),te=B4(U,C),ie=Ue(te,(Be,Ze)=>B===Ze?Math.max(D+Be,db()):Be),ge=bv(U,ie);Ee(ge,Be=>{Q_(Be.element,Be.height)}),Ee(Rr.justCells(U),Be=>{e2(Be.element)});const Ae=bE(ie);Q_(C,Ae)},yO=(C,D,B,U,te)=>{const ie=Rr.generate(D),ge=U.getWidths(ie,U),Ae=U.pixelWidth(),{newSizes:Be,delta:Ze}=te.calcRedestributedWidths(ge,Ae,B.pixelDelta,U.isRelative);Db(ie,Be,U),U.adjustTableWidth(Ze)},_t=(C,D,B,U)=>{const te=Rr.generate(D),ie=U.getWidths(te,U);Db(te,ie,U)},r1=(C,D)=>{$c(C)||n2(C).each(U=>{const te=U.value/2;r2(C,te,U.unit),r2(D,te,U.unit)})},kb=(C,D,B)=>{const U=pd(C,D,1);B===1||U<=1?Ca(C,D):dr(C,D,Math.min(B,U))},xd=(C,D)=>B=>{const U=B.column+B.colspan-1,te=B.column;return U>=C&&te<D},CE=(C,D,B)=>{if(Rr.hasColumns(C)){const U=Ye(Rr.justColumns(C),xd(D,B)),te=Ue(U,ge=>{const Ae=nu(ge.element);return kb(Ae,"span",B-D),Ae}),ie=sn.fromTag("colgroup");return Qs(ie,te),[ie]}else return[]},qu=(C,D,B)=>Ue(C.all,U=>{const te=Ye(U.cells,xd(D,B)),ie=Ue(te,Ae=>{const Be=nu(Ae.element);return kb(Be,"colspan",B-D),Be}),ge=sn.fromTag("tr");return Qs(ge,ie),ge}),SE=(C,D)=>{const B=Rr.fromTable(C);return Zu(B,D).map(te=>{const ie=te[te.length-1],ge=te[0].column,Ae=ie.column+ie.colspan,Be=CE(B,ge,Ae),Ze=qu(B,ge,Ae);return[...Be,...Ze]})},o1=(C,D,B)=>{const U=Rr.fromTable(C);return Gu(U,D).bind(ie=>{const ge=Tf(U,B,!1),Be=pa(ge).rows.slice(ie[0].row,ie[ie.length-1].row+ie[ie.length-1].rowspan),Ze=kt(Be,It=>{const on=Ye(It.cells,tn=>!tn.isLocked);return on.length>0?[{...It,cells:on}]:[]}),ot=Cl(Ze);return vr(ot.length>0,ot)}).map(ie=>mE(ie))},Vo=(C,D,B,U,te,ie)=>({minRow:C,minCol:D,maxRow:B,maxCol:U,allCells:te,selectedCells:ie}),_d=(C,D)=>{const B=C.grid.columns;let te=C.grid.rows,ie=B,ge=0,Ae=0;const Be=[],Ze=[];return Sn(C.access,ot=>{if(Be.push(ot),D(ot)){Ze.push(ot);const It=ot.row,on=It+ot.rowspan-1,tn=ot.column,wn=tn+ot.colspan-1;It<te?te=It:on>ge&&(ge=on),tn<ie?ie=tn:wn>Ae&&(Ae=wn)}}),Vo(te,ie,ge,Ae,Be,Ze)},a1=(C,D,B)=>{const U=C[B].element,te=sn.fromTag("td");Bo(te,sn.fromTag("br")),(D?Bo:_f)(U,te)},bh=(C,D,B,U)=>{const te=Ye(C,Ae=>Ae.section!=="colgroup"),ie=D.grid.columns,ge=D.grid.rows;for(let Ae=0;Ae<ge;Ae++){let Be=!1;for(let Ze=0;Ze<ie;Ze++)Ae<B.minRow||Ae>B.maxRow||Ze<B.minCol||Ze>B.maxCol||(Rr.getAt(D,Ae,Ze).filter(U).isNone()?a1(te,Be,Ae):Be=!0)}},pc=(C,D,B,U)=>{Sn(B.columns,ge=>{(ge.column<D.minCol||ge.column>D.maxCol)&&qr(ge.element)});const te=Ye(Q0(C,"tr"),ge=>ge.dom.childElementCount===0);Ee(te,qr),(D.minCol===D.maxCol||D.minRow===D.maxRow)&&Ee(Q0(C,"th,td"),ge=>{Ca(ge,"rowspan"),Ca(ge,"colspan")}),Ca(C,xl),Ca(C,"data-snooker-col-series"),Wg.getTableSize(C).adjustTableWidth(U)},c2=(C,D,B,U)=>{if(U.minCol===0&&D.grid.columns===U.maxCol+1)return 0;const te=Wa(D,C,B),ie=Nt(te,(Ze,ot)=>Ze+ot,0),Be=Nt(te.slice(U.minCol,U.maxCol+1),(Ze,ot)=>Ze+ot,0)/ie*B.pixelWidth()-B.pixelWidth();return B.getCellDelta(Be)},bO=(C,D)=>{const B=on=>Ol(on.element,D),U=nu(C),te=zt(U),ie=Wg.getTableSize(C),ge=Rr.generate(te),Ae=_d(ge,B),Be="th:not("+D+"),td:not("+D+")",Ze=hb(U,"th,td",on=>Ol(on,Be));Ee(Ze,qr),bh(te,ge,Ae,B);const ot=Rr.fromTable(C),It=c2(C,ot,ie,Ae);return pc(U,Ae,ge,It),U},u2=ys("col"),Ft=ys("colgroup"),Jo=C=>Zo(C)==="tr"||Ft(C),As=C=>{const D=pd(C,"colspan",1),B=pd(C,"rowspan",1);return{element:C,colspan:D,rowspan:B}},xO=(C,D=As)=>{const B=Ae=>u2(Ae.element)?C.col(Ae):C.cell(Ae),U=Ae=>Ft(Ae.element)?C.colgroup(Ae):C.row(Ae),te=Ae=>{if(Jo(Ae))return U({element:Ae});{const Be=Ae,Ze=B(D(Be));return ie=ne.some({item:Be,replacement:Ze}),Ze}};let ie=ne.none();return{getOrInit:(Ae,Be)=>ie.fold(()=>te(Ae),Ze=>Be(Ae,Ze.item)?Ze.replacement:te(Ae))}},V4=C=>D=>{const B=[],U=(ge,Ae)=>le(B,Be=>Ae(Be.item,ge)),te=ge=>{const Ae=C==="td"?{scope:null}:{},Be=D.replace(ge,C,Ae);return B.push({item:ge,sub:Be}),Be};return{replaceOrInit:(ge,Ae)=>{if(Jo(ge)||u2(ge))return ge;{const Be=ge;return U(Be,Ae).fold(()=>te(Be),Ze=>Ae(ge,Ze.item)?Ze.sub:te(Be))}}}},Mb=C=>vl(C,"scope").map(D=>D.substr(0,3)),Li={modification:xO,transform:V4,merging:C=>({unmerge:U=>{const te=Mb(U);return te.each(ie=>dr(U,"scope",ie)),()=>{const ie=C.cell({element:U,colspan:1,rowspan:1});return Bs(ie,"width"),Bs(U,"width"),te.each(ge=>dr(ie,"scope",ge)),ie}},merge:U=>{const te=()=>{const ie=Kt(Ue(U,Mb));if(ie.length===0)return ne.none();{const ge=ie[0],Ae=["row","col"];return Ce(ie,Ze=>Ze!==ge&&Ve(Ae,Ze))?ne.none():ne.from(ge)}};return Bs(U[0],"width"),te().fold(()=>Ca(U[0],"scope"),ie=>dr(U[0],"scope",ie+"group")),O(U[0])}})},_O=(C,D)=>{const B=C.slice(0,D[D.length-1].row+1),U=Cl(B);return kt(U,te=>{const ie=te.cells.slice(0,D[D.length-1].column+1);return Ue(ie,ge=>ge.element)})},CO=(C,D)=>{const B=C.slice(D[0].row+D[0].rowspan-1,C.length),U=Cl(B);return kt(U,te=>{const ie=te.cells.slice(D[0].column+D[0].colspan-1,te.cells.length);return Ue(ie,ge=>ge.element)})},SO=(C,D,B)=>{const U=Rr.fromTable(C);return Gu(U,D).map(ie=>{const ge=Tf(U,B,!1),{rows:Ae}=pa(ge),Be=_O(Ae,ie),Ze=CO(Ae,ie);return{upOrLeftCells:Be,downOrRightCells:Ze}})},xp={only:(C,D)=>{const B=$e(C)?Bu(C):C;return{parent:O(B),view:O(C),dragContainer:O(B),origin:O(Xe(0,0)),isResizable:D}},detached:(C,D,B)=>{const U=()=>Jn(D);return{parent:O(D),view:O(C),dragContainer:O(D),origin:U,isResizable:B}},body:(C,D)=>({parent:O(C),view:O(C),dragContainer:O(C),origin:()=>Jn(C),isResizable:D})},xv=xr.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),Gc=(C,D,B)=>{const U=B.substring(0,B.length-C.length),te=parseFloat(U);return U===te.toString()?D(te):xv.invalid(B)},xh={...xv,from:C=>fo(C,"%")?Gc("%",xv.percent,C):fo(C,"px")?Gc("px",xv.pixels,C):xv.invalid(C)},wE=(C,D)=>Ue(C,B=>xh.from(B).fold(()=>B,te=>te/D*100+"%",te=>te+"%")),Lb=(C,D,B)=>{const U=B/D;return Ue(C,te=>xh.from(te).fold(()=>te,ge=>ge*U+"px",ge=>ge/100*B+"px"))},Cd=(C,D)=>{const B=C.fold(()=>O(""),U=>{const te=U/D;return O(te+"px")},()=>{const U=100/D;return O(U+"%")});return We(D,B)},Hl=(C,D,B)=>C.fold(()=>D,U=>Lb(D,B,U),U=>wE(D,B)),i1=(C,D,B)=>{const U=xh.from(B),te=ln(C,ie=>ie==="0px")?Cd(U,C.length):Hl(U,C,D);return Sd(te)},Zg=(C,D)=>C.length===0?D:at(C,(B,U)=>xh.from(U).fold(O(0),I,I)+B,0),Ar=(C,D)=>{const B=Math.floor(C);return{value:B+D,remainder:C-B}},Zc=(C,D)=>xh.from(C).fold(O(C),B=>B+D+"px",B=>B+D+"%"),Sd=C=>{if(C.length===0)return C;const D=at(C,(U,te)=>{const ie=xh.from(te).fold(()=>({value:te,remainder:0}),ge=>Ar(ge,"px"),ge=>({value:ge+"%",remainder:0}));return{output:[ie.value].concat(U.output),remainder:U.remainder+ie.remainder}},{output:[],remainder:0}),B=D.output;return B.slice(0,B.length-1).concat([Zc(B[B.length-1],Math.round(D.remainder))])},Nb=xh.from,s1=(C,D,B)=>{Ee(D,U=>{const te=C.slice(U.column,U.colspan+U.column),ie=Zg(te,gd());Mi(U.element,"width",ie+B)})},Gr=(C,D,B)=>{Ee(D,(U,te)=>{const ie=Zg([C[te]],gd());Mi(U.element,"width",ie+B)})},$4=(C,D,B)=>{Ee(B,U=>{Bs(U.element,"height")}),Ee(D,(U,te)=>{Mi(U.element,"height",C[te])})},l1=C=>Nb(C).fold(O("px"),O("px"),O("%")),c1=(C,D,B)=>{const U=Rr.fromTable(C),te=U.all,ie=Rr.justCells(U),ge=Rr.justColumns(U);D.each(Ae=>{const Be=l1(Ae),Ze=Bl(C),ot=Vs(U,C),It=i1(ot,Ze,Ae);Rr.hasColumns(U)?Gr(It,ge,Be):s1(It,ie,Be),Mi(C,"width",Ae)}),B.each(Ae=>{const Be=ma(C),Ze=Ug(U,C),ot=i1(Ze,Be,Ae);$4(ot,te,ie),Mi(C,"height",Ae)})},f2=L4,EE=Wi,AE=yd;var U4=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Ob=()=>{const C=Ze=>sn.fromDom(Ze.dom.cloneNode(!1)),D=Ze=>qn(Ze).dom,B=Ze=>Rs(Ze)?Zo(Ze)==="body"?!0:Ve(U4,Zo(Ze)):!1,U=Ze=>Rs(Ze)?Ve(["br","img","hr","input"],Zo(Ze)):!1,te=Ze=>Rs(Ze)&&Fc(Ze,"contenteditable")==="false",ie=(Ze,ot)=>Ze.dom.compareDocumentPosition(ot.dom),ge=(Ze,ot)=>{const It=nv(Ze);Il(ot,It)},Ae=Ze=>{const ot=Zo(Ze);return Ve(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],ot)},Be=Ze=>Rs(Ze)?vl(Ze,"lang"):ne.none();return{up:O({selector:Og,closest:Ps,predicate:fp,all:zi}),down:O({selector:At,predicate:Ba}),styles:O({get:ru,getRaw:Is,set:Mi,remove:Bs}),attrs:O({get:Fc,set:dr,remove:Ca,copyTo:ge}),insert:O({before:Fu,after:ch,afterAll:Pc,append:Bo,appendAll:Qs,prepend:_f,wrap:eb}),remove:O({unwrap:ld,remove:qr}),create:O({nu:sn.fromTag,clone:C,text:sn.fromText}),query:O({comparePosition:ie,prevSibling:Dg,nextSibling:ih}),property:O({children:pr,name:Zo,parent:fi,document:D,isText:vs,isComment:Ag,isElement:Rs,isSpecial:Ae,getLanguage:Be,getText:la,setText:V_,isBoundary:B,isEmptyTag:U,isNonEditable:te}),eq:Wo,is:pe}};const _p=(C,D)=>({item:C,mode:D}),Jr=(C,D,B,U=_v)=>C.property().parent(D).map(te=>_p(te,U)),_v=(C,D,B,U=Cv)=>B.sibling(C,D).map(te=>_p(te,U)),Cv=(C,D,B,U=Cv)=>{const te=C.property().children(D);return B.first(te).map(ge=>_p(ge,U))},wO=[{current:Jr,next:_v,fallback:ne.none()},{current:_v,next:Cv,fallback:ne.some(Jr)},{current:Cv,next:Cv,fallback:ne.some(_v)}],qg=(C,D,B,U,te=wO)=>le(te,ge=>ge.current===B).bind(ge=>ge.current(C,D,U,ge.next).orThunk(()=>ge.fallback.bind(Ae=>qg(C,D,Ae,U)))),W4={left:()=>({sibling:(B,U)=>B.query().prevSibling(U),first:B=>B.length>0?ne.some(B[B.length-1]):ne.none()}),right:()=>({sibling:(B,U)=>B.query().nextSibling(U),first:B=>B.length>0?ne.some(B[0]):ne.none()})},pu=(C,D,B,U,te,ie)=>qg(C,D,U,te).bind(Ae=>ie(Ae.item)?ne.none():B(Ae.item)?ne.some(Ae.item):pu(C,Ae.item,B,Ae.mode,te,ie)),u1=(C,D,B,U)=>pu(C,D,B,_v,W4.left(),U),jg=(C,D,B,U)=>pu(C,D,B,_v,W4.right(),U),_h=(C,D)=>({element:C,offset:D}),TE=(C,D,B)=>C.property().isText(D)&&C.property().getText(D).trim().length===0||C.property().isComment(D)?B(D).bind(U=>TE(C,U,B).orThunk(()=>ne.some(U))):ne.none(),f1=(C,D)=>C.property().isText(D)?C.property().getText(D).length:C.property().children(D).length,d1=(C,D)=>{const B=TE(C,D,C.query().prevSibling).getOr(D);if(C.property().isText(B))return _h(B,f1(C,B));const U=C.property().children(B);return U.length>0?d1(C,U[U.length-1]):_h(B,f1(C,B))},AO=d1,G4=Ob(),Yg=C=>AO(G4,C),wd=C=>D=>C.property().children(D).length===0,DE=(C,D,B)=>h1(C,D,wd(C),B),qi=(C,D,B)=>gc(C,D,wd(C),B),h1=u1,gc=jg,Sv=Ob(),kE=(C,D)=>DE(Sv,C,D),Xg=(C,D)=>qi(Sv,C,D),wv=(C,D,B)=>h1(Sv,C,D,B),Cp=(C,D,B)=>gc(Sv,C,D,B),gu=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Z4=(C,D)=>{const B=C.property().name(D);return Ve(["ol","ul"],B)},TO=(C,D)=>{const B=C.property().name(D);return Ve(gu,B)},p1=(C,D)=>Ve(["br","img","hr","input"],C.property().name(D)),d2=(C,D,B,U)=>{const te=B[0],ie=B.slice(1);return U(C,D,te,ie)},q4=(C,D,B)=>B.length>0?d2(C,D,B,Ib):ne.none(),Ib=(C,D,B,U)=>{const te=D(C,B);return at(U,(ie,ge)=>{const Ae=D(C,ge);return h2(C,ie,Ae)},te)},h2=(C,D,B)=>D.bind(U=>B.filter(Z(C.eq,U))),DO=(C,D)=>Z(C.eq,D),ME=(C,D,B,U=ee)=>{const te=[D].concat(C.up().all(D)),ie=[B].concat(C.up().all(B)),ge=ot=>Pt(ot,U).fold(()=>ot,on=>ot.slice(0,on+1)),Ae=ge(te),Be=ge(ie),Ze=le(Ae,ot=>Ce(Be,DO(C,ot)));return{firstpath:Ae,secondpath:Be,shared:Ze}},j4=q4,g1=ME,Sp=Ob(),Bb=(C,D)=>j4(Sp,(B,U)=>C(U),D),p2=(C,D,B)=>g1(Sp,C,D,B),g2=Ob(),wp=C=>TO(g2,C),Pb=C=>Z4(g2,C),Y4=C=>p1(g2,C),X4=C=>{const D=ys("br"),B=Be=>ln(Be,Ze=>D(Ze)||vs(Ze)&&la(Ze).trim().length===0),U=Be=>Zo(Be)==="li"||fp(Be,Pb).isSome(),te=Be=>ih(Be).map(Ze=>wp(Ze)?!0:Y4(Ze)?Zo(Ze)!=="img":!1).getOr(!1),ie=Be=>fv(Be).bind(Ze=>{const ot=te(Ze);return fi(Ze).map(It=>ot===!0||U(It)||D(Ze)||wp(It)&&!Wo(Be,It)?[]:[sn.fromTag("br")])}).getOr([]),Ae=(()=>{const Be=kt(C,Ze=>{const ot=pr(Ze);return B(ot)?[]:ot.concat(ie(Ze))});return Be.length===0?[sn.fromTag("br")]:Be})();rv(C[0]),Qs(C[0],Ae)},Ev=C=>{Ca(C,"width"),Ca(C,"height")},Fb=C=>{const D=_b(C);c1(C,ne.some(D),ne.none()),Ev(C)},m1=C=>{const D=k4(C);c1(C,ne.some(D),ne.none()),Ev(C)},Ed=C=>{const D=M4(C);c1(C,ne.none(),ne.some(D)),Ev(C)},LE=C=>{Bs(C,"width");const D=Fg(C),B=D.length>0?D:cu(C);Ee(B,U=>{Bs(U,"width"),Ev(U)}),Ev(C)},K4={scope:["row","col"]},Vb=C=>()=>{const D=sn.fromTag("td",C.dom);return Bo(D,sn.fromTag("br",C.dom)),D},m2=C=>()=>sn.fromTag("col",C.dom),J4=C=>()=>sn.fromTag("colgroup",C.dom),NE=C=>()=>sn.fromTag("tr",C.dom),v2=(C,D,B)=>{const U=tb(C,D);return Sn(B,(te,ie)=>{te===null?Ca(U,ie):dr(U,ie,te)}),U},Q4=C=>C,e3=(C,D,B)=>lc(C).map(te=>{const ie=B.join(","),ge=$a(te,ie,Ae=>Wo(Ae,C));return at(ge,(Ae,Be)=>{const Ze=el(Be);return Bo(Ae,Ze),Ze},D)}).getOr(D),kO=(C,D)=>{Sn(K4,(B,U)=>vl(C,U).filter(te=>Ve(B,te)).each(te=>dr(D,U,te)))},y2=(C,D,B)=>{const U=(ge,Ae)=>{Ng(ge.element,Ae),Bs(Ae,"height"),ge.colspan!==1&&Bs(Ae,"width")},te=ge=>{const Ae=sn.fromTag(Zo(ge.element),D.dom),Be=B.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),Ze=Be.length>0?e3(ge.element,Ae,Be):Ae;return Bo(Ze,sn.fromTag("br")),U(ge,Ae),kO(ge.element,Ae),C(ge.element,Ae),Ae};return{col:ge=>{const Ae=sn.fromTag(Zo(ge.element),D.dom);return U(ge,Ae),C(ge.element,Ae),Ae},colgroup:J4(D),row:NE(D),cell:te,replace:v2,colGap:m2(D),gap:Vb(D)}},t3=C=>({col:m2(C),colgroup:J4(C),row:NE(C),cell:Vb(C),replace:Q4,colGap:m2(C),gap:Vb(C)}),b2=C=>Rr.fromTable(C).grid,Ad=(C,D,B,U)=>{const te=pa(C).rows;if(te.length===0)return C;for(let ie=D.startRow;ie<=D.finishRow;ie++)for(let ge=D.startCol;ge<=D.finishCol;ge++){const Ae=te[ie],Be=Aa(Ae,ge).isLocked;eu(Ae,ge,ns(U(),!1,Be))}return C},n3=(C,D,B,U)=>{const te=pa(C).rows;let ie=!0;for(let ge=0;ge<te.length;ge++)for(let Ae=0;Ae<rs(te[0]);Ae++){const Be=te[ge],Ze=Aa(Be,Ae),ot=Ze.element,It=B(ot,D);It&&!ie?eu(Be,Ae,ns(U(),!0,Ze.isLocked)):It&&(ie=!1)}return C},x2=(C,D)=>Nt(C,(B,U)=>Ce(B,te=>D(te.element,U.element))?B:B.concat([U]),[]),MO=(C,D,B,U)=>(D>0&&D<C[0].cells.length&&Ee(C,te=>{const ie=te.cells[D-1];let ge=0;const Ae=U();for(;te.cells.length>D+ge&&B(ie.element,te.cells[D+ge].element);)eu(te,D+ge,ns(Ae,!0,te.cells[D+ge].isLocked)),ge++}),C),r3=(C,D,B,U)=>{const te=pa(C).rows;if(D>0&&D<te.length){const ie=te[D-1].cells,ge=x2(ie,B);Ee(ge,Ae=>{let Be=ne.none();for(let Ze=D;Ze<te.length;Ze++)for(let ot=0;ot<rs(te[0]);ot++){const It=te[Ze],on=Aa(It,ot);B(on.element,Ae.element)&&(Be.isNone()&&(Be=ne.some(U())),Be.each(wn=>{eu(It,ot,ns(wn,!0,on.isLocked))}))}})}return C},o3=(C,D,B)=>{if(C.row>=D.length||C.column>rs(D[0]))return _o.error("invalid start address out of table bounds, row: "+C.row+", column: "+C.column);const U=D.slice(C.row),te=U[0].cells.slice(C.column),ie=rs(B[0]),ge=B.length;return _o.value({rowDelta:U.length-ge,colDelta:te.length-ie})},OE=(C,D)=>{const B=rs(C[0]),U=rs(D[0]);return{rowDelta:0,colDelta:B-U}},RE=(C,D)=>{const B=C.length,U=D.length;return{rowDelta:B-U,colDelta:0}},IE=(C,D,B,U)=>{const te=D.section==="colgroup"?B.col:B.cell;return We(C,ie=>ns(te(),!0,U(ie)))},a3=(C,D,B,U)=>{const te=C[C.length-1];return C.concat(We(D,()=>{const ie=te.section==="colgroup"?B.colgroup:B.row,ge=Ys(te,ie,I),Ae=IE(ge.cells.length,ge,B,Be=>Ea(U,Be.toString()));return Gm(ge,Ae)}))},LO=(C,D,B,U)=>Ue(C,te=>{const ie=IE(D,te,B,ee);return op(te,U,ie)}),zb=(C,D,B)=>Ue(C,U=>Nt(B,(te,ie)=>{const ge=IE(1,U,D,Y)[0];return hl(te,ie,ge)},U)),Hb=(C,D,B)=>{const U=D.colDelta<0?LO:I,te=D.rowDelta<0?a3:I,ie=$u(C),ge=rs(C[0]),Ae=Ce(ie,ot=>ot===ge-1),Be=U(C,Math.abs(D.colDelta),B,Ae?ge-1:ge),Ze=$u(Be);return te(Be,Math.abs(D.rowDelta),B,it(Ze,Y))},$b=(C,D,B,U)=>{const te=Aa(C[D],B),ie=Z(U,te.element),ge=C[D];return C.length>1&&rs(ge)>1&&(B>0&&ie(Fi(ge,B-1))||B<ge.cells.length-1&&ie(Fi(ge,B+1))||D>0&&ie(Fi(C[D-1],B))||D<C.length-1&&ie(Fi(C[D+1],B)))},BE=(C,D,B,U,te,ie)=>{const ge=C.row,Ae=C.column,Be=B.length,Ze=rs(B[0]),ot=ge+Be,It=Ae+Ze+ie.length,on=it(ie,Y);for(let tn=ge;tn<ot;tn++){let wn=0;for(let Yt=Ae;Yt<It;Yt++){if(on[Yt]){wn++;continue}$b(D,tn,Yt,te)&&n3(D,Fi(D[tn],Yt),te,U.cell);const Lt=Yt-Ae-wn,In=Aa(B[tn-ge],Lt),tr=In.element,dn=U.replace(tr);eu(D[tn],Yt,ns(dn,!0,In.isLocked))}}return D},i3=(C,D,B)=>{const U=rs(D[0]),te=pa(D).cols.length+C.row,ie=We(U-C.column,Ae=>Ae+C.column),ge=le(ie,Ae=>ln(B,Be=>Be!==Ae)).getOr(U-1);return{row:te,column:ge}},Ub=(C,D,B)=>Ye(B,U=>U>=C.column&&U<=rs(D[0])+C.column),PE=(C,D,B,U,te)=>{const ie=$u(D),ge=i3(C,D,ie),Ae=pa(B).rows,Be=Ub(ge,Ae,ie);return o3(ge,D,Ae).map(ot=>{const It={...ot,colDelta:ot.colDelta-Be.length},on=Hb(D,It,U),tn=$u(on),wn=Ub(ge,Ae,tn);return BE(ge,on,Ae,U,te,wn)})},_2=(C,D,B,U,te)=>{MO(D,C,te,U.cell);const ie=RE(B,D),ge=Hb(B,ie,U),Ae=RE(D,ge),Be=Hb(D,Ae,U);return Ue(Be,(Ze,ot)=>op(Ze,C,ge[ot].cells))},xn=(C,D,B,U,te)=>{r3(D,C,te,U.cell);const ie=$u(D),ge=OE(D,B),Ae={...ge,colDelta:ge.colDelta-ie.length},Be=Hb(D,Ae,U),{cols:Ze,rows:ot}=pa(Be),It=$u(Be),on=OE(B,D),tn={...on,colDelta:on.colDelta+It.length},wn=zb(B,U,It),Yt=Hb(wn,tn,U);return[...Ze,...ot.slice(0,C),...Yt,...ot.slice(C,ot.length)]},v1=(C,D,B,U)=>Ys(C,te=>U(te,B),D),FE=(C,D,B,U,te)=>{const{rows:ie,cols:ge}=pa(C),Ae=ie.slice(0,D),Be=ie.slice(D),Ze=v1(ie[B],(ot,It)=>D>0&&D<ie.length&&U(Fi(ie[D-1],It),Fi(ie[D],It))?Aa(ie[D],It):ns(te(ot.element,U),!0,ot.isLocked),U,te);return[...ge,...Ae,Ze,...Be]},s3=(C,D,B,U,te,ie,ge)=>{if(B==="colgroup"||!U){const Ae=Aa(C,te);return ns(ge(Ae.element,ie),!0,!1)}else return Aa(C,D)},y1=(C,D,B,U,te)=>Ue(C,ie=>{const ge=D>0&&D<rs(ie)&&U(Fi(ie,D-1),Fi(ie,D)),Ae=s3(ie,D,ie.section,ge,B,U,te);return hl(ie,D,Ae)}),Ch=(C,D)=>kt(C,B=>{const U=B.cells,te=at(D,(ie,ge)=>ge>=0&&ge<ie.length?ie.slice(0,ge).concat(ie.slice(ge+1)):ie,U);return te.length>0?[Kl(B.element,te,B.section,B.isNew)]:[]}),Td=(C,D,B)=>{const{rows:U,cols:te}=pa(C);return[...te,...U.slice(0,D),...U.slice(B+1)]},Wb=(C,D,B,U)=>Fi(C[D],B)!==void 0&&D>0&&U(Fi(C[D-1],B),Fi(C[D],B)),yt=(C,D,B)=>D>0&&B(Fi(C,D-1),Fi(C,D)),Av=(C,D,B,U)=>Wb(C,D,B,U)||yt(C[D],B,U),l3=(C,D)=>ln(D,I)&&fc(C.cells)?Y:(U,te,ie)=>!(Zo(U.element)==="th"&&D[ie]),Tv=(C,D)=>ln(D,I)&&fc(C)?Y:(U,te,ie)=>!(Zo(U.element)==="th"&&D[te]),Gb=(C,D,B,U)=>{const te=ge=>ge==="row"?Ma(D):$c(D),ie=ge=>te(ge)?`${ge}group`:ge;return C?gp(D)?ie(B):null:U&&gp(D)?ie(B==="row"?"col":"row"):null},Df=(C,D)=>(B,U,te)=>ne.some(Gb(C,B.element,"col",D[te])),Sh=(C,D)=>(B,U)=>ne.some(Gb(C,B.element,"row",D[U])),C2=(C,D,B)=>ns(B(C.element,D),!0,C.isLocked),b1=(C,D,B,U,te,ie,ge)=>{const Ae=Be=>Ce(D,Ze=>B(Be.element,Ze.element));return Ue(C,(Be,Ze)=>yo(Be,(ot,It)=>{if(Ae(ot)){const on=ge(ot,Ze,It)?te(ot,B,U):ot;return ie(on,Ze,It).each(tn=>{xs(on.element,{scope:ne.from(tn)})}),on}else return ot}))},Dv=(C,D,B)=>kt(C,(U,te)=>Av(C,te,D,B)?[]:[Aa(U,D)]),c3=(C,D,B)=>{const U=C[D];return kt(U.cells,(te,ie)=>Av(C,D,ie,B)?[]:[te])},VE=(C,D,B,U,te)=>{const ie=pa(C).rows,ge=kt(D,ot=>Dv(ie,ot,U)),Ae=Ue(ie,ot=>fc(ot.cells)),Be=Tv(ge,Ae),Ze=Sh(B,Ae);return b1(C,ge,U,te,C2,Ze,Be)},u3=(C,D,B,U,te,ie,ge)=>{const{cols:Ae,rows:Be}=pa(C),Ze=Be[D[0]],ot=kt(D,Lt=>c3(Be,Lt,te)),It=Ue(Ze.cells,(Lt,In)=>fc(Dv(Be,In,te))),on=[...Be];Ee(D,Lt=>{on[Lt]=ge.transformRow(Be[Lt],B)});const tn=[...Ae,...on],wn=l3(Ze,It),Yt=Df(U,It);return b1(tn,ot,te,ie,ge.transformCell,Yt,wn)},S2=(C,D,B,U)=>{const te=pa(C).rows,ie=Ue(D,ge=>Aa(te[ge.row],ge.column));return b1(C,ie,B,U,C2,ne.none,Y)},kv=C=>Nt(C,(B,U)=>Ce(B,ie=>ie.column===U.column)?B:B.concat([U]),[]).sort((B,U)=>B.column-U.column),Zb=C=>oa(C,!0),zE=C=>{cu(C).length===0&&qr(C)},qb=(C,D)=>({grid:C,cursor:D}),f3=C=>Je(C,D=>Je(D.cells,B=>{const U=B.element;return vr(Zb(U),U)})),x1=(C,D,B)=>{var U,te;const ie=pa(C).rows;return ne.from((te=(U=ie[D])===null||U===void 0?void 0:U.cells[B])===null||te===void 0?void 0:te.element).filter(Zb).orThunk(()=>f3(ie))},mc=(C,D,B)=>{const U=x1(C,D,B);return qb(C,U)},Kg=C=>Nt(C,(B,U)=>Ce(B,ie=>ie.row===U.row)?B:B.concat([U]),[]).sort((B,U)=>B.row-U.row),d3=(C,D,B,U)=>{const te=D[0].row,ie=Kg(D),ge=at(ie,(Ae,Be)=>({grid:FE(Ae.grid,te,Be.row+Ae.delta,B,U.getOrInit),delta:Ae.delta+1}),{grid:C,delta:0}).grid;return mc(ge,te,D[0].column)},HE=(C,D,B,U)=>{const te=Kg(D),ie=te[te.length-1],ge=ie.row+ie.rowspan,Ae=at(te,(Be,Ze)=>FE(Be,ge,Ze.row,B,U.getOrInit),C);return mc(Ae,ge,D[0].column)},Xn=(C,D,B,U)=>{const te=D.details,ie=kv(te),ge=ie[0].column,Ae=at(ie,(Be,Ze)=>({grid:y1(Be.grid,ge,Ze.column+Be.delta,B,U.getOrInit),delta:Be.delta+1}),{grid:C,delta:0}).grid;return mc(Ae,te[0].row,ge)},h3=(C,D,B,U)=>{const te=D.details,ie=te[te.length-1],ge=ie.column+ie.colspan,Ae=kv(te),Be=at(Ae,(Ze,ot)=>y1(Ze,ge,ot.column,B,U.getOrInit),C);return mc(Be,te[0].row,ge)},p3=(C,D,B,U)=>{const te=kv(D),ie=Ue(te,Ae=>Ae.column),ge=VE(C,ie,!0,B,U.replaceOrInit);return mc(ge,D[0].row,D[0].column)},NO=(C,D,B,U)=>{const te=S2(C,D,B,U.replaceOrInit);return mc(te,D[0].row,D[0].column)},g3=(C,D,B,U)=>{const te=kv(D),ie=Ue(te,Ae=>Ae.column),ge=VE(C,ie,!1,B,U.replaceOrInit);return mc(ge,D[0].row,D[0].column)},OO=(C,D,B,U)=>{const te=S2(C,D,B,U.replaceOrInit);return mc(te,D[0].row,D[0].column)},w2=(C,D)=>(B,U,te,ie,ge)=>{const Ae=Kg(U),Be=Ue(Ae,ot=>ot.row),Ze=u3(B,Be,C,D,te,ie.replaceOrInit,ge);return mc(Ze,U[0].row,U[0].column)},E2=w2("thead",!0),_1=w2("tbody",!1),C1=w2("tfoot",!1),$E=(C,D,B,U)=>{const te=kv(D.details),ie=Ch(C,Ue(te,Ae=>Ae.column)),ge=ie.length>0?ie[0].cells.length-1:0;return mc(ie,te[0].row,Math.min(te[0].column,ge))},A2=(C,D,B,U)=>{const te=Kg(D),ie=Td(C,te[0].row,te[te.length-1].row),ge=Math.max(pa(ie).rows.length-1,0);return mc(ie,Math.min(D[0].row,ge),D[0].column)},RO=(C,D,B,U)=>{const te=D.cells;X4(te);const ie=Ad(C,D.bounds,B,U.merge(te));return qb(ie,ne.from(te[0]))},m3=(C,D,B,U)=>{const ie=at(D,(ge,Ae)=>n3(ge,Ae,B,U.unmerge(Ae)),C);return qb(ie,ne.from(D[0]))},UE=(C,D,B,U)=>{const ie=((Be,Ze)=>{const ot=Rr.fromTable(Be);return Tf(ot,Ze,!0)})(D.clipboard,D.generators),ge=rp(D.row,D.column);return PE(ge,C,ie,D.generators,B).fold(()=>qb(C,ne.some(D.element)),Be=>mc(Be,D.row,D.column))},jb=(C,D,B)=>{const U=Wr(C,B.section),te=Rr.generate(U);return Tf(te,D,!0)},v3=(C,D,B,U)=>{const te=pa(C).rows,ie=D.cells[0].column,ge=te[D.cells[0].row],Ae=jb(D.clipboard,D.generators,ge),Be=_2(ie,C,Ae,D.generators,B);return mc(Be,D.cells[0].row,D.cells[0].column)},IO=(C,D,B,U)=>{const te=pa(C).rows,ie=D.cells[D.cells.length-1].column+D.cells[D.cells.length-1].colspan,ge=te[D.cells[0].row],Ae=jb(D.clipboard,D.generators,ge),Be=_2(ie,C,Ae,D.generators,B);return mc(Be,D.cells[0].row,ie)},WE=(C,D,B,U)=>{const te=pa(C).rows,ie=D.cells[0].row,ge=te[ie],Ae=jb(D.clipboard,D.generators,ge),Be=xn(ie,C,Ae,D.generators,B);return mc(Be,D.cells[0].row,D.cells[0].column)},Jg=(C,D,B,U)=>{const te=pa(C).rows,ie=D.cells[D.cells.length-1].row+D.cells[D.cells.length-1].rowspan,ge=te[D.cells[0].row],Ae=jb(D.clipboard,D.generators,ge),Be=xn(ie,C,Ae,D.generators,B);return mc(Be,ie,D.cells[0].column)},BO=(C,D)=>{const B=Rr.fromTable(C);return Gu(B,D).bind(te=>{const ie=te[te.length-1],ge=te[0].column,Ae=ie.column+ie.colspan,Be=Xt(Ue(B.all,Ze=>Ye(Ze.cells,ot=>ot.column>=ge&&ot.column<Ae)));return md(Be)}).getOr("")},PO=(C,D)=>{const B=Rr.fromTable(C);return Gu(B,D).bind(md).getOr("")},y3=(C,D)=>{const B=Rr.fromTable(C);return Gu(B,D).bind(te=>{const ie=te[te.length-1],ge=te[0].row,Ae=ie.row+ie.rowspan,Be=B.all.slice(ge,Ae);return hO(Be)}).getOr("")},GE=(C,D,B,U)=>_t(C,D,B,U.sizing),ZE=(C,D,B,U)=>yO(C,D,B,U.sizing,U.resize),b3=(C,D)=>Ce(D,B=>B.column===0&&B.isLocked),Qo=(C,D)=>Ce(D,B=>B.column+B.colspan>=C.grid.columns&&B.isLocked),qE=(C,D)=>{const B=eE(C),U=kv(D);return Nt(U,(te,ie)=>{const Ae=B[ie.column].map(K).getOr(0);return te+Ae},0)},x3=C=>(D,B)=>Gu(D,B).filter(U=>!(C?b3:Qo)(D,U)).map(U=>({details:U,pixelDelta:qE(D,U)})),jE=(C,D)=>Zu(C,D).map(B=>({details:B,pixelDelta:-qE(C,B)})),zs=C=>(D,B)=>Tb(D,B).filter(U=>!(C?b3:Qo)(D,U.cells)),vc=Li.transform("th"),S1=Li.transform("td"),_3=(C,D,B,U)=>Es(d3,Gu,T,T,Li.modification,C,D,B,U),C3=(C,D,B,U)=>Es(HE,Gu,T,T,Li.modification,C,D,B,U),Dd=(C,D,B,U)=>Es(Xn,x3(!0),ZE,T,Li.modification,C,D,B,U),S3=(C,D,B,U)=>Es(h3,x3(!1),ZE,T,Li.modification,C,D,B,U),FO=(C,D,B,U)=>Es($E,jE,ZE,zE,Li.modification,C,D,B,U),Ir=(C,D,B,U)=>Es(A2,Gu,T,zE,Li.modification,C,D,B,U),VO=(C,D,B,U)=>Es(p3,Zu,T,T,vc,C,D,B,U),zO=(C,D,B,U)=>Es(g3,Zu,T,T,S1,C,D,B,U),YE=(C,D,B,U)=>Es(E2,Gu,T,T,vc,C,D,B,U),Pa=(C,D,B,U)=>Es(_1,Gu,T,T,S1,C,D,B,U),HO=(C,D,B,U)=>Es(C1,Gu,T,T,S1,C,D,B,U),w3=(C,D,B,U)=>Es(NO,Zu,T,T,vc,C,D,B,U),T2=(C,D,B,U)=>Es(OO,Zu,T,T,S1,C,D,B,U),$O=(C,D,B,U)=>Es(RO,l2,GE,T,Li.merging,C,D,B,U),UO=(C,D,B,U)=>Es(m3,mO,GE,T,Li.merging,C,D,B,U),XE=(C,D,B,U)=>Es(UE,vE,GE,T,Li.modification,C,D,B,U),WO=(C,D,B,U)=>Es(v3,zs(!0),T,T,Li.modification,C,D,B,U),KE=(C,D,B,U)=>Es(IO,zs(!1),T,T,Li.modification,C,D,B,U),JE=(C,D,B,U)=>Es(WE,Tb,T,T,Li.modification,C,D,B,U),QE=(C,D,B,U)=>Es(Jg,Tb,T,T,Li.modification,C,D,B,U),mn=BO,D2=PO,E3=y3,_n=(C,D)=>{const B=D.column,U=D.column+D.colspan-1,te=D.row,ie=D.row+D.rowspan-1;return B<=C.finishCol&&U>=C.startCol&&te<=C.finishRow&&ie>=C.startRow},kf=(C,D)=>D.column>=C.startCol&&D.column+D.colspan-1<=C.finishCol&&D.row>=C.startRow&&D.row+D.rowspan-1<=C.finishRow,A3=(C,D)=>{let B=!0;const U=Z(kf,D);for(let te=D.startRow;te<=D.finishRow;te++)for(let ie=D.startCol;ie<=D.finishCol;ie++)B=B&&Rr.getAt(C,te,ie).exists(U);return B?ne.some(D):ne.none()},T3=(C,D)=>id(Math.min(C.row,D.row),Math.min(C.column,D.column),Math.max(C.row+C.rowspan-1,D.row+D.rowspan-1),Math.max(C.column+C.colspan-1,D.column+D.colspan-1)),D3=(C,D,B)=>{const U=Rr.findItem(C,D,Wo),te=Rr.findItem(C,B,Wo);return U.bind(ie=>te.map(ge=>T3(ie,ge)))},k3=(C,D,B)=>D3(C,D,B).bind(U=>A3(C,U)),eA=(C,D,B,U)=>Rr.findItem(C,D,Wo).bind(te=>{const ie=B>0?te.row+te.rowspan-1:te.row,ge=U>0?te.column+te.colspan-1:te.column;return Rr.getAt(C,ie+B,ge+U).map(Be=>Be.element)}),k2=(C,D,B)=>D3(C,D,B).map(U=>{const te=Rr.filterItems(C,Z(_n,U));return Ue(te,ie=>ie.element)}),Ts=(C,D)=>{const B=(U,te)=>ps(te,U);return Rr.findItem(C,D,B).map(U=>U.element)},Mv=(C,D,B)=>an(C).bind(U=>{const te=w1(U);return eA(te,C,D,B)}),tA=(C,D,B)=>{const U=w1(C);return k2(U,D,B)},M2=(C,D,B,U,te)=>{const ie=w1(C),ge=Wo(C,B)?ne.some(D):Ts(ie,D),Ae=Wo(C,te)?ne.some(U):Ts(ie,U);return ge.bind(Be=>Ae.bind(Ze=>k2(ie,Be,Ze)))},M3=(C,D,B)=>{const U=w1(C);return k3(U,D,B)},w1=Rr.fromTable,GO={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},nA=()=>sn.fromTag("th"),L2=()=>sn.fromTag("td"),L3=()=>sn.fromTag("col"),rA=(C,D,B,U)=>{const te=sn.fromTag("tr");for(let ie=0;ie<C;ie++){const ge=U<D||ie<B?nA():L2();ie<B&&dr(ge,"scope","row"),U<D&&dr(ge,"scope","col"),Bo(ge,sn.fromTag("br")),Bo(te,ge)}return te},N2=C=>{const D=sn.fromTag("colgroup");return We(C,()=>Bo(D,L3())),D},oA=(C,D,B,U)=>We(C,te=>rA(D,B,U,te)),N3=(C,D,B,U,te,ie=GO)=>{const ge=sn.fromTag("table"),Ae=te!=="cells";Mg(ge,ie.styles),Il(ge,ie.attributes),ie.colGroups&&Bo(ge,N2(D));const Be=Math.min(C,B);if(Ae&&B>0){const tn=sn.fromTag("thead");Bo(ge,tn);const Yt=oA(B,D,te==="sectionCells"?Be:0,U);Qs(tn,Yt)}const Ze=sn.fromTag("tbody");Bo(ge,Ze);const ot=Ae?C-Be:C,on=oA(ot,D,Ae?0:B,U);return Qs(Ze,on),ge},Mf=C=>{let D=[];return{bind:ie=>{if(ie===void 0)throw new Error("Event bind error: undefined handler");D.push(ie)},unbind:ie=>{D=Ye(D,ge=>ge!==ie)},trigger:(...ie)=>{const ge={};Ee(C,(Ae,Be)=>{ge[Ae]=ie[Be]}),Ee(D,Ae=>{Ae(ge)})}}},Lv=C=>{const D=jn(C,U=>({bind:U.bind,unbind:U.unbind})),B=jn(C,U=>U.trigger);return{registry:D,trigger:B}},ZO=od(["compare","extract","mutate","sink"]),aA=od(["element","start","stop","destroy"]),O3=od(["forceDrop","drop","move","delayDrop"]),ua=()=>{let C=ne.none();const D=()=>{C=ne.none()},B=(ie,ge)=>{const Ae=C.map(Be=>ie.compare(Be,ge));return C=ne.some(ge),Ae},U=(ie,ge)=>{ge.extract(ie).each(Be=>{B(ge,Be).each(ot=>{te.trigger.move(ot)})})},te=Lv({move:Mf(["info"])});return{onEvent:U,reset:D,events:te.registry}},O2=()=>{const C=Lv({move:Mf(["info"])});return{onEvent:T,reset:T,events:C.registry}},R2=()=>{const C=O2(),D=ua();let B=C;return{on:()=>{B.reset(),B=D},off:()=>{B.reset(),B=C},isOn:()=>B===D,onEvent:(Ae,Be)=>{B.onEvent(Ae,Be)},events:D.events}},I2=(C,D,B)=>{let U=!1;const te=Lv({start:Mf([]),stop:Mf([])}),ie=R2(),ge=()=>{wn.stop(),ie.isOn()&&(ie.off(),te.trigger.stop())},Ae=Lc(ge,200),Be=Lt=>{wn.start(Lt),ie.on(),te.trigger.start()},Ze=Lt=>{Ae.cancel(),ie.onEvent(Lt,D)};ie.events.move.bind(Lt=>{D.mutate(C,Lt.info)});const ot=()=>{U=!0},It=()=>{U=!1},on=()=>U,tn=Lt=>(...In)=>{U&&Lt.apply(null,In)},wn=D.sink(O3({forceDrop:ge,drop:tn(ge),move:tn(Ze),delayDrop:tn(Ae.throttle)}),B),Yt=()=>{wn.destroy()};return{element:wn.element,go:Be,on:ot,off:It,isActive:on,destroy:Yt,events:te.registry}},E1=Io("ephox-dragster").resolve,A1=C=>{const D={layerClass:E1("blocker"),...C},B=sn.fromTag("div");return dr(B,"role","presentation"),Mg(B,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),zu(B,E1("blocker")),zu(B,D.layerClass),{element:O(B),destroy:()=>{qr(B)}}};var Ep=ZO({compare:(C,D)=>Xe(D.left-C.left,D.top-C.top),extract:C=>ne.some(Xe(C.x,C.y)),sink:(C,D)=>{const B=A1(D),U=xf(B.element(),"mousedown",C.forceDrop),te=xf(B.element(),"mouseup",C.drop),ie=xf(B.element(),"mousemove",C.move),ge=xf(B.element(),"mouseout",C.delayDrop),Ae=()=>{B.destroy(),te.unbind(),ie.unbind(),ge.unbind(),U.unbind()},Be=ot=>{Bo(ot,B.element())},Ze=()=>{qr(B.element())};return aA({element:B.element,start:Be,stop:Ze,destroy:Ae})},mutate:(C,D)=>{C.mutate(D.left,D.top)}});const Nv=(C,D={})=>{var B;const U=(B=D.mode)!==null&&B!==void 0?B:Ep;return I2(C,U,D)},B2=Io("ephox-snooker").resolve,P2=()=>{const C=Lv({drag:Mf(["xDelta","yDelta"])});return{mutate:(B,U)=>{C.trigger.drag(B,U)},events:C.registry}},jO=()=>{const C=Lv({drag:Mf(["xDelta","yDelta","target"])});let D=ne.none();const B=P2();return B.events.drag.bind(ie=>{D.each(ge=>{C.trigger.drag(ie.xDelta,ie.yDelta,ge)})}),{assign:ie=>{D=ne.some(ie)},get:()=>D,mutate:B.mutate,events:C.registry}},Yb=(C,D,B,U,te)=>{const ie=sn.fromTag("div");return Mg(ie,{position:"absolute",left:D-U/2+"px",top:B+"px",height:te+"px",width:U+"px"}),Il(ie,{"data-mce-bogus":"all","data-column":C,role:"presentation"}),ie},YO=(C,D,B,U,te)=>{const ie=sn.fromTag("div");return Mg(ie,{position:"absolute",left:D+"px",top:B-te/2+"px",height:te+"px",width:U+"px"}),Il(ie,{"data-mce-bogus":"all","data-row":C,role:"presentation"}),ie},Ni=B2("resizer-bar"),F2=B2("resizer-rows"),ls=B2("resizer-cols"),Ov=7,em=(C,D)=>kt(C.all,(B,U)=>D(B.element)?[U]:[]),B3=(C,D)=>{const B=[];return We(C.grid.columns,U=>{Rr.getColumnAt(C,U).map(ie=>ie.element).forall(D)&&B.push(U)}),Ye(B,U=>{const te=Rr.filterItems(C,ie=>ie.column===U);return ln(te,ie=>D(ie.element))})},Xb=C=>{const D=At(C.parent(),"."+Ni);Ee(D,qr)},sA=(C,D,B)=>{const U=C.origin();Ee(D,te=>{te.each(ie=>{const ge=B(U,ie);zu(ge,Ni),Bo(C.parent(),ge)})})},XO=(C,D,B,U)=>{sA(C,D,(te,ie)=>{const ge=Yb(ie.col,ie.x-te.left,B.top-te.top,Ov,U);return zu(ge,ls),ge})},KO=(C,D,B,U)=>{sA(C,D,(te,ie)=>{const ge=YO(ie.row,B.left-te.left,ie.y-te.top,U,Ov);return zu(ge,F2),ge})},mu=(C,D,B,U,te)=>{const ie=Jn(B),ge=D.isResizable,Ae=U.length>0?yb.positions(U,B):[],Be=Ae.length>0?em(C,ge):[],Ze=Ye(Ae,(tn,wn)=>Ce(Be,Yt=>wn===Yt));KO(D,Ze,ie,K(B));const ot=te.length>0?t1.positions(te,B):[],It=ot.length>0?B3(C,ge):[],on=Ye(ot,(tn,wn)=>Ce(It,Yt=>wn===Yt));XO(D,on,ie,Ra(B))},Ds=(C,D)=>{if(Xb(C),C.isResizable(D)){const B=Rr.fromTable(D),U=Uu(B),te=eE(B);mu(B,C,D,U,te)}},Lf=(C,D)=>{const B=At(C.parent(),"."+Ni);Ee(B,D)},V2=C=>{Lf(C,D=>{Mi(D,"display","none")})},Kb=C=>{Lf(C,D=>{Mi(D,"display","block")})},JO=C=>wf(C,F2),P3=C=>wf(C,ls),QO=B2("resizer-bar-dragging"),lA=C=>{const D=jO(),B=Nv(D,{});let U=ne.none();const te=(Yt,Lt)=>ne.from(Fc(Yt,Lt));D.events.drag.bind(Yt=>{te(Yt.target,"data-row").each(Lt=>{const In=gh(Yt.target,"top");Mi(Yt.target,"top",In+Yt.yDelta+"px")}),te(Yt.target,"data-column").each(Lt=>{const In=gh(Yt.target,"left");Mi(Yt.target,"left",In+Yt.xDelta+"px")})});const ie=(Yt,Lt)=>{const In=gh(Yt,Lt),tr=pd(Yt,"data-initial-"+Lt,0);return In-tr};B.events.stop.bind(()=>{D.get().each(Yt=>{U.each(Lt=>{te(Yt,"data-row").each(In=>{const tr=ie(Yt,"top");Ca(Yt,"data-initial-top"),wn.trigger.adjustHeight(Lt,tr,parseInt(In,10))}),te(Yt,"data-column").each(In=>{const tr=ie(Yt,"left");Ca(Yt,"data-initial-left"),wn.trigger.adjustWidth(Lt,tr,parseInt(In,10))}),Ds(C,Lt)})})});const ge=(Yt,Lt)=>{wn.trigger.startAdjust(),D.assign(Yt),dr(Yt,"data-initial-"+Lt,gh(Yt,Lt)),zu(Yt,QO),Mi(Yt,"opacity","0.2"),B.go(C.dragContainer())},Ae=xf(C.parent(),"mousedown",Yt=>{JO(Yt.target)&&ge(Yt.target,"top"),P3(Yt.target)&&ge(Yt.target,"left")}),Be=Yt=>Wo(Yt,C.view()),Ze=Yt=>Ps(Yt,"table",Be).filter(oa),ot=Yt=>wf(Yt,"ephox-snooker-resizer-bar")||wf(Yt,"ephox-dragster-blocker"),It=xf(C.view(),"mouseover",Yt=>{Ze(Yt.target).fold(()=>{Sf(Yt.target)&&!ot(Yt.target)&&Xb(C)},Lt=>{B.isActive()&&(U=ne.some(Lt),Ds(C,Lt))})}),on=()=>{Ae.unbind(),It.unbind(),B.destroy(),Xb(C)},tn=Yt=>{Ds(C,Yt)},wn=Lv({adjustHeight:Mf(["table","delta","row"]),adjustWidth:Mf(["table","delta","column"]),startAdjust:Mf([])});return{destroy:on,refresh:tn,on:B.on,off:B.off,hideBars:Z(V2,C),showBars:Z(Kb,C),events:wn.registry}},cA={create:(C,D,B)=>{const U=yb,te=t1,ie=lA(C),ge=Lv({beforeResize:Mf(["table","type"]),afterResize:Mf(["table","type"]),startDrag:Mf([])});return ie.events.adjustHeight.bind(Ae=>{const Be=Ae.table;ge.trigger.beforeResize(Be,"row");const Ze=U.delta(Ae.delta,Be);_E(Be,Ze,Ae.row),ge.trigger.afterResize(Be,"row")}),ie.events.startAdjust.bind(Ae=>{ge.trigger.startDrag()}),ie.events.adjustWidth.bind(Ae=>{const Be=Ae.table;ge.trigger.beforeResize(Be,"col");const Ze=te.delta(Ae.delta,Be),ot=B(Be);Fo(Be,Ze,Ae.column,D,ot),ge.trigger.afterResize(Be,"col")}),{on:ie.on,off:ie.off,refreshBars:ie.refresh,hideBars:ie.hideBars,showBars:ie.showBars,destroy:ie.destroy,events:ge.registry}}},Ap=C=>D=>D.options.get(C),uA="100%",z2=C=>{var D;const B=C.dom,U=(D=B.getParent(C.selection.getStart(),B.isBlock))!==null&&D!==void 0?D:C.getBody();return ce(sn.fromDom(U))+"px"},tR=(C,D)=>k1(C)||!pA(C)?D:D1(C)?{...D,width:z2(C)}:{...D,width:uA},F3=(C,D)=>k1(C)||pA(C)?D:D1(C)?{...D,width:z2(C)}:{...D,width:uA},nR=C=>{const D=C.options.register;D("table_clone_elements",{processor:"string[]"}),D("table_use_colgroups",{processor:"boolean",default:!0}),D("table_header_type",{processor:B=>{const U=Ve(["section","cells","sectionCells","auto"],B);return U?{value:B,valid:U}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),D("table_sizing_mode",{processor:"string",default:"auto"}),D("table_default_attributes",{processor:"object",default:{border:"1"}}),D("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),D("table_column_resizing",{processor:B=>{const U=Ve(["preservetable","resizetable"],B);return U?{value:B,valid:U}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),D("table_resize_bars",{processor:"boolean",default:!0}),D("table_style_by_css",{processor:"boolean",default:!0}),D("table_merge_content_on_paste",{processor:"boolean",default:!0})},fA=C=>ne.from(C.options.get("table_clone_elements")),Jb=C=>{const D=C.options.get("object_resizing");return Ve(D.split(","),"table")},V3=Ap("table_header_type"),dA=Ap("table_column_resizing"),z3=C=>dA(C)==="preservetable",H3=C=>dA(C)==="resizetable",hA=Ap("table_sizing_mode"),wh=C=>hA(C)==="relative",D1=C=>hA(C)==="fixed",k1=C=>hA(C)==="responsive",$3=Ap("table_resize_bars"),pA=Ap("table_style_by_css"),U3=Ap("table_merge_content_on_paste"),gA=C=>{const D=C.options,B=D.get("table_default_attributes");return D.isSet("table_default_attributes")?B:F3(C,B)},W3=C=>{const D=C.options,B=D.get("table_default_styles");return D.isSet("table_default_styles")?B:tR(C,B)},rR=Ap("table_use_colgroups"),H2=C=>sn.fromDom(C.getBody()),tm=C=>D=>Wo(D,H2(C)),nm=C=>{Ca(C,"data-mce-style");const D=B=>Ca(B,"data-mce-style");Ee(cu(C),D),Ee(Fg(C),D),Ee(uc(C),D)},Qb=C=>sn.fromDom(C.selection.getStart()),G3=C=>C.getBoundingClientRect().width,mA=C=>C.getBoundingClientRect().height,vA=C=>(D,B)=>{const U=D.dom.getStyle(B,C)||D.dom.getAttrib(B,C);return ne.from(U).filter(_a)},oR=vA("width"),Z3=vA("height"),q3=C=>/^(\d+(\.\d+)?)%$/.test(C),aR=C=>/^(\d+(\.\d+)?)px$/.test(C),yA=C=>ob(C,ys("table")).exists(oa),bA=C=>Og(C,"table"),Jt=(C,D,B)=>{const U=te=>ie=>B!==void 0&&B(ie)||Wo(ie,te);return Wo(C,D)?ne.some({boxes:ne.some([C]),start:C,finish:D}):bA(C).bind(te=>bA(D).bind(ie=>{if(Wo(te,ie))return ne.some({boxes:tA(te,C,D),start:C,finish:D});if(ps(te,ie)){const ge=$a(D,"td,th",U(te)),Ae=ge.length>0?ge[ge.length-1]:D;return ne.some({boxes:M2(te,C,te,D,ie),start:C,finish:Ae})}else if(ps(ie,te)){const ge=$a(C,"td,th",U(ie)),Ae=ge.length>0?ge[ge.length-1]:C;return ne.some({boxes:M2(ie,C,te,D,ie),start:C,finish:Ae})}else return p2(C,D).shared.bind(ge=>Ps(ge,"table",B).bind(Ae=>{const Be=$a(D,"td,th",U(Ae)),Ze=Be.length>0?Be[Be.length-1]:D,ot=$a(C,"td,th",U(Ae)),It=ot.length>0?ot[ot.length-1]:C;return ne.some({boxes:M2(Ae,C,te,D,ie),start:It,finish:Ze})}))}))},vu=(C,D)=>{const B=At(C,D);return B.length>0?ne.some(B):ne.none()},iR=(C,D)=>le(C,B=>Ol(B,D)),$2=(C,D,B)=>fh(C,D).bind(U=>fh(C,B).bind(te=>Bb(bA,[U,te]).map(ie=>({first:U,last:te,table:ie})))),j3=(C,D)=>Og(C,"table").bind(B=>fh(B,D).bind(U=>Jt(U,C).bind(te=>te.boxes.map(ie=>({boxes:ie,start:te.start,finish:te.finish}))))),ex=(C,D,B,U,te)=>iR(C,te).bind(ie=>Mv(ie,D,B).bind(ge=>j3(ge,U))),U2=(C,D)=>vu(C,D),Y3=(C,D,B)=>$2(C,D,B).bind(U=>{const te=Be=>Wo(C,Be),ie="thead,tfoot,tbody,table",ge=Og(U.first,ie,te),Ae=Og(U.last,ie,te);return ge.bind(Be=>Ae.bind(Ze=>Wo(Be,Ze)?M3(U.table,U.first,U.last):ne.none()))}),W2=I,X3=C=>{const D=(U,te)=>vl(U,te).exists(ie=>parseInt(ie,10)>1),B=U=>D(U,"rowspan")||D(U,"colspan");return C.length>0&&ln(C,B)?ne.some(C):ne.none()},K3=(C,D,B)=>D.length<=1?ne.none():Y3(C,B.firstSelectedSelector,B.lastSelectedSelector).map(U=>({bounds:U,cells:D})),M1={create:(C,D)=>({selection:C,kill:D})},J3=(C,D,B,U)=>{switch(C.tag){case"none":return D();case"single":return U(C.element);case"multiple":return B(C.elements)}},Z2=()=>({tag:"none"}),sR=C=>({tag:"multiple",elements:C}),Q3=C=>({tag:"single",element:C}),Rv=(C,D,B)=>({get:()=>U2(C(),B).fold(()=>D().fold(Z2,Q3),sR)}),Tp={create:(C,D,B,U)=>({start:ei.on(C,D),finish:ei.on(B,U)})},tx=(C,D)=>{const B=_g(C,D);return zc.create(sn.fromDom(B.startContainer),B.startOffset,sn.fromDom(B.endContainer),B.endOffset)},q2=Tp.create,ek=(C,D,B,U,te,ie,ge)=>Wo(B,te)&&U===ie?ne.none():Ps(B,"td,th",D).bind(Ae=>Ps(te,"td,th",D).bind(Be=>_A(C,D,Ae,Be,ge))),_A=(C,D,B,U,te)=>Wo(B,U)?ne.none():Jt(B,U,D).bind(ie=>{const ge=ie.boxes.getOr([]);return ge.length>1?(te(C,ge,ie.start,ie.finish),ne.some(M1.create(ne.some(q2(B,0,B,$i(B))),!0))):ne.none()}),lR=(C,D,B,U,te)=>{const ie=ge=>(te.clearBeforeUpdate(B),te.selectRange(B,ge.boxes,ge.start,ge.finish),ge.boxes);return ex(U,C,D,te.firstSelectedSelector,te.lastSelectedSelector).map(ie)},nx=xr.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),L1=(C,D,B)=>{const U=C.getRect(D),te=C.getRect(B);return te.right>U.left&&te.left<U.right},N1=C=>Ps(C,"tr"),Iv={...nx,verify:(C,D,B,U,te,ie,ge)=>Ps(U,"td,th",ge).bind(Ae=>Ps(D,"td,th",ge).map(Be=>Wo(Ae,Be)?Wo(U,Ae)&&$i(Ae)===te?ie(Be):nx.none("in same cell"):Bb(N1,[Ae,Be]).fold(()=>L1(C,Be,Ae)?nx.success():ie(Be),Ze=>ie(Be)))).getOr(nx.none("default")),cata:(C,D,B,U,te)=>C.fold(D,B,U,te)},O1=ys("br"),rx=(C,D,B)=>D(C,B).bind(U=>vs(U)&&la(U).trim().length===0?rx(U,D,B):ne.some(U)),nk=(C,D,B)=>B.traverse(D).orThunk(()=>rx(D,B.gather,C)).map(B.relative),j2=(C,D)=>nc(C,D).filter(O1).orThunk(()=>nc(C,D-1).filter(O1)),rk=(C,D,B,U)=>j2(D,B).bind(te=>U.traverse(te).fold(()=>rx(te,U.gather,C).map(U.relative),ie=>K0(ie).map(ge=>ei.on(ge.parent,ge.index)))),CA=(C,D,B,U)=>(O1(D)?nk(C,D,U):rk(C,D,B,U)).map(ie=>({start:ie,finish:ie})),Bv=C=>Iv.cata(C,D=>ne.none(),()=>ne.none(),D=>ne.some(_h(D,0)),D=>ne.some(_h(D,$i(D)))),Eh=(C,D)=>({left:C.left,top:C.top+D,right:C.right,bottom:C.bottom+D}),Ah=(C,D)=>({left:C.left,top:C.top-D,right:C.right,bottom:C.bottom-D}),Pv=(C,D,B)=>({left:C.left+D,top:C.top+B,right:C.right+D,bottom:C.bottom+B}),ok=C=>C.top,Dp=C=>C.bottom,kd=(C,D,B)=>B>=0&&B<$i(D)?C.getRangedRect(D,B,D,B+1):B>0?C.getRangedRect(D,B-1,D,B):ne.none(),Fv=C=>({left:C.left,top:C.top,right:C.right,bottom:C.bottom}),Y2=(C,D)=>ne.some(C.getRect(D)),SA=(C,D,B)=>Rs(D)?Y2(C,D).map(Fv):vs(D)?kd(C,D,B).map(Fv):ne.none(),X2=(C,D)=>Rs(D)?Y2(C,D).map(Fv):vs(D)?C.getRangedRect(D,0,D,$i(D)).map(Fv):ne.none(),Nf=5,R1=100,Of=xr.generate([{none:[]},{retry:["caret"]}]),ak=(C,D)=>C.left<D.left||Math.abs(D.right-C.left)<1||C.left>D.right,I1=(C,D,B)=>ob(D,wp).fold(ee,U=>X2(C,U).exists(te=>ak(B,te))),K2=(C,D,B,U,te)=>{const ie=Eh(te,Nf);return Math.abs(B.bottom-U.bottom)<1||B.top>te.bottom?Of.retry(ie):B.top===te.bottom?Of.retry(Eh(te,1)):I1(C,D,te)?Of.retry(Pv(ie,Nf,0)):Of.none()},J2={point:ok,adjuster:(C,D,B,U,te)=>{const ie=Ah(te,Nf);return Math.abs(B.top-U.top)<1||B.bottom<te.top?Of.retry(ie):B.bottom===te.top?Of.retry(Ah(te,1)):I1(C,D,te)?Of.retry(Pv(ie,Nf,0)):Of.none()},move:Ah,gather:kE},Q2={point:Dp,adjuster:K2,move:Eh,gather:Xg},tl=(C,D,B)=>C.elementFromPoint(D,B).filter(U=>Zo(U)==="table").isSome(),Th=(C,D,B,U,te)=>eC(C,D,B,D.move(U,Nf),te),eC=(C,D,B,U,te)=>te===0?ne.some(U):tl(C,U.left,D.point(U))?Th(C,D,B,U,te-1):C.situsFromPoint(U.left,D.point(U)).bind(ie=>ie.start.fold(ne.none,ge=>X2(C,ge).bind(Ae=>D.adjuster(C,ge,Ae,B,U).fold(ne.none,Be=>eC(C,D,B,Be,te-1))).orThunk(()=>ne.some(U)),ne.none)),$l=(C,D,B)=>C.point(D)>B.getInnerHeight()?ne.some(C.point(D)-B.getInnerHeight()):C.point(D)<0?ne.some(-C.point(D)):ne.none(),Vv=(C,D,B)=>{const U=C.move(B,Nf),te=eC(D,C,B,U,R1).getOr(U);return $l(C,te,D).fold(()=>D.situsFromPoint(te.left,C.point(te)),ie=>(D.scrollBy(0,ie),D.situsFromPoint(te.left,C.point(te)-ie)))},tC={tryUp:Z(Vv,J2),tryDown:Z(Vv,Q2),getJumpSize:O(Nf)},nC=20,qc=(C,D,B)=>C.getSelection().bind(U=>CA(D,U.finish,U.foffset,B).fold(()=>ne.some(_h(U.finish,U.foffset)),te=>{const ie=C.fromSitus(te),ge=Iv.verify(C,U.finish,U.foffset,ie.finish,ie.foffset,B.failure,D);return Bv(ge)})),ox=(C,D,B,U,te,ie)=>ie===0?ne.none():oC(C,D,B,U,te).bind(ge=>{const Ae=C.fromSitus(ge),Be=Iv.verify(C,B,U,Ae.finish,Ae.foffset,te.failure,D);return Iv.cata(Be,()=>ne.none(),()=>ne.some(ge),Ze=>Wo(B,Ze)&&U===0?rC(C,B,U,Ah,te):ox(C,D,Ze,0,te,ie-1),Ze=>Wo(B,Ze)&&U===$i(Ze)?rC(C,B,U,Eh,te):ox(C,D,Ze,$i(Ze),te,ie-1))}),rC=(C,D,B,U,te)=>SA(C,D,B).bind(ie=>wA(C,te,U(ie,tC.getJumpSize()))),wA=(C,D,B)=>{const U=Yy().browser;return U.isChromium()||U.isSafari()||U.isFirefox()?D.retry(C,B):ne.none()},oC=(C,D,B,U,te)=>SA(C,B,U).bind(ie=>wA(C,te,ie)),Md=(C,D,B)=>qc(C,D,B).bind(U=>ox(C,D,U.element,U.offset,B,nC).map(C.fromSitus)),ik=(C,D)=>Fl(C,B=>fi(B).exists(U=>Wo(U,D))),sk=(C,D,B,U,te)=>Ps(U,"td,th",D).bind(ie=>Ps(ie,"table",D).bind(ge=>ik(te,ge)?Md(C,D,B).bind(Ae=>Ps(Ae.finish,"td,th",D).map(Be=>({start:ie,finish:Be,range:Ae}))):ne.none())),EA=(C,D,B,U,te,ie)=>ie(U,D).orThunk(()=>sk(C,D,B,U,te).map(ge=>{const Ae=ge.range;return M1.create(ne.some(q2(Ae.start,Ae.soffset,Ae.finish,Ae.foffset)),!0)})),lk=(C,D)=>Ps(C,"tr",D).bind(B=>Ps(B,"table",D).bind(U=>{const te=At(U,"tr");return Wo(B,te[0])?wv(U,ie=>fv(ie).isSome(),D).map(ie=>{const ge=$i(ie);return M1.create(ne.some(q2(ie,ge,ie,ge)),!0)}):ne.none()})),ck=(C,D)=>Ps(C,"tr",D).bind(B=>Ps(B,"table",D).bind(U=>{const te=At(U,"tr");return Wo(B,te[te.length-1])?Cp(U,ie=>lc(ie).isSome(),D).map(ie=>M1.create(ne.some(q2(ie,0,ie,0)),!0)):ne.none()})),Hr=(C,D,B,U,te,ie,ge)=>sk(C,B,U,te,ie).bind(Ae=>_A(D,B,Ae.start,Ae.finish,ge)),B1=(C,D)=>Ps(C,"td,th",D),ks=C=>Qy(C).exists(oa),Rf=(C,D,B,U)=>{const te=Ya(),ie=te.clear,ge=ot=>{te.on(It=>{U.clearBeforeUpdate(D),B1(ot.target,B).each(on=>{Jt(It,on,B).each(tn=>{const wn=tn.boxes.getOr([]);if(wn.length===1){const Yt=wn[0],Lt=iu(Yt)==="false",In=ul(uv(ot.target),Yt,Wo);Lt&&In&&U.selectRange(D,wn,Yt,Yt)}else wn.length>1&&(U.selectRange(D,wn,tn.start,tn.finish),C.selectContents(on))})})})};return{clearstate:ie,mousedown:ot=>{U.clear(D),B1(ot.target,B).filter(ks).each(te.set)},mouseover:ot=>{ge(ot)},mouseup:ot=>{ge(ot),ie()}}},P1={traverse:ih,gather:Xg,relative:ei.before,retry:tC.tryDown,failure:Iv.failedDown},kp={traverse:Dg,gather:kE,relative:ei.before,retry:tC.tryUp,failure:Iv.failedUp},ji=C=>D=>D===C,Sl=ji(38),Ms=ji(40),wl=C=>C>=37&&C<=40,aC={isBackward:ji(37),isForward:ji(39)},yu={isBackward:ji(39),isForward:ji(37)},Dh=C=>({elementFromPoint:(Lt,In)=>sn.fromPoint(sn.fromDom(C.document),Lt,In),getRect:Lt=>Lt.dom.getBoundingClientRect(),getRangedRect:(Lt,In,tr,dn)=>{const to=Ef.exact(Lt,In,tr,dn);return dO(C,to)},getSelection:()=>ti(C).map(Lt=>tx(C,Lt)),fromSitus:Lt=>{const In=Ef.relative(Lt.start,Lt.finish);return tx(C,In)},situsFromPoint:(Lt,In)=>Rg(C,Lt,In).map(tr=>Tp.create(tr.start,tr.soffset,tr.finish,tr.foffset)),clearSelection:()=>{lb(C)},collapseSelection:(Lt=!1)=>{ti(C).each(In=>In.fold(tr=>tr.collapse(Lt),(tr,dn)=>{const to=Lt?tr:dn;cc(C,to,to)},(tr,dn,to,ho)=>{const no=Lt?tr:to,Eo=Lt?dn:ho;pv(C,no,Eo,no,Eo)}))},setSelection:Lt=>{pv(C,Lt.start,Lt.soffset,Lt.finish,Lt.foffset)},setRelativeSelection:(Lt,In)=>{cc(C,Lt,In)},selectNode:Lt=>{_4(C,Lt,!1)},selectContents:Lt=>{_4(C,Lt)},getInnerHeight:()=>C.innerHeight,getScrollY:()=>Pn(sn.fromDom(C.document)).top,scrollBy:(Lt,In)=>{So(Lt,In,sn.fromDom(C.document))}}),F1=(C,D)=>({rows:C,cols:D}),cR=(C,D,B,U)=>{const te=Dh(C),ie=Rf(te,D,B,U);return{clearstate:ie.clearstate,mousedown:ie.mousedown,mouseover:ie.mouseover,mouseup:ie.mouseup}},uk=C=>ob(C,Jy).exists(oa),nl=(C,D)=>uk(C)||uk(D),fk=(C,D,B,U)=>{const te=Dh(C),ie=()=>(U.clear(D),ne.none());return{keydown:(Be,Ze,ot,It,on,tn)=>{const wn=Be.raw,Yt=wn.which,Lt=wn.shiftKey===!0;return vu(D,U.selectedSelector).fold(()=>(wl(Yt)&&!Lt&&U.clearBeforeUpdate(D),wl(Yt)&&Lt&&!nl(Ze,It)?ne.none:Ms(Yt)&&Lt?Z(Hr,te,D,B,P1,It,Ze,U.selectRange):Sl(Yt)&&Lt?Z(Hr,te,D,B,kp,It,Ze,U.selectRange):Ms(Yt)?Z(EA,te,B,P1,It,Ze,ck):Sl(Yt)?Z(EA,te,B,kp,It,Ze,lk):ne.none),tr=>{const dn=to=>()=>Je(to,no=>lR(no.rows,no.cols,D,tr,U)).fold(()=>$2(D,U.firstSelectedSelector,U.lastSelectedSelector).map(no=>{const Eo=Ms(Yt)||tn.isForward(Yt)?ei.after:ei.before;return te.setRelativeSelection(ei.on(no.first,0),Eo(no.table)),U.clear(D),M1.create(ne.none(),!0)}),no=>ne.some(M1.create(ne.none(),!0)));return wl(Yt)&&Lt&&!nl(Ze,It)?ne.none:Ms(Yt)&&Lt?dn([F1(1,0)]):Sl(Yt)&&Lt?dn([F1(-1,0)]):tn.isBackward(Yt)&&Lt?dn([F1(0,-1),F1(-1,0)]):tn.isForward(Yt)&&Lt?dn([F1(0,1),F1(1,0)]):wl(Yt)&&!Lt?ie:ne.none})()},keyup:(Be,Ze,ot,It,on)=>vu(D,U.selectedSelector).fold(()=>{const tn=Be.raw,wn=tn.which;return tn.shiftKey===!0&&wl(wn)&&nl(Ze,It)?ek(D,B,Ze,ot,It,on,U.selectRange):ne.none()},ne.none)}},ax=(C,D,B,U)=>{const te=Dh(C);return(ie,ge)=>{U.clearBeforeUpdate(D),Jt(ie,ge,B).each(Ae=>{const Be=Ae.boxes.getOr([]);U.selectRange(D,Be,Ae.start,Ae.finish),te.selectContents(ge),te.collapseSelection()})}},AA={byClass:C=>{const D=bl(C.selected),B=Y0([C.selected,C.lastSelected,C.firstSelected]),U=ie=>{const ge=At(ie,C.selectedSelector);Ee(ge,B)};return{clearBeforeUpdate:U,clear:U,selectRange:(ie,ge,Ae,Be)=>{U(ie),Ee(ge,D),zu(Ae,C.firstSelected),zu(Be,C.lastSelected)},selectedSelector:C.selectedSelector,firstSelectedSelector:C.firstSelectedSelector,lastSelectedSelector:C.lastSelectedSelector}},byAttr:(C,D,B)=>{const U=Be=>{Ca(Be,C.selected),Ca(Be,C.firstSelected),Ca(Be,C.lastSelected)},te=Be=>{dr(Be,C.selected,"1")},ie=Be=>{ge(Be),B()},ge=Be=>{const Ze=At(Be,`${C.selectedSelector},${C.firstSelectedSelector},${C.lastSelectedSelector}`);Ee(Ze,U)};return{clearBeforeUpdate:ge,clear:ie,selectRange:(Be,Ze,ot,It)=>{ie(Be),Ee(Ze,te),dr(ot,C.firstSelected,"1"),dr(It,C.lastSelected,"1"),D(Ze,ot,It)},selectedSelector:C.selectedSelector,firstSelectedSelector:C.firstSelectedSelector,lastSelectedSelector:C.lastSelectedSelector}}},iC="data-mce-selected",fR="td["+iC+"],th["+iC+"]",wo="["+iC+"]",rm="data-mce-first-selected",sC="td["+rm+"],th["+rm+"]",ix="data-mce-last-selected",dR="td["+ix+"],th["+ix+"]",hR=wo,om={selected:iC,selectedSelector:fR,firstSelected:rm,firstSelectedSelector:sC,lastSelected:ix,lastSelectedSelector:dR},lC=(C,D,B)=>({element:B,mergable:K3(D,C,om),unmergable:X3(C),selection:W2(C)}),hr=(C,D,B)=>({element:C,clipboard:D,generators:B}),TA=(C,D,B,U)=>({selection:W2(C),clipboard:B,generators:U}),bu=C=>an(C).bind(D=>U2(D,om.firstSelectedSelector)).fold(O(C),D=>D[0]),sx=C=>(D,B)=>{const U=Zo(D),te=U==="col"||U==="colgroup"?bu(D):D;return Ps(te,C,B)},am=sx("th,td,caption"),ju=sx("th,td"),yc=C=>B_(C.model.table.getSelectedCells()),cC=C=>Ye(yc(C),D=>Ol(D,om.selectedSelector)),pR=C=>an(C[0]).map(D=>{const B=bO(D,hR);return nm(B),[B]}),gR=(C,D)=>Ue(D,B=>C.selection.serializer.serialize(B.dom,{})).join(""),mR=(C,D)=>{const B=C.getDoc(),U=sh(sn.fromDom(C.getBody())),te=sn.fromTag("div",B);dr(te,"data-mce-bogus","all"),Mg(te,{position:"fixed",left:"-9999999px",top:"0",overflow:"hidden",opacity:"0"});const ie=zr(U);Qs(te,D),Bo(ie,te);const ge=te.dom.innerText;return qr(te),ge},vR=(C,D)=>{C.on("BeforeGetContent",B=>{const U=te=>{B.preventDefault(),pR(te).each(ie=>{const ge=B.format==="text"?mR(C,ie):gR(C,ie);B.content=ge})};if(B.selection===!0){const te=cC(C);te.length>=1&&U(te)}}),C.on("BeforeSetContent",B=>{if(B.selection===!0&&B.paste===!0){const U=yc(C);Qe(U).each(te=>{an(te).each(ie=>{const ge=Ye(uh(B.content),Be=>Zo(Be)!=="meta"),Ae=ys("table");if(U3(C)&&ge.length===1&&Ae(ge[0])){B.preventDefault();const Be=sn.fromDom(C.getDoc()),Ze=t3(Be),ot=hr(te,ge[0],Ze);D.pasteCells(ie,ot).each(()=>{C.focus()})}})})}})},qo=(C,D)=>C.dispatch("NewRow",{node:D}),Ld=(C,D)=>C.dispatch("NewCell",{node:D}),rl=(C,D,B)=>{C.dispatch("TableModified",{...B,table:D})},Qr=(C,D,B,U,te)=>{C.dispatch("TableSelectionChange",{cells:D,start:B,finish:U,otherCells:te})},Yi=C=>{C.dispatch("TableSelectionClear")},Nd=(C,D,B,U,te)=>{C.dispatch("ObjectResizeStart",{target:D,width:B,height:U,origin:te})},Od=(C,D,B,U,te)=>{C.dispatch("ObjectResized",{target:D,width:B,height:U,origin:te})},Yu={structure:!1,style:!0},yi={structure:!0,style:!1},uC={structure:!0,style:!0},lx=(C,D)=>wh(C)?Wg.percentageSize(D):D1(C)?Wg.pixelSize(D):Wg.getTableSize(D),V1=(C,D,B)=>{const U=Xi=>Zo(H2(Xi))==="table",te=Xi=>!U(C)||b2(Xi).rows>1,ie=Xi=>!U(C)||b2(Xi).columns>1,ge=fA(C),Ae=H3(C)?T:r1,Be=Xi=>{switch(V3(C)){case"section":return vv.section();case"sectionCells":return vv.sectionCells();case"cells":return vv.cells();default:return vv.getTableSectionType(Xi,"section")}},Ze=(Xi,$v)=>$v.cursor.fold(()=>{const Uv=cu(Xi);return Qe(Uv).filter(Sf).map(Oh=>{B.clearSelectedCells(Xi.dom);const oi=C.dom.createRng();return oi.selectNode(Oh.dom),C.selection.setRng(oi),dr(Oh,"data-mce-selected","1"),oi})},Uv=>{const Oh=Yg(Uv),oi=C.dom.createRng();return oi.setStart(Oh.element.dom,Oh.offset),oi.setEnd(Oh.element.dom,Oh.offset),C.selection.setRng(oi),B.clearSelectedCells(Xi.dom),ne.some(oi)}),ot=(Xi,$v,Uv,Oh)=>(oi,xR,_R=!1)=>{nm(oi);const nr=sn.fromDom(C.getDoc()),bk=y2(Uv,nr,ge),xk={sizing:lx(C,oi),resize:H3(C)?C4():jw(),section:Be(oi)};return $v(oi)?Xi(oi,xR,bk,xk).bind(_k=>{D.refresh(oi.dom),Ee(_k.newRows,hx=>{qo(C,hx.dom)}),Ee(_k.newCells,hx=>{Ld(C,hx.dom)});const ai=Ze(oi,_k);return Sf(oi)&&(nm(oi),_R||rl(C,oi.dom,Oh)),ai.map(hx=>({rng:hx,effect:Oh}))}):ne.none()},It=ot(Ir,te,T,yi),on=ot(FO,ie,T,yi),tn=ot(_3,Y,T,yi),wn=ot(C3,Y,T,yi),Yt=ot(Dd,Y,Ae,yi),Lt=ot(S3,Y,Ae,yi),In=ot($O,Y,T,yi),tr=ot(UO,Y,T,yi),dn=ot(WO,Y,T,yi),to=ot(KE,Y,T,yi),ho=ot(JE,Y,T,yi),no=ot(QE,Y,T,yi),Eo=ot(XE,Y,T,uC),xu=ot(w3,Y,T,yi),Hv=ot(T2,Y,T,yi),Nh=ot(VO,Y,T,yi),im=ot(zO,Y,T,yi),so=ot(YE,Y,T,yi),us=ot(Pa,Y,T,yi),Ul=ot(HO,Y,T,yi);return{deleteRow:It,deleteColumn:on,insertRowsBefore:tn,insertRowsAfter:wn,insertColumnsBefore:Yt,insertColumnsAfter:Lt,mergeCells:In,unmergeCells:tr,pasteColsBefore:dn,pasteColsAfter:to,pasteRowsBefore:ho,pasteRowsAfter:no,pasteCells:Eo,makeCellsHeader:xu,unmakeCellsHeader:Hv,makeColumnsHeader:Nh,unmakeColumnsHeader:im,makeRowsHeader:so,makeRowsBody:us,makeRowsFooter:Ul,getTableRowType:E3,getTableCellType:D2,getTableColType:mn}},z1=(C,D)=>{C.selection.select(D.dom,!0),C.selection.collapse(!0)},fC=(C,D)=>{fh(D,"td,th").each(Z(z1,C))},dk=(C,D)=>{Ee(At(D,"tr"),B=>{qo(C,B.dom),Ee(At(B,"th,td"),U=>{Ld(C,U.dom)})})},hk=C=>l(C)&&C.indexOf("%")!==-1,DA=(C,D,B,U,te)=>{const ie=W3(C),ge={styles:ie,attributes:gA(C),colGroups:rR(C)};return C.undoManager.ignore(()=>{const Ae=N3(B,D,te,U,V3(C),ge);dr(Ae,"data-mce-id","__mce");const Be=P_(Ae);C.insertContent(Be),C.addVisual()}),fh(H2(C),'table[data-mce-id="__mce"]').map(Ae=>(D1(C)?m1(Ae):k1(C)?LE(Ae):(wh(C)||hk(ie.width))&&Fb(Ae),nm(Ae),Ca(Ae,"data-mce-id"),dk(C,Ae),fC(C,Ae),Ae.dom)).getOrNull()},kA=(C,D,B,U={})=>{const te=ie=>A(ie)&&ie>0;if(te(D)&&te(B)){const ie=U.headerRows||0,ge=U.headerColumns||0;return DA(C,B,D,ge,ie)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var Mp=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const ri="x-tinymce/dom-table-",cx=ri+"rows",MA=ri+"columns",pk=C=>{const D=Mp.FakeClipboardItem(C);Mp.write([D])},ux=C=>{var D;const B=(D=Mp.read())!==null&&D!==void 0?D:[];return Je(B,U=>ne.from(U.getType(C)))},Xu=C=>{ux(C).isSome()&&Mp.clear()},fx=C=>{C.fold(dx,D=>pk({[cx]:D}))},kh=()=>ux(cx),dx=()=>Xu(cx),dC=C=>{C.fold(hC,D=>pk({[MA]:D}))},H1=()=>ux(MA),hC=()=>Xu(MA),pC=C=>am(Qb(C),tm(C)).filter(yA),gk=C=>ju(Qb(C),tm(C)).filter(yA),Mh=(C,D)=>{const B=tm(C),U=()=>pC(C).each(Lt=>{an(Lt,B).filter(q(B)).each(In=>{const tr=sn.fromText("");if(ch(In,tr),qr(In),C.dom.isEmpty(C.getBody()))C.setContent(""),C.selection.setCursorLocation();else{const dn=C.dom.createRng();dn.setStart(tr.dom,0),dn.setEnd(tr.dom,0),C.selection.setRng(dn),C.nodeChanged()}})}),te=Lt=>pC(C).each(In=>{k1(C)||D1(C)||wh(C)||an(In,B).each(dn=>{Lt==="relative"&&!f2(dn)?Fb(dn):Lt==="fixed"&&!EE(dn)?m1(dn):Lt==="responsive"&&!AE(dn)&&LE(dn),nm(dn),rl(C,dn.dom,yi)})}),ie=Lt=>an(Lt,B),ge=Lt=>gk(C).bind(In=>ie(In).map(tr=>Lt(tr,In))),Ae=(Lt,In)=>{ge(tr=>{C.formatter.toggle("tableclass",{value:In},tr.dom),rl(C,tr.dom,Yu)})},Be=(Lt,In)=>{ge(tr=>{const dn=yc(C),ho=ln(dn,no=>C.formatter.match("tablecellclass",{value:In},no.dom))?C.formatter.remove:C.formatter.apply;Ee(dn,no=>ho("tablecellclass",{value:In},no.dom)),rl(C,tr.dom,Yu)})},Ze=()=>{pC(C).each(Lt=>{an(Lt,B).each(In=>{ab(In,"caption").fold(()=>{const tr=sn.fromTag("caption");Bo(tr,sn.fromText("Caption")),kg(In,tr,0),C.selection.setCursorLocation(tr.dom,0)},tr=>{ys("caption")(Lt)&&gl("td",In).each(dn=>C.selection.setCursorLocation(dn.dom,0)),qr(tr)}),rl(C,In.dom,yi)})})},ot=Lt=>{C.focus()},It=(Lt,In=!1)=>ge((tr,dn)=>{const to=lC(yc(C),tr,dn);Lt(tr,to,In).each(ot)}),on=()=>ge((Lt,In)=>{const tr=lC(yc(C),Lt,In),dn=y2(T,sn.fromDom(C.getDoc()),ne.none());return o1(Lt,tr,dn)}),tn=()=>ge((Lt,In)=>{const tr=lC(yc(C),Lt,In);return SE(Lt,tr)}),wn=(Lt,In)=>In().each(tr=>{const dn=Ue(tr,to=>nu(to));ge((to,ho)=>{const no=t3(sn.fromDom(C.getDoc())),Eo=TA(yc(C),ho,dn,no);Lt(to,Eo).each(ot)})}),Yt=Lt=>(In,tr)=>Ns(tr,"type").each(dn=>{It(Lt(dn),tr.no_events)});Sn({mceTableSplitCells:()=>It(D.unmergeCells),mceTableMergeCells:()=>It(D.mergeCells),mceTableInsertRowBefore:()=>It(D.insertRowsBefore),mceTableInsertRowAfter:()=>It(D.insertRowsAfter),mceTableInsertColBefore:()=>It(D.insertColumnsBefore),mceTableInsertColAfter:()=>It(D.insertColumnsAfter),mceTableDeleteCol:()=>It(D.deleteColumn),mceTableDeleteRow:()=>It(D.deleteRow),mceTableCutCol:()=>tn().each(Lt=>{dC(Lt),It(D.deleteColumn)}),mceTableCutRow:()=>on().each(Lt=>{fx(Lt),It(D.deleteRow)}),mceTableCopyCol:()=>tn().each(Lt=>dC(Lt)),mceTableCopyRow:()=>on().each(Lt=>fx(Lt)),mceTablePasteColBefore:()=>wn(D.pasteColsBefore,H1),mceTablePasteColAfter:()=>wn(D.pasteColsAfter,H1),mceTablePasteRowBefore:()=>wn(D.pasteRowsBefore,kh),mceTablePasteRowAfter:()=>wn(D.pasteRowsAfter,kh),mceTableDelete:U,mceTableCellToggleClass:Be,mceTableToggleClass:Ae,mceTableToggleCaption:Ze,mceTableSizingMode:(Lt,In)=>te(In),mceTableCellType:Yt(Lt=>Lt==="th"?D.makeCellsHeader:D.unmakeCellsHeader),mceTableColType:Yt(Lt=>Lt==="th"?D.makeColumnsHeader:D.unmakeColumnsHeader),mceTableRowType:Yt(Lt=>{switch(Lt){case"header":return D.makeRowsHeader;case"footer":return D.makeRowsFooter;default:return D.makeRowsBody}})},(Lt,In)=>C.addCommand(In,Lt)),C.addCommand("mceInsertTable",(Lt,In)=>{kA(C,In.rows,In.columns,In.options)}),C.addCommand("mceTableApplyCellStyle",(Lt,In)=>{const tr=ho=>"tablecell"+ho.toLowerCase().replace("-","");if(!c(In))return;const dn=Ye(yc(C),yA);if(dn.length===0)return;const to=Cr(In,(ho,no)=>C.formatter.has(tr(no))&&l(ho));Nl(to)||(Sn(to,(ho,no)=>{const Eo=tr(no);Ee(dn,xu=>{ho===""?C.formatter.remove(Eo,{value:null},xu.dom,!0):C.formatter.apply(Eo,{value:ho},xu.dom)})}),ie(dn[0]).each(ho=>rl(C,ho.dom,Yu)))})},yR=(C,D)=>{const B=tm(C),U=te=>ju(Qb(C)).bind(ie=>an(ie,B).map(ge=>{const Ae=lC(yc(C),ge,ie);return te(ge,Ae)})).getOr("");Sn({mceTableRowType:()=>U(D.getTableRowType),mceTableCellType:()=>U(D.getTableCellType),mceTableColType:()=>U(D.getTableColType)},(te,ie)=>C.addQueryValueHandler(ie,te))},LA=C=>!wf(sn.fromDom(C.target),"ephox-snooker-resizer-bar"),Ku=(C,D)=>{const B=Rv(()=>sn.fromDom(C.getBody()),()=>ju(Qb(C),tm(C)),om.selectedSelector),U=(Be,Ze,ot)=>{an(Ze).each(on=>{const tn=Ue(Be,tr=>tr.dom),wn=fA(C),Yt=y2(T,sn.fromDom(C.getDoc()),wn),Lt=yc(C),In=SO(on,{selection:Lt},Yt).map(tr=>jn(tr,dn=>Ue(dn,to=>to.dom))).getOrUndefined();Qr(C,tn,Ze.dom,ot.dom,In)})},te=()=>Yi(C),ie=AA.byAttr(om,U,te);return C.on("init",Be=>{const Ze=C.getWin(),ot=H2(C),It=tm(C),on=()=>{const so=C.selection,us=sn.fromDom(so.getStart()),Ul=sn.fromDom(so.getEnd());Bb(an,[us,Ul]).fold(()=>ie.clear(ot),T)},tn=cR(Ze,ot,It,ie),wn=fk(Ze,ot,It,ie),Yt=ax(Ze,ot,It,ie),Lt=so=>so.raw.shiftKey===!0;C.on("TableSelectorChange",so=>Yt(so.start,so.finish));const In=(so,us)=>{Lt(so)&&(us.kill&&so.kill(),us.selection.each(Ul=>{const fs=Ef.relative(Ul.start,Ul.finish),Ju=_g(Ze,fs);C.selection.setRng(Ju)}))},tr=so=>{const us=lh(so);if(us.raw.shiftKey&&wl(us.raw.which)){const Ul=C.selection.getRng(),fs=sn.fromDom(Ul.startContainer),Ju=sn.fromDom(Ul.endContainer);wn.keyup(us,fs,Ul.startOffset,Ju,Ul.endOffset).each(U1=>{In(us,U1)})}},dn=so=>{const us=lh(so);D.hide();const Ul=C.selection.getRng(),fs=sn.fromDom(Ul.startContainer),Ju=sn.fromDom(Ul.endContainer),U1=vi(aC,yu)(sn.fromDom(C.selection.getStart()));wn.keydown(us,fs,Ul.startOffset,Ju,Ul.endOffset,U1).each(Xi=>{In(us,Xi)}),D.show()},to=so=>so.button===0,ho=so=>so.buttons===void 0?!0:(so.buttons&1)!==0,no=so=>{tn.clearstate()},Eo=so=>{to(so)&&LA(so)&&tn.mousedown(lh(so))},xu=so=>{ho(so)&&LA(so)&&tn.mouseover(lh(so))},Hv=so=>{to(so)&&LA(so)&&tn.mouseup(lh(so))},im=(()=>{const so=Xo(sn.fromDom(ot)),us=Xo(0);return{touchEnd:fs=>{const Ju=sn.fromDom(fs.target);if(ys("td")(Ju)||ys("th")(Ju)){const U1=so.get(),Xi=us.get();Wo(U1,Ju)&&fs.timeStamp-Xi<300&&(fs.preventDefault(),Yt(Ju,Ju))}so.set(Ju),us.set(fs.timeStamp)}}})();C.on("dragstart",no),C.on("mousedown",Eo),C.on("mouseover",xu),C.on("mouseup",Hv),C.on("touchend",im.touchEnd),C.on("keyup",tr),C.on("keydown",dn),C.on("NodeChange",on)}),C.on("PreInit",()=>{C.serializer.addTempAttr(om.firstSelected),C.serializer.addTempAttr(om.lastSelected)}),{getSelectedCells:()=>J3(B.get(),O([]),Be=>Ue(Be,Ze=>Ze.dom),Be=>[Be.dom]),clearSelectedCells:Be=>ie.clear(sn.fromDom(Be))}},cs=(C,D)=>{const B=sn.fromDom(C.getBody());return xp.body(B,D)},gC=C=>_(C)&&C.nodeName==="TABLE",zv="bar-",bR=C=>Fc(C,"data-mce-resize")!=="false",mk=C=>{const D=Rr.fromTable(C);Rr.hasColumns(D)||Ee(cu(C),B=>{const U=ru(B,"width");Mi(B,"width",U),Ca(B,"width")})},NA=C=>ki(C,"corner-"),$1=C=>np(C,"corner-"),OA=C=>{const D=Ya(),B=Ya(),U=Ya();let te,ie,ge,Ae;const Be=dn=>lx(C,dn),Ze=()=>z3(C)?jw():C4(),ot=dn=>b2(dn).columns,It=dn=>b2(dn).rows,on=(dn,to,ho,no)=>{const Eo=$1(to),xu=fo(Eo,"e"),Hv=ki(Eo,"n");if(ie===""&&Fb(dn),Ae===""&&Ed(dn),ho!==te&&ie!==""){Mi(dn,"width",ie);const Nh=Ze(),im=Be(dn),so=z3(C)||xu?ot(dn)-1:0;Fo(dn,ho-te,so,Nh,im)}else if(q3(ie)){const Nh=parseFloat(ie.replace("%","")),im=ho*Nh/te;Mi(dn,"width",im+"%")}if(aR(ie)&&mk(dn),no!==ge&&Ae!==""){Mi(dn,"height",Ae);const Nh=Hv?0:It(dn)-1;_E(dn,no-ge,Nh)}},tn=()=>{B.on(dn=>{dn.destroy()})};C.on("init",()=>{const dn=cs(C,bR);if(U.set(dn),Jb(C)&&$3(C)){const to=Ze(),ho=cA.create(dn,to,Be);C.mode.isReadOnly()||ho.on(),ho.events.startDrag.bind(no=>{D.set(C.selection.getRng())}),ho.events.beforeResize.bind(no=>{const Eo=no.table.dom;Nd(C,Eo,G3(Eo),mA(Eo),zv+no.type)}),ho.events.afterResize.bind(no=>{const Eo=no.table,xu=Eo.dom;nm(Eo),D.on(Hv=>{C.selection.setRng(Hv),C.focus()}),Od(C,xu,G3(xu),mA(xu),zv+no.type),C.undoManager.add()}),B.set(ho)}}),C.on("ObjectResizeStart",dn=>{const to=dn.target;if(gC(to)&&!C.mode.isReadOnly()){const ho=sn.fromDom(to);Ee(C.dom.select(".mce-clonedresizable"),no=>{C.dom.addClass(no,"mce-"+dA(C)+"-columns")}),!EE(ho)&&D1(C)?m1(ho):!f2(ho)&&wh(C)&&Fb(ho),AE(ho)&&ki(dn.origin,zv)&&Fb(ho),te=dn.width,ie=k1(C)?"":oR(C,to).getOr(""),ge=dn.height,Ae=Z3(C,to).getOr("")}}),C.on("ObjectResized",dn=>{const to=dn.target;if(gC(to)){const ho=sn.fromDom(to),no=dn.origin;NA(no)&&on(ho,no,dn.width,dn.height),nm(ho),rl(C,ho.dom,Yu)}});const wn=()=>{B.on(dn=>{dn.on(),dn.showBars()})},Yt=()=>{B.on(dn=>{dn.off(),dn.hideBars()})};return C.on("DisabledStateChange",dn=>{dn.state?Yt():wn()}),C.on("SwitchMode",()=>{C.mode.isReadOnly()?Yt():wn()}),C.on("dragstart dragend",dn=>{dn.type==="dragstart"?Yt():wn()}),C.on("remove",()=>{tn()}),{refresh:dn=>{B.on(to=>to.refreshBars(sn.fromDom(dn)))},hide:()=>{B.on(dn=>dn.hideBars())},show:()=>{B.on(dn=>dn.showBars())}}},Lh=C=>{nR(C);const D=OA(C),B=Ku(C,D),U=V1(C,D,B);return Mh(C,U),yR(C,U),vR(C,U),{getSelectedCells:B.getSelectedCells,clearSelectedCells:B.clearSelectedCells}},vk=C=>({table:Lh(C)});var yk=()=>{n.add("dom",vk)};yk()}()),Jle}var ece;function tke(){return ece||(ece=1,eke()),Kle}tke();var tce={},nce={},rce;function nke(){return rce||(rce=1,function(){var n=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=Object.getPrototypeOf,t=(pe,Oe,Ge)=>{var dt;return Ge(pe,Oe.prototype)?!0:((dt=pe.constructor)===null||dt===void 0?void 0:dt.name)===Oe.name},r=pe=>{const Oe=typeof pe;return pe===null?"null":Oe==="object"&&Array.isArray(pe)?"array":Oe==="object"&&t(pe,String,(Ge,dt)=>dt.isPrototypeOf(Ge))?"string":Oe},a=pe=>Oe=>r(Oe)===pe,i=pe=>Oe=>typeof Oe===pe,l=pe=>Oe=>pe===Oe,c=(pe,Oe)=>h(pe)&&t(pe,Oe,(Ge,dt)=>e(Ge)===dt),d=a("string"),h=a("object"),p=pe=>c(pe,Object),v=a("array"),y=l(null),_=i("boolean"),w=pe=>pe==null,A=pe=>!w(pe),T=i("function"),k=i("number"),R=(pe,Oe)=>{if(v(pe)){for(let Ge=0,dt=pe.length;Ge<dt;++Ge)if(!Oe(pe[Ge]))return!1;return!0}return!1},O=()=>{};class I{constructor(Oe,Ge){this.tag=Oe,this.value=Ge}static some(Oe){return new I(!0,Oe)}static none(){return I.singletonNone}fold(Oe,Ge){return this.tag?Ge(this.value):Oe()}isSome(){return this.tag}isNone(){return!this.tag}map(Oe){return this.tag?I.some(Oe(this.value)):I.none()}bind(Oe){return this.tag?Oe(this.value):I.none()}exists(Oe){return this.tag&&Oe(this.value)}forall(Oe){return!this.tag||Oe(this.value)}filter(Oe){return!this.tag||Oe(this.value)?this:I.none()}getOr(Oe){return this.tag?this.value:Oe}or(Oe){return this.tag?this:Oe}getOrThunk(Oe){return this.tag?this.value:Oe()}orThunk(Oe){return this.tag?this:Oe()}getOrDie(Oe){if(this.tag)return this.value;throw new Error(Oe??"Called getOrDie on None")}static from(Oe){return A(Oe)?I.some(Oe):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Oe){this.tag&&Oe(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const G=Array.prototype.push,Z=pe=>{const Oe=[];for(let Ge=0,dt=pe.length;Ge<dt;++Ge){if(!v(pe[Ge]))throw new Error("Arr.flatten item "+Ge+" was not an array, input: "+pe);G.apply(Oe,pe[Ge])}return Oe},q=(pe,Oe)=>Oe>=0&&Oe<pe.length?I.some(pe[Oe]):I.none(),re=pe=>q(pe,0),oe=(pe,Oe)=>{for(let Ge=0;Ge<pe.length;Ge++){const dt=Oe(pe[Ge],Ge);if(dt.isSome())return dt}return I.none()},ee=Object.keys,Y=Object.hasOwnProperty,ne=(pe,Oe)=>{const Ge=ee(pe);for(let dt=0,fn=Ge.length;dt<fn;dt++){const Mr=Ge[dt],sa=pe[Mr];Oe(sa,Mr)}},z=pe=>(Oe,Ge)=>{pe[Ge]=Oe},be=(pe,Oe,Ge,dt)=>{ne(pe,(fn,Mr)=>{(Oe(fn,Mr)?Ge:dt)(fn,Mr)})},ye=(pe,Oe)=>{const Ge={};return be(pe,Oe,z(Ge),O),Ge},Te=(pe,Oe)=>Y.call(pe,Oe),Ve=(pe,Oe)=>Te(pe,Oe)&&pe[Oe]!==void 0&&pe[Oe]!==null,Ue=(pe=>(...Oe)=>{if(Oe.length===0)throw new Error("Can't merge zero objects");const Ge={};for(let dt=0;dt<Oe.length;dt++){const fn=Oe[dt];for(const Mr in fn)Te(fn,Mr)&&(Ge[Mr]=pe(Ge[Mr],fn[Mr]))}return Ge})((pe,Oe)=>p(pe)&&p(Oe)?Ue(pe,Oe):Oe),Ee=pe=>pe.length>0,Me=(pe,Oe)=>{const dt=(Oe||document).createElement("div");if(dt.innerHTML=pe,!dt.hasChildNodes()||dt.childNodes.length>1){const fn="HTML does not have a single root node";throw console.error(fn,pe),new Error(fn)}return at(dt.childNodes[0])},Fe=(pe,Oe)=>{const dt=(Oe||document).createElement(pe);return at(dt)},Ye=(pe,Oe)=>{const dt=(Oe||document).createTextNode(pe);return at(dt)},at=pe=>{if(pe==null)throw new Error("Node cannot be null or undefined");return{dom:pe}},en={fromHtml:Me,fromTag:Fe,fromText:Ye,fromDom:at,fromPoint:(pe,Oe,Ge)=>I.from(pe.dom.elementFromPoint(Oe,Ge)).map(at)},le=(pe,Oe,Ge)=>{if(d(Ge)||_(Ge)||k(Ge))pe.setAttribute(Oe,Ge+"");else throw console.error("Invalid call to Attribute.set. Key ",Oe,":: Value ",Ge,":: Element ",pe),new Error("Attribute value was not simple")},Pt=(pe,Oe,Ge)=>{le(pe.dom,Oe,Ge)},Xt=(pe,Oe)=>{pe.dom.removeAttribute(Oe)};var kt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),ln=tinymce.util.Tools.resolve("tinymce.util.URI");const zn=pe=>Oe=>Oe.options.get(pe),it=pe=>{const Oe=pe.options.register;Oe("image_dimensions",{processor:"boolean",default:!0}),Oe("image_advtab",{processor:"boolean",default:!1}),Oe("image_uploadtab",{processor:"boolean",default:!0}),Oe("image_prepend_url",{processor:"string",default:""}),Oe("image_class_list",{processor:"object[]"}),Oe("image_description",{processor:"boolean",default:!0}),Oe("image_title",{processor:"boolean",default:!1}),Oe("image_caption",{processor:"boolean",default:!1}),Oe("image_list",{processor:Ge=>{const dt=Ge===!1||d(Ge)||R(Ge,h)||T(Ge);return dt?{value:Ge,valid:dt}:{valid:!1,message:"Must be false, a string, an array or a function."}},default:!1})},Et=zn("image_dimensions"),St=zn("image_advtab"),Qe=zn("image_uploadtab"),Ke=zn("image_prepend_url"),Je=zn("image_class_list"),ct=zn("image_description"),vn=zn("image_title"),Sn=zn("image_caption"),jn=zn("image_list"),rr=zn("a11y_advanced_options"),Dt=zn("automatic_uploads"),$t=pe=>Ee(pe.options.get("images_upload_url")),Cr=pe=>A(pe.options.get("images_upload_handler")),Kn=(pe,Oe)=>Math.max(parseInt(pe,10),parseInt(Oe,10)),ts=pe=>new Promise(Oe=>{const Ge=document.createElement("img"),dt=Mr=>{Ge.parentNode&&Ge.parentNode.removeChild(Ge),Oe(Mr)};Ge.addEventListener("load",()=>{const Mr=Kn(Ge.width,Ge.clientWidth),sa=Kn(Ge.height,Ge.clientHeight),Ka={width:Mr,height:sa};dt(Promise.resolve(Ka))}),Ge.addEventListener("error",()=>{dt(Promise.reject(`Failed to get image dimensions for: ${pe}`))});const fn=Ge.style;fn.visibility="hidden",fn.position="fixed",fn.bottom=fn.left="0px",fn.width=fn.height="auto",document.body.appendChild(Ge),Ge.src=pe}),Ns=pe=>(pe&&(pe=pe.replace(/px$/,"")),pe),Ea=pe=>(pe.length>0&&/^[0-9]+$/.test(pe)&&(pe+="px"),pe),qa=pe=>{if(pe.margin){const Oe=String(pe.margin).split(" ");switch(Oe.length){case 1:pe["margin-top"]=pe["margin-top"]||Oe[0],pe["margin-right"]=pe["margin-right"]||Oe[0],pe["margin-bottom"]=pe["margin-bottom"]||Oe[0],pe["margin-left"]=pe["margin-left"]||Oe[0];break;case 2:pe["margin-top"]=pe["margin-top"]||Oe[0],pe["margin-right"]=pe["margin-right"]||Oe[1],pe["margin-bottom"]=pe["margin-bottom"]||Oe[0],pe["margin-left"]=pe["margin-left"]||Oe[1];break;case 3:pe["margin-top"]=pe["margin-top"]||Oe[0],pe["margin-right"]=pe["margin-right"]||Oe[1],pe["margin-bottom"]=pe["margin-bottom"]||Oe[2],pe["margin-left"]=pe["margin-left"]||Oe[1];break;case 4:pe["margin-top"]=pe["margin-top"]||Oe[0],pe["margin-right"]=pe["margin-right"]||Oe[1],pe["margin-bottom"]=pe["margin-bottom"]||Oe[2],pe["margin-left"]=pe["margin-left"]||Oe[3]}delete pe.margin}return pe},Nl=(pe,Oe)=>{const Ge=jn(pe);d(Ge)?fetch(Ge).then(dt=>{dt.ok&&dt.json().then(Oe)}):T(Ge)?Ge(Oe):Oe(Ge)},gn=(pe,Oe,Ge)=>{const dt=()=>{Ge.onload=Ge.onerror=null,pe.selection&&(pe.selection.select(Ge),pe.nodeChanged())};Ge.onload=()=>{!Oe.width&&!Oe.height&&Et(pe)&&pe.dom.setAttribs(Ge,{width:String(Ge.clientWidth),height:String(Ge.clientHeight)}),dt()},Ge.onerror=dt},xr=pe=>new Promise((Oe,Ge)=>{const dt=new FileReader;dt.onload=()=>{Oe(dt.result)},dt.onerror=()=>{var fn;Ge((fn=dt.error)===null||fn===void 0?void 0:fn.message)},dt.readAsDataURL(pe)}),Xo=pe=>pe.nodeName==="IMG"&&(pe.hasAttribute("data-mce-object")||pe.hasAttribute("data-mce-placeholder")),za=(pe,Oe)=>{const Ge=pe.options.get;return ln.isDomSafe(Oe,"img",{allow_html_data_urls:Ge("allow_html_data_urls"),allow_script_urls:Ge("allow_script_urls"),allow_svg_data_urls:Ge("allow_svg_data_urls")})},un=kt.DOM,Bi=pe=>pe.style.marginLeft&&pe.style.marginRight&&pe.style.marginLeft===pe.style.marginRight?Ns(pe.style.marginLeft):"",ep=pe=>pe.style.marginTop&&pe.style.marginBottom&&pe.style.marginTop===pe.style.marginBottom?Ns(pe.style.marginTop):"",xo=pe=>pe.style.borderWidth?Ns(pe.style.borderWidth):"",ja=(pe,Oe)=>{var Ge;return pe.hasAttribute(Oe)&&(Ge=pe.getAttribute(Oe))!==null&&Ge!==void 0?Ge:""},Xl=pe=>pe.parentNode!==null&&pe.parentNode.nodeName==="FIGURE",Di=(pe,Oe,Ge)=>{Ge===""||Ge===null?pe.removeAttribute(Oe):pe.setAttribute(Oe,Ge)},tp=pe=>{const Oe=un.create("figure",{class:"image"});un.insertAfter(Oe,pe),Oe.appendChild(pe),Oe.appendChild(un.create("figcaption",{contentEditable:"true"},"Caption")),Oe.contentEditable="false"},od=pe=>{const Oe=pe.parentNode;A(Oe)&&(un.insertAfter(pe,Oe),un.remove(Oe))},ur=pe=>{Xl(pe)?od(pe):tp(pe)},cl=(pe,Oe)=>{const Ge=pe.getAttribute("style"),dt=Oe(Ge!==null?Ge:"");dt.length>0?(pe.setAttribute("style",dt),pe.setAttribute("data-mce-style",dt)):pe.removeAttribute("style")},Qd=(pe,Oe)=>(Ge,dt,fn)=>{const Mr=Ge.style;Mr[dt]?(Mr[dt]=Ea(fn),cl(Ge,Oe)):Di(Ge,dt,fn)},_o=(pe,Oe)=>pe.style[Oe]?Ns(pe.style[Oe]):ja(pe,Oe),Hn=(pe,Oe)=>{const Ge=Ea(Oe);pe.style.marginLeft=Ge,pe.style.marginRight=Ge},Io=(pe,Oe)=>{const Ge=Ea(Oe);pe.style.marginTop=Ge,pe.style.marginBottom=Ge},ul=(pe,Oe)=>{const Ge=Ea(Oe);pe.style.borderWidth=Ge},Kt=(pe,Oe)=>{pe.style.borderStyle=Oe},qs=pe=>{var Oe;return(Oe=pe.style.borderStyle)!==null&&Oe!==void 0?Oe:""},vr=pe=>A(pe)&&pe.nodeName==="FIGURE",mg=pe=>pe.nodeName==="IMG",fl=pe=>un.getAttrib(pe,"alt").length===0&&un.getAttrib(pe,"role")==="presentation",eh=pe=>fl(pe)?"":ja(pe,"alt"),Ya=()=>({src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}),H0=(pe,Oe)=>{var Ge;const dt=document.createElement("img");return Di(dt,"style",Oe.style),(Bi(dt)||Oe.hspace!=="")&&Hn(dt,Oe.hspace),(ep(dt)||Oe.vspace!=="")&&Io(dt,Oe.vspace),(xo(dt)||Oe.border!=="")&&ul(dt,Oe.border),(qs(dt)||Oe.borderStyle!=="")&&Kt(dt,Oe.borderStyle),pe((Ge=dt.getAttribute("style"))!==null&&Ge!==void 0?Ge:"")},dl=(pe,Oe)=>{const Ge=document.createElement("img");if(vg(pe,{...Oe,caption:!1},Ge),ki(Ge,Oe.alt,Oe.isDecorative),Oe.caption){const dt=un.create("figure",{class:"image"});return dt.appendChild(Ge),dt.appendChild(un.create("figcaption",{contentEditable:"true"},"Caption")),dt.contentEditable="false",dt}else return Ge},np=(pe,Oe)=>({src:ja(Oe,"src"),alt:eh(Oe),title:ja(Oe,"title"),width:_o(Oe,"width"),height:_o(Oe,"height"),class:ja(Oe,"class"),style:pe(ja(Oe,"style")),caption:Xl(Oe),hspace:Bi(Oe),vspace:ep(Oe),border:xo(Oe),borderStyle:qs(Oe),isDecorative:fl(Oe)}),xa=(pe,Oe,Ge,dt,fn)=>{Ge[dt]!==Oe[dt]&&fn(pe,dt,String(Ge[dt]))},ki=(pe,Oe,Ge)=>{if(Ge){un.setAttrib(pe,"role","presentation");const dt=en.fromDom(pe);Pt(dt,"alt","")}else{if(y(Oe)){const dt=en.fromDom(pe);Xt(dt,"alt")}else{const dt=en.fromDom(pe);Pt(dt,"alt",Oe)}un.getAttrib(pe,"role")==="presentation"&&un.setAttrib(pe,"role","")}},fo=(pe,Oe,Ge)=>{(Ge.alt!==Oe.alt||Ge.isDecorative!==Oe.isDecorative)&&ki(pe,Ge.alt,Ge.isDecorative)},mf=(pe,Oe)=>(Ge,dt,fn)=>{pe(Ge,fn),cl(Ge,Oe)},vg=(pe,Oe,Ge)=>{const dt=np(pe,Ge);xa(Ge,dt,Oe,"caption",(fn,Mr,sa)=>ur(fn)),xa(Ge,dt,Oe,"src",Di),xa(Ge,dt,Oe,"title",Di),xa(Ge,dt,Oe,"width",Qd("width",pe)),xa(Ge,dt,Oe,"height",Qd("height",pe)),xa(Ge,dt,Oe,"class",Di),xa(Ge,dt,Oe,"style",mf((fn,Mr)=>Di(fn,"style",Mr),pe)),xa(Ge,dt,Oe,"hspace",mf(Hn,pe)),xa(Ge,dt,Oe,"vspace",mf(Io,pe)),xa(Ge,dt,Oe,"border",mf(ul,pe)),xa(Ge,dt,Oe,"borderStyle",mf(Kt,pe)),fo(Ge,dt,Oe)},_a=(pe,Oe)=>{const Ge=pe.dom.styles.parse(Oe),dt=qa(Ge),fn=pe.dom.styles.parse(pe.dom.styles.serialize(dt));return pe.dom.styles.serialize(fn)},ad=pe=>{const Oe=pe.selection.getNode(),Ge=pe.dom.getParent(Oe,"figure.image");return Ge?pe.dom.select("img",Ge)[0]:Oe&&(Oe.nodeName!=="IMG"||Xo(Oe))?null:Oe},Lc=(pe,Oe)=>{var Ge;const dt=pe.dom,fn=ye(pe.schema.getTextBlockElements(),(sa,Ka)=>!pe.schema.isValidChild(Ka,"figure")),Mr=dt.getParent(Oe.parentNode,sa=>Ve(fn,sa.nodeName),pe.getBody());return Mr&&(Ge=dt.split(Mr,Oe))!==null&&Ge!==void 0?Ge:Oe},Qc=pe=>{const Oe=ad(pe);return Oe?np(Ge=>_a(pe,Ge),Oe):Ya()},yg=(pe,Oe)=>{const Ge=dl(fn=>_a(pe,fn),Oe);pe.dom.setAttrib(Ge,"data-mce-id","__mcenew"),pe.focus(),pe.selection.setContent(Ge.outerHTML);const dt=pe.dom.select('*[data-mce-id="__mcenew"]')[0];if(pe.dom.setAttrib(dt,"data-mce-id",null),vr(dt)){const fn=Lc(pe,dt);pe.selection.select(fn)}else pe.selection.select(dt)},ui=(pe,Oe)=>{pe.dom.setAttrib(Oe,"src",Oe.getAttribute("src"))},$m=(pe,Oe)=>{if(Oe){const Ge=pe.dom.is(Oe.parentNode,"figure.image")?Oe.parentNode:Oe;pe.dom.remove(Ge),pe.focus(),pe.nodeChanged(),pe.dom.isEmpty(pe.getBody())&&(pe.setContent(""),pe.selection.setCursorLocation())}},js=(pe,Oe)=>{const Ge=ad(pe);if(Ge)if(vg(dt=>_a(pe,dt),Oe,Ge),ui(pe,Ge),vr(Ge.parentNode)){pe.dom.setStyle(Ge,"float","");const dt=Ge.parentNode;Lc(pe,dt),pe.selection.select(Ge.parentNode)}else pe.selection.select(Ge),gn(pe,Oe,Ge)},rp=(pe,Oe)=>{const Ge=Oe.src;return{...Oe,src:za(pe,Ge)?Ge:""}},Um=(pe,Oe)=>{const Ge=ad(pe);if(Ge){const fn={...np(sa=>_a(pe,sa),Ge),...Oe},Mr=rp(pe,fn);fn.src?js(pe,Mr):$m(pe,Ge)}else Oe.src&&yg(pe,{...Ya(),...Oe})};var vf=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),Wm=tinymce.util.Tools.resolve("tinymce.util.Tools");const rn=pe=>d(pe.value)?pe.value:"",Nc=pe=>d(pe.text)?pe.text:d(pe.title)?pe.title:"",ns=(pe,Oe)=>{const Ge=[];return Wm.each(pe,dt=>{const fn=Nc(dt);if(dt.menu!==void 0){const Mr=ns(dt.menu,Oe);Ge.push({text:fn,items:Mr})}else{const Mr=Oe(dt);Ge.push({text:fn,value:Mr})}}),Ge},Kl=(pe=rn)=>Oe=>Oe?I.from(Oe).map(Ge=>ns(Ge,pe)):I.none(),id=pe=>Kl(rn)(pe),Pi=pe=>Te(pe,"items"),Ha=(pe,Oe)=>oe(pe,Ge=>Pi(Ge)?Ha(Ge.items,Oe):Ge.value===Oe?I.some(Ge):I.none()),hl={sanitizer:Kl,sanitize:id,findEntry:(pe,Oe)=>pe.bind(Ge=>Ha(Ge,Oe))},Gm={makeTab:pe=>({title:"Advanced",name:"advanced",items:[{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]})},yo=pe=>{const Oe=hl.sanitizer(ec=>pe.convertURL(ec.value||ec.url||"","src")),Ge=new Promise(ec=>{Nl(pe,ms=>{ec(Oe(ms).map(rh=>Z([[{text:"None",value:""}],rh])))})}),dt=hl.sanitize(Je(pe)),fn=St(pe),Mr=Qe(pe),sa=$t(pe),Ka=Cr(pe),mi=Qc(pe),gs=ct(pe),ml=vn(pe),Ks=Et(pe),Rl=Sn(pe),Ic=rr(pe),Jm=Dt(pe),W0=I.some(Ke(pe)).filter(ec=>d(ec)&&ec.length>0);return Ge.then(ec=>({image:mi,imageList:ec,classList:dt,hasAdvTab:fn,hasUploadTab:Mr,hasUploadUrl:sa,hasUploadHandler:Ka,hasDescription:gs,hasImageTitle:ml,hasDimensions:Ks,hasImageCaption:Rl,prependURL:W0,hasAccessibilityOptions:Ic,automaticUploads:Jm}))},Aa=pe=>{const Oe={name:"src",type:"urlinput",filetype:"image",label:"Source",picker_text:"Browse files"},Ge=pe.imageList.map(ml=>({name:"images",type:"listbox",label:"Image list",items:ml})),dt={name:"alt",type:"input",label:"Alternative description",enabled:!(pe.hasAccessibilityOptions&&pe.image.isDecorative)},fn={name:"title",type:"input",label:"Image title"},Mr={name:"dimensions",type:"sizeinput"},sa={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},Ka=pe.classList.map(ml=>({name:"classes",type:"listbox",label:"Class",items:ml})),mi={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},gs=ml=>ml?{type:"grid",columns:2}:{type:"panel"};return Z([[Oe],Ge.toArray(),pe.hasAccessibilityOptions&&pe.hasDescription?[sa]:[],pe.hasDescription?[dt]:[],pe.hasImageTitle?[fn]:[],pe.hasDimensions?[Mr]:[],[{...gs(pe.classList.isSome()&&pe.hasImageCaption),items:Z([Ka.toArray(),pe.hasImageCaption?[mi]:[]])}]])},rs={makeTab:pe=>({title:"General",name:"general",items:Aa(pe)}),makeItems:Aa},Ys={makeTab:pe=>({title:"Upload",name:"upload",items:[{type:"dropzone",name:"fileinput"}]})},th=pe=>({prevImage:hl.findEntry(pe.imageList,pe.image.src),prevAlt:pe.image.alt,open:!0}),Xa=pe=>({src:{value:pe.src,meta:{}},images:pe.src,alt:pe.alt,title:pe.title,dimensions:{width:pe.width,height:pe.height},classes:pe.class,caption:pe.caption,style:pe.style,vspace:pe.vspace,border:pe.border,hspace:pe.hspace,borderstyle:pe.borderStyle,fileinput:[],isDecorative:pe.isDecorative}),Xs=(pe,Oe)=>({src:pe.src.value,alt:(pe.alt===null||pe.alt.length===0)&&Oe?null:pe.alt,title:pe.title,width:pe.dimensions.width,height:pe.dimensions.height,class:pe.classes,style:pe.style,caption:pe.caption,hspace:pe.hspace,vspace:pe.vspace,border:pe.border,borderStyle:pe.borderstyle,isDecorative:pe.isDecorative}),na=(pe,Oe)=>/^(?:[a-zA-Z]+:)?\/\//.test(Oe)?I.none():pe.prependURL.bind(Ge=>Oe.substring(0,Ge.length)!==Ge?I.some(Ge+Oe):I.none()),Os=(pe,Oe)=>{const Ge=Oe.getData();na(pe,Ge.src.value).each(dt=>{Oe.setData({src:{value:dt,meta:Ge.src.meta}})})},sn=(pe,Oe,Ge)=>{pe.hasDescription&&d(Ge.alt)&&(Oe.alt=Ge.alt),pe.hasAccessibilityOptions&&(Oe.isDecorative=Ge.isDecorative||Oe.isDecorative||!1),pe.hasImageTitle&&d(Ge.title)&&(Oe.title=Ge.title),pe.hasDimensions&&(d(Ge.width)&&(Oe.dimensions.width=Ge.width),d(Ge.height)&&(Oe.dimensions.height=Ge.height)),d(Ge.class)&&hl.findEntry(pe.classList,Ge.class).each(dt=>{Oe.classes=dt.value}),pe.hasImageCaption&&_(Ge.caption)&&(Oe.caption=Ge.caption),pe.hasAdvTab&&(d(Ge.style)&&(Oe.style=Ge.style),d(Ge.vspace)&&(Oe.vspace=Ge.vspace),d(Ge.border)&&(Oe.border=Ge.border),d(Ge.hspace)&&(Oe.hspace=Ge.hspace),d(Ge.borderstyle)&&(Oe.borderstyle=Ge.borderstyle))},Zm=(pe,Oe)=>{const Ge=Oe.getData(),dt=Ge.src.meta;if(dt!==void 0){const fn=Ue({},Ge);sn(pe,fn,dt),Oe.setData(fn)}},ap=(pe,Oe,Ge,dt)=>{const fn=dt.getData(),Mr=fn.src.value,sa=fn.src.meta||{};!sa.width&&!sa.height&&Oe.hasDimensions&&(Ee(Mr)?pe.imageSize(Mr).then(Ka=>{Ge.open&&dt.setData({dimensions:Ka})}).catch(Ka=>console.error(Ka)):dt.setData({dimensions:{width:"",height:""}}))},qm=(pe,Oe,Ge)=>{const dt=Ge.getData(),fn=hl.findEntry(pe.imageList,dt.src.value);Oe.prevImage=fn,Ge.setData({images:fn.map(Mr=>Mr.value).getOr("")})},jm=(pe,Oe,Ge,dt)=>{Os(Oe,dt),Zm(Oe,dt),ap(pe,Oe,Ge,dt),qm(Oe,Ge,dt)},Oc=(pe,Oe,Ge,dt)=>{const fn=dt.getData(),Mr=hl.findEntry(Oe.imageList,fn.images);Mr.each(sa=>{fn.alt===""||Ge.prevImage.map(mi=>mi.text===fn.alt).getOr(!1)?sa.value===""?dt.setData({src:sa,alt:Ge.prevAlt}):dt.setData({src:sa,alt:sa.text}):dt.setData({src:sa})}),Ge.prevImage=Mr,jm(pe,Oe,Ge,dt)},bg=(pe,Oe,Ge,dt)=>{const fn=dt.getData();dt.block("Uploading image"),re(fn.fileinput).fold(()=>{dt.unblock()},Mr=>{const sa=URL.createObjectURL(Mr),Ka=()=>{dt.unblock(),URL.revokeObjectURL(sa)},mi=gs=>{dt.setData({src:{value:gs,meta:{}}}),dt.showTab("general"),jm(pe,Oe,Ge,dt),dt.focus("src")};xr(Mr).then(gs=>{const ml=pe.createBlobCache(Mr,sa,gs);Oe.automaticUploads?pe.uploadImage(ml).then(Ks=>{mi(Ks.url),Ka()}).catch(Ks=>{Ka(),pe.alertErr(Ks,()=>{dt.focus("fileinput")})}):(pe.addToBlobCache(ml),mi(ml.blobUri()),dt.unblock())})})},Iu=(pe,Oe,Ge)=>(dt,fn)=>{fn.name==="src"?jm(pe,Oe,Ge,dt):fn.name==="images"?Oc(pe,Oe,Ge,dt):fn.name==="alt"?Ge.prevAlt=dt.getData().alt:fn.name==="fileinput"?bg(pe,Oe,Ge,dt):fn.name==="isDecorative"&&dt.setEnabled("alt",!dt.getData().isDecorative)},Ym=pe=>()=>{pe.open=!1},xg=pe=>pe.hasAdvTab||pe.hasUploadUrl||pe.hasUploadHandler?{type:"tabpanel",tabs:Z([[rs.makeTab(pe)],pe.hasAdvTab?[Gm.makeTab(pe)]:[],pe.hasUploadTab&&(pe.hasUploadUrl||pe.hasUploadHandler)?[Ys.makeTab(pe)]:[]])}:{type:"panel",items:rs.makeItems(pe)},nh=(pe,Oe,Ge)=>dt=>{const fn=Ue(Xa(Oe.image),dt.getData()),Mr={...fn,style:H0(Ge.normalizeCss,Xs(fn,!1))};pe.execCommand("mceUpdateImage",!1,Xs(Mr,Oe.hasAccessibilityOptions)),pe.editorUpload.uploadImagesAuto(),dt.close()},pl=pe=>Oe=>za(pe,Oe)?ts(pe.documentBaseURI.toAbsolute(Oe)).then(Ge=>({width:String(Ge.width),height:String(Ge.height)})):Promise.resolve({width:"",height:""}),$0=pe=>(Oe,Ge,dt)=>{var fn;return pe.editorUpload.blobCache.create({blob:Oe,blobUri:Ge,name:(fn=Oe.name)===null||fn===void 0?void 0:fn.replace(/\.[^\.]+$/,""),filename:Oe.name,base64:dt.split(",")[1]})},Xm=pe=>Oe=>{pe.editorUpload.blobCache.add(Oe)},U0=pe=>(Oe,Ge)=>{pe.windowManager.alert(Oe,Ge)},_g=pe=>Oe=>_a(pe,Oe),Km=pe=>Oe=>pe.dom.parseStyle(Oe),Cg=pe=>(Oe,Ge)=>pe.dom.serializeStyle(Oe,Ge),sd=pe=>Oe=>vf(pe).upload([Oe],!1).then(Ge=>{var dt;return Ge.length===0?Promise.reject("Failed to upload image"):Ge[0].status===!1?Promise.reject((dt=Ge[0].error)===null||dt===void 0?void 0:dt.message):Ge[0]}),Jl=pe=>{const Oe={imageSize:pl(pe),addToBlobCache:Xm(pe),createBlobCache:$0(pe),alertErr:U0(pe),normalizeCss:_g(pe),parseStyle:Km(pe),serializeStyle:Cg(pe),uploadImage:sd(pe)};return{open:()=>{yo(pe).then(dt=>{const fn=th(dt);return{title:"Insert/Edit Image",size:"normal",body:xg(dt),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Xa(dt.image),onSubmit:nh(pe,dt,Oe),onChange:Iu(Oe,dt,fn),onClose:Ym(fn)}}).then(pe.windowManager.open)}}},Ql=pe=>{pe.addCommand("mceImage",Jl(pe).open),pe.addCommand("mceUpdateImage",(Oe,Ge)=>{pe.undoManager.transact(()=>Um(pe,Ge))})},Ol=pe=>{const Oe=pe.attr("class");return A(Oe)&&/\bimage\b/.test(Oe)},Sg=pe=>Oe=>{let Ge=Oe.length;const dt=fn=>{fn.attr("contenteditable",pe?"true":null)};for(;Ge--;){const fn=Oe[Ge];Ol(fn)&&(fn.attr("contenteditable",pe?"false":null),Wm.each(fn.getAll("figcaption"),dt))}},Rc=pe=>{pe.on("PreInit",()=>{pe.parser.addNodeFilter("figure",Sg(!0)),pe.serializer.addNodeFilter("figure",Sg(!1))})},gl=pe=>Oe=>{const Ge=()=>{Oe.setEnabled(pe.selection.isEditable())};return pe.on("NodeChange",Ge),Ge(),()=>{pe.off("NodeChange",Ge)}},Wo=pe=>{pe.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:Jl(pe).open,onSetup:Oe=>{Oe.setActive(A(ad(pe)));const Ge=pe.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image",Oe.setActive).unbind,dt=gl(pe)(Oe);return()=>{Ge(),dt()}}}),pe.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:Jl(pe).open,onSetup:gl(pe)}),pe.ui.registry.addContextMenu("image",{update:Oe=>pe.selection.isEditable()&&(vr(Oe)||mg(Oe)&&!Xo(Oe))?["image"]:[]})};var ps=()=>{n.add("image",pe=>{it(pe),Rc(pe),Wo(pe),Ql(pe)})};ps()}()),nce}var oce;function rke(){return oce||(oce=1,nke()),tce}rke();var ace={},ice={},sce;function oke(){return sce||(sce=1,function(){var n=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(K,ce,ve)=>{var ze;return ve(K,ce.prototype)?!0:((ze=K.constructor)===null||ze===void 0?void 0:ze.name)===ce.name},t=K=>{const ce=typeof K;return K===null?"null":ce==="object"&&Array.isArray(K)?"array":ce==="object"&&e(K,String,(ve,ze)=>ze.isPrototypeOf(ve))?"string":ce},r=K=>ce=>t(ce)===K,a=K=>ce=>typeof ce===K,i=r("string"),l=r("object"),c=r("array"),d=a("boolean"),h=K=>K==null,p=K=>!h(K),v=a("function"),y=a("number"),_=()=>{},w=(K,ce)=>ve=>K(ce(ve)),A=K=>()=>K,T=(K,ce)=>K===ce;function k(K,...ce){return(...ve)=>{const ze=ce.concat(ve);return K.apply(null,ze)}}const R=K=>ce=>!K(ce),O=A(!1);class I{constructor(ce,ve){this.tag=ce,this.value=ve}static some(ce){return new I(!0,ce)}static none(){return I.singletonNone}fold(ce,ve){return this.tag?ve(this.value):ce()}isSome(){return this.tag}isNone(){return!this.tag}map(ce){return this.tag?I.some(ce(this.value)):I.none()}bind(ce){return this.tag?ce(this.value):I.none()}exists(ce){return this.tag&&ce(this.value)}forall(ce){return!this.tag||ce(this.value)}filter(ce){return!this.tag||ce(this.value)?this:I.none()}getOr(ce){return this.tag?this.value:ce}or(ce){return this.tag?this:ce}getOrThunk(ce){return this.tag?this.value:ce()}orThunk(ce){return this.tag?this:ce()}getOrDie(ce){if(this.tag)return this.value;throw new Error(ce??"Called getOrDie on None")}static from(ce){return p(ce)?I.some(ce):I.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(ce){this.tag&&ce(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}I.singletonNone=new I(!1);const G=Array.prototype.slice,Z=Array.prototype.indexOf,q=Array.prototype.push,re=(K,ce)=>Z.call(K,ce),oe=(K,ce)=>re(K,ce)>-1,ee=(K,ce)=>{for(let ve=0,ze=K.length;ve<ze;ve++){const Xe=K[ve];if(ce(Xe,ve))return!0}return!1},Y=(K,ce)=>{const ve=K.length,ze=new Array(ve);for(let Xe=0;Xe<ve;Xe++){const Bt=K[Xe];ze[Xe]=ce(Bt,Xe)}return ze},ne=(K,ce)=>{for(let ve=0,ze=K.length;ve<ze;ve++){const Xe=K[ve];ce(Xe,ve)}},z=(K,ce)=>{const ve=[];for(let ze=0,Xe=K.length;ze<Xe;ze++){const Bt=K[ze];ce(Bt,ze)&&ve.push(Bt)}return ve},be=(K,ce)=>{if(K.length===0)return[];{let ve=ce(K[0]);const ze=[];let Xe=[];for(let Bt=0,Dn=K.length;Bt<Dn;Bt++){const Jn=K[Bt],lr=ce(Jn);lr!==ve&&(ze.push(Xe),Xe=[]),ve=lr,Xe.push(Jn)}return Xe.length!==0&&ze.push(Xe),ze}},ye=(K,ce,ve)=>(ne(K,(ze,Xe)=>{ve=ce(ve,ze,Xe)}),ve),Te=(K,ce,ve)=>{for(let ze=0,Xe=K.length;ze<Xe;ze++){const Bt=K[ze];if(ce(Bt,ze))return I.some(Bt);if(ve(Bt,ze))break}return I.none()},Ve=(K,ce)=>Te(K,ce,O),Ce=K=>{const ce=[];for(let ve=0,ze=K.length;ve<ze;++ve){if(!c(K[ve]))throw new Error("Arr.flatten item "+ve+" was not an array, input: "+K);q.apply(ce,K[ve])}return ce},We=(K,ce)=>Ce(Y(K,ce)),Ue=K=>{const ce=G.call(K,0);return ce.reverse(),ce},Ee=(K,ce)=>ce>=0&&ce<K.length?I.some(K[ce]):I.none(),Me=K=>Ee(K,0),Fe=K=>Ee(K,K.length-1),Ye=(K,ce)=>{const ve=[],ze=v(ce)?Xe=>ee(ve,Bt=>ce(Bt,Xe)):Xe=>oe(ve,Xe);for(let Xe=0,Bt=K.length;Xe<Bt;Xe++){const Dn=K[Xe];ze(Dn)||ve.push(Dn)}return ve},at=Object.keys,Nt=(K,ce)=>{const ve=at(K);for(let ze=0,Xe=ve.length;ze<Xe;ze++){const Bt=ve[ze],Dn=K[Bt];ce(Dn,Bt)}},en=K=>(ce,ve)=>{K[ve]=ce},le=(K,ce,ve,ze)=>{Nt(K,(Xe,Bt)=>{(ce(Xe,Bt)?ve:ze)(Xe,Bt)})},Pt=(K,ce)=>{const ve={};return le(K,ce,en(ve),_),ve},Xt=K=>{let ce=K;return{get:()=>ce,set:Xe=>{ce=Xe}}},kt=typeof window<"u"?window:Function("return this;")(),ln=(K,ce,ve=T)=>K.exists(ze=>ve(ze,ce)),zn=(K,ce,ve=T)=>it(K,ce,ve).getOr(K.isNone()&&ce.isNone()),it=(K,ce,ve)=>K.isSome()&&ce.isSome()?I.some(ve(K.getOrDie(),ce.getOrDie())):I.none(),Et=(K,ce)=>{let ve=ce??kt;for(let ze=0;ze<K.length&&ve!==void 0&&ve!==null;++ze)ve=ve[K[ze]];return ve},St=(K,ce)=>{const ve=K.split(".");return Et(ve,ce)},Ke=(K=>ce=>ce.replace(K,""))(/^\s+|\s+$/g),Je=K=>K.length>0,ct=K=>!Je(K),vn="\uFEFF",Sn=K=>K===vn,jn=(K,ce)=>{const ze=(ce||document).createElement("div");if(ze.innerHTML=K,!ze.hasChildNodes()||ze.childNodes.length>1){const Xe="HTML does not have a single root node";throw console.error(Xe,K),new Error(Xe)}return $t(ze.childNodes[0])},rr=(K,ce)=>{const ze=(ce||document).createElement(K);return $t(ze)},Dt=(K,ce)=>{const ze=(ce||document).createTextNode(K);return $t(ze)},$t=K=>{if(K==null)throw new Error("Node cannot be null or undefined");return{dom:K}},Kn={fromHtml:jn,fromTag:rr,fromText:Dt,fromDom:$t,fromPoint:(K,ce,ve)=>I.from(K.dom.elementFromPoint(ce,ve)).map($t)},ts=8,Ns=11,Ea=1,qa=3,Nl=(K,ce)=>{const ve=K.dom;if(ve.nodeType!==Ea)return!1;{const ze=ve;if(ze.matches!==void 0)return ze.matches(ce);if(ze.msMatchesSelector!==void 0)return ze.msMatchesSelector(ce);if(ze.webkitMatchesSelector!==void 0)return ze.webkitMatchesSelector(ce);if(ze.mozMatchesSelector!==void 0)return ze.mozMatchesSelector(ce);throw new Error("Browser lacks native selectors")}},gn=(K,ce)=>K.dom===ce.dom,xr=(K,ce)=>{const ve=K.dom,ze=ce.dom;return ve===ze?!1:ve.contains(ze)},Xo=Nl,za=(K,ce)=>St(K,ce),un=(K,ce)=>{const ve=za(K,ce);if(ve==null)throw new Error(K+" not available on this browser");return ve},Bi=Object.getPrototypeOf,ep=K=>un("HTMLElement",K),xo=K=>{const ce=St("ownerDocument.defaultView",K);return l(K)&&(ep(ce).prototype.isPrototypeOf(K)||/^HTML\w*Element$/.test(Bi(K).constructor.name))},ja=K=>K.dom.nodeName.toLowerCase(),Xl=K=>K.dom.nodeType,Di=K=>ce=>Xl(ce)===K,tp=K=>Xl(K)===ts||ja(K)==="#comment",od=K=>ur(K)&&xo(K.dom),ur=Di(Ea),cl=Di(qa),Qd=Di(Ns),_o=K=>ce=>ur(ce)&&ja(ce)===K,Hn=K=>I.from(K.dom.parentNode).map(Kn.fromDom),Io=K=>I.from(K.dom.parentElement).map(Kn.fromDom),ul=K=>I.from(K.dom.nextSibling).map(Kn.fromDom),Kt=K=>Y(K.dom.childNodes,Kn.fromDom),qs=(K,ce)=>{const ve=K.dom.childNodes;return I.from(ve[ce]).map(Kn.fromDom)},vr=K=>qs(K,0),mg=K=>qs(K,K.dom.childNodes.length-1),fl=K=>Qd(K)&&p(K.dom.host),eh=K=>Kn.fromDom(K.dom.getRootNode()),Ya=K=>{const ce=eh(K);return fl(ce)?I.some(ce):I.none()},H0=K=>Kn.fromDom(K.dom.host),dl=(K,ce)=>{Hn(K).each(ze=>{ze.dom.insertBefore(ce.dom,K.dom)})},np=(K,ce)=>{ul(K).fold(()=>{Hn(K).each(Xe=>{ki(Xe,ce)})},ze=>{dl(ze,ce)})},xa=(K,ce)=>{vr(K).fold(()=>{ki(K,ce)},ze=>{K.dom.insertBefore(ce.dom,ze.dom)})},ki=(K,ce)=>{K.dom.appendChild(ce.dom)},fo=(K,ce)=>{ne(ce,ve=>{dl(K,ve)})},mf=(K,ce)=>{ne(ce,ve=>{ki(K,ve)})},vg=(K,ce,ve)=>{if(i(ve)||d(ve)||y(ve))K.setAttribute(ce,ve+"");else throw console.error("Invalid call to Attribute.set. Key ",ce,":: Value ",ve,":: Element ",K),new Error("Attribute value was not simple")},_a=(K,ce)=>{const ve=K.dom;Nt(ce,(ze,Xe)=>{vg(ve,Xe,ze)})},ad=K=>ye(K.dom.attributes,(ce,ve)=>(ce[ve.name]=ve.value,ce),{}),Lc=K=>{K.dom.textContent="",ne(Kt(K),ce=>{Qc(ce)})},Qc=K=>{const ce=K.dom;ce.parentNode!==null&&ce.parentNode.removeChild(ce)},yg=(K,ce)=>Kn.fromDom(K.dom.cloneNode(ce)),ui=K=>yg(K,!0),$m=(K,ce)=>{const ve=Kn.fromTag(ce),ze=ad(K);return _a(ve,ze),ve},js=(K,ce)=>{const ve=$m(K,ce);np(K,ve);const ze=Kt(K);return mf(ve,ze),Qc(K),ve},rp=K=>Y(K,Kn.fromDom),Um=K=>K.style!==void 0&&v(K.style.getPropertyValue),vf=K=>{const ce=cl(K)?K.dom.parentNode:K.dom;if(ce==null||ce.ownerDocument===null)return!1;const ve=ce.ownerDocument;return Ya(Kn.fromDom(ce)).fold(()=>ve.body.contains(ce),w(vf,H0))},Wm=(K,ce,ve)=>{if(!i(ve))throw console.error("Invalid call to CSS.set. Property ",ce,":: Value ",ve,":: Element ",K),new Error("CSS value must be a string: "+ve);Um(K)&&K.style.setProperty(ce,ve)},rn=(K,ce,ve)=>{const ze=K.dom;Wm(ze,ce,ve)},Nc=(K,ce)=>{const ze=document.createDocumentFragment();return ne(K,Xe=>{ze.appendChild(Xe.dom)}),Kn.fromDom(ze)};var ns=(K,ce,ve,ze,Xe)=>K(ve,ze)?I.some(ve):v(Xe)&&Xe(ve)?I.none():ce(ve,ze,Xe);const Kl=(K,ce,ve)=>{let ze=K.dom;const Xe=v(ve)?ve:O;for(;ze.parentNode;){ze=ze.parentNode;const Bt=Kn.fromDom(ze);if(ce(Bt))return I.some(Bt);if(Xe(Bt))break}return I.none()},id=(K,ce,ve)=>ns((Xe,Bt)=>Bt(Xe),Kl,K,ce,ve),Pi=(K,ce,ve)=>Kl(K,ze=>Nl(ze,ce),ve),Ha=(K,ce,ve)=>ns((Xe,Bt)=>Nl(Xe,Bt),Pi,K,ce,ve),op=K=>Ha(K,"[contenteditable]"),hl=(K,ce=!1)=>vf(K)?K.dom.isContentEditable:op(K).fold(A(ce),ve=>eu(ve)==="true"),eu=K=>K.dom.contentEditable,Gm=(K,ce,ve)=>Kl(K,ce,ve).isSome(),yo=(K,ce)=>Gm(K,k(gn,ce));var Aa=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Fi=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),rs=tinymce.util.Tools.resolve("tinymce.util.VK"),pa=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Ys=tinymce.util.Tools.resolve("tinymce.util.Tools");const th=K=>ce=>p(ce)&&ce.nodeName.toLowerCase()===K,Xa=K=>ce=>p(ce)&&K.test(ce.nodeName),Xs=K=>p(K)&&K.nodeType===3,na=K=>p(K)&&K.nodeType===1,Os=Xa(/^(OL|UL|DL)$/),sn=Xa(/^(OL|UL)$/),Zm=th("ol"),ap=Xa(/^(LI|DT|DD)$/),qm=Xa(/^(DT|DD)$/),jm=Xa(/^(TH|TD)$/),Oc=th("br"),bg=K=>{var ce;return((ce=K.parentNode)===null||ce===void 0?void 0:ce.firstChild)===K},Iu=(K,ce)=>p(ce)&&ce.nodeName in K.schema.getTextBlockElements(),Ym=(K,ce)=>p(K)&&K.nodeName in ce,xg=(K,ce)=>p(ce)&&ce.nodeName in K.schema.getVoidElements(),nh=(K,ce)=>Oc(ce)?K.isBlock(ce.nextSibling)&&!Oc(ce.previousSibling):!1,pl=(K,ce,ve)=>{const ze=K.isEmpty(ce);return ve&&K.select("span[data-mce-type=bookmark]",ce).length>0?!1:ze},$0=(K,ce)=>K.isChildOf(ce,K.getRoot()),Xm=K=>ce=>ce.options.get(K),U0=K=>{const ce=K.options.register;ce("lists_indent_on_tab",{processor:"boolean",default:!0})},_g=Xm("lists_indent_on_tab"),Km=Xm("forced_root_block"),Cg=Xm("forced_root_block_attrs"),sd=(K,ce,ve={})=>{const ze=K.dom,Xe=K.schema.getBlockElements(),Bt=ze.createFragment(),Dn=Km(K),Jn=Cg(K);let lr,Pn,So=!1;for(Pn=ze.create(Dn,{...Jn,...ve.style?{style:ve.style}:{}}),Ym(ce.firstChild,Xe)||Bt.appendChild(Pn);lr=ce.firstChild;){const Ia=lr.nodeName;!So&&(Ia!=="SPAN"||lr.getAttribute("data-mce-type")!=="bookmark")&&(So=!0),Ym(lr,Xe)?(Bt.appendChild(lr),Pn=null):(Pn||(Pn=ze.create(Dn,Jn),Bt.appendChild(Pn)),Pn.appendChild(lr))}return!So&&Pn&&Pn.appendChild(ze.create("br",{"data-mce-bogus":"1"})),Bt},Jl=pa.DOM,Ql=(K,ce,ve)=>{const ze=Pn=>{const So=Pn.parentNode;So&&Ys.each(Xe,Ia=>{So.insertBefore(Ia,ve.parentNode)}),Jl.remove(Pn)},Xe=Jl.select('span[data-mce-type="bookmark"]',ce),Bt=sd(K,ve),Dn=Jl.createRng();Dn.setStartAfter(ve),Dn.setEndAfter(ce);const Jn=Dn.extractContents();for(let Pn=Jn.firstChild;Pn;Pn=Pn.firstChild)if(Pn.nodeName==="LI"&&K.dom.isEmpty(Pn)){Jl.remove(Pn);break}K.dom.isEmpty(Jn)||Jl.insertAfter(Jn,ce),Jl.insertAfter(Bt,ce);const lr=ve.parentElement;lr&&pl(K.dom,lr)&&ze(lr),Jl.remove(ve),pl(K.dom,ce)&&Jl.remove(ce)},Ol=_o("dd"),Sg=_o("dt"),Rc=(K,ce)=>{Ol(ce)?js(ce,"dt"):Sg(ce)&&Io(ce).each(ve=>Ql(K,ve.dom,ce.dom))},gl=K=>{Sg(K)&&js(K,"dd")},Wo=(K,ce,ve)=>{ce==="Indent"?ne(ve,gl):ne(ve,ze=>Rc(K,ze))},ps=(K,ce)=>{if(Xs(K))return{container:K,offset:ce};const ve=Aa.getNode(K,ce);return Xs(ve)?{container:ve,offset:ce>=K.childNodes.length?ve.data.length:0}:ve.previousSibling&&Xs(ve.previousSibling)?{container:ve.previousSibling,offset:ve.previousSibling.data.length}:ve.nextSibling&&Xs(ve.nextSibling)?{container:ve.nextSibling,offset:0}:{container:K,offset:ce}},pe=K=>{const ce=K.cloneRange(),ve=ps(K.startContainer,K.startOffset);ce.setStart(ve.container,ve.offset);const ze=ps(K.endContainer,K.endOffset);return ce.setEnd(ze.container,ze.offset),ce},Oe=["OL","UL","DL"],Ge=Oe.join(","),dt=(K,ce)=>{const ve=ce||K.selection.getStart(!0);return K.dom.getParent(ve,Ge,Rl(K,ve))},fn=(K,ce)=>p(K)&&ce.length===1&&ce[0]===K,Mr=K=>z(K.querySelectorAll(Ge),Os),sa=K=>{const ce=dt(K),ve=K.selection.getSelectedBlocks();return fn(ce,ve)?Mr(ce):z(ve,ze=>Os(ze)&&ce!==ze)},Ka=(K,ce)=>{const ve=Ys.map(ce,ze=>{const Xe=K.dom.getParent(ze,"li,dd,dt",Rl(K,ze));return Xe||ze});return Ye(ve)},mi=K=>{const ce=K.selection.getSelectedBlocks();return z(Ka(K,ce),ap)},gs=K=>z(mi(K),qm),ml=(K,ce)=>{const ve=K.dom.getParents(ce,"TD,TH");return ve.length>0?ve[0]:K.getBody()},Ks=(K,ce)=>!Os(ce)&&!ap(ce)&&ee(Oe,ve=>K.isValidChild(ce.nodeName,ve)),Rl=(K,ce)=>{const ve=K.dom.getParents(ce,K.dom.isBlock),ze=Bt=>Bt.nodeName.toLowerCase()!==Km(K);return Ve(ve,Bt=>ze(Bt)&&Ks(K.schema,Bt)).getOr(K.getBody())},Ic=K=>Hn(K).exists(ce=>ap(ce.dom)&&vr(ce).exists(ve=>!Os(ve.dom))&&mg(ce).exists(ve=>!Os(ve.dom))),Jm=(K,ce)=>{const ve=K.dom.getParents(ce,"ol,ul",Rl(K,ce));return Fe(ve)},W0=K=>{const ce=Jm(K,K.selection.getStart()),ve=z(K.selection.getSelectedBlocks(),sn);return ce.toArray().concat(ve)},ec=K=>{const ce=K.selection.getStart();return K.dom.getParents(ce,"ol,ul",Rl(K,ce))},ms=K=>{const ce=W0(K),ve=ec(K);return Ve(ve,ze=>Ic(Kn.fromDom(ze))).fold(()=>rh(K,ce),ze=>[ze])},rh=(K,ce)=>{const ve=Y(ce,ze=>Jm(K,ze).getOr(ze));return Ye(ve)},oh=K=>/\btox\-/.test(K.className),G0=(K,ce)=>Te(K,Os,jm).exists(ve=>ve.nodeName===ce&&!oh(ve)),L_=(K,ce)=>ce!==null&&!K.dom.isEditable(ce),N_=K=>{const ce=dt(K);return L_(K,ce)||!K.selection.isEditable()},wg=(K,ce)=>{const ve=K.dom.getParent(ce,"ol,ul,dl");return L_(K,ve)||!K.selection.isEditable()},Z0=(K,ce)=>{const ve=K.selection.getNode();return ce({parents:K.dom.getParents(ve),element:ve}),K.on("NodeChange",ce),()=>K.off("NodeChange",ce)},Go=(K,ce,ve)=>K.dispatch("ListMutation",{action:ce,element:ve}),ip=K=>Xo(K,"OL,UL"),O_=K=>Xo(K,"LI"),q0=K=>vr(K).exists(ip),os=K=>mg(K).exists(ip),yf=K=>"listAttributes"in K,sp=K=>"isComment"in K,tu=K=>"isFragment"in K,Ta=K=>K.depth>0,tc=K=>K.isSelected,ah=K=>{const ce=Kt(K),ve=os(K)?ce.slice(0,-1):ce;return Y(ve,ui)},R_=(K,ce,ve)=>Hn(K).filter(ur).map(ze=>({depth:ce,dirty:!1,isSelected:ve,content:ah(K),itemAttributes:ad(K),listAttributes:ad(ze),listType:ja(ze),isInPreviousLi:!1})),_r=(K,ce)=>{ki(K.item,ce.list)},I_=K=>{for(let ce=1;ce<K.length;ce++)_r(K[ce-1],K[ce])},jy=(K,ce)=>{it(Fe(K),Me(ce),_r)},Zn=(K,ce)=>{const ve={list:Kn.fromTag(ce,K),item:Kn.fromTag("li",K)};return ki(ve.list,ve.item),ve},Yy=(K,ce,ve)=>{const ze=[];for(let Xe=0;Xe<ve;Xe++)ze.push(Zn(K,yf(ce)?ce.listType:ce.parentListType));return ze},Vi=(K,ce)=>{for(let ve=0;ve<K.length-1;ve++)rn(K[ve].item,"list-style-type","none");Fe(K).each(ve=>{yf(ce)&&(_a(ve.list,ce.listAttributes),_a(ve.item,ce.itemAttributes)),mf(ve.item,ce.content)})},as=(K,ce)=>{ja(K.list)!==ce.listType&&(K.list=js(K.list,ce.listType)),_a(K.list,ce.listAttributes)},Xy=(K,ce,ve)=>{const ze=Kn.fromTag("li",K);return _a(ze,ce),mf(ze,ve),ze},Oa=(K,ce)=>{ki(K.list,ce),K.item=ce},Ky=(K,ce,ve)=>{const ze=ce.slice(0,ve.depth);return Fe(ze).each(Xe=>{if(yf(ve)){const Bt=Xy(K,ve.itemAttributes,ve.content);Oa(Xe,Bt),as(Xe,ve)}else if(tu(ve))mf(Xe.item,ve.content);else{const Bt=Kn.fromHtml(`<!--${ve.content}-->`);ki(Xe.list,Bt)}}),ze},Zo=(K,ce,ve)=>{const ze=Yy(K,ve,ve.depth-ce.length);return I_(ze),Vi(ze,ve),jy(ce,ze),ce.concat(ze)},qt=(K,ce)=>{let ve=I.none();const ze=ye(ce,(Xe,Bt,Dn)=>sp(Bt)?Dn===0?(ve=I.some(Bt),Xe):Ky(K,Xe,Bt):Bt.depth>Xe.length?Zo(K,Xe,Bt):Ky(K,Xe,Bt),[]);return ve.each(Xe=>{const Bt=Kn.fromHtml(`<!--${Xe.content}-->`);Me(ze).each(Dn=>{xa(Dn.list,Bt)})}),Me(ze).map(Xe=>Xe.list)},Eg=(K,ce)=>{switch(K){case"Indent":ce.depth++;break;case"Outdent":ce.depth--;break;case"Flatten":ce.depth=0}ce.dirty=!0},Ag=(K,ce)=>{yf(K)&&yf(ce)&&(K.listType=ce.listType,K.listAttributes={...ce.listAttributes})},Jy=K=>{K.listAttributes=Pt(K.listAttributes,(ce,ve)=>ve!=="start")},Rs=(K,ce)=>{const ve=K[ce].depth,ze=Bt=>Bt.depth===ve&&!Bt.dirty,Xe=Bt=>Bt.depth<ve;return Te(Ue(K.slice(0,ce)),ze,Xe).orThunk(()=>Te(K.slice(ce+1),ze,Xe))},vs=K=>(ne(K,(ce,ve)=>{Rs(K,ve).fold(()=>{ce.dirty&&yf(ce)&&Jy(ce)},ze=>Ag(ce,ze))}),K),$e=(K,ce,ve,ze)=>{var Xe;if(tp(ze))return[{depth:K+1,content:(Xe=ze.dom.nodeValue)!==null&&Xe!==void 0?Xe:"",dirty:!1,isSelected:!1,isComment:!0}];ce.each(Jn=>{gn(Jn.start,ze)&&ve.set(!0)});const Bt=R_(ze,K,ve.get());ce.each(Jn=>{gn(Jn.end,ze)&&ve.set(!1)});const Dn=mg(ze).filter(ip).map(Jn=>ys(K,ce,ve,Jn)).getOr([]);return Bt.toArray().concat(Dn)},zw=(K,ce,ve,ze)=>vr(ze).filter(ip).fold(()=>$e(K,ce,ve,ze),Xe=>{const Bt=ye(Kt(ze),(Dn,Jn,lr)=>{if(lr===0)return Dn;if(O_(Jn))return Dn.concat($e(K,ce,ve,Jn));{const Pn={isFragment:!0,depth:K,content:[Jn],isSelected:!1,dirty:!1,parentListType:ja(Xe)};return Dn.concat(Pn)}},[]);return ys(K,ce,ve,Xe).concat(Bt)}),ys=(K,ce,ve,ze)=>We(Kt(ze),Xe=>{const Bt=ip(Xe)?ys:zw,Dn=K+1;return Bt(Dn,ce,ve,Xe)}),Tg=(K,ce)=>{const ve=Xt(!1),ze=0;return Y(K,Xe=>({sourceList:Xe,entries:ys(ze,ce,ve,Xe)}))},qn=(K,ce)=>{const ve=vs(ce);return Y(ve,ze=>{const Xe=sp(ze)?Nc([Kn.fromHtml(`<!--${ze.content}-->`)]):Nc(ze.content),Bt=yf(ze)?ze.itemAttributes:{};return Kn.fromDom(sd(K,Xe.dom,Bt))})},Bu=(K,ce)=>{const ve=vs(ce);return qt(K.contentDocument,ve).toArray()},Qm=(K,ce)=>We(be(ce,Ta),ve=>Me(ve).exists(Ta)?Bu(K,ve):qn(K,ve)),fi=(K,ce)=>{ne(z(K,tc),ve=>Eg(ce,ve))},Qy=K=>{const ce=Y(mi(K),Kn.fromDom);return it(Ve(ce,R(q0)),Ve(Ue(ce),R(q0)),(ve,ze)=>({start:ve,end:ze}))},zi=(K,ce,ve)=>{const ze=Tg(ce,Qy(K));ne(ze,Xe=>{fi(Xe.entries,ve);const Bt=Qm(K,Xe.entries);ne(Bt,Dn=>{Go(K,ve==="Indent"?"IndentList":"OutdentList",Dn.dom)}),fo(Xe.sourceList,Bt),Qc(Xe.sourceList)})},Dg=(K,ce)=>{const ve=rp(ms(K)),ze=rp(gs(K));let Xe=!1;if(ve.length||ze.length){const Bt=K.selection.getBookmark();zi(K,ve,ce),Wo(K,ce,ze),K.selection.moveToBookmark(Bt),K.selection.setRng(pe(K.selection.getRng())),K.nodeChanged(),Xe=!0}return Xe},ih=(K,ce)=>!N_(K)&&Dg(K,ce),pr=K=>ih(K,"Indent"),nc=K=>ih(K,"Outdent"),lp=K=>ih(K,"Flatten");var Bc=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager");const Da=pa.DOM,rc=K=>{const ce={},ve=ze=>{let Xe=K[ze?"startContainer":"endContainer"],Bt=K[ze?"startOffset":"endOffset"];if(na(Xe)){const Dn=Da.create("span",{"data-mce-type":"bookmark"});Xe.hasChildNodes()?(Bt=Math.min(Bt,Xe.childNodes.length-1),ze?Xe.insertBefore(Dn,Xe.childNodes[Bt]):Da.insertAfter(Dn,Xe.childNodes[Bt])):Xe.appendChild(Dn),Xe=Dn,Bt=0}ce[ze?"startContainer":"endContainer"]=Xe,ce[ze?"startOffset":"endOffset"]=Bt};return ve(!0),K.collapsed||ve(),ce},sh=K=>{const ce=ze=>{const Xe=Jn=>{var lr;let Pn=(lr=Jn.parentNode)===null||lr===void 0?void 0:lr.firstChild,So=0;for(;Pn;){if(Pn===Jn)return So;(!na(Pn)||Pn.getAttribute("data-mce-type")!=="bookmark")&&So++,Pn=Pn.nextSibling}return-1};let Bt=K[ze?"startContainer":"endContainer"],Dn=K[ze?"startOffset":"endOffset"];if(Bt){if(na(Bt)&&Bt.parentNode){const Jn=Bt;Dn=Xe(Bt),Bt=Bt.parentNode,Da.remove(Jn),!Bt.hasChildNodes()&&Da.isBlock(Bt)&&Bt.appendChild(Da.create("br"))}K[ze?"startContainer":"endContainer"]=Bt,K[ze?"startOffset":"endOffset"]=Dn}};ce(!0),ce();const ve=Da.createRng();return ve.setStart(K.startContainer,K.startOffset),K.endContainer&&ve.setEnd(K.endContainer,K.endOffset),pe(ve)},zr=K=>{switch(K){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},Pu=(K,ce,ve)=>{const ze=ve["list-style-type"]?ve["list-style-type"]:null;K.setStyle(ce,"list-style-type",ze)},Js=(K,ce)=>{Ys.each(ce,(ve,ze)=>{K.setAttribute(ze,ve)})},Pr=(K,ce,ve)=>{Js(ce,ve["list-attributes"]),Ys.each(K.select("li",ce),ze=>{Js(ze,ve["list-item-attributes"])})},cp=(K,ce,ve)=>{Pu(K,ce,ve),Pr(K,ce,ve)},ev=(K,ce,ve)=>{Ys.each(ve,ze=>K.setStyle(ce,ze,""))},Ko=(K,ce)=>p(ce)&&!Ym(ce,K.schema.getBlockElements()),bf=(K,ce,ve,ze)=>{let Xe=ce[ve?"startContainer":"endContainer"];const Bt=ce[ve?"startOffset":"endOffset"];na(Xe)&&(Xe=Xe.childNodes[Math.min(Bt,Xe.childNodes.length-1)]||Xe),!ve&&Oc(Xe.nextSibling)&&(Xe=Xe.nextSibling);const Dn=lr=>{for(;!K.dom.isBlock(lr)&&lr.parentNode&&ze!==lr;)lr=lr.parentNode;return lr},Jn=(lr,Pn)=>{var So;const Ia=new Fi(lr,Dn(lr)),Pl=Pn?"next":"prev";let la;for(;la=Ia[Pl]();)if(!(xg(K,la)||Sn(la.textContent)||((So=la.textContent)===null||So===void 0?void 0:So.length)===0))return I.some(la);return I.none()};if(ve&&Xs(Xe))if(Sn(Xe.textContent))Xe=Jn(Xe,!1).getOr(Xe);else for(Xe.parentNode!==null&&Ko(K,Xe.parentNode)&&(Xe=Xe.parentNode);Xe.previousSibling!==null&&(Ko(K,Xe.previousSibling)||Xs(Xe.previousSibling));)Xe=Xe.previousSibling;if(!ve&&Xs(Xe))if(Sn(Xe.textContent))Xe=Jn(Xe,!0).getOr(Xe);else for(Xe.parentNode!==null&&Ko(K,Xe.parentNode)&&(Xe=Xe.parentNode);Xe.nextSibling!==null&&(Ko(K,Xe.nextSibling)||Xs(Xe.nextSibling));)Xe=Xe.nextSibling;for(;Xe.parentNode!==ze;){const lr=Xe.parentNode;if(Iu(K,Xe)||/^(TD|TH)$/.test(lr.nodeName))return Xe;Xe=lr}return Xe},Ja=(K,ce,ve)=>{const ze=[],Xe=K.dom,Bt=bf(K,ce,!0,ve),Dn=bf(K,ce,!1,ve);let Jn;const lr=[];for(let Pn=Bt;Pn&&(lr.push(Pn),Pn!==Dn);Pn=Pn.nextSibling);return Ys.each(lr,Pn=>{var So;if(Iu(K,Pn)){ze.push(Pn),Jn=null;return}if(Xe.isBlock(Pn)||Oc(Pn)){Oc(Pn)&&Xe.remove(Pn),Jn=null;return}const Ia=Pn.nextSibling;if(Bc.isBookmarkNode(Pn)&&(Os(Ia)||Iu(K,Ia)||!Ia&&Pn.parentNode===ve)){Jn=null;return}Jn||(Jn=Xe.create("p"),(So=Pn.parentNode)===null||So===void 0||So.insertBefore(Jn,Pn),ze.push(Jn)),Jn.appendChild(Pn)}),ze},bs=(K,ce,ve)=>{const ze=K.getStyle(ce,"list-style-type");let Xe=ve?ve["list-style-type"]:"";return Xe=Xe===null?"":Xe,ze===Xe},oc=(K,ce)=>{const ve=K.selection.getStart(!0),ze=bf(K,ce,!0,K.getBody());return yo(Kn.fromDom(ze),Kn.fromDom(ce.commonAncestorContainer))?ce.commonAncestorContainer:ve},tv=(K,ce,ve)=>{const ze=K.selection.getRng();let Xe="LI";const Bt=Rl(K,oc(K,ze)),Dn=K.dom;if(Dn.getContentEditable(K.selection.getNode())==="false")return;ce=ce.toUpperCase(),ce==="DL"&&(Xe="DT");const Jn=rc(ze),lr=z(Ja(K,ze,Bt),K.dom.isEditable);Ys.each(lr,Pn=>{let So;const Ia=Pn.previousSibling,Pl=Pn.parentNode;ap(Pl)||(Ia&&Os(Ia)&&Ia.nodeName===ce&&bs(Dn,Ia,ve)?(So=Ia,Pn=Dn.rename(Pn,Xe),Ia.appendChild(Pn)):(So=Dn.create(ce),Pl.insertBefore(So,Pn),So.appendChild(Pn),Pn=Dn.rename(Pn,Xe)),ev(Dn,Pn,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),cp(Dn,So,ve),_f(K.dom,So))}),K.selection.setRng(sh(Jn))},xf=(K,ce)=>Os(K)&&K.nodeName===(ce==null?void 0:ce.nodeName),lh=(K,ce,ve)=>{const ze=K.getStyle(ce,"list-style-type",!0),Xe=K.getStyle(ve,"list-style-type",!0);return ze===Xe},Fu=(K,ce)=>K.className===ce.className,ch=(K,ce,ve)=>xf(ce,ve)&&lh(K,ce,ve)&&Fu(ce,ve),_f=(K,ce)=>{let ve,ze=ce.nextSibling;if(ch(K,ce,ze)){const Xe=ze;for(;ve=Xe.firstChild;)ce.appendChild(ve);K.remove(Xe)}if(ze=ce.previousSibling,ch(K,ce,ze)){const Xe=ze;for(;ve=Xe.lastChild;)ce.insertBefore(ve,ce.firstChild);K.remove(Xe)}},Bo=(K,ce,ve,ze)=>{if(ce.nodeName!==ve){const Xe=K.dom.rename(ce,ve);cp(K.dom,Xe,ze),Go(K,zr(ve),Xe)}else cp(K.dom,ce,ze),Go(K,zr(ve),ce)},kg=(K,ce,ve,ze)=>{if(ce.classList.forEach((Xe,Bt,Dn)=>{Xe.startsWith("tox-")&&(Dn.remove(Xe),Dn.length===0&&ce.removeAttribute("class"))}),ce.nodeName!==ve){const Xe=K.dom.rename(ce,ve);cp(K.dom,Xe,ze),Go(K,zr(ve),Xe)}else cp(K.dom,ce,ze),Go(K,zr(ve),ce)},eb=(K,ce,ve,ze,Xe)=>{const Bt=Os(ce);if(Bt&&ce.nodeName===ze&&!Pc(Xe)&&!oh(ce))lp(K);else{tv(K,ze,Xe);const Dn=rc(K.selection.getRng()),Jn=Bt?[ce,...ve]:ve,lr=Bt&&oh(ce)?kg:Bo;Ys.each(Jn,Pn=>{lr(K,Pn,ze,Xe)}),K.selection.setRng(sh(Dn))}},Pc=K=>"list-style-type"in K,Qs=(K,ce,ve,ze)=>{if(ce!==K.getBody())if(ce)if(ce.nodeName===ve&&!Pc(ze)&&!oh(ce))lp(K);else{const Xe=rc(K.selection.getRng());oh(ce)&&ce.classList.forEach((Dn,Jn,lr)=>{Dn.startsWith("tox-")&&(lr.remove(Dn),lr.length===0&&ce.removeAttribute("class"))}),cp(K.dom,ce,ze);const Bt=K.dom.rename(ce,ve);_f(K.dom,Bt),K.selection.setRng(sh(Xe)),tv(K,ve,ze),Go(K,zr(ve),Bt)}else tv(K,ve,ze),Go(K,zr(ve),ce)},Vu=(K,ce,ve)=>{const ze=dt(K);if(wg(K,ze))return;const Xe=sa(K),Bt=l(ve)?ve:{};Xe.length>0?eb(K,ze,Xe,ce,Bt):Qs(K,ze,ce,Bt)},dr=pa.DOM,Il=(K,ce)=>{const ve=ce.parentElement;if(ve&&ve.nodeName==="LI"&&ve.firstChild===ce){const ze=ve.previousSibling;ze&&ze.nodeName==="LI"?(ze.appendChild(ce),pl(K,ve)&&dr.remove(ve)):dr.setStyle(ve,"listStyleType","none")}if(Os(ve)){const ze=ve.previousSibling;ze&&ze.nodeName==="LI"&&ze.appendChild(ce)}},xs=(K,ce)=>{const ve=Ys.grep(K.select("ol,ul",ce));Ys.each(ve,ze=>{Il(K,ze)})},Fc=(K,ce,ve,ze)=>{let Xe=ce.startContainer;const Bt=ce.startOffset;if(Xs(Xe)&&(ve?Bt<Xe.data.length:Bt>0))return Xe;const Dn=K.schema.getNonEmptyElements();na(Xe)&&(Xe=Aa.getNode(Xe,Bt));const Jn=new Fi(Xe,ze);ve&&nh(K.dom,Xe)&&Jn.next();const lr=ve?Jn.next.bind(Jn):Jn.prev2.bind(Jn);for(;Xe=lr();)if(Xe.nodeName==="LI"&&!Xe.hasChildNodes()||Dn[Xe.nodeName]||Xs(Xe)&&Xe.data.length>0)return Xe;return null},vl=(K,ce)=>{const ve=ce.childNodes;return ve.length===1&&!Os(ve[0])&&K.isBlock(ve[0])},Ca=K=>I.from(K).map(Kn.fromDom).filter(od).exists(ce=>hl(ce)&&!oe(["details"],ja(ce))),nv=(K,ce)=>{vl(K,ce)&&Ca(ce.firstChild)&&K.remove(ce.firstChild,!0)},rv=(K,ce,ve)=>{let ze;const Xe=vl(K,ve)?ve.firstChild:ve;if(nv(K,ce),!pl(K,ce,!0))for(;ze=ce.firstChild;)Xe.appendChild(ze)},qr=(K,ce,ve)=>{let ze;const Xe=ce.parentNode;if(!$0(K,ce)||!$0(K,ve))return;Os(ve.lastChild)&&(ze=ve.lastChild),Xe===ve.lastChild&&Oc(Xe.previousSibling)&&K.remove(Xe.previousSibling);const Bt=ve.lastChild;Bt&&Oc(Bt)&&ce.hasChildNodes()&&K.remove(Bt),pl(K,ve,!0)&&Lc(Kn.fromDom(ve)),rv(K,ce,ve),ze&&ve.appendChild(ze);const Jn=xr(Kn.fromDom(ve),Kn.fromDom(ce))?K.getParents(ce,Os,ve):[];K.remove(ce),ne(Jn,lr=>{pl(K,lr)&&lr!==K.getRoot()&&K.remove(lr)})},ld=(K,ce,ve)=>{Lc(Kn.fromDom(ve)),qr(K.dom,ce,ve),K.selection.setCursorLocation(ve,0)},ra=(K,ce,ve,ze)=>{const Xe=K.dom;if(Xe.isEmpty(ze))ld(K,ve,ze);else{const Bt=rc(ce);qr(Xe,ve,ze),K.selection.setRng(sh(Bt))}},el=(K,ce,ve,ze)=>{const Xe=rc(ce);qr(K.dom,ve,ze);const Bt=sh(Xe);K.selection.setRng(Bt)},nu=(K,ce)=>{const ve=K.dom,ze=K.selection,Xe=ze.getStart(),Bt=ml(K,Xe),Dn=ve.getParent(ze.getStart(),"LI",Bt);if(Dn){const Jn=Dn.parentElement;if(Jn===K.getBody()&&pl(ve,Jn))return!0;const lr=pe(ze.getRng()),Pn=ve.getParent(Fc(K,lr,ce,Bt),"LI",Bt),So=Pn&&(ce?ve.isChildOf(Dn,Pn):ve.isChildOf(Pn,Dn));if(Pn&&Pn!==Dn&&!So)return K.undoManager.transact(()=>{ce?ra(K,lr,Pn,Dn):bg(Dn)?nc(K):el(K,lr,Dn,Pn)}),!0;if(So&&!ce&&Pn!==Dn){const Ia=lr.commonAncestorContainer.parentElement;return!Ia||ve.isChildOf(Pn,Ia)?!1:(K.undoManager.transact(()=>{const Pl=rc(lr);rv(ve,Ia,Pn),Ia.remove();const la=sh(Pl);K.selection.setRng(la)}),!0)}else if(!Pn&&!ce&&lr.startOffset===0&&lr.endOffset===0)return K.undoManager.transact(()=>{lp(K)}),!0}return!1},Vc=(K,ce,ve)=>{const ze=K.getParent(ce.parentNode,K.isBlock,ve);K.remove(ce),ze&&K.isEmpty(ze)&&K.remove(ze)},tb=(K,ce)=>{const ve=K.dom,ze=K.selection.getStart(),Xe=ml(K,ze),Bt=ve.getParent(ze,ve.isBlock,Xe);if(Bt&&ve.isEmpty(Bt,void 0,{checkRootAsContent:!0})){const Dn=pe(K.selection.getRng()),Jn=Fc(K,Dn,ce,Xe),lr=ve.getParent(Jn,"LI",Xe);if(Jn&&lr){const Pn=la=>oe(["td","th","caption"],ja(la)),So=la=>la.dom===Xe,Ia=id(Kn.fromDom(lr),Pn,So),Pl=id(Kn.fromDom(Dn.startContainer),Pn,So);return zn(Ia,Pl,gn)?(K.undoManager.transact(()=>{const la=lr.parentNode;Vc(ve,Bt,Xe),_f(ve,la),K.selection.select(Jn,!0),K.selection.collapse(ce)}),!0):!1}}return!1},cd=(K,ce)=>nu(K,ce)||tb(K,ce),uh=K=>{const ce=K.selection.getStart(),ve=ml(K,ce);return K.dom.getParent(ce,"LI,DT,DD",ve)||mi(K).length>0},B_=K=>uh(K)?(K.undoManager.transact(()=>{let ce=!0;const ve=()=>ce=!1;K.on("input",ve),K.execCommand("Delete"),K.off("input",ve),ce&&K.dispatch("input"),xs(K.dom,K.getBody())}),!0):!1,_s=(K,ce)=>{const ve=K.selection;return!wg(K,ve.getNode())&&(ve.isCollapsed()?cd(K,ce):B_(K))},P_=K=>{K.on("ExecCommand",ce=>{const ve=ce.command.toLowerCase();(ve==="delete"||ve==="forwarddelete")&&uh(K)&&xs(K.dom,K.getBody())}),K.on("keydown",ce=>{ce.keyCode===rs.BACKSPACE?_s(K,!1)&&ce.preventDefault():ce.keyCode===rs.DELETE&&_s(K,!0)&&ce.preventDefault()})},Cf=K=>({backspaceDelete:ce=>{_s(K,ce)}}),Sf=(K,ce)=>{const ve=dt(K);ve===null||wg(K,ve)||K.undoManager.transact(()=>{l(ce.styles)&&K.dom.setStyles(ve,ce.styles),l(ce.attrs)&&Nt(ce.attrs,(ze,Xe)=>K.dom.setAttrib(ve,Xe,ze))})},nb=K=>{const ce=Ue(Ke(K).split("")),ve=Y(ce,(ze,Xe)=>{const Bt=ze.toUpperCase().charCodeAt(0)-65+1;return Math.pow(26,Xe)*Bt});return ye(ve,(ze,Xe)=>ze+Xe,0)},up=K=>{if(K--,K<0)return"";{const ce=K%26,ve=Math.floor(K/26),ze=up(ve),Xe=String.fromCharCode(65+ce);return ze+Xe}},ov=K=>/^[A-Z]+$/.test(K),Mi=K=>/^[a-z]+$/.test(K),Mg=K=>/^[0-9]+$/.test(K),ru=K=>Mg(K)?2:ov(K)?0:Mi(K)?1:ct(K)?3:4,Lg=K=>{switch(ru(K)){case 2:return I.some({listStyleType:I.none(),start:K});case 0:return I.some({listStyleType:I.some("upper-alpha"),start:nb(K).toString()});case 1:return I.some({listStyleType:I.some("lower-alpha"),start:nb(K).toString()});case 3:return I.some({listStyleType:I.none(),start:""});case 4:return I.none()}},Is=K=>{const ce=parseInt(K.start,10);return ln(K.listStyleType,"upper-alpha")?up(ce):ln(K.listStyleType,"lower-alpha")?up(ce).toLowerCase():K.start},Bs=K=>{const ce=dt(K);!Zm(ce)||wg(K,ce)||K.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:Is({start:K.dom.getAttrib(ce,"start","1"),listStyleType:I.from(K.dom.getStyle(ce,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:ve=>{const ze=ve.getData();Lg(ze.start).each(Xe=>{K.execCommand("mceListUpdate",!1,{attrs:{start:Xe.start==="1"?"":Xe.start},styles:{"list-style-type":Xe.listStyleType.getOr("")}})}),ve.close()}})},Ng=(K,ce)=>()=>{const ve=dt(K);return p(ve)&&ve.nodeName===ce},Qa=K=>{K.addCommand("mceListProps",()=>{Bs(K)})},F_=K=>{K.on("BeforeExecCommand",ce=>{const ve=ce.command.toLowerCase();ve==="indent"?pr(K):ve==="outdent"&&nc(K)}),K.addCommand("InsertUnorderedList",(ce,ve)=>{Vu(K,"UL",ve)}),K.addCommand("InsertOrderedList",(ce,ve)=>{Vu(K,"OL",ve)}),K.addCommand("InsertDefinitionList",(ce,ve)=>{Vu(K,"DL",ve)}),K.addCommand("RemoveList",()=>{lp(K)}),Qa(K),K.addCommand("mceListUpdate",(ce,ve)=>{l(ve)&&Sf(K,ve)}),K.addQueryStateHandler("InsertUnorderedList",Ng(K,"UL")),K.addQueryStateHandler("InsertOrderedList",Ng(K,"OL")),K.addQueryStateHandler("InsertDefinitionList",Ng(K,"DL"))};var ud=tinymce.util.Tools.resolve("tinymce.html.Node");const fd=K=>K.type===3,av=K=>K.length===0,Hi=K=>{const ce=(Xe,Bt)=>{const Dn=ud.create("li");ne(Xe,Jn=>Dn.append(Jn)),Bt?K.insert(Dn,Bt,!0):K.append(Dn)},ve=(Xe,Bt)=>fd(Bt)?[...Xe,Bt]:!av(Xe)&&!fd(Bt)?(ce(Xe,Bt),[]):Xe,ze=ye(K.children(),ve,[]);av(ze)||ce(ze)},dd=K=>{K.on("PreInit",()=>{const{parser:ce}=K;ce.addNodeFilter("ul,ol",ve=>ne(ve,Hi))})},yl=K=>{K.on("keydown",ce=>{ce.keyCode!==rs.TAB||rs.metaKeyPressed(ce)||K.undoManager.transact(()=>{(ce.shiftKey?nc(K):pr(K))&&ce.preventDefault()})})},ga=K=>{_g(K)&&yl(K),P_(K)},ma=(K,ce)=>ve=>{const ze=Xe=>{ve.setActive(G0(Xe.parents,ce)),ve.setEnabled(!wg(K,Xe.element)&&K.selection.isEditable())};return ve.setEnabled(K.selection.isEditable()),Z0(K,ze)},Ra=K=>{const ce=ve=>()=>K.execCommand(ve);K.hasPlugin("advlist")||(K.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:ce("InsertOrderedList"),onSetup:ma(K,"OL")}),K.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:ce("InsertUnorderedList"),onSetup:ma(K,"UL")}))},rb=(K,ce)=>ve=>Z0(K,Xe=>ve.setEnabled(G0(Xe.parents,ce)&&!wg(K,Xe.element))),is=K=>{const ce={text:"List properties...",icon:"ordered-list",onAction:()=>K.execCommand("mceListProps"),onSetup:rb(K,"OL")};K.ui.registry.addMenuItem("listprops",ce),K.ui.registry.addContextMenu("lists",{update:ve=>{const ze=dt(K,ve);return Zm(ze)?["listprops"]:[]}})};var Bl=()=>{n.add("lists",K=>(U0(K),dd(K),K.hasPlugin("rtc",!0)?Qa(K):(ga(K),F_(K)),Ra(K),is(K),Cf(K)))};Bl()}()),ice}var lce;function ake(){return lce||(lce=1,oke()),ace}ake();var cce={},uce={},fce;function ike(){return fce||(fce=1,function(){var n=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=(it=>Et=>it===Et)(null),r=it=>it,a=(it,Et)=>{const St=it.length,Qe=new Array(St);for(let Ke=0;Ke<St;Ke++){const Je=it[Ke];Qe[Ke]=Et(Je,Ke)}return Qe},i=(it,Et)=>{let St=null;return{cancel:()=>{t(St)||(clearTimeout(St),St=null)},throttle:(...Je)=>{t(St)&&(St=setTimeout(()=>{St=null,it.apply(null,Je)},Et))}}},l=it=>it.replace(/\uFEFF/g,""),d={aletter:"[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",midnumlet:"[-'\\.‘’․﹒'.]",midletter:"[:··״‧︓﹕:]",midnum:"[±+*/,;;։،؍٬߸⁄︐︔﹐﹔,;]",numeric:"[0-9٠-٩٫۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹]",cr:"\\r",lf:"\\n",newline:"[\v\f
\u2028\u2029]",extend:"[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ऀ-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕౖౢౣಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣംഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈᧉᨗ-ᨛᩕ-ᩞ᩠-᩿᩼ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-᯦᮪-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ᷀-ᷦ᷼-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲꙼꙽꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꨩ-ꨶꩃꩌꩍꩻꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꯣ-ꯪ꯬꯭ﬞ︀-️︠-゙゚︦]",format:"[-឴឵---\uFEFF-]",katakana:"[〱-〵゛゜゠-ヺー-ヿㇰ-ㇿ㋐-㋾㌀-㍗ヲ-ン]",extendnumlet:"[=_‿⁀⁔︳︴﹍-﹏_∀-⋿<>]",punctuation:"[~№|!-*+-\\/:;?@\\[-`{}¡«·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰෴๏๚๛༄-༒༺-༽྅࿐-࿔࿙࿚၊-၏჻፡-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰⸱、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫!-#%-*,-/:;?@[-]_{}⦅-・]"},h={ALETTER:0,MIDNUMLET:1,MIDLETTER:2,MIDNUM:3,NUMERIC:4,CR:5,LF:6,NEWLINE:7,EXTEND:8,FORMAT:9,KATAKANA:10,EXTENDNUMLET:11,AT:12,OTHER:13},p=[new RegExp(d.aletter),new RegExp(d.midnumlet),new RegExp(d.midletter),new RegExp(d.midnum),new RegExp(d.numeric),new RegExp(d.cr),new RegExp(d.lf),new RegExp(d.newline),new RegExp(d.extend),new RegExp(d.format),new RegExp(d.katakana),new RegExp(d.extendnumlet),new RegExp("@")],v="",y=new RegExp("^"+d.punctuation+"$"),_=/^\s+$/,w=p,A=h.OTHER,T=it=>{let Et=A;const St=w.length;for(let Qe=0;Qe<St;++Qe){const Ke=w[Qe];if(Ke&&Ke.test(it)){Et=Qe;break}}return Et},k=it=>{const Et={};return St=>{if(Et[St])return Et[St];{const Qe=it(St);return Et[St]=Qe,Qe}}},R=it=>{const Et=k(T);return a(it,Et)},O=(it,Et)=>{const St=it[Et],Qe=it[Et+1];if(Et<0||Et>it.length-1&&Et!==0||St===h.ALETTER&&Qe===h.ALETTER)return!1;const Ke=it[Et+2];if(St===h.ALETTER&&(Qe===h.MIDLETTER||Qe===h.MIDNUMLET||Qe===h.AT)&&Ke===h.ALETTER)return!1;const Je=it[Et-1];return(St===h.MIDLETTER||St===h.MIDNUMLET||Qe===h.AT)&&Qe===h.ALETTER&&Je===h.ALETTER||(St===h.NUMERIC||St===h.ALETTER)&&(Qe===h.NUMERIC||Qe===h.ALETTER)||(St===h.MIDNUM||St===h.MIDNUMLET)&&Qe===h.NUMERIC&&Je===h.NUMERIC||St===h.NUMERIC&&(Qe===h.MIDNUM||Qe===h.MIDNUMLET)&&Ke===h.NUMERIC||(St===h.EXTEND||St===h.FORMAT)&&(Qe===h.ALETTER||Qe===h.NUMERIC||Qe===h.KATAKANA||Qe===h.EXTEND||Qe===h.FORMAT)||(Qe===h.EXTEND||Qe===h.FORMAT&&(Ke===h.ALETTER||Ke===h.NUMERIC||Ke===h.KATAKANA||Ke===h.EXTEND||Ke===h.FORMAT))&&(St===h.ALETTER||St===h.NUMERIC||St===h.KATAKANA||St===h.EXTEND||St===h.FORMAT)||St===h.CR&&Qe===h.LF?!1:St===h.NEWLINE||St===h.CR||St===h.LF||Qe===h.NEWLINE||Qe===h.CR||Qe===h.LF?!0:!(St===h.KATAKANA&&Qe===h.KATAKANA||Qe===h.EXTENDNUMLET&&(St===h.ALETTER||St===h.NUMERIC||St===h.KATAKANA||St===h.EXTENDNUMLET)||St===h.EXTENDNUMLET&&(Qe===h.ALETTER||Qe===h.NUMERIC||Qe===h.KATAKANA)||St===h.AT)},I=v,G=_,Z=y,q=it=>it==="http"||it==="https",re=(it,Et)=>{let St;for(St=Et;St<it.length&&!G.test(it[St]);St++);return St},oe=(it,Et)=>{const St=re(it,Et+1);return it.slice(Et+1,St).join(I).substr(0,3)==="://"?St:Et},ee=(it,Et,St,Qe)=>{const Ke=[],Je=[];let ct=[];for(let vn=0;vn<St.length;++vn)if(ct.push(it[vn]),O(St,vn)){const Sn=Et[vn];if((Qe.includeWhitespace||!G.test(Sn))&&(Qe.includePunctuation||!Z.test(Sn))){const jn=vn-ct.length+1,rr=vn+1,Dt=Et.slice(jn,rr).join(I);if(q(Dt)){const $t=oe(Et,vn),Cr=it.slice(rr,$t);Array.prototype.push.apply(ct,Cr),vn=$t}Et[vn+1]==="."&&/^([a-zA-Z]\.)+$/.test(Dt+".")?(ct.push(it[vn+1]),Je.push({start:jn,end:rr+1})):Je.push({start:jn,end:rr}),Ke.push(ct)}ct=[]}return{words:Ke,indices:Je}},Y=()=>({includeWhitespace:!1,includePunctuation:!1}),ne=(it,Et,St)=>{St={...Y(),...St};const Qe=a(it,Et),Ke=R(Qe);return ee(it,Qe,Ke,St)},be=(it,Et,St)=>ne(it,Et,St).words;var ye=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker");const Te=(it,Et)=>{const St=Et.getBlockElements(),Qe=Et.getVoidElements(),Ke=jn=>St[jn.nodeName]||Qe[jn.nodeName],Je=[];let ct="";const vn=new ye(it,it);let Sn;for(;Sn=vn.next();)Sn.nodeType===3?ct+=l(Sn.data):Ke(Sn)&&ct.length&&(Je.push(ct),ct="");return ct.length&&Je.push(ct),Je},Ve=it=>it.replace(/\u200B/g,""),Ce=it=>it.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length,We=(it,Et)=>{const St=Ve(Te(it,Et).join(`
|
|
131
|
-
`));return be(St.split(""),r).length},Ue=(it,Et)=>{const St=Te(it,Et).join("");return Ce(St)},Ee=(it,Et)=>{const St=Te(it,Et).join("").replace(/\s/g,"");return Ce(St)},Me=(it,Et)=>()=>Et(it.getBody(),it.schema),Fe=(it,Et)=>()=>Et(it.selection.getRng().cloneContents(),it.schema),Ye=it=>Me(it,We),at=it=>({body:{getWordCount:Ye(it),getCharacterCount:Me(it,Ue),getCharacterCountWithoutSpaces:Me(it,Ee)},selection:{getWordCount:Fe(it,We),getCharacterCount:Fe(it,Ue),getCharacterCountWithoutSpaces:Fe(it,Ee)},getCount:Ye(it)}),Nt=(it,Et)=>{it.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(Et.body.getWordCount()),String(Et.selection.getWordCount())],["Characters (no spaces)",String(Et.body.getCharacterCountWithoutSpaces()),String(Et.selection.getCharacterCountWithoutSpaces())],["Characters",String(Et.body.getCharacterCount()),String(Et.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},en=(it,Et)=>{it.addCommand("mceWordCount",()=>Nt(it,Et))};var le=tinymce.util.Tools.resolve("tinymce.util.Delay");const Pt=(it,Et)=>{it.dispatch("wordCountUpdate",{wordCount:{words:Et.body.getWordCount(),characters:Et.body.getCharacterCount(),charactersWithoutSpaces:Et.body.getCharacterCountWithoutSpaces()}})},Xt=(it,Et)=>{Pt(it,Et)},kt=(it,Et,St)=>{const Qe=i(()=>Xt(it,Et),St);it.on("init",()=>{Xt(it,Et),le.setEditorTimeout(it,()=>{it.on("SetContent BeforeAddUndo Undo Redo ViewUpdate keyup",Qe.throttle)},0),it.on("remove",Qe.cancel)})},ln=it=>{const Et=()=>it.execCommand("mceWordCount");it.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:Et,context:"any"}),it.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:Et,context:"any"})};var zn=(it=300)=>{n.add("wordcount",Et=>{const St=at(Et);return en(Et,St),ln(Et),kt(Et,St,it),St})};zn()}()),uce}var dce;function ske(){return dce||(dce=1,ike()),cce}ske();var hce={},pce={},gce;function lke(){return gce||(gce=1,function(){var n=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(c,d)=>{c.focus(),c.undoManager.transact(()=>{c.setContent(d)}),c.selection.setCursorLocation(),c.nodeChanged()},t=c=>c.getContent({source_view:!0}),r=c=>{const d=t(c);c.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:d},onSubmit:h=>{e(c,h.getData().code),h.close()}})},a=c=>{c.addCommand("mceCodeEditor",()=>{r(c)})},i=c=>{const d=()=>c.execCommand("mceCodeEditor");c.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:d}),c.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:d})};var l=()=>{n.add("code",c=>(a(c),i(c),{}))};l()}()),pce}var mce;function cke(){return mce||(mce=1,lke()),hce}cke(),tinymce.addI18n("zh_CN",{Redo:"重做",Undo:"撤销",Cut:"剪切",Copy:"复制",Paste:"粘贴","Select all":"全选","New document":"新文件",Ok:"确定",Cancel:"取消","Visual aids":"网格线",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Superscript:"上标",Subscript:"下标","Clear formatting":"清除格式","Align left":"左边对齐","Align center":"中间对齐","Align right":"右边对齐",Justify:"两端对齐","Bullet list":"项目符号","Numbered list":"编号列表","Decrease indent":"减少缩进","Increase indent":"增加缩进",Close:"关闭",Formats:"格式","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"你的浏览器不支持打开剪贴板,请使用Ctrl+X/C/V等快捷键。",Headers:"标题","Header 1":"标题1","Header 2":"标题2","Header 3":"标题3","Header 4":"标题4","Header 5":"标题5","Header 6":"标题6",Headings:"标题","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Heading 5":"标题5","Heading 6":"标题6",Preformatted:"预先格式化的",Div:"Div",Pre:"Pre",Code:"代码",Paragraph:"段落",Blockquote:"引文区块",Inline:"文本",Blocks:"基块","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。",Fonts:"字体","Font Sizes":"字号",Class:"类型","Browse for an image":"浏览图像",OR:"或","Drop an image here":"拖放一张图像至此",Upload:"上传",Block:"块",Align:"对齐",Default:"默认",Circle:"空心圆",Disc:"实心圆",Square:"方块","Lower Alpha":"小写英文字母","Lower Greek":"小写希腊字母","Lower Roman":"小写罗马字母","Upper Alpha":"大写英文字母","Upper Roman":"大写罗马字母","Anchor...":"锚点...",Name:"名称",Id:"标识符","Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"标识符应该以字母开头,后跟字母、数字、破折号、点、冒号或下划线。","You have unsaved changes are you sure you want to navigate away?":"你还有文档尚未保存,确定要离开?","Restore last draft":"恢复上次的草稿","Special character...":"特殊字符...","Source code":"源代码","Insert/Edit code sample":"插入/编辑代码示例",Language:"语言","Code sample...":"示例代码...","Color Picker":"选色器",R:"R",G:"G",B:"B","Left to right":"从左到右","Right to left":"从右到左",Emoticons:"表情","Emoticons...":"表情符号...","Metadata and Document Properties":"元数据和文档属性",Title:"标题",Keywords:"关键词",Description:"描述",Robots:"机器人",Author:"作者",Encoding:"编码",Fullscreen:"全屏",Action:"操作",Shortcut:"快捷键",Help:"帮助",Address:"地址","Focus to menubar":"移动焦点到菜单栏","Focus to toolbar":"移动焦点到工具栏","Focus to element path":"移动焦点到元素路径","Focus to contextual toolbar":"移动焦点到上下文菜单","Insert link (if link plugin activated)":"插入链接 (如果链接插件已激活)","Save (if save plugin activated)":"保存(如果保存插件已激活)","Find (if searchreplace plugin activated)":"查找(如果查找替换插件已激活)","Plugins installed ({0}):":"已安装插件 ({0}):","Premium plugins:":"优秀插件:","Learn more...":"了解更多...","You are using {0}":"你正在使用 {0}",Plugins:"插件","Handy Shortcuts":"快捷键","Horizontal line":"水平分割线","Insert/edit image":"插入/编辑图片","Alternative description":"替代描述",Accessibility:"辅助功能","Image is decorative":"图像是装饰性的",Source:"地址",Dimensions:"大小","Constrain proportions":"保持纵横比",General:"普通",Advanced:"高级",Style:"样式","Vertical space":"垂直边距","Horizontal space":"水平边距",Border:"边框","Insert image":"插入图片","Image...":"图片...","Image list":"图片列表","Rotate counterclockwise":"逆时针旋转","Rotate clockwise":"顺时针旋转","Flip vertically":"垂直翻转","Flip horizontally":"水平翻转","Edit image":"编辑图片","Image options":"图片选项","Zoom in":"放大","Zoom out":"缩小",Crop:"裁剪",Resize:"调整大小",Orientation:"方向",Brightness:"亮度",Sharpen:"锐化",Contrast:"对比度","Color levels":"颜色层次",Gamma:"伽马值",Invert:"反转",Apply:"应用",Back:"后退","Insert date/time":"插入日期/时间","Date/time":"日期/时间","Insert/edit link":"插入/编辑链接","Text to display":"显示文字",Url:"地址","Open link in...":"链接打开位置...","Current window":"当前窗口",None:"无","New window":"在新窗口打开","Open link":"打开链接","Remove link":"删除链接",Anchors:"锚点","Link...":"链接...","Paste or type a link":"粘贴或输入链接","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"你所填写的URL地址为邮件地址,需要加上mailto:前缀吗?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"你所填写的URL地址属于外部链接,需要加上http://:前缀吗?","The URL you entered seems to be an external link. Do you want to add the required https:// prefix?":"您输入的 URL 似乎是一个外部链接。您想添加所需的 https:// 前缀吗?","Link list":"链接列表","Insert video":"插入视频","Insert/edit video":"插入/编辑视频","Insert/edit media":"插入/编辑媒体","Alternative source":"镜像","Alternative source URL":"替代来源网址","Media poster (Image URL)":"封面(图片地址)","Paste your embed code below:":"将内嵌代码粘贴在下面:",Embed:"内嵌","Media...":"多媒体...","Nonbreaking space":"不间断空格","Page break":"分页符","Paste as text":"粘贴为文本",Preview:"预览","Print...":"打印...",Save:"保存",Find:"查找","Replace with":"替换为",Replace:"替换","Replace all":"全部替换",Previous:"上一个",Next:"下一个","Find and Replace":"查找和替换","Find and replace...":"查找并替换...","Could not find the specified string.":"未找到搜索内容.","Match case":"区分大小写","Find whole words only":"全字匹配","Find in selection":"在选区中查找",Spellcheck:"拼写检查","Spellcheck Language":"拼写检查语言","No misspellings found.":"没有发现拼写错误",Ignore:"忽略","Ignore all":"全部忽略",Finish:"完成","Add to Dictionary":"添加到字典","Insert table":"插入表格","Table properties":"表格属性","Delete table":"删除表格",Cell:"单元格",Row:"行",Column:"列","Cell properties":"单元格属性","Merge cells":"合并单元格","Split cell":"拆分单元格","Insert row before":"在上方插入","Insert row after":"在下方插入","Delete row":"删除行","Row properties":"行属性","Cut row":"剪切行","Copy row":"复制行","Paste row before":"粘贴到上方","Paste row after":"粘贴到下方","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cols:"列",Rows:"行",Width:"宽",Height:"高","Cell spacing":"单元格外间距","Cell padding":"单元格内边距",Caption:"标题","Show caption":"显示标题",Left:"左对齐",Center:"居中",Right:"右对齐","Cell type":"单元格类型",Scope:"范围",Alignment:"对齐方式","H Align":"水平对齐","V Align":"垂直对齐",Top:"顶部对齐",Middle:"垂直居中",Bottom:"底部对齐","Header cell":"表头单元格","Row group":"行组","Column group":"列组","Row type":"行类型",Header:"表头",Body:"表体",Footer:"表尾","Border color":"边框颜色","Insert template...":"插入模板...",Templates:"模板",Template:"模板","Text color":"文字颜色","Background color":"背景色","Custom...":"自定义...","Custom color":"自定义颜色","No color":"无","Remove color":"移除颜色","Table of Contents":"内容列表","Show blocks":"显示区块边框","Show invisible characters":"显示不可见字符","Word count":"字数",Count:"计数",Document:"文档",Selection:"选择",Words:"单词","Words: {0}":"字数:{0}","{0} words":"{0} 字",File:"文件",Edit:"编辑",Insert:"插入",View:"视图",Format:"格式",Table:"表格",Tools:"工具","Powered by {0}":"由{0}驱动","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"在编辑区按ALT-F9打开菜单,按ALT-F10打开工具栏,按ALT-0查看帮助","Image title":"图片标题","Border width":"边框宽度","Border style":"边框样式",Error:"错误",Warn:"警告",Valid:"有效","To open the popup, press Shift+Enter":"按Shitf+Enter键打开对话框","Rich Text Area. Press ALT-0 for help.":"编辑区。按Alt+0键打开帮助。","System Font":"系统字体","Failed to upload image: {0}":"图片上传失败: {0}","Failed to load plugin: {0} from url {1}":"插件加载失败: {0} 来自链接 {1}","Failed to load plugin url: {0}":"插件加载失败 链接: {0}","Failed to initialize plugin: {0}":"插件初始化失败: {0}",example:"示例",Search:"搜索",All:"全部",Currency:"货币",Text:"文字",Quotations:"引用",Mathematical:"数学","Extended Latin":"拉丁语扩充",Symbols:"符号",Arrows:"箭头","User Defined":"自定义","dollar sign":"美元符号","currency sign":"货币符号","euro-currency sign":"欧元符号","colon sign":"冒号","cruzeiro sign":"克鲁赛罗币符号","french franc sign":"法郎符号","lira sign":"里拉符号","mill sign":"密尔符号","naira sign":"奈拉符号","peseta sign":"比塞塔符号","rupee sign":"卢比符号","won sign":"韩元符号","new sheqel sign":"新谢克尔符号","dong sign":"越南盾符号","kip sign":"老挝基普符号","tugrik sign":"图格里克符号","drachma sign":"德拉克马符号","german penny symbol":"德国便士符号","peso sign":"比索符号","guarani sign":"瓜拉尼符号","austral sign":"澳元符号","hryvnia sign":"格里夫尼亚符号","cedi sign":"塞地符号","livre tournois sign":"里弗弗尔符号","spesmilo sign":"spesmilo符号","tenge sign":"坚戈符号","indian rupee sign":"印度卢比","turkish lira sign":"土耳其里拉","nordic mark sign":"北欧马克","manat sign":"马纳特符号","ruble sign":"卢布符号","yen character":"日元字样","yuan character":"人民币元字样","yuan character, in hong kong and taiwan":"元字样(港台地区)","yen/yuan character variant one":"元字样(大写)","Loading emoticons...":"加载表情符号...","Could not load emoticons":"不能加载表情符号",People:"人类","Animals and Nature":"动物和自然","Food and Drink":"食物和饮品",Activity:"活动","Travel and Places":"旅游和地点",Objects:"物件",Flags:"旗帜",Characters:"字符","Characters (no spaces)":"字符(无空格)","{0} characters":"{0} 个字符","Error: Form submit field collision.":"错误: 表单提交字段冲突。","Error: No form element found.":"错误: 没有表单控件。",Update:"更新","Color swatch":"颜色样本",Turquoise:"青绿色",Green:"绿色",Blue:"蓝色",Purple:"紫色","Navy Blue":"海军蓝","Dark Turquoise":"深蓝绿色","Dark Green":"深绿色","Medium Blue":"中蓝色","Medium Purple":"中紫色","Midnight Blue":"深蓝色",Yellow:"黄色",Orange:"橙色",Red:"红色","Light Gray":"浅灰色",Gray:"灰色","Dark Yellow":"暗黄色","Dark Orange":"深橙色","Dark Red":"深红色","Medium Gray":"中灰色","Dark Gray":"深灰色","Light Green":"浅绿色","Light Yellow":"浅黄色","Light Red":"浅红色","Light Purple":"浅紫色","Light Blue":"浅蓝色","Dark Purple":"深紫色","Dark Blue":"深蓝色",Black:"黑色",White:"白色","Switch to or from fullscreen mode":"切换全屏模式","Open help dialog":"打开帮助对话框",history:"历史",styles:"样式",formatting:"格式化",alignment:"对齐",indentation:"缩进",Font:"字体",Size:"字号","More...":"更多...","Select...":"选择...",Preferences:"首选项",Yes:"是",No:"否","Keyboard Navigation":"键盘指引",Version:"版本","Code view":"代码视图","Open popup menu for split buttons":"打开弹出式菜单,用于拆分按钮","List Properties":"列表属性","List properties...":"标题字体属性","Start list at number":"以数字开始列表","Line height":"行高",comments:"备注","Format Painter":"格式刷","Insert/edit iframe":"插入/编辑框架",Capitalization:"大写",lowercase:"小写",UPPERCASE:"大写","Title Case":"首字母大写","permanent pen":"记号笔","Permanent Pen Properties":"永久笔属性","Permanent pen properties...":"永久笔属性...","case change":"案例更改","page embed":"页面嵌入","Advanced sort...":"高级排序...","Advanced Sort":"高级排序","Sort table by column ascending":"按列升序表","Sort table by column descending":"按列降序表",Sort:"排序",Order:"排序","Sort by":"排序方式",Ascending:"升序",Descending:"降序","Column {0}":"列{0}","Row {0}":"行{0}","Spellcheck...":"拼写检查...","Misspelled word":"拼写错误的单词",Suggestions:"建议",Change:"更改","Finding word suggestions":"查找单词建议",Success:"成功",Repair:"修复","Issue {0} of {1}":"共计{1}问题{0}","Images must be marked as decorative or have an alternative text description":"图像必须标记为装饰性或具有替代文本描述","Images must have an alternative text description. Decorative images are not allowed.":"图像必须具有替代文本描述。不允许使用装饰图像。","Or provide alternative text:":"或提供备选文本:","Make image decorative:":"使图像装饰:","ID attribute must be unique":"ID 属性必须是唯一的","Make ID unique":"使 ID 独一无二","Keep this ID and remove all others":"保留此 ID 并删除所有其他","Remove this ID":"删除此 ID","Remove all IDs":"清除全部IDs",Checklist:"清单",Anchor:"锚点","Special character":"特殊符号","Code sample":"代码示例",Color:"颜色","Document properties":"文档属性","Image description":"图片描述",Image:"图片","Insert link":"插入链接",Target:"打开方式",Link:"链接",Poster:"封面",Media:"媒体",Print:"打印",Prev:"上一个","Find and replace":"查找和替换","Whole words":"全字匹配","Insert template":"插入模板"});const vce=8,uke="undo redo cut copy paste indent2em | image | styleselect fontselect fontsizeselect | lineheight forecolor backcolor bold italic underline strikethrough | code | numlist bullist",fke=P.defineComponent({__name:"index",props:{url:{type:String,required:!1,default:"/upload/image"},content:{type:String,default:""},height:{type:Number,default:0},disabled:{type:Boolean,default:!1}},emits:["update:content"],setup(n,{expose:e,emit:t}){const{requestBaseUrl:r}=Ei(),a=t,i=n;function l(v){const y=r;return v.includes("https://")||v.includes("http://")?v+"?"+new Date().getTime():y+"/"+v+"?"+new Date().getTime()}const c=P.computed({get:()=>i.content||"",set:v=>{a("update:content",v)}}),d=(v,y)=>new Promise((_,w)=>{console.warn("Tinymce Upload",v.blob(),y),v.blob().size/1024/1024>vce&&w({message:"图片大小限制 "+vce+"MB",remove:!0});var A=v.blob();let T=new FormData;T.append("file",A,A.name),T.append("type",A.type),T.append("path","content"),il(i.url,T,"POST","multipart/form-data").then(k=>{k.code==200?_(l(k.data)):w({message:k.message,remove:!0})}).catch(k=>{w({message:k.message,remove:!0})})}),h=P.ref({license_key:"gpl",height:i.height>0?i.height:600,selector:"#editor",language:"zh_CN",skin:"oxide",skin_url:"/skins/ui/oxide",content_css:"/skins/ui/oxide/content.min.css",plugins:"image wordcount code lists",toolbar:uke,toolbar_model:"floating",nonbreaking_force_tab:!0,automatic_uploads:!0,images_file_types:"webp,jpg,jpeg,png,gif,JPG,JPEG,PNG,GIF",custom_undo_redo_levels:30,init_instance_callback:v=>{v.formatter.apply("alignleft")},images_upload_handler:d});function p(){return Gle.EditorManager.activeEditor?Gle.EditorManager.activeEditor.plugins.wordcount.getCount():0}return e({init:h,content:c,words:p}),(v,y)=>(P.openBlock(),P.createElementBlock("div",null,[P.createVNode(P.unref(Q3e),{id:"editor",ref:"editor",disabled:n.disabled,modelValue:c.value,"onUpdate:modelValue":y[0]||(y[0]=_=>c.value=_),init:h.value},null,8,["disabled","modelValue","init"])]))}}),dke=P.defineComponent({__name:"OpenButton",props:{...Xr.buttonProps,type:{type:String,default:"primary"},size:{type:String,default:"default"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},icon:{type:String,default:""},t:{type:String,default:""}},emits:["open"],setup(n,{emit:e}){const t=e,r=n;function a(){t("open")}return(i,l)=>{const c=P.resolveComponent("el-icon"),d=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(d,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading,icon:void 0,onClick:P.withModifiers(a,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[n.showIcon?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.icon]]),P.withDirectives(P.createVNode(c,null,{default:P.withCtx(()=>[P.createVNode(P.unref(JP))]),_:1},512),[[P.vShow,!n.loading&&!n.icon]])],64)):P.createCommentVNode("",!0),n.t?(P.openBlock(),P.createElementBlock("span",{key:1,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),hke=P.defineComponent({__name:"RefreshButton",props:{...Xr.buttonProps,type:{type:String,default:"default"},size:{type:String,default:"default"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},t:{type:String,default:""},refresh:{type:Function,default:()=>{}},icon:{type:String,default:""}},emits:["refresh"],setup(n,{emit:e}){const t=e,r=n,a=P.ref(!1);async function i(){if(t("refresh"),typeof r.refresh=="function")try{a.value=!0,await r.refresh()}finally{a.value=!1}}return(l,c)=>{const d=P.resolveComponent("el-icon"),h=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(h,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading||a.value,icon:void 0,onClick:P.withModifiers(i,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[n.showIcon?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.icon]]),P.withDirectives(P.createVNode(d,null,{default:P.withCtx(()=>[P.createVNode(P.unref(Ple))]),_:1},512),[[P.vShow,!n.loading&&!n.icon]])],64)):P.createCommentVNode("",!0),n.t?(P.openBlock(),P.createElementBlock("span",{key:1,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),yce=P.defineComponent({__name:"InlineRefreshButton",props:{...Xr.buttonProps,type:{type:String,default:"primary"},size:{type:String,default:"small"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!0},text:{type:Boolean,default:!0},t:{type:String,default:""},refresh:{type:Function,default:()=>{}},icon:{type:String,default:""}},emits:["refresh"],setup(n,{emit:e}){const t=e,r=n,a=P.ref(!1);async function i(){if(t("refresh"),typeof r.refresh=="function")try{a.value=!0,await r.refresh()}finally{a.value=!1}}return(l,c)=>{const d=P.resolveComponent("el-icon"),h=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(h,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading||a.value,icon:void 0,onClick:P.withModifiers(i,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[n.showIcon?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.icon]]),P.withDirectives(P.createVNode(d,null,{default:P.withCtx(()=>[P.createVNode(P.unref(Ple))]),_:1},512),[[P.vShow,!n.loading&&!n.icon]])],64)):P.createCommentVNode("",!0),n.t?(P.openBlock(),P.createElementBlock("span",{key:1,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),pke=P.defineComponent({__name:"SearchButton",props:{...Xr.buttonProps,type:{type:String,default:"primary"},size:{type:String,default:"default"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},t:{type:String,default:""},icon:{type:String,default:""}},emits:["search"],setup(n,{emit:e}){const t=e,r=n;function a(){t("search")}return(i,l)=>{const c=P.resolveComponent("el-icon"),d=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(d,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading,icon:void 0,onClick:P.withModifiers(a,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[n.showIcon?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.icon]]),P.withDirectives(P.createVNode(c,null,{default:P.withCtx(()=>[P.createVNode(P.unref(Fle))]),_:1},512),[[P.vShow,!n.loading&&!n.icon]])],64)):P.createCommentVNode("",!0),n.t?(P.openBlock(),P.createElementBlock("span",{key:1,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),gke=P.defineComponent({__name:"ResetButton",props:{...Xr.buttonProps,type:{type:String,default:"warning"},size:{type:String,default:"default"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},t:{type:String,default:""},icon:{type:String,default:""}},emits:["reset"],setup(n,{emit:e}){const t=e,r=n;function a(){t("reset")}return(i,l)=>{const c=P.resolveComponent("el-icon"),d=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(d,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading,icon:void 0,onClick:P.withModifiers(a,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[n.showIcon?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.icon]]),P.withDirectives(P.createVNode(c,null,{default:P.withCtx(()=>[P.createVNode(P.unref(b3e))]),_:1},512),[[P.vShow,!n.loading&&!n.icon]])],64)):P.createCommentVNode("",!0),n.t?(P.openBlock(),P.createElementBlock("span",{key:1,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),mke=P.defineComponent({__name:"ModifyButton",props:{...Xr.buttonProps,type:{type:String,default:"primary"},size:{type:String,default:"small"},showIcon:{type:Boolean,default:!0},link:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:{type:String,default:""},t:{type:String,default:"base.modify"}},emits:["modify"],setup(n,{emit:e}){const t=e,r=n;function a(){t("modify")}return(i,l)=>{const c=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(c,P.mergeProps(r,{size:n.size,link:n.link,type:n.type,disabled:n.disabled,loading:n.loading,icon:void 0,onClick:P.withModifiers(a,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.showIcon]]),n.t?(P.openBlock(),P.createElementBlock("span",{key:0,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","link","type","disabled","loading"])}}}),vke=P.defineComponent({__name:"RequestButton",props:{...Xr.buttonProps,type:{type:String,default:"warning"},size:{type:String,default:"default"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},icon:{type:String,default:"icon-sync"},refresh:{type:Function,default:()=>{}},t:{type:String,default:""}},emits:["click"],setup(n,{emit:e}){const t=e,r=n,a=P.ref(!1);async function i(){if(t("click"),typeof r.refresh=="function")try{a.value=!0,await r.refresh()}finally{a.value=!1}}return(l,c)=>{const d=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(d,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading||a.value,icon:void 0,onClick:P.withModifiers(i,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.showIcon]]),n.t?(P.openBlock(),P.createElementBlock("span",{key:0,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),yke=P.defineComponent({__name:"index",props:{mark:{type:Array,default:()=>[]}},setup(n){const e=m0(),t=n,r=P.computed(()=>{var a;return t.mark.length>0?t.mark:[((a=e==null?void 0:e.userInfo)==null?void 0:a.username)||""]});return(a,i)=>{const l=P.resolveComponent("el-watermark");return P.openBlock(),P.createBlock(l,{content:r.value,font:{color:"rgba(0,0,0,.1)"}},{default:P.withCtx(()=>[P.renderSlot(a.$slots,"default")]),_:3},8,["content"])}}}),bke=P.defineComponent({__name:"BasicAvatar",props:{...Xr.avatarProps,src:{type:String,default:""},size:{type:String,default:"default"},icon:{type:String,default:"icon-image-fill"}},setup(n){const e=n,t=P.computed(()=>{switch(e.size){case"small":return"14px";case"default":return"20px";case"large":return"26px";default:return"20px"}});return(r,a)=>{const i=P.resolveComponent("el-avatar");return P.openBlock(),P.createBlock(i,P.mergeProps(e,{src:n.src,icon:void 0}),{default:P.withCtx(()=>[P.createElementVNode("i",{class:P.normalizeClass(["icon iconfont error-icon",n.icon]),style:P.normalizeStyle({fontSize:t.value})},null,6)]),_:1},16,["src"])}}}),rD=(n,e,t)=>{const r=nD(),a=Array.isArray(n)?n.reduce((p,v)=>[...p,...v.requesting??[]],[]):n.requesting??[],i=P.computed(()=>[...a,...e??[]]),l=Array.isArray(n)?n.reduce((p,v)=>[...p,...v.executing??[]],[]):n.executing??[],c=P.computed(()=>[...l,...t??[]]),d=P.computed(()=>((r==null?void 0:r.requesting)??[]).some(p=>i.value.includes(p))),h=P.computed(()=>((r==null?void 0:r.executing)??[]).some(p=>c.value.includes(p)));return{requesting:d,executing:h}},uq=(n,e,t,r,a,i)=>{const l=Gp.useRoute(),c=jP(),d=P.ref(),h=P.ref(!1),{requesting:p,executing:v}=rD(t),y=P.reactive(_y(e)),_=P.computed(()=>{let ee=A();return(Y="")=>{let ne;return Y||(Y="menu."+String(l.name)),ee in y&&!y[ee]?ne=$r("base.create base.space "+Y):ne=$r("base.update base.space "+Y),ne}}),w=P.computed(()=>{const ee=A();return y[ee]?a||(t?t.urls[EB]:""):r||(t?t.urls[SB]:"")});function A(){return"primaryKey"in t&&t.primaryKey!==""?t.primaryKey:"id"}function T(ee){ee?!ee||!ee.length||kP(ee)?h.value=!0:Xr.ElNotification.warning({message:$r("err.permission.denied")}):h.value=!0}function k(...[ee,Y,ne,z]){if(Y&&Y.length&&!kP(Y)){Xr.ElNotification.warning({message:$r("err.permission.denied")});return}const be=ne||t.urls[bB];if(!be){Xr.ElNotification.warning({message:$r("err.request.url_empty")});return}il(be,{...ee}).then(ye=>{const{data:Te}=ye;h.value=!0,P.nextTick(()=>{R(y,Te),z&&z()})})}function R(ee,Y,ne){if(!Y)return ee;ne||(ne=Object.keys(ee));for(const z of ne)if(ne.includes(z)){const be=Y[z];ee[z]=["undefined"," - ","-"].includes(String(be))?void 0:be}return ee}function O(ee){const Y=_y(ee);for(const ne in Y)ne in ee&&!ee[ne]&&delete Y[ne];return Y}function I(){[...i??[],...(t==null?void 0:t.cacheKey)??[]].forEach(ee=>c.REMOVE_CACHE(ee))}function G(ee,Y){const{data:ne}=ee;let z={message:ee.message};Xr.ElNotification.success(z),Y?(I(),oe(!0)):R(y,ne)}function Z(ee){console.error(ee),h.value=!0}function q(ee=!0,Y){v.value||d.value.validate().then(ne=>{if(ne){const z=Y||(w==null?void 0:w.value);if(!z){Xr.ElNotification.warning({message:$r("err.request.url_empty")});return}il(z,O(y)).then(be=>G(be,ee)).catch(be=>{Z(be)})}}).catch(ne=>{console.error("Submit Error:",ne)})}function re(){var ee,Y;(ee=d.value)==null||ee.resetFields(),(Y=d.value)==null||Y.clearValidate(),Object.assign(y,_y(e))}function oe(ee=!1){h.value&&(h.value=!1),P.nextTick(()=>{re(),ee&&n("refresh")})}return{modal:h,form:d,formData:y,trimData:O,setField:R,title:_,open:T,modify:k,clean:re,closed:oe,submit:q,requesting:p,executing:v}},bce=()=>{const n=P.ref(),e=P.computed(()=>{var i;return(i=n.value)==null?void 0:i.formData}),t=P.computed(()=>{var i;return(i=n.value)==null?void 0:i.modal}),r=P.computed(()=>{var i;return(i=n.value)==null?void 0:i.requesting}),a=P.computed(()=>{var i;return(i=n.value)==null?void 0:i.executing});return{formRef:n,formData:e,modal:t,requesting:r,executing:a,title:(i="")=>{var l;return(l=n.value)==null?void 0:l.title(i)},open:()=>{var i;return(i=n.value)==null?void 0:i.open()},modify:(...i)=>{var l;return(l=n.value)==null?void 0:l.modify(...i)},submit:(i=!0,l)=>{var c;return(c=n.value)==null?void 0:c.submit(i,l)},closed:(i=!1)=>{var l;return(l=n.value)==null?void 0:l.closed(i)}}},tF=(n,e,t,r)=>{const a=jP(),{labelKey:i="",valueKey:l="",autoRefresh:c=!0}=r||{},d=P.computed({get:()=>n.value,set:re=>q(re)}),h=P.computed({get:()=>n.value,set:re=>q(re)}),p=P.computed({get:()=>n.value,set:re=>q(re)}),v=P.computed({get:()=>n.value,set:re=>q(re)}),y=P.computed({get:()=>n.value,set:re=>q(re)}),_=P.ref([]),w=P.ref([]);function A(re,oe){oe?oe(re):w.value=_.value.filter(ee=>(ee.label??"").toString().toLowerCase().includes(re.toLowerCase()))}const T=re=>re.map(oe=>{var ee;return{...oe,label:i?oe[i]:(oe==null?void 0:oe.label)||(oe==null?void 0:oe.name),value:l?oe[l]:(oe==null?void 0:oe.value)||(oe==null?void 0:oe[(ee=t==null?void 0:t.api)==null?void 0:ee.primaryKey])}});async function k(re=!1){t&&await a.GET_CACHE({...t,force:re}).then(oe=>{_.value=typeof(r==null?void 0:r.formatOptions)=="function"?r.formatOptions(oe):T(oe),w.value=typeof(r==null?void 0:r.formatOptions)=="function"?r.formatOptions(oe):T(oe)})}function R(re){e("select",re)}function O(re){e("change",re)}function I(){e("clear")}function G(re){e("blur",re)}function Z(re){e("focus",re)}function q(re){e("update:modelValue",re),e("update:value",re)}return c&&k(!1),{value:d,id:h,ids:p,key:v,keys:y,options:w,cacheData:_,refresh:k,select:R,change:O,clear:I,blur:G,focus:Z,filterOptions:A}},fq=()=>{const n=jp();return{changePrimary:t=>{t||(t=Ei().defaultAppConfig.DEFAULT_PRIMARY,Xr.ElMessage({type:"success",message:`主题颜色已重置为 ${t}`})),document.documentElement.style.setProperty("--el-color-primary",t),n.setGlobalState("primary",t)}}},xce=(n={})=>{const e=P.ref(),t=P.ref(),r=P.reactive({...n});return{tableRef:e,formModalRef:t,keyword:r,refresh:()=>{var h;(h=e.value)==null||h.getTableList()},search:h=>{var p;(p=e.value)==null||p.search(h)},reset:()=>{var h;Object.assign(r,n),(h=e.value)==null||h.reset()},openFormModal:()=>{var h;(h=t.value)==null||h.open()},editFormModal:(...h)=>{var p;(p=t.value)==null||p.modify(...h)}}};/*! *****************************************************************************
|
|
131
|
+
`));return be(St.split(""),r).length},Ue=(it,Et)=>{const St=Te(it,Et).join("");return Ce(St)},Ee=(it,Et)=>{const St=Te(it,Et).join("").replace(/\s/g,"");return Ce(St)},Me=(it,Et)=>()=>Et(it.getBody(),it.schema),Fe=(it,Et)=>()=>Et(it.selection.getRng().cloneContents(),it.schema),Ye=it=>Me(it,We),at=it=>({body:{getWordCount:Ye(it),getCharacterCount:Me(it,Ue),getCharacterCountWithoutSpaces:Me(it,Ee)},selection:{getWordCount:Fe(it,We),getCharacterCount:Fe(it,Ue),getCharacterCountWithoutSpaces:Fe(it,Ee)},getCount:Ye(it)}),Nt=(it,Et)=>{it.windowManager.open({title:"Word Count",body:{type:"panel",items:[{type:"table",header:["Count","Document","Selection"],cells:[["Words",String(Et.body.getWordCount()),String(Et.selection.getWordCount())],["Characters (no spaces)",String(Et.body.getCharacterCountWithoutSpaces()),String(Et.selection.getCharacterCountWithoutSpaces())],["Characters",String(Et.body.getCharacterCount()),String(Et.selection.getCharacterCount())]]}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}]})},en=(it,Et)=>{it.addCommand("mceWordCount",()=>Nt(it,Et))};var le=tinymce.util.Tools.resolve("tinymce.util.Delay");const Pt=(it,Et)=>{it.dispatch("wordCountUpdate",{wordCount:{words:Et.body.getWordCount(),characters:Et.body.getCharacterCount(),charactersWithoutSpaces:Et.body.getCharacterCountWithoutSpaces()}})},Xt=(it,Et)=>{Pt(it,Et)},kt=(it,Et,St)=>{const Qe=i(()=>Xt(it,Et),St);it.on("init",()=>{Xt(it,Et),le.setEditorTimeout(it,()=>{it.on("SetContent BeforeAddUndo Undo Redo ViewUpdate keyup",Qe.throttle)},0),it.on("remove",Qe.cancel)})},ln=it=>{const Et=()=>it.execCommand("mceWordCount");it.ui.registry.addButton("wordcount",{tooltip:"Word count",icon:"character-count",onAction:Et,context:"any"}),it.ui.registry.addMenuItem("wordcount",{text:"Word count",icon:"character-count",onAction:Et,context:"any"})};var zn=(it=300)=>{n.add("wordcount",Et=>{const St=at(Et);return en(Et,St),ln(Et),kt(Et,St,it),St})};zn()}()),uce}var dce;function ske(){return dce||(dce=1,ike()),cce}ske();var hce={},pce={},gce;function lke(){return gce||(gce=1,function(){var n=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(c,d)=>{c.focus(),c.undoManager.transact(()=>{c.setContent(d)}),c.selection.setCursorLocation(),c.nodeChanged()},t=c=>c.getContent({source_view:!0}),r=c=>{const d=t(c);c.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:d},onSubmit:h=>{e(c,h.getData().code),h.close()}})},a=c=>{c.addCommand("mceCodeEditor",()=>{r(c)})},i=c=>{const d=()=>c.execCommand("mceCodeEditor");c.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:d}),c.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:d})};var l=()=>{n.add("code",c=>(a(c),i(c),{}))};l()}()),pce}var mce;function cke(){return mce||(mce=1,lke()),hce}cke(),tinymce.addI18n("zh_CN",{Redo:"重做",Undo:"撤销",Cut:"剪切",Copy:"复制",Paste:"粘贴","Select all":"全选","New document":"新文件",Ok:"确定",Cancel:"取消","Visual aids":"网格线",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Superscript:"上标",Subscript:"下标","Clear formatting":"清除格式","Align left":"左边对齐","Align center":"中间对齐","Align right":"右边对齐",Justify:"两端对齐","Bullet list":"项目符号","Numbered list":"编号列表","Decrease indent":"减少缩进","Increase indent":"增加缩进",Close:"关闭",Formats:"格式","Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.":"你的浏览器不支持打开剪贴板,请使用Ctrl+X/C/V等快捷键。",Headers:"标题","Header 1":"标题1","Header 2":"标题2","Header 3":"标题3","Header 4":"标题4","Header 5":"标题5","Header 6":"标题6",Headings:"标题","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4","Heading 5":"标题5","Heading 6":"标题6",Preformatted:"预先格式化的",Div:"Div",Pre:"Pre",Code:"代码",Paragraph:"段落",Blockquote:"引文区块",Inline:"文本",Blocks:"基块","Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.":"当前为纯文本粘贴模式,再次点击可以回到普通粘贴模式。",Fonts:"字体","Font Sizes":"字号",Class:"类型","Browse for an image":"浏览图像",OR:"或","Drop an image here":"拖放一张图像至此",Upload:"上传",Block:"块",Align:"对齐",Default:"默认",Circle:"空心圆",Disc:"实心圆",Square:"方块","Lower Alpha":"小写英文字母","Lower Greek":"小写希腊字母","Lower Roman":"小写罗马字母","Upper Alpha":"大写英文字母","Upper Roman":"大写罗马字母","Anchor...":"锚点...",Name:"名称",Id:"标识符","Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.":"标识符应该以字母开头,后跟字母、数字、破折号、点、冒号或下划线。","You have unsaved changes are you sure you want to navigate away?":"你还有文档尚未保存,确定要离开?","Restore last draft":"恢复上次的草稿","Special character...":"特殊字符...","Source code":"源代码","Insert/Edit code sample":"插入/编辑代码示例",Language:"语言","Code sample...":"示例代码...","Color Picker":"选色器",R:"R",G:"G",B:"B","Left to right":"从左到右","Right to left":"从右到左",Emoticons:"表情","Emoticons...":"表情符号...","Metadata and Document Properties":"元数据和文档属性",Title:"标题",Keywords:"关键词",Description:"描述",Robots:"机器人",Author:"作者",Encoding:"编码",Fullscreen:"全屏",Action:"操作",Shortcut:"快捷键",Help:"帮助",Address:"地址","Focus to menubar":"移动焦点到菜单栏","Focus to toolbar":"移动焦点到工具栏","Focus to element path":"移动焦点到元素路径","Focus to contextual toolbar":"移动焦点到上下文菜单","Insert link (if link plugin activated)":"插入链接 (如果链接插件已激活)","Save (if save plugin activated)":"保存(如果保存插件已激活)","Find (if searchreplace plugin activated)":"查找(如果查找替换插件已激活)","Plugins installed ({0}):":"已安装插件 ({0}):","Premium plugins:":"优秀插件:","Learn more...":"了解更多...","You are using {0}":"你正在使用 {0}",Plugins:"插件","Handy Shortcuts":"快捷键","Horizontal line":"水平分割线","Insert/edit image":"插入/编辑图片","Alternative description":"替代描述",Accessibility:"辅助功能","Image is decorative":"图像是装饰性的",Source:"地址",Dimensions:"大小","Constrain proportions":"保持纵横比",General:"普通",Advanced:"高级",Style:"样式","Vertical space":"垂直边距","Horizontal space":"水平边距",Border:"边框","Insert image":"插入图片","Image...":"图片...","Image list":"图片列表","Rotate counterclockwise":"逆时针旋转","Rotate clockwise":"顺时针旋转","Flip vertically":"垂直翻转","Flip horizontally":"水平翻转","Edit image":"编辑图片","Image options":"图片选项","Zoom in":"放大","Zoom out":"缩小",Crop:"裁剪",Resize:"调整大小",Orientation:"方向",Brightness:"亮度",Sharpen:"锐化",Contrast:"对比度","Color levels":"颜色层次",Gamma:"伽马值",Invert:"反转",Apply:"应用",Back:"后退","Insert date/time":"插入日期/时间","Date/time":"日期/时间","Insert/edit link":"插入/编辑链接","Text to display":"显示文字",Url:"地址","Open link in...":"链接打开位置...","Current window":"当前窗口",None:"无","New window":"在新窗口打开","Open link":"打开链接","Remove link":"删除链接",Anchors:"锚点","Link...":"链接...","Paste or type a link":"粘贴或输入链接","The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?":"你所填写的URL地址为邮件地址,需要加上mailto:前缀吗?","The URL you entered seems to be an external link. Do you want to add the required http:// prefix?":"你所填写的URL地址属于外部链接,需要加上http://:前缀吗?","The URL you entered seems to be an external link. Do you want to add the required https:// prefix?":"您输入的 URL 似乎是一个外部链接。您想添加所需的 https:// 前缀吗?","Link list":"链接列表","Insert video":"插入视频","Insert/edit video":"插入/编辑视频","Insert/edit media":"插入/编辑媒体","Alternative source":"镜像","Alternative source URL":"替代来源网址","Media poster (Image URL)":"封面(图片地址)","Paste your embed code below:":"将内嵌代码粘贴在下面:",Embed:"内嵌","Media...":"多媒体...","Nonbreaking space":"不间断空格","Page break":"分页符","Paste as text":"粘贴为文本",Preview:"预览","Print...":"打印...",Save:"保存",Find:"查找","Replace with":"替换为",Replace:"替换","Replace all":"全部替换",Previous:"上一个",Next:"下一个","Find and Replace":"查找和替换","Find and replace...":"查找并替换...","Could not find the specified string.":"未找到搜索内容.","Match case":"区分大小写","Find whole words only":"全字匹配","Find in selection":"在选区中查找",Spellcheck:"拼写检查","Spellcheck Language":"拼写检查语言","No misspellings found.":"没有发现拼写错误",Ignore:"忽略","Ignore all":"全部忽略",Finish:"完成","Add to Dictionary":"添加到字典","Insert table":"插入表格","Table properties":"表格属性","Delete table":"删除表格",Cell:"单元格",Row:"行",Column:"列","Cell properties":"单元格属性","Merge cells":"合并单元格","Split cell":"拆分单元格","Insert row before":"在上方插入","Insert row after":"在下方插入","Delete row":"删除行","Row properties":"行属性","Cut row":"剪切行","Copy row":"复制行","Paste row before":"粘贴到上方","Paste row after":"粘贴到下方","Insert column before":"在左侧插入","Insert column after":"在右侧插入","Delete column":"删除列",Cols:"列",Rows:"行",Width:"宽",Height:"高","Cell spacing":"单元格外间距","Cell padding":"单元格内边距",Caption:"标题","Show caption":"显示标题",Left:"左对齐",Center:"居中",Right:"右对齐","Cell type":"单元格类型",Scope:"范围",Alignment:"对齐方式","H Align":"水平对齐","V Align":"垂直对齐",Top:"顶部对齐",Middle:"垂直居中",Bottom:"底部对齐","Header cell":"表头单元格","Row group":"行组","Column group":"列组","Row type":"行类型",Header:"表头",Body:"表体",Footer:"表尾","Border color":"边框颜色","Insert template...":"插入模板...",Templates:"模板",Template:"模板","Text color":"文字颜色","Background color":"背景色","Custom...":"自定义...","Custom color":"自定义颜色","No color":"无","Remove color":"移除颜色","Table of Contents":"内容列表","Show blocks":"显示区块边框","Show invisible characters":"显示不可见字符","Word count":"字数",Count:"计数",Document:"文档",Selection:"选择",Words:"单词","Words: {0}":"字数:{0}","{0} words":"{0} 字",File:"文件",Edit:"编辑",Insert:"插入",View:"视图",Format:"格式",Table:"表格",Tools:"工具","Powered by {0}":"由{0}驱动","Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help":"在编辑区按ALT-F9打开菜单,按ALT-F10打开工具栏,按ALT-0查看帮助","Image title":"图片标题","Border width":"边框宽度","Border style":"边框样式",Error:"错误",Warn:"警告",Valid:"有效","To open the popup, press Shift+Enter":"按Shitf+Enter键打开对话框","Rich Text Area. Press ALT-0 for help.":"编辑区。按Alt+0键打开帮助。","System Font":"系统字体","Failed to upload image: {0}":"图片上传失败: {0}","Failed to load plugin: {0} from url {1}":"插件加载失败: {0} 来自链接 {1}","Failed to load plugin url: {0}":"插件加载失败 链接: {0}","Failed to initialize plugin: {0}":"插件初始化失败: {0}",example:"示例",Search:"搜索",All:"全部",Currency:"货币",Text:"文字",Quotations:"引用",Mathematical:"数学","Extended Latin":"拉丁语扩充",Symbols:"符号",Arrows:"箭头","User Defined":"自定义","dollar sign":"美元符号","currency sign":"货币符号","euro-currency sign":"欧元符号","colon sign":"冒号","cruzeiro sign":"克鲁赛罗币符号","french franc sign":"法郎符号","lira sign":"里拉符号","mill sign":"密尔符号","naira sign":"奈拉符号","peseta sign":"比塞塔符号","rupee sign":"卢比符号","won sign":"韩元符号","new sheqel sign":"新谢克尔符号","dong sign":"越南盾符号","kip sign":"老挝基普符号","tugrik sign":"图格里克符号","drachma sign":"德拉克马符号","german penny symbol":"德国便士符号","peso sign":"比索符号","guarani sign":"瓜拉尼符号","austral sign":"澳元符号","hryvnia sign":"格里夫尼亚符号","cedi sign":"塞地符号","livre tournois sign":"里弗弗尔符号","spesmilo sign":"spesmilo符号","tenge sign":"坚戈符号","indian rupee sign":"印度卢比","turkish lira sign":"土耳其里拉","nordic mark sign":"北欧马克","manat sign":"马纳特符号","ruble sign":"卢布符号","yen character":"日元字样","yuan character":"人民币元字样","yuan character, in hong kong and taiwan":"元字样(港台地区)","yen/yuan character variant one":"元字样(大写)","Loading emoticons...":"加载表情符号...","Could not load emoticons":"不能加载表情符号",People:"人类","Animals and Nature":"动物和自然","Food and Drink":"食物和饮品",Activity:"活动","Travel and Places":"旅游和地点",Objects:"物件",Flags:"旗帜",Characters:"字符","Characters (no spaces)":"字符(无空格)","{0} characters":"{0} 个字符","Error: Form submit field collision.":"错误: 表单提交字段冲突。","Error: No form element found.":"错误: 没有表单控件。",Update:"更新","Color swatch":"颜色样本",Turquoise:"青绿色",Green:"绿色",Blue:"蓝色",Purple:"紫色","Navy Blue":"海军蓝","Dark Turquoise":"深蓝绿色","Dark Green":"深绿色","Medium Blue":"中蓝色","Medium Purple":"中紫色","Midnight Blue":"深蓝色",Yellow:"黄色",Orange:"橙色",Red:"红色","Light Gray":"浅灰色",Gray:"灰色","Dark Yellow":"暗黄色","Dark Orange":"深橙色","Dark Red":"深红色","Medium Gray":"中灰色","Dark Gray":"深灰色","Light Green":"浅绿色","Light Yellow":"浅黄色","Light Red":"浅红色","Light Purple":"浅紫色","Light Blue":"浅蓝色","Dark Purple":"深紫色","Dark Blue":"深蓝色",Black:"黑色",White:"白色","Switch to or from fullscreen mode":"切换全屏模式","Open help dialog":"打开帮助对话框",history:"历史",styles:"样式",formatting:"格式化",alignment:"对齐",indentation:"缩进",Font:"字体",Size:"字号","More...":"更多...","Select...":"选择...",Preferences:"首选项",Yes:"是",No:"否","Keyboard Navigation":"键盘指引",Version:"版本","Code view":"代码视图","Open popup menu for split buttons":"打开弹出式菜单,用于拆分按钮","List Properties":"列表属性","List properties...":"标题字体属性","Start list at number":"以数字开始列表","Line height":"行高",comments:"备注","Format Painter":"格式刷","Insert/edit iframe":"插入/编辑框架",Capitalization:"大写",lowercase:"小写",UPPERCASE:"大写","Title Case":"首字母大写","permanent pen":"记号笔","Permanent Pen Properties":"永久笔属性","Permanent pen properties...":"永久笔属性...","case change":"案例更改","page embed":"页面嵌入","Advanced sort...":"高级排序...","Advanced Sort":"高级排序","Sort table by column ascending":"按列升序表","Sort table by column descending":"按列降序表",Sort:"排序",Order:"排序","Sort by":"排序方式",Ascending:"升序",Descending:"降序","Column {0}":"列{0}","Row {0}":"行{0}","Spellcheck...":"拼写检查...","Misspelled word":"拼写错误的单词",Suggestions:"建议",Change:"更改","Finding word suggestions":"查找单词建议",Success:"成功",Repair:"修复","Issue {0} of {1}":"共计{1}问题{0}","Images must be marked as decorative or have an alternative text description":"图像必须标记为装饰性或具有替代文本描述","Images must have an alternative text description. Decorative images are not allowed.":"图像必须具有替代文本描述。不允许使用装饰图像。","Or provide alternative text:":"或提供备选文本:","Make image decorative:":"使图像装饰:","ID attribute must be unique":"ID 属性必须是唯一的","Make ID unique":"使 ID 独一无二","Keep this ID and remove all others":"保留此 ID 并删除所有其他","Remove this ID":"删除此 ID","Remove all IDs":"清除全部IDs",Checklist:"清单",Anchor:"锚点","Special character":"特殊符号","Code sample":"代码示例",Color:"颜色","Document properties":"文档属性","Image description":"图片描述",Image:"图片","Insert link":"插入链接",Target:"打开方式",Link:"链接",Poster:"封面",Media:"媒体",Print:"打印",Prev:"上一个","Find and replace":"查找和替换","Whole words":"全字匹配","Insert template":"插入模板"});const vce=8,uke="undo redo cut copy paste indent2em | image | styleselect fontselect fontsizeselect | lineheight forecolor backcolor bold italic underline strikethrough | code | numlist bullist",fke=P.defineComponent({__name:"index",props:{url:{type:String,required:!1,default:"/upload/image"},content:{type:String,default:""},height:{type:Number,default:0},disabled:{type:Boolean,default:!1}},emits:["update:content"],setup(n,{expose:e,emit:t}){const{requestBaseUrl:r}=Ei(),a=t,i=n;function l(v){const y=r;return v.includes("https://")||v.includes("http://")?v+"?"+new Date().getTime():y+"/"+v+"?"+new Date().getTime()}const c=P.computed({get:()=>i.content||"",set:v=>{a("update:content",v)}}),d=(v,y)=>new Promise((_,w)=>{console.warn("Tinymce Upload",v.blob(),y),v.blob().size/1024/1024>vce&&w({message:"图片大小限制 "+vce+"MB",remove:!0});var A=v.blob();let T=new FormData;T.append("file",A,A.name),T.append("type",A.type),T.append("path","content"),il(i.url,T,"POST","multipart/form-data").then(k=>{k.code==200?_(l(k.data)):w({message:k.message,remove:!0})}).catch(k=>{w({message:k.message,remove:!0})})}),h=P.ref({license_key:"gpl",height:i.height>0?i.height:600,selector:"#editor",language:"zh_CN",skin:"oxide",skin_url:"/skins/ui/oxide",content_css:"/skins/ui/oxide/content.min.css",plugins:"image wordcount code lists",toolbar:uke,toolbar_model:"floating",nonbreaking_force_tab:!0,automatic_uploads:!0,images_file_types:"webp,jpg,jpeg,png,gif,JPG,JPEG,PNG,GIF",custom_undo_redo_levels:30,init_instance_callback:v=>{v.formatter.apply("alignleft")},images_upload_handler:d});function p(){return Gle.EditorManager.activeEditor?Gle.EditorManager.activeEditor.plugins.wordcount.getCount():0}return e({init:h,content:c,words:p}),(v,y)=>(P.openBlock(),P.createElementBlock("div",null,[P.createVNode(P.unref(Q3e),{id:"editor",ref:"editor",disabled:n.disabled,modelValue:c.value,"onUpdate:modelValue":y[0]||(y[0]=_=>c.value=_),init:h.value},null,8,["disabled","modelValue","init"])]))}}),dke=P.defineComponent({__name:"OpenButton",props:{...Xr.buttonProps,type:{type:String,default:"primary"},size:{type:String,default:"default"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},icon:{type:String,default:""},t:{type:String,default:""}},emits:["open"],setup(n,{emit:e}){const t=e,r=n;function a(){t("open")}return(i,l)=>{const c=P.resolveComponent("el-icon"),d=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(d,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading,icon:void 0,onClick:P.withModifiers(a,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[n.showIcon?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.icon]]),P.withDirectives(P.createVNode(c,null,{default:P.withCtx(()=>[P.createVNode(P.unref(JP))]),_:1},512),[[P.vShow,!n.loading&&!n.icon]])],64)):P.createCommentVNode("",!0),n.t?(P.openBlock(),P.createElementBlock("span",{key:1,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),hke=P.defineComponent({__name:"RefreshButton",props:{...Xr.buttonProps,type:{type:String,default:"default"},size:{type:String,default:"default"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},t:{type:String,default:""},refresh:{type:Function,default:()=>{}},icon:{type:String,default:""}},emits:["refresh"],setup(n,{emit:e}){const t=e,r=n,a=P.ref(!1);async function i(){if(t("refresh"),typeof r.refresh=="function")try{a.value=!0,await r.refresh()}finally{a.value=!1}}return(l,c)=>{const d=P.resolveComponent("el-icon"),h=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(h,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading||a.value,icon:void 0,onClick:P.withModifiers(i,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[n.showIcon?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.icon]]),P.withDirectives(P.createVNode(d,null,{default:P.withCtx(()=>[P.createVNode(P.unref(Ple))]),_:1},512),[[P.vShow,!n.loading&&!n.icon]])],64)):P.createCommentVNode("",!0),n.t?(P.openBlock(),P.createElementBlock("span",{key:1,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),yce=P.defineComponent({__name:"InlineRefreshButton",props:{...Xr.buttonProps,type:{type:String,default:"primary"},size:{type:String,default:"small"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!0},text:{type:Boolean,default:!0},t:{type:String,default:""},refresh:{type:Function,default:()=>{}},icon:{type:String,default:""}},emits:["refresh"],setup(n,{emit:e}){const t=e,r=n,a=P.ref(!1);async function i(){if(t("refresh"),typeof r.refresh=="function")try{a.value=!0,await r.refresh()}finally{a.value=!1}}return(l,c)=>{const d=P.resolveComponent("el-icon"),h=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(h,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading||a.value,icon:void 0,onClick:P.withModifiers(i,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[n.showIcon?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.icon]]),P.withDirectives(P.createVNode(d,null,{default:P.withCtx(()=>[P.createVNode(P.unref(Ple))]),_:1},512),[[P.vShow,!n.loading&&!n.icon]])],64)):P.createCommentVNode("",!0),n.t?(P.openBlock(),P.createElementBlock("span",{key:1,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),pke=P.defineComponent({__name:"SearchButton",props:{...Xr.buttonProps,type:{type:String,default:"primary"},size:{type:String,default:"default"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},t:{type:String,default:""},icon:{type:String,default:""}},emits:["search"],setup(n,{emit:e}){const t=e,r=n;function a(){t("search")}return(i,l)=>{const c=P.resolveComponent("el-icon"),d=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(d,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading,icon:void 0,onClick:P.withModifiers(a,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[n.showIcon?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.icon]]),P.withDirectives(P.createVNode(c,null,{default:P.withCtx(()=>[P.createVNode(P.unref(Fle))]),_:1},512),[[P.vShow,!n.loading&&!n.icon]])],64)):P.createCommentVNode("",!0),n.t?(P.openBlock(),P.createElementBlock("span",{key:1,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),gke=P.defineComponent({__name:"ResetButton",props:{...Xr.buttonProps,type:{type:String,default:"warning"},size:{type:String,default:"default"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},t:{type:String,default:""},icon:{type:String,default:""}},emits:["reset"],setup(n,{emit:e}){const t=e,r=n;function a(){t("reset")}return(i,l)=>{const c=P.resolveComponent("el-icon"),d=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(d,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading,icon:void 0,onClick:P.withModifiers(a,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[n.showIcon?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.icon]]),P.withDirectives(P.createVNode(c,null,{default:P.withCtx(()=>[P.createVNode(P.unref(b3e))]),_:1},512),[[P.vShow,!n.loading&&!n.icon]])],64)):P.createCommentVNode("",!0),n.t?(P.openBlock(),P.createElementBlock("span",{key:1,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),mke=P.defineComponent({__name:"ModifyButton",props:{...Xr.buttonProps,type:{type:String,default:"primary"},size:{type:String,default:"small"},showIcon:{type:Boolean,default:!0},link:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:{type:String,default:""},t:{type:String,default:"base.modify"}},emits:["modify"],setup(n,{emit:e}){const t=e,r=n;function a(){t("modify")}return(i,l)=>{const c=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(c,P.mergeProps(r,{size:n.size,link:n.link,type:n.type,disabled:n.disabled,loading:n.loading,icon:void 0,onClick:P.withModifiers(a,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.showIcon]]),n.t?(P.openBlock(),P.createElementBlock("span",{key:0,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","link","type","disabled","loading"])}}}),vke=P.defineComponent({__name:"RequestButton",props:{...Xr.buttonProps,type:{type:String,default:"warning"},size:{type:String,default:"default"},showIcon:{type:Boolean,default:!0},circle:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},icon:{type:String,default:"icon-sync"},refresh:{type:Function,default:()=>{}},t:{type:String,default:""}},emits:["click"],setup(n,{emit:e}){const t=e,r=n,a=P.ref(!1);async function i(){if(t("click"),typeof r.refresh=="function")try{a.value=!0,await r.refresh()}finally{a.value=!1}}return(l,c)=>{const d=P.resolveComponent("el-button");return P.openBlock(),P.createBlock(d,P.mergeProps(r,{size:n.size,type:n.type,circle:n.circle&&!n.t,plain:n.plain,disabled:n.disabled,loading:n.loading||a.value,icon:void 0,onClick:P.withModifiers(i,["stop"])}),{loading:P.withCtx(()=>[P.createVNode(P.unref(jx))]),default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("i",{class:P.normalizeClass(`icon iconfont ${n.icon}`)},null,2),[[P.vShow,!n.loading&&n.showIcon]]),n.t?(P.openBlock(),P.createElementBlock("span",{key:0,style:P.normalizeStyle({marginLeft:n.icon?"4px":"0"})},P.toDisplayString(P.unref($r)(n.t)),5)):P.createCommentVNode("",!0)]),_:1},16,["size","type","circle","plain","disabled","loading"])}}}),yke=P.defineComponent({__name:"index",props:{mark:{type:Array,default:()=>[]}},setup(n){const e=m0(),t=n,r=P.computed(()=>{var a;return t.mark.length>0?t.mark:[((a=e==null?void 0:e.userInfo)==null?void 0:a.username)||""]});return(a,i)=>{const l=P.resolveComponent("el-watermark");return P.openBlock(),P.createBlock(l,{content:r.value,font:{color:"rgba(0,0,0,.1)"}},{default:P.withCtx(()=>[P.renderSlot(a.$slots,"default")]),_:3},8,["content"])}}}),bke=P.defineComponent({__name:"BasicAvatar",props:{...Xr.avatarProps,src:{type:String,default:""},size:{type:String,default:"default"},icon:{type:String,default:"icon-image-fill"}},setup(n){const e=n,t=P.computed(()=>{switch(e.size){case"small":return"14px";case"default":return"20px";case"large":return"26px";default:return"20px"}});return(r,a)=>{const i=P.resolveComponent("el-avatar");return P.openBlock(),P.createBlock(i,P.mergeProps(e,{src:n.src,icon:void 0}),{default:P.withCtx(()=>[P.createElementVNode("i",{class:P.normalizeClass(["icon iconfont error-icon",n.icon]),style:P.normalizeStyle({fontSize:t.value})},null,6)]),_:1},16,["src"])}}}),rD=(n,e,t)=>{const r=nD(),a=Array.isArray(n)?n.reduce((p,v)=>[...p,...v.requesting??[]],[]):n.requesting??[],i=P.computed(()=>[...a,...e??[]]),l=Array.isArray(n)?n.reduce((p,v)=>[...p,...v.executing??[]],[]):n.executing??[],c=P.computed(()=>[...l,...t??[]]),d=P.computed(()=>((r==null?void 0:r.requesting)??[]).some(p=>i.value.includes(p))),h=P.computed(()=>((r==null?void 0:r.executing)??[]).some(p=>c.value.includes(p)));return{requesting:d,executing:h}},uq=(n,e,t,r,a,i)=>{const l=Gp.useRoute(),c=jP(),d=P.ref(),h=P.ref(!1),{requesting:p,executing:v}=rD(t),y=P.reactive(_y(e)),_=P.computed(()=>{let ee=A();return(Y="")=>{let ne;return Y||(Y="menu."+String(l.name)),ee in y&&!y[ee]?ne=$r("base.create base.space "+Y):ne=$r("base.update base.space "+Y),ne}}),w=P.computed(()=>{const ee=A();return y[ee]?a||(t?t.urls[EB]:""):r||(t?t.urls[SB]:"")});function A(){return"primaryKey"in t&&t.primaryKey!==""?t.primaryKey:"id"}function T(ee){ee?!ee||!ee.length||kP(ee)?h.value=!0:Xr.ElNotification.warning({message:$r("err.permission.denied")}):h.value=!0}function k(...[ee,Y,ne,z]){if(Y&&Y.length&&!kP(Y)){Xr.ElNotification.warning({message:$r("err.permission.denied")});return}const be=ne||t.urls[bB];if(!be){Xr.ElNotification.warning({message:$r("err.request.url_empty")});return}il(be,{...ee}).then(ye=>{const{data:Te}=ye;h.value=!0,P.nextTick(()=>{R(y,Te),z&&z()})})}function R(ee,Y,ne){if(!Y)return ee;ne||(ne=Object.keys(ee));for(const z of ne)if(ne.includes(z)){const be=Y[z];ee[z]=["undefined"," - ","-"].includes(String(be))?void 0:be}return ee}function O(ee){const Y=_y(ee);for(const ne in Y)ne in ee&&!ee[ne]&&delete Y[ne];return Y}function I(){[...i??[],...(t==null?void 0:t.cacheKey)??[]].forEach(ee=>c.REMOVE_CACHE(ee))}function G(ee,Y){const{data:ne}=ee;let z={message:ee.message};Xr.ElNotification.success(z),Y?(I(),oe(!0)):R(y,ne)}function Z(ee){console.error(ee),h.value=!0}function q(ee=!0,Y){v.value||d.value.validate().then(ne=>{if(ne){const z=Y||(w==null?void 0:w.value);if(!z){Xr.ElNotification.warning({message:$r("err.request.url_empty")});return}il(z,O(y)).then(be=>G(be,ee)).catch(be=>{Z(be)})}}).catch(ne=>{console.error("Submit Error:",ne)})}function re(){var ee,Y;(ee=d.value)==null||ee.resetFields(),(Y=d.value)==null||Y.clearValidate(),Object.assign(y,_y(e))}function oe(ee=!1){h.value&&(h.value=!1),P.nextTick(()=>{re(),ee&&n("refresh")})}return{modal:h,form:d,formData:y,trimData:O,setField:R,title:_,open:T,modify:k,clean:re,closed:oe,submit:q,requesting:p,executing:v}},bce=()=>{const n=P.ref(),e=P.computed(()=>{var i;return(i=n.value)==null?void 0:i.formData}),t=P.computed(()=>{var i;return(i=n.value)==null?void 0:i.modal}),r=P.computed(()=>{var i;return(i=n.value)==null?void 0:i.requesting}),a=P.computed(()=>{var i;return(i=n.value)==null?void 0:i.executing});return{formRef:n,formData:e,modal:t,requesting:r,executing:a,title:(i="")=>{var l;return(l=n.value)==null?void 0:l.title(i)},open:()=>{var i;return(i=n.value)==null?void 0:i.open()},modify:(...i)=>{var l;return(l=n.value)==null?void 0:l.modify(...i)},submit:(i=!0,l)=>{var c;return(c=n.value)==null?void 0:c.submit(i,l)},closed:(i=!1)=>{var l;return(l=n.value)==null?void 0:l.closed(i)}}},tF=(n,e,t,r)=>{const a=jP(),{labelKey:i="",valueKey:l="",autoRefresh:c=!0}=r||{},d=P.computed({get:()=>n.value,set:re=>q(re)}),h=P.computed({get:()=>n.value,set:re=>q(re)}),p=P.computed({get:()=>n.value,set:re=>q(re)}),v=P.computed({get:()=>n.value,set:re=>q(re)}),y=P.computed({get:()=>n.value,set:re=>q(re)}),_=P.ref([]),w=P.ref([]);function A(re,oe){oe?oe(re):w.value=_.value.filter(ee=>(ee.label??"").toString().toLowerCase().includes(re.toLowerCase()))}const T=re=>re.map(oe=>{var ee;return{...oe,label:i?oe[i]:(oe==null?void 0:oe.label)||(oe==null?void 0:oe.name),value:l?oe[l]:(oe==null?void 0:oe.value)||(oe==null?void 0:oe[(ee=t==null?void 0:t.api)==null?void 0:ee.primaryKey])}});async function k(re=!1){t&&await a.GET_CACHE({...t,force:re}).then(oe=>{_.value=typeof(r==null?void 0:r.formatOptions)=="function"?r.formatOptions(oe):T(oe),w.value=typeof(r==null?void 0:r.formatOptions)=="function"?r.formatOptions(oe):T(oe)})}function R(re){e("select",re)}function O(re){e("change",re)}function I(){e("clear")}function G(re){e("blur",re)}function Z(re){e("focus",re)}function q(re){e("update:modelValue",re),e("update:value",re)}return c&&k(!1),{value:d,id:h,ids:p,key:v,keys:y,options:w,cacheData:_,refresh:k,select:R,change:O,clear:I,blur:G,focus:Z,filterOptions:A,formatOptions:T}},fq=()=>{const n=jp();return{changePrimary:t=>{t||(t=Ei().defaultAppConfig.DEFAULT_PRIMARY,Xr.ElMessage({type:"success",message:`主题颜色已重置为 ${t}`})),document.documentElement.style.setProperty("--el-color-primary",t),n.setGlobalState("primary",t)}}},xce=(n={})=>{const e=P.ref(),t=P.ref(),r=P.reactive({...n});return{tableRef:e,formModalRef:t,keyword:r,refresh:()=>{var h;(h=e.value)==null||h.getTableList()},search:h=>{var p;(p=e.value)==null||p.search(h)},reset:()=>{var h;Object.assign(r,n),(h=e.value)==null||h.reset()},openFormModal:()=>{var h;(h=t.value)==null||h.open()},editFormModal:(...h)=>{var p;(p=t.value)==null||p.modify(...h)}}};/*! *****************************************************************************
|
|
132
132
|
Copyright (c) Microsoft Corporation.
|
|
133
133
|
|
|
134
134
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -67,6 +67,7 @@ export declare const HooksUtils: {
|
|
|
67
67
|
blur: (e: unknown) => void;
|
|
68
68
|
focus: (e: unknown) => void;
|
|
69
69
|
filterOptions: (keyword: string, remoteMethod?: (kw: string) => void) => void;
|
|
70
|
+
formatOptions: FormatOptions<T>;
|
|
70
71
|
};
|
|
71
72
|
useTheme: () => {
|
|
72
73
|
changePrimary: (val: string | null) => void;
|
|
@@ -49,5 +49,6 @@ export declare const useSelect: <T extends Record<string, any>, V = ValueType>(p
|
|
|
49
49
|
blur: (e: unknown) => void;
|
|
50
50
|
focus: (e: unknown) => void;
|
|
51
51
|
filterOptions: (keyword: string, remoteMethod?: (kw: string) => void) => void;
|
|
52
|
+
formatOptions: FormatOptions<T>;
|
|
52
53
|
};
|
|
53
54
|
export {};
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const __VERSION__ = "0.2.
|
|
1
|
+
export const __VERSION__ = "0.2.34'
|