8240 lines
1.4 MiB
Plaintext
8240 lines
1.4 MiB
Plaintext
import{aQ as ST,aR as BT,aS as NT,aT as OT,aU as PT,aV as LT,aW as zT,S as He,aX as RT,aY as jT,aZ as FT,ag as VT,a_ as HT,a$ as UT,b0 as WT,aL as Ko,b1 as Gb,b2 as qT,b3 as GT,b4 as $T,b5 as KT,b6 as YT,b7 as QT,b8 as ZT,b9 as JT,ba as XT,f as Zo,bb as eM,t as pe,a0 as ce,R as J,M as we,bc as tM,bd as nM,be as iM,bf as oM,bg as As,bh as rM,y as ze,x as j,bi as sM,bj as aM,bk as cM,bl as lM,bm as dM,bn as uM,bo as hM,bp as gM,bq as mM,br as pM,bs as fM,bt as kM,bu as bM,bv as wM,a as _M,bw as AM,bx as CM,by as vM,bz as yM,bA as xM,bB as DM,bC as EM,bD as TM,bE as MM,k as IM,bF as SM,bG as BM,h as NM,j as OM,i as PM,bH as LM,bI as zM,bJ as RM,bK as jM,bL as FM,bM as VM,z as hn,n as HM,aP as dt,bN as Fc,bO as St,bP as UM,o as WM,e as qM,bQ as GM,bR as $M,bS as KM,q as vs,bT as YM,bU as QM,av as ZM,bV as JM,bW as XM,bX as eI,s as W,bY as tI,p as nI,bZ as iI,b_ as oI,b$ as rI,b as sI,c0 as aI,r as me,c1 as cI,c2 as lI,T as Qe,c3 as ve,Q as ut,c4 as dI,c5 as Wc,c6 as uI,c7 as hI,c8 as gI,c9 as mI,ca as pI,cb as fI,cc as kI,ah as bI,cd as wI,ce as _I,cf as AI,$ as ue,cg as CI,ch as vI,ci as yI,an as xI,cj as DI,ck as EI,cl as TI,cm as MI,u as II,cn as SI,co as BI,cp as NI,cq as OI,cr as PI,cs as LI,ct as zI,cu as RI,cv as jI,cw as FI,cx as VI,cy as HI,H as $b,cz as UI,cA as WI,w as qI,ao as GI,cB as $I,cC as KI,cD as YI,v as R,cE as QI,G as Kb,J as Vc,cF as ZI,cG as ai,cH as JI,_ as en,Y as XI,a5 as $i,U as yn,K as nt,B as Rn,D as Ve,E as Ie,X as ys,C as ci,ab as eS,cI as tS,cJ as nS,cK as iS,cL as Yb,cM as Qb,cN as oS,Z as Yo,A as di,L as xs,O as Zb,P as Jb,F as qc,l as Xb,cO as ae,cP as rS,g as ew,cQ as zn,I as sS,cR as tw,a3 as Hc,cS as aS,a2 as cS,cT as nw,V as li,a4 as iw,cU as lS,m as dS,cV as uS,cW as hS}from"./index-4816616b.js";import{V as gS,a as mS}from"./VCarouselItem-1b0666d7.js";import{V as Gc}from"./VContainer-f8936263.js";import{V as Uc}from"./VTextarea-928c9a69.js";import{n as pS}from"./news-card-8c1603ac.js";import{L as fS}from"./load-round-e30b3c6e.js";import{V as kS}from"./vcardUser-44f8c7ae.js";import{V as Qo}from"./VTextField-2f21d5d7.js";import{V as $c,b as bS}from"./VList-8fe115c1.js";import{V as ow}from"./VSwitch-ad7273f7.js";import{V as rw}from"./VFileInput-02e04e95.js";import{V as wS}from"./VForm-cd07350e.js";import{V as _S}from"./VAutocomplete-c790feda.js";import{V as AS}from"./VSpacer-e2d3c14d.js";import{V as CS,a as vS}from"./VLocaleProvider-47214fbc.js";import"./VWindowItem-4abb76a3.js";import"./ssrBoot-6c8daaae.js";/* empty css */import"./VField-dec3ff96.js";import"./VInput-0a2d3640.js";import"./icoUser-a5391f72.js";import"./VSelectionControl-7147a3b5.js";import"./VSelect-23fbf475.js";import"./VVirtualScroll-89616fae.js";import"./VCheckboxBtn-ff493619.js";/**
|
||
* vue v3.4.27
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const yS=()=>{},xS=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:ST,BaseTransitionPropsValidators:BT,Comment:NT,DeprecationTypes:OT,EffectScope:PT,ErrorCodes:LT,ErrorTypeStrings:zT,Fragment:He,KeepAlive:RT,ReactiveEffect:jT,Static:FT,Suspense:VT,Teleport:HT,Text:UT,TrackOpTypes:WT,Transition:Ko,TransitionGroup:Gb,TriggerOpTypes:qT,VueElement:GT,assertNumber:$T,callWithAsyncErrorHandling:KT,callWithErrorHandling:YT,camelize:QT,capitalize:ZT,cloneVNode:JT,compatUtils:XT,compile:yS,computed:Zo,createApp:eM,createBlock:pe,createCommentVNode:ce,createElementBlock:J,createElementVNode:we,createHydrationRenderer:tM,createPropsRestProxy:nM,createRenderer:iM,createSSRApp:oM,createSlots:As,createStaticVNode:rM,createTextVNode:ze,createVNode:j,customRef:sM,defineAsyncComponent:aM,defineComponent:cM,defineCustomElement:lM,defineEmits:dM,defineExpose:uM,defineModel:hM,defineOptions:gM,defineProps:mM,defineSSRCustomElement:pM,defineSlots:fM,devtools:kM,effect:bM,effectScope:wM,getCurrentInstance:_M,getCurrentScope:AM,getTransitionRawChildren:CM,guardReactiveProps:vM,h:yM,handleError:xM,hasInjectionContext:DM,hydrate:EM,initCustomFormatter:TM,initDirectivesForSSR:MM,inject:IM,isMemoSame:SM,isProxy:BM,isReactive:NM,isReadonly:OM,isRef:PM,isRuntimeOnly:LM,isShallow:zM,isVNode:RM,markRaw:jM,mergeDefaults:FM,mergeModels:VM,mergeProps:hn,nextTick:HM,normalizeClass:dt,normalizeProps:Fc,normalizeStyle:St,onActivated:UM,onBeforeMount:WM,onBeforeUnmount:qM,onBeforeUpdate:GM,onDeactivated:$M,onErrorCaptured:KM,onMounted:vs,onRenderTracked:YM,onRenderTriggered:QM,onScopeDispose:ZM,onServerPrefetch:JM,onUnmounted:XM,onUpdated:eI,openBlock:W,popScopeId:tI,provide:nI,proxyRefs:iI,pushScopeId:oI,queuePostFlushCb:rI,reactive:sI,readonly:aI,ref:me,registerRuntimeCompiler:cI,render:lI,renderList:Qe,renderSlot:ve,resolveComponent:ut,resolveDirective:dI,resolveDynamicComponent:Wc,resolveFilter:uI,resolveTransitionHooks:hI,setBlockTracking:gI,setDevtoolsHook:mI,setTransitionHooks:pI,shallowReactive:fI,shallowReadonly:kI,shallowRef:bI,ssrContextKey:wI,ssrUtils:_I,stop:AI,toDisplayString:ue,toHandlerKey:CI,toHandlers:vI,toRaw:yI,toRef:xI,toRefs:DI,toValue:EI,transformVNodeArgs:TI,triggerRef:MI,unref:II,useAttrs:SI,useCssModule:BI,useCssVars:NI,useModel:OI,useSSRContext:PI,useSlots:LI,useTransitionState:zI,vModelCheckbox:RI,vModelDynamic:jI,vModelRadio:FI,vModelSelect:VI,vModelText:HI,vShow:$b,version:UI,warn:WI,watch:qI,watchEffect:GI,watchPostEffect:$I,watchSyncEffect:KI,withAsyncContext:YI,withCtx:R,withDefaults:QI,withDirectives:Kb,withKeys:Vc,withMemo:ZI,withModifiers:ai,withScopeId:JI},Symbol.toStringTag,{value:"Module"}));const DS={setup(){const f=$i.slice(0,-1),p=me([{link:"/media/newsimage/scales.jpg",title:null,text:""}]),_=XI().alert;return(()=>{yn.get("api/navigation/carousels/").then(I=>{I.data.mess!=""&&(_.alert=!0,_.text=I.data.mess,_.color="red-darken-2",_.ico="mdi-alert-outline"),I.data.result.length>0&&(p.value=I.data.result)})})(),{burl:f,carous:p}}};function ES(f,p,_,M,I,v){return W(),pe(gS,{cycle:"",interval:"10000",cover:"",height:"450","hide-delimiters":"","hide-delimiter-background":"","show-arrows":M.carous.length<2?!1:"hover",color:"white"},{default:R(()=>[(W(!0),J(He,null,Qe(M.carous,(C,w)=>(W(),pe(mS,{key:w,src:`${M.burl}${C.link}`,cover:"",eager:""},{default:R(()=>[j(Gc,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:R(()=>[C.text!=""||C.title!=null?(W(),pe(nt,{key:0,class:"bgCard h-100 d-flex flex-column"},{default:R(()=>[C.title!=null?(W(),pe(Rn,{key:0,class:"text-h3 text-uppercase titles text-text_carous ma-1 mb-0"},{default:R(()=>[j(Ve,{"no-gutters":""},{default:R(()=>[j(Ie,{class:"align-self-center"},{default:R(()=>[ze(ue(C.title),1)]),_:2},1024),j(Ie,{class:"flex-grow-0"},{default:R(()=>[j(ys,{width:"50","aspect-ratio":1,src:`${M.burl}${C.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):ce("",!0),C.text!=""?(W(),pe(ci,{key:1,class:"w-50 flex-grow-0 text-h6 bgText overflow-auto ma-1 pa-0"},{default:R(()=>[j(Uc,{class:"text-text_caroustext-black textareas font-weight-medium nocursor","model-value":C.text,variant:"solo",readonly:"","auto-grow":"",rows:"1","hide-details":"",flat:"","bg-color":"transparent"},null,8,["model-value"])]),_:2},1024)):ce("",!0)]),_:2},1024)):ce("",!0)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1},8,["show-arrows"])}const TS=en(DS,[["render",ES]]);const sw=eS()({name:"VSlideGroupItem",props:tS(),emits:{"group:selected":f=>!0},setup(f,p){let{slots:_}=p;const M=nS(f,iS);return()=>{var I;return(I=_.default)==null?void 0:I.call(_,{isSelected:M.isSelected.value,select:M.select,toggle:M.toggle,selectedClass:M.selectedClass.value})}}}),MS={props:{digitalData:{type:Object,default:{}}},setup(){const f=$i.slice(0,-1);return{model:me(!1),burl:f}}};function IS(f,p,_,M,I,v){const C=ut("vue3-autocounter");return W(),pe(nt,{class:"d-flex ml-3"},{default:R(()=>[j(Qb,{class:"mx-auto",elevation:"0","max-width":"813"},{default:R(()=>[j(Yb,{modelValue:M.model,"onUpdate:modelValue":p[0]||(p[0]=w=>M.model=w),class:"pa-0","selected-class":"bg-primary",mandatory:"","show-arrows":""},{default:R(()=>[(W(!0),J(He,null,Qe(_.digitalData,w=>(W(),pe(sw,{key:w},{default:R(()=>[j(nt,{class:"ma-2 mt-4 d-flex flex-column",height:"100",width:"169",elevation:"0"},{default:R(()=>[j(nt,{class:"h-100 text-center g text-black_grey"},{default:R(()=>[j(Rn,{class:"statstyle my-2 py-0 text-overline font-weight-bold"},{default:R(()=>[ze(ue(w.status),1)]),_:2},1024),j(ci,{class:"numstyle mt-4 py-0 font-weight-bold"},{default:R(()=>[j(C,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(w.num),duration:1},null,8,["endAmount"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})}const SS=en(MS,[["render",IS]]),BS={components:{newsCard:pS},setup(){const f=me([]),p=me(0),_=me(1),M=me(8),I=oS(),v=me(""),C=me(!1),w=()=>{yn.get(`api/navigation/newscrossroad/?name=${I.path}&page=${_.value-1}&countpage=${M.value}`).then(g=>{f.value=g.data.result,p.value=g.data.countpage})};return w(),{newsAll:f,countetnews:p,page:_,countpage:M,loadNewsAll:w,galleryimges:v,dialogfotoOne:C}}};function NS(f,p,_,M,I,v){const C=ut("news-card");return W(),pe(Ve,null,{default:R(()=>[j(Ie,{class:"flex-column d-flex"},{default:R(()=>[j(Ve,{class:"mt-0 h-0 overflow-auto"},{default:R(()=>[(W(!0),J(He,null,Qe(M.newsAll,(w,g)=>(W(),pe(Ie,{key:g,class:"pb-1 pt-0",lg:"12",md:"6",sm:"6"},{default:R(()=>[j(C,{news:w},null,8,["news"]),j(xs,{modelValue:M.dialogfotoOne,"onUpdate:modelValue":p[1]||(p[1]=D=>M.dialogfotoOne=D),width:"w-100",height:"900",class:"flex-column"},{default:R(()=>[j(nt,{class:"pa-4 h-100 flex-column d-flex"},{default:R(()=>[j(Ve,{class:"flex-grow-0 justify-end"},{default:R(()=>[j(Ie,{class:"pa-0 flex-grow-0"},{default:R(()=>[j(di,{density:"compact",variant:"text",icon:"mdi-close",onClick:p[0]||(p[0]=D=>M.dialogfotoOne=!1)})]),_:1})]),_:1}),j(Ve,null,{default:R(()=>[j(Ie,{class:"flex-column h_cards pa-0"},{default:R(()=>[j(ys,{class:"d-flex",src:`${f.burl}${M.galleryimges}`},null,8,["src"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:2},1024))),128))]),_:1}),j(Yo,{class:"mt-3"}),j(Ve,{class:"flex-grow-0 ma-0 align-items-center"},{default:R(()=>[j(Ie,{class:"flex-column d-flex pa-0 align-end"},{default:R(()=>[j(di,{size:"small",variant:"text",icon:"mdi-newspaper",color:"blue-darken-4",to:"/news"})]),_:1}),j(Ie,{class:"py-0 pl-0 flex-grow-0 text-end align-self-center text-caption font-weight-bold text-no-wrap"},{default:R(()=>[ze(" Всего новостей: "+ue(M.countetnews),1)]),_:1})]),_:1})]),_:1})]),_:1})}const OS=en(BS,[["render",NS]]),PS={components:{VcardUser:kS},props:{idpos:{type:Number,default:""},namepos:{type:String,default:""}},setup(f,{emit:p}){const _=me({}),M=me(""),I=me(""),v=()=>{p("searchClose")};vs(()=>{yn.get(`api/general_vacation/dailyload/?id=${f.idpos}`).then(g=>{_.value=g.data.daily})});const C=async g=>{M.value=g},w=Zo({get(){let g={};return Object.keys(_.value).map(D=>{let x=_.value[D].filter(T=>T.fio.toLowerCase().includes(I.value.toLowerCase()));x.length>0&&(g[D]=x)}),g}});return{onSubmit:v,checkremote:Zb,searchname:I,spravURL:Jb,t_dailyRound:_,result:w,getcard:C,iduser:M}}};function LS(f,p,_,M,I,v){const C=ut("list-user");return W(),J("div",null,[j(nt,{class:"bg-white pa-1 px-0",width:"550"},{default:R(()=>[j(nt,{class:"mx-auto overflow-auto mx-0 px-0",width:"550",height:"600",flat:""},{default:R(()=>[j(Rn,{class:"fixed-bar bg-white"},{default:R(()=>[j(Ve,{class:"bggrad"},{default:R(()=>[j(Ie,{class:"text-center text-black_and_white"},{default:R(()=>[ze(ue(_.namepos),1)]),_:1})]),_:1}),j(Ve,null,{default:R(()=>[j(Ie,{class:"pa-0 mb-1"},{default:R(()=>[j(Yo,{class:""}),j(Qo,{modelValue:M.searchname,"onUpdate:modelValue":p[0]||(p[0]=w=>M.searchname=w),clearable:"","prepend-inner-icon":"mdi-magnify","hide-details":"",class:"ma-0",label:"Поиск",rows:"1","no-resize":""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),(W(!0),J(He,null,Qe(M.result,(w,g)=>(W(),J("div",{key:g,class:"px-3 ddd"},[j($c,{class:"py-0"},{default:R(()=>[j(bS,null,{default:R(()=>[ze(ue(g),1)]),_:2},1024)]),_:2},1024),(W(!0),J(He,null,Qe(w,D=>(W(),J("div",{key:D},[j(C,{author:D},null,8,["author"])]))),128))]))),128))]),_:1}),j(Yo,{class:""}),j(qc,{class:"pb-0",style:{"place-content":"end"}},{default:R(()=>[j(di,{color:"more_details_btn",variant:"text",onClick:M.onSubmit},{default:R(()=>[ze(" Закрыть ")]),_:1},8,["onClick"])]),_:1})]),_:1})])}const zS=en(PS,[["render",LS]]);const RS={components:{DialogSearch:zS},setup(){const f=me(""),p=me(""),_=me(""),M=me(!1),I=me({}),v=me([]),C=me({}),w=me(""),g=me(!1),D=me(""),x=me({}),T=me(!1),b=Xb(),y=async U=>{g.value=!0,D.value=U},N=(U,$)=>{p.value=U,_.value=$,M.value=!M.value,yn.get(`api/general_vacation/dailyload/?id=${U}`).then(ee=>{I.value=ee.data,x.value=JSON.parse(JSON.stringify(ee.data.daily))})},P=$i.slice(0,-1),L=U=>{const $=new FormData;$.append("dailyfiles",v.value[0]),yn.post(`api/general_vacation/dailyroundup/?excel=${U}`,$).then(ee=>{C.value=ee.data,V()}),v.value=""};function V(){yn.get("api/general_vacation/dailyload/").then(U=>{f.value=U.data.daily})}return vs(()=>{V()}),{t_daily:f,detailRound:N,dialogDetailRound:M,t_dailyRound:I,dailyfiles:v,onPickFile:L,info:C,checkremote:Zb,searchname:w,spravURL:Jb,menuGetUserDialog:g,iduser:D,getcard:y,result:x,idpos:p,namepos:_,changeData:T,baseURL:$i,burl:P,accountStore:b}}},jS={class:"d-flex h-100"},FS={class:"text-center"};function VS(f,p,_,M,I,v){const C=ut("vue3-autocounter"),w=ut("dialog-search");return W(),J("div",jS,[M.t_daily.length>0?(W(),pe(nt,{key:0,class:"h-100 w-100 d-flex flex-column"},{default:R(()=>[(W(!0),J(He,null,Qe(M.t_daily,g=>Kb((W(),pe(Ve,{key:g},{default:R(()=>[j(Yo),j(Ie,null,{default:R(()=>[j(nt,{class:"ma-2 d-flex flex-column",height:"100",elevation:"0"},{default:R(()=>[j(nt,{class:"h-100 text-center text-black_grey bg-black_and_white"},{default:R(()=>[j(Rn,{class:"statstyle py-0 text-xl-overline text-lg-subtitle-1 text-md-h5 font-weight-bold bg-black_and_white"},{default:R(()=>[ze(ue(g.position__name),1)]),_:2},1024),j(ci,{onClick:D=>M.detailRound(g.position,g.position__name),class:"numstyle mt-2 py-0 font-weight-bold cursor-pointer bg-black_and_white"},{default:R(()=>[j(C,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(g.user__count),duration:2},null,8,["endAmount"])]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)),[[$b,g.position!=6]])),128))]),_:1})):(W(),pe(nt,{key:1,class:"h-100 w-100 d-flex justify-center flex-column",image:`${M.burl}/media/default/didjlenta.jpg`},{default:R(()=>[j(Ve,{class:"flex-grow-0"},{default:R(()=>[j(Ie,{class:"py-0"},{default:R(()=>[M.accountStore.user.is_staff?(W(),pe(ow,{key:0,modelValue:M.changeData,"onUpdate:modelValue":p[0]||(p[0]=g=>M.changeData=g),class:"pl-3 d-flex justify-end",color:"white",onClick:p[1]||(p[1]=g=>M.changeData=!M.changeData)},null,8,["modelValue"])):ce("",!0)]),_:1})]),_:1}),j(Ve,{class:"ma-3"},{default:R(()=>[M.changeData?(W(),pe(ci,{key:0,class:"d-flex flex-column align-self-center"},{default:R(()=>[j(rw,{accept:".xlsx",modelValue:M.dailyfiles,"onUpdate:modelValue":p[2]||(p[2]=g=>M.dailyfiles=g),variant:"underlined",density:"compact","hide-details":"",class:"pt-2 ml-0 text-white"},null,8,["modelValue"]),j(di,{class:"align-self-center",icon:"mdi-google-play text-white",size:"x-large",variant:"text",color:"teal-darken-4",disabled:M.dailyfiles==0,onClick:p[3]||(p[3]=g=>M.onPickFile("roundfilse"))},null,8,["disabled"])]),_:1})):(W(),pe(ci,{key:1,class:"w-100"},{default:R(()=>[j(Ve,{class:"text-white text-center text-lg-h5 h-100","align-content":"center",justify:"center"},{default:R(()=>[ze(" Данные не загружены ")]),_:1})]),_:1}))]),_:1})]),_:1},8,["image"])),we("div",FS,[j(xs,{modelValue:M.dialogDetailRound,"onUpdate:modelValue":p[5]||(p[5]=g=>M.dialogDetailRound=g),width:"500"},{default:R(()=>[j(w,{idpos:M.idpos,namepos:M.namepos,onSearchClose:p[4]||(p[4]=g=>M.dialogDetailRound=!M.dialogDetailRound)},null,8,["idpos","namepos"])]),_:1},8,["modelValue"])])])}const HS=en(RS,[["render",VS]]);var US=Object.defineProperty,WS=(f,p,_)=>p in f?US(f,p,{enumerable:!0,configurable:!0,writable:!0,value:_}):f[p]=_,vn=(f,p,_)=>(WS(f,typeof p!="symbol"?p+"":p,_),_);/**
|
||
* vue-cal v4.8.1
|
||
* (c) 2022 Antoni Andre <antoniandre.web@gmail.com>
|
||
* @license MIT
|
||
*/let qo,Hb,Ub,Ut,Go={},Gi={};class qS{constructor(p){vn(this,"_vuecal",null),vn(this,"selectCell",(_=!1,M,I)=>{this._vuecal.$emit("cell-click",I?{date:M,split:I}:M),this._vuecal.clickToNavigate||_?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",I?{date:M,split:I}:M)))}),vn(this,"keyPressEnterCell",(_,M)=>{this._vuecal.$emit("cell-keypress-enter",M?{date:_,split:M}:_),this._vuecal.switchToNarrowerView()}),vn(this,"getPosition",_=>{const{left:M,top:I}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:v,clientY:C}="ontouchstart"in window&&_.touches?_.touches[0]:_;return{x:v-M,y:C-I}}),vn(this,"minutesAtCursor",_=>{let M=0,I={x:0,y:0};const{timeStep:v,timeCellHeight:C,timeFrom:w}=this._vuecal.$props;return typeof _=="number"?M=_:typeof _=="object"&&(I=this.getPosition(_),M=Math.round(I.y*v/parseInt(C)+w)),{minutes:Math.max(Math.min(M,1440),0),cursorCoords:I}}),this._vuecal=p}}let We,qe,jc;class GS{constructor(p,_){vn(this,"_vuecal",null),vn(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=p,We=_}createAnEvent(p,_,M){if(typeof p=="string"&&(p=We.stringToDate(p)),!(p instanceof Date))return!1;const I=We.dateToMinutes(p),v=I+(_=1*_||120),C=We.addMinutes(new Date(p),_);M.end&&(typeof M.end=="string"&&(M.end=We.stringToDate(M.end)),M.endTimeMinutes=We.dateToMinutes(M.end));const w={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:p,startTimeMinutes:I,end:C,endTimeMinutes:v,segments:null,...M};return typeof this._vuecal.onEventCreate!="function"||this._vuecal.onEventCreate(w,()=>this.deleteAnEvent(w))?(w.startDateF!==w.endDateF&&(w.daysCount=We.countDays(w.start,w.end)),this._vuecal.mutableEvents.push(w),this._vuecal.addEventsToView([w]),this._vuecal.emitWithEvent("event-create",w),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(w),originalEvent:null}),w):void 0}addEventSegment(p){p.segments||(p.segments={},p.segments[We.formatDateLite(p.start)]={start:p.start,startTimeMinutes:p.startTimeMinutes,endTimeMinutes:1440,isFirstDay:!0,isLastDay:!1});const _=p.segments[We.formatDateLite(p.end)];_&&(_.isLastDay=!1,_.endTimeMinutes=1440);const M=We.addDays(p.end,1),I=We.formatDateLite(M);return M.setHours(0,0,0,0),p.segments[I]={start:M,startTimeMinutes:0,endTimeMinutes:p.endTimeMinutes,isFirstDay:!1,isLastDay:!0},p.end=We.addMinutes(M,p.endTimeMinutes),p.daysCount=Object.keys(p.segments).length,I}removeEventSegment(p){let _=Object.keys(p.segments).length;if(_<=1)return We.formatDateLite(p.end);delete p.segments[We.formatDateLite(p.end)],_--;const M=We.subtractDays(p.end,1),I=We.formatDateLite(M),v=p.segments[I];return _?v&&(v.isLastDay=!0,v.endTimeMinutes=p.endTimeMinutes):p.segments=null,p.daysCount=_||1,p.end=M,I}createEventSegments(p,_,M){const I=_.getTime(),v=M.getTime();let C,w,g,D=p.start.getTime(),x=p.end.getTime(),T=!1;for(p.end.getHours()||p.end.getMinutes()||(x-=1e3),p.segments={},p.repeat?(C=I,w=Math.min(v,p.repeat.until?We.stringToDate(p.repeat.until).getTime():v)):(C=Math.max(I,D),w=Math.min(v,x));C<=w;){let b=!1;const y=We.addDays(new Date(C),1).setHours(0,0,0,0);let N,P,L,V;if(p.repeat){const U=new Date(C),$=We.formatDateLite(U);(T||p.occurrences&&p.occurrences[$])&&(T||(D=p.occurrences[$].start,g=new Date(D).setHours(0,0,0,0),x=p.occurrences[$].end),T=!0,b=!0),N=C===g,P=$===We.formatDateLite(new Date(x)),L=new Date(N?D:C),V=We.formatDateLite(L),P&&(T=!1)}else b=!0,N=C===D,P=w===x&&y>w,L=N?p.start:new Date(C),V=We.formatDateLite(N?p.start:L);b&&(p.segments[V]={start:L,startTimeMinutes:N?p.startTimeMinutes:0,endTimeMinutes:P?p.endTimeMinutes:1440,isFirstDay:N,isLastDay:P}),C=y}return p}deleteAnEvent(p){this._vuecal.emitWithEvent("event-delete",p),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(_=>_._eid!==p._eid),this._vuecal.view.events=this._vuecal.view.events.filter(_=>_._eid!==p._eid)}checkCellOverlappingEvents(p,_){jc=p.slice(0),qe={},p.forEach(I=>{jc.shift(),qe[I._eid]||(qe[I._eid]={overlaps:[],start:I.start,position:0}),qe[I._eid].position=0,jc.forEach(v=>{qe[v._eid]||(qe[v._eid]={overlaps:[],start:v.start,position:0});const C=this.eventInRange(v,I.start,I.end),w=_.overlapsPerTimeStep?We.datesInSameTimeStep(I.start,v.start,_.timeStep):1;if(I.background||I.allDay||v.background||v.allDay||!C||!w){let g,D;(g=(qe[I._eid]||{overlaps:[]}).overlaps.indexOf(v._eid))>-1&&qe[I._eid].overlaps.splice(g,1),(D=(qe[v._eid]||{overlaps:[]}).overlaps.indexOf(I._eid))>-1&&qe[v._eid].overlaps.splice(D,1),qe[v._eid].position--}else qe[I._eid].overlaps.push(v._eid),qe[I._eid].overlaps=[...new Set(qe[I._eid].overlaps)],qe[v._eid].overlaps.push(I._eid),qe[v._eid].overlaps=[...new Set(qe[v._eid].overlaps)],qe[v._eid].position++})});let M=0;for(const I in qe){const v=qe[I],C=v.overlaps.map(w=>({id:w,start:qe[w].start}));C.push({id:I,start:v.start}),C.sort((w,g)=>w.start<g.start?-1:w.start>g.start?1:w.id>g.id?-1:1),v.position=C.findIndex(w=>w.id===I),M=Math.max(this.getOverlapsStreak(v,qe),M)}return[qe,M]}getOverlapsStreak(p,_={}){let M=p.overlaps.length+1,I=[];return p.overlaps.forEach(v=>{I.includes(v)||p.overlaps.filter(C=>C!==v).forEach(C=>{_[C].overlaps.includes(v)||I.push(C)})}),I=[...new Set(I)],M-=I.length,M}eventInRange(p,_,M){if(p.allDay||!this._vuecal.time){const C=new Date(p.start).setHours(0,0,0,0);return new Date(p.end).setHours(23,59,0,0)>=new Date(_).setHours(0,0,0,0)&&C<=new Date(M).setHours(0,0,0,0)}const I=p.start.getTime(),v=p.end.getTime();return I<M.getTime()&&v>_.getTime()}}const $S={class:"vuecal__flex vuecal__weekdays-headings"},KS=["onClick"],YS={class:"vuecal__flex weekday-label",grow:""},QS={class:"full"},ZS={class:"small"},JS={class:"xsmall"},XS={key:0},e4={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""},Ki=(f,p)=>{const _=f.__vccOpts||f;for(const[M,I]of p)_[M]=I;return _},aw=Ki({inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(f,p){f.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=f),this.utils.cell.selectCell(!1,f,p)},cleanupHeading:f=>({label:f.full,date:f.date,...f.today?{today:f.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let f=!1;return this.weekDays.map((p,_)=>{const M=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday?_-1:_);return{hide:p.hide,full:p.label,small:p.short||p.label.substr(0,3),xsmall:p.short||p.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:M.getDate(),date:M,today:!f&&this.utils.date.isToday(M)&&!f++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((f,p)=>f+p.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},[["render",function(f,p,_,M,I,v){return W(),J("div",$S,[(W(!0),J(He,null,Qe(v.headings,(C,w)=>(W(),J(He,{key:w},[C.hide?ce("",!0):(W(),J("div",{key:0,class:dt(["vuecal__flex vuecal__heading",{today:C.today,clickable:v.cellHeadingsClickable}]),style:St(v.weekdayCellStyles),onClick:g=>v.view.id==="week"&&v.selectCell(C.date,g),onDblclick:p[0]||(p[0]=g=>v.view.id==="week"&&v.vuecal.dblclickToNavigate&&_.switchToNarrowerView())},[j(Ko,{name:`slide-fade--${_.transitionDirection}`,appear:v.vuecal.transitions},{default:R(()=>[(W(),J("div",{class:"vuecal__flex",column:"",key:!!v.vuecal.transitions&&`${w}-${C.dayOfMonth}`},[we("div",YS,[ve(f.$slots,"weekday-heading",{heading:v.cleanupHeading(C),view:v.view},()=>[we("span",QS,ue(C.full),1),we("span",ZS,ue(C.small),1),we("span",JS,ue(C.xsmall),1),C.dayOfMonth?(W(),J("span",XS," "+ue(C.dayOfMonth),1)):ce("",!0)])]),v.vuecal.hasSplits&&v.vuecal.stickySplitLabels?(W(),J("div",e4,[(W(!0),J(He,null,Qe(v.vuecal.daySplits,(g,D)=>(W(),J("div",{class:dt(["day-split-header",g.class||!1]),key:D},[ve(f.$slots,"split-label",{split:g,view:v.view},()=>[ze(ue(g.label),1)])],2))),128))])):ce("",!0)]))]),_:2},1032,["name","appear"])],46,KS))],64))),128))])}]]),t4={class:"vuecal__header"},n4={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},i4=["onDragenter","onDragleave","onClick","aria-label"],o4={key:1,class:"vuecal__title-bar"},r4=["aria-label"],s4={class:"vuecal__flex vuecal__title",grow:""},a4=["aria-label"],c4={key:0,class:"vuecal__flex vuecal__split-days-headers"},l4=Ki({inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:aw},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(f){this.vuecal.transitionDirection=f}},broaderView(){const{enabledViews:f}=this.vuecal;return f[f.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},[["render",function(f,p,_,M,I,v){const C=ut("weekdays-headings");return W(),J("div",t4,[_.options.hideViewSelector?ce("",!0):(W(),J("div",n4,[(W(!0),J(He,null,Qe(_.viewProps.views,(w,g)=>(W(),J(He,{key:g},[w.enabled?(W(),J("button",{key:0,class:dt(["vuecal__view-btn",{"vuecal__view-btn--active":v.view.id===g,"vuecal__view-btn--highlighted":f.highlightedControl===g}]),type:"button",onDragenter:D=>_.editEvents.drag&&v.dnd&&v.dnd.viewSelectorDragEnter(D,g,f.$data),onDragleave:D=>_.editEvents.drag&&v.dnd&&v.dnd.viewSelectorDragLeave(D,g,f.$data),onClick:D=>v.switchView(g,null,!0),"aria-label":`${w.label} view`},ue(w.label),43,i4)):ce("",!0)],64))),128))])),_.options.hideTitleBar?ce("",!0):(W(),J("div",o4,[we("button",{class:dt(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":f.highlightedControl==="previous"}]),type:"button",onClick:p[0]||(p[0]=(...w)=>v.previous&&v.previous(...w)),onDragenter:p[1]||(p[1]=w=>_.editEvents.drag&&v.dnd&&v.dnd.viewSelectorDragEnter(w,"previous",f.$data)),onDragleave:p[2]||(p[2]=w=>_.editEvents.drag&&v.dnd&&v.dnd.viewSelectorDragLeave(w,"previous",f.$data)),"aria-label":`Previous ${v.view.id}`},[ve(f.$slots,"arrow-prev")],42,r4),we("div",s4,[j(Ko,{name:_.options.transitions?`slide-fade--${v.transitionDirection}`:""},{default:R(()=>[(W(),pe(Wc(v.broaderView?"button":"span"),{type:!!v.broaderView&&"button",key:`${v.view.id}${v.view.startDate.toString()}`,onClick:p[3]||(p[3]=w=>!!v.broaderView&&v.switchToBroaderView()),"aria-label":!!v.broaderView&&`Go to ${v.broaderView} view`},{default:R(()=>[ve(f.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),_.options.todayButton?(W(),J("button",{key:0,class:dt(["vuecal__today-btn",{"vuecal__today-btn--highlighted":f.highlightedControl==="today"}]),type:"button",onClick:p[4]||(p[4]=(...w)=>v.goToToday&&v.goToToday(...w)),onDragenter:p[5]||(p[5]=w=>_.editEvents.drag&&v.dnd&&v.dnd.viewSelectorDragEnter(w,"today",f.$data)),onDragleave:p[6]||(p[6]=w=>_.editEvents.drag&&v.dnd&&v.dnd.viewSelectorDragLeave(w,"today",f.$data)),"aria-label":"Today"},[ve(f.$slots,"today-button")],34)):ce("",!0),we("button",{class:dt(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":f.highlightedControl==="next"}]),type:"button",onClick:p[7]||(p[7]=(...w)=>v.next&&v.next(...w)),onDragenter:p[8]||(p[8]=w=>_.editEvents.drag&&v.dnd&&v.dnd.viewSelectorDragEnter(w,"next",f.$data)),onDragleave:p[9]||(p[9]=w=>_.editEvents.drag&&v.dnd&&v.dnd.viewSelectorDragLeave(w,"next",f.$data)),"aria-label":`Next ${v.view.id}`},[ve(f.$slots,"arrow-next")],42,a4)])),_.viewProps.weekDaysInHeader?(W(),pe(C,{key:2,"week-days":_.weekDays,"transition-direction":v.transitionDirection,"switch-to-narrower-view":_.switchToNarrowerView},As({_:2},[f.$slots["weekday-heading"]?{name:"weekday-heading",fn:R(({heading:w,view:g})=>[ve(f.$slots,"weekday-heading",{heading:w,view:g})]),key:"0"}:void 0,f.$slots["split-label"]?{name:"split-label",fn:R(({split:w})=>[ve(f.$slots,"split-label",{split:w,view:v.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):ce("",!0),j(Ko,{name:`slide-fade--${v.transitionDirection}`},{default:R(()=>[v.showDaySplits?(W(),J("div",c4,[(W(!0),J(He,null,Qe(_.daySplits,(w,g)=>(W(),J("div",{class:dt(["day-split-header",w.class||!1]),key:g},[ve(f.$slots,"split-label",{split:w,view:v.view.id},()=>[ze(ue(w.label),1)])],2))),128))])):ce("",!0)]),_:3},8,["name"])])}]]),d4=["draggable"],u4={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(f,p=!1){if("ontouchstart"in window&&!p)return!1;const{clickHoldAnEvent:_,focusAnEvent:M,resizeAnEvent:I,dragAnEvent:v}=this.domEvents;if(M._eid===this.event._eid&&_._eid===this.event._eid)return!0;this.focusEvent(),_._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(_.timeoutId=setTimeout(()=>{I._eid||v._eid||(_._eid=this.event._eid,this.event.deleting=!0)},_.timeout))},onMouseUp(f){this.domEvents.focusAnEvent._eid!==this.event._eid||this.touch.dragged||(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(f){f.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(f){f.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(f){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:p,clientY:_}=f.touches[0],{startX:M,startY:I,dragThreshold:v}=this.touch;(Math.abs(p-M)>v||Math.abs(_-I)>v)&&(this.touch.dragged=!0)},onTouchStart(f){this.touch.startX=f.touches[0].clientX,this.touch.startY=f.touches[0].clientY,this.onMouseDown(f,!0)},onEnterKeypress(f){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,f)},onDblClick(f){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,f)},onDragStart(f){this.dnd&&this.dnd.eventDragStart(f,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(f=!1){if("ontouchstart"in window&&!f)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(f){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:f}=this.domEvents,p=f._eid;if(p!==this.event._eid){if(p){const _=this.view.events.find(M=>M._eid===p);_&&(_.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),f._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:f,endTimeMinutes:p}=this.segment||this.event;let _=f-this.vuecal.timeFrom;const M=Math.max(Math.round(_*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);_=Math.min(p,this.vuecal.timeTo)-this.vuecal.timeFrom;const I=Math.round(_*this.vuecal.timeCellHeight/this.vuecal.timeStep);return{top:M,height:Math.max(I-M,5)}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let f=100/Math.min(this.overlaps.length+1,this.overlapsStreak),p=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&f<this.vuecal.minEventWidth&&(f=this.vuecal.minEventWidth,p=(100-this.vuecal.minEventWidth)/this.overlaps.length*this.eventPosition);const{top:_,height:M}=this.eventDimensions;return{top:`${_}px`,height:`${M}px`,width:`${f}%`,left:this.event.left&&`${this.event.left}px`||`${p}%`}},eventClasses(){const{isFirstDay:f,isLastDay:p}=this.segment||{};return{[this.event.class]:!!this.event.class,"vuecal__event--focus":this.event.focused,"vuecal__event--resizing":this.event.resizing,"vuecal__event--background":this.event.background,"vuecal__event--deletable":this.event.deleting,"vuecal__event--all-day":this.event.allDay,"vuecal__event--dragging":!this.event.draggingStatic&&this.event.dragging,"vuecal__event--static":this.event.dragging&&this.event.draggingStatic,"vuecal__event--multiple-days":!!this.segment,"event-start":this.segment&&f&&!p,"event-middle":this.segment&&!f&&!p,"event-end":this.segment&&p&&!f}},segment(){return this.event.segments&&this.event.segments[this.cellFormattedDate]||null},draggable(){const{draggable:f,background:p,daysCount:_}=this.event;return this.vuecal.editEvents.drag&&f&&!p&&_===1},resizable(){const{editEvents:f,time:p}=this.vuecal;return f.resize&&this.event.resizable&&p&&!this.allDay&&(!this.segment||this.segment&&this.segment.isLastDay)&&this.view.id!=="month"},dnd(){return this.modules.dnd}}},h4=["data-split","aria-label","onTouchstart","onMousedown","onDragover","onDrop"],g4={key:0,class:"cell-time-labels"},m4=["innerHTML"],p4={key:2,class:"vuecal__cell-events"},f4=["title"],cw=Ki({inject:["vuecal","utils","modules","view","domEvents"],components:{Event:Ki(u4,[["render",function(f,p,_,M,I,v){return W(),J("div",{class:dt(["vuecal__event",v.eventClasses]),style:St(v.eventStyles),tabindex:"0",onFocus:p[4]||(p[4]=(...C)=>v.focusEvent&&v.focusEvent(...C)),onKeypress:p[5]||(p[5]=Vc(ai((...C)=>v.onEnterKeypress&&v.onEnterKeypress(...C),["stop"]),["enter"])),onMouseenter:p[6]||(p[6]=(...C)=>v.onMouseEnter&&v.onMouseEnter(...C)),onMouseleave:p[7]||(p[7]=(...C)=>v.onMouseLeave&&v.onMouseLeave(...C)),onTouchstart:p[8]||(p[8]=ai((...C)=>v.onTouchStart&&v.onTouchStart(...C),["stop"])),onMousedown:p[9]||(p[9]=C=>v.onMouseDown(C)),onMouseup:p[10]||(p[10]=(...C)=>v.onMouseUp&&v.onMouseUp(...C)),onTouchend:p[11]||(p[11]=(...C)=>v.onMouseUp&&v.onMouseUp(...C)),onTouchmove:p[12]||(p[12]=(...C)=>v.onTouchMove&&v.onTouchMove(...C)),onDblclick:p[13]||(p[13]=(...C)=>v.onDblClick&&v.onDblClick(...C)),draggable:v.draggable,onDragstart:p[14]||(p[14]=C=>v.draggable&&v.onDragStart(C)),onDragend:p[15]||(p[15]=C=>v.draggable&&v.onDragEnd())},[v.vuecal.editEvents.delete&&_.event.deletable?(W(),J("div",{key:0,class:"vuecal__event-delete",onClick:p[0]||(p[0]=ai((...C)=>v.deleteEvent&&v.deleteEvent(...C),["stop"])),onTouchstart:p[1]||(p[1]=ai((...C)=>v.touchDeleteEvent&&v.touchDeleteEvent(...C),["stop"]))},ue(v.vuecal.texts.deleteEvent),33)):ce("",!0),ve(f.$slots,"event",{event:_.event,view:v.view.id}),v.resizable?(W(),J("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:p[2]||(p[2]=ai((...C)=>v.onResizeHandleMouseDown&&v.onResizeHandleMouseDown(...C),["stop","prevent"])),onTouchstart:p[3]||(p[3]=ai((...C)=>v.onResizeHandleMouseDown&&v.onResizeHandleMouseDown(...C),["stop","prevent"]))},null,32)):ce("",!0)],46,d4)}]])},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:f}){let p=f.classList.contains("vuecal__cell-split")?f:this.vuecal.findAncestor(f,"vuecal__cell-split");return p&&(p=p.attributes["data-split"].value,parseInt(p).toString()===p.toString()&&(p=parseInt(p))),p||null},splitClasses(f){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===f.id,[f.class]:!!f.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(f){return this.vuecal.isDOMElementAnEvent(f)},selectCell(f,p=!1){const _=this.splitsCount?this.getSplitAtCursor(f):null;this.utils.cell.selectCell(p,this.timeAtCursor,_),this.timeAtCursor=null},onCellkeyPressEnter(f){this.isSelected||this.onCellFocus(f);const p=this.splitsCount?this.getSplitAtCursor(f):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,p),this.timeAtCursor=null},onCellFocus(f){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const p=this.splitsCount?this.getSplitAtCursor(f):null,_=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",p?{date:_,split:p}:_)}},onCellMouseDown(f,p=null,_=!1){if("ontouchstart"in window&&!_)return!1;this.isSelected||this.onCellFocus(f);const{clickHoldACell:M,focusAnEvent:I}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,M.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:v,cursorCoords:{y:C}}=this.vuecal.minutesAtCursor(f);this.timeAtCursor.setMinutes(v);const w=this.isDOMElementAnEvent(f.target);!w&&I._eid&&((this.view.events.find(g=>g._eid===I._eid)||{}).focused=!1),this.editEvents.create&&!w&&this.setUpEventCreation(f,C)},setUpEventCreation(f,p){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:_}=this.domEvents;if(_.startCursorY=p,_.split=this.splitsCount?this.getSplitAtCursor(f):null,_.start=this.timeAtCursor,this.options.snapToTime){let M=60*this.timeAtCursor.getHours()+this.timeAtCursor.getMinutes();const I=M+this.options.snapToTime/2;M=I-I%this.options.snapToTime,_.start.setHours(0,M,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(f)},setUpCellHoldTimer(f){const{clickHoldACell:p}=this.domEvents;p.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,p.split=this.splitsCount?this.getSplitAtCursor(f):null,p.timeoutId=setTimeout(()=>{if(p.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:_}=this.utils.event.createAnEvent(this.timeAtCursor,null,p.split?{split:p.split}:{});p.eventCreated=_}},p.timeout)},onCellTouchStart(f,p=null){this.onCellMouseDown(f,p,!0)},onCellClick(f){this.isDOMElementAnEvent(f.target)||this.selectCell(f)},onCellDblClick(f){const p=new Date(this.data.startDate);p.setMinutes(this.vuecal.minutesAtCursor(f).minutes);const _=this.splitsCount?this.getSplitAtCursor(f):null;this.vuecal.$emit("cell-dblclick",_?{date:p,split:_}:p),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(f){f.stopPropagation(),f.preventDefault();const p=new Date(this.data.startDate),{cursorCoords:_,minutes:M}=this.vuecal.minutesAtCursor(f);p.setMinutes(M);const I=this.splitsCount?this.getSplitAtCursor(f):null;this.vuecal.$emit("cell-contextmenu",{date:p,..._,...I||{},e:f})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp<this.data.startDate.getTime()},isDisabled(){const{disableDays:f}=this.options,{isYearsOrYearView:p}=this.vuecal;return!(!f.length||!f.includes(this.data.formattedDate)||p)||this.isBeforeMinDate||this.isAfterMaxDate},isSelected:{get(){let f=!1;const{selectedDate:p}=this.view;return f=this.view.id==="years"?p.getFullYear()===this.data.startDate.getFullYear():this.view.id==="year"?p.getFullYear()===this.data.startDate.getFullYear()&&p.getMonth()===this.data.startDate.getMonth():p.getTime()===this.data.startDate.getTime(),f},set(f){this.view.selectedDate=f,this.vuecal.$emit("update:selected-date",this.view.selectedDate)}},isWeekOrDayView(){return["week","day"].includes(this.view.id)},transitionDirection(){return this.vuecal.transitionDirection},specialHours(){return this.data.specialHours.map(f=>{let{from:p,to:_}=f;return p=Math.max(p,this.options.timeFrom),_=Math.min(_,this.options.timeTo),{...f,height:(_-p)*this.timeScale,top:(p-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:f,endDate:p}=this.data;let _=[];if(!["years","year"].includes(this.view.id)||this.options.eventsCountOnYearView){if(_=this.view.events.slice(0),this.view.id==="month"&&_.push(...this.view.outOfScopeEvents),_=_.filter(M=>this.utils.event.eventInRange(M,f,p)),this.options.showAllDayEvents&&this.view.id!=="month"&&(_=_.filter(M=>!!M.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:M,timeTo:I}=this.options;_=_.filter(v=>{const C=v.daysCount>1&&v.segments[this.data.formattedDate]||{},w=v.daysCount===1&&v.startTimeMinutes<I&&v.endTimeMinutes>M,g=v.daysCount>1&&C.startTimeMinutes<I&&C.endTimeMinutes>M;return v.allDay||w||g||!1})}!this.options.time||!this.isWeekOrDayView||this.options.showAllDayEvents&&this.allDay||_.sort((M,I)=>M.start<I.start?-1:1),this.cellSplits.length||this.$nextTick(this.checkCellOverlappingEvents)}return _},eventsCount(){return this.events.length},splits(){return this.cellSplits.map((f,p)=>{const _=this.events.filter(v=>v.split===f.id),[M,I]=this.utils.event.checkCellOverlappingEvents(_.filter(v=>!v.background&&!v.allDay),this.options);return{...f,overlaps:M,overlapsStreak:I,events:_}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:f,timeTo:p}=this.options;return this.data.today&&this.isWeekOrDayView&&f&&!this.allDay&&this.nowInMinutes<=p},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const f=this.nowInMinutes-this.options.timeFrom;return Math.round(f*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},[["render",function(f,p,_,M,I,v){const C=ut("event");return W(),pe(Gb,{class:dt(["vuecal__cell",v.cellClasses]),name:`slide-fade--${v.transitionDirection}`,tag:"div",appear:_.options.transitions,style:St(v.cellStyles)},{default:R(()=>[(W(!0),J(He,null,Qe(v.splitsCount?v.splits:1,(w,g)=>(W(),J("div",{class:dt(["vuecal__flex vuecal__cell-content",v.splitsCount&&v.splitClasses(w)]),key:_.options.transitions?`${v.view.id}-${_.data.content}-${g}`:g,"data-split":!!v.splitsCount&&w.id,column:"",tabindex:"0","aria-label":_.data.content,onFocus:p[0]||(p[0]=D=>v.onCellFocus(D)),onKeypress:p[1]||(p[1]=Vc(D=>v.onCellkeyPressEnter(D),["enter"])),onTouchstart:D=>!v.isDisabled&&v.onCellTouchStart(D,v.splitsCount?w.id:null),onMousedown:D=>!v.isDisabled&&v.onCellMouseDown(D,v.splitsCount?w.id:null),onClick:p[2]||(p[2]=D=>!v.isDisabled&&v.onCellClick(D)),onDblclick:p[3]||(p[3]=D=>!v.isDisabled&&v.onCellDblClick(D)),onContextmenu:p[4]||(p[4]=D=>!v.isDisabled&&_.options.cellContextmenu&&v.onCellContextMenu(D)),onDragenter:p[5]||(p[5]=D=>!v.isDisabled&&_.editEvents.drag&&v.dnd&&v.dnd.cellDragEnter(D,f.$data,_.data.startDate)),onDragover:D=>!v.isDisabled&&_.editEvents.drag&&v.dnd&&v.dnd.cellDragOver(D,f.$data,_.data.startDate,v.splitsCount?w.id:null),onDragleave:p[6]||(p[6]=D=>!v.isDisabled&&_.editEvents.drag&&v.dnd&&v.dnd.cellDragLeave(D,f.$data,_.data.startDate)),onDrop:D=>!v.isDisabled&&_.editEvents.drag&&v.dnd&&v.dnd.cellDragDrop(D,f.$data,_.data.startDate,v.splitsCount?w.id:null)},[_.options.showTimeInCells&&_.options.time&&v.isWeekOrDayView&&!_.allDay?(W(),J("div",g4,[(W(!0),J(He,null,Qe(v.vuecal.timeCells,(D,x)=>(W(),J("span",{class:"cell-time-label",key:x},ue(D.label),1))),128))])):ce("",!0),v.isWeekOrDayView&&!_.allDay&&v.specialHours.length?(W(!0),J(He,{key:1},Qe(v.specialHours,(D,x)=>(W(),J("div",{class:dt(["vuecal__special-hours",`vuecal__special-hours--day${D.day} ${D.class}`]),style:St(`height: ${D.height}px;top: ${D.top}px`)},[D.label?(W(),J("div",{key:0,class:"special-hours-label",innerHTML:D.label},null,8,m4)):ce("",!0)],6))),256)):ce("",!0),ve(f.$slots,"cell-content",{events:v.events,selectCell:D=>v.selectCell(D,!0),split:!!v.splitsCount&&w}),v.eventsCount&&(v.isWeekOrDayView||v.view.id==="month"&&_.options.eventsOnMonthView)?(W(),J("div",p4,[(W(!0),J(He,null,Qe(v.splitsCount?w.events:v.events,(D,x)=>(W(),pe(C,{key:x,"cell-formatted-date":_.data.formattedDate,event:D,"all-day":_.allDay,"cell-events":v.splitsCount?w.events:v.events,overlaps:((v.splitsCount?w.overlaps[D._eid]:f.cellOverlaps[D._eid])||[]).overlaps,"event-position":((v.splitsCount?w.overlaps[D._eid]:f.cellOverlaps[D._eid])||[]).position,"overlaps-streak":v.splitsCount?w.overlapsStreak:f.cellOverlapsStreak},{event:R(({event:T,view:b})=>[ve(f.$slots,"event",{view:b,event:T})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):ce("",!0)],42,h4))),128)),v.timelineVisible?(W(),J("div",{class:"vuecal__now-line",style:St(`top: ${v.todaysTimePosition}px`),key:_.options.transitions?`${v.view.id}-now-line`:"now-line",title:v.utils.date.formatTime(v.vuecal.now)},null,12,f4)):ce("",!0)]),_:3},8,["class","name","appear","style"])}]]),k4={key:0,class:"vuecal__all-day-text",style:{width:"3em"}},b4=Ki({inject:["vuecal","view","editEvents"],components:{"vuecal-cell":cw},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},[["render",function(f,p,_,M,I,v){const C=ut("vuecal-cell");return W(),J("div",{class:"vuecal__flex vuecal__all-day",style:St(_.cellOrSplitMinWidth&&{height:_.height})},[_.cellOrSplitMinWidth?ce("",!0):(W(),J("div",k4,[we("span",null,ue(_.label),1)])),we("div",{class:dt(["vuecal__flex vuecal__cells",`${v.view.id}-view`]),grow:"",style:St(_.cellOrSplitMinWidth?`min-width: ${_.cellOrSplitMinWidth}px`:"")},[(W(!0),J(He,null,Qe(_.cells,(w,g)=>(W(),pe(C,{key:g,options:_.options,"edit-events":v.editEvents,data:w,"all-day":!0,"cell-width":_.options.hideWeekdays.length&&(v.vuecal.isWeekView||v.vuecal.isMonthView)&&v.vuecal.cellWidth,"min-timestamp":_.options.minTimestamp,"max-timestamp":_.options.maxTimestamp,"cell-splits":_.daySplits},{event:R(({event:D,view:x})=>[ve(f.$slots,"event",{view:x,event:D})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}]]),w4=["lang"],_4=we("i",{class:"angle"},null,-1),A4=we("i",{class:"angle"},null,-1),C4={class:"default"},v4={key:0,class:"vuecal__flex vuecal__body",grow:""},y4=["onBlur","innerHTML"],x4=["innerHTML"],D4=["innerHTML"],E4={class:"vuecal__flex",row:"",grow:""},T4={key:0,class:"vuecal__time-column"},M4=we("span",{class:"vuecal__time-cell-line"},null,-1),I4={class:"vuecal__time-cell-label"},S4={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},B4=["wrap","column"],N4=["onBlur","innerHTML"],O4=["innerHTML"],P4=["innerHTML"],L4=["wrap"],z4=["innerHTML"],R4=["innerHTML"],j4={key:2,class:"vuecal__cell-events-count"},F4={key:3,class:"vuecal__no-event"},V4=["onBlur","innerHTML"],H4=["innerHTML"],U4={key:2,class:"vuecal__event-time"},W4={key:0},q4={key:1,class:"days-to-end"},G4=["innerHTML"],$4={key:0,class:"vuecal__scrollbar-check"},K4=[we("div",null,null,-1)],$o={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},Wb=["years","year","month","week","day"],qb=new class{constructor(f,p=!1){vn(this,"texts",{}),vn(this,"dateToMinutes",_=>60*_.getHours()+_.getMinutes()),Ut=this,this._texts=f,p||!Date||Date.prototype.addDays||this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(f){return Ut.addDays(this,f)},Date.prototype.subtractDays=function(f){return Ut.subtractDays(this,f)},Date.prototype.addHours=function(f){return Ut.addHours(this,f)},Date.prototype.subtractHours=function(f){return Ut.subtractHours(this,f)},Date.prototype.addMinutes=function(f){return Ut.addMinutes(this,f)},Date.prototype.subtractMinutes=function(f){return Ut.subtractMinutes(this,f)},Date.prototype.getWeek=function(){return Ut.getWeek(this)},Date.prototype.isToday=function(){return Ut.isToday(this)},Date.prototype.isLeapYear=function(){return Ut.isLeapYear(this)},Date.prototype.format=function(f="YYYY-MM-DD"){return Ut.formatDate(this,f)},Date.prototype.formatTime=function(f="HH:mm"){return Ut.formatTime(this,f)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(f){this._texts=f}_todayFormatted(){return Hb!==new Date().getDate()&&(qo=new Date,Hb=qo.getDate(),Ub=`${qo.getFullYear()}-${qo.getMonth()}-${qo.getDate()}`),Ub}addDays(f,p){const _=new Date(f.valueOf());return _.setDate(_.getDate()+p),_}subtractDays(f,p){const _=new Date(f.valueOf());return _.setDate(_.getDate()-p),_}addHours(f,p){const _=new Date(f.valueOf());return _.setHours(_.getHours()+p),_}subtractHours(f,p){const _=new Date(f.valueOf());return _.setHours(_.getHours()-p),_}addMinutes(f,p){const _=new Date(f.valueOf());return _.setMinutes(_.getMinutes()+p),_}subtractMinutes(f,p){const _=new Date(f.valueOf());return _.setMinutes(_.getMinutes()-p),_}getWeek(f){const p=new Date(Date.UTC(f.getFullYear(),f.getMonth(),f.getDate())),_=p.getUTCDay()||7;p.setUTCDate(p.getUTCDate()+4-_);const M=new Date(Date.UTC(p.getUTCFullYear(),0,1));return Math.ceil(((p-M)/864e5+1)/7)}isToday(f){return`${f.getFullYear()}-${f.getMonth()}-${f.getDate()}`===this._todayFormatted()}isLeapYear(f){const p=f.getFullYear();return!(p%400)||p%100&&!(p%4)}getPreviousFirstDayOfWeek(f=null,p){const _=f&&new Date(f.valueOf())||new Date,M=p?7:6;return _.setDate(_.getDate()-(_.getDay()+M)%7),_}stringToDate(f){return f instanceof Date?f:(f.length===10&&(f+=" 00:00"),new Date(f.replace(/-/g,"/")))}countDays(f,p){typeof f=="string"&&(f=f.replace(/-/g,"/")),typeof p=="string"&&(p=p.replace(/-/g,"/")),f=new Date(f).setHours(0,0,0,0),p=new Date(p).setHours(0,0,1,0);const _=60*(new Date(p).getTimezoneOffset()-new Date(f).getTimezoneOffset())*1e3;return Math.ceil((p-f-_)/864e5)}datesInSameTimeStep(f,p,_){return Math.abs(f.getTime()-p.getTime())<=60*_*1e3}formatDate(f,p="YYYY-MM-DD",_=null){if(_||(_=this._texts),p||(p="YYYY-MM-DD"),p==="YYYY-MM-DD")return this.formatDateLite(f);Go={},Gi={};const M={YYYY:()=>this._hydrateDateObject(f,_).YYYY,YY:()=>this._hydrateDateObject(f,_).YY(),M:()=>this._hydrateDateObject(f,_).M,MM:()=>this._hydrateDateObject(f,_).MM(),MMM:()=>this._hydrateDateObject(f,_).MMM(),MMMM:()=>this._hydrateDateObject(f,_).MMMM(),MMMMG:()=>this._hydrateDateObject(f,_).MMMMG(),D:()=>this._hydrateDateObject(f,_).D,DD:()=>this._hydrateDateObject(f,_).DD(),S:()=>this._hydrateDateObject(f,_).S(),d:()=>this._hydrateDateObject(f,_).d,dd:()=>this._hydrateDateObject(f,_).dd(),ddd:()=>this._hydrateDateObject(f,_).ddd(),dddd:()=>this._hydrateDateObject(f,_).dddd(),HH:()=>this._hydrateTimeObject(f,_).HH,H:()=>this._hydrateTimeObject(f,_).H,hh:()=>this._hydrateTimeObject(f,_).hh,h:()=>this._hydrateTimeObject(f,_).h,am:()=>this._hydrateTimeObject(f,_).am,AM:()=>this._hydrateTimeObject(f,_).AM,mm:()=>this._hydrateTimeObject(f,_).mm,m:()=>this._hydrateTimeObject(f,_).m};return p.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(I,v)=>{const C=M[v.replace(/\{|\}/g,"")];return C!==void 0?C():v})}formatDateLite(f){const p=f.getMonth()+1,_=f.getDate();return`${f.getFullYear()}-${p<10?"0":""}${p}-${_<10?"0":""}${_}`}formatTime(f,p="HH:mm",_=null,M=!1){let I=!1;if(M){const[w,g,D]=[f.getHours(),f.getMinutes(),f.getSeconds()];w+g+D===141&&(I=!0)}if(f instanceof Date&&p==="HH:mm")return I?"24:00":this.formatTimeLite(f);Gi={},_||(_=this._texts);const v=this._hydrateTimeObject(f,_),C=p.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(w,g)=>{const D=v[g.replace(/\{|\}/g,"")];return D!==void 0?D:g});return I?C.replace("23:59","24:00"):C}formatTimeLite(f){const p=f.getHours(),_=f.getMinutes();return`${(p<10?"0":"")+p}:${(_<10?"0":"")+_}`}_nth(f){if(f>3&&f<21)return"th";switch(f%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(f,p){if(Go.D)return Go;const _=f.getFullYear(),M=f.getMonth()+1,I=f.getDate(),v=(f.getDay()-1+7)%7;return Go={YYYY:_,YY:()=>_.toString().substring(2),M,MM:()=>(M<10?"0":"")+M,MMM:()=>p.months[M-1].substring(0,3),MMMM:()=>p.months[M-1],MMMMG:()=>(p.monthsGenitive||p.months)[M-1],D:I,DD:()=>(I<10?"0":"")+I,S:()=>this._nth(I),d:v+1,dd:()=>p.weekDays[v][0],ddd:()=>p.weekDays[v].substr(0,3),dddd:()=>p.weekDays[v]},Go}_hydrateTimeObject(f,p){if(Gi.am)return Gi;let _,M;f instanceof Date?(_=f.getHours(),M=f.getMinutes()):(_=Math.floor(f/60),M=Math.floor(f%60));const I=_%12?_%12:12,v=(p||{am:"am",pm:"pm"})[_===24||_<12?"am":"pm"];return Gi={H:_,h:I,HH:(_<10?"0":"")+_,hh:(I<10?"0":"")+I,am:v,AM:v.toUpperCase(),m:M,mm:(M<10?"0":"")+M},Gi}}($o),Y4={name:"vue-cal",components:{"vuecal-cell":cw,"vuecal-header":l4,WeekdaysHeadings:aw,AllDayBar:b4},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:1440},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...$o},utils:{date:!!this.disableDatePrototypes&&qb.removePrototypes()||qb,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(f){if(typeof this.locale=="object")return this.texts=Object.assign({},$o,f),void this.utils.date.updateTexts(this.texts);if(this.locale==="en"){const p=await ae(()=>import("./en.es-713916b0.js"),[]);this.texts=Object.assign({},$o,p)}else((p,_)=>{const M=p[_];return M?typeof M=="function"?M():Promise.resolve(M):new Promise((I,v)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(v.bind(null,new Error("Unknown variable dynamic import: "+_)))})})(Object.assign({"./i18n/ar.json":()=>ae(()=>import("./ar.es-4173cb29.js"),[]),"./i18n/bg.json":()=>ae(()=>import("./bg.es-3542f853.js"),[]),"./i18n/bn.json":()=>ae(()=>import("./bn.es-55ab5212.js"),[]),"./i18n/bs.json":()=>ae(()=>import("./bs.es-ba9dd541.js"),[]),"./i18n/ca.json":()=>ae(()=>import("./ca.es-3f4af411.js"),[]),"./i18n/cs.json":()=>ae(()=>import("./cs.es-4bf8e61a.js"),[]),"./i18n/da.json":()=>ae(()=>import("./da.es-084484fb.js"),[]),"./i18n/de.json":()=>ae(()=>import("./de.es-0185602c.js"),[]),"./i18n/el.json":()=>ae(()=>import("./el.es-b3db55e7.js"),[]),"./i18n/en.json":()=>ae(()=>import("./en.es-713916b0.js"),[]),"./i18n/es.json":()=>ae(()=>import("./es.es-2f81ef8f.js"),[]),"./i18n/et.json":()=>ae(()=>import("./et.es-feab242e.js"),[]),"./i18n/fa.json":()=>ae(()=>import("./fa.es-e30ec481.js"),[]),"./i18n/fr.json":()=>ae(()=>import("./fr.es-fd781cdb.js"),[]),"./i18n/he.json":()=>ae(()=>import("./he.es-ab017da7.js"),[]),"./i18n/hr.json":()=>ae(()=>import("./hr.es-8ff4208c.js"),[]),"./i18n/hu.json":()=>ae(()=>import("./hu.es-a826dbea.js"),[]),"./i18n/id.json":()=>ae(()=>import("./id.es-09894c24.js"),[]),"./i18n/is.json":()=>ae(()=>import("./is.es-9608cdad.js"),[]),"./i18n/it.json":()=>ae(()=>import("./it.es-8f484e02.js"),[]),"./i18n/ja.json":()=>ae(()=>import("./ja.es-b7fc0eb9.js"),[]),"./i18n/ka.json":()=>ae(()=>import("./ka.es-446e6e19.js"),[]),"./i18n/ko.json":()=>ae(()=>import("./ko.es-45e7d699.js"),[]),"./i18n/lt.json":()=>ae(()=>import("./lt.es-bc184482.js"),[]),"./i18n/mn.json":()=>ae(()=>import("./mn.es-5fa17a96.js"),[]),"./i18n/nl.json":()=>ae(()=>import("./nl.es-f5998f61.js"),[]),"./i18n/no.json":()=>ae(()=>import("./no.es-7a7b8685.js"),[]),"./i18n/pl.json":()=>ae(()=>import("./pl.es-2dc4cbea.js"),[]),"./i18n/pt-br.json":()=>ae(()=>import("./pt-br.es-82c2bfad.js"),[]),"./i18n/ro.json":()=>ae(()=>import("./ro.es-0b230c59.js"),[]),"./i18n/ru.json":()=>ae(()=>import("./ru.es-3bc3c295.js"),[]),"./i18n/sk.json":()=>ae(()=>import("./sk.es-477d958c.js"),[]),"./i18n/sl.json":()=>ae(()=>import("./sl.es-7f9e39ca.js"),[]),"./i18n/sq.json":()=>ae(()=>import("./sq.es-484abfbf.js"),[]),"./i18n/sr.json":()=>ae(()=>import("./sr.es-79173882.js"),[]),"./i18n/sv.json":()=>ae(()=>import("./sv.es-cc28424b.js"),[]),"./i18n/tr.json":()=>ae(()=>import("./tr.es-73d31d0a.js"),[]),"./i18n/uk.json":()=>ae(()=>import("./uk.es-72aa5132.js"),[]),"./i18n/vi.json":()=>ae(()=>import("./vi.es-e48f04c7.js"),[]),"./i18n/zh-cn.json":()=>ae(()=>import("./zh-cn.es-d3b0ce92.js"),[]),"./i18n/zh-hk.json":()=>ae(()=>import("./zh-hk.es-f0804a56.js"),[])}),`./i18n/${f}.json`).then(p=>{this.texts=Object.assign({},$o,p.default),this.utils.date.updateTexts(this.texts)})},loadDragAndDrop(){ae(()=>import("./drag-and-drop.es-801b9187.js"),[]).then(f=>{const{DragAndDrop:p}=f;this.modules.dnd=new p(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(f){return Wb.includes(f)||(console.error(`Vue Cal: invalid active-view parameter provided: "${f}".
|
||
A valid view must be one of: ${Wb.join(", ")}.`),f="week"),this.enabledViews.includes(f)||(console.warn(`Vue Cal: the provided active-view "${f}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),f=this.enabledViews[0]),f},switchToNarrowerView(f=null){this.transitionDirection="right";const p=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];p&&this.switchView(p,f)},switchView(f,p=null,_=!1){f=this.validateView(f);const M=this.utils.date,I=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&_){if(this.view.id===f)return;const w=this.enabledViews;this.transitionDirection=w.indexOf(this.view.id)>w.indexOf(f)?"left":"right"}const v=this.view.id;switch(this.view.events=[],this.view.id=f,this.view.firstCellDate=null,this.view.lastCellDate=null,p||(p=this.view.selectedDate||this.view.startDate),f){case"years":this.view.startDate=new Date(25*Math.floor(p.getFullYear()/25)||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break;case"year":this.view.startDate=new Date(p.getFullYear(),0,1),this.view.endDate=new Date(p.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break;case"month":{this.view.startDate=new Date(p.getFullYear(),p.getMonth(),1),this.view.endDate=new Date(p.getFullYear(),p.getMonth()+1,1),this.view.endDate.setSeconds(-1);let w=new Date(this.view.startDate);if(w.getDay()!==(this.startWeekOnSunday?0:1)&&(w=M.getPreviousFirstDayOfWeek(w,this.startWeekOnSunday)),this.view.firstCellDate=w,this.view.lastCellDate=M.addDays(w,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const g=this.view.firstCellDate.getDay()!==6||this.startWeekOnSunday?1:2;this.view.firstCellDate=M.addDays(this.view.firstCellDate,g)}if([0,6].includes(this.view.startDate.getDay())){const g=this.view.startDate.getDay()===6?2:1;this.view.startDate=M.addDays(this.view.startDate,g)}if([0,6].includes(this.view.lastCellDate.getDay())){const g=this.view.lastCellDate.getDay()!==0||this.startWeekOnSunday?1:2;this.view.lastCellDate=M.subtractDays(this.view.lastCellDate,g)}if([0,6].includes(this.view.endDate.getDay())){const g=this.view.endDate.getDay()===0?2:1;this.view.endDate=M.subtractDays(this.view.endDate,g)}}break}case"week":{p=M.getPreviousFirstDayOfWeek(p,this.startWeekOnSunday);const w=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?M.addDays(p,1):p,this.view.startDate.setHours(0,0,0,0),this.view.endDate=M.addDays(p,w),this.view.endDate.setSeconds(-1);break}case"day":this.view.startDate=p,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(p),this.view.endDate.setHours(23,59,59,0)}this.addEventsToView();const C=this.view.startDate&&this.view.startDate.getTime();if((v!==f||C!==I)&&(this.$emit("update:activeView",f),this.ready)){const w=this.view.startDate,g={view:f,startDate:w,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:M.getWeek(this.startWeekOnSunday?M.addDays(w,1):w)}:{}};this.$emit("view-change",g)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(f=!0){const p=this.utils.date;this.transitionDirection=f?"right":"left";const _=f?1:-1;let M=null;const{startDate:I,id:v}=this.view;switch(v){case"years":M=new Date(I.getFullYear()+25*_,0,1);break;case"year":M=new Date(I.getFullYear()+1*_,1,1);break;case"month":M=new Date(I.getFullYear(),I.getMonth()+1*_,1);break;case"week":M=p[f?"addDays":"subtractDays"](p.getPreviousFirstDayOfWeek(I,this.startWeekOnSunday),7);break;case"day":M=p[f?"addDays":"subtractDays"](I,1);const C=M.getDay(),w=this.startWeekOnSunday?C:(C||7)-1;if(this.weekDays[w].hide){const g=this.weekDays.map((x,T)=>({...x,i:T}));let D=0;f?([...g.slice(w),...g].find(x=>(D++,!x.hide)).i,D--):[...g,...g.slice(0,w)].reverse().find(x=>(D++,!x.hide)).i,M=p[f?"addDays":"subtractDays"](M,D)}}M&&this.switchView(v,M)},addEventsToView(f=[]){const p=this.utils.event,{startDate:_,endDate:M,firstCellDate:I,lastCellDate:v}=this.view;if(f.length||(this.view.events=[]),!(f=f.length?f:[...this.mutableEvents])||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let C=f.filter(w=>p.eventInRange(w,_,M));this.isYearsOrYearView||this.isMonthView&&!this.eventsOnMonthView||(C=C.map(w=>w.daysCount>1?p.createEventSegments(w,I||_,v||M):w)),this.view.events.push(...C),this.isMonthView&&(this.view.outOfScopeEvents=[],f.forEach(w=>{(p.eventInRange(w,I,_)||p.eventInRange(w,M,v))&&(this.view.events.some(g=>g._eid===w._eid)||this.view.outOfScopeEvents.push(w))}))},findAncestor(f,p){for(;(f=f.parentElement)&&!f.classList.contains(p););return f},isDOMElementAnEvent(f){return f.classList.contains("vuecal__event")||this.findAncestor(f,"vuecal__event")},onMouseMove(f){const{resizeAnEvent:p,dragAnEvent:_,dragCreateAnEvent:M}=this.domEvents;(p._eid!==null||_._eid!==null||M.start)&&(f.preventDefault(),p._eid?this.eventResizing(f):this.dragToCreateEvent&&M.start&&this.eventDragCreation(f))},onMouseUp(f){const{focusAnEvent:p,resizeAnEvent:_,clickHoldAnEvent:M,clickHoldACell:I,dragCreateAnEvent:v}=this.domEvents,{_eid:C}=M,{_eid:w}=_;let g=!1;const{event:D,start:x}=v,T=this.isDOMElementAnEvent(f.target),b=p.mousedUp;if(p.mousedUp=!1,T&&(this.domEvents.cancelClickEventCreation=!0),I.eventCreated)return;if(w){const{originalEnd:N,originalEndTimeMinutes:P,endTimeMinutes:L}=_,V=this.view.events.find(U=>U._eid===_._eid);if(g=L&&L!==P,V&&V.end.getTime()!==N.getTime()){const U=this.mutableEvents.find(le=>le._eid===_._eid);U.endTimeMinutes=V.endTimeMinutes,U.end=V.end;const $=this.cleanupEvent(V),ee={...this.cleanupEvent(V),end:N,endTimeMinutes:V.originalEndTimeMinutes};this.$emit("event-duration-change",{event:$,oldDate:_.originalEnd,originalEvent:ee}),this.$emit("event-change",{event:$,originalEvent:ee})}V&&(V.resizing=!1),_._eid=null,_.start=null,_.split=null,_.segment=null,_.originalEndTimeMinutes=null,_.originalEnd=null,_.endTimeMinutes=null,_.startCell=null,_.endCell=null}else x&&(D&&(this.emitWithEvent("event-drag-create",D),v.event.resizing=!1),v.start=null,v.split=null,v.event=null);T||w||this.unfocusEvent(),M.timeoutId&&!C&&(clearTimeout(M.timeoutId),M.timeoutId=null),I.timeoutId&&(clearTimeout(I.timeoutId),I.timeoutId=null);const y=typeof this.onEventClick=="function";if(b&&!g&&!C&&!D&&y){let N=this.view.events.find(P=>P._eid===p._eid);return!N&&this.isMonthView&&(N=this.view.outOfScopeEvents.find(P=>P._eid===p._eid)),N&&this.onEventClick(N,f)}},onKeyUp(f){f.keyCode===27&&this.cancelDelete()},eventResizing(f){const{resizeAnEvent:p}=this.domEvents,_=this.view.events.find(D=>D._eid===p._eid)||{segments:{}},{minutes:M,cursorCoords:I}=this.minutesAtCursor(f),v=_.segments&&_.segments[p.segment],{date:C,event:w}=this.utils,g=Math.max(M,this.timeFrom+1,(v||_).startTimeMinutes+1);if(_.endTimeMinutes=p.endTimeMinutes=g,this.snapToTime){const D=_.endTimeMinutes+this.snapToTime/2;_.endTimeMinutes=D-D%this.snapToTime}if(v&&(v.endTimeMinutes=_.endTimeMinutes),_.end.setHours(0,_.endTimeMinutes,_.endTimeMinutes===1440?-1:0,0),this.resizeX&&this.isWeekView){_.daysCount=C.countDays(_.start,_.end);const D=this.cellsEl,x=D.offsetWidth/D.childElementCount,T=Math.floor(I.x/x);if(p.startCell===null&&(p.startCell=T-(_.daysCount-1)),p.endCell!==T){p.endCell=T;const b=C.addDays(_.start,T-p.startCell),y=Math.max(C.countDays(_.start,b),1);if(y!==_.daysCount){let N=null;N=y>_.daysCount?w.addEventSegment(_):w.removeEventSegment(_),p.segment=N,_.endTimeMinutes+=.001}}}this.$emit("event-resizing",{_eid:_._eid,end:_.end,endTimeMinutes:_.endTimeMinutes})},eventDragCreation(f){const{dragCreateAnEvent:p}=this.domEvents,{start:_,startCursorY:M,split:I}=p,v=new Date(_),{minutes:C,cursorCoords:{y:w}}=this.minutesAtCursor(f);if(p.event||!(Math.abs(M-w)<this.dragToCreateThreshold))if(p.event){if(v.setHours(0,C,C===1440?-1:0,0),this.snapToTime){let x=60*v.getHours()+v.getMinutes();const T=x+this.snapToTime/2;x=T-T%this.snapToTime,v.setHours(0,x,0,0)}const g=_<v,{event:D}=p;D.start=g?_:v,D.end=g?v:_,D.startTimeMinutes=60*D.start.getHours()+D.start.getMinutes(),D.endTimeMinutes=60*D.end.getHours()+D.end.getMinutes()}else{if(p.event=this.utils.event.createAnEvent(_,1,{split:I}),!p.event)return p.start=null,p.split=null,void(p.event=null);p.event.resizing=!0}},unfocusEvent(){const{focusAnEvent:f,clickHoldAnEvent:p}=this.domEvents,_=this.view.events.find(M=>M._eid===(f._eid||p._eid));f._eid=null,p._eid=null,_&&(_.focused=!1,_.deleting=!1)},cancelDelete(){const{clickHoldAnEvent:f}=this.domEvents;if(f._eid){const p=this.view.events.find(_=>_._eid===f._eid);p&&(p.deleting=!1),f._eid=null,f.timeoutId=null}},onEventTitleBlur(f,p){if(p.title===f.target.innerHTML)return;const _=p.title;p.title=f.target.innerHTML;const M=this.cleanupEvent(p);this.$emit("event-title-change",{event:M,oldTitle:_}),this.$emit("event-change",{event:M,originalEvent:{...M,title:_}})},updateMutableEvents(){const f=this.utils.date;this.mutableEvents=[],this.events.forEach(p=>{const _=typeof p.start=="string"?f.stringToDate(p.start):p.start,M=f.formatDateLite(_),I=f.dateToMinutes(_);let v=null;typeof p.end=="string"&&p.end.includes("24:00")?(v=new Date(p.end.replace(" 24:00","")),v.setHours(23,59,59,0)):v=typeof p.end=="string"?f.stringToDate(p.end):p.end;let C=f.formatDateLite(v),w=f.dateToMinutes(v);w&&w!==1440||(!this.time||typeof p.end=="string"&&p.end.length===10?v.setHours(23,59,59,0):v.setSeconds(v.getSeconds()-1),C=f.formatDateLite(v),w=1440);const g=M!==C;p=Object.assign({...this.utils.event.eventDefaults},p,{_eid:`${this._.uid}_${this.eventIdIncrement++}`,segments:g?{}:null,start:_,startTimeMinutes:I,end:v,endTimeMinutes:w,daysCount:g?f.countDays(_,v):1,class:p.class}),this.mutableEvents.push(p)})},minutesAtCursor(f){return this.utils.cell.minutesAtCursor(f)},createEvent(f,p,_={}){return this.utils.event.createAnEvent(f,p,_)},cleanupEvent(f){return f={...f},["segments","deletable","deleting","titleEditable","resizable","resizing","draggable","dragging","draggingStatic","focused"].forEach(p=>{p in f&&delete f[p]}),f.repeat||delete f.repeat,f},emitWithEvent(f,p){this.$emit(f,this.cleanupEvent(p))},updateSelectedDate(f){if((f=f&&typeof f=="string"?this.utils.date.stringToDate(f):new Date(f))&&f instanceof Date){const{selectedDate:p}=this.view;p&&(this.transitionDirection=p.getTime()>f.getTime()?"left":"right"),f.setHours(0,0,0,0),p&&p.getTime()===f.getTime()||(this.view.selectedDate=f),this.switchView(this.view.id)}this.$emit("update:selected-date",this.view.selectedDate)},getWeekNumber(f){const p=this.utils.date,_=this.firstCellDateWeekNumber+f,M=this.startWeekOnSunday?1:0;return _>52?p.getWeek(p.addDays(this.view.firstCellDate,7*f+M)):_},timeTick(){this.now=new Date,this.timeTickerIds[1]=setTimeout(this.timeTick,6e4)},updateDateTexts(){this.utils.date.updateTexts(this.texts)},alignWithScrollbar(){if(document.getElementById("vuecal-align-with-scrollbar"))return;const f=this.$refs.vuecal.getElementsByClassName("vuecal__scrollbar-check")[0],p=f.offsetWidth-f.children[0].offsetWidth;if(p){const _=document.createElement("style");_.id="vuecal-align-with-scrollbar",_.type="text/css",_.innerHTML=`.vuecal--view-with-time .vuecal__weekdays-headings,.vuecal--view-with-time .vuecal__all-day {padding-right: ${p}px}`,document.head.appendChild(_)}},cellOrSplitHasEvents:(f,p=null)=>f.length&&(!p&&f.length||p&&f.some(_=>_.split===p.id))},created(){this.utils.cell=new qS(this),this.utils.event=new GS(this,this.utils.date),this.loadLocale(this.locale),this.editEvents.drag&&this.loadDragAndDrop(),this.updateMutableEvents(this.events),this.view.id=this.currentView,this.selectedDate?this.updateSelectedDate(this.selectedDate):(this.view.selectedDate=new Date,this.switchView(this.currentView)),this.time&&this.watchRealTime&&(this.timeTickerIds[0]=setTimeout(this.timeTick,1e3*(60-this.now.getSeconds())))},mounted(){const f=this.utils.date,p="ontouchstart"in window,{resize:_,drag:M,create:I,delete:v,title:C}=this.editEvents,w=this.onEventClick&&typeof this.onEventClick=="function";(_||M||I||v||C||w)&&window.addEventListener(p?"touchend":"mouseup",this.onMouseUp),(_||M||I&&this.dragToCreateEvent)&&window.addEventListener(p?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),C&&window.addEventListener("keyup",this.onKeyUp),p&&(this.$refs.vuecal.oncontextmenu=function(x){x.preventDefault(),x.stopPropagation()}),this.hideBody||this.alignWithScrollbar();const g=this.view.startDate,D={view:this.view.id,startDate:g,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:f.getWeek(this.startWeekOnSunday?f.addDays(g,1):g)}:{}};this.$emit("ready",D),this.ready=!0},beforeUnmount(){const f="ontouchstart"in window;window.removeEventListener(f?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),window.removeEventListener(f?"touchend":"mouseup",this.onMouseUp),window.removeEventListener("keyup",this.onKeyUp),this.timeTickerIds[0]&&clearTimeout(this.timeTickerIds[0]),this.timeTickerIds[1]&&clearTimeout(this.timeTickerIds[1]),this.timeTickerIds=[null,null]},computed:{editEvents(){return this.editableEvents&&typeof this.editableEvents=="object"?{title:!!this.editableEvents.title,drag:!!this.editableEvents.drag,resize:!!this.editableEvents.resize,create:!!this.editableEvents.create,delete:!!this.editableEvents.delete}:{title:!!this.editableEvents,drag:!!this.editableEvents,resize:!!this.editableEvents,create:!!this.editableEvents,delete:!!this.editableEvents}},views(){return{years:{label:this.texts.years,enabled:!this.disableViews.includes("years")},year:{label:this.texts.year,enabled:!this.disableViews.includes("year")},month:{label:this.texts.month,enabled:!this.disableViews.includes("month")},week:{label:this.texts.week,enabled:!this.disableViews.includes("week")},day:{label:this.texts.day,enabled:!this.disableViews.includes("day")}}},currentView(){return this.validateView(this.activeView)},enabledViews(){return Object.keys(this.views).filter(f=>this.views[f].enabled)},hasTimeColumn(){return this.time&&this.isWeekOrDayView},isShortMonthView(){return this.isMonthView&&this.eventsOnMonthView==="short"},firstCellDateWeekNumber(){const f=this.utils.date,p=this.view.firstCellDate;return f.getWeek(this.startWeekOnSunday?f.addDays(p,1):p)},timeCells(){const f=[];for(let p=this.timeFrom,_=this.timeTo;p<_;p+=this.timeStep)f.push({hours:Math.floor(p/60),minutes:p%60,label:this.utils.date.formatTime(p,this.TimeFormat),value:p});return f},TimeFormat(){return this.timeFormat||(this.twelveHour?"h:mm{am}":"HH:mm")},daySplits(){return(this.splitDays.filter(f=>!f.hide)||[]).map((f,p)=>({...f,id:f.id||p+1}))},hasSplits(){return this.daySplits.length&&this.isWeekOrDayView},hasShortEvents(){return this.showAllDayEvents==="short"},cellOrSplitMinWidth(){let f=null;return this.hasSplits&&this.minSplitWidth?f=this.visibleDaysCount*this.minSplitWidth*this.daySplits.length:this.minCellWidth&&this.isWeekView&&(f=this.visibleDaysCount*this.minCellWidth),f},allDayBar(){let f=this.allDayBarHeight||null;return f&&!isNaN(f)&&(f+="px"),{cells:this.viewCells,options:this.$props,label:this.texts.allDay,shortEvents:this.hasShortEvents,daySplits:this.hasSplits&&this.daySplits||[],cellOrSplitMinWidth:this.cellOrSplitMinWidth,height:f}},minTimestamp(){let f=null;return this.minDate&&typeof this.minDate=="string"?f=this.utils.date.stringToDate(this.minDate):this.minDate&&this.minDate instanceof Date&&(f=this.minDate),f?f.getTime():null},maxTimestamp(){let f=null;return this.maxDate&&typeof this.maxDate=="string"?f=this.utils.date.stringToDate(this.maxDate):this.maxDate&&this.minDate instanceof Date&&(f=this.maxDate),f?f.getTime():null},weekDays(){let{weekDays:f,weekDaysShort:p=[]}=this.texts;return f=f.slice(0).map((_,M)=>({label:_,...p.length?{short:p[M]}:{},hide:this.hideWeekends&&M>=5||this.hideWeekdays.length&&this.hideWeekdays.includes(M+1)})),this.startWeekOnSunday&&f.unshift(f.pop()),f},weekDaysInHeader(){return this.isMonthView||this.isWeekView&&!this.minCellWidth&&!(this.hasSplits&&this.minSplitWidth)},months(){return this.texts.months.map(f=>({label:f}))},specialDayHours(){return this.specialHours&&Object.keys(this.specialHours).length?Array(7).fill("").map((f,p)=>{let _=this.specialHours[p+1]||[];return Array.isArray(_)||(_=[_]),f=[],_.forEach(({from:M,to:I,class:v,label:C},w)=>{f[w]={day:p+1,from:[null,void 0].includes(M)?null:1*M,to:[null,void 0].includes(I)?null:1*I,class:v||"",label:C||""}}),f}):{}},viewTitle(){const f=this.utils.date;let p="";const _=this.view.startDate,M=_.getFullYear(),I=_.getMonth();switch(this.view.id){case"years":p=this.texts.years;break;case"year":p=M;break;case"month":p=`${this.months[I].label} ${M}`;break;case"week":{const v=this.view.endDate,C=_.getFullYear();let w=this.texts.months[_.getMonth()];this.xsmall&&(w=w.substring(0,3));let g=`${w} ${C}`;if(v.getMonth()!==_.getMonth()){const D=v.getFullYear();let x=this.texts.months[v.getMonth()];this.xsmall&&(x=x.substring(0,3)),g=C===D?`${w} - ${x} ${C}`:this.small?`${w.substring(0,3)} ${C} - ${x.substring(0,3)} ${D}`:`${w} ${C} - ${x} ${D}`}p=`${this.texts.week} ${f.getWeek(this.startWeekOnSunday?f.addDays(_,1):_)} (${g})`;break}case"day":p=this.utils.date.formatDate(_,this.texts.dateFormat,this.texts)}return p},viewCells(){const f=this.utils.date;let p=[],_=null,M=!1;this.watchRealTime||(this.now=new Date);const I=this.now;switch(this.view.id){case"years":_=this.view.startDate.getFullYear(),p=Array.apply(null,Array(25)).map((v,C)=>{const w=new Date(_+C,0,1),g=new Date(_+C+1,0,1);return g.setSeconds(-1),{startDate:w,formattedDate:f.formatDateLite(w),endDate:g,content:_+C,current:_+C===I.getFullYear()}});break;case"year":_=this.view.startDate.getFullYear(),p=Array.apply(null,Array(12)).map((v,C)=>{const w=new Date(_,C,1),g=new Date(_,C+1,1);return g.setSeconds(-1),{startDate:w,formattedDate:f.formatDateLite(w),endDate:g,content:this.xsmall?this.months[C].label.substr(0,3):this.months[C].label,current:C===I.getMonth()&&_===I.getFullYear()}});break;case"month":{const v=this.view.startDate.getMonth(),C=new Date(this.view.firstCellDate);M=!1,p=Array.apply(null,Array(42)).map((w,g)=>{const D=f.addDays(C,g),x=new Date(D);x.setHours(23,59,59,0);const T=!M&&f.isToday(D)&&!M++;return{startDate:D,formattedDate:f.formatDateLite(D),endDate:x,content:D.getDate(),today:T,outOfScope:D.getMonth()!==v,class:`vuecal__cell--day${D.getDay()||7}`}}),(this.hideWeekends||this.hideWeekdays.length)&&(p=p.filter(w=>{const g=w.startDate.getDay()||7;return!(this.hideWeekends&&g>=6||this.hideWeekdays.length&&this.hideWeekdays.includes(g))}));break}case"week":{M=!1;const v=this.view.startDate,C=this.weekDays;p=C.map((w,g)=>{const D=f.addDays(v,this.startWeekOnSunday?g-1:g),x=new Date(D);x.setHours(23,59,59,0);const T=(D.getDay()||7)-1;return{startDate:D,formattedDate:f.formatDateLite(D),endDate:x,today:!M&&f.isToday(D)&&!M++,specialHours:this.specialDayHours[T]||[]}}).filter((w,g)=>!C[g].hide);break}case"day":{const v=this.view.startDate,C=new Date(this.view.startDate);C.setHours(23,59,59,0);const w=(v.getDay()||7)-1;p=[{startDate:v,formattedDate:f.formatDateLite(v),endDate:C,today:f.isToday(v),specialHours:this.specialDayHours[w]||[]}];break}}return p},visibleDaysCount(){return this.isDayView?1:7-this.weekDays.reduce((f,p)=>f+p.hide,0)},cellWidth(){return 100/this.visibleDaysCount},cssClasses(){const{resizeAnEvent:f,dragAnEvent:p,dragCreateAnEvent:_}=this.domEvents;return{[`vuecal--${this.view.id}-view`]:!0,[`vuecal--${this.locale}`]:this.locale,"vuecal--no-time":!this.time,"vuecal--view-with-time":this.hasTimeColumn,"vuecal--week-numbers":this.showWeekNumbers&&this.isMonthView,"vuecal--twelve-hour":this.twelveHour,"vuecal--click-to-navigate":this.clickToNavigate,"vuecal--hide-weekends":this.hideWeekends,"vuecal--split-days":this.hasSplits,"vuecal--sticky-split-labels":this.hasSplits&&this.stickySplitLabels,"vuecal--overflow-x":this.minCellWidth&&this.isWeekView||this.hasSplits&&this.minSplitWidth,"vuecal--small":this.small,"vuecal--xsmall":this.xsmall,"vuecal--resizing-event":f._eid,"vuecal--drag-creating-event":_.event,"vuecal--dragging-event":p._eid,"vuecal--events-on-month-view":this.eventsOnMonthView,"vuecal--short-events":this.isMonthView&&this.eventsOnMonthView==="short","vuecal--has-touch":typeof window<"u"&&"ontouchstart"in window}},isYearsOrYearView(){return["years","year"].includes(this.view.id)},isYearsView(){return this.view.id==="years"},isYearView(){return this.view.id==="year"},isMonthView(){return this.view.id==="month"},isWeekOrDayView(){return["week","day"].includes(this.view.id)},isWeekView(){return this.view.id==="week"},isDayView(){return this.view.id==="day"}},watch:{events:{handler(f,p){this.updateMutableEvents(f),this.addEventsToView()},deep:!0},locale(f){this.loadLocale(f)},selectedDate(f){this.updateSelectedDate(f)},activeView(f){this.switchView(f)}}},Q4=Ki(Y4,[["render",function(f,p,_,M,I,v){const C=ut("vuecal-header"),w=ut("all-day-bar"),g=ut("weekdays-headings"),D=ut("vuecal-cell");return W(),J("div",{class:dt(["vuecal__flex vuecal",v.cssClasses]),column:"",ref:"vuecal",lang:_.locale},[j(C,{options:f.$props,"edit-events":v.editEvents,"view-props":{views:v.views,weekDaysInHeader:v.weekDaysInHeader},"week-days":v.weekDays,"has-splits":v.hasSplits,"day-splits":v.daySplits,"switch-to-narrower-view":v.switchToNarrowerView},As({"arrow-prev":R(()=>[ve(f.$slots,"arrow-prev",{},()=>[ze(" "),_4,ze(" ")])]),"arrow-next":R(()=>[ve(f.$slots,"arrow-next",{},()=>[ze(" "),A4,ze(" ")])]),"today-button":R(()=>[ve(f.$slots,"today-button",{},()=>[we("span",C4,ue(I.texts.today),1)])]),title:R(()=>[ve(f.$slots,"title",{title:v.viewTitle,view:I.view},()=>[ze(ue(v.viewTitle),1)])]),_:2},[f.$slots["weekday-heading"]?{name:"weekday-heading",fn:R(({heading:x,view:T})=>[ve(f.$slots,"weekday-heading",{heading:x,view:T})]),key:"0"}:void 0,f.$slots["split-label"]?{name:"split-label",fn:R(({split:x})=>[ve(f.$slots,"split-label",{split:x,view:I.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),_.hideBody?ce("",!0):(W(),J("div",v4,[j(Ko,{name:`slide-fade--${I.transitionDirection}`,appear:_.transitions},{default:R(()=>[(W(),J("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:!!_.transitions&&I.view.id,column:""},[_.showAllDayEvents&&v.hasTimeColumn&&(!v.cellOrSplitMinWidth||v.isDayView&&!_.minSplitWidth)?(W(),pe(w,Fc(hn({key:0},v.allDayBar)),{event:R(({event:x,view:T})=>[ve(f.$slots,"event",{view:T,event:x},()=>[v.editEvents.title&&x.titleEditable?(W(),J("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:b=>v.onEventTitleBlur(b,x),innerHTML:x.title},null,40,y4)):x.title?(W(),J("div",{key:1,class:"vuecal__event-title",innerHTML:x.title},null,8,x4)):ce("",!0),!x.content||v.hasShortEvents||v.isShortMonthView?ce("",!0):(W(),J("div",{key:2,class:"vuecal__event-content",innerHTML:x.content},null,8,D4))])]),_:3},16)):ce("",!0),we("div",{class:dt(["vuecal__bg",{vuecal__flex:!v.hasTimeColumn}]),column:""},[we("div",E4,[v.hasTimeColumn?(W(),J("div",T4,[_.showAllDayEvents&&v.cellOrSplitMinWidth&&(!v.isDayView||_.minSplitWidth)?(W(),J("div",{key:0,class:"vuecal__all-day-text",style:St({height:v.allDayBar.height})},[we("span",null,ue(I.texts.allDay),1)],4)):ce("",!0),(W(!0),J(He,null,Qe(v.timeCells,(x,T)=>(W(),J("div",{class:"vuecal__time-cell",key:T,style:St(`height: ${_.timeCellHeight}px`)},[ve(f.$slots,"time-cell",{hours:x.hours,minutes:x.minutes},()=>[M4,we("span",I4,ue(x.label),1)])],4))),128))])):ce("",!0),_.showWeekNumbers&&v.isMonthView?(W(),J("div",S4,[(W(),J(He,null,Qe(6,x=>we("div",{class:"vuecal__flex vuecal__week-number-cell",key:x,grow:""},[ve(f.$slots,"week-number-cell",{week:v.getWeekNumber(x-1)},()=>[ze(ue(v.getWeekNumber(x-1)),1)])])),64))])):ce("",!0),we("div",{class:dt(["vuecal__flex vuecal__cells",`${I.view.id}-view`]),grow:"",wrap:!v.cellOrSplitMinWidth||!v.isWeekView,column:!!v.cellOrSplitMinWidth},[v.cellOrSplitMinWidth&&v.isWeekView?(W(),pe(g,{key:0,"transition-direction":I.transitionDirection,"week-days":v.weekDays,"switch-to-narrower-view":v.switchToNarrowerView,style:St(v.cellOrSplitMinWidth?`min-width: ${v.cellOrSplitMinWidth}px`:"")},As({_:2},[f.$slots["weekday-heading"]?{name:"weekday-heading",fn:R(({heading:x,view:T})=>[ve(f.$slots,"weekday-heading",{heading:x,view:T})]),key:"0"}:void 0,f.$slots["split-label"]?{name:"split-label",fn:R(({split:x})=>[ve(f.$slots,"split-label",{split:x,view:I.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):v.hasSplits&&_.stickySplitLabels&&_.minSplitWidth?(W(),J("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:St(v.cellOrSplitMinWidth?`min-width: ${v.cellOrSplitMinWidth}px`:"")},[(W(!0),J(He,null,Qe(v.daySplits,(x,T)=>(W(),J("div",{class:dt(["day-split-header",x.class||!1]),key:T},[ve(f.$slots,"split-label",{split:x,view:I.view.id},()=>[ze(ue(x.label),1)])],2))),128))],4)):ce("",!0),_.showAllDayEvents&&v.hasTimeColumn&&(v.isWeekView&&v.cellOrSplitMinWidth||v.isDayView&&v.hasSplits&&_.minSplitWidth)?(W(),pe(w,Fc(hn({key:2},v.allDayBar)),{event:R(({event:x,view:T})=>[ve(f.$slots,"event",{view:T,event:x},()=>[v.editEvents.title&&x.titleEditable?(W(),J("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:b=>v.onEventTitleBlur(b,x),innerHTML:x.title},null,40,N4)):x.title?(W(),J("div",{key:1,class:"vuecal__event-title",innerHTML:x.title},null,8,O4)):ce("",!0),!x.content||v.hasShortEvents||v.isShortMonthView?ce("",!0):(W(),J("div",{key:2,class:"vuecal__event-content",innerHTML:x.content},null,8,P4))])]),_:3},16)):ce("",!0),we("div",{class:"vuecal__flex",ref:x=>I.cellsEl=x,grow:"",wrap:!v.cellOrSplitMinWidth||!v.isWeekView,style:St(v.cellOrSplitMinWidth?`min-width: ${v.cellOrSplitMinWidth}px`:"")},[(W(!0),J(He,null,Qe(v.viewCells,(x,T)=>(W(),pe(D,{key:T,options:f.$props,"edit-events":v.editEvents,data:x,"cell-width":_.hideWeekdays.length&&(v.isWeekView||v.isMonthView)&&v.cellWidth,"min-timestamp":v.minTimestamp,"max-timestamp":v.maxTimestamp,"cell-splits":v.hasSplits&&v.daySplits||[]},{"cell-content":R(({events:b,split:y,selectCell:N})=>[ve(f.$slots,"cell-content",{cell:x,view:I.view,goNarrower:N,events:b},()=>[y&&!_.stickySplitLabels?(W(),J("div",{key:0,class:"split-label",innerHTML:y.label},null,8,z4)):ce("",!0),x.content?(W(),J("div",{key:1,class:"vuecal__cell-date",innerHTML:x.content},null,8,R4)):ce("",!0),(v.isMonthView&&!_.eventsOnMonthView||v.isYearsOrYearView&&_.eventsCountOnYearView)&&b.length?(W(),J("div",j4,[ve(f.$slots,"events-count",{view:I.view,events:b},()=>[ze(ue(b.length),1)])])):ce("",!0),!v.cellOrSplitHasEvents(b,y)&&v.isWeekOrDayView?(W(),J("div",F4,[ve(f.$slots,"no-event",{},()=>[ze(ue(I.texts.noEvent),1)])])):ce("",!0)])]),event:R(({event:b,view:y})=>[ve(f.$slots,"event",{view:y,event:b},()=>[v.editEvents.title&&b.titleEditable?(W(),J("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:N=>v.onEventTitleBlur(N,b),innerHTML:b.title},null,40,V4)):b.title?(W(),J("div",{key:1,class:"vuecal__event-title",innerHTML:b.title},null,8,H4)):ce("",!0),!_.time||b.allDay||v.isMonthView&&(b.allDay||_.showAllDayEvents==="short")||v.isShortMonthView?ce("",!0):(W(),J("div",U4,[ze(ue(I.utils.date.formatTime(b.start,v.TimeFormat)),1),b.endTimeMinutes?(W(),J("span",W4," - "+ue(I.utils.date.formatTime(b.end,v.TimeFormat,null,!0)),1)):ce("",!0),b.daysCount>1&&(b.segments[x.formattedDate]||{}).isFirstDay?(W(),J("small",q4," +"+ue(b.daysCount-1)+ue((I.texts.day[0]||"").toLowerCase()),1)):ce("",!0)])),!b.content||v.isMonthView&&b.allDay&&_.showAllDayEvents==="short"||v.isShortMonthView?ce("",!0):(W(),J("div",{key:3,class:"vuecal__event-content",innerHTML:b.content},null,8,G4))])]),"no-event":R(()=>[ve(f.$slots,"no-event",{},()=>[ze(ue(I.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,L4)],10,B4)])],2)]))]),_:3},8,["name","appear"]),I.ready?ce("",!0):(W(),J("div",$4,K4))]))],10,w4)}]]);var lw={exports:{}};const Z4=rS(xS);/*!
|
||
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md.
|
||
*/(function(f,p){(function(_,M){f.exports=M(Z4)})(self,_=>(()=>{var M={976:w=>{w.exports=_}},I={};function v(w){var g=I[w];if(g!==void 0)return g.exports;var D=I[w]={exports:{}};return M[w](D,D.exports,v),D.exports}v.d=(w,g)=>{for(var D in g)v.o(g,D)&&!v.o(w,D)&&Object.defineProperty(w,D,{enumerable:!0,get:g[D]})},v.o=(w,g)=>Object.prototype.hasOwnProperty.call(w,g);var C={};return(()=>{v.d(C,{default:()=>Zi});var w=v(976);const g=function(Z){var fe=typeof Z;return Z!=null&&(fe=="object"||fe=="function")},D=typeof zn=="object"&&zn&&zn.Object===Object&&zn;var x=typeof self=="object"&&self&&self.Object===Object&&self;const T=D||x||Function("return this")(),b=function(){return T.Date.now()};var y=/\s/;const N=function(Z){for(var fe=Z.length;fe--&&y.test(Z.charAt(fe)););return fe};var P=/^\s+/;const L=function(Z){return Z&&Z.slice(0,N(Z)+1).replace(P,"")},V=T.Symbol;var U=Object.prototype,$=U.hasOwnProperty,ee=U.toString,le=V?V.toStringTag:void 0;const Ge=function(Z){var fe=$.call(Z,le),$e=Z[le];try{Z[le]=void 0;var he=!0}catch{}var Bt=ee.call(Z);return he&&(fe?Z[le]=$e:delete Z[le]),Bt};var B=Object.prototype.toString;const X=function(Z){return B.call(Z)};var re=V?V.toStringTag:void 0;const De=function(Z){return Z==null?Z===void 0?"[object Undefined]":"[object Null]":re&&re in Object(Z)?Ge(Z):X(Z)},Re=function(Z){return Z!=null&&typeof Z=="object"},Ue=function(Z){return typeof Z=="symbol"||Re(Z)&&De(Z)=="[object Symbol]"};var Fe=/^[-+]0x[0-9a-f]+$/i,mt=/^0b[01]+$/i,Ct=/^0o[0-7]+$/i,pt=parseInt;const xn=function(Z){if(typeof Z=="number")return Z;if(Ue(Z))return NaN;if(g(Z)){var fe=typeof Z.valueOf=="function"?Z.valueOf():Z;Z=g(fe)?fe+"":fe}if(typeof Z!="string")return Z===0?Z:+Z;Z=L(Z);var $e=mt.test(Z);return $e||Ct.test(Z)?pt(Z.slice(2),$e?2:8):Fe.test(Z)?NaN:+Z};var ye=Math.max,Jo=Math.min;const Yi=function(Z,fe,$e){var he,Bt,tn,nn,it,on,Dn=0,xe=!1,En=!1,Ji=!0;if(typeof Z!="function")throw new TypeError("Expected a function");function Xi(Ee){var Nt=he,gi=Bt;return he=Bt=void 0,Dn=Ee,nn=Z.apply(gi,Nt)}function Xo(Ee){return Dn=Ee,it=setTimeout(ui,fe),xe?Xi(Ee):nn}function eo(Ee){var Nt=Ee-on;return on===void 0||Nt>=fe||Nt<0||En&&Ee-Dn>=tn}function ui(){var Ee=b();if(eo(Ee))return hi(Ee);it=setTimeout(ui,function(Nt){var gi=fe-(Nt-on);return En?Jo(gi,tn-(Nt-Dn)):gi}(Ee))}function hi(Ee){return it=void 0,Ji&&he?Xi(Ee):(he=Bt=void 0,nn)}function ot(){var Ee=b(),Nt=eo(Ee);if(he=arguments,Bt=this,on=Ee,Nt){if(it===void 0)return Xo(on);if(En)return clearTimeout(it),it=setTimeout(ui,fe),Xi(on)}return it===void 0&&(it=setTimeout(ui,fe)),nn}return fe=xn(fe)||0,g($e)&&(xe=!!$e.leading,tn=(En="maxWait"in $e)?ye(xn($e.maxWait)||0,fe):tn,Ji="trailing"in $e?!!$e.trailing:Ji),ot.cancel=function(){it!==void 0&&clearTimeout(it),Dn=0,he=on=Bt=it=void 0},ot.flush=function(){return it===void 0?nn:hi(b())},ot},Qi=(0,w.defineComponent)({name:"Ckeditor",model:{prop:"modelValue",event:"update:modelValue"},props:{editor:{type:Function,required:!0},config:{type:Object,default:()=>({})},modelValue:{type:String,default:""},tagName:{type:String,default:"div"},disabled:{type:Boolean,default:!1},disableTwoWayDataBinding:{type:Boolean,default:!1}},emits:["ready","destroy","blur","focus","input","update:modelValue"],data:()=>({instance:null,lastEditorData:null}),watch:{modelValue(Z){this.instance&&Z!==this.lastEditorData&&this.instance.data.set(Z)},disabled(Z){Z?this.instance.enableReadOnlyMode("Integration Sample"):this.instance.disableReadOnlyMode("Integration Sample")}},created(){const{CKEDITOR_VERSION:Z}=window;if(Z){const[fe]=Z.split(".").map(Number);fe<37&&console.warn("The <CKEditor> component requires using CKEditor 5 in version 37 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')},mounted(){const Z=Object.assign({},this.config);this.modelValue&&(Z.initialData=this.modelValue),this.editor.create(this.$el,Z).then(fe=>{this.instance=(0,w.markRaw)(fe),this.setUpEditorEvents(),this.modelValue!==Z.initialData&&fe.data.set(this.modelValue),this.disabled&&fe.enableReadOnlyMode("Integration Sample"),this.$emit("ready",fe)}).catch(fe=>{console.error(fe)})},beforeUnmount(){this.instance&&(this.instance.destroy(),this.instance=null),this.$emit("destroy",this.instance)},methods:{setUpEditorEvents(){const Z=this.instance,fe=Yi($e=>{if(this.disableTwoWayDataBinding)return;const he=this.lastEditorData=Z.data.get();this.$emit("update:modelValue",he,$e,Z),this.$emit("input",he,$e,Z)},300,{leading:!0});Z.model.document.on("change:data",fe),Z.editing.view.document.on("focus",$e=>{this.$emit("focus",$e,Z)}),Z.editing.view.document.on("blur",$e=>{this.$emit("blur",$e,Z)})}},render(){return(0,w.h)(this.tagName)}});if(!w.version||!w.version.startsWith("3."))throw new Error("The CKEditor plugin works only with Vue 3+. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v3.html");const Zi={install(Z){Z.component("Ckeditor",Qi)},component:Qi}})(),C=C.default})())})(lw);var J4=lw.exports;const X4=ew(J4);var Cs={exports:{}};Cs.exports;(function(f,p){(function(_){const M=_.en=_.en||{};M.dictionary=Object.assign(M.dictionary||{},{"(may require <kbd>Fn</kbd>)":"(may require <kbd>Fn</kbd>)","%0 of %1":"%0 of %1",Accept:"Accept",Accessibility:"Accessibility","Accessibility help":"Accessibility help","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background","Below, you can find a list of keyboard shortcuts that can be used in the editor.":"Below, you can find a list of keyboard shortcuts that can be used in the editor.",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Bold text":"Bold text",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Close:"Close","Close contextual balloons, dropdowns, and dialogs":"Close contextual balloons, dropdowns, and dialogs",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Content editing keystrokes":"Content editing keystrokes","Copy selected content":"Copy selected content","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Create link":"Create link",Custom:"Custom","Custom image size":"Custom image size",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Decrease list item indent":"Decrease list item indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit image":"Edit image","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor dialog":"Editor dialog","Editor editing area: %0":"Editor editing area: %0","Editor menu bar":"Editor menu bar","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Entering a to-do list":"Entering a to-do list","Error during image upload":"Error during image upload","Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.":"Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.","Failed to determine category of edited image.":"Failed to determine category of edited image.","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height","Help Contents. To close this dialog press ESC.":"Help Contents. To close this dialog press ESC.",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Image from computer":"Image from computer","Image resize list":"Image resize list","Image toolbar":"Image toolbar","Image upload complete":"Image upload complete","image widget":"image widget","In line":"In line","Increase indent":"Increase indent","Increase list item indent":"Increase list item indent",Insert:"Insert","Insert a hard break (a new paragraph)":"Insert a hard break (a new paragraph)","Insert a new paragraph directly after a widget":"Insert a new paragraph directly after a widget","Insert a new paragraph directly before a widget":"Insert a new paragraph directly before a widget","Insert a new table row (when in the last cell of a table)":"Insert a new table row (when in the last cell of a table)","Insert a soft break (a <code><br></code> element)":"Insert a soft break (a <code><br></code> element)","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image via URL":"Insert image via URL","Insert image with file manager":"Insert image with file manager","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Insert with file manager":"Insert with file manager","Inserting image failed":"Inserting image failed",Inset:"Inset","Invalid start index value.":"Invalid start index value.",Italic:"Italic","Italic text":"Italic text","Justify cell text":"Justify cell text","Keystrokes that can be used in a list":"Keystrokes that can be used in a list","Keystrokes that can be used in a table cell":"Keystrokes that can be used in a table cell","Keystrokes that can be used when a widget is selected (for example: image, table, etc.)":"Keystrokes that can be used when a widget is selected (for example: image, table, etc.)","Leaving a to-do list":"Leaving a to-do list","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","Link URL must not be empty.":"Link URL must not be empty.","List properties":"List properties","Lower-latin":"Lower-latin","Lower–roman":"Lower–roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget",MENU_BAR_MENU_EDIT:"Edit",MENU_BAR_MENU_FILE:"File",MENU_BAR_MENU_FONT:"Font",MENU_BAR_MENU_FORMAT:"Format",MENU_BAR_MENU_HELP:"Help",MENU_BAR_MENU_INSERT:"Insert",MENU_BAR_MENU_TEXT:"Text",MENU_BAR_MENU_TOOLS:"Tools",MENU_BAR_MENU_VIEW:"View","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells","Move focus between form fields (inputs, buttons, etc.)":"Move focus between form fields (inputs, buttons, etc.)","Move focus in and out of an active dialog window":"Move focus in and out of an active dialog window","Move focus to the menu bar, navigate between menu bars":"Move focus to the menu bar, navigate between menu bars","Move focus to the toolbar, navigate between toolbars":"Move focus to the toolbar, navigate between toolbars","Move out of a link":"Move out of a link","Move out of an inline code style":"Move out of an inline code style","Move the caret to allow typing directly after a widget":"Move the caret to allow typing directly after a widget","Move the caret to allow typing directly before a widget":"Move the caret to allow typing directly before a widget","Move the selection to the next cell":"Move the selection to the next cell","Move the selection to the previous cell":"Move the selection to the previous cell","Navigate through the table":"Navigate through the table","Navigate through the toolbar or menu bar":"Navigate through the toolbar or menu bar",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab","Open the accessibility help dialog":"Open the accessibility help dialog",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste content":"Paste content","Paste content as plain text":"Paste content as plain text","Paste the media URL in the input.":"Paste the media URL in the input.",'Please enter a valid color (e.g. "ff0000").':'Please enter a valid color (e.g. "ff0000").',"Press %0 for help.":"Press %0 for help.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous","Processing the edited image.":"Processing the edited image.",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Replace from computer":"Replace from computer","Replace image":"Replace image","Replace image from computer":"Replace image from computer","Replace image with file manager":"Replace image with file manager","Replace with file manager":"Replace with file manager","Resize image":"Resize image","Resize image (in %0)":"Resize image (in %0)","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Revert autoformatting action":"Revert autoformatting action","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Server failed to process the image.":"Server failed to process the image.","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough","Strikethrough text":"Strikethrough text",Style:"Style",Subscript:"Subscript",Superscript:"Superscript",Table:"Table","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"The value must not be empty.":"The value must not be empty.","The value should be a plain number.":"The value should be a plain number.","These keyboard shortcuts allow for quick access to content editing features.":"These keyboard shortcuts allow for quick access to content editing features.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower–latin list style":"Toggle the lower–latin list style","Toggle the lower–roman list style":"Toggle the lower–roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper–latin list style":"Toggle the upper–latin list style","Toggle the upper–roman list style":"Toggle the upper–roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline","Underline text":"Underline text",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Upload in progress":"Upload in progress","Uploading image":"Uploading image","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.":"Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.","User interface and content navigation keystrokes":"User interface and content navigation keystrokes","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),function(_,M){f.exports=M()}(self,()=>(()=>{var _={9246:(C,w,g)=>{const D=g(6931),x={};for(const b of Object.keys(D))x[D[b]]=b;const T={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};C.exports=T;for(const b of Object.keys(T)){if(!("channels"in T[b]))throw new Error("missing channels property: "+b);if(!("labels"in T[b]))throw new Error("missing channel labels property: "+b);if(T[b].labels.length!==T[b].channels)throw new Error("channel and label counts mismatch: "+b);const{channels:y,labels:N}=T[b];delete T[b].channels,delete T[b].labels,Object.defineProperty(T[b],"channels",{value:y}),Object.defineProperty(T[b],"labels",{value:N})}T.rgb.hsl=function(b){const y=b[0]/255,N=b[1]/255,P=b[2]/255,L=Math.min(y,N,P),V=Math.max(y,N,P),U=V-L;let $,ee;V===L?$=0:y===V?$=(N-P)/U:N===V?$=2+(P-y)/U:P===V&&($=4+(y-N)/U),$=Math.min(60*$,360),$<0&&($+=360);const le=(L+V)/2;return ee=V===L?0:le<=.5?U/(V+L):U/(2-V-L),[$,100*ee,100*le]},T.rgb.hsv=function(b){let y,N,P,L,V;const U=b[0]/255,$=b[1]/255,ee=b[2]/255,le=Math.max(U,$,ee),Ge=le-Math.min(U,$,ee),B=function(X){return(le-X)/6/Ge+.5};return Ge===0?(L=0,V=0):(V=Ge/le,y=B(U),N=B($),P=B(ee),U===le?L=P-N:$===le?L=.3333333333333333+y-P:ee===le&&(L=.6666666666666666+N-y),L<0?L+=1:L>1&&(L-=1)),[360*L,100*V,100*le]},T.rgb.hwb=function(b){const y=b[0],N=b[1];let P=b[2];const L=T.rgb.hsl(b)[0],V=1/255*Math.min(y,Math.min(N,P));return P=1-.00392156862745098*Math.max(y,Math.max(N,P)),[L,100*V,100*P]},T.rgb.cmyk=function(b){const y=b[0]/255,N=b[1]/255,P=b[2]/255,L=Math.min(1-y,1-N,1-P);return[100*((1-y-L)/(1-L)||0),100*((1-N-L)/(1-L)||0),100*((1-P-L)/(1-L)||0),100*L]},T.rgb.keyword=function(b){const y=x[b];if(y)return y;let N,P=1/0;for(const U of Object.keys(D)){const $=D[U],ee=(V=$,((L=b)[0]-V[0])**2+(L[1]-V[1])**2+(L[2]-V[2])**2);ee<P&&(P=ee,N=U)}var L,V;return N},T.keyword.rgb=function(b){return D[b]},T.rgb.xyz=function(b){let y=b[0]/255,N=b[1]/255,P=b[2]/255;return y=y>.04045?((y+.055)/1.055)**2.4:y/12.92,N=N>.04045?((N+.055)/1.055)**2.4:N/12.92,P=P>.04045?((P+.055)/1.055)**2.4:P/12.92,[100*(.4124*y+.3576*N+.1805*P),100*(.2126*y+.7152*N+.0722*P),100*(.0193*y+.1192*N+.9505*P)]},T.rgb.lab=function(b){const y=T.rgb.xyz(b);let N=y[0],P=y[1],L=y[2];return N/=95.047,P/=100,L/=108.883,N=N>.008856?N**.3333333333333333:7.787*N+.13793103448275862,P=P>.008856?P**.3333333333333333:7.787*P+.13793103448275862,L=L>.008856?L**.3333333333333333:7.787*L+.13793103448275862,[116*P-16,500*(N-P),200*(P-L)]},T.hsl.rgb=function(b){const y=b[0]/360,N=b[1]/100,P=b[2]/100;let L,V,U;if(N===0)return U=255*P,[U,U,U];L=P<.5?P*(1+N):P+N-P*N;const $=2*P-L,ee=[0,0,0];for(let le=0;le<3;le++)V=y+.3333333333333333*-(le-1),V<0&&V++,V>1&&V--,U=6*V<1?$+6*(L-$)*V:2*V<1?L:3*V<2?$+(L-$)*(.6666666666666666-V)*6:$,ee[le]=255*U;return ee},T.hsl.hsv=function(b){const y=b[0];let N=b[1]/100,P=b[2]/100,L=N;const V=Math.max(P,.01);return P*=2,N*=P<=1?P:2-P,L*=V<=1?V:2-V,[y,100*(P===0?2*L/(V+L):2*N/(P+N)),100*((P+N)/2)]},T.hsv.rgb=function(b){const y=b[0]/60,N=b[1]/100;let P=b[2]/100;const L=Math.floor(y)%6,V=y-Math.floor(y),U=255*P*(1-N),$=255*P*(1-N*V),ee=255*P*(1-N*(1-V));switch(P*=255,L){case 0:return[P,ee,U];case 1:return[$,P,U];case 2:return[U,P,ee];case 3:return[U,$,P];case 4:return[ee,U,P];case 5:return[P,U,$]}},T.hsv.hsl=function(b){const y=b[0],N=b[1]/100,P=b[2]/100,L=Math.max(P,.01);let V,U;U=(2-N)*P;const $=(2-N)*L;return V=N*L,V/=$<=1?$:2-$,V=V||0,U/=2,[y,100*V,100*U]},T.hwb.rgb=function(b){const y=b[0]/360;let N=b[1]/100,P=b[2]/100;const L=N+P;let V;L>1&&(N/=L,P/=L);const U=Math.floor(6*y),$=1-P;V=6*y-U,1&U&&(V=1-V);const ee=N+V*($-N);let le,Ge,B;switch(U){default:case 6:case 0:le=$,Ge=ee,B=N;break;case 1:le=ee,Ge=$,B=N;break;case 2:le=N,Ge=$,B=ee;break;case 3:le=N,Ge=ee,B=$;break;case 4:le=ee,Ge=N,B=$;break;case 5:le=$,Ge=N,B=ee}return[255*le,255*Ge,255*B]},T.cmyk.rgb=function(b){const y=b[0]/100,N=b[1]/100,P=b[2]/100,L=b[3]/100;return[255*(1-Math.min(1,y*(1-L)+L)),255*(1-Math.min(1,N*(1-L)+L)),255*(1-Math.min(1,P*(1-L)+L))]},T.xyz.rgb=function(b){const y=b[0]/100,N=b[1]/100,P=b[2]/100;let L,V,U;return L=3.2406*y+-1.5372*N+-.4986*P,V=-.9689*y+1.8758*N+.0415*P,U=.0557*y+-.204*N+1.057*P,L=L>.0031308?1.055*L**.4166666666666667-.055:12.92*L,V=V>.0031308?1.055*V**.4166666666666667-.055:12.92*V,U=U>.0031308?1.055*U**.4166666666666667-.055:12.92*U,L=Math.min(Math.max(0,L),1),V=Math.min(Math.max(0,V),1),U=Math.min(Math.max(0,U),1),[255*L,255*V,255*U]},T.xyz.lab=function(b){let y=b[0],N=b[1],P=b[2];return y/=95.047,N/=100,P/=108.883,y=y>.008856?y**.3333333333333333:7.787*y+.13793103448275862,N=N>.008856?N**.3333333333333333:7.787*N+.13793103448275862,P=P>.008856?P**.3333333333333333:7.787*P+.13793103448275862,[116*N-16,500*(y-N),200*(N-P)]},T.lab.xyz=function(b){let y,N,P;N=(b[0]+16)/116,y=b[1]/500+N,P=N-b[2]/200;const L=N**3,V=y**3,U=P**3;return N=L>.008856?L:(N-.13793103448275862)/7.787,y=V>.008856?V:(y-.13793103448275862)/7.787,P=U>.008856?U:(P-.13793103448275862)/7.787,y*=95.047,N*=100,P*=108.883,[y,N,P]},T.lab.lch=function(b){const y=b[0],N=b[1],P=b[2];let L;return L=360*Math.atan2(P,N)/2/Math.PI,L<0&&(L+=360),[y,Math.sqrt(N*N+P*P),L]},T.lch.lab=function(b){const y=b[0],N=b[1],P=b[2]/360*2*Math.PI;return[y,N*Math.cos(P),N*Math.sin(P)]},T.rgb.ansi16=function(b,y=null){const[N,P,L]=b;let V=y===null?T.rgb.hsv(b)[2]:y;if(V=Math.round(V/50),V===0)return 30;let U=30+(Math.round(L/255)<<2|Math.round(P/255)<<1|Math.round(N/255));return V===2&&(U+=60),U},T.hsv.ansi16=function(b){return T.rgb.ansi16(T.hsv.rgb(b),b[2])},T.rgb.ansi256=function(b){const y=b[0],N=b[1],P=b[2];return y===N&&N===P?y<8?16:y>248?231:Math.round((y-8)/247*24)+232:16+36*Math.round(y/255*5)+6*Math.round(N/255*5)+Math.round(P/255*5)},T.ansi16.rgb=function(b){let y=b%10;if(y===0||y===7)return b>50&&(y+=3.5),y=y/10.5*255,[y,y,y];const N=.5*(1+~~(b>50));return[(1&y)*N*255,(y>>1&1)*N*255,(y>>2&1)*N*255]},T.ansi256.rgb=function(b){if(b>=232){const N=10*(b-232)+8;return[N,N,N]}let y;return b-=16,[Math.floor(b/36)/5*255,Math.floor((y=b%36)/6)/5*255,y%6/5*255]},T.rgb.hex=function(b){const y=(((255&Math.round(b[0]))<<16)+((255&Math.round(b[1]))<<8)+(255&Math.round(b[2]))).toString(16).toUpperCase();return"000000".substring(y.length)+y},T.hex.rgb=function(b){const y=b.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!y)return[0,0,0];let N=y[0];y[0].length===3&&(N=N.split("").map(L=>L+L).join(""));const P=parseInt(N,16);return[P>>16&255,P>>8&255,255&P]},T.rgb.hcg=function(b){const y=b[0]/255,N=b[1]/255,P=b[2]/255,L=Math.max(Math.max(y,N),P),V=Math.min(Math.min(y,N),P),U=L-V;let $,ee;return $=U<1?V/(1-U):0,ee=U<=0?0:L===y?(N-P)/U%6:L===N?2+(P-y)/U:4+(y-N)/U,ee/=6,ee%=1,[360*ee,100*U,100*$]},T.hsl.hcg=function(b){const y=b[1]/100,N=b[2]/100,P=N<.5?2*y*N:2*y*(1-N);let L=0;return P<1&&(L=(N-.5*P)/(1-P)),[b[0],100*P,100*L]},T.hsv.hcg=function(b){const y=b[1]/100,N=b[2]/100,P=y*N;let L=0;return P<1&&(L=(N-P)/(1-P)),[b[0],100*P,100*L]},T.hcg.rgb=function(b){const y=b[0]/360,N=b[1]/100,P=b[2]/100;if(N===0)return[255*P,255*P,255*P];const L=[0,0,0],V=y%1*6,U=V%1,$=1-U;let ee=0;switch(Math.floor(V)){case 0:L[0]=1,L[1]=U,L[2]=0;break;case 1:L[0]=$,L[1]=1,L[2]=0;break;case 2:L[0]=0,L[1]=1,L[2]=U;break;case 3:L[0]=0,L[1]=$,L[2]=1;break;case 4:L[0]=U,L[1]=0,L[2]=1;break;default:L[0]=1,L[1]=0,L[2]=$}return ee=(1-N)*P,[255*(N*L[0]+ee),255*(N*L[1]+ee),255*(N*L[2]+ee)]},T.hcg.hsv=function(b){const y=b[1]/100,N=y+b[2]/100*(1-y);let P=0;return N>0&&(P=y/N),[b[0],100*P,100*N]},T.hcg.hsl=function(b){const y=b[1]/100,N=b[2]/100*(1-y)+.5*y;let P=0;return N>0&&N<.5?P=y/(2*N):N>=.5&&N<1&&(P=y/(2*(1-N))),[b[0],100*P,100*N]},T.hcg.hwb=function(b){const y=b[1]/100,N=y+b[2]/100*(1-y);return[b[0],100*(N-y),100*(1-N)]},T.hwb.hcg=function(b){const y=b[1]/100,N=1-b[2]/100,P=N-y;let L=0;return P<1&&(L=(N-P)/(1-P)),[b[0],100*P,100*L]},T.apple.rgb=function(b){return[b[0]/65535*255,b[1]/65535*255,b[2]/65535*255]},T.rgb.apple=function(b){return[b[0]/255*65535,b[1]/255*65535,b[2]/255*65535]},T.gray.rgb=function(b){return[b[0]/100*255,b[0]/100*255,b[0]/100*255]},T.gray.hsl=function(b){return[0,0,b[0]]},T.gray.hsv=T.gray.hsl,T.gray.hwb=function(b){return[0,100,b[0]]},T.gray.cmyk=function(b){return[0,0,0,b[0]]},T.gray.lab=function(b){return[b[0],0,0]},T.gray.hex=function(b){const y=255&Math.round(b[0]/100*255),N=((y<<16)+(y<<8)+y).toString(16).toUpperCase();return"000000".substring(N.length)+N},T.rgb.gray=function(b){return[(b[0]+b[1]+b[2])/3/255*100]}},9047:(C,w,g)=>{const D=g(9246),x=g(802),T={};Object.keys(D).forEach(b=>{T[b]={},Object.defineProperty(T[b],"channels",{value:D[b].channels}),Object.defineProperty(T[b],"labels",{value:D[b].labels});const y=x(b);Object.keys(y).forEach(N=>{const P=y[N];T[b][N]=function(L){const V=function(...U){const $=U[0];if($==null)return $;$.length>1&&(U=$);const ee=L(U);if(typeof ee=="object")for(let le=ee.length,Ge=0;Ge<le;Ge++)ee[Ge]=Math.round(ee[Ge]);return ee};return"conversion"in L&&(V.conversion=L.conversion),V}(P),T[b][N].raw=function(L){const V=function(...U){const $=U[0];return $==null?$:($.length>1&&(U=$),L(U))};return"conversion"in L&&(V.conversion=L.conversion),V}(P)})}),C.exports=T},802:(C,w,g)=>{const D=g(9246);function x(y){const N=function(){const L={},V=Object.keys(D);for(let U=V.length,$=0;$<U;$++)L[V[$]]={distance:-1,parent:null};return L}(),P=[y];for(N[y].distance=0;P.length;){const L=P.pop(),V=Object.keys(D[L]);for(let U=V.length,$=0;$<U;$++){const ee=V[$],le=N[ee];le.distance===-1&&(le.distance=N[L].distance+1,le.parent=L,P.unshift(ee))}}return N}function T(y,N){return function(P){return N(y(P))}}function b(y,N){const P=[N[y].parent,y];let L=D[N[y].parent][y],V=N[y].parent;for(;N[V].parent;)P.unshift(N[V].parent),L=T(D[N[V].parent][V],L),V=N[V].parent;return L.conversion=P,L}C.exports=function(y){const N=x(y),P={},L=Object.keys(N);for(let V=L.length,U=0;U<V;U++){const $=L[U];N[$].parent!==null&&(P[$]=b($,N))}return P}},6931:C=>{C.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4199:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck-content code {
|
||
background-color: hsla(0, 0%, 78%, 0.3);
|
||
padding: .15em;
|
||
border-radius: 2px;
|
||
}
|
||
|
||
.ck.ck-editor__editable .ck-code_selected {
|
||
background-color: hsla(0, 0%, 78%, 0.5);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8708:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck-content blockquote {
|
||
/* See #12 */
|
||
overflow: hidden;
|
||
|
||
/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */
|
||
padding-right: 1.5em;
|
||
padding-left: 1.5em;
|
||
|
||
margin-left: 0;
|
||
margin-right: 0;
|
||
font-style: italic;
|
||
border-left: solid 5px hsl(0, 0%, 80%);
|
||
}
|
||
|
||
.ck-content[dir="rtl"] blockquote {
|
||
border-left: 0;
|
||
border-right: solid 5px hsl(0, 0%, 80%);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},1866:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,':root{--ck-image-processing-highlight-color:#f9fafa;--ck-image-processing-background-color:#e3e5e8}.ck.ck-editor__editable .image.image-processing{position:relative}.ck.ck-editor__editable .image.image-processing:before{animation:ck-image-processing-animation 2s linear infinite;background:linear-gradient(90deg,var(--ck-image-processing-background-color),var(--ck-image-processing-highlight-color),var(--ck-image-processing-background-color));background-size:200% 100%;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ck.ck-editor__editable .image.image-processing img{height:100%}@keyframes ck-image-processing-animation{0%{background-position:200% 0}to{background-position:-200% 0}}',"",{version:3,sources:["webpack://./../ckeditor5-ckbox/theme/ckboximageedit.css"],names:[],mappings:"AAKA,MAEC,6CAAyD,CACzD,8CACD,CAIE,gDACC,iBA2BD,CAzBC,uDAmBC,0DAA2D,CAR3D,oKAKC,CACD,yBAA0B,CAhB1B,UAAW,CAOX,WAAY,CAHZ,MAAO,CAFP,iBAAkB,CAClB,KAAM,CAKN,UAAW,CAHX,SAcD,CAEA,oDACC,WACD,CAKH,yCACC,GACC,0BACD,CACA,GACC,2BACD,CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
/* Based on default CKBox theme colors */
|
||
--ck-image-processing-highlight-color: hsl(220, 10%, 98%);
|
||
--ck-image-processing-background-color: hsl(220, 10%, 90%);
|
||
}
|
||
|
||
.ck.ck-editor__editable {
|
||
& .image {
|
||
&.image-processing {
|
||
position: relative;
|
||
|
||
&:before {
|
||
content: '';
|
||
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
z-index: 1;
|
||
|
||
height: 100%;
|
||
width: 100%;
|
||
|
||
background: linear-gradient(
|
||
90deg,
|
||
var(--ck-image-processing-background-color),
|
||
var(--ck-image-processing-highlight-color),
|
||
var(--ck-image-processing-background-color)
|
||
);
|
||
background-size: 200% 100%;
|
||
|
||
animation: ck-image-processing-animation 2s linear infinite;
|
||
}
|
||
|
||
& img {
|
||
height: 100%;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
@keyframes ck-image-processing-animation {
|
||
0% {
|
||
background-position: 200% 0;
|
||
}
|
||
100% {
|
||
background-position: -200% 0;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7793:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-editor__editable {
|
||
/*
|
||
* Vertical drop target (in text).
|
||
*/
|
||
& .ck.ck-clipboard-drop-target-position {
|
||
display: inline;
|
||
position: relative;
|
||
pointer-events: none;
|
||
|
||
& span {
|
||
position: absolute;
|
||
width: 0;
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Styles of the widget being dragged (its preview).
|
||
*/
|
||
& .ck-widget:-webkit-drag {
|
||
& > .ck-widget__selection-handle {
|
||
display: none;
|
||
}
|
||
|
||
& > .ck-widget__type-around {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
.ck.ck-clipboard-drop-target-line {
|
||
position: absolute;
|
||
pointer-events: none;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
:root {
|
||
--ck-clipboard-drop-target-dot-width: 12px;
|
||
--ck-clipboard-drop-target-dot-height: 8px;
|
||
--ck-clipboard-drop-target-color: var(--ck-color-focus-border);
|
||
}
|
||
|
||
.ck.ck-editor__editable {
|
||
/*
|
||
* Vertical drop target (in text).
|
||
*/
|
||
& .ck.ck-clipboard-drop-target-position {
|
||
& span {
|
||
bottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));
|
||
top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));
|
||
border: 1px solid var(--ck-clipboard-drop-target-color);
|
||
background: var(--ck-clipboard-drop-target-color);
|
||
margin-left: -1px;
|
||
|
||
/* The triangle above the marker */
|
||
&::after {
|
||
content: '';
|
||
width: 0;
|
||
height: 0;
|
||
|
||
display: block;
|
||
position: absolute;
|
||
left: 50%;
|
||
top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));
|
||
|
||
transform: translateX(-50%);
|
||
border-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;
|
||
border-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));
|
||
border-style: solid;
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Styles of the widget that it a drop target.
|
||
*/
|
||
& .ck-widget.ck-clipboard-drop-target-range {
|
||
outline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;
|
||
}
|
||
|
||
/*
|
||
* Styles of the widget being dragged (its preview).
|
||
*/
|
||
& .ck-widget:-webkit-drag {
|
||
zoom: 0.6;
|
||
outline: none !important;
|
||
}
|
||
}
|
||
|
||
.ck.ck-clipboard-drop-target-line {
|
||
height: 0;
|
||
border: 1px solid var(--ck-clipboard-drop-target-color);
|
||
background: var(--ck-clipboard-drop-target-color);
|
||
margin-top: -1px;
|
||
|
||
&::before {
|
||
content: '';
|
||
position: absolute;
|
||
top: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));
|
||
width: 0;
|
||
height: 0;
|
||
border-style: solid;
|
||
|
||
@mixin ck-dir ltr {
|
||
left: -1px;
|
||
|
||
border-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);
|
||
border-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
right: -1px;
|
||
|
||
border-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;
|
||
border-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7388:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-panel)}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content{border:solid var(--ck-color-base-border);border-width:1px 1px 0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content.ck-sticky-panel__content_sticky{border-bottom-width:1px}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content .ck-menu-bar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content .ck-toolbar{border:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,8DCED,eDeC,CAjBA,mKCMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAcF,CAjBA,8DAOC,wCAAsB,CAAtB,sBAUD,CARC,8FACC,uBACD,CAEA,qJAEC,QACD,CAMH,yCAEC,0CAA2C,CCtB3C,eDgCD,CAZA,yHChBE,qCAAsC,CDqBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-editor {
|
||
/* All the elements within \`.ck-editor\` are positioned relatively to it.
|
||
If any element needs to be positioned with respect to the <body>, etc.,
|
||
it must land outside of the \`.ck-editor\` in DOM. */
|
||
position: relative;
|
||
|
||
& .ck-editor__top .ck-sticky-panel .ck-toolbar {
|
||
/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */
|
||
z-index: var(--ck-z-panel);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../mixins/_rounded.css";
|
||
|
||
.ck.ck-editor__top {
|
||
& .ck-sticky-panel {
|
||
& .ck-sticky-panel__content {
|
||
@mixin ck-rounded-corners {
|
||
border-bottom-left-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
|
||
border: 1px solid var(--ck-color-base-border);
|
||
border-bottom-width: 0;
|
||
|
||
&.ck-sticky-panel__content_sticky {
|
||
border-bottom-width: 1px;
|
||
}
|
||
|
||
& .ck-menu-bar,
|
||
& .ck-toolbar {
|
||
border: 0;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Note: Use ck-editor__main to make sure these styles don't apply to other editor types */
|
||
.ck.ck-editor__main > .ck-editor__editable {
|
||
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */
|
||
background: var(--ck-color-base-background);
|
||
|
||
@mixin ck-rounded-corners {
|
||
border-top-left-radius: 0;
|
||
border-top-right-radius: 0;
|
||
}
|
||
|
||
&:not(.ck-focused) {
|
||
border-color: var(--ck-color-base-border);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},4098:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}@media (forced-colors:active){.ck .ck-placeholder,.ck.ck-placeholder{forced-color-adjust:preserve-parent-color}}.ck .ck-placeholder:before,.ck.ck-placeholder:before{cursor:text}@media (forced-colors:none){.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text)}}@media (forced-colors:active){.ck .ck-placeholder:before,.ck.ck-placeholder:before{font-style:italic;margin-left:1px}}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC7BC,8BACC,uCCOA,yCDLA,CACD,CCOA,qDACC,WAmBD,CDvBA,4BACC,qDCMC,6CDJD,CACD,CAZA,8BACC,qDCsBC,iBAAkB,CAMlB,eD1BD,CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/* See ckeditor/ckeditor5#936. */
|
||
.ck.ck-placeholder,
|
||
.ck .ck-placeholder {
|
||
position: relative;
|
||
|
||
&::before {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
content: attr(data-placeholder);
|
||
|
||
/* See ckeditor/ckeditor5#469. */
|
||
pointer-events: none;
|
||
}
|
||
}
|
||
|
||
/* See ckeditor/ckeditor5#1987. */
|
||
.ck.ck-read-only .ck-placeholder {
|
||
&::before {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Rules for the \`ck-placeholder\` are loaded before the rules for \`ck-reset_all\` in the base CKEditor 5 DLL build.
|
||
* This fix overwrites the incorrectly set \`position: static\` from \`ck-reset_all\`.
|
||
* See https://github.com/ckeditor/ckeditor5/issues/11418.
|
||
*/
|
||
.ck.ck-reset_all .ck-placeholder {
|
||
position: relative;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@define-mixin ck-media-forced-colors {
|
||
@media (forced-colors: active) {
|
||
& {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
}
|
||
|
||
@define-mixin ck-media-default-colors {
|
||
@media (forced-colors: none) {
|
||
& {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";
|
||
|
||
/* See ckeditor/ckeditor5#936. */
|
||
.ck.ck-placeholder, .ck .ck-placeholder {
|
||
@mixin ck-media-forced-colors {
|
||
/*
|
||
* This is needed for Edge on Windows to use the right color for the placeholder content (::before).
|
||
* See https://github.com/ckeditor/ckeditor5/issues/14907.
|
||
*/
|
||
forced-color-adjust: preserve-parent-color;
|
||
}
|
||
|
||
&::before {
|
||
cursor: text;
|
||
|
||
@mixin ck-media-default-colors {
|
||
color: var(--ck-color-engine-placeholder-text);
|
||
}
|
||
|
||
@mixin ck-media-forced-colors {
|
||
/*
|
||
* In the high contrast mode there is no telling between regular and placeholder text. Using
|
||
* italic text to address that issue. See https://github.com/ckeditor/ckeditor5/issues/14907.
|
||
*/
|
||
font-style: italic;
|
||
|
||
/*
|
||
* Without this margin, the caret will not show up and blink when the user puts the selection
|
||
* in the placeholder (Edge on Windows). See https://github.com/ckeditor/ckeditor5/issues/14907.
|
||
*/
|
||
margin-left: 1px;
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8264:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/* Elements marked by the Renderer as hidden should be invisible in the editor. */
|
||
.ck.ck-editor__editable span[data-ck-unsafe-element] {
|
||
display: none;
|
||
}
|
||
`],sourceRoot:""}]);const y=b},6269:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-heading_heading1 {
|
||
font-size: 20px;
|
||
}
|
||
|
||
.ck.ck-heading_heading2 {
|
||
font-size: 17px;
|
||
}
|
||
|
||
.ck.ck-heading_heading3 {
|
||
font-size: 14px;
|
||
}
|
||
|
||
.ck[class*="ck-heading_heading"] {
|
||
font-weight: bold;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/* Resize dropdown's button label. */
|
||
.ck.ck-dropdown.ck-heading-dropdown {
|
||
& .ck-dropdown__button .ck-button__label {
|
||
width: 8em;
|
||
}
|
||
|
||
& .ck-dropdown__panel .ck-list__item {
|
||
min-width: 18em;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},265:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck-content {
|
||
& .image {
|
||
display: table;
|
||
clear: both;
|
||
text-align: center;
|
||
|
||
/* Make sure there is some space between the content and the image. Center image by default. */
|
||
/* The first value should be equal to --ck-spacing-large variable if used in the editor context
|
||
to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */
|
||
margin: 0.9em auto;
|
||
|
||
/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */
|
||
min-width: 50px;
|
||
|
||
& img {
|
||
/* Prevent unnecessary margins caused by line-height (see #44). */
|
||
display: block;
|
||
|
||
/* Center the image if its width is smaller than the content's width. */
|
||
margin: 0 auto;
|
||
|
||
/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */
|
||
max-width: 100%;
|
||
|
||
/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */
|
||
min-width: 100%;
|
||
|
||
/* Keep proportions of the block image if the height is set and the image is wider than the editor width.
|
||
See https://github.com/ckeditor/ckeditor5/issues/14542. */
|
||
height: auto;
|
||
}
|
||
}
|
||
|
||
& .image-inline {
|
||
/*
|
||
* Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).
|
||
* Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.
|
||
* This strange behavior does not happen with inline-flex.
|
||
*/
|
||
display: inline-flex;
|
||
|
||
/* While being resized, don't allow the image to exceed the width of the editing root. */
|
||
max-width: 100%;
|
||
|
||
/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */
|
||
align-items: flex-start;
|
||
|
||
/* When the picture is present it must act as a flex container to let the img resize properly */
|
||
& picture {
|
||
display: flex;
|
||
}
|
||
|
||
/* When the picture is present, it must act like a resizable img. */
|
||
& picture,
|
||
& img {
|
||
/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */
|
||
flex-grow: 1;
|
||
flex-shrink: 1;
|
||
|
||
/* Prevents overflowing the editing root boundaries when an inline image is very wide. */
|
||
max-width: 100%;
|
||
}
|
||
}
|
||
}
|
||
|
||
.ck.ck-editor__editable {
|
||
/*
|
||
* Inhertit the content styles padding of the <figcaption> in case the integration overrides \`text-align: center\`
|
||
* of \`.image\` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native
|
||
* caret does, and not at the edge of <figcaption>.
|
||
*/
|
||
& .image > figcaption.ck-placeholder::before {
|
||
padding-left: inherit;
|
||
padding-right: inherit;
|
||
|
||
/*
|
||
* Make sure the image caption placeholder doesn't overflow the placeholder area.
|
||
* See https://github.com/ckeditor/ckeditor5/issues/9162.
|
||
*/
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
/*
|
||
* See https://github.com/ckeditor/ckeditor5/issues/15115.
|
||
*/
|
||
& .image {
|
||
z-index: 1;
|
||
|
||
/*
|
||
* Make sure the selected image always stays on top of its siblings.
|
||
* See https://github.com/ckeditor/ckeditor5/issues/9108.
|
||
*/
|
||
&.ck-widget_selected {
|
||
z-index: 2;
|
||
}
|
||
}
|
||
|
||
/*
|
||
* See https://github.com/ckeditor/ckeditor5/issues/15115.
|
||
*/
|
||
& .image-inline {
|
||
z-index: 1;
|
||
|
||
/*
|
||
* Make sure the selected inline image always stays on top of its siblings.
|
||
* See https://github.com/ckeditor/ckeditor5/issues/9108.
|
||
*/
|
||
&.ck-widget_selected {
|
||
z-index: 2;
|
||
|
||
/*
|
||
* Make sure the native browser selection style is not displayed.
|
||
* Inline image widgets have their own styles for the selected state and
|
||
* leaving this up to the browser is asking for a visual collision.
|
||
*/
|
||
& ::selection {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.
|
||
See https://github.com/ckeditor/ckeditor5/issues/14542. */
|
||
& .image-inline img {
|
||
height: auto;
|
||
}
|
||
|
||
/* The inline image nested in the table should have its original size if not resized.
|
||
See https://github.com/ckeditor/ckeditor5/issues/9117. */
|
||
& td,
|
||
& th {
|
||
& .image-inline img {
|
||
max-width: none;
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},5247:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highlighted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}@media (forced-colors:active){.ck-content .image>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}}@media (prefers-reduced-motion:reduce){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:none}}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highlighted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAOA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,oDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAYD,CAJC,8BAXD,8BAYE,sBAAuB,CACvB,WAEF,CADC,CCdA,4BACC,qEDmBA,iDCjBA,CACD,CDmBA,uCALD,qEAME,cAEF,CADC,CAGD,sCACC,GACC,qEACD,CAEA,GACC,yDACD,CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";
|
||
|
||
:root {
|
||
--ck-color-image-caption-background: hsl(0, 0%, 97%);
|
||
--ck-color-image-caption-text: hsl(0, 0%, 20%);
|
||
--ck-color-image-caption-highlighted-background: hsl(52deg 100% 50%);
|
||
}
|
||
|
||
/* Content styles */
|
||
.ck-content .image > figcaption {
|
||
display: table-caption;
|
||
caption-side: bottom;
|
||
word-break: break-word;
|
||
color: var(--ck-color-image-caption-text);
|
||
background-color: var(--ck-color-image-caption-background);
|
||
padding: .6em;
|
||
font-size: .75em;
|
||
outline-offset: -1px;
|
||
|
||
/* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */
|
||
@media (forced-colors: active) {
|
||
background-color: unset;
|
||
color: unset;
|
||
}
|
||
}
|
||
|
||
/* Editing styles */
|
||
.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {
|
||
@mixin ck-media-default-colors {
|
||
animation: ck-image-caption-highlight .6s ease-out;
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
animation: none;
|
||
}
|
||
}
|
||
|
||
@keyframes ck-image-caption-highlight {
|
||
0% {
|
||
background-color: var(--ck-color-image-caption-highlighted-background);
|
||
}
|
||
|
||
100% {
|
||
background-color: var(--ck-color-image-caption-background);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@define-mixin ck-media-forced-colors {
|
||
@media (forced-colors: active) {
|
||
& {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
}
|
||
|
||
@define-mixin ck-media-default-colors {
|
||
@media (forced-colors: none) {
|
||
& {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},4642:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-image-custom-resize-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-image-custom-resize-form .ck-labeled-field-view{display:inline-block}.ck.ck-image-custom-resize-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-image-custom-resize-form{flex-wrap:wrap}.ck.ck-image-custom-resize-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-image-custom-resize-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecustomresizeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,gCAIC,sBAAuB,CAHvB,YAAa,CACb,kBAAmB,CACnB,gBAsBD,CAnBC,uDACC,oBACD,CAEA,0CACC,YACD,CCbA,oCDCD,gCAeE,cAUF,CARE,uDACC,eACD,CAEA,2CACC,cACD,CCtBD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
||
|
||
.ck.ck-image-custom-resize-form {
|
||
display: flex;
|
||
flex-direction: row;
|
||
flex-wrap: nowrap;
|
||
align-items: flex-start;
|
||
|
||
& .ck-labeled-field-view {
|
||
display: inline-block;
|
||
}
|
||
|
||
& .ck-label {
|
||
display: none;
|
||
}
|
||
|
||
@mixin ck-media-phone {
|
||
flex-wrap: wrap;
|
||
|
||
& .ck-labeled-field-view {
|
||
flex-basis: 100%;
|
||
}
|
||
|
||
& .ck-button {
|
||
flex-basis: 50%;
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@define-mixin ck-media-phone {
|
||
@media screen and (max-width: 600px) {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},3350:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-image-insert-url .ck-image-insert-url__action-row{display:grid;grid-template-columns:repeat(2,1fr)}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large)}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-form>.ck.ck-button{display:block;padding:var(--ck-list-button-padding);width:100%}[dir=ltr] .ck.ck-image-insert-form>.ck.ck-button{text-align:left}[dir=rtl] .ck.ck-image-insert-form>.ck.ck-button{text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible,.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css"],names:[],mappings:"AAMC,yDACC,YAAa,CACb,mCACD,CCFD,MACC,2CACD,CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CAEd,qCAAsC,CADtC,UAUD,CAZA,iDAME,eAMF,CAZA,iDAUE,gBAEF,CAGC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,6FAJC,oDAOD,CAHA,iDAEC,+BACD,CAEA,+BACC,YACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-image-insert-url {
|
||
& .ck-image-insert-url__action-row {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
:root {
|
||
--ck-image-insert-insert-by-url-width: 250px;
|
||
}
|
||
|
||
.ck.ck-image-insert-url {
|
||
--ck-input-width: 100%;
|
||
|
||
& .ck-image-insert-url__action-row {
|
||
grid-column-gap: var(--ck-spacing-large);
|
||
margin-top: var(--ck-spacing-large);
|
||
|
||
& .ck-button-save,
|
||
& .ck-button-cancel {
|
||
justify-content: center;
|
||
min-width: auto;
|
||
}
|
||
|
||
& .ck-button .ck-button__label {
|
||
color: var(--ck-color-text);
|
||
}
|
||
}
|
||
}
|
||
|
||
.ck.ck-image-insert-form {
|
||
& > .ck.ck-button {
|
||
display: block;
|
||
width: 100%;
|
||
padding: var(--ck-list-button-padding);
|
||
|
||
@mixin ck-dir ltr {
|
||
text-align: left;
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
text-align: right;
|
||
}
|
||
}
|
||
|
||
& > .ck.ck-collapsible {
|
||
&:not(:first-child) {
|
||
border-top: 1px solid var(--ck-color-base-border);
|
||
}
|
||
|
||
&:not(:last-child) {
|
||
border-bottom: 1px solid var(--ck-color-base-border);
|
||
}
|
||
|
||
min-width: var(--ck-image-insert-insert-by-url-width);
|
||
}
|
||
|
||
/* This is the case when there are no other integrations configured than insert by URL */
|
||
& > .ck.ck-image-insert-url {
|
||
min-width: var(--ck-image-insert-insert-by-url-width);
|
||
padding: var(--ck-spacing-large);
|
||
}
|
||
|
||
&:focus {
|
||
outline: none;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7378:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageplaceholder.css"],names:[],mappings:"AAMC,8CACC,yBACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-editor__editable {
|
||
& img.image_placeholder {
|
||
background-size: 100% 100%;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},3469:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/* Preserve aspect ratio of the resized image after introducing image height attribute. */
|
||
.ck-content img.image_resized {
|
||
height: auto;
|
||
}
|
||
|
||
.ck-content .image.image_resized {
|
||
max-width: 100%;
|
||
/*
|
||
The \`<figure>\` element for resized images must not use \`display:table\` as browsers do not support \`max-width\` for it well.
|
||
See https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.
|
||
Fortunately, since we control the width, there is no risk that the image will look bad.
|
||
*/
|
||
display: block;
|
||
box-sizing: border-box;
|
||
|
||
& img {
|
||
/* For resized images it is the \`<figure>\` element that determines the image width. */
|
||
width: 100%;
|
||
}
|
||
|
||
& > figcaption {
|
||
/* The \`<figure>\` element uses \`display:block\`, so \`<figcaption>\` also has to. */
|
||
display: block;
|
||
}
|
||
}
|
||
|
||
.ck.ck-editor__editable {
|
||
/* The resized inline image nested in the table should respect its parent size.
|
||
See https://github.com/ckeditor/ckeditor5/issues/9117. */
|
||
& td,
|
||
& th {
|
||
& .image-inline.image_resized img {
|
||
max-width: 100%;
|
||
}
|
||
}
|
||
}
|
||
|
||
[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {
|
||
margin-right: var(--ck-spacing-standard);
|
||
}
|
||
|
||
[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {
|
||
margin-left: var(--ck-spacing-standard);
|
||
}
|
||
|
||
.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {
|
||
width: 4em;
|
||
}
|
||
`],sourceRoot:""}]);const y=b},6386:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-image-style-spacing: 1.5em;
|
||
--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);
|
||
}
|
||
|
||
.ck-content {
|
||
/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback
|
||
confirming successful application of the style if image width exceeds the editor's size.
|
||
See https://github.com/ckeditor/ckeditor5/issues/9342 */
|
||
& .image-style-block-align-left,
|
||
& .image-style-block-align-right {
|
||
max-width: calc(100% - var(--ck-image-style-spacing));
|
||
}
|
||
|
||
/* Allows displaying multiple floating images in the same line.
|
||
See https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */
|
||
& .image-style-align-left,
|
||
& .image-style-align-right {
|
||
clear: none;
|
||
}
|
||
|
||
& .image-style-side {
|
||
float: right;
|
||
margin-left: var(--ck-image-style-spacing);
|
||
max-width: 50%;
|
||
}
|
||
|
||
& .image-style-align-left {
|
||
float: left;
|
||
margin-right: var(--ck-image-style-spacing);
|
||
}
|
||
|
||
& .image-style-align-center {
|
||
margin-left: auto;
|
||
margin-right: auto;
|
||
}
|
||
|
||
& .image-style-align-right {
|
||
float: right;
|
||
margin-left: var(--ck-image-style-spacing);
|
||
}
|
||
|
||
& .image-style-block-align-right {
|
||
margin-right: 0;
|
||
margin-left: auto;
|
||
}
|
||
|
||
& .image-style-block-align-left {
|
||
margin-left: 0;
|
||
margin-right: auto;
|
||
}
|
||
|
||
/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */
|
||
& p + .image-style-align-left,
|
||
& p + .image-style-align-right,
|
||
& p + .image-style-side {
|
||
margin-top: 0;
|
||
}
|
||
|
||
& .image-inline {
|
||
&.image-style-align-left,
|
||
&.image-style-align-right {
|
||
margin-top: var(--ck-inline-image-style-spacing);
|
||
margin-bottom: var(--ck-inline-image-style-spacing);
|
||
}
|
||
|
||
&.image-style-align-left {
|
||
margin-right: var(--ck-inline-image-style-spacing);
|
||
}
|
||
|
||
&.image-style-align-right {
|
||
margin-left: var(--ck-inline-image-style-spacing);
|
||
}
|
||
}
|
||
}
|
||
|
||
.ck.ck-splitbutton {
|
||
/* The button should display as a regular drop-down if the action button
|
||
is forced to fire the same action as the arrow button. */
|
||
&.ck-splitbutton_flatten {
|
||
&:hover,
|
||
&.ck-splitbutton_open {
|
||
& > .ck-splitbutton__action:not(.ck-disabled),
|
||
& > .ck-splitbutton__arrow:not(.ck-disabled),
|
||
& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {
|
||
background-color: var(--ck-color-button-on-background);
|
||
|
||
&::after {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
&.ck-splitbutton_open:hover {
|
||
& > .ck-splitbutton__action:not(.ck-disabled),
|
||
& > .ck-splitbutton__arrow:not(.ck-disabled),
|
||
& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {
|
||
background-color: var(--ck-color-button-on-hover-background);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7693:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@media (prefers-reduced-motion:reduce){.ck-image-upload-complete-icon{animation-duration:0ms}.ck-image-upload-complete-icon:after{animation:none;height:.45em;opacity:1;width:.3em}}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFAqCD,CAjCC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAEA,uCA7CD,+BA8CE,sBASF,CAPE,qCACC,cAAe,CAGf,YAAc,CAFd,SAAU,CACV,UAED,CACD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck-image-upload-complete-icon {
|
||
display: block;
|
||
position: absolute;
|
||
|
||
/*
|
||
* Smaller images should have the icon closer to the border.
|
||
* Match the icon position with the linked image indicator brought by the link image feature.
|
||
*/
|
||
top: min(var(--ck-spacing-medium), 6%);
|
||
right: min(var(--ck-spacing-medium), 6%);
|
||
border-radius: 50%;
|
||
z-index: 1;
|
||
|
||
&::after {
|
||
content: "";
|
||
position: absolute;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-color-image-upload-icon: hsl(0, 0%, 100%);
|
||
--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);
|
||
|
||
/* Match the icon size with the linked image indicator brought by the link image feature. */
|
||
--ck-image-upload-icon-size: 20;
|
||
--ck-image-upload-icon-width: 2px;
|
||
--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);
|
||
}
|
||
|
||
.ck-image-upload-complete-icon {
|
||
opacity: 0;
|
||
background: var(--ck-color-image-upload-icon-background);
|
||
animation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;
|
||
animation-fill-mode: forwards, forwards;
|
||
animation-duration: 500ms, 500ms;
|
||
|
||
/* To make animation scalable. */
|
||
font-size: calc(1px * var(--ck-image-upload-icon-size));
|
||
|
||
/* Hide completed upload icon after 3 seconds. */
|
||
animation-delay: 0ms, 3000ms;
|
||
|
||
/*
|
||
* Use CSS math to simulate container queries.
|
||
* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things
|
||
*/
|
||
overflow: hidden;
|
||
width: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));
|
||
height: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));
|
||
|
||
/* This is check icon element made from border-width mixed with animations. */
|
||
&::after {
|
||
/* Because of border transformation we need to "hard code" left position. */
|
||
left: 25%;
|
||
|
||
top: 50%;
|
||
opacity: 0;
|
||
height: 0;
|
||
width: 0;
|
||
|
||
transform: scaleX(-1) rotate(135deg);
|
||
transform-origin: left top;
|
||
border-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);
|
||
border-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);
|
||
|
||
animation-name: ck-upload-complete-icon-check;
|
||
animation-duration: 500ms;
|
||
animation-delay: 500ms;
|
||
animation-fill-mode: forwards;
|
||
|
||
/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
animation-duration: 0ms;
|
||
|
||
&::after {
|
||
animation: none;
|
||
opacity: 1;
|
||
width: 0.3em;
|
||
height: 0.45em;
|
||
}
|
||
}
|
||
}
|
||
|
||
@keyframes ck-upload-complete-icon-show {
|
||
from {
|
||
opacity: 0;
|
||
}
|
||
|
||
to {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
@keyframes ck-upload-complete-icon-hide {
|
||
from {
|
||
opacity: 1;
|
||
}
|
||
|
||
to {
|
||
opacity: 0;
|
||
}
|
||
}
|
||
|
||
@keyframes ck-upload-complete-icon-check {
|
||
0% {
|
||
opacity: 1;
|
||
width: 0;
|
||
height: 0;
|
||
}
|
||
33% {
|
||
width: 0.3em;
|
||
height: 0;
|
||
}
|
||
100% {
|
||
opacity: 1;
|
||
width: 0.3em;
|
||
height: 0.45em;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},1559:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck .ck-upload-placeholder-loader {
|
||
position: absolute;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
top: 0;
|
||
left: 0;
|
||
|
||
&::before {
|
||
content: '';
|
||
position: relative;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);
|
||
--ck-upload-placeholder-loader-size: 32px;
|
||
--ck-upload-placeholder-image-aspect-ratio: 2.8;
|
||
}
|
||
|
||
.ck .ck-image-upload-placeholder {
|
||
/* We need to control the full width of the SVG gray background. */
|
||
width: 100%;
|
||
margin: 0;
|
||
|
||
&.image-inline {
|
||
width: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );
|
||
}
|
||
|
||
& img {
|
||
/*
|
||
* This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.
|
||
* There's nothing special about this number except that it should make the image placeholder look like
|
||
* a real image during this short period after the upload started and before the image was read from the
|
||
* file system (and a rich preview was loaded).
|
||
*/
|
||
aspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);
|
||
}
|
||
}
|
||
|
||
.ck .ck-upload-placeholder-loader {
|
||
width: 100%;
|
||
height: 100%;
|
||
|
||
&::before {
|
||
width: var(--ck-upload-placeholder-loader-size);
|
||
height: var(--ck-upload-placeholder-loader-size);
|
||
border-radius: 50%;
|
||
border-top: 3px solid var(--ck-color-upload-placeholder-loader);
|
||
border-right: 2px solid transparent;
|
||
animation: ck-upload-placeholder-loader 1s linear infinite;
|
||
}
|
||
}
|
||
|
||
@keyframes ck-upload-placeholder-loader {
|
||
to {
|
||
transform: rotate( 360deg );
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},2267:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}@media (prefers-reduced-motion:reduce){.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:none;opacity:1}}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBAMD,CAJC,uCAHD,yFAKE,cAAe,CADf,SAGF,CADC,CAKF,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-editor__editable {
|
||
& .image,
|
||
& .image-inline {
|
||
position: relative;
|
||
}
|
||
|
||
/* Upload progress bar. */
|
||
& .image .ck-progress-bar,
|
||
& .image-inline .ck-progress-bar {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-editor__editable {
|
||
& .image,
|
||
& .image-inline {
|
||
/* Showing animation. */
|
||
&.ck-appear {
|
||
animation: fadeIn 700ms;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
opacity: 1;
|
||
animation: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Upload progress bar. */
|
||
& .image .ck-progress-bar,
|
||
& .image-inline .ck-progress-bar {
|
||
height: 2px;
|
||
width: 0;
|
||
background: var(--ck-color-upload-bar-background);
|
||
transition: width 100ms;
|
||
}
|
||
}
|
||
|
||
@keyframes fadeIn {
|
||
from { opacity: 0; }
|
||
to { opacity: 1; }
|
||
}
|
||
`],sourceRoot:""}]);const y=b},4062:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
||
|
||
.ck.ck-text-alternative-form {
|
||
display: flex;
|
||
flex-direction: row;
|
||
flex-wrap: nowrap;
|
||
|
||
& .ck-labeled-field-view {
|
||
display: inline-block;
|
||
}
|
||
|
||
& .ck-label {
|
||
display: none;
|
||
}
|
||
|
||
@mixin ck-media-phone {
|
||
flex-wrap: wrap;
|
||
|
||
& .ck-labeled-field-view {
|
||
flex-basis: 100%;
|
||
}
|
||
|
||
& .ck-button {
|
||
flex-basis: 50%;
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@define-mixin ck-media-phone {
|
||
@media screen and (max-width: 600px) {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7719:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/* Class added to span element surrounding currently selected link. */
|
||
.ck .ck-link_selected {
|
||
background: var(--ck-color-link-selected-background);
|
||
|
||
/* Give linked inline images some outline to let the user know they are also part of the link. */
|
||
& span.image-inline {
|
||
outline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Classes used by the "fake visual selection" displayed in the content when an input
|
||
* in the link UI has focus (the browser does not render the native selection in this state).
|
||
*/
|
||
.ck .ck-fake-link-selection {
|
||
background: var(--ck-color-link-fake-selection);
|
||
}
|
||
|
||
/* A collapsed fake visual selection. */
|
||
.ck .ck-fake-link-selection_collapsed {
|
||
height: 100%;
|
||
border-right: 1px solid var(--ck-color-base-text);
|
||
margin-right: -1px;
|
||
outline: solid 1px hsla(0, 0%, 100%, .5);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8762:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
||
|
||
.ck.ck-link-actions {
|
||
display: flex;
|
||
flex-direction: row;
|
||
flex-wrap: nowrap;
|
||
|
||
& .ck-link-actions__preview {
|
||
display: inline-block;
|
||
|
||
& .ck-button__label {
|
||
overflow: hidden;
|
||
}
|
||
}
|
||
|
||
@mixin ck-media-phone {
|
||
flex-wrap: wrap;
|
||
|
||
& .ck-link-actions__preview {
|
||
flex-basis: 100%;
|
||
}
|
||
|
||
& .ck-button:not(.ck-link-actions__preview) {
|
||
flex-basis: 50%;
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@define-mixin ck-media-phone {
|
||
@media screen and (max-width: 600px) {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
@import "../mixins/_focus.css";
|
||
@import "../mixins/_shadow.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
||
|
||
.ck.ck-link-actions {
|
||
& .ck-button.ck-link-actions__preview {
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
|
||
& .ck-button__label {
|
||
padding: 0 var(--ck-spacing-medium);
|
||
color: var(--ck-color-link-default);
|
||
text-overflow: ellipsis;
|
||
cursor: pointer;
|
||
|
||
/* Match the box model of the link editor form's input so the balloon
|
||
does not change width when moving between actions and the form. */
|
||
max-width: var(--ck-input-width);
|
||
min-width: 3em;
|
||
text-align: center;
|
||
|
||
&:hover {
|
||
text-decoration: underline;
|
||
}
|
||
}
|
||
|
||
&,
|
||
&:hover,
|
||
&:focus,
|
||
&:active {
|
||
background: none;
|
||
}
|
||
|
||
&:active {
|
||
box-shadow: none;
|
||
}
|
||
|
||
&:focus {
|
||
& .ck-button__label {
|
||
text-decoration: underline;
|
||
}
|
||
}
|
||
}
|
||
|
||
@mixin ck-dir ltr {
|
||
& .ck-button:not(:first-child) {
|
||
margin-left: var(--ck-spacing-standard);
|
||
}
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
& .ck-button:not(:last-child) {
|
||
margin-left: var(--ck-spacing-standard);
|
||
}
|
||
}
|
||
|
||
@mixin ck-media-phone {
|
||
& .ck-button.ck-link-actions__preview {
|
||
margin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;
|
||
|
||
& .ck-button__label {
|
||
min-width: 0;
|
||
max-width: 100%;
|
||
}
|
||
}
|
||
|
||
& .ck-button:not(.ck-link-actions__preview) {
|
||
@mixin ck-dir ltr {
|
||
margin-left: 0;
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
margin-left: 0;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},3817:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-link-form{align-items:flex-start;display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBAEC,sBAAuB,CADvB,YAkBD,CAfC,2BACC,YACD,CCPA,oCDCD,iBASE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CChBD,CDwBD,iCACC,aAYD,CALE,wHAEC,mCACD,CEhCF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
||
|
||
.ck.ck-link-form {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
|
||
& .ck-label {
|
||
display: none;
|
||
}
|
||
|
||
@mixin ck-media-phone {
|
||
flex-wrap: wrap;
|
||
|
||
& .ck-labeled-field-view {
|
||
flex-basis: 100%;
|
||
}
|
||
|
||
& .ck-button {
|
||
flex-basis: 50%;
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Style link form differently when manual decorators are available.
|
||
* See: https://github.com/ckeditor/ckeditor5-link/issues/186.
|
||
*/
|
||
.ck.ck-link-form_layout-vertical {
|
||
display: block;
|
||
|
||
/*
|
||
* Whether the form is in the responsive mode or not, if there are decorator buttons
|
||
* keep the top margin of action buttons medium.
|
||
*/
|
||
& .ck-button {
|
||
&.ck-button-save,
|
||
&.ck-button-cancel {
|
||
margin-top: var(--ck-spacing-medium);
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@define-mixin ck-media-phone {
|
||
@media screen and (max-width: 600px) {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
/*
|
||
* Style link form differently when manual decorators are available.
|
||
* See: https://github.com/ckeditor/ckeditor5-link/issues/186.
|
||
*/
|
||
.ck.ck-link-form_layout-vertical {
|
||
padding: 0;
|
||
min-width: var(--ck-input-width);
|
||
|
||
& .ck-labeled-field-view {
|
||
margin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);
|
||
|
||
& .ck-input-text {
|
||
min-width: 0;
|
||
width: 100%;
|
||
}
|
||
}
|
||
|
||
& > .ck-button {
|
||
padding: var(--ck-spacing-standard);
|
||
margin: 0;
|
||
width: 50%;
|
||
border-radius: 0;
|
||
|
||
&:not(:focus) {
|
||
border-top: 1px solid var(--ck-color-base-border);
|
||
}
|
||
|
||
@mixin ck-dir ltr {
|
||
margin-left: 0;
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
margin-left: 0;
|
||
|
||
&:last-of-type {
|
||
border-right: 1px solid var(--ck-color-base-border);
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Using additional \`.ck\` class for stronger CSS specificity than \`.ck.ck-link-form > :not(:first-child)\`. */
|
||
& .ck.ck-list {
|
||
margin: var(--ck-spacing-standard) var(--ck-spacing-large);
|
||
|
||
& .ck-button.ck-switchbutton {
|
||
padding: 0;
|
||
width: 100%;
|
||
|
||
&:hover {
|
||
background: none;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},4808:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzUuNzUgMCAwIDEtLjIxNy4yMDYgNS4yNTEgNS4yNTEgMCAwIDEtOC41MDMtNS45NTUuNy43IDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NHptNS40OTQtNS4zMzVhLjc1Ljc1IDAgMCAxLS4xMi4yNzRsLTEuMTQ3IDEuNjM5YS43NS43NSAwIDEgMS0xLjIyOC0uODZsLjg2LTEuMjNhMy43NSAzLjc1IDAgMCAwLTYuMTQ0LTQuMzAxbC0uODYgMS4yMjlhLjc1Ljc1IDAgMCAxLTEuMjI5LS44NmwxLjE0OC0xLjY0YS43NS43NSAwIDAgMSAuMjE3LS4yMDYgNS4yNTEgNS4yNTEgMCAwIDEgOC41MDMgNS45NTVtLTQuNTYzLTIuNTMyYS43NS43NSAwIDAgMSAuMTg0IDEuMDQ1bC0zLjE1NSA0LjUwNWEuNzUuNzUgMCAxIDEtMS4yMjktLjg2bDMuMTU1LTQuNTA2YS43NS43NSAwIDAgMSAxLjA0NS0uMTg0Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,k2BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-editor__editable {
|
||
/* Linked image indicator */
|
||
& figure.image > a,
|
||
& a span.image-inline {
|
||
&::after {
|
||
display: block;
|
||
position: absolute;
|
||
}
|
||
}
|
||
}
|
||
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
/* Match the icon size with the upload indicator brought by the image upload feature. */
|
||
--ck-link-image-indicator-icon-size: 20;
|
||
--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);
|
||
}
|
||
|
||
.ck.ck-editor__editable {
|
||
/* Linked image indicator */
|
||
& figure.image > a,
|
||
& a span.image-inline {
|
||
&::after {
|
||
content: "";
|
||
|
||
/*
|
||
* Smaller images should have the icon closer to the border.
|
||
* Match the icon position with the upload indicator brought by the image upload feature.
|
||
*/
|
||
top: min(var(--ck-spacing-medium), 6%);
|
||
right: min(var(--ck-spacing-medium), 6%);
|
||
|
||
background-color: hsla(0, 0%, 0%, .4);
|
||
background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");
|
||
background-size: 14px;
|
||
background-repeat: no-repeat;
|
||
background-position: center;
|
||
border-radius: 100%;
|
||
|
||
/*
|
||
* Use CSS math to simulate container queries.
|
||
* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things
|
||
*/
|
||
overflow: hidden;
|
||
width: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));
|
||
height: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));
|
||
}
|
||
}
|
||
}
|
||
|
||
`],sourceRoot:""}]);const y=b},1232:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck-editor__editable .ck-list-bogus-paragraph {
|
||
display: block;
|
||
}
|
||
`],sourceRoot:""}]);const y=b},6903:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck-content ol {
|
||
list-style-type: decimal;
|
||
|
||
& ol {
|
||
list-style-type: lower-latin;
|
||
|
||
& ol {
|
||
list-style-type: lower-roman;
|
||
|
||
& ol {
|
||
list-style-type: upper-latin;
|
||
|
||
& ol {
|
||
list-style-type: upper-roman;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.ck-content ul {
|
||
list-style-type: disc;
|
||
|
||
& ul {
|
||
list-style-type: circle;
|
||
|
||
& ul {
|
||
list-style-type: square;
|
||
|
||
& ul {
|
||
list-style-type: square;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},9968:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-list-properties {
|
||
/* When there are no list styles and there is no collapsible. */
|
||
&.ck-list-properties_without-styles {
|
||
padding: var(--ck-spacing-large);
|
||
|
||
& > * {
|
||
min-width: 14em;
|
||
|
||
& + * {
|
||
margin-top: var(--ck-spacing-standard);
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* When the numbered list property fields (start at, reversed) should be displayed,
|
||
* more horizontal space is needed. Reconfigure the style grid to create that space.
|
||
*/
|
||
&.ck-list-properties_with-numbered-properties {
|
||
& > .ck-list-styles-list {
|
||
grid-template-columns: repeat( 4, auto );
|
||
}
|
||
|
||
/* When list styles are rendered and property fields are in a collapsible. */
|
||
& > .ck-collapsible {
|
||
border-top: 1px solid var(--ck-color-base-border);
|
||
|
||
& > .ck-collapsible__children {
|
||
& > * {
|
||
width: 100%;
|
||
|
||
& + * {
|
||
margin-top: var(--ck-spacing-standard);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
& .ck.ck-numbered-list-properties__start-index .ck-input {
|
||
min-width: auto;
|
||
width: 100%;
|
||
}
|
||
|
||
& .ck.ck-numbered-list-properties__reversed-order {
|
||
background: transparent;
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
margin-bottom: calc(-1 * var(--ck-spacing-tiny));
|
||
|
||
&:active, &:hover {
|
||
box-shadow: none;
|
||
border-color: transparent;
|
||
background: none;
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7141:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-list-styles-list {
|
||
display: grid;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-list-style-button-size: 44px;
|
||
}
|
||
|
||
.ck.ck-list-styles-list {
|
||
grid-template-columns: repeat( 3, auto );
|
||
row-gap: var(--ck-spacing-medium);
|
||
column-gap: var(--ck-spacing-medium);
|
||
padding: var(--ck-spacing-large);
|
||
|
||
& .ck-button {
|
||
/* Make the button look like a thumbnail (the icon "takes it all"). */
|
||
width: var(--ck-list-style-button-size);
|
||
height: var(--ck-list-style-button-size);
|
||
padding: 0;
|
||
|
||
/*
|
||
* Buttons are aligned by the grid so disable default button margins to not collide with the
|
||
* gaps in the grid.
|
||
*/
|
||
margin: 0;
|
||
|
||
/*
|
||
* Make sure the button border (which is displayed on focus, BTW) does not steal pixels
|
||
* from the button dimensions and, as a result, decrease the size of the icon
|
||
* (which becomes blurry as it scales down).
|
||
*/
|
||
box-sizing: content-box;
|
||
|
||
& .ck-icon {
|
||
width: var(--ck-list-style-button-size);
|
||
height: var(--ck-list-style-button-size);
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8991:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-content .todo-list .todo-list__label>input:before{transition:none}}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{transition:none}}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CA4EA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAtFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAqFC,CAFA,wDApEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAoEA,CAhED,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sDAYE,eAEF,CADC,CAGD,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FAxHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAuHA,CAFA,wGAtGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAsGD,CAlGA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sGAYE,eAEF,CADC,CAGD,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-todo-list-checkmark-size: 16px;
|
||
}
|
||
|
||
@define-mixin todo-list-checkbox {
|
||
-webkit-appearance: none;
|
||
display: inline-block;
|
||
position: relative;
|
||
width: var(--ck-todo-list-checkmark-size);
|
||
height: var(--ck-todo-list-checkmark-size);
|
||
vertical-align: middle;
|
||
|
||
/* Needed on iOS */
|
||
border: 0;
|
||
|
||
/* LTR styles */
|
||
left: -25px;
|
||
margin-right: -15px;
|
||
right: 0;
|
||
margin-left: 0;
|
||
|
||
/* RTL styles */
|
||
@nest [dir=rtl]& {
|
||
left: 0;
|
||
margin-right: 0;
|
||
right: -25px;
|
||
margin-left: -15px;
|
||
}
|
||
|
||
&::before {
|
||
display: block;
|
||
position: absolute;
|
||
box-sizing: border-box;
|
||
content: '';
|
||
width: 100%;
|
||
height: 100%;
|
||
border: 1px solid hsl(0, 0%, 20%);
|
||
border-radius: 2px;
|
||
transition: 250ms ease-in-out box-shadow;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
}
|
||
|
||
&::after {
|
||
display: block;
|
||
position: absolute;
|
||
box-sizing: content-box;
|
||
pointer-events: none;
|
||
content: '';
|
||
|
||
/* Calculate tick position, size and border-width proportional to the checkmark size. */
|
||
left: calc( var(--ck-todo-list-checkmark-size) / 3 );
|
||
top: calc( var(--ck-todo-list-checkmark-size) / 5.3 );
|
||
width: calc( var(--ck-todo-list-checkmark-size) / 5.3 );
|
||
height: calc( var(--ck-todo-list-checkmark-size) / 2.6 );
|
||
border-style: solid;
|
||
border-color: transparent;
|
||
border-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;
|
||
transform: rotate(45deg);
|
||
}
|
||
|
||
&[checked] {
|
||
&::before {
|
||
background: hsl(126, 64%, 41%);
|
||
border-color: hsl(126, 64%, 41%);
|
||
}
|
||
|
||
&::after {
|
||
border-color: hsl(0, 0%, 100%);
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* To-do list content styles.
|
||
*/
|
||
.ck-content .todo-list {
|
||
list-style: none;
|
||
|
||
& li {
|
||
position: relative;
|
||
margin-bottom: 5px;
|
||
|
||
& .todo-list {
|
||
margin-top: 5px;
|
||
}
|
||
}
|
||
|
||
& .todo-list__label {
|
||
& > input {
|
||
@mixin todo-list-checkbox;
|
||
}
|
||
|
||
& .todo-list__label__description {
|
||
vertical-align: middle;
|
||
}
|
||
|
||
&.todo-list__label_without-description input[type=checkbox] {
|
||
position: absolute;
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* To-do list editing view styles.
|
||
*/
|
||
.ck-editor__editable.ck-content .todo-list .todo-list__label {
|
||
/*
|
||
* To-do list should be interactive only during the editing
|
||
* (https://github.com/ckeditor/ckeditor5/issues/2090).
|
||
*/
|
||
& > input,
|
||
& > span[contenteditable=false] > input {
|
||
cursor: pointer;
|
||
|
||
&:hover::before {
|
||
box-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Document Lists - editing view has an additional span around checkbox.
|
||
*/
|
||
& > span[contenteditable=false] > input {
|
||
@mixin todo-list-checkbox;
|
||
}
|
||
|
||
&.todo-list__label_without-description {
|
||
& input[type=checkbox] {
|
||
position: absolute;
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},70:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck-content .media {
|
||
/* Don't allow floated content overlap the media.
|
||
https://github.com/ckeditor/ckeditor5-media-embed/issues/53 */
|
||
clear: both;
|
||
|
||
/* Make sure there is some space between the content and the media. */
|
||
/* The first value should be equal to --ck-spacing-large variable if used in the editor context
|
||
to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */
|
||
margin: 0.9em 0;
|
||
|
||
/* Make sure media is not overriden with Bootstrap default \`flex\` value.
|
||
See: https://github.com/ckeditor/ckeditor5/issues/1373. */
|
||
display: block;
|
||
|
||
/* Give the media some minimal width in the content to prevent them
|
||
from being "squashed" in tight spaces, e.g. in table cells (#44) */
|
||
min-width: 15em;
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7048:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSlzY2FsZSguOTgwMTIpIj48cmVjdCB3aWR0aD0iNjAuMDk5IiBoZWlnaHQ9IjYwLjA5OSIgeD0iMTc2LjAzMSIgeT0iMjMxLjM5OSIgZmlsbD0iIzM0YTY2OCIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiIHJ4PSI1LjIzOCIgcnk9IjUuMjM4Ii8+PHBhdGggZmlsbD0iIzVjODhjNSIgZD0ibTIwNi40NzcgMjYwLjktMjguOTg3IDI4Ljk4N2E1LjIyIDUuMjIgMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiLz48cGF0aCBmaWxsPSIjZGQ0YjNlIiBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwN3EuNS43NTMuOTUgMS41MDguNTE1LjcxNS45ODggMS40NGMxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5cS40NzMtLjcyMy45ODgtMS40MzkuNDUtLjc1NS45NS0xLjUwOGMuMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIGN4PSIyMjYuNzQyIiBjeT0iMjM5LjAwMiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiIHJ4PSI1LjgyOCIgcnk9IjUuNTY0Ii8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjlxLS4wMDEtLjU0My0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhxLS4wMDEtLjAwMy0uMDA0LS4wMDVjLTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTVtNC40MyA1LjY2LjAwMy4wMDZ2LS4wMDN6IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGZpbGw9IiNjM2MzYzMiIGQ9Im0yMTUuMTg0IDI1MS45MjktNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMiA1LjIgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjl6Ii8+PHBhdGggZmlsbD0iI2ZkZGM0ZiIgZD0ibTIxMi45ODMgMjQ4LjQ5NS0zNi45NTIgMzYuOTUzdi44MTJhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYgMTM2IDAgMCAwLTIuNzY0LTMuOSAzOCAzOCAwIDAgMC0uOTg5LTEuNDQgMzUgMzUgMCAwIDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDI0IiBoZWlnaHQ9IjEwMjQiPjxwYXRoIGZpbGw9IiNGRkZGRkUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTk2Ny40ODQgMEg1Ni41MTdDMjUuMzA0IDAgMCAyNS4zMDQgMCA1Ni41MTd2OTEwLjk2NkMwIDk5OC42OTQgMjUuMjk3IDEwMjQgNTYuNTIyIDEwMjRINTQ3VjYyOEg0MTRWNDczaDEzM1YzNTkuMDI5YzAtMTMyLjI2MiA4MC43NzMtMjA0LjI4MiAxOTguNzU2LTIwNC4yODIgNTYuNTEzIDAgMTA1LjA4NiA0LjIwOCAxMTkuMjQ0IDYuMDg5VjI5OWwtODEuNjE2LjAzN2MtNjMuOTkzIDAtNzYuMzg0IDMwLjQ5Mi03Ni4zODQgNzUuMjM2VjQ3M2gxNTMuNDg3bC0xOS45ODYgMTU1SDcwN3YzOTZoMjYwLjQ4NGMzMS4yMTMgMCA1Ni41MTYtMjUuMzAzIDU2LjUxNi01Ni41MTZWNTYuNTE1QzEwMjQgMjUuMzAzIDk5OC42OTcgMCA5NjcuNDg0IDAiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OW0wIDQ1LjM5MWM2Ny4yNjUgMCA3NS4yMzMuMjU3IDEwMS43OTcgMS40NjkgMjQuNTYyIDEuMTIgMzcuOTAxIDUuMjI0IDQ2Ljc3OCA4LjY3NCAxMS43NTkgNC41NyAyMC4xNTEgMTAuMDI5IDI4Ljk2NiAxOC44NDVzMTQuMjc1IDE3LjIwNyAxOC44NDUgMjguOTY2YzMuNDUgOC44NzcgNy41NTQgMjIuMjE2IDguNjc0IDQ2Ljc3OCAxLjIxMiAyNi41NjQgMS40NjkgMzQuNTMyIDEuNDY5IDEwMS43OTggMCA2Ny4yNjUtLjI1NyA3NS4yMzMtMS40NjkgMTAxLjc5Ny0xLjEyIDI0LjU2Mi01LjIyNCAzNy45MDEtOC42NzQgNDYuNzc4LTQuNTcgMTEuNzU5LTEwLjAyOSAyMC4xNTEtMTguODQ1IDI4Ljk2NnMtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1Yy04Ljg3NyAzLjQ1LTIyLjIxNiA3LjU1NC00Ni43NzggOC42NzQtMjYuNTYgMS4yMTItMzQuNTI3IDEuNDY5LTEwMS43OTcgMS40NjktNjcuMjcxIDAtNzUuMjM3LS4yNTctMTAxLjc5OC0xLjQ2OS0yNC41NjItMS4xMi0zNy45MDEtNS4yMjQtNDYuNzc4LTguNjc0LTExLjc1OS00LjU3LTIwLjE1MS0xMC4wMjktMjguOTY2LTE4Ljg0NXMtMTQuMjc1LTE3LjIwNy0xOC44NDUtMjguOTY2Yy0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NnMxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDVjOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OSIgbWFzaz0idXJsKCNiKSIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0yNTEuOTIxIDMzNi4wNTNjLTQ2LjM3OCAwLTgzLjk3NC0zNy41OTYtODMuOTc0LTgzLjk3M3MzNy41OTYtODMuOTc0IDgzLjk3NC04My45NzRjNDYuMzc3IDAgODMuOTczIDM3LjU5NiA4My45NzMgODMuOTc0IDAgNDYuMzc3LTM3LjU5NiA4My45NzMtODMuOTczIDgzLjk3M20wLTIxMy4zMzhjLTcxLjQ0NyAwLTEyOS4zNjUgNTcuOTE4LTEyOS4zNjUgMTI5LjM2NSAwIDcxLjQ0NiA1Ny45MTggMTI5LjM2NCAxMjkuMzY1IDEyOS4zNjQgNzEuNDQ2IDAgMTI5LjM2NC01Ny45MTggMTI5LjM2NC0xMjkuMzY0IDAtNzEuNDQ3LTU3LjkxOC0xMjkuMzY1LTEyOS4zNjQtMTI5LjM2NU00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjNzMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzFjMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwME0xNjMuNCAzMDUuNWM4OC43IDAgMTM3LjItNzMuNSAxMzcuMi0xMzcuMiAwLTIuMSAwLTQuMi0uMS02LjIgOS40LTYuOCAxNy42LTE1LjMgMjQuMS0yNS04LjYgMy44LTE3LjkgNi40LTI3LjcgNy42IDEwLTYgMTcuNi0xNS40IDIxLjItMjYuNy05LjMgNS41LTE5LjYgOS41LTMwLjYgMTEuNy04LjgtOS40LTIxLjMtMTUuMi0zNS4yLTE1LjItMjYuNiAwLTQ4LjIgMjEuNi00OC4yIDQ4LjIgMCAzLjguNCA3LjUgMS4zIDExLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40LTQuMSA3LjEtNi41IDE1LjQtNi41IDI0LjIgMCAxNi43IDguNSAzMS41IDIxLjUgNDAuMS03LjktLjItMTUuMy0yLjQtMjEuOC02di42YzAgMjMuNCAxNi42IDQyLjggMzguNyA0Ny4zLTQgMS4xLTguMyAxLjctMTIuNyAxLjctMy4xIDAtNi4xLS4zLTkuMS0uOSA2LjEgMTkuMiAyMy45IDMzLjEgNDUgMzMuNS0xNi41IDEyLjktMzcuMyAyMC42LTU5LjkgMjAuNi0zLjkgMC03LjctLjItMTEuNS0uNyAyMS4xIDEzLjggNDYuNSAyMS44IDczLjcgMjEuOCIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,goGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,o+GACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,g/BACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck-media__wrapper {
|
||
& .ck-media__placeholder {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
|
||
& .ck-media__placeholder__url {
|
||
/* Otherwise the URL will overflow when the content is very narrow. */
|
||
max-width: 100%;
|
||
|
||
position: relative;
|
||
|
||
& .ck-media__placeholder__url__text {
|
||
overflow: hidden;
|
||
display: block;
|
||
}
|
||
}
|
||
}
|
||
|
||
&[data-oembed-url*="twitter.com"],
|
||
&[data-oembed-url*="google.com/maps"],
|
||
&[data-oembed-url*="goo.gl/maps"],
|
||
&[data-oembed-url*="maps.google.com"],
|
||
&[data-oembed-url*="maps.app.goo.gl"],
|
||
&[data-oembed-url*="facebook.com"],
|
||
&[data-oembed-url*="instagram.com"] {
|
||
& .ck-media__placeholder__icon * {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Disable all mouse interaction as long as the editor is not read–only.
|
||
https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */
|
||
.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).
|
||
https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */
|
||
.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {
|
||
pointer-events: none;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-media-embed-placeholder-icon-size: 3em;
|
||
|
||
--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);
|
||
--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);
|
||
}
|
||
|
||
.ck-media__wrapper {
|
||
margin: 0 auto;
|
||
|
||
& .ck-media__placeholder {
|
||
padding: calc( 3 * var(--ck-spacing-standard) );
|
||
background: var(--ck-color-base-foreground);
|
||
|
||
& .ck-media__placeholder__icon {
|
||
min-width: var(--ck-media-embed-placeholder-icon-size);
|
||
height: var(--ck-media-embed-placeholder-icon-size);
|
||
margin-bottom: var(--ck-spacing-large);
|
||
background-position: center;
|
||
background-size: cover;
|
||
|
||
& .ck-icon {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
}
|
||
|
||
& .ck-media__placeholder__url__text {
|
||
color: var(--ck-color-media-embed-placeholder-url-text);
|
||
white-space: nowrap;
|
||
text-align: center;
|
||
font-style: italic;
|
||
text-overflow: ellipsis;
|
||
|
||
&:hover {
|
||
color: var(--ck-color-media-embed-placeholder-url-text-hover);
|
||
cursor: pointer;
|
||
text-decoration: underline;
|
||
}
|
||
}
|
||
}
|
||
|
||
&[data-oembed-url*="open.spotify.com"] {
|
||
max-width: 300px;
|
||
max-height: 380px;
|
||
}
|
||
|
||
&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,
|
||
&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,
|
||
&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,
|
||
&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {
|
||
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);
|
||
}
|
||
|
||
&[data-oembed-url*="facebook.com"] .ck-media__placeholder {
|
||
background: hsl(220, 46%, 48%);
|
||
|
||
& .ck-media__placeholder__icon {
|
||
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);
|
||
}
|
||
|
||
& .ck-media__placeholder__url__text {
|
||
color: hsl(220, 100%, 90%);
|
||
|
||
&:hover {
|
||
color: hsl(0, 0%, 100%);
|
||
}
|
||
}
|
||
}
|
||
|
||
&[data-oembed-url*="instagram.com"] .ck-media__placeholder {
|
||
background: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));
|
||
|
||
& .ck-media__placeholder__icon {
|
||
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);
|
||
}
|
||
|
||
/* stylelint-disable-next-line no-descending-specificity */
|
||
& .ck-media__placeholder__url__text {
|
||
color: hsl(302, 100%, 94%);
|
||
|
||
&:hover {
|
||
color: hsl(0, 0%, 100%);
|
||
}
|
||
}
|
||
}
|
||
|
||
&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {
|
||
/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */
|
||
background: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );
|
||
|
||
& .ck-media__placeholder__icon {
|
||
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);
|
||
}
|
||
|
||
& .ck-media__placeholder__url__text {
|
||
color: hsl(201, 100%, 86%);
|
||
|
||
&:hover {
|
||
color: hsl(0, 0%, 100%);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},5651:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
||
|
||
.ck.ck-media-form {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
flex-direction: row;
|
||
flex-wrap: nowrap;
|
||
|
||
& .ck-labeled-field-view {
|
||
display: inline-block;
|
||
}
|
||
|
||
& .ck-label {
|
||
display: none;
|
||
}
|
||
|
||
@mixin ck-media-phone {
|
||
flex-wrap: wrap;
|
||
|
||
& .ck-labeled-field-view {
|
||
flex-basis: 100%;
|
||
}
|
||
|
||
& .ck-button {
|
||
flex-basis: 50%;
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@define-mixin ck-media-phone {
|
||
@media screen and (max-width: 600px) {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},5506:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-input-color {
|
||
width: 100%;
|
||
display: flex;
|
||
flex-direction: row-reverse;
|
||
|
||
& > input.ck.ck-input-text {
|
||
min-width: auto;
|
||
flex-grow: 1;
|
||
}
|
||
|
||
& > div.ck.ck-dropdown {
|
||
min-width: auto;
|
||
|
||
/* This dropdown has no arrow but a color preview instead. */
|
||
& > .ck-input-color__button .ck-dropdown__arrow {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
& .ck.ck-input-color__button {
|
||
/* Resolving issue with misaligned buttons on Safari (see #10589) */
|
||
display: flex;
|
||
|
||
& .ck.ck-input-color__button__preview {
|
||
position: relative;
|
||
overflow: hidden;
|
||
|
||
& > .ck.ck-input-color__button__preview__no-color-indicator {
|
||
position: absolute;
|
||
display: block;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
@import "../mixins/_rounded.css";
|
||
|
||
.ck.ck-input-color {
|
||
& > .ck.ck-input-text {
|
||
@mixin ck-dir ltr {
|
||
border-top-right-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
border-top-left-radius: 0;
|
||
border-bottom-left-radius: 0;
|
||
}
|
||
|
||
/* Make sure the focused input is always on top of the dropdown button so its
|
||
outline and border are never cropped (also when the input is read-only). */
|
||
&:focus {
|
||
z-index: 0;
|
||
}
|
||
}
|
||
|
||
& > .ck.ck-dropdown {
|
||
& > .ck.ck-button.ck-input-color__button {
|
||
padding: 0;
|
||
|
||
@mixin ck-dir ltr {
|
||
border-top-left-radius: 0;
|
||
border-bottom-left-radius: 0;
|
||
|
||
&:not(:focus) {
|
||
border-left: 1px solid transparent;
|
||
}
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
border-top-right-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
|
||
&:not(:focus) {
|
||
border-right: 1px solid transparent;
|
||
}
|
||
}
|
||
|
||
&.ck-disabled {
|
||
background: var(--ck-color-input-disabled-background);
|
||
}
|
||
|
||
& > .ck.ck-input-color__button__preview {
|
||
@mixin ck-rounded-corners;
|
||
|
||
width: 20px;
|
||
height: 20px;
|
||
border: 1px solid var(--ck-color-input-border);
|
||
|
||
& > .ck.ck-input-color__button__preview__no-color-indicator {
|
||
top: -30%;
|
||
left: 50%;
|
||
height: 150%;
|
||
width: 8%;
|
||
background: hsl(0, 100%, 50%);
|
||
border-radius: 2px;
|
||
transform: rotate(45deg);
|
||
transform-origin: 50%;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
& .ck.ck-input-color__remove-color {
|
||
width: 100%;
|
||
padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);
|
||
|
||
border-bottom-left-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
|
||
&:not(:focus) {
|
||
border-bottom: 1px solid var(--ck-color-input-border);
|
||
}
|
||
|
||
@mixin ck-dir ltr {
|
||
border-top-right-radius: 0;
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
border-top-left-radius: 0;
|
||
}
|
||
|
||
& .ck.ck-icon {
|
||
margin-right: var(--ck-spacing-standard);
|
||
|
||
@mixin ck-dir rtl {
|
||
margin-right: 0;
|
||
margin-left: var(--ck-spacing-standard);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},4043:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-form {
|
||
padding: 0 0 var(--ck-spacing-large);
|
||
|
||
&:focus {
|
||
/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */
|
||
outline: none;
|
||
}
|
||
|
||
& .ck.ck-input-text {
|
||
min-width: 100%;
|
||
width: 0;
|
||
}
|
||
|
||
& .ck.ck-dropdown {
|
||
min-width: 100%;
|
||
|
||
& .ck-dropdown__button {
|
||
&:not(:focus) {
|
||
border: 1px solid var(--ck-color-base-border);
|
||
}
|
||
|
||
& .ck-button__label {
|
||
width: 100%;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},2655:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-form__row {
|
||
display: flex;
|
||
flex-direction: row;
|
||
flex-wrap: nowrap;
|
||
justify-content: space-between;
|
||
|
||
/* Ignore labels that work as fieldset legends */
|
||
& > *:not(.ck-label) {
|
||
flex-grow: 1;
|
||
}
|
||
|
||
&.ck-table-form__action-row {
|
||
& .ck-button-save,
|
||
& .ck-button-cancel {
|
||
justify-content: center;
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
.ck.ck-form__row {
|
||
padding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;
|
||
|
||
/* Ignore labels that work as fieldset legends */
|
||
& > *:not(.ck-label) {
|
||
& + * {
|
||
@mixin ck-dir ltr {
|
||
margin-left: var(--ck-spacing-large);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
margin-right: var(--ck-spacing-large);
|
||
}
|
||
}
|
||
}
|
||
|
||
& > .ck-label {
|
||
width: 100%;
|
||
min-width: 100%;
|
||
}
|
||
|
||
&.ck-table-form__action-row {
|
||
margin-top: var(--ck-spacing-large);
|
||
|
||
& .ck-button .ck-button__label {
|
||
color: var(--ck-color-text);
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},5032:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}@media (prefers-reduced-motion:reduce){.ck .ck-insert-table-dropdown-grid-box{transition:none}}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAcD,CAZC,uCATD,uCAUE,eAWF,CAVC,CAEA,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck .ck-insert-table-dropdown__grid {
|
||
display: flex;
|
||
flex-direction: row;
|
||
flex-wrap: wrap;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-insert-table-dropdown-padding: 10px;
|
||
--ck-insert-table-dropdown-box-height: 11px;
|
||
--ck-insert-table-dropdown-box-width: 12px;
|
||
--ck-insert-table-dropdown-box-margin: 1px;
|
||
}
|
||
|
||
.ck .ck-insert-table-dropdown__grid {
|
||
/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */
|
||
width: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);
|
||
padding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;
|
||
}
|
||
|
||
.ck .ck-insert-table-dropdown__label,
|
||
.ck[dir=rtl] .ck-insert-table-dropdown__label {
|
||
text-align: center;
|
||
}
|
||
|
||
.ck .ck-insert-table-dropdown-grid-box {
|
||
min-width: var(--ck-insert-table-dropdown-box-width);
|
||
min-height: var(--ck-insert-table-dropdown-box-height);
|
||
margin: var(--ck-insert-table-dropdown-box-margin);
|
||
border: 1px solid var(--ck-color-base-border);
|
||
border-radius: 1px;
|
||
outline: none;
|
||
transition: none;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
|
||
&:focus {
|
||
box-shadow: none;
|
||
}
|
||
|
||
&.ck-on {
|
||
border-color: var(--ck-color-focus-border);
|
||
background: var(--ck-color-focus-outer-shadow);
|
||
}
|
||
}
|
||
|
||
`],sourceRoot:""}]);const y=b},2329:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck-content .table {
|
||
/* Give the table widget some air and center it horizontally */
|
||
/* The first value should be equal to --ck-spacing-large variable if used in the editor context
|
||
to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */
|
||
margin: 0.9em auto;
|
||
display: table;
|
||
|
||
& table {
|
||
/* The table cells should have slight borders */
|
||
border-collapse: collapse;
|
||
border-spacing: 0;
|
||
|
||
/* Table width and height are set on the parent <figure>. Make sure the table inside stretches
|
||
to the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */
|
||
width: 100%;
|
||
height: 100%;
|
||
|
||
/* The outer border of the table should be slightly darker than the inner lines.
|
||
Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */
|
||
border: 1px double hsl(0, 0%, 70%);
|
||
|
||
& td,
|
||
& th {
|
||
min-width: 2em;
|
||
padding: .4em;
|
||
|
||
/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it's not necessary here.
|
||
However, the border is a content style, so it should use .ck-content (so it works outside the editor).
|
||
Hence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */
|
||
border: 1px solid hsl(0, 0%, 75%);
|
||
}
|
||
|
||
& th {
|
||
font-weight: bold;
|
||
background: hsla(0, 0%, 0%, 5%);
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Text alignment of the table header should match the editor settings and override the native browser styling,
|
||
when content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */
|
||
.ck-content[dir="rtl"] .table th {
|
||
text-align: right;
|
||
}
|
||
|
||
.ck-content[dir="ltr"] .table th {
|
||
text-align: left;
|
||
}
|
||
|
||
.ck-editor__editable .ck-table-bogus-paragraph {
|
||
/*
|
||
* Use display:inline-block to force Chrome/Safari to limit text mutations to this element.
|
||
* See https://github.com/ckeditor/ckeditor5/issues/6062.
|
||
*/
|
||
display: inline-block;
|
||
|
||
/*
|
||
* Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.
|
||
* See https://github.com/ckeditor/ckeditor5/issues/9117.
|
||
*/
|
||
width: 100%;
|
||
}
|
||
`],sourceRoot:""}]);const y=b},4143:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}@media (forced-colors:active){.ck-content .table>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAOA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAaD,CCxBC,8BACC,8BDoBA,sBAAuB,CACvB,WCnBA,CACD,CAIA,4BDqBC,qEACC,iDACD,CCnBD,CDsBA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";
|
||
|
||
:root {
|
||
--ck-color-selector-caption-background: hsl(0, 0%, 97%);
|
||
--ck-color-selector-caption-text: hsl(0, 0%, 20%);
|
||
--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);
|
||
}
|
||
|
||
/* Content styles */
|
||
.ck-content .table > figcaption {
|
||
display: table-caption;
|
||
caption-side: top;
|
||
word-break: break-word;
|
||
text-align: center;
|
||
color: var(--ck-color-selector-caption-text);
|
||
background-color: var(--ck-color-selector-caption-background);
|
||
padding: .6em;
|
||
font-size: .75em;
|
||
outline-offset: -1px;
|
||
|
||
/* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */
|
||
@mixin ck-media-forced-colors {
|
||
background-color: unset;
|
||
color: unset;
|
||
}
|
||
}
|
||
|
||
/* Editing styles */
|
||
.ck.ck-editor__editable .table > figcaption {
|
||
@mixin ck-media-default-colors {
|
||
&.table__caption_highlighted {
|
||
animation: ck-table-caption-highlight .6s ease-out;
|
||
}
|
||
}
|
||
|
||
&.ck-placeholder::before {
|
||
padding-left: inherit;
|
||
padding-right: inherit;
|
||
|
||
/*
|
||
* Make sure the table caption placeholder doesn't overflow the placeholder area.
|
||
* See https://github.com/ckeditor/ckeditor5/issues/9162.
|
||
*/
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
}
|
||
|
||
@keyframes ck-table-caption-highlight {
|
||
0% {
|
||
background-color: var(--ck-color-selector-caption-highlighted-background);
|
||
}
|
||
|
||
100% {
|
||
background-color: var(--ck-color-selector-caption-background);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@define-mixin ck-media-forced-colors {
|
||
@media (forced-colors: active) {
|
||
& {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
}
|
||
|
||
@define-mixin ck-media-default-colors {
|
||
@media (forced-colors: none) {
|
||
& {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8986:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-table-cell-properties-form {
|
||
& .ck-form__row {
|
||
&.ck-table-cell-properties-form__alignment-row {
|
||
flex-wrap: wrap;
|
||
|
||
& .ck.ck-toolbar {
|
||
&:first-of-type {
|
||
/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */
|
||
flex-grow: 0.57;
|
||
}
|
||
|
||
&:last-of-type {
|
||
/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */
|
||
flex-grow: 0.43;
|
||
}
|
||
|
||
& .ck-button {
|
||
flex-grow: 1;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-table-cell-properties-form {
|
||
width: 320px;
|
||
|
||
& .ck-form__row {
|
||
&.ck-table-cell-properties-form__padding-row {
|
||
align-self: flex-end;
|
||
padding: 0;
|
||
width: 25%;
|
||
}
|
||
|
||
&.ck-table-cell-properties-form__alignment-row {
|
||
& .ck.ck-toolbar {
|
||
background: none;
|
||
|
||
/* Compensate for missing input label that would push the margin (toolbar has no inputs). */
|
||
margin-top: var(--ck-spacing-standard);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8795:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);
|
||
--ck-table-column-resizer-width: 7px;
|
||
|
||
/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.
|
||
The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */
|
||
--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);
|
||
}
|
||
|
||
.ck-content .table .ck-table-resized {
|
||
table-layout: fixed;
|
||
}
|
||
|
||
.ck-content .table table {
|
||
overflow: hidden;
|
||
}
|
||
|
||
.ck-content .table td,
|
||
.ck-content .table th {
|
||
/* To prevent text overflowing beyond its cell when columns are resized by resize handler
|
||
(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */
|
||
overflow-wrap: break-word;
|
||
position: relative;
|
||
}
|
||
|
||
.ck.ck-editor__editable .table .ck-table-column-resizer {
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
right: var(--ck-table-column-resizer-position-offset);
|
||
width: var(--ck-table-column-resizer-width);
|
||
cursor: col-resize;
|
||
user-select: none;
|
||
z-index: var(--ck-z-default);
|
||
}
|
||
|
||
.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {
|
||
display: none;
|
||
}
|
||
|
||
/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,
|
||
all resizers must be hidden while the table is dragged. */
|
||
.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {
|
||
display: none;
|
||
}
|
||
|
||
.ck.ck-editor__editable .table .ck-table-column-resizer:hover,
|
||
.ck.ck-editor__editable .table .ck-table-column-resizer__active {
|
||
background-color: var(--ck-color-selector-column-resizer-hover);
|
||
opacity: 0.25;
|
||
/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,
|
||
it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as
|
||
it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally
|
||
unrealistic height for a single table. */
|
||
top: -999999px;
|
||
bottom: -999999px;
|
||
}
|
||
|
||
.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {
|
||
left: var(--ck-table-column-resizer-position-offset);
|
||
right: unset;
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8137:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);
|
||
}
|
||
|
||
.ck-widget.table {
|
||
& td,
|
||
& th {
|
||
&.ck-editor__nested-editable.ck-editor__nested-editable_focused,
|
||
&.ck-editor__nested-editable:focus {
|
||
/* A very slight background to highlight the focused cell */
|
||
background: var(--ck-color-selector-focused-cell-background);
|
||
|
||
/* Fixes the problem where surrounding cells cover the focused cell's border.
|
||
It does not fix the problem in all places but the UX is improved.
|
||
See https://github.com/ckeditor/ckeditor5-table/issues/29. */
|
||
border-style: none;
|
||
outline: 1px solid var(--ck-color-focus-border);
|
||
outline-offset: -1px; /* progressive enhancement - no IE support */
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},1623:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}@media (prefers-reduced-motion:reduce){.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCA6BD,CA3BC,8ECxCD,eD6DC,CArBA,mMCpCA,qCDyDA,CArBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAcD,CAXC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEAKD,CAHC,uCAlBD,8EAmBE,cAEF,CADC,CAID,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-table-form {
|
||
& .ck-form__row {
|
||
&.ck-table-form__border-row {
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
&.ck-table-form__background-row {
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
&.ck-table-form__dimensions-row {
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
|
||
& .ck-labeled-field-view {
|
||
display: flex;
|
||
flex-direction: column-reverse;
|
||
align-items: center;
|
||
|
||
& .ck.ck-dropdown {
|
||
flex-grow: 0;
|
||
}
|
||
}
|
||
|
||
& .ck-table-form__dimension-operator {
|
||
flex-grow: 0;
|
||
}
|
||
}
|
||
}
|
||
|
||
& .ck.ck-labeled-field-view {
|
||
/* Allow absolute positioning of the status (error) balloons. */
|
||
position: relative;
|
||
|
||
& .ck.ck-labeled-field-view__status {
|
||
position: absolute;
|
||
left: 50%;
|
||
bottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );
|
||
transform: translate(-50%,100%);
|
||
|
||
/* Make sure the balloon status stays on top of other form elements. */
|
||
z-index: 1;
|
||
|
||
/* The arrow pointing towards the field. */
|
||
&::after {
|
||
content: "";
|
||
position: absolute;
|
||
top: calc( -1 * var(--ck-table-properties-error-arrow-size) );
|
||
left: 50%;
|
||
transform: translateX( -50% );
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../mixins/_rounded.css";
|
||
|
||
:root {
|
||
--ck-table-properties-error-arrow-size: 6px;
|
||
--ck-table-properties-min-error-width: 150px;
|
||
}
|
||
|
||
.ck.ck-table-form {
|
||
& .ck-form__row {
|
||
&.ck-table-form__border-row {
|
||
& .ck-labeled-field-view {
|
||
& > .ck-label {
|
||
font-size: var(--ck-font-size-tiny);
|
||
text-align: center;
|
||
}
|
||
}
|
||
|
||
& .ck-table-form__border-style,
|
||
& .ck-table-form__border-width {
|
||
width: 80px;
|
||
min-width: 80px;
|
||
max-width: 80px;
|
||
}
|
||
}
|
||
|
||
&.ck-table-form__dimensions-row {
|
||
padding: 0;
|
||
|
||
& .ck-table-form__dimensions-row__width,
|
||
& .ck-table-form__dimensions-row__height {
|
||
margin: 0
|
||
}
|
||
|
||
& .ck-table-form__dimension-operator {
|
||
align-self: flex-end;
|
||
display: inline-block;
|
||
height: var(--ck-ui-component-min-height);
|
||
line-height: var(--ck-ui-component-min-height);
|
||
margin: 0 var(--ck-spacing-small);
|
||
}
|
||
}
|
||
}
|
||
|
||
& .ck.ck-labeled-field-view {
|
||
padding-top: var(--ck-spacing-standard);
|
||
|
||
& .ck.ck-labeled-field-view__status {
|
||
@mixin ck-rounded-corners;
|
||
|
||
background: var(--ck-color-base-error);
|
||
color: var(--ck-color-base-background);
|
||
padding: var(--ck-spacing-small) var(--ck-spacing-medium);
|
||
min-width: var(--ck-table-properties-min-error-width);
|
||
text-align: center;
|
||
|
||
/* The arrow pointing towards the field. */
|
||
&::after {
|
||
border-color: transparent transparent var(--ck-color-base-error) transparent;
|
||
border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);
|
||
border-style: solid;
|
||
}
|
||
|
||
animation: ck-table-form-labeled-view-status-appear .15s ease both;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
animation: none;
|
||
}
|
||
}
|
||
|
||
/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */
|
||
& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
@keyframes ck-table-form-labeled-view-status-appear {
|
||
0% {
|
||
opacity: 0;
|
||
}
|
||
|
||
100% {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},5562:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-table-properties-form {
|
||
& .ck-form__row {
|
||
&.ck-table-properties-form__alignment-row {
|
||
flex-wrap: wrap;
|
||
flex-basis: 0;
|
||
align-content: baseline;
|
||
|
||
& .ck.ck-toolbar .ck-toolbar__items {
|
||
flex-wrap: nowrap;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-table-properties-form {
|
||
width: 320px;
|
||
|
||
& .ck-form__row {
|
||
&.ck-table-properties-form__alignment-row {
|
||
align-self: flex-end;
|
||
padding: 0;
|
||
|
||
& .ck.ck-toolbar {
|
||
background: none;
|
||
|
||
/* Compensate for missing input label that would push the margin (toolbar has no inputs). */
|
||
margin-top: var(--ck-spacing-standard);
|
||
|
||
& .ck-toolbar__items > * {
|
||
width: 40px;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8423:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);
|
||
}
|
||
|
||
.ck.ck-editor__editable .table table {
|
||
& td.ck-editor__editable_selected,
|
||
& th.ck-editor__editable_selected {
|
||
position: relative;
|
||
caret-color: transparent;
|
||
outline: unset;
|
||
box-shadow: unset;
|
||
|
||
/* https://github.com/ckeditor/ckeditor5/issues/6446 */
|
||
&:after {
|
||
content: '';
|
||
pointer-events: none;
|
||
background-color: var(--ck-table-selected-cell-background);
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
}
|
||
|
||
& ::selection,
|
||
&:focus {
|
||
background-color: transparent;
|
||
}
|
||
|
||
/*
|
||
* To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.
|
||
* See https://github.com/ckeditor/ckeditor5/issues/9491.
|
||
*/
|
||
& .ck-widget {
|
||
outline: unset;
|
||
|
||
& > .ck-widget__selection-handle {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},1801:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}.ck.ck-aria-live-region-list{list-style-type:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"],names:[],mappings:"AAKA,2BAEC,aAAc,CADd,iBAAkB,CAElB,YACD,CAEA,6BACC,oBACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-aria-live-announcer {
|
||
position: absolute;
|
||
left: -10000px;
|
||
top: -10000px;
|
||
}
|
||
|
||
.ck.ck-aria-live-region-list {
|
||
list-style-type: none;
|
||
}
|
||
`],sourceRoot:""}]);const y=b},5727:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-panel)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-autocomplete {
|
||
position: relative;
|
||
|
||
& > .ck-search__results {
|
||
position: absolute;
|
||
z-index: var(--ck-z-panel);
|
||
|
||
&.ck-search__results_n {
|
||
bottom: 100%;
|
||
}
|
||
|
||
&.ck-search__results_s {
|
||
top: 100%;
|
||
bottom: auto;
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
|
||
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
|
||
|
||
.ck.ck-autocomplete {
|
||
& > .ck-search__results {
|
||
@mixin ck-rounded-corners;
|
||
@mixin ck-drop-shadow;
|
||
|
||
max-height: 200px;
|
||
overflow-y: auto;
|
||
background: var(--ck-color-base-background);
|
||
border: 1px solid var(--ck-color-dropdown-panel-border);
|
||
min-width: auto;
|
||
|
||
&.ck-search__results_n {
|
||
border-bottom-left-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
|
||
/* Prevent duplicated borders between the input and the results pane. */
|
||
margin-bottom: -1px;
|
||
}
|
||
|
||
&.ck-search__results_s {
|
||
border-top-left-radius: 0;
|
||
border-top-right-radius: 0;
|
||
|
||
/* Prevent duplicated borders between the input and the results pane. */
|
||
margin-top: -1px;
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},9715:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}[dir=ltr] .ck.ck-button,[dir=ltr] a.ck.ck-button{justify-content:left}[dir=rtl] .ck.ck-button,[dir=rtl] a.ck.ck-button{justify-content:right}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}@media (prefers-reduced-motion:reduce){.ck.ck-button,a.ck.ck-button{transition:none}}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{opacity:.5}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BAMC,kBAAmB,CADnB,mBAAoB,CADpB,iBAAkB,CCHlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD0BD,CA9BA,iDASE,oBAqBF,CA9BA,iDAaE,qBAiBF,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEzBD,6BCAC,oDD+ID,CC5IE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eFgJD,CA/IA,wIEGE,qCF4IF,CA/IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBA0ID,CAhHC,uCA/BD,6BAgCE,eA+GF,CA9GC,CAEA,oFGpCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHyCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAWD,CAZA,6FAIE,mCAQF,CAZA,6FAQE,oCAIF,CAZA,yEAWC,UACD,CAIC,oIIxFD,oDJ4FC,CAOA,gLKnGD,kCLqGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCClIA,+CDsIA,CCnIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDmHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CClJC,mDDuJD,CCpJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDmID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../mixins/_unselectable.css";
|
||
@import "../../mixins/_dir.css";
|
||
|
||
.ck.ck-button,
|
||
a.ck.ck-button {
|
||
@mixin ck-unselectable;
|
||
|
||
position: relative;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
|
||
@mixin ck-dir ltr {
|
||
justify-content: left;
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
justify-content: right;
|
||
}
|
||
|
||
& .ck-button__label {
|
||
display: none;
|
||
}
|
||
|
||
&.ck-button_with-text {
|
||
& .ck-button__label {
|
||
display: inline-block;
|
||
}
|
||
}
|
||
|
||
/* Center the icon horizontally in a button without text. */
|
||
&:not(.ck-button_with-text) {
|
||
justify-content: center;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Makes element unselectable.
|
||
*/
|
||
@define-mixin ck-unselectable {
|
||
-moz-user-select: none;
|
||
-webkit-user-select: none;
|
||
-ms-user-select: none;
|
||
user-select: none
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_focus.css";
|
||
@import "../../../mixins/_shadow.css";
|
||
@import "../../../mixins/_disabled.css";
|
||
@import "../../../mixins/_rounded.css";
|
||
@import "../../mixins/_button.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
.ck.ck-button,
|
||
a.ck.ck-button {
|
||
@mixin ck-button-colors --ck-color-button-default;
|
||
@mixin ck-rounded-corners;
|
||
|
||
white-space: nowrap;
|
||
cursor: default;
|
||
vertical-align: middle;
|
||
padding: var(--ck-spacing-tiny);
|
||
text-align: center;
|
||
|
||
/* A very important piece of styling. Go to variable declaration to learn more. */
|
||
min-width: var(--ck-ui-component-min-height);
|
||
min-height: var(--ck-ui-component-min-height);
|
||
|
||
/* Normalize the height of the line. Removing this will break consistent height
|
||
among text and text-less buttons (with icons). */
|
||
line-height: 1;
|
||
|
||
/* Enable font size inheritance, which allows fluid UI scaling. */
|
||
font-size: inherit;
|
||
|
||
/* Avoid flickering when the foucs border shows up. */
|
||
border: 1px solid transparent;
|
||
|
||
/* Apply some smooth transition to the box-shadow and border. */
|
||
transition: box-shadow .2s ease-in-out, border .2s ease-in-out;
|
||
|
||
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */
|
||
-webkit-appearance: none;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
|
||
&:active,
|
||
&:focus {
|
||
@mixin ck-focus-ring;
|
||
@mixin ck-box-shadow var(--ck-focus-outer-shadow);
|
||
}
|
||
|
||
/* Allow icon coloring using the text "color" property. */
|
||
& .ck-button__icon {
|
||
& use,
|
||
& use * {
|
||
color: inherit;
|
||
}
|
||
}
|
||
|
||
& .ck-button__label {
|
||
/* Enable font size inheritance, which allows fluid UI scaling. */
|
||
font-size: inherit;
|
||
font-weight: inherit;
|
||
color: inherit;
|
||
cursor: inherit;
|
||
|
||
/* Must be consistent with .ck-icon's vertical align. Otherwise, buttons with and
|
||
without labels (but with icons) have different sizes in Chrome */
|
||
vertical-align: middle;
|
||
|
||
@mixin ck-dir ltr {
|
||
text-align: left;
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
text-align: right;
|
||
}
|
||
}
|
||
|
||
& .ck-button__keystroke {
|
||
color: inherit;
|
||
|
||
@mixin ck-dir ltr {
|
||
margin-left: var(--ck-spacing-large);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
margin-right: var(--ck-spacing-large);
|
||
}
|
||
|
||
opacity: .5;
|
||
}
|
||
|
||
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
|
||
&.ck-disabled {
|
||
&:active,
|
||
&:focus {
|
||
/* The disabled button should have a slightly less visible shadow when focused. */
|
||
@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);
|
||
}
|
||
|
||
& .ck-button__icon {
|
||
@mixin ck-disabled;
|
||
}
|
||
|
||
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */
|
||
& .ck-button__label {
|
||
@mixin ck-disabled;
|
||
}
|
||
|
||
& .ck-button__keystroke {
|
||
opacity: .3;
|
||
}
|
||
}
|
||
|
||
&.ck-button_with-text {
|
||
padding: var(--ck-spacing-tiny) var(--ck-spacing-standard);
|
||
|
||
/* stylelint-disable-next-line no-descending-specificity */
|
||
& .ck-button__icon {
|
||
@mixin ck-dir ltr {
|
||
margin-left: calc(-1 * var(--ck-spacing-small));
|
||
margin-right: var(--ck-spacing-small);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
margin-right: calc(-1 * var(--ck-spacing-small));
|
||
margin-left: var(--ck-spacing-small);
|
||
}
|
||
}
|
||
}
|
||
|
||
&.ck-button_with-keystroke {
|
||
/* stylelint-disable-next-line no-descending-specificity */
|
||
& .ck-button__label {
|
||
flex-grow: 1;
|
||
}
|
||
}
|
||
|
||
/* A style of the button which is currently on, e.g. its feature is active. */
|
||
&.ck-on {
|
||
@mixin ck-button-colors --ck-color-button-on;
|
||
|
||
color: var(--ck-color-button-on-color);
|
||
}
|
||
|
||
&.ck-button-save {
|
||
color: var(--ck-color-button-save);
|
||
}
|
||
|
||
&.ck-button-cancel {
|
||
color: var(--ck-color-button-cancel);
|
||
}
|
||
}
|
||
|
||
/* A style of the button which handles the primary action. */
|
||
.ck.ck-button-action,
|
||
a.ck.ck-button-action {
|
||
@mixin ck-button-colors --ck-color-button-action;
|
||
|
||
color: var(--ck-color-button-action-text);
|
||
}
|
||
|
||
.ck.ck-button-bold,
|
||
a.ck.ck-button-bold {
|
||
font-weight: bold;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements a button of given background color.
|
||
*
|
||
* @param {String} $background - Background color of the button.
|
||
* @param {String} $border - Border color of the button.
|
||
*/
|
||
@define-mixin ck-button-colors $prefix {
|
||
background: var($(prefix)-background);
|
||
|
||
&:not(.ck-disabled) {
|
||
&:hover {
|
||
background: var($(prefix)-hover-background);
|
||
}
|
||
|
||
&:active {
|
||
background: var($(prefix)-active-background);
|
||
}
|
||
}
|
||
|
||
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */
|
||
&.ck-disabled {
|
||
background: var($(prefix)-disabled-background);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A visual style of focused element's border.
|
||
*/
|
||
@define-mixin ck-focus-ring {
|
||
/* Disable native outline. */
|
||
outline: none;
|
||
border: var(--ck-focus-ring)
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A class which indicates that an element holding it is disabled.
|
||
*/
|
||
@define-mixin ck-disabled {
|
||
opacity: var(--ck-disabled-opacity);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},4391:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}@media (prefers-reduced-motion:reduce){.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{transition:none}}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eDgFA,CA5CA,yIChCC,qCD4ED,CA5CA,2DAKE,gBAuCF,CA5CA,2DAUE,iBAkCF,CA5CA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CA2BD,CAxBC,2ECxDD,eDuEC,CAfA,6LCpDA,qCAAsC,CDsDpC,8CAaF,CAfA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAUD,CAHC,uCAZD,2EAaE,eAEF,CADC,CAGD,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEpFA,kCFsFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-button.ck-switchbutton {
|
||
& .ck-button__toggle {
|
||
display: block;
|
||
|
||
& .ck-button__toggle__inner {
|
||
display: block;
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
@import "../../../mixins/_disabled.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature
|
||
of the component, floating–point numbers have been used which, for the default font size
|
||
(see: --ck-font-size-base), will generate simple integers. */
|
||
:root {
|
||
/* 34px at 13px font-size */
|
||
--ck-switch-button-toggle-width: 2.6153846154em;
|
||
/* 14px at 13px font-size */
|
||
--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);
|
||
--ck-switch-button-translation: calc(
|
||
var(--ck-switch-button-toggle-width) -
|
||
var(--ck-switch-button-toggle-inner-size) -
|
||
2px /* Border */
|
||
);
|
||
--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);
|
||
}
|
||
|
||
.ck.ck-button.ck-switchbutton {
|
||
/* Unlike a regular button, the switch button text color and background should never change.
|
||
* Changing toggle switch (background, outline) is enough to carry the information about the
|
||
* state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)
|
||
*/
|
||
&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {
|
||
color: inherit;
|
||
background: transparent;
|
||
}
|
||
|
||
& .ck-button__label {
|
||
@mixin ck-dir ltr {
|
||
/* Separate the label from the switch */
|
||
margin-right: calc(2 * var(--ck-spacing-large));
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
/* Separate the label from the switch */
|
||
margin-left: calc(2 * var(--ck-spacing-large));
|
||
}
|
||
}
|
||
|
||
& .ck-button__toggle {
|
||
@mixin ck-rounded-corners;
|
||
|
||
@mixin ck-dir ltr {
|
||
/* Make sure the toggle is always to the right as far as possible. */
|
||
margin-left: auto;
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
/* Make sure the toggle is always to the left as far as possible. */
|
||
margin-right: auto;
|
||
}
|
||
|
||
/* Apply some smooth transition to the box-shadow and border. */
|
||
/* Gently animate the background color of the toggle switch */
|
||
transition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;
|
||
border: 1px solid transparent;
|
||
width: var(--ck-switch-button-toggle-width);
|
||
background: var(--ck-color-switch-button-off-background);
|
||
|
||
& .ck-button__toggle__inner {
|
||
@mixin ck-rounded-corners {
|
||
border-radius: calc(.5 * var(--ck-border-radius));
|
||
}
|
||
|
||
width: var(--ck-switch-button-toggle-inner-size);
|
||
height: var(--ck-switch-button-toggle-inner-size);
|
||
background: var(--ck-color-switch-button-inner-background);
|
||
|
||
/* Gently animate the inner part of the toggle switch */
|
||
transition: all 300ms ease;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
}
|
||
|
||
&:hover {
|
||
background: var(--ck-color-switch-button-off-hover-background);
|
||
|
||
& .ck-button__toggle__inner {
|
||
box-shadow: var(--ck-switch-button-inner-hover-shadow);
|
||
}
|
||
}
|
||
}
|
||
|
||
&.ck-disabled .ck-button__toggle {
|
||
@mixin ck-disabled;
|
||
}
|
||
|
||
/* Overriding default .ck-button:focus styles + an outline around the toogle */
|
||
&:focus {
|
||
border-color: transparent;
|
||
outline: none;
|
||
box-shadow: none;
|
||
|
||
& .ck-button__toggle {
|
||
box-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);
|
||
outline-offset: 1px;
|
||
outline: var(--ck-focus-ring);
|
||
}
|
||
}
|
||
|
||
/* stylelint-disable-next-line no-descending-specificity */
|
||
&.ck-on {
|
||
& .ck-button__toggle {
|
||
background: var(--ck-color-switch-button-on-background);
|
||
|
||
&:hover {
|
||
background: var(--ck-color-switch-button-on-hover-background);
|
||
}
|
||
|
||
& .ck-button__toggle__inner {
|
||
/*
|
||
* Move the toggle switch to the right. It will be animated.
|
||
*/
|
||
@mixin ck-dir ltr {
|
||
transform: translateX( var( --ck-switch-button-translation ) );
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
transform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A class which indicates that an element holding it is disabled.
|
||
*/
|
||
@define-mixin ck-disabled {
|
||
opacity: var(--ck-disabled-opacity);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},25:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-list-button-padding);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/collapsible/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/collapsible/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,qCAAsC,CAFtC,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-collapsible.ck-collapsible_collapsed {
|
||
& > .ck-collapsible__children {
|
||
display: none;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));
|
||
}
|
||
|
||
.ck.ck-collapsible {
|
||
& > .ck.ck-button {
|
||
width: 100%;
|
||
font-weight: bold;
|
||
padding: var(--ck-list-button-padding);
|
||
border-radius: 0;
|
||
color: inherit;
|
||
|
||
&:focus {
|
||
background: transparent;
|
||
}
|
||
|
||
&:active, &:not(:focus), &:hover:not(:focus) {
|
||
background: transparent;
|
||
border-color: transparent;
|
||
box-shadow: none;
|
||
}
|
||
|
||
& > .ck-icon {
|
||
margin-right: var(--ck-spacing-medium);
|
||
width: var(--ck-collapsible-arrow-size);
|
||
}
|
||
}
|
||
|
||
& > .ck-collapsible__children {
|
||
padding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large);
|
||
}
|
||
|
||
&.ck-collapsible_collapsed {
|
||
& > .ck.ck-button .ck-icon {
|
||
transform: rotate(-90deg);
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7317:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{transition:box-shadow .2s ease}@media (forced-colors:none){.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}}@media (forced-colors:active){.ck.ck-color-grid__tile{height:unset;min-height:unset;min-width:unset;padding:0 var(--ck-spacing-small);width:unset}.ck.ck-color-grid__tile .ck-button__label{display:inline-block}}@media (prefers-reduced-motion:reduce){.ck.ck-color-grid__tile{transition:none}}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAKA,kBACC,YACD,CCCA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBACC,8BAkED,CC3EC,4BACC,wBDgBA,QAAS,CAJT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CAJV,oCCTA,CDgBA,8HAIC,QACD,CAEA,+DACC,gDACD,CAEA,8BACC,8FACD,CAEA,gGAEC,iGACD,CCjCD,CAZA,8BACC,wBDqDA,YAAa,CAEb,gBAAiB,CADjB,eAAgB,CAEhB,iCAAkC,CAJlC,WClDA,CDwDA,0CACC,oBACD,CCzDD,CD4DA,uCAhDD,wBAiDE,eAkBF,CAjBC,CAEA,oCACC,YAAa,CACb,gBACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAGC,0CACC,aACD,CAIF,yBACC,oCACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-color-grid {
|
||
display: grid;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";
|
||
|
||
:root {
|
||
--ck-color-grid-tile-size: 24px;
|
||
|
||
/* Not using global colors here because these may change but some colors in a pallette
|
||
* require special treatment. For instance, this ensures no matter what the UI text color is,
|
||
* the check icon will look good on the black color tile. */
|
||
--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);
|
||
}
|
||
|
||
.ck.ck-color-grid {
|
||
grid-gap: 5px;
|
||
padding: 8px;
|
||
}
|
||
|
||
.ck.ck-color-grid__tile {
|
||
transition: .2s ease box-shadow;
|
||
|
||
@mixin ck-media-default-colors {
|
||
width: var(--ck-color-grid-tile-size);
|
||
height: var(--ck-color-grid-tile-size);
|
||
min-width: var(--ck-color-grid-tile-size);
|
||
min-height: var(--ck-color-grid-tile-size);
|
||
padding: 0;
|
||
border: 0;
|
||
|
||
&.ck-on,
|
||
&:focus:not( .ck-disabled ),
|
||
&:hover:not( .ck-disabled ) {
|
||
/* Disable the default .ck-button's border ring. */
|
||
border: 0;
|
||
}
|
||
|
||
&.ck-color-selector__color-tile_bordered {
|
||
box-shadow: 0 0 0 1px var(--ck-color-base-border);
|
||
}
|
||
|
||
&.ck-on {
|
||
box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);
|
||
}
|
||
|
||
&:focus:not( .ck-disabled ),
|
||
&:hover:not( .ck-disabled ) {
|
||
box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);
|
||
}
|
||
}
|
||
|
||
/*
|
||
* In high contrast mode, the colors are replaced with text labels.
|
||
* See https://github.com/ckeditor/ckeditor5/issues/14907.
|
||
*/
|
||
@mixin ck-media-forced-colors {
|
||
width: unset;
|
||
height: unset;
|
||
min-width: unset;
|
||
min-height: unset;
|
||
padding: 0 var(--ck-spacing-small);
|
||
|
||
& .ck-button__label {
|
||
display: inline-block;
|
||
}
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
|
||
&.ck-disabled {
|
||
cursor: unset;
|
||
transition: unset;
|
||
}
|
||
|
||
& .ck.ck-icon {
|
||
display: none;
|
||
color: var(--ck-color-color-grid-check-icon);
|
||
}
|
||
|
||
&.ck-on {
|
||
& .ck.ck-icon {
|
||
display: block;
|
||
}
|
||
}
|
||
}
|
||
|
||
.ck.ck-color-grid__label {
|
||
padding: 0 var(--ck-spacing-standard);
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@define-mixin ck-media-forced-colors {
|
||
@media (forced-colors: active) {
|
||
& {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
}
|
||
|
||
@define-mixin ck-media-default-colors {
|
||
@media (forced-colors: none) {
|
||
& {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},1905:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.color-picker-hex-input {
|
||
width: max-content;
|
||
|
||
& .ck.ck-input {
|
||
min-width: unset;
|
||
}
|
||
}
|
||
|
||
.ck.ck-color-picker__row {
|
||
display: flex;
|
||
flex-direction: row;
|
||
flex-wrap: nowrap;
|
||
justify-content: space-between;
|
||
margin: var(--ck-spacing-large) 0 0;
|
||
width: unset;
|
||
|
||
& .ck.ck-labeled-field-view {
|
||
padding-top: unset;
|
||
}
|
||
|
||
& .ck.ck-input-text {
|
||
width: unset;
|
||
}
|
||
|
||
& .ck-color-picker__hash-view {
|
||
padding-top: var(--ck-spacing-tiny);
|
||
padding-right: var(--ck-spacing-medium);
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},6309:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
.ck.ck-color-selector {
|
||
/* View fragment with color grids. */
|
||
& .ck-color-grids-fragment {
|
||
& .ck-button.ck-color-selector__remove-color,
|
||
& .ck-button.ck-color-selector__color-picker {
|
||
display: flex;
|
||
align-items: center;
|
||
|
||
@mixin ck-dir rtl {
|
||
justify-content: flex-start;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* View fragment with a color picker. */
|
||
& .ck-color-picker-fragment {
|
||
& .ck.ck-color-selector_action-bar {
|
||
display: flex;
|
||
flex-direction: row;
|
||
justify-content: space-around;
|
||
|
||
& .ck-button-save,
|
||
& .ck-button-cancel {
|
||
flex: 1
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
.ck.ck-color-selector {
|
||
/* View fragment with color grids. */
|
||
& .ck-color-grids-fragment {
|
||
& .ck-button.ck-color-selector__remove-color,
|
||
& .ck-button.ck-color-selector__color-picker {
|
||
width: 100%;
|
||
}
|
||
|
||
& .ck-button.ck-color-selector__color-picker {
|
||
padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);
|
||
border-bottom-left-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
|
||
&:not(:focus) {
|
||
border-top: 1px solid var(--ck-color-base-border);
|
||
}
|
||
|
||
& .ck.ck-icon {
|
||
@mixin ck-dir ltr {
|
||
margin-right: var(--ck-spacing-standard);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
margin-left: var(--ck-spacing-standard);
|
||
}
|
||
}
|
||
}
|
||
|
||
& label.ck.ck-color-grid__label {
|
||
font-weight: unset;
|
||
}
|
||
}
|
||
|
||
/* View fragment with a color picker. */
|
||
& .ck-color-picker-fragment {
|
||
& .ck.ck-color-picker {
|
||
padding: 8px;
|
||
|
||
& .hex-color-picker {
|
||
height: 100px;
|
||
min-width: 180px;
|
||
|
||
&::part(saturation) {
|
||
border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;
|
||
}
|
||
|
||
&::part(hue) {
|
||
border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);
|
||
}
|
||
|
||
&::part(saturation-pointer),
|
||
&::part(hue-pointer) {
|
||
width: 15px;
|
||
height: 15px;
|
||
}
|
||
}
|
||
}
|
||
|
||
& .ck.ck-color-selector_action-bar {
|
||
padding: 0 8px 8px;
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},9819:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-dialog-overlay{bottom:0;left:0;overscroll-behavior:none;position:fixed;right:0;top:0;user-select:none}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent{animation:none;background:none;pointer-events:none}.ck.ck-dialog{overscroll-behavior:none;position:absolute;width:fit-content}.ck.ck-dialog .ck.ck-form__header{flex-shrink:0}.ck.ck-dialog .ck.ck-form__header .ck-form__header__label{cursor:grab}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent .ck.ck-dialog{pointer-events:all}:root{--ck-dialog-overlay-background-color:rgba(0,0,0,.5);--ck-dialog-drop-shadow:0px 0px 6px 2px rgba(0,0,0,.15);--ck-dialog-max-width:100vw;--ck-dialog-max-height:90vh;--ck-color-dialog-background:var(--ck-color-base-background);--ck-color-dialog-form-header-border:var(--ck-color-base-border)}.ck.ck-dialog-overlay{animation:ck-dialog-fade-in .3s;background:var(--ck-dialog-overlay-background-color);z-index:var(--ck-z-dialog)}.ck.ck-dialog{border-radius:0}.ck-rounded-corners .ck.ck-dialog,.ck.ck-dialog.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dialog{box-shadow:var(--ck-drop-shadow),0 0;--ck-drop-shadow:var(--ck-dialog-drop-shadow);background:var(--ck-color-dialog-background);border:1px solid var(--ck-color-base-border);max-height:var(--ck-dialog-max-height);max-width:var(--ck-dialog-max-width)}.ck.ck-dialog .ck.ck-form__header{border-bottom:1px solid var(--ck-color-dialog-form-header-border)}@keyframes ck-dialog-fade-in{0%{background:transparent}to{background:var(--ck-dialog-overlay-background-color)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,sBAKC,QAAS,CACT,MAAO,CAJP,wBAAyB,CAEzB,cAAe,CAGf,OAAQ,CACR,KAAM,CAPN,gBAcD,CALC,qDAEC,cAAe,CACf,eAAgB,CAFhB,mBAGD,CAGD,cACC,wBAAyB,CAEzB,iBAAkB,CADlB,iBAcD,CAXC,kCACC,aAKD,CAHC,0DACC,WACD,CAVF,mEAcE,kBAEF,CC7BA,MACC,mDAA2D,CAC3D,uDAA8D,CAC9D,2BAA4B,CAC5B,2BAA4B,CAC5B,4DAA6D,CAC7D,gEACD,CAEA,sBACC,+BAAgC,CAChC,oDAAqD,CACrD,0BACD,CAEA,cCbC,eD2BD,CAdA,mECTE,qCDuBF,CAdA,cEfC,oCAA8B,CFmB9B,6CAA8C,CAE9C,4CAA6C,CAG7C,4CAA6C,CAF7C,sCAAuC,CACvC,oCAMD,CAHC,kCACC,iEACD,CAGD,6BACC,GACC,sBACD,CAEA,GACC,oDACD,CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-dialog-overlay {
|
||
user-select: none;
|
||
overscroll-behavior: none;
|
||
|
||
position: fixed;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
|
||
&.ck-dialog-overlay__transparent {
|
||
pointer-events: none;
|
||
animation: none;
|
||
background: none;
|
||
}
|
||
}
|
||
|
||
.ck.ck-dialog {
|
||
overscroll-behavior: none;
|
||
width: fit-content;
|
||
position: absolute;
|
||
|
||
& .ck.ck-form__header {
|
||
flex-shrink: 0;
|
||
|
||
& .ck-form__header__label {
|
||
cursor: grab;
|
||
}
|
||
}
|
||
|
||
@nest .ck.ck-dialog-overlay.ck-dialog-overlay__transparent & {
|
||
pointer-events: all;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
@import "../../../mixins/_shadow.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
||
|
||
:root {
|
||
--ck-dialog-overlay-background-color: hsla( 0, 0%, 0%, .5 );
|
||
--ck-dialog-drop-shadow: 0px 0px 6px 2px hsl(0deg 0% 0% / 15%);
|
||
--ck-dialog-max-width: 100vw;
|
||
--ck-dialog-max-height: 90vh;
|
||
--ck-color-dialog-background: var(--ck-color-base-background);
|
||
--ck-color-dialog-form-header-border: var(--ck-color-base-border);
|
||
}
|
||
|
||
.ck.ck-dialog-overlay {
|
||
animation: ck-dialog-fade-in .3s;
|
||
background: var(--ck-dialog-overlay-background-color);
|
||
z-index: var(--ck-z-dialog);
|
||
}
|
||
|
||
.ck.ck-dialog {
|
||
@mixin ck-rounded-corners;
|
||
@mixin ck-drop-shadow;
|
||
|
||
--ck-drop-shadow: var(--ck-dialog-drop-shadow);
|
||
|
||
background: var(--ck-color-dialog-background);
|
||
max-height: var(--ck-dialog-max-height);
|
||
max-width: var(--ck-dialog-max-width);
|
||
border: 1px solid var(--ck-color-base-border);
|
||
|
||
& .ck.ck-form__header {
|
||
border-bottom: 1px solid var(--ck-color-dialog-form-header-border);
|
||
}
|
||
}
|
||
|
||
@keyframes ck-dialog-fade-in {
|
||
0% {
|
||
background: hsla( 0, 0%, 0%, 0 );
|
||
}
|
||
|
||
100% {
|
||
background: var(--ck-dialog-overlay-background-color);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},9822:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-dialog .ck.ck-dialog__actions{display:flex;justify-content:flex-end;padding:var(--ck-spacing-large)}.ck.ck-dialog .ck.ck-dialog__actions>*+*{margin-left:var(--ck-spacing-large)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dialog/dialogactions.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialogactions.css"],names:[],mappings:"AAMC,qCACC,YAAa,CACb,wBAAyB,CCDzB,+BDED,CCAC,yCACC,mCACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-dialog {
|
||
& .ck.ck-dialog__actions {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-dialog {
|
||
& .ck.ck-dialog__actions {
|
||
padding: var(--ck-spacing-large);
|
||
|
||
& > * + * {
|
||
margin-left: var(--ck-spacing-large);
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8149:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-dropdown-max-width: 75vw;
|
||
}
|
||
|
||
.ck.ck-dropdown {
|
||
display: inline-block;
|
||
position: relative;
|
||
|
||
& .ck-dropdown__arrow {
|
||
pointer-events: none;
|
||
z-index: var(--ck-z-default);
|
||
}
|
||
|
||
/* Dropdown button should span horizontally, e.g. in vertical toolbars */
|
||
& .ck-button.ck-dropdown__button {
|
||
width: 100%;
|
||
}
|
||
|
||
& .ck-dropdown__panel {
|
||
display: none;
|
||
z-index: var(--ck-z-panel);
|
||
max-width: var(--ck-dropdown-max-width);
|
||
|
||
position: absolute;
|
||
|
||
&.ck-dropdown__panel-visible {
|
||
display: inline-block;
|
||
}
|
||
|
||
&.ck-dropdown__panel_ne,
|
||
&.ck-dropdown__panel_nw,
|
||
&.ck-dropdown__panel_n,
|
||
&.ck-dropdown__panel_nmw,
|
||
&.ck-dropdown__panel_nme {
|
||
bottom: 100%;
|
||
}
|
||
|
||
&.ck-dropdown__panel_se,
|
||
&.ck-dropdown__panel_sw,
|
||
&.ck-dropdown__panel_smw,
|
||
&.ck-dropdown__panel_sme,
|
||
&.ck-dropdown__panel_s {
|
||
/*
|
||
* Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.
|
||
* See https://github.com/ckeditor/ckeditor5/issues/1053.
|
||
*/
|
||
top: 100%;
|
||
bottom: auto;
|
||
}
|
||
|
||
&.ck-dropdown__panel_ne,
|
||
&.ck-dropdown__panel_se {
|
||
left: 0px;
|
||
}
|
||
|
||
&.ck-dropdown__panel_nw,
|
||
&.ck-dropdown__panel_sw {
|
||
right: 0px;
|
||
}
|
||
|
||
&.ck-dropdown__panel_s,
|
||
&.ck-dropdown__panel_n {
|
||
/* Positioning panels relative to the center of the button */
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
}
|
||
|
||
&.ck-dropdown__panel_nmw,
|
||
&.ck-dropdown__panel_smw {
|
||
/* Positioning panels relative to the middle-west of the button */
|
||
left: 75%;
|
||
transform: translateX(-75%);
|
||
}
|
||
|
||
&.ck-dropdown__panel_nme,
|
||
&.ck-dropdown__panel_sme {
|
||
/* Positioning panels relative to the middle-east of the button */
|
||
left: 25%;
|
||
transform: translateX(-25%);
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.
|
||
* See https://github.com/ckeditor/ckeditor5/issues/7874
|
||
*/
|
||
.ck.ck-toolbar .ck-dropdown__panel {
|
||
z-index: calc( var(--ck-z-panel) + 1 );
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
@import "../../../mixins/_disabled.css";
|
||
@import "../../../mixins/_shadow.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
:root {
|
||
--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));
|
||
}
|
||
|
||
.ck.ck-dropdown {
|
||
/* Enable font size inheritance, which allows fluid UI scaling. */
|
||
font-size: inherit;
|
||
|
||
& .ck-dropdown__arrow {
|
||
width: var(--ck-dropdown-arrow-size);
|
||
}
|
||
|
||
@mixin ck-dir ltr {
|
||
& .ck-dropdown__arrow {
|
||
right: var(--ck-spacing-standard);
|
||
|
||
/* A space to accommodate the triangle. */
|
||
margin-left: var(--ck-spacing-standard);
|
||
}
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
& .ck-dropdown__arrow {
|
||
left: var(--ck-spacing-standard);
|
||
|
||
/* A space to accommodate the triangle. */
|
||
margin-right: var(--ck-spacing-small);
|
||
}
|
||
}
|
||
|
||
&.ck-disabled .ck-dropdown__arrow {
|
||
@mixin ck-disabled;
|
||
}
|
||
|
||
& .ck-button.ck-dropdown__button {
|
||
@mixin ck-dir ltr {
|
||
&:not(.ck-button_with-text) {
|
||
/* Make sure dropdowns with just an icon have the right inner spacing */
|
||
padding-left: var(--ck-spacing-small);
|
||
}
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
&:not(.ck-button_with-text) {
|
||
/* Make sure dropdowns with just an icon have the right inner spacing */
|
||
padding-right: var(--ck-spacing-small);
|
||
}
|
||
}
|
||
|
||
/* #23 */
|
||
& .ck-button__label {
|
||
width: 7em;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
|
||
&.ck-disabled .ck-button__label {
|
||
@mixin ck-disabled;
|
||
}
|
||
|
||
/* https://github.com/ckeditor/ckeditor5/issues/816 */
|
||
&.ck-on {
|
||
border-bottom-left-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
|
||
&.ck-dropdown__button_label-width_auto .ck-button__label {
|
||
width: auto;
|
||
}
|
||
|
||
/* https://github.com/ckeditor/ckeditor5/issues/8699 */
|
||
&.ck-off:active,
|
||
&.ck-on:active {
|
||
box-shadow: none;
|
||
|
||
&:focus {
|
||
@mixin ck-box-shadow var(--ck-focus-outer-shadow);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.ck.ck-dropdown__panel {
|
||
@mixin ck-rounded-corners;
|
||
@mixin ck-drop-shadow;
|
||
|
||
background: var(--ck-color-dropdown-panel-background);
|
||
border: 1px solid var(--ck-color-dropdown-panel-border);
|
||
bottom: 0;
|
||
|
||
/* Make sure the panel is at least as wide as the drop-down's button. */
|
||
min-width: 100%;
|
||
|
||
/* Disabled corner border radius to be consistent with the .dropdown__button
|
||
https://github.com/ckeditor/ckeditor5/issues/816 */
|
||
&.ck-dropdown__panel_se {
|
||
border-top-left-radius: 0;
|
||
}
|
||
|
||
&.ck-dropdown__panel_sw {
|
||
border-top-right-radius: 0;
|
||
}
|
||
|
||
&.ck-dropdown__panel_ne {
|
||
border-bottom-left-radius: 0;
|
||
}
|
||
|
||
&.ck-dropdown__panel_nw {
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
|
||
&:focus {
|
||
outline: none;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A class which indicates that an element holding it is disabled.
|
||
*/
|
||
@define-mixin ck-disabled {
|
||
opacity: var(--ck-disabled-opacity);
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},3629:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-dropdown>.ck-dropdown__panel>.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
|
||
.ck.ck-dropdown > .ck-dropdown__panel > .ck-list {
|
||
/* Disabled radius of top-left border to be consistent with .dropdown__button
|
||
https://github.com/ckeditor/ckeditor5/issues/816 */
|
||
@mixin ck-rounded-corners {
|
||
border-top-left-radius: 0;
|
||
}
|
||
|
||
/* Make sure the button belonging to the first/last child of the list goes well with the
|
||
border radius of the entire panel. */
|
||
& .ck-list__item {
|
||
&:first-child > .ck-button {
|
||
@mixin ck-rounded-corners {
|
||
border-top-left-radius: 0;
|
||
border-bottom-left-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
}
|
||
|
||
&:last-child > .ck-button {
|
||
@mixin ck-rounded-corners {
|
||
border-top-left-radius: 0;
|
||
border-top-right-radius: 0;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},1792:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-splitbutton {
|
||
/* Enable font size inheritance, which allows fluid UI scaling. */
|
||
font-size: inherit;
|
||
|
||
& .ck-splitbutton__action:focus {
|
||
z-index: calc(var(--ck-z-default) + 1);
|
||
}
|
||
}
|
||
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
|
||
:root {
|
||
--ck-color-split-button-hover-background: hsl(0, 0%, 92%);
|
||
--ck-color-split-button-hover-border: hsl(0, 0%, 70%);
|
||
}
|
||
|
||
.ck.ck-splitbutton {
|
||
/*
|
||
* Note: ck-rounded and ck-dir mixins don't go together (because they both use @nest).
|
||
*/
|
||
&:hover > .ck-splitbutton__action,
|
||
&.ck-splitbutton_open > .ck-splitbutton__action {
|
||
@nest [dir="ltr"] & {
|
||
/* Don't round the action button on the right side */
|
||
border-top-right-radius: unset;
|
||
border-bottom-right-radius: unset;
|
||
}
|
||
|
||
@nest [dir="rtl"] & {
|
||
/* Don't round the action button on the left side */
|
||
border-top-left-radius: unset;
|
||
border-bottom-left-radius: unset;
|
||
}
|
||
}
|
||
|
||
& > .ck-splitbutton__arrow {
|
||
/* It's a text-less button and since the icon is positioned absolutely in such situation,
|
||
it must get some arbitrary min-width. */
|
||
min-width: unset;
|
||
|
||
@nest [dir="ltr"] & {
|
||
/* Don't round the arrow button on the left side */
|
||
border-top-left-radius: unset;
|
||
border-bottom-left-radius: unset;
|
||
}
|
||
|
||
@nest [dir="rtl"] & {
|
||
/* Don't round the arrow button on the right side */
|
||
border-top-right-radius: unset;
|
||
border-bottom-right-radius: unset;
|
||
}
|
||
|
||
& svg {
|
||
width: var(--ck-dropdown-arrow-size);
|
||
}
|
||
}
|
||
|
||
/* Make sure the divider stretches 100% height of the button
|
||
https://github.com/ckeditor/ckeditor5/issues/10936 */
|
||
& > .ck-splitbutton__arrow:not(:focus) {
|
||
border-top-width: 0px;
|
||
border-bottom-width: 0px;
|
||
}
|
||
|
||
/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling
|
||
as a whole. The background of both buttons should stand out and there should be a visual
|
||
separation between both buttons. */
|
||
&.ck-splitbutton_open,
|
||
&:hover {
|
||
/* When the split button hovered as a whole, not as individual buttons. */
|
||
& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {
|
||
background: var(--ck-color-split-button-hover-background);
|
||
}
|
||
|
||
/* Splitbutton separator needs to be set with the ::after pseudoselector
|
||
to display properly the borders on focus */
|
||
& > .ck-splitbutton__arrow:not(.ck-disabled)::after {
|
||
content: '';
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 100%;
|
||
background-color: var(--ck-color-split-button-hover-border);
|
||
}
|
||
|
||
/* Make sure the divider between the buttons looks fine when the button is focused */
|
||
& > .ck-splitbutton__arrow:focus::after {
|
||
--ck-color-split-button-hover-border: var(--ck-color-focus-border);
|
||
}
|
||
|
||
@nest [dir="ltr"] & {
|
||
& > .ck-splitbutton__arrow:not(.ck-disabled)::after {
|
||
left: -1px;
|
||
}
|
||
}
|
||
|
||
@nest [dir="rtl"] & {
|
||
& > .ck-splitbutton__arrow:not(.ck-disabled)::after {
|
||
right: -1px;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Don't round the bottom left and right corners of the buttons when "open"
|
||
https://github.com/ckeditor/ckeditor5/issues/816 */
|
||
&.ck-splitbutton_open {
|
||
@mixin ck-rounded-corners {
|
||
& > .ck-splitbutton__action {
|
||
border-bottom-left-radius: 0;
|
||
}
|
||
|
||
& > .ck-splitbutton__arrow {
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},1666:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-toolbar-dropdown-max-width: 60vw;
|
||
}
|
||
|
||
.ck.ck-toolbar-dropdown > .ck-dropdown__panel {
|
||
/* https://github.com/ckeditor/ckeditor5/issues/5586 */
|
||
width: max-content;
|
||
max-width: var(--ck-toolbar-dropdown-max-width);
|
||
|
||
& .ck-button {
|
||
&:focus {
|
||
z-index: calc(var(--ck-z-default) + 1);
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-toolbar-dropdown .ck-toolbar {
|
||
border: 0;
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8527:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-accessibility-help-dialog-max-width:600px;--ck-accessibility-help-dialog-max-height:400px;--ck-accessibility-help-dialog-border-color:#ccced1;--ck-accessibility-help-dialog-code-background-color:#ededed;--ck-accessibility-help-dialog-kbd-shadow-color:#9c9c9c}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content{border:1px solid transparent;max-height:var(--ck-accessibility-help-dialog-max-height);max-width:var(--ck-accessibility-help-dialog-max-width);overflow:auto;padding:var(--ck-spacing-large);user-select:text}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content{*{white-space:normal}}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content .ck-label{display:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3{font-size:1.2em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4{font-size:1em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content p,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content table{margin:1em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl{border-bottom:none;border-top:1px solid var(--ck-accessibility-help-dialog-border-color);display:grid;grid-template-columns:2fr 1fr}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{border-bottom:1px solid var(--ck-accessibility-help-dialog-border-color);padding:.4em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{grid-column-start:1}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd{grid-column-start:2;text-align:right}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{background:var(--ck-accessibility-help-dialog-code-background-color);border-radius:2px;display:inline-block;font-size:.9em;line-height:1;padding:.4em;text-align:center;vertical-align:middle}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code{font-family:monospace}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{box-shadow:0 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);margin:0 1px;min-width:1.8em}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd+kbd{margin-left:2px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/accessibilityhelp.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAQA,MACC,8CAA+C,CAC/C,+CAAgD,CAChD,mDAA8D,CAC9D,4DAAyE,CACzE,uDACD,CAEA,wEAOC,4BAA6B,CAJ7B,yDAA0D,CAD1D,uDAAwD,CAExD,aAAc,CAHd,+BAAgC,CAIhC,gBAgFD,CA5EC,8ECdA,2BAA2B,CCF3B,2CAA8B,CDC9B,YDkBA,CAZD,wEAcC,EACC,kBACD,CAqED,CAlEC,kFACC,YACD,CAEA,2EAEC,eAAgB,CADhB,eAED,CAEA,2EAEC,aAAc,CADd,eAED,CAEA,8SAIC,YACD,CAEA,2EAIC,kBAAmB,CADnB,qEAAsE,CAFtE,YAAa,CACb,6BAiBD,CAbC,4JACC,wEAAyE,CACzE,cACD,CAEA,8EACC,mBACD,CAEA,8EACC,mBAAoB,CACpB,gBACD,CAGD,yJAEC,oEAAqE,CAIrE,iBAAkB,CALlB,oBAAqB,CAOrB,cAAe,CAHf,aAAc,CAFd,YAAa,CAIb,iBAAkB,CAHlB,qBAKD,CAEA,6EACC,qBACD,CAEA,4EAEC,yEAA4E,CAC5E,YAAa,CAFb,eAOD,CAHC,gFACC,eACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_focus.css";
|
||
@import "../../../mixins/_shadow.css";
|
||
|
||
:root {
|
||
--ck-accessibility-help-dialog-max-width: 600px;
|
||
--ck-accessibility-help-dialog-max-height: 400px;
|
||
--ck-accessibility-help-dialog-border-color: hsl(220, 6%, 81%);
|
||
--ck-accessibility-help-dialog-code-background-color: hsl(0deg 0% 92.94%);
|
||
--ck-accessibility-help-dialog-kbd-shadow-color: hsl(0deg 0% 61%);
|
||
}
|
||
|
||
.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content {
|
||
padding: var(--ck-spacing-large);
|
||
max-width: var(--ck-accessibility-help-dialog-max-width);
|
||
max-height: var(--ck-accessibility-help-dialog-max-height);
|
||
overflow: auto;
|
||
user-select: text;
|
||
|
||
border: 1px solid transparent;
|
||
|
||
&:focus {
|
||
@mixin ck-focus-ring;
|
||
@mixin ck-box-shadow var(--ck-focus-outer-shadow);
|
||
}
|
||
|
||
* {
|
||
white-space: normal;
|
||
}
|
||
|
||
/* Hide the main label of the content container. */
|
||
& .ck-label {
|
||
display: none;
|
||
}
|
||
|
||
& h3 {
|
||
font-weight: bold;
|
||
font-size: 1.2em;
|
||
}
|
||
|
||
& h4 {
|
||
font-weight: bold;
|
||
font-size: 1em;
|
||
}
|
||
|
||
& p,
|
||
& h3,
|
||
& h4,
|
||
& table {
|
||
margin: 1em 0;
|
||
}
|
||
|
||
& dl {
|
||
display: grid;
|
||
grid-template-columns: 2fr 1fr;
|
||
border-top: 1px solid var(--ck-accessibility-help-dialog-border-color);
|
||
border-bottom: none;
|
||
|
||
& dt, & dd {
|
||
border-bottom: 1px solid var(--ck-accessibility-help-dialog-border-color);
|
||
padding: .4em 0;
|
||
}
|
||
|
||
& dt {
|
||
grid-column-start: 1;
|
||
}
|
||
|
||
& dd {
|
||
grid-column-start: 2;
|
||
text-align: right;
|
||
}
|
||
}
|
||
|
||
& kbd, & code {
|
||
display: inline-block;
|
||
background: var(--ck-accessibility-help-dialog-code-background-color);
|
||
padding: .4em;
|
||
vertical-align: middle;
|
||
line-height: 1;
|
||
border-radius: 2px;
|
||
text-align: center;
|
||
font-size: .9em;
|
||
}
|
||
|
||
& code {
|
||
font-family: monospace;
|
||
}
|
||
|
||
& kbd {
|
||
min-width: 1.8em;
|
||
box-shadow: 0px 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);
|
||
margin: 0 1px;
|
||
|
||
& + kbd {
|
||
margin-left: 2px;
|
||
}
|
||
}
|
||
}
|
||
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A visual style of focused element's border.
|
||
*/
|
||
@define-mixin ck-focus-ring {
|
||
/* Disable native outline. */
|
||
outline: none;
|
||
border: var(--ck-focus-ring)
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},1185:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
@import "../../../mixins/_disabled.css";
|
||
@import "../../../mixins/_shadow.css";
|
||
@import "../../../mixins/_focus.css";
|
||
@import "../../mixins/_button.css";
|
||
|
||
:root {
|
||
--ck-color-editable-blur-selection: hsl(0, 0%, 85%);
|
||
}
|
||
|
||
.ck.ck-editor__editable:not(.ck-editor__nested-editable) {
|
||
@mixin ck-rounded-corners;
|
||
|
||
&.ck-focused {
|
||
@mixin ck-focus-ring;
|
||
@mixin ck-box-shadow var(--ck-inner-shadow);
|
||
}
|
||
}
|
||
|
||
.ck.ck-editor__editable_inline {
|
||
overflow: auto;
|
||
padding: 0 var(--ck-spacing-standard);
|
||
border: 1px solid transparent;
|
||
|
||
&[dir="ltr"] {
|
||
text-align: left;
|
||
}
|
||
|
||
&[dir="rtl"] {
|
||
text-align: right;
|
||
}
|
||
|
||
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */
|
||
& > *:first-child {
|
||
margin-top: var(--ck-spacing-large);
|
||
}
|
||
|
||
/* https://github.com/ckeditor/ckeditor5/issues/847 */
|
||
& > *:last-child {
|
||
/*
|
||
* This value should match with the default margins of the block elements (like .media or .image)
|
||
* to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).
|
||
*/
|
||
margin-bottom: var(--ck-spacing-large);
|
||
}
|
||
|
||
/* https://github.com/ckeditor/ckeditor5/issues/6517 */
|
||
&.ck-blurred ::selection {
|
||
background: var(--ck-color-editable-blur-selection);
|
||
}
|
||
}
|
||
|
||
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */
|
||
.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {
|
||
&::after {
|
||
border-bottom-color: var(--ck-color-panel-background);
|
||
}
|
||
}
|
||
|
||
.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {
|
||
&::after {
|
||
border-top-color: var(--ck-color-panel-background);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A visual style of focused element's border.
|
||
*/
|
||
@define-mixin ck-focus-ring {
|
||
/* Disable native outline. */
|
||
outline: none;
|
||
border: var(--ck-focus-ring)
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7913:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:44px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[dir=ltr] .ck.ck-form__header>.ck-icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-form__header>.ck-icon{margin-left:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{--ck-font-size-base:15px;font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAmBD,CAdC,uCAEE,qCAMF,CARA,uCAME,oCAEF,CAEA,4CACC,wBAAyB,CACzB,eACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-form__header {
|
||
display: flex;
|
||
flex-direction: row;
|
||
flex-wrap: nowrap;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
|
||
& h2.ck-form__header__label {
|
||
flex-grow: 1;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
:root {
|
||
--ck-form-header-height: 44px;
|
||
}
|
||
|
||
.ck.ck-form__header {
|
||
padding: var(--ck-spacing-small) var(--ck-spacing-large);
|
||
height: var(--ck-form-header-height);
|
||
line-height: var(--ck-form-header-height);
|
||
border-bottom: 1px solid var(--ck-color-base-border);
|
||
|
||
& > .ck-icon {
|
||
@mixin ck-dir ltr {
|
||
margin-right: var(--ck-spacing-medium);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
margin-left: var(--ck-spacing-medium);
|
||
}
|
||
}
|
||
|
||
& .ck-form__header__label {
|
||
--ck-font-size-base: 15px;
|
||
font-weight: bold;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},9529:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-highlighted-text mark {
|
||
background: var(--ck-color-highlight-background);
|
||
vertical-align: initial;
|
||
font-weight: inherit;
|
||
line-height: inherit;
|
||
font-size: inherit;
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7621:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-icon {
|
||
vertical-align: middle;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));
|
||
}
|
||
|
||
.ck.ck-icon {
|
||
width: var(--ck-icon-size);
|
||
height: var(--ck-icon-size);
|
||
|
||
/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */
|
||
font-size: .8333350694em;
|
||
|
||
/* Inherit cursor style (#5). */
|
||
cursor: inherit;
|
||
|
||
/* This will prevent blurry icons on Firefox. See #340. */
|
||
will-change: transform;
|
||
|
||
& * {
|
||
/* Inherit cursor style (#5). */
|
||
cursor: inherit;
|
||
}
|
||
|
||
/* Allows dynamic coloring of an icon by inheriting its color from the parent. */
|
||
&.ck-icon_inherit-color {
|
||
color: inherit;
|
||
|
||
& * {
|
||
color: inherit;
|
||
|
||
&:not([fill]) {
|
||
/* Needed by FF. */
|
||
fill: currentColor;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},253:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}@media (prefers-reduced-motion:reduce){.ck.ck-input{transition:none}}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}@media (prefers-reduced-motion:reduce){.ck.ck-input.ck-error{animation:none}}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eDmDD,CA9CA,iECDE,qCD+CF,CA9CA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DAkCD,CAhCC,uCAdD,aAeE,eA+BF,CA9BC,CAEA,mBEvBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YF2BA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BGnCD,oDHsCC,CAGD,sBAEC,sCAAuC,CADvC,+CAUD,CAPC,uCAJD,sBAKE,cAMF,CALC,CAEA,4BGjDD,iDHmDC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
@import "../../../mixins/_focus.css";
|
||
@import "../../../mixins/_shadow.css";
|
||
|
||
:root {
|
||
--ck-input-width: 18em;
|
||
|
||
/* Backward compatibility. */
|
||
--ck-input-text-width: var(--ck-input-width);
|
||
}
|
||
|
||
.ck.ck-input {
|
||
@mixin ck-rounded-corners;
|
||
|
||
background: var(--ck-color-input-background);
|
||
border: 1px solid var(--ck-color-input-border);
|
||
padding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);
|
||
min-width: var(--ck-input-width);
|
||
|
||
/* This is important to stay of the same height as surrounding buttons */
|
||
min-height: var(--ck-ui-component-min-height);
|
||
|
||
/* Apply some smooth transition to the box-shadow and border. */
|
||
transition: box-shadow .1s ease-in-out, border .1s ease-in-out;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
|
||
&:focus {
|
||
@mixin ck-focus-ring;
|
||
@mixin ck-box-shadow var(--ck-focus-outer-shadow);
|
||
}
|
||
|
||
&[readonly] {
|
||
border: 1px solid var(--ck-color-input-disabled-border);
|
||
background: var(--ck-color-input-disabled-background);
|
||
color: var(--ck-color-input-disabled-text);
|
||
|
||
&:focus {
|
||
/* The read-only input should have a slightly less visible shadow when focused. */
|
||
@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);
|
||
}
|
||
}
|
||
|
||
&.ck-error {
|
||
border-color: var(--ck-color-input-error-border);
|
||
animation: ck-input-shake .3s ease both;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
animation: none;
|
||
}
|
||
|
||
&:focus {
|
||
@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);
|
||
}
|
||
}
|
||
}
|
||
|
||
@keyframes ck-input-shake {
|
||
20% {
|
||
transform: translateX(-2px);
|
||
}
|
||
|
||
40% {
|
||
transform: translateX(2px);
|
||
}
|
||
|
||
60% {
|
||
transform: translateX(-1px);
|
||
}
|
||
|
||
80% {
|
||
transform: translateX(1px);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A visual style of focused element's border.
|
||
*/
|
||
@define-mixin ck-focus-ring {
|
||
/* Disable native outline. */
|
||
outline: none;
|
||
border: var(--ck-focus-ring)
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7801:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-label {
|
||
display: block;
|
||
}
|
||
|
||
.ck.ck-voice-label {
|
||
display: none;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-label {
|
||
font-weight: bold;
|
||
}
|
||
`],sourceRoot:""}]);const y=b},4962:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0;transform:translate(calc(var(--ck-spacing-medium)*-1),-6px) scale(.75);transform-origin:100% 0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}@media (prefers-reduced-motion:reduce){.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transition:none}}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eDmHD,CA9GA,2FCDE,qCD+GF,CA3GC,mEACC,UAwCD,CAtCC,gFACC,KAoCD,CArCA,0FAIE,MAAS,CAGT,6DAA+D,CAF/D,oBAgCF,CArCA,0FAWE,OAAU,CAEV,sEAA0E,CAD1E,uBAyBF,CArCA,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAKvB,+JAQD,CAHC,uCAlCD,gFAmCE,eAEF,CADC,CASD,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,2XAGE,+HAYF,CAfA,2XAOE,wIAQF,CAfA,uWAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-labeled-field-view {
|
||
& > .ck.ck-labeled-field-view__input-wrapper {
|
||
display: flex;
|
||
position: relative;
|
||
}
|
||
|
||
& .ck.ck-label {
|
||
display: block;
|
||
position: absolute;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
@import "../../../mixins/_rounded.css";
|
||
|
||
:root {
|
||
--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);
|
||
--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);
|
||
--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);
|
||
--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));
|
||
--ck-color-labeled-field-label-background: var(--ck-color-base-background);
|
||
}
|
||
|
||
.ck.ck-labeled-field-view {
|
||
@mixin ck-rounded-corners;
|
||
|
||
& > .ck.ck-labeled-field-view__input-wrapper {
|
||
width: 100%;
|
||
|
||
& > .ck.ck-label {
|
||
top: 0px;
|
||
|
||
@mixin ck-dir ltr {
|
||
left: 0px;
|
||
transform-origin: 0 0;
|
||
/* By default, display the label scaled down above the field. */
|
||
transform: translate(var(--ck-spacing-medium), -6px) scale(.75);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
right: 0px;
|
||
transform-origin: 100% 0;
|
||
transform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);
|
||
}
|
||
|
||
pointer-events: none;
|
||
|
||
background: var(--ck-color-labeled-field-label-background);
|
||
padding: 0 calc(.5 * var(--ck-font-size-tiny));
|
||
line-height: initial;
|
||
font-weight: normal;
|
||
|
||
/* Prevent overflow when the label is longer than the input */
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
|
||
max-width: 100%;
|
||
|
||
transition:
|
||
transform var(--ck-labeled-field-view-transition),
|
||
padding var(--ck-labeled-field-view-transition),
|
||
background var(--ck-labeled-field-view-transition);
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
&.ck-error {
|
||
& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
|
||
color: var(--ck-color-base-error);
|
||
}
|
||
|
||
& .ck-input:not([readonly]) + .ck.ck-label {
|
||
color: var(--ck-color-base-error);
|
||
}
|
||
}
|
||
|
||
& .ck-labeled-field-view__status {
|
||
font-size: var(--ck-font-size-small);
|
||
margin-top: var(--ck-spacing-small);
|
||
|
||
/* Let the info wrap to the next line to avoid stretching the layout horizontally.
|
||
The status could be very long. */
|
||
white-space: normal;
|
||
|
||
&.ck-labeled-field-view__status_error {
|
||
color: var(--ck-color-base-error);
|
||
}
|
||
}
|
||
|
||
/* Disabled fields and fields that have no focus should fade out. */
|
||
&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,
|
||
&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
|
||
color: var(--ck-color-input-disabled-text);
|
||
}
|
||
|
||
/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */
|
||
/* stylelint-disable-next-line no-descending-specificity */
|
||
&.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,
|
||
&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
|
||
@mixin ck-dir ltr {
|
||
transform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
transform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);
|
||
}
|
||
|
||
/* Compensate for the default translate position. */
|
||
max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));
|
||
|
||
background: transparent;
|
||
padding: 0;
|
||
}
|
||
|
||
/*------ DropdownView integration ----------------------------------------------------------------------------------- */
|
||
|
||
/* Make sure dropdown' background color in any of dropdown's state does not collide with labeled field. */
|
||
& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {
|
||
background: transparent;
|
||
}
|
||
|
||
/* When the dropdown is "empty", the labeled field label replaces its label. */
|
||
&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {
|
||
opacity: 0;
|
||
}
|
||
|
||
/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */
|
||
&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {
|
||
max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},5199:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}:root{--ck-list-button-padding:calc(var(--ck-line-height-base)*0.11*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item>.ck-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list__item>.ck-button{text-align:left}[dir=rtl] .ck.ck-list__item>.ck-button{text-align:right}.ck.ck-list__item>.ck-button{padding:var(--ck-list-button-padding)}.ck.ck-list__item>.ck-button:active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item>.ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item>.ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item>.ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item>.ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item>.ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>.ck-label{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEdD,MACC,qJAGD,CAEA,YCLC,eDUD,CALA,+DCDE,qCDMF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAGC,eAAgB,CAFhB,gBAAiB,CACjB,UAwCD,CA1CA,uCAME,eAoCF,CA1CA,uCAUE,gBAgCF,CA1CA,6BAgBC,qCA0BD,CAxBC,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,mCACC,cAAe,CACf,eAAiB,CACjB,oFACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../mixins/_unselectable.css";
|
||
|
||
.ck.ck-list {
|
||
@mixin ck-unselectable;
|
||
|
||
display: flex;
|
||
flex-direction: column;
|
||
|
||
& .ck-list__item,
|
||
& .ck-list__separator {
|
||
display: block;
|
||
}
|
||
|
||
/* Make sure that whatever child of the list item gets focus, it remains on the
|
||
top. Thanks to that, styles like box-shadow, outline, etc. are not masked by
|
||
adjacent list items. */
|
||
& .ck-list__item > *:focus {
|
||
position: relative;
|
||
z-index: var(--ck-z-default);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Makes element unselectable.
|
||
*/
|
||
@define-mixin ck-unselectable {
|
||
-moz-user-select: none;
|
||
-webkit-user-select: none;
|
||
-ms-user-select: none;
|
||
user-select: none
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_disabled.css";
|
||
@import "../../../mixins/_rounded.css";
|
||
@import "../../../mixins/_shadow.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
:root {
|
||
--ck-list-button-padding:
|
||
calc(.11 * var(--ck-line-height-base) * var(--ck-font-size-base))
|
||
calc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));
|
||
}
|
||
|
||
.ck.ck-list {
|
||
@mixin ck-rounded-corners;
|
||
|
||
list-style-type: none;
|
||
background: var(--ck-color-list-background);
|
||
}
|
||
|
||
.ck.ck-list__item {
|
||
cursor: default;
|
||
min-width: 12em;
|
||
|
||
& > .ck-button {
|
||
min-height: unset;
|
||
width: 100%;
|
||
border-radius: 0;
|
||
|
||
@mixin ck-dir ltr {
|
||
text-align: left;
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
text-align: right;
|
||
}
|
||
|
||
/* List items should have the same height. Use absolute units to make sure it is so
|
||
because e.g. different heading styles may have different height
|
||
https://github.com/ckeditor/ckeditor5-heading/issues/63 */
|
||
padding: var(--ck-list-button-padding);
|
||
|
||
&:active {
|
||
box-shadow: none;
|
||
}
|
||
|
||
&.ck-on {
|
||
background: var(--ck-color-list-button-on-background);
|
||
color: var(--ck-color-list-button-on-text);
|
||
|
||
&:active {
|
||
box-shadow: none;
|
||
}
|
||
|
||
&:hover:not(.ck-disabled) {
|
||
background: var(--ck-color-list-button-on-background-focus);
|
||
}
|
||
|
||
&:focus:not(.ck-switchbutton):not(.ck-disabled) {
|
||
border-color: var(--ck-color-base-background);
|
||
}
|
||
}
|
||
|
||
&:hover:not(.ck-disabled) {
|
||
background: var(--ck-color-list-button-hover-background);
|
||
}
|
||
}
|
||
|
||
/* It's unnecessary to change the background/text of a switch toggle; it has different ways
|
||
of conveying its state (like the switcher) */
|
||
& > .ck-switchbutton {
|
||
&.ck-on {
|
||
background: var(--ck-color-list-background);
|
||
color: inherit;
|
||
|
||
&:hover:not(.ck-disabled) {
|
||
background: var(--ck-color-list-button-hover-background);
|
||
color: inherit;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.ck-list .ck-list__group {
|
||
padding-top: var(--ck-spacing-medium);
|
||
|
||
/* The group should have a border when it's not the first item. */
|
||
*:not(.ck-hidden) ~ & {
|
||
border-top: 1px solid var(--ck-color-base-border);
|
||
}
|
||
|
||
& > .ck-label {
|
||
font-size: 11px;
|
||
font-weight: bold;
|
||
padding: var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium);
|
||
}
|
||
}
|
||
|
||
.ck.ck-list__separator {
|
||
height: 1px;
|
||
width: 100%;
|
||
background: var(--ck-color-base-border);
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},497:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-menu-bar{background:var(--ck-color-base-background);border:1px solid var(--ck-color-toolbar-border);display:flex;flex-wrap:wrap;gap:var(--ck-spacing-small);justify-content:flex-start;padding:var(--ck-spacing-small);width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubar.css"],names:[],mappings:"AAKA,gBAIC,0CAA2C,CAG3C,+CAAgD,CANhD,YAAa,CACb,cAAe,CAIf,2BAA4B,CAH5B,0BAA2B,CAE3B,+BAAgC,CAGhC,UACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-menu-bar {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: flex-start;
|
||
background: var(--ck-color-base-background);
|
||
padding: var(--ck-spacing-small);
|
||
gap: var(--ck-spacing-small);
|
||
border: 1px solid var(--ck-color-toolbar-border);
|
||
width: 100%;
|
||
}
|
||
`],sourceRoot:""}]);const y=b},4:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-menu-bar__menu{display:block;font-size:inherit;position:relative}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level{max-width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenu.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenu.css"],names:[],mappings:"AAKA,sBACC,aAAc,CCCd,iBAAkB,CDAlB,iBACD,CCCC,kDACC,cACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-menu-bar__menu {
|
||
display: block;
|
||
position: relative;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-menu-bar__menu {
|
||
/* Enable font size inheritance, which allows fluid UI scaling. */
|
||
font-size: inherit;
|
||
|
||
&.ck-menu-bar__menu_top-level {
|
||
max-width: 100%;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},3344:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button{padding:var(--ck-list-button-padding);width:100%}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-button__label{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button{min-height:unset;padding:var(--ck-spacing-small) var(--ck-spacing-medium)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-button__label{line-height:unset;width:unset}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-icon{display:none}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button{border-radius:0}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:focus{border-color:transparent;box-shadow:none}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{transform:rotate(-90deg)}[dir=rtl] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{transform:rotate(90deg)}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button.ck-disabled>.ck-menu-bar__menu__button__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAMC,mFACC,mBAAoB,CACpB,2BACD,CCIA,iDACC,qCAAsC,CACtC,UAuBD,CArBC,mEACC,WAAY,CACZ,eAAgB,CAChB,sBACD,CAEA,+ECdD,kCDgBC,CAGC,qFACC,oCACD,CAIA,qFACC,qCACD,CAOF,6EAEC,gBAAiB,CADjB,wDAgBD,CAbC,+FAEC,iBAAkB,CADlB,WAED,CAEA,mFACC,2BAA4B,CAC5B,4BACD,CAEA,sFACC,YACD,CAMD,mFACC,eAiDD,CA/CC,yFACC,wBAAyB,CACzB,eAKD,CAHC,qGACC,0DACD,CAID,iIACC,+DACD,CAEA,qHACC,mCASD,CAVA,+HAIE,wBAMF,CAVA,+HAQE,uBAEF,CAEA,iICrFD,kCDuFC,CAGC,+HAIC,sCAAuC,CAHvC,gCAID,CAIA,+HACC,+BAAgC,CAGhC,oCACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-menu-bar__menu {
|
||
& > .ck-menu-bar__menu__button > .ck-menu-bar__menu__button__arrow {
|
||
pointer-events: none;
|
||
z-index: var(--ck-z-default);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_disabled.css";
|
||
@import "../../mixins/_button.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
.ck.ck-menu-bar__menu {
|
||
/*
|
||
* All menu buttons.
|
||
*/
|
||
& > .ck-menu-bar__menu__button {
|
||
padding: var(--ck-list-button-padding);
|
||
width: 100%;
|
||
|
||
& > .ck-button__label {
|
||
flex-grow: 1;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
&.ck-disabled > .ck-button__label {
|
||
@mixin ck-disabled;
|
||
}
|
||
|
||
@mixin ck-dir ltr {
|
||
&:not(.ck-button_with-text) {
|
||
padding-left: var(--ck-spacing-small);
|
||
}
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
&:not(.ck-button_with-text) {
|
||
padding-right: var(--ck-spacing-small);
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Top-level menu buttons only.
|
||
*/
|
||
&.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__button {
|
||
padding: var(--ck-spacing-small) var(--ck-spacing-medium);
|
||
min-height: unset;
|
||
|
||
& .ck-button__label {
|
||
width: unset;
|
||
line-height: unset;
|
||
}
|
||
|
||
&.ck-on {
|
||
border-bottom-left-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
|
||
& .ck-icon {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Sub-menu buttons.
|
||
*/
|
||
&:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button {
|
||
border-radius: 0;
|
||
|
||
&:focus {
|
||
border-color: transparent;
|
||
box-shadow: none;
|
||
|
||
&:not(.ck-on) {
|
||
background: var(--ck-color-button-default-hover-background);
|
||
}
|
||
}
|
||
|
||
/* Spacing in buttons that miss the icon. */
|
||
&:not(:has(.ck-button__icon)) > .ck-button__label {
|
||
margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));
|
||
}
|
||
|
||
& > .ck-menu-bar__menu__button__arrow {
|
||
width: var(--ck-dropdown-arrow-size);
|
||
|
||
@mixin ck-dir ltr {
|
||
transform: rotate(-90deg);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
transform: rotate(90deg);
|
||
}
|
||
}
|
||
|
||
&.ck-disabled > .ck-menu-bar__menu__button__arrow {
|
||
@mixin ck-disabled;
|
||
}
|
||
|
||
@mixin ck-dir ltr {
|
||
& > .ck-menu-bar__menu__button__arrow {
|
||
right: var(--ck-spacing-standard);
|
||
|
||
/* A space to accommodate the triangle. */
|
||
margin-left: var(--ck-spacing-standard);
|
||
}
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
& > .ck-menu-bar__menu__button__arrow {
|
||
left: var(--ck-spacing-standard);
|
||
|
||
/* A space to accommodate the triangle. */
|
||
margin-right: var(--ck-spacing-small);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A class which indicates that an element holding it is disabled.
|
||
*/
|
||
@define-mixin ck-disabled {
|
||
opacity: var(--ck-disabled-opacity);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},9481:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-menu-bar-menu-item-min-width:18em}.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item{min-width:var(--ck-menu-bar-menu-item-min-width)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenulistitem.css"],names:[],mappings:"AAKA,MACC,sCACD,CAEA,kDACC,gDACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-menu-bar-menu-item-min-width: 18em;
|
||
}
|
||
|
||
.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item {
|
||
min-width: var(--ck-menu-bar-menu-item-min-width);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},977:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button{border-radius:0}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container,.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus{border-color:transparent;box-shadow:none}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__panel>ul>.ck-menu-bar__menu__item>.ck-menu-bar__menu__item__button:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenulistitembutton.css"],names:[],mappings:"AASC,iEACC,eA0BD,CAxBC,0LAGC,8BACD,CAEA,uFAEC,4CAA+C,CAC/C,oCACD,CAMA,uEACC,wBAAyB,CACzB,eAKD,CAHC,mFACC,0DACD,CASD,uLACC,+DACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-menu-bar__menu {
|
||
/*
|
||
* List item buttons.
|
||
*/
|
||
& .ck-button.ck-menu-bar__menu__item__button {
|
||
border-radius: 0;
|
||
|
||
& > .ck-spinner-container,
|
||
& > .ck-spinner-container .ck-spinner {
|
||
/* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */
|
||
--ck-toolbar-spinner-size: 20px;
|
||
}
|
||
|
||
& > .ck-spinner-container {
|
||
/* These margins are the same as for .ck-icon. */
|
||
margin-left: calc(-1 * var(--ck-spacing-small));
|
||
margin-right: var(--ck-spacing-small);
|
||
}
|
||
|
||
/*
|
||
* Hovered items automatically get focused. Default focus styles look odd
|
||
* while moving across a huge list of items so let's get rid of them
|
||
*/
|
||
&:focus {
|
||
border-color: transparent;
|
||
box-shadow: none;
|
||
|
||
&:not(.ck-on) {
|
||
background: var(--ck-color-button-default-hover-background);
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* First-level sub-menu item buttons.
|
||
*/
|
||
&.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__panel > ul > .ck-menu-bar__menu__item > .ck-menu-bar__menu__item__button {
|
||
/* Spacing in buttons that miss the icon. */
|
||
&:not(:has(.ck-button__icon)) > .ck-button__label {
|
||
margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
`],sourceRoot:""}]);const y=b},9108:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-menu-bar-menu-max-width:75vw;--ck-menu-bar-nested-menu-horizontal-offset:5px}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{max-width:var(--ck-menu-bar-menu-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw{bottom:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{bottom:auto;top:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{left:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{right:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{left:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en{bottom:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{right:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{bottom:0}:root{--ck-menu-bar-menu-panel-max-width:75vw}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{border-radius:0}.ck-rounded-corners .ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;height:fit-content;max-width:var(--ck-menu-bar-menu-panel-max-width)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{border-top-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{border-top-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne{border-bottom-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{border-bottom-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,iCAAkC,CAClC,+CACD,CAEA,mDAEC,2CAA4C,CAC5C,iBAAkB,CAFlB,yBAkDD,CA9CC,gLAEC,WACD,CAEA,gLAGC,WAAY,CADZ,QAED,CAEA,gLAEC,MACD,CAEA,gLAEC,OACD,CAEA,gLAEC,kEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CAEA,gLAEC,mEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CCpDD,MACC,uCACD,CAEA,mDCDC,eDmCD,CAlCA,6ICGE,qCD+BF,CAlCA,mDAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CETT,oCAA8B,CFU9B,kBAAmB,CACnB,iDA0BD,CAvBC,gLAEC,wBACD,CAEA,gLAEC,yBACD,CAEA,gLAEC,2BACD,CAEA,gLAEC,4BACD,CAEA,yDACC,YACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-menu-bar-menu-max-width: 75vw;
|
||
--ck-menu-bar-nested-menu-horizontal-offset: 5px;
|
||
}
|
||
|
||
.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel {
|
||
z-index: var(--ck-z-panel);
|
||
max-width: var(--ck-menu-bar-menu-max-width);
|
||
position: absolute;
|
||
|
||
&.ck-menu-bar__menu__panel_position_ne,
|
||
&.ck-menu-bar__menu__panel_position_nw {
|
||
bottom: 100%;
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_se,
|
||
&.ck-menu-bar__menu__panel_position_sw {
|
||
top: 100%;
|
||
bottom: auto;
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_ne,
|
||
&.ck-menu-bar__menu__panel_position_se {
|
||
left: 0px;
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_nw,
|
||
&.ck-menu-bar__menu__panel_position_sw {
|
||
right: 0px;
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_es,
|
||
&.ck-menu-bar__menu__panel_position_en {
|
||
left: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) );
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_es {
|
||
top: 0px;
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_en {
|
||
bottom: 0px;
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_ws,
|
||
&.ck-menu-bar__menu__panel_position_wn {
|
||
right: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) );
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_ws {
|
||
top: 0px;
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_wn {
|
||
bottom: 0px;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
@import "../../../mixins/_shadow.css";
|
||
|
||
:root {
|
||
--ck-menu-bar-menu-panel-max-width: 75vw;
|
||
}
|
||
|
||
.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel {
|
||
@mixin ck-rounded-corners;
|
||
@mixin ck-drop-shadow;
|
||
|
||
background: var(--ck-color-dropdown-panel-background);
|
||
border: 1px solid var(--ck-color-dropdown-panel-border);
|
||
bottom: 0;
|
||
height: fit-content;
|
||
max-width: var(--ck-menu-bar-menu-panel-max-width);
|
||
|
||
/* Corner border radius consistent with the button. */
|
||
&.ck-menu-bar__menu__panel_position_es,
|
||
&.ck-menu-bar__menu__panel_position_se {
|
||
border-top-left-radius: 0;
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_ws,
|
||
&.ck-menu-bar__menu__panel_position_sw {
|
||
border-top-right-radius: 0;
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_en,
|
||
&.ck-menu-bar__menu__panel_position_ne {
|
||
border-bottom-left-radius: 0;
|
||
}
|
||
|
||
&.ck-menu-bar__menu__panel_position_wn,
|
||
&.ck-menu-bar__menu__panel_position_nw {
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
|
||
&:focus {
|
||
outline: none;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},3710:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-panel)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
/* Make sure the balloon arrow does not float over its children. */
|
||
--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);
|
||
}
|
||
|
||
.ck.ck-balloon-panel {
|
||
display: none;
|
||
position: absolute;
|
||
|
||
z-index: var(--ck-z-panel);
|
||
|
||
&.ck-balloon-panel_with-arrow {
|
||
&::before,
|
||
&::after {
|
||
content: "";
|
||
position: absolute;
|
||
}
|
||
|
||
&::before {
|
||
z-index: var(--ck-balloon-panel-arrow-z-index);
|
||
}
|
||
|
||
&::after {
|
||
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
|
||
}
|
||
}
|
||
|
||
&[class*="arrow_n"] {
|
||
&::before {
|
||
z-index: var(--ck-balloon-panel-arrow-z-index);
|
||
}
|
||
|
||
&::after {
|
||
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
|
||
}
|
||
}
|
||
|
||
&[class*="arrow_s"] {
|
||
&::before {
|
||
z-index: var(--ck-balloon-panel-arrow-z-index);
|
||
}
|
||
|
||
&::after {
|
||
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_visible {
|
||
display: block;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
@import "../../../mixins/_shadow.css";
|
||
|
||
:root {
|
||
--ck-balloon-border-width: 1px;
|
||
--ck-balloon-arrow-offset: 2px;
|
||
--ck-balloon-arrow-height: 10px;
|
||
--ck-balloon-arrow-half-width: 8px;
|
||
--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);
|
||
}
|
||
|
||
.ck.ck-balloon-panel {
|
||
@mixin ck-rounded-corners;
|
||
@mixin ck-drop-shadow;
|
||
|
||
min-height: 15px;
|
||
|
||
background: var(--ck-color-panel-background);
|
||
border: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);
|
||
|
||
&.ck-balloon-panel_with-arrow {
|
||
&::before,
|
||
&::after {
|
||
width: 0;
|
||
height: 0;
|
||
border-style: solid;
|
||
}
|
||
}
|
||
|
||
&[class*="arrow_n"] {
|
||
&::before,
|
||
&::after {
|
||
border-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);
|
||
}
|
||
|
||
&::before {
|
||
border-color: transparent transparent var(--ck-color-panel-border) transparent;
|
||
margin-top: calc( -1 * var(--ck-balloon-border-width) );
|
||
}
|
||
|
||
&::after {
|
||
border-color: transparent transparent var(--ck-color-panel-background) transparent;
|
||
margin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
||
}
|
||
}
|
||
|
||
&[class*="arrow_s"] {
|
||
&::before,
|
||
&::after {
|
||
border-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);
|
||
}
|
||
|
||
&::before {
|
||
border-color: var(--ck-color-panel-border) transparent transparent;
|
||
filter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));
|
||
margin-bottom: calc( -1 * var(--ck-balloon-border-width) );
|
||
}
|
||
|
||
&::after {
|
||
border-color: var(--ck-color-panel-background) transparent transparent transparent;
|
||
margin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
||
}
|
||
}
|
||
|
||
&[class*="arrow_e"] {
|
||
&::before,
|
||
&::after {
|
||
border-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);
|
||
}
|
||
|
||
&::before {
|
||
border-color: transparent transparent transparent var(--ck-color-panel-border);
|
||
margin-right: calc( -1 * var(--ck-balloon-border-width) );
|
||
}
|
||
|
||
&::after {
|
||
border-color: transparent transparent transparent var(--ck-color-panel-background);
|
||
margin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
||
}
|
||
}
|
||
|
||
&[class*="arrow_w"] {
|
||
&::before,
|
||
&::after {
|
||
border-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;
|
||
}
|
||
|
||
&::before {
|
||
border-color: transparent var(--ck-color-panel-border) transparent transparent;
|
||
margin-left: calc( -1 * var(--ck-balloon-border-width) );
|
||
}
|
||
|
||
&::after {
|
||
border-color: transparent var(--ck-color-panel-background) transparent transparent;
|
||
margin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_n {
|
||
&::before,
|
||
&::after {
|
||
left: 50%;
|
||
margin-left: calc(-1 * var(--ck-balloon-arrow-half-width));
|
||
top: calc(-1 * var(--ck-balloon-arrow-height));
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_nw {
|
||
&::before,
|
||
&::after {
|
||
left: calc(2 * var(--ck-balloon-arrow-half-width));
|
||
top: calc(-1 * var(--ck-balloon-arrow-height));
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_ne {
|
||
&::before,
|
||
&::after {
|
||
right: calc(2 * var(--ck-balloon-arrow-half-width));
|
||
top: calc(-1 * var(--ck-balloon-arrow-height));
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_s {
|
||
&::before,
|
||
&::after {
|
||
left: 50%;
|
||
margin-left: calc(-1 * var(--ck-balloon-arrow-half-width));
|
||
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_sw {
|
||
&::before,
|
||
&::after {
|
||
left: calc(2 * var(--ck-balloon-arrow-half-width));
|
||
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_se {
|
||
&::before,
|
||
&::after {
|
||
right: calc(2 * var(--ck-balloon-arrow-half-width));
|
||
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_sme {
|
||
&::before,
|
||
&::after {
|
||
right: 25%;
|
||
margin-right: calc(2 * var(--ck-balloon-arrow-half-width));
|
||
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_smw {
|
||
&::before,
|
||
&::after {
|
||
left: 25%;
|
||
margin-left: calc(2 * var(--ck-balloon-arrow-half-width));
|
||
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_nme {
|
||
&::before,
|
||
&::after {
|
||
right: 25%;
|
||
margin-right: calc(2 * var(--ck-balloon-arrow-half-width));
|
||
top: calc(-1 * var(--ck-balloon-arrow-height));
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_nmw {
|
||
&::before,
|
||
&::after {
|
||
left: 25%;
|
||
margin-left: calc(2 * var(--ck-balloon-arrow-half-width));
|
||
top: calc(-1 * var(--ck-balloon-arrow-height));
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_e {
|
||
&::before,
|
||
&::after {
|
||
right: calc(-1 * var(--ck-balloon-arrow-height));
|
||
margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));
|
||
top: 50%;
|
||
}
|
||
}
|
||
|
||
&.ck-balloon-panel_arrow_w {
|
||
&::before,
|
||
&::after {
|
||
left: calc(-1 * var(--ck-balloon-arrow-height));
|
||
margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));
|
||
top: 50%;
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},991:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck .ck-balloon-rotator__navigation {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
/* Buttons inside a toolbar should be centered when rotator bar is wider.
|
||
* See: https://github.com/ckeditor/ckeditor5-ui/issues/495
|
||
*/
|
||
.ck .ck-balloon-rotator__content .ck-toolbar {
|
||
justify-content: center;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck .ck-balloon-rotator__navigation {
|
||
background: var(--ck-color-toolbar-background);
|
||
border-bottom: 1px solid var(--ck-color-toolbar-border);
|
||
padding: 0 var(--ck-spacing-small);
|
||
|
||
/* Let's keep similar appearance to \`ck-toolbar\`. */
|
||
& > * {
|
||
margin-right: var(--ck-spacing-small);
|
||
margin-top: var(--ck-spacing-small);
|
||
margin-bottom: var(--ck-spacing-small);
|
||
}
|
||
|
||
/* Gives counter more breath than buttons. */
|
||
& .ck-balloon-rotator__counter {
|
||
margin-right: var(--ck-spacing-standard);
|
||
|
||
/* We need to use smaller margin because of previous button's right margin. */
|
||
margin-left: var(--ck-spacing-small);
|
||
}
|
||
}
|
||
|
||
.ck .ck-balloon-rotator__content {
|
||
|
||
/* Disable default annotation shadow inside rotator with fake panels. */
|
||
& .ck.ck-annotation-wrapper {
|
||
box-shadow: none;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},5380:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-panel) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck .ck-fake-panel {
|
||
position: absolute;
|
||
|
||
/* Fake panels should be placed under main balloon content. */
|
||
z-index: calc(var(--ck-z-panel) - 1);
|
||
}
|
||
|
||
.ck .ck-fake-panel div {
|
||
position: absolute;
|
||
}
|
||
|
||
.ck .ck-fake-panel div:nth-child( 1 ) {
|
||
z-index: 2;
|
||
}
|
||
|
||
.ck .ck-fake-panel div:nth-child( 2 ) {
|
||
z-index: 1;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_shadow.css";
|
||
|
||
:root {
|
||
--ck-balloon-fake-panel-offset-horizontal: 6px;
|
||
--ck-balloon-fake-panel-offset-vertical: 6px;
|
||
}
|
||
|
||
/* Let's use \`.ck-balloon-panel\` appearance. See: balloonpanel.css. */
|
||
.ck .ck-fake-panel div {
|
||
@mixin ck-drop-shadow;
|
||
|
||
min-height: 15px;
|
||
|
||
background: var(--ck-color-panel-background);
|
||
border: 1px solid var(--ck-color-panel-border);
|
||
border-radius: var(--ck-border-radius);
|
||
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
.ck .ck-fake-panel div:nth-child( 1 ) {
|
||
margin-left: var(--ck-balloon-fake-panel-offset-horizontal);
|
||
margin-top: var(--ck-balloon-fake-panel-offset-vertical);
|
||
}
|
||
|
||
.ck .ck-fake-panel div:nth-child( 2 ) {
|
||
margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);
|
||
margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);
|
||
}
|
||
.ck .ck-fake-panel div:nth-child( 3 ) {
|
||
margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);
|
||
margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);
|
||
}
|
||
|
||
/* If balloon is positioned above element, we need to move fake panel to the top. */
|
||
.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,
|
||
.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,
|
||
.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {
|
||
--ck-balloon-fake-panel-offset-vertical: -6px;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8298:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-panel)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-sticky-panel {
|
||
& .ck-sticky-panel__content_sticky {
|
||
z-index: var(--ck-z-panel); /* #315 */
|
||
position: fixed;
|
||
top: 0;
|
||
}
|
||
|
||
& .ck-sticky-panel__content_sticky_bottom-limit {
|
||
top: auto;
|
||
position: absolute;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_shadow.css";
|
||
|
||
.ck.ck-sticky-panel {
|
||
& .ck-sticky-panel__content_sticky {
|
||
@mixin ck-drop-shadow;
|
||
|
||
border-width: 0 1px 1px;
|
||
border-top-left-radius: 0;
|
||
border-top-right-radius: 0;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},2722:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-number,.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAoED,CAlEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA+CF,CA7CE,8CACC,wDAYD,CAVC,4HAEC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDrEH",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
||
|
||
.ck-vertical-form .ck-button {
|
||
&::after {
|
||
content: "";
|
||
width: 0;
|
||
position: absolute;
|
||
right: -1px;
|
||
top: -1px;
|
||
bottom: -1px;
|
||
z-index: 1;
|
||
}
|
||
|
||
&:focus::after {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.ck.ck-responsive-form {
|
||
@mixin ck-media-phone {
|
||
& .ck-button {
|
||
&::after {
|
||
content: "";
|
||
width: 0;
|
||
position: absolute;
|
||
right: -1px;
|
||
top: -1px;
|
||
bottom: -1px;
|
||
z-index: 1;
|
||
}
|
||
|
||
&:focus::after {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@define-mixin ck-media-phone {
|
||
@media screen and (max-width: 600px) {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
.ck-vertical-form > .ck-button:nth-last-child(2)::after {
|
||
border-right: 1px solid var(--ck-color-base-border);
|
||
}
|
||
|
||
.ck.ck-responsive-form {
|
||
padding: var(--ck-spacing-large);
|
||
|
||
&:focus {
|
||
/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */
|
||
outline: none;
|
||
}
|
||
|
||
@mixin ck-dir ltr {
|
||
& > :not(:first-child) {
|
||
margin-left: var(--ck-spacing-standard);
|
||
}
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
& > :not(:last-child) {
|
||
margin-left: var(--ck-spacing-standard);
|
||
}
|
||
}
|
||
|
||
@mixin ck-media-phone {
|
||
padding: 0;
|
||
width: calc(.8 * var(--ck-input-width));
|
||
|
||
& .ck-labeled-field-view {
|
||
margin: var(--ck-spacing-large) var(--ck-spacing-large) 0;
|
||
|
||
& .ck-input-text,
|
||
& .ck-input-number {
|
||
min-width: 0;
|
||
width: 100%;
|
||
}
|
||
|
||
/* Let the long error messages wrap in the narrow form. */
|
||
& .ck-labeled-field-view__error {
|
||
white-space: normal;
|
||
}
|
||
}
|
||
|
||
/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */
|
||
& > .ck-button:nth-last-child(2) {
|
||
&::after {
|
||
border-right: 1px solid var(--ck-color-base-border);
|
||
}
|
||
}
|
||
|
||
& > .ck-button:nth-last-child(1),
|
||
& > .ck-button:nth-last-child(2) {
|
||
padding: var(--ck-spacing-standard);
|
||
margin-top: var(--ck-spacing-large);
|
||
border-radius: 0;
|
||
|
||
&:not(:focus) {
|
||
border-top: 1px solid var(--ck-color-base-border);
|
||
}
|
||
|
||
@mixin ck-dir ltr {
|
||
margin-left: 0;
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
margin-left: 0;
|
||
|
||
&:last-of-type {
|
||
border-right: 1px solid var(--ck-color-base-border);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8107:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
.ck.ck-search {
|
||
& > .ck-labeled-field-view {
|
||
& > .ck-labeled-field-view__input-wrapper > .ck-icon {
|
||
position: absolute;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
|
||
@mixin ck-dir ltr {
|
||
left: var(--ck-spacing-medium);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
right: var(--ck-spacing-medium);
|
||
}
|
||
}
|
||
|
||
& .ck-search__reset {
|
||
position: absolute;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
}
|
||
}
|
||
|
||
& > .ck-search__results {
|
||
& > .ck-search__info {
|
||
& > span:first-child {
|
||
display: block;
|
||
}
|
||
|
||
/* Hide the filtered view when nothing was found */
|
||
&:not(.ck-hidden) ~ * {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
:root {
|
||
--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));
|
||
}
|
||
|
||
.ck.ck-search {
|
||
& > .ck-labeled-field-view {
|
||
& .ck-input {
|
||
width: 100%;
|
||
}
|
||
|
||
&.ck-search__query_with-icon {
|
||
--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);
|
||
|
||
& > .ck-labeled-field-view__input-wrapper > .ck-icon {
|
||
opacity: .5;
|
||
pointer-events: none;
|
||
}
|
||
|
||
& .ck-input {
|
||
width: 100%;
|
||
|
||
@mixin ck-dir ltr {
|
||
padding-left: var(--ck-search-field-view-horizontal-spacing);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
&:not(.ck-input-text_empty) {
|
||
padding-left: var(--ck-search-field-view-horizontal-spacing);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
&.ck-search__query_with-reset {
|
||
--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);
|
||
|
||
&.ck-labeled-field-view_empty {
|
||
--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);
|
||
}
|
||
|
||
& .ck-search__reset {
|
||
min-width: auto;
|
||
min-height: auto;
|
||
|
||
background: none;
|
||
opacity: .5;
|
||
padding: 0;
|
||
|
||
@mixin ck-dir ltr {
|
||
right: var(--ck-spacing-medium);
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
left: var(--ck-spacing-medium);
|
||
}
|
||
|
||
&:hover {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
& .ck-input {
|
||
width: 100%;
|
||
|
||
@mixin ck-dir ltr {
|
||
&:not(.ck-input-text_empty) {
|
||
padding-right: var(--ck-search-field-view-horizontal-spacing);
|
||
}
|
||
}
|
||
|
||
@mixin ck-dir rtl {
|
||
padding-right: var(--ck-search-field-view-horizontal-spacing);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
& > .ck-search__results {
|
||
min-width: 100%;
|
||
|
||
& > .ck-search__info {
|
||
width: 100%;
|
||
padding: var(--ck-spacing-medium) var(--ck-spacing-large);
|
||
|
||
& * {
|
||
white-space: normal;
|
||
}
|
||
|
||
& > span:first-child {
|
||
font-weight: bold;
|
||
}
|
||
|
||
& > span:last-child {
|
||
margin-top: var(--ck-spacing-medium);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
`],sourceRoot:""}]);const y=b},109:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@media (prefers-reduced-motion:reduce){.ck.ck-spinner-container{animation-duration:3s}}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,qCAAsC,CADtC,qCAAsC,CADtC,oCAOD,CAHC,uCALD,yBAME,qBAEF,CADC,CAGD,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCAA6B,CAH7B,qCAAsC,CADtC,oCAKD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-toolbar-spinner-size: 18px;
|
||
}
|
||
|
||
.ck.ck-spinner-container {
|
||
display: block;
|
||
position: relative;
|
||
}
|
||
|
||
.ck.ck-spinner {
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 0;
|
||
right: 0;
|
||
margin: 0 auto;
|
||
transform: translateY(-50%);
|
||
z-index: 1;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-toolbar-spinner-size: 18px;
|
||
}
|
||
|
||
.ck.ck-spinner-container {
|
||
width: var(--ck-toolbar-spinner-size);
|
||
height: var(--ck-toolbar-spinner-size);
|
||
animation: 1.5s infinite rotate linear;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
animation-duration: 3s;
|
||
}
|
||
}
|
||
|
||
.ck.ck-spinner {
|
||
width: var(--ck-toolbar-spinner-size);
|
||
height: var(--ck-toolbar-spinner-size);
|
||
border-radius: 50%;
|
||
border: 2px solid var(--ck-color-text);
|
||
border-top-color: transparent;
|
||
}
|
||
|
||
@keyframes rotate {
|
||
to {
|
||
transform: rotate(360deg)
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},1671:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/*
|
||
* This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.
|
||
* This bug is especially visible when rows=1.
|
||
*/
|
||
.ck-textarea {
|
||
overflow-x: hidden
|
||
}
|
||
`],sourceRoot:""}]);const y=b},2710:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck.ck-block-toolbar-button {
|
||
position: absolute;
|
||
z-index: var(--ck-z-default);
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-color-block-toolbar-button: var(--ck-color-text);
|
||
--ck-block-toolbar-button-size: var(--ck-font-size-normal);
|
||
}
|
||
|
||
.ck.ck-block-toolbar-button {
|
||
color: var(--ck-color-block-toolbar-button);
|
||
font-size: var(--ck-block-toolbar-size);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},9677:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../mixins/_unselectable.css";
|
||
|
||
.ck.ck-toolbar {
|
||
@mixin ck-unselectable;
|
||
|
||
display: flex;
|
||
flex-flow: row nowrap;
|
||
align-items: center;
|
||
|
||
& > .ck-toolbar__items {
|
||
display: flex;
|
||
flex-flow: row wrap;
|
||
align-items: center;
|
||
flex-grow: 1;
|
||
|
||
}
|
||
|
||
& .ck.ck-toolbar__separator {
|
||
display: inline-block;
|
||
|
||
/*
|
||
* A leading or trailing separator makes no sense (separates from nothing on one side).
|
||
* For instance, it can happen when toolbar items (also separators) are getting grouped one by one and
|
||
* moved to another toolbar in the dropdown.
|
||
*/
|
||
&:first-child,
|
||
&:last-child {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
& .ck-toolbar__line-break {
|
||
flex-basis: 100%;
|
||
}
|
||
|
||
&.ck-toolbar_grouping > .ck-toolbar__items {
|
||
flex-wrap: nowrap;
|
||
}
|
||
|
||
&.ck-toolbar_vertical > .ck-toolbar__items {
|
||
flex-direction: column;
|
||
}
|
||
|
||
&.ck-toolbar_floating > .ck-toolbar__items {
|
||
flex-wrap: nowrap;
|
||
}
|
||
|
||
& > .ck.ck-toolbar__grouped-dropdown {
|
||
& > .ck-dropdown__button .ck-dropdown__arrow {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Makes element unselectable.
|
||
*/
|
||
@define-mixin ck-unselectable {
|
||
-moz-user-select: none;
|
||
-webkit-user-select: none;
|
||
-ms-user-select: none;
|
||
user-select: none
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
||
|
||
.ck.ck-toolbar {
|
||
@mixin ck-rounded-corners;
|
||
|
||
background: var(--ck-color-toolbar-background);
|
||
padding: 0 var(--ck-spacing-small);
|
||
border: 1px solid var(--ck-color-toolbar-border);
|
||
|
||
& .ck.ck-toolbar__separator {
|
||
align-self: stretch;
|
||
width: 1px;
|
||
min-width: 1px;
|
||
background: var(--ck-color-toolbar-border);
|
||
|
||
/*
|
||
* These margins make the separators look better in balloon toolbars (when aligned with the "tip").
|
||
* See https://github.com/ckeditor/ckeditor5/issues/7493.
|
||
*/
|
||
margin-top: var(--ck-spacing-small);
|
||
margin-bottom: var(--ck-spacing-small);
|
||
}
|
||
|
||
& .ck-toolbar__line-break {
|
||
height: 0;
|
||
}
|
||
|
||
& > .ck-toolbar__items {
|
||
& > *:not(.ck-toolbar__line-break) {
|
||
/* (#11) Separate toolbar items. */
|
||
margin-right: var(--ck-spacing-small);
|
||
}
|
||
|
||
/* Don't display a separator after an empty items container, for instance,
|
||
when all items were grouped */
|
||
&:empty + .ck.ck-toolbar__separator {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),
|
||
& > .ck.ck-toolbar__grouped-dropdown {
|
||
/* Make sure items wrapped to the next line have v-spacing */
|
||
margin-top: var(--ck-spacing-small);
|
||
margin-bottom: var(--ck-spacing-small);
|
||
}
|
||
|
||
&.ck-toolbar_vertical {
|
||
/* Items in a vertical toolbar span the entire width. */
|
||
padding: 0;
|
||
|
||
/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */
|
||
& > .ck-toolbar__items > .ck {
|
||
/* Items in a vertical toolbar should span the horizontal space. */
|
||
width: 100%;
|
||
|
||
/* Items in a vertical toolbar should have no margin. */
|
||
margin: 0;
|
||
|
||
/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */
|
||
border-radius: 0;
|
||
}
|
||
}
|
||
|
||
&.ck-toolbar_compact {
|
||
/* No spacing around items. */
|
||
padding: 0;
|
||
|
||
& > .ck-toolbar__items > * {
|
||
/* Compact toolbar items have no spacing between them. */
|
||
margin: 0;
|
||
|
||
/* "Middle" children should have no rounded corners. */
|
||
&:not(:first-child):not(:last-child) {
|
||
border-radius: 0;
|
||
}
|
||
}
|
||
}
|
||
|
||
& > .ck.ck-toolbar__grouped-dropdown {
|
||
/*
|
||
* Dropdown button has asymmetric padding to fit the arrow.
|
||
* This button has no arrow so let's revert that padding back to normal.
|
||
*/
|
||
& > .ck.ck-button.ck-dropdown__button {
|
||
padding-left: var(--ck-spacing-tiny);
|
||
}
|
||
}
|
||
|
||
/* A drop-down containing the nested toolbar with configured items. */
|
||
& .ck-toolbar__nested-toolbar-dropdown {
|
||
/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */
|
||
& > .ck-dropdown__panel {
|
||
min-width: auto;
|
||
}
|
||
|
||
& > .ck-button > .ck-button__label {
|
||
max-width: 7em;
|
||
width: auto;
|
||
}
|
||
}
|
||
|
||
&:focus {
|
||
outline: none;
|
||
}
|
||
|
||
@nest .ck-toolbar-container & {
|
||
border: 0;
|
||
}
|
||
}
|
||
|
||
/* stylelint-disable */
|
||
|
||
/*
|
||
* Styles for RTL toolbars.
|
||
*
|
||
* Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"
|
||
* because its parent is not controlled by the editor framework.
|
||
*/
|
||
[dir="rtl"] .ck.ck-toolbar,
|
||
.ck.ck-toolbar[dir="rtl"] {
|
||
& > .ck-toolbar__items > .ck {
|
||
margin-right: 0;
|
||
}
|
||
|
||
&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {
|
||
/* (#11) Separate toolbar items. */
|
||
margin-left: var(--ck-spacing-small);
|
||
}
|
||
|
||
& > .ck-toolbar__items > .ck:last-child {
|
||
margin-left: 0;
|
||
}
|
||
|
||
&.ck-toolbar_compact > .ck-toolbar__items > .ck {
|
||
/* No rounded corners on the right side of the first child. */
|
||
&:first-child {
|
||
border-top-left-radius: 0;
|
||
border-bottom-left-radius: 0;
|
||
}
|
||
|
||
/* No rounded corners on the left side of the last child. */
|
||
&:last-child {
|
||
border-top-right-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
}
|
||
|
||
/* Separate the the separator form the grouping dropdown when some items are grouped. */
|
||
& > .ck.ck-toolbar__separator {
|
||
margin-left: var(--ck-spacing-small);
|
||
}
|
||
|
||
/* Some spacing between the items and the separator before the grouped items dropdown. */
|
||
&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {
|
||
margin-left: var(--ck-spacing-small);
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Styles for LTR toolbars.
|
||
*
|
||
* Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"
|
||
* because its parent is not controlled by the editor framework.
|
||
*/
|
||
[dir="ltr"] .ck.ck-toolbar,
|
||
.ck.ck-toolbar[dir="ltr"] {
|
||
& > .ck-toolbar__items > .ck:last-child {
|
||
margin-right: 0;
|
||
}
|
||
|
||
&.ck-toolbar_compact > .ck-toolbar__items > .ck {
|
||
/* No rounded corners on the right side of the first child. */
|
||
&:first-child {
|
||
border-top-right-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
|
||
/* No rounded corners on the left side of the last child. */
|
||
&:last-child {
|
||
border-top-left-radius: 0;
|
||
border-bottom-left-radius: 0;
|
||
}
|
||
}
|
||
|
||
/* Separate the the separator form the grouping dropdown when some items are grouped. */
|
||
& > .ck.ck-toolbar__separator {
|
||
margin-right: var(--ck-spacing-small);
|
||
}
|
||
|
||
/* Some spacing between the items and the separator before the grouped items dropdown. */
|
||
&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {
|
||
margin-right: var(--ck-spacing-small);
|
||
}
|
||
}
|
||
|
||
/* stylelint-enable */
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Implements rounded corner interface for .ck-rounded-corners class.
|
||
*
|
||
* @see $ck-border-radius
|
||
*/
|
||
@define-mixin ck-rounded-corners {
|
||
border-radius: 0;
|
||
|
||
@nest .ck-rounded-corners &,
|
||
&.ck-rounded-corners {
|
||
border-radius: var(--ck-border-radius);
|
||
@mixin-content;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},9205:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck.ck-balloon-panel.ck-tooltip{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:calc(var(--ck-z-dialog) + 100);--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;max-width:200px;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAOA,gCCEC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAgB,CDFhB,sCAAyC,CEFzC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCFJD,CEMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CAErB,eAAgB,CADhB,wCAAyC,CAFzC,wBAID,CArBD,gCAwBC,eAMD,CAHC,uCACC,YACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../mixins/_unselectable.css";
|
||
|
||
.ck.ck-balloon-panel.ck-tooltip {
|
||
@mixin ck-unselectable;
|
||
|
||
z-index: calc( var(--ck-z-dialog) + 100 );
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Makes element unselectable.
|
||
*/
|
||
@define-mixin ck-unselectable {
|
||
-moz-user-select: none;
|
||
-webkit-user-select: none;
|
||
-ms-user-select: none;
|
||
user-select: none
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../../../mixins/_rounded.css";
|
||
|
||
.ck.ck-balloon-panel.ck-tooltip {
|
||
--ck-balloon-border-width: 0px;
|
||
--ck-balloon-arrow-offset: 0px;
|
||
--ck-balloon-arrow-half-width: 4px;
|
||
--ck-balloon-arrow-height: 4px;
|
||
--ck-tooltip-text-padding: 4px;
|
||
--ck-color-panel-background: var(--ck-color-tooltip-background);
|
||
|
||
padding: 0 var(--ck-spacing-medium);
|
||
|
||
& .ck-tooltip__text {
|
||
font-size: .9em;
|
||
line-height: 1.5;
|
||
color: var(--ck-color-tooltip-text);
|
||
}
|
||
|
||
&.ck-tooltip_multi-line .ck-tooltip__text {
|
||
white-space: break-spaces;
|
||
display: inline-block;
|
||
padding: var(--ck-tooltip-text-padding) 0;
|
||
max-width: 200px;
|
||
}
|
||
|
||
/* Reset balloon panel styles */
|
||
box-shadow: none;
|
||
|
||
/* Hide the default shadow of the .ck-balloon-panel tip */
|
||
&::before {
|
||
display: none;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},7676:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck-hidden{display:none!important}:root{--ck-z-default:1;--ck-z-panel:calc(var(--ck-z-default) + 999);--ck-z-dialog:9999}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-panel) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-dialog-background:var(--ck-custom-background);--ck-color-dialog-form-header-border:var(--ck-custom-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-color-light-red:#fcc;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{background:transparent;border:0;box-sizing:border-box;height:auto;margin:0;padding:0;position:static;text-decoration:none;transition:none;vertical-align:middle;width:auto;word-wrap:break-word}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,MACC,gBAAiB,CACjB,4CAA+C,CAC/C,kBACD,CCDA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,wDAAiE,CACjE,4DAAmE,CAInE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAyD,CAIzD,yBAAgD,CChHhD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJgHD,CI1GA,2EAYC,sBAAuB,CADvB,QAAS,CART,qBAAsB,CAEtB,WAAY,CAIZ,QAAS,CACT,SAAU,CAJV,eAAgB,CAOhB,oBAAqB,CAErB,eAAgB,CADhB,qBAAsB,CAVtB,UAAW,CAcX,oBACD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCxFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A class which hides an element in DOM.
|
||
*/
|
||
.ck-hidden {
|
||
/* Override selector specificity. Otherwise, all elements with some display
|
||
style defined will override this one, which is not a desired result. */
|
||
display: none !important;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-z-default: 1;
|
||
--ck-z-panel: calc( var(--ck-z-default) + 999 );
|
||
--ck-z-dialog: 9999;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A class that disables all transitions of the element and its children.
|
||
*/
|
||
.ck-transitions-disabled,
|
||
.ck-transitions-disabled * {
|
||
transition: none !important;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-powered-by-line-height: 10px;
|
||
--ck-powered-by-padding-vertical: 2px;
|
||
--ck-powered-by-padding-horizontal: 4px;
|
||
--ck-powered-by-text-color: hsl(0, 0%, 31%);
|
||
--ck-powered-by-border-radius: var(--ck-border-radius);
|
||
--ck-powered-by-background: hsl(0, 0%, 100%);
|
||
--ck-powered-by-border-color: var(--ck-color-focus-border);
|
||
}
|
||
|
||
.ck.ck-balloon-panel.ck-powered-by-balloon {
|
||
--ck-border-radius: var(--ck-powered-by-border-radius);
|
||
|
||
box-shadow: none;
|
||
background: var(--ck-powered-by-background);
|
||
min-height: unset;
|
||
z-index: calc( var(--ck-z-panel) - 1 );
|
||
|
||
& .ck.ck-powered-by {
|
||
line-height: var(--ck-powered-by-line-height);
|
||
|
||
& a {
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
opacity: .66;
|
||
filter: grayscale(80%);
|
||
line-height: var(--ck-powered-by-line-height);
|
||
padding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);
|
||
}
|
||
|
||
& .ck-powered-by__label {
|
||
font-size: 7.5px;
|
||
letter-spacing: -.2px;
|
||
padding-left: 2px;
|
||
text-transform: uppercase;
|
||
font-weight: bold;
|
||
margin-right: 4px;
|
||
cursor: pointer;
|
||
line-height: normal;
|
||
color: var(--ck-powered-by-text-color);
|
||
|
||
}
|
||
|
||
& .ck-icon {
|
||
display: block;
|
||
cursor: pointer;
|
||
}
|
||
|
||
&:hover {
|
||
& a {
|
||
filter: grayscale(0%);
|
||
opacity: 1;
|
||
}
|
||
}
|
||
}
|
||
|
||
&[class*="position_inside"] {
|
||
border-color: transparent;
|
||
}
|
||
|
||
&[class*="position_border"] {
|
||
border: var(--ck-focus-ring);
|
||
border-color: var(--ck-powered-by-border-color);
|
||
}
|
||
}
|
||
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-color-base-foreground: hsl(0, 0%, 98%);
|
||
--ck-color-base-background: hsl(0, 0%, 100%);
|
||
--ck-color-base-border: hsl(220, 6%, 81%);
|
||
--ck-color-base-action: hsl(104, 50.2%, 42.5%);
|
||
--ck-color-base-focus: hsl(209, 92%, 70%);
|
||
--ck-color-base-text: hsl(0, 0%, 20%);
|
||
--ck-color-base-active: hsl(218.1, 100%, 58%);
|
||
--ck-color-base-active-focus: hsl(218.2, 100%, 52.5%);
|
||
--ck-color-base-error: hsl(15, 100%, 43%);
|
||
|
||
/* -- Generic colors ------------------------------------------------------------------------ */
|
||
|
||
--ck-color-focus-border-coordinates: 218, 81.8%, 56.9%;
|
||
--ck-color-focus-border: hsl(var(--ck-color-focus-border-coordinates));
|
||
--ck-color-focus-outer-shadow: hsl(212.4, 89.3%, 89%);
|
||
--ck-color-focus-disabled-shadow: hsla(209, 90%, 72%,.3);
|
||
--ck-color-focus-error-shadow: hsla(9,100%,56%,.3);
|
||
--ck-color-text: var(--ck-color-base-text);
|
||
--ck-color-shadow-drop: hsla(0, 0%, 0%, 0.15);
|
||
--ck-color-shadow-drop-active: hsla(0, 0%, 0%, 0.2);
|
||
--ck-color-shadow-inner: hsla(0, 0%, 0%, 0.1);
|
||
|
||
/* -- Buttons ------------------------------------------------------------------------------- */
|
||
|
||
--ck-color-button-default-background: transparent;
|
||
--ck-color-button-default-hover-background: hsl(0, 0%, 94.1%);
|
||
--ck-color-button-default-active-background: hsl(0, 0%, 94.1%);
|
||
--ck-color-button-default-disabled-background: transparent;
|
||
|
||
--ck-color-button-on-background: hsl(212, 100%, 97.1%);
|
||
--ck-color-button-on-hover-background: hsl(211.7, 100%, 92.9%);
|
||
--ck-color-button-on-active-background: hsl(211.7, 100%, 92.9%);
|
||
--ck-color-button-on-disabled-background: hsl(211, 15%, 95%);
|
||
--ck-color-button-on-color: hsl(218.1, 100%, 58%);
|
||
|
||
|
||
--ck-color-button-action-background: var(--ck-color-base-action);
|
||
--ck-color-button-action-hover-background: hsl(104, 53.2%, 40.2%);
|
||
--ck-color-button-action-active-background: hsl(104, 53.2%, 40.2%);
|
||
--ck-color-button-action-disabled-background: hsl(104, 44%, 58%);
|
||
--ck-color-button-action-text: var(--ck-color-base-background);
|
||
|
||
--ck-color-button-save: hsl(120, 100%, 27%);
|
||
--ck-color-button-cancel: hsl(15, 100%, 43%);
|
||
|
||
--ck-color-switch-button-off-background: hsl(0, 0%, 57.6%);
|
||
--ck-color-switch-button-off-hover-background: hsl(0, 0%, 49%);
|
||
--ck-color-switch-button-on-background: var(--ck-color-button-action-background);
|
||
--ck-color-switch-button-on-hover-background: hsl(104, 53.2%, 40.2%);
|
||
--ck-color-switch-button-inner-background: var(--ck-color-base-background);
|
||
--ck-color-switch-button-inner-shadow: hsla(0, 0%, 0%, 0.1);
|
||
|
||
/* -- Dropdown ------------------------------------------------------------------------------ */
|
||
|
||
--ck-color-dropdown-panel-background: var(--ck-color-base-background);
|
||
--ck-color-dropdown-panel-border: var(--ck-color-base-border);
|
||
|
||
/* -- Dialog -------------------------------------------------------------------------------- */
|
||
|
||
--ck-color-dialog-background: var(--ck-custom-background);
|
||
--ck-color-dialog-form-header-border: var(--ck-custom-border);
|
||
|
||
/* -- Input --------------------------------------------------------------------------------- */
|
||
|
||
--ck-color-input-background: var(--ck-color-base-background);
|
||
--ck-color-input-border: var(--ck-color-base-border);
|
||
--ck-color-input-error-border: var(--ck-color-base-error);
|
||
--ck-color-input-text: var(--ck-color-base-text);
|
||
--ck-color-input-disabled-background: hsl(0, 0%, 95%);
|
||
--ck-color-input-disabled-border: var(--ck-color-base-border);
|
||
--ck-color-input-disabled-text: hsl(0, 0%, 46%);
|
||
|
||
/* -- List ---------------------------------------------------------------------------------- */
|
||
|
||
--ck-color-list-background: var(--ck-color-base-background);
|
||
--ck-color-list-button-hover-background: var(--ck-color-button-default-hover-background);
|
||
--ck-color-list-button-on-background: var(--ck-color-button-on-color);
|
||
--ck-color-list-button-on-background-focus: var(--ck-color-button-on-color);
|
||
--ck-color-list-button-on-text: var(--ck-color-base-background);
|
||
|
||
/* -- Panel --------------------------------------------------------------------------------- */
|
||
|
||
--ck-color-panel-background: var(--ck-color-base-background);
|
||
--ck-color-panel-border: var(--ck-color-base-border);
|
||
|
||
/* -- Toolbar ------------------------------------------------------------------------------- */
|
||
|
||
--ck-color-toolbar-background: var(--ck-color-base-background);
|
||
--ck-color-toolbar-border: var(--ck-color-base-border);
|
||
|
||
/* -- Tooltip ------------------------------------------------------------------------------- */
|
||
|
||
--ck-color-tooltip-background: var(--ck-color-base-text);
|
||
--ck-color-tooltip-text: var(--ck-color-base-background);
|
||
|
||
/* -- Engine -------------------------------------------------------------------------------- */
|
||
|
||
--ck-color-engine-placeholder-text: hsl(0, 0%, 44%);
|
||
|
||
/* -- Upload -------------------------------------------------------------------------------- */
|
||
|
||
--ck-color-upload-bar-background: hsl(209, 92%, 70%);
|
||
|
||
/* -- Link -------------------------------------------------------------------------------- */
|
||
|
||
--ck-color-link-default: hsl(240, 100%, 47%);
|
||
--ck-color-link-selected-background: hsla(201, 100%, 56%, 0.1);
|
||
--ck-color-link-fake-selection: hsla(201, 100%, 56%, 0.3);
|
||
|
||
/* -- Search result highlight ---------------------------------------------------------------- */
|
||
|
||
--ck-color-highlight-background: hsl(60, 100%, 50%);
|
||
|
||
/* -- Generic colors ------------------------------------------------------------------------- */
|
||
|
||
--ck-color-light-red: hsl(0, 100%, 90%);
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
/**
|
||
* An opacity value of disabled UI item.
|
||
*/
|
||
--ck-disabled-opacity: .5;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
/**
|
||
* The geometry of the of focused element's outer shadow.
|
||
*/
|
||
--ck-focus-outer-shadow-geometry: 0 0 0 3px;
|
||
|
||
/**
|
||
* A visual style of focused element's outer shadow.
|
||
*/
|
||
--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);
|
||
|
||
/**
|
||
* A visual style of focused element's outer shadow (when disabled).
|
||
*/
|
||
--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);
|
||
|
||
/**
|
||
* A visual style of focused element's outer shadow (when has errors).
|
||
*/
|
||
--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);
|
||
|
||
/**
|
||
* A visual style of focused element's border or outline.
|
||
*/
|
||
--ck-focus-ring: 1px solid var(--ck-color-focus-border);
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-font-size-base: 13px;
|
||
--ck-line-height-base: 1.84615;
|
||
--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;
|
||
|
||
--ck-font-size-tiny: 0.7em;
|
||
--ck-font-size-small: 0.75em;
|
||
--ck-font-size-normal: 1em;
|
||
--ck-font-size-big: 1.4em;
|
||
--ck-font-size-large: 1.8em;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
/* This is super-important. This is **manually** adjusted so a button without an icon
|
||
is never smaller than a button with icon, additionally making sure that text-less buttons
|
||
are perfect squares. The value is also shared by other components which should stay "in-line"
|
||
with buttons. */
|
||
--ck-ui-component-min-height: 2.3em;
|
||
}
|
||
|
||
/**
|
||
* Resets an element, ignoring its children.
|
||
*/
|
||
.ck.ck-reset,
|
||
.ck.ck-reset_all,
|
||
.ck-reset_all *:not(.ck-reset_all-excluded *) {
|
||
box-sizing: border-box;
|
||
width: auto;
|
||
height: auto;
|
||
position: static;
|
||
|
||
/* Do not include inheritable rules here. */
|
||
margin: 0;
|
||
padding: 0;
|
||
border: 0;
|
||
background: transparent;
|
||
text-decoration: none;
|
||
vertical-align: middle;
|
||
transition: none;
|
||
|
||
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */
|
||
word-wrap: break-word;
|
||
}
|
||
|
||
/**
|
||
* Resets an element AND its children.
|
||
*/
|
||
.ck.ck-reset_all,
|
||
.ck-reset_all *:not(.ck-reset_all-excluded *) {
|
||
/* These are rule inherited by all children elements. */
|
||
border-collapse: collapse;
|
||
font: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);
|
||
color: var(--ck-color-text);
|
||
text-align: left;
|
||
white-space: nowrap;
|
||
cursor: auto;
|
||
float: none;
|
||
}
|
||
|
||
.ck-reset_all {
|
||
& .ck-rtl *:not(.ck-reset_all-excluded *) {
|
||
text-align: right;
|
||
}
|
||
|
||
& iframe:not(.ck-reset_all-excluded *) {
|
||
/* For IE */
|
||
vertical-align: inherit;
|
||
}
|
||
|
||
& textarea:not(.ck-reset_all-excluded *) {
|
||
white-space: pre-wrap;
|
||
}
|
||
|
||
& textarea:not(.ck-reset_all-excluded *),
|
||
& input[type="text"]:not(.ck-reset_all-excluded *),
|
||
& input[type="password"]:not(.ck-reset_all-excluded *) {
|
||
cursor: text;
|
||
}
|
||
|
||
& textarea[disabled]:not(.ck-reset_all-excluded *),
|
||
& input[type="text"][disabled]:not(.ck-reset_all-excluded *),
|
||
& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {
|
||
cursor: default;
|
||
}
|
||
|
||
& fieldset:not(.ck-reset_all-excluded *) {
|
||
padding: 10px;
|
||
border: 2px groove hsl(255, 7%, 88%);
|
||
}
|
||
|
||
& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {
|
||
/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */
|
||
padding: 0;
|
||
border: 0
|
||
}
|
||
}
|
||
|
||
/**
|
||
* Default UI rules for RTL languages.
|
||
*/
|
||
.ck[dir="rtl"],
|
||
.ck[dir="rtl"] .ck {
|
||
text-align: right;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* Default border-radius value.
|
||
*/
|
||
:root{
|
||
--ck-border-radius: 2px;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
/**
|
||
* A visual style of element's inner shadow (i.e. input).
|
||
*/
|
||
--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;
|
||
|
||
/**
|
||
* A visual style of element's drop shadow (i.e. panel).
|
||
*/
|
||
--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);
|
||
|
||
/**
|
||
* A visual style of element's active shadow (i.e. comment or suggestion).
|
||
*/
|
||
--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-spacing-unit: 0.6em;
|
||
--ck-spacing-large: calc(var(--ck-spacing-unit) * 1.5);
|
||
--ck-spacing-standard: var(--ck-spacing-unit);
|
||
--ck-spacing-medium: calc(var(--ck-spacing-unit) * 0.8);
|
||
--ck-spacing-small: calc(var(--ck-spacing-unit) * 0.5);
|
||
--ck-spacing-tiny: calc(var(--ck-spacing-unit) * 0.3);
|
||
--ck-spacing-extra-tiny: calc(var(--ck-spacing-unit) * 0.16);
|
||
}
|
||
`],sourceRoot:""}]);const y=b},695:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget{transition:none}}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}@media (forced-colors:none){.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background)}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CChFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAcD,CAZC,uCAND,eAOE,eAWF,CAVC,CAEA,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAYD,CARC,yGCnCA,2BAA2B,CCF3B,qCAA8B,CDC9B,YD2CA,CGvCA,4BACC,yGHoCC,iEGlCD,CACD,CHuCA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAwCD,CA3BC,uCAzBD,4EA0BE,eA0BF,CAzBC,CAEA,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAeD,CAVC,kHACC,SAAU,CAGV,+DAKD,CAHC,uCAND,kHAOE,eAEF,CADC,CAKF,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-color-resizer: var(--ck-color-focus-border);
|
||
--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);
|
||
--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);
|
||
|
||
--ck-resizer-border-radius: var(--ck-border-radius);
|
||
--ck-resizer-tooltip-offset: 10px;
|
||
--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);
|
||
}
|
||
|
||
.ck .ck-widget {
|
||
/* This is neccessary for type around UI to be positioned properly. */
|
||
position: relative;
|
||
}
|
||
|
||
.ck .ck-widget.ck-widget_with-selection-handle {
|
||
/* Make the widget wrapper a relative positioning container for the drag handle. */
|
||
position: relative;
|
||
|
||
& .ck-widget__selection-handle {
|
||
position: absolute;
|
||
|
||
& .ck-icon {
|
||
/* Make sure the icon in not a subject to font-size or line-height to avoid
|
||
unnecessary spacing around it. */
|
||
display: block;
|
||
}
|
||
}
|
||
|
||
/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */
|
||
&:hover > .ck-widget__selection-handle {
|
||
visibility: visible;
|
||
}
|
||
|
||
/* Show the selection handle when the widget is selected, but not for nested widgets. */
|
||
&.ck-widget_selected > .ck-widget__selection-handle {
|
||
visibility: visible;
|
||
}
|
||
}
|
||
|
||
.ck .ck-size-view {
|
||
background: var(--ck-color-resizer-tooltip-background);
|
||
color: var(--ck-color-resizer-tooltip-text);
|
||
border: 1px solid var(--ck-color-resizer-tooltip-text);
|
||
border-radius: var(--ck-resizer-border-radius);
|
||
font-size: var(--ck-font-size-tiny);
|
||
display: block;
|
||
padding: 0 var(--ck-spacing-small);
|
||
height: var(--ck-resizer-tooltip-height);
|
||
line-height: var(--ck-resizer-tooltip-height);
|
||
|
||
&.ck-orientation-top-left,
|
||
&.ck-orientation-top-right,
|
||
&.ck-orientation-bottom-right,
|
||
&.ck-orientation-bottom-left,
|
||
&.ck-orientation-above-center {
|
||
position: absolute;
|
||
}
|
||
|
||
&.ck-orientation-top-left {
|
||
top: var(--ck-resizer-tooltip-offset);
|
||
left: var(--ck-resizer-tooltip-offset);
|
||
}
|
||
|
||
&.ck-orientation-top-right {
|
||
top: var(--ck-resizer-tooltip-offset);
|
||
right: var(--ck-resizer-tooltip-offset);
|
||
}
|
||
|
||
&.ck-orientation-bottom-right {
|
||
bottom: var(--ck-resizer-tooltip-offset);
|
||
right: var(--ck-resizer-tooltip-offset);
|
||
}
|
||
|
||
&.ck-orientation-bottom-left {
|
||
bottom: var(--ck-resizer-tooltip-offset);
|
||
left: var(--ck-resizer-tooltip-offset);
|
||
}
|
||
|
||
/* Class applied if the widget is too small to contain the size label */
|
||
&.ck-orientation-above-center {
|
||
top: calc(var(--ck-resizer-tooltip-height) * -1);
|
||
left: 50%;
|
||
transform: translate(-50%);
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@import "../mixins/_focus.css";
|
||
@import "../mixins/_shadow.css";
|
||
@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";
|
||
|
||
:root {
|
||
--ck-widget-outline-thickness: 3px;
|
||
--ck-widget-handler-icon-size: 16px;
|
||
--ck-widget-handler-animation-duration: 200ms;
|
||
--ck-widget-handler-animation-curve: ease;
|
||
|
||
--ck-color-widget-blurred-border: hsl(0, 0%, 87%);
|
||
--ck-color-widget-hover-border: hsl(43, 100%, 62%);
|
||
--ck-color-widget-editable-focus-background: var(--ck-color-base-background);
|
||
--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);
|
||
}
|
||
|
||
.ck .ck-widget {
|
||
outline-width: var(--ck-widget-outline-thickness);
|
||
outline-style: solid;
|
||
outline-color: transparent;
|
||
transition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
|
||
&.ck-widget_selected,
|
||
&.ck-widget_selected:hover {
|
||
outline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);
|
||
}
|
||
|
||
&:hover {
|
||
outline-color: var(--ck-color-widget-hover-border);
|
||
}
|
||
}
|
||
|
||
.ck .ck-editor__nested-editable {
|
||
border: 1px solid transparent;
|
||
|
||
/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.
|
||
These styles show a different border for a blink of an eye, so \`:focus\` need to have same styles applied. */
|
||
&.ck-editor__nested-editable_focused,
|
||
&:focus {
|
||
@mixin ck-focus-ring;
|
||
@mixin ck-box-shadow var(--ck-inner-shadow);
|
||
@mixin ck-media-default-colors {
|
||
background-color: var(--ck-color-widget-editable-focus-background);
|
||
}
|
||
}
|
||
}
|
||
|
||
.ck .ck-widget.ck-widget_with-selection-handle {
|
||
& .ck-widget__selection-handle {
|
||
padding: 4px;
|
||
box-sizing: border-box;
|
||
|
||
/* Background and opacity will be animated as the handler shows up or the widget gets selected. */
|
||
background-color: transparent;
|
||
opacity: 0;
|
||
|
||
/* Transition:
|
||
* background-color for the .ck-widget_selected state change,
|
||
* visibility for hiding the handler,
|
||
* opacity for the proper look of the icon when the handler disappears. */
|
||
transition:
|
||
background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),
|
||
visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),
|
||
opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
|
||
|
||
/* Make only top corners round. */
|
||
border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;
|
||
|
||
/* Place the drag handler outside the widget wrapper. */
|
||
transform: translateY(-100%);
|
||
left: calc(0px - var(--ck-widget-outline-thickness));
|
||
top: 0;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
|
||
& .ck-icon {
|
||
/* Make sure the dimensions of the icon are independent of the fon-size of the content. */
|
||
width: var(--ck-widget-handler-icon-size);
|
||
height: var(--ck-widget-handler-icon-size);
|
||
color: var(--ck-color-widget-drag-handler-icon-color);
|
||
|
||
/* The "selected" part of the icon is invisible by default */
|
||
& .ck-icon__selected-indicator {
|
||
opacity: 0;
|
||
|
||
/* Note: The animation is longer on purpose. Simply feels better. */
|
||
transition: opacity 300ms var(--ck-widget-handler-animation-curve);
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */
|
||
&:hover .ck-icon .ck-icon__selected-indicator {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */
|
||
&:hover > .ck-widget__selection-handle {
|
||
opacity: 1;
|
||
background-color: var(--ck-color-widget-hover-border);
|
||
}
|
||
|
||
/* Show the selection handler when the widget is selected, but not for nested widgets. */
|
||
&.ck-widget_selected,
|
||
&.ck-widget_selected:hover {
|
||
& > .ck-widget__selection-handle {
|
||
opacity: 1;
|
||
background-color: var(--ck-color-focus-border);
|
||
|
||
/* When the widget is selected, notify the user using the proper look of the icon. */
|
||
& .ck-icon .ck-icon__selected-indicator {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
/* In a RTL environment, align the selection handler to the right side of the widget */
|
||
/* stylelint-disable-next-line no-descending-specificity */
|
||
.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {
|
||
left: auto;
|
||
right: calc(0px - var(--ck-widget-outline-thickness));
|
||
}
|
||
|
||
/* https://github.com/ckeditor/ckeditor5/issues/6415 */
|
||
.ck.ck-editor__editable.ck-read-only .ck-widget {
|
||
/* Prevent the :hover outline from showing up because of the used outline-color transition. */
|
||
transition: none;
|
||
|
||
&:not(.ck-widget_selected) {
|
||
/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.
|
||
* See: https://github.com/ckeditor/ckeditor5/issues/1261
|
||
*
|
||
* Leave the unit because this custom property is used in calc() by other features.
|
||
* See: https://github.com/ckeditor/ckeditor5/issues/6775
|
||
*/
|
||
--ck-widget-outline-thickness: 0px;
|
||
}
|
||
|
||
&.ck-widget_with-selection-handle {
|
||
& .ck-widget__selection-handle,
|
||
& .ck-widget__selection-handle:hover {
|
||
background: var(--ck-color-widget-blurred-border);
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Style the widget when it's selected but the editable it belongs to lost focus. */
|
||
/* stylelint-disable-next-line no-descending-specificity */
|
||
.ck.ck-editor__editable.ck-blurred .ck-widget {
|
||
&.ck-widget_selected,
|
||
&.ck-widget_selected:hover {
|
||
outline-color: var(--ck-color-widget-blurred-border);
|
||
|
||
&.ck-widget_with-selection-handle {
|
||
& > .ck-widget__selection-handle,
|
||
& > .ck-widget__selection-handle:hover {
|
||
background: var(--ck-color-widget-blurred-border);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,
|
||
.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {
|
||
/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.
|
||
In fact, anything with overflow: hidden.
|
||
https://github.com/ckeditor/ckeditor5-block-quote/issues/28
|
||
https://github.com/ckeditor/ckeditor5-widget/issues/44
|
||
https://github.com/ckeditor/ckeditor5-widget/issues/66 */
|
||
margin-top: calc(1em + var(--ck-widget-handler-icon-size));
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A visual style of focused element's border.
|
||
*/
|
||
@define-mixin ck-focus-ring {
|
||
/* Disable native outline. */
|
||
outline: none;
|
||
border: var(--ck-focus-ring)
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
/**
|
||
* A helper to combine multiple shadows.
|
||
*/
|
||
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
||
box-shadow: $shadowA, $shadowB;
|
||
}
|
||
|
||
/**
|
||
* Gives an element a drop shadow so it looks like a floating panel.
|
||
*/
|
||
@define-mixin ck-drop-shadow {
|
||
@mixin ck-box-shadow var(--ck-drop-shadow);
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
@define-mixin ck-media-forced-colors {
|
||
@media (forced-colors: active) {
|
||
& {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
}
|
||
|
||
@define-mixin ck-media-default-colors {
|
||
@media (forced-colors: none) {
|
||
& {
|
||
@mixin-content;
|
||
}
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},4095:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck .ck-widget_with-resizer {
|
||
/* Make the widget wrapper a relative positioning container for the drag handle. */
|
||
position: relative;
|
||
}
|
||
|
||
.ck .ck-widget__resizer {
|
||
display: none;
|
||
position: absolute;
|
||
|
||
/* The wrapper itself should not interfere with the pointer device, only the handles should. */
|
||
pointer-events: none;
|
||
|
||
left: 0;
|
||
top: 0;
|
||
}
|
||
|
||
.ck-focused .ck-widget_with-resizer.ck-widget_selected {
|
||
& > .ck-widget__resizer {
|
||
display: block;
|
||
}
|
||
}
|
||
|
||
.ck .ck-widget__resizer__handle {
|
||
position: absolute;
|
||
|
||
/* Resizers are the only UI elements that should interfere with a pointer device. */
|
||
pointer-events: all;
|
||
|
||
&.ck-widget__resizer__handle-top-left,
|
||
&.ck-widget__resizer__handle-bottom-right {
|
||
cursor: nwse-resize;
|
||
}
|
||
|
||
&.ck-widget__resizer__handle-top-right,
|
||
&.ck-widget__resizer__handle-bottom-left {
|
||
cursor: nesw-resize;
|
||
}
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-resizer-size: 10px;
|
||
|
||
/* Set the resizer with a 50% offset. */
|
||
--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);
|
||
--ck-resizer-border-width: 1px;
|
||
}
|
||
|
||
.ck .ck-widget__resizer {
|
||
outline: 1px solid var(--ck-color-resizer);
|
||
}
|
||
|
||
.ck .ck-widget__resizer__handle {
|
||
width: var(--ck-resizer-size);
|
||
height: var(--ck-resizer-size);
|
||
background: var(--ck-color-focus-border);
|
||
border: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);
|
||
border-radius: var(--ck-resizer-border-radius);
|
||
|
||
&.ck-widget__resizer__handle-top-left {
|
||
top: var(--ck-resizer-offset);
|
||
left: var(--ck-resizer-offset);
|
||
}
|
||
|
||
&.ck-widget__resizer__handle-top-right {
|
||
top: var(--ck-resizer-offset);
|
||
right: var(--ck-resizer-offset);
|
||
}
|
||
|
||
&.ck-widget__resizer__handle-bottom-right {
|
||
bottom: var(--ck-resizer-offset);
|
||
right: var(--ck-resizer-offset);
|
||
}
|
||
|
||
&.ck-widget__resizer__handle-bottom-left {
|
||
bottom: var(--ck-resizer-offset);
|
||
left: var(--ck-resizer-offset);
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},8508:(C,w,g)=>{g.d(w,{A:()=>y});var D=g(9372),x=g.n(D),T=g(935),b=g.n(T)()(x());b.push([C.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button svg{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button:hover,.ck .ck-widget .ck-widget__type-around__button:hover svg line,.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:none}}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAwED,CAhEC,uCATD,+CAUE,eA+DF,CA9DC,CAEA,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAwBD,CAlBC,uCAPD,mDAQE,eAiBF,CAhBC,CAEA,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DA4BD,CAtBE,kEACC,oDACD,CAEA,8DACC,wDACD,CAGD,uCAQE,qLACC,cACD,CAEF,CASD,uKA7FD,SAAU,CACV,mBA8FC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAxKD,SAAU,CACV,mBAyKC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAxNF,SAAU,CACV,mBAyNE,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:[`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
.ck .ck-widget {
|
||
/*
|
||
* Styles of the type around buttons
|
||
*/
|
||
& .ck-widget__type-around__button {
|
||
display: block;
|
||
position: absolute;
|
||
overflow: hidden;
|
||
z-index: var(--ck-z-default);
|
||
|
||
& svg {
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 50%;
|
||
z-index: calc(var(--ck-z-default) + 2);
|
||
}
|
||
|
||
&.ck-widget__type-around__button_before {
|
||
/* Place it in the middle of the outline */
|
||
top: calc(-0.5 * var(--ck-widget-outline-thickness));
|
||
left: min(10%, 30px);
|
||
|
||
transform: translateY(-50%);
|
||
}
|
||
|
||
&.ck-widget__type-around__button_after {
|
||
/* Place it in the middle of the outline */
|
||
bottom: calc(-0.5 * var(--ck-widget-outline-thickness));
|
||
right: min(10%, 30px);
|
||
|
||
transform: translateY(50%);
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Styles for the buttons when:
|
||
* - the widget is selected,
|
||
* - or the button is being hovered (regardless of the widget state).
|
||
*/
|
||
&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,
|
||
& > .ck-widget__type-around > .ck-widget__type-around__button:hover {
|
||
&::after {
|
||
content: "";
|
||
display: block;
|
||
position: absolute;
|
||
top: 1px;
|
||
left: 1px;
|
||
z-index: calc(var(--ck-z-default) + 1);
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.
|
||
*/
|
||
& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
||
display: none;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
}
|
||
|
||
/*
|
||
* When the widget is hovered the "fake caret" would normally be narrower than the
|
||
* extra outline displayed around the widget. Let's extend the "fake caret" to match
|
||
* the full width of the widget.
|
||
*/
|
||
&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
||
left: calc( -1 * var(--ck-widget-outline-thickness) );
|
||
right: calc( -1 * var(--ck-widget-outline-thickness) );
|
||
}
|
||
|
||
/*
|
||
* Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).
|
||
*/
|
||
&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
||
top: calc( -1 * var(--ck-widget-outline-thickness) - 1px );
|
||
display: block;
|
||
}
|
||
|
||
/*
|
||
* Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).
|
||
*/
|
||
&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
||
bottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );
|
||
display: block;
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Integration with the read-only mode of the editor.
|
||
*/
|
||
.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {
|
||
display: none;
|
||
}
|
||
|
||
/*
|
||
* Integration with the restricted editing mode (feature) of the editor.
|
||
*/
|
||
.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {
|
||
display: none;
|
||
}
|
||
|
||
/*
|
||
* Integration with the #isEnabled property of the WidgetTypeAround plugin.
|
||
*/
|
||
.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {
|
||
display: none;
|
||
}
|
||
`,`/*
|
||
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
||
*/
|
||
|
||
:root {
|
||
--ck-widget-type-around-button-size: 20px;
|
||
--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);
|
||
--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);
|
||
--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);
|
||
--ck-color-widget-type-around-button-radar-start-alpha: 0;
|
||
--ck-color-widget-type-around-button-radar-end-alpha: .3;
|
||
--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);
|
||
}
|
||
|
||
@define-mixin ck-widget-type-around-button-visible {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
@define-mixin ck-widget-type-around-button-hidden {
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.ck .ck-widget {
|
||
/*
|
||
* Styles of the type around buttons
|
||
*/
|
||
& .ck-widget__type-around__button {
|
||
width: var(--ck-widget-type-around-button-size);
|
||
height: var(--ck-widget-type-around-button-size);
|
||
background: var(--ck-color-widget-type-around-button);
|
||
border-radius: 100px;
|
||
transition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
|
||
|
||
@mixin ck-widget-type-around-button-hidden;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
|
||
& svg {
|
||
width: 10px;
|
||
height: 8px;
|
||
transform: translate(-50%,-50%);
|
||
transition: transform .5s ease;
|
||
margin-top: 1px;
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
transition: none;
|
||
}
|
||
|
||
& * {
|
||
stroke-dasharray: 10;
|
||
stroke-dashoffset: 0;
|
||
|
||
fill: none;
|
||
stroke: var(--ck-color-widget-type-around-button-icon);
|
||
stroke-width: 1.5px;
|
||
stroke-linecap: round;
|
||
stroke-linejoin: round;
|
||
}
|
||
|
||
& line {
|
||
stroke-dasharray: 7;
|
||
}
|
||
}
|
||
|
||
&:hover {
|
||
/*
|
||
* Display the "sonar" around the button when hovered.
|
||
*/
|
||
animation: ck-widget-type-around-button-sonar 1s ease infinite;
|
||
|
||
/*
|
||
* Animate active button's icon.
|
||
*/
|
||
& svg {
|
||
& polyline {
|
||
animation: ck-widget-type-around-arrow-dash 2s linear;
|
||
}
|
||
|
||
& line {
|
||
animation: ck-widget-type-around-arrow-tip-dash 2s linear;
|
||
}
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
animation: none;
|
||
|
||
& svg {
|
||
& polyline {
|
||
animation: none;
|
||
}
|
||
|
||
& line {
|
||
animation: none;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Show type around buttons when the widget gets selected or being hovered.
|
||
*/
|
||
&.ck-widget_selected,
|
||
&:hover {
|
||
& > .ck-widget__type-around > .ck-widget__type-around__button {
|
||
@mixin ck-widget-type-around-button-visible;
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Styles for the buttons when the widget is NOT selected (but the buttons are visible
|
||
* and still can be hovered).
|
||
*/
|
||
&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {
|
||
background: var(--ck-color-widget-type-around-button-hover);
|
||
}
|
||
|
||
/*
|
||
* Styles for the buttons when:
|
||
* - the widget is selected,
|
||
* - or the button is being hovered (regardless of the widget state).
|
||
*/
|
||
&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,
|
||
& > .ck-widget__type-around > .ck-widget__type-around__button:hover {
|
||
background: var(--ck-color-widget-type-around-button-active);
|
||
|
||
&::after {
|
||
width: calc(var(--ck-widget-type-around-button-size) - 2px);
|
||
height: calc(var(--ck-widget-type-around-button-size) - 2px);
|
||
border-radius: 100px;
|
||
background: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Styles for the "before" button when the widget has a selection handle. Because some space
|
||
* is consumed by the handle, the button must be moved slightly to the right to let it breathe.
|
||
*/
|
||
&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {
|
||
margin-left: 20px;
|
||
}
|
||
|
||
/*
|
||
* Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.
|
||
*/
|
||
& .ck-widget__type-around__fake-caret {
|
||
pointer-events: none;
|
||
height: 1px;
|
||
animation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;
|
||
|
||
/*
|
||
* The semi-transparent-outline+background combo improves the contrast
|
||
* when the background underneath the fake caret is dark.
|
||
*/
|
||
outline: solid 1px hsla(0, 0%, 100%, .5);
|
||
background: var(--ck-color-base-text);
|
||
}
|
||
|
||
/*
|
||
* Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).
|
||
* Despite the widget being physically selected in the model, its outline should disappear.
|
||
*/
|
||
&.ck-widget_selected {
|
||
&.ck-widget_type-around_show-fake-caret_before,
|
||
&.ck-widget_type-around_show-fake-caret_after {
|
||
outline-color: transparent;
|
||
}
|
||
}
|
||
|
||
&.ck-widget_type-around_show-fake-caret_before,
|
||
&.ck-widget_type-around_show-fake-caret_after {
|
||
/*
|
||
* When the "fake caret" is visible we simulate that the widget is not selected
|
||
* (despite being physically selected), so the outline color should be for the
|
||
* unselected widget.
|
||
*/
|
||
&.ck-widget_selected:hover {
|
||
outline-color: var(--ck-color-widget-hover-border);
|
||
}
|
||
|
||
/*
|
||
* Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).
|
||
* In this state, the type around buttons would collide with the fake carets so they should disappear.
|
||
*/
|
||
& > .ck-widget__type-around > .ck-widget__type-around__button {
|
||
@mixin ck-widget-type-around-button-hidden;
|
||
}
|
||
|
||
/*
|
||
* Fake horizontal caret integration with the selection handle. When the caret is visible, simply
|
||
* hide the handle because it intersects with the caret (and does not make much sense anyway).
|
||
*/
|
||
&.ck-widget_with-selection-handle {
|
||
&.ck-widget_selected,
|
||
&.ck-widget_selected:hover {
|
||
& > .ck-widget__selection-handle {
|
||
opacity: 0
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Fake horizontal caret integration with the resize UI. When the caret is visible, simply
|
||
* hide the resize UI because it creates too much noise. It can be visible when the user
|
||
* hovers the widget, though.
|
||
*/
|
||
&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {
|
||
opacity: 0
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Styles for the "before" button when the widget has a selection handle in an RTL environment.
|
||
* The selection handler is aligned to the right side of the widget so there is no need to create
|
||
* additional space for it next to the "before" button.
|
||
*/
|
||
.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {
|
||
margin-left: 0;
|
||
margin-right: 20px;
|
||
}
|
||
|
||
/*
|
||
* Hide type around buttons when the widget is selected as a child of a selected
|
||
* nested editable (e.g. mulit-cell table selection).
|
||
*
|
||
* See https://github.com/ckeditor/ckeditor5/issues/7263.
|
||
*/
|
||
.ck-editor__nested-editable.ck-editor__editable_selected {
|
||
& .ck-widget {
|
||
&.ck-widget_selected,
|
||
&:hover {
|
||
& > .ck-widget__type-around > .ck-widget__type-around__button {
|
||
@mixin ck-widget-type-around-button-hidden;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
/*
|
||
* Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).
|
||
*/
|
||
.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {
|
||
background: var(--ck-color-widget-type-around-button-blurred-editable);
|
||
|
||
& svg * {
|
||
stroke: hsl(0,0%,60%);
|
||
}
|
||
}
|
||
|
||
@keyframes ck-widget-type-around-arrow-dash {
|
||
0% {
|
||
stroke-dashoffset: 10;
|
||
}
|
||
20%, 100% {
|
||
stroke-dashoffset: 0;
|
||
}
|
||
}
|
||
|
||
@keyframes ck-widget-type-around-arrow-tip-dash {
|
||
0%, 20% {
|
||
stroke-dashoffset: 7;
|
||
}
|
||
40%, 100% {
|
||
stroke-dashoffset: 0;
|
||
}
|
||
}
|
||
|
||
@keyframes ck-widget-type-around-button-sonar {
|
||
0% {
|
||
box-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));
|
||
}
|
||
50% {
|
||
box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));
|
||
}
|
||
100% {
|
||
box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));
|
||
}
|
||
}
|
||
|
||
@keyframes ck-widget-type-around-fake-caret-pulse {
|
||
0% {
|
||
opacity: 1;
|
||
}
|
||
49% {
|
||
opacity: 1;
|
||
}
|
||
50% {
|
||
opacity: 0;
|
||
}
|
||
99% {
|
||
opacity: 0;
|
||
}
|
||
100% {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
`],sourceRoot:""}]);const y=b},935:C=>{C.exports=function(w){var g=[];return g.toString=function(){return this.map(function(D){var x=w(D);return D[2]?"@media ".concat(D[2]," {").concat(x,"}"):x}).join("")},g.i=function(D,x,T){typeof D=="string"&&(D=[[null,D,""]]);var b={};if(T)for(var y=0;y<this.length;y++){var N=this[y][0];N!=null&&(b[N]=!0)}for(var P=0;P<D.length;P++){var L=[].concat(D[P]);T&&b[L[0]]||(x&&(L[2]?L[2]="".concat(x," and ").concat(L[2]):L[2]=x),g.push(L))}},g}},9372:C=>{function w(D,x){return function(T){if(Array.isArray(T))return T}(D)||function(T,b){var y=T&&(typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"]);if(y!=null){var N,P,L=[],V=!0,U=!1;try{for(y=y.call(T);!(V=(N=y.next()).done)&&(L.push(N.value),!b||L.length!==b);V=!0);}catch($){U=!0,P=$}finally{try{V||y.return==null||y.return()}finally{if(U)throw P}}return L}}(D,x)||function(T,b){if(T){if(typeof T=="string")return g(T,b);var y=Object.prototype.toString.call(T).slice(8,-1);if(y==="Object"&&T.constructor&&(y=T.constructor.name),y==="Map"||y==="Set")return Array.from(T);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return g(T,b)}}(D,x)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function g(D,x){(x==null||x>D.length)&&(x=D.length);for(var T=0,b=new Array(x);T<x;T++)b[T]=D[T];return b}C.exports=function(D){var x=w(D,4),T=x[1],b=x[3];if(!b)return T;if(typeof btoa=="function"){var y=btoa(unescape(encodeURIComponent(JSON.stringify(b)))),N="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(y),P="/*# ".concat(N," */"),L=b.sources.map(function(V){return"/*# sourceURL=".concat(b.sourceRoot||"").concat(V," */")});return[T].concat(L).concat([P]).join(`
|
||
`)}return[T].join(`
|
||
`)}},2591:(C,w,g)=>{var D,x=function(){return D===void 0&&(D=!!(window&&document&&document.all&&!window.atob)),D},T=function(){var B={};return function(X){if(B[X]===void 0){var re=document.querySelector(X);if(window.HTMLIFrameElement&&re instanceof window.HTMLIFrameElement)try{re=re.contentDocument.head}catch{re=null}B[X]=re}return B[X]}}(),b=[];function y(B){for(var X=-1,re=0;re<b.length;re++)if(b[re].identifier===B){X=re;break}return X}function N(B,X){for(var re={},De=[],Re=0;Re<B.length;Re++){var Ue=B[Re],Fe=X.base?Ue[0]+X.base:Ue[0],mt=re[Fe]||0,Ct="".concat(Fe," ").concat(mt);re[Fe]=mt+1;var pt=y(Ct),xn={css:Ue[1],media:Ue[2],sourceMap:Ue[3]};pt!==-1?(b[pt].references++,b[pt].updater(xn)):b.push({identifier:Ct,updater:Ge(xn,X),references:1}),De.push(Ct)}return De}function P(B){var X=document.createElement("style"),re=B.attributes||{};if(re.nonce===void 0){var De=g.nc;De&&(re.nonce=De)}if(Object.keys(re).forEach(function(Ue){X.setAttribute(Ue,re[Ue])}),typeof B.insert=="function")B.insert(X);else{var Re=T(B.insert||"head");if(!Re)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");Re.appendChild(X)}return X}var L,V=(L=[],function(B,X){return L[B]=X,L.filter(Boolean).join(`
|
||
`)});function U(B,X,re,De){var Re=re?"":De.media?"@media ".concat(De.media," {").concat(De.css,"}"):De.css;if(B.styleSheet)B.styleSheet.cssText=V(X,Re);else{var Ue=document.createTextNode(Re),Fe=B.childNodes;Fe[X]&&B.removeChild(Fe[X]),Fe.length?B.insertBefore(Ue,Fe[X]):B.appendChild(Ue)}}function $(B,X,re){var De=re.css,Re=re.media,Ue=re.sourceMap;if(Re?B.setAttribute("media",Re):B.removeAttribute("media"),Ue&&typeof btoa<"u"&&(De+=`
|
||
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(Ue))))," */")),B.styleSheet)B.styleSheet.cssText=De;else{for(;B.firstChild;)B.removeChild(B.firstChild);B.appendChild(document.createTextNode(De))}}var ee=null,le=0;function Ge(B,X){var re,De,Re;if(X.singleton){var Ue=le++;re=ee||(ee=P(X)),De=U.bind(null,re,Ue,!1),Re=U.bind(null,re,Ue,!0)}else re=P(X),De=$.bind(null,re,X),Re=function(){(function(Fe){if(Fe.parentNode===null)return!1;Fe.parentNode.removeChild(Fe)})(re)};return De(B),function(Fe){if(Fe){if(Fe.css===B.css&&Fe.media===B.media&&Fe.sourceMap===B.sourceMap)return;De(B=Fe)}else Re()}}C.exports=function(B,X){(X=X||{}).singleton||typeof X.singleton=="boolean"||(X.singleton=x());var re=N(B=B||[],X);return function(De){if(De=De||[],Object.prototype.toString.call(De)==="[object Array]"){for(var Re=0;Re<re.length;Re++){var Ue=y(re[Re]);b[Ue].references--}for(var Fe=N(De,X),mt=0;mt<re.length;mt++){var Ct=y(re[mt]);b[Ct].references===0&&(b[Ct].updater(),b.splice(Ct,1))}re=Fe}}}}},M={};function I(C){var w=M[C];if(w!==void 0)return w.exports;var g=M[C]={id:C,exports:{}};return _[C](g,g.exports,I),g.exports}I.n=C=>{var w=C&&C.__esModule?()=>C.default:()=>C;return I.d(w,{a:w}),w},I.d=(C,w)=>{for(var g in w)I.o(w,g)&&!I.o(C,g)&&Object.defineProperty(C,g,{enumerable:!0,get:w[g]})},I.o=(C,w)=>Object.prototype.hasOwnProperty.call(C,w),I.nc=void 0;var v={};return(()=>{let C;I.d(v,{default:()=>Rc});try{C={window,document}}catch{C={window:{},document:{}}}const w=C,g=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}();var D;const x={isMac:T(g),isWindows:(D=g,D.indexOf("windows")>-1),isGecko:function(i){return!!i.match(/gecko\/\d+/)}(g),isSafari:function(i){return i.indexOf(" applewebkit/")>-1&&i.indexOf("chrome")===-1}(g),isiOS:function(i){return!!i.match(/iphone|ipad/i)||T(i)&&navigator.maxTouchPoints>0}(g),isAndroid:function(i){return i.indexOf("android")>-1}(g),isBlink:function(i){return i.indexOf("chrome/")>-1&&i.indexOf("edge/")<0}(g),get isMediaForcedColors(){return!!w.window.matchMedia&&w.window.matchMedia("(forced-colors: active)").matches},get isMotionReduced(){return!!w.window.matchMedia&&w.window.matchMedia("(prefers-reduced-motion)").matches},features:{isRegExpUnicodePropertySupported:function(){let i=!1;try{i="ć".search(new RegExp("[\\p{L}]","u"))===0}catch{}return i}()}};function T(i){return i.indexOf("macintosh")>-1}function b(i,e,t,n){t=t||function(c,l){return c===l};const o=Array.isArray(i)?i:Array.prototype.slice.call(i),r=Array.isArray(e)?e:Array.prototype.slice.call(e),s=function(c,l,d){const u=y(c,l,d);if(u===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const h=N(c,u),m=N(l,u),k=y(h,m,d),A=c.length-k,E=l.length-k;return{firstIndex:u,lastIndexOld:A,lastIndexNew:E}}(o,r,t);return n?function(c,l){const{firstIndex:d,lastIndexOld:u,lastIndexNew:h}=c;if(d===-1)return Array(l).fill("equal");let m=[];return d>0&&(m=m.concat(Array(d).fill("equal"))),h-d>0&&(m=m.concat(Array(h-d).fill("insert"))),u-d>0&&(m=m.concat(Array(u-d).fill("delete"))),h<l&&(m=m.concat(Array(l-h).fill("equal"))),m}(s,r.length):function(c,l){const d=[],{firstIndex:u,lastIndexOld:h,lastIndexNew:m}=l;return m-u>0&&d.push({index:u,type:"insert",values:c.slice(u,m)}),h-u>0&&d.push({index:u+(m-u),type:"delete",howMany:h-u}),d}(r,s)}function y(i,e,t){for(let n=0;n<Math.max(i.length,e.length);n++)if(i[n]===void 0||e[n]===void 0||!t(i[n],e[n]))return n;return-1}function N(i,e){return i.slice(e).reverse()}function P(i,e,t){t=t||function(A,E){return A===E};const n=i.length,o=e.length;if(n>200||o>200||n+o>300)return P.fastDiff(i,e,t,!0);let r,s;if(o<n){const A=i;i=e,e=A,r="delete",s="insert"}else r="insert",s="delete";const a=i.length,c=e.length,l=c-a,d={},u={};function h(A){const E=(u[A-1]!==void 0?u[A-1]:-1)+1,S=u[A+1]!==void 0?u[A+1]:-1,O=E>S?-1:1;d[A+O]&&(d[A]=d[A+O].slice(0)),d[A]||(d[A]=[]),d[A].push(E>S?r:s);let z=Math.max(E,S),H=z-A;for(;H<a&&z<c&&t(i[H],e[z]);)H++,z++,d[A].push("equal");return z}let m,k=0;do{for(m=-k;m<l;m++)u[m]=h(m);for(m=l+k;m>l;m--)u[m]=h(m);u[l]=h(l),k++}while(u[l]!==c);return d[l].slice(1)}P.fastDiff=b;const L=function(){return function i(){i.called=!0}};class V{constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=L(),this.off=L()}}const U=new Array(256).fill("").map((i,e)=>("0"+e.toString(16)).slice(-2));function $(){const i=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0;return"e"+U[255&i]+U[i>>8&255]+U[i>>16&255]+U[i>>24&255]+U[255&e]+U[e>>8&255]+U[e>>16&255]+U[e>>24&255]+U[255&t]+U[t>>8&255]+U[t>>16&255]+U[t>>24&255]+U[255&n]+U[n>>8&255]+U[n>>16&255]+U[n>>24&255]}const ee={get(i="normal"){return typeof i!="number"?this[i]||this.normal:i},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function le(i,e){const t=ee.get(e.priority);for(let n=0;n<i.length;n++)if(ee.get(i[n].priority)<t)return void i.splice(n,0,e);i.push(e)}const Ge="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class B extends Error{constructor(e,t,n){super(function(o,r){const s=new WeakSet,a=(d,u)=>{if(typeof u=="object"&&u!==null){if(s.has(u))return`[object ${u.constructor.name}]`;s.add(u)}return u},c=r?` ${JSON.stringify(r,a)}`:"",l=De(o);return o+c+l}(e,n)),this.name="CKEditorError",this.context=t,this.data=n}is(e){return e==="CKEditorError"}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;const n=new B(e.message,t);throw n.stack=e.stack,n}}function X(i,e){console.warn(...Re(i,e))}function re(i,e){console.error(...Re(i,e))}function De(i){return`
|
||
Read more: ${Ge}#error-${i}`}function Re(i,e){const t=De(i);return e?[i,e,t]:[i,t]}const Ue="41.4.2",Fe=new Date(2024,4,17);if(globalThis.CKEDITOR_VERSION)throw new B("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=Ue;const mt=Symbol("listeningTo"),Ct=Symbol("emitterId"),pt=Symbol("delegations"),xn=ye(Object);function ye(i){return i?class extends i{on(e,t,n){this.listenTo(this,e,t,n)}once(e,t,n){let o=!1;this.listenTo(this,e,(r,...s)=>{o||(o=!0,r.off(),t.call(this,r,...s))},n)}off(e,t){this.stopListening(this,e,t)}listenTo(e,t,n,o={}){let r,s;this[mt]||(this[mt]={});const a=this[mt];Yi(e)||Jo(e);const c=Yi(e);(r=a[c])||(r=a[c]={emitter:e,callbacks:{}}),(s=r.callbacks[t])||(s=r.callbacks[t]=[]),s.push(n),function(l,d,u,h,m){d._addEventListener?d._addEventListener(u,h,m):l._addEventListener.call(d,u,h,m)}(this,e,t,n,o)}stopListening(e,t,n){const o=this[mt];let r=e&&Yi(e);const s=o&&r?o[r]:void 0,a=s&&t?s.callbacks[t]:void 0;if(!(!o||e&&!s||t&&!a))if(n)$e(this,e,t,n),a.indexOf(n)!==-1&&(a.length===1?delete s.callbacks[t]:$e(this,e,t,n));else if(a){for(;n=a.pop();)$e(this,e,t,n);delete s.callbacks[t]}else if(s){for(t in s.callbacks)this.stopListening(e,t);delete o[r]}else{for(r in o)this.stopListening(o[r].emitter);delete this[mt]}}fire(e,...t){try{const n=e instanceof V?e:new V(this,e),o=n.name;let r=Z(this,o);if(n.path.push(this),r){const a=[n,...t];r=Array.from(r);for(let c=0;c<r.length&&(r[c].callback.apply(this,a),n.off.called&&(delete n.off.called,this._removeEventListener(o,r[c].callback)),!n.stop.called);c++);}const s=this[pt];if(s){const a=s.get(o),c=s.get("*");a&&fe(a,n,t),c&&fe(c,n,t)}return n.return}catch(n){B.rethrowUnexpectedError(n,this)}}delegate(...e){return{to:(t,n)=>{this[pt]||(this[pt]=new Map),e.forEach(o=>{const r=this[pt].get(o);r?r.set(t,n):this[pt].set(o,new Map([[t,n]]))})}}}stopDelegating(e,t){if(this[pt])if(e)if(t){const n=this[pt].get(e);n&&n.delete(t)}else this[pt].delete(e);else this[pt].clear()}_addEventListener(e,t,n){(function(s,a){const c=Qi(s);if(c[a])return;let l=a,d=null;const u=[];for(;l!==""&&!c[l];)c[l]={callbacks:[],childEvents:[]},u.push(c[l]),d&&c[l].childEvents.push(d),d=l,l=l.substr(0,l.lastIndexOf(":"));if(l!==""){for(const h of u)h.callbacks=c[l].callbacks.slice();c[l].childEvents.push(d)}})(this,e);const o=Zi(this,e),r={callback:t,priority:ee.get(n.priority)};for(const s of o)le(s,r)}_removeEventListener(e,t){const n=Zi(this,e);for(const o of n)for(let r=0;r<o.length;r++)o[r].callback==t&&(o.splice(r,1),r--)}}:xn}function Jo(i,e){i[Ct]||(i[Ct]=e||$())}function Yi(i){return i[Ct]}function Qi(i){return i._events||Object.defineProperty(i,"_events",{value:{}}),i._events}function Zi(i,e){const t=Qi(i)[e];if(!t)return[];let n=[t.callbacks];for(let o=0;o<t.childEvents.length;o++){const r=Zi(i,t.childEvents[o]);n=n.concat(r)}return n}function Z(i,e){let t;return i._events&&(t=i._events[e])&&t.callbacks.length?t.callbacks:e.indexOf(":")>-1?Z(i,e.substr(0,e.lastIndexOf(":"))):null}function fe(i,e,t){for(let[n,o]of i){o?typeof o=="function"&&(o=o(e.name)):o=e.name;const r=new V(e.source,o);r.path=[...e.path],n.fire(r,...t)}}function $e(i,e,t,n){e._removeEventListener?e._removeEventListener(t,n):i._removeEventListener.call(e,t,n)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(i=>{ye[i]=xn.prototype[i]});const he=function(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")},Bt=Symbol("observableProperties"),tn=Symbol("boundObservables"),nn=Symbol("boundProperties"),it=Symbol("decoratedMethods"),on=Symbol("decoratedOriginal"),Dn=xe(ye());function xe(i){return i?class extends i{set(e,t){if(he(e))return void Object.keys(e).forEach(o=>{this.set(o,e[o])},this);En(this);const n=this[Bt];if(e in this&&!n.has(e))throw new B("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>n.get(e),set(o){const r=n.get(e);let s=this.fire(`set:${e}`,e,o,r);s===void 0&&(s=o),r===s&&n.has(e)||(n.set(e,s),this.fire(`change:${e}`,e,s,r))}}),this[e]=t}bind(...e){if(!e.length||!Xo(e))throw new B("observable-bind-wrong-properties",this);if(new Set(e).size!==e.length)throw new B("observable-bind-duplicate-properties",this);En(this);const t=this[nn];e.forEach(o=>{if(t.has(o))throw new B("observable-bind-rebind",this)});const n=new Map;return e.forEach(o=>{const r={property:o,to:[]};t.set(o,r),n.set(o,r)}),{to:Ji,toMany:Xi,_observable:this,_bindProperties:e,_to:[],_bindings:n}}unbind(...e){if(!this[Bt])return;const t=this[nn],n=this[tn];if(e.length){if(!Xo(e))throw new B("observable-unbind-wrong-properties",this);e.forEach(o=>{const r=t.get(o);r&&(r.to.forEach(([s,a])=>{const c=n.get(s),l=c[a];l.delete(r),l.size||delete c[a],Object.keys(c).length||(n.delete(s),this.stopListening(s,"change"))}),t.delete(o))})}else n.forEach((o,r)=>{this.stopListening(r,"change")}),n.clear(),t.clear()}decorate(e){En(this);const t=this[e];if(!t)throw new B("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,(n,o)=>{n.return=t.apply(this,o)}),this[e]=function(...n){return this.fire(e,n)},this[e][on]=t,this[it]||(this[it]=[]),this[it].push(e)}stopListening(e,t,n){if(!e&&this[it]){for(const o of this[it])this[o]=this[o][on];delete this[it]}super.stopListening(e,t,n)}}:Dn}function En(i){i[Bt]||(Object.defineProperty(i,Bt,{value:new Map}),Object.defineProperty(i,tn,{value:new Map}),Object.defineProperty(i,nn,{value:new Map}))}function Ji(...i){const e=function(...r){if(!r.length)throw new B("observable-bind-to-parse-error",null);const s={to:[]};let a;return typeof r[r.length-1]=="function"&&(s.callback=r.pop()),r.forEach(c=>{if(typeof c=="string")a.properties.push(c);else{if(typeof c!="object")throw new B("observable-bind-to-parse-error",null);a={observable:c,properties:[]},s.to.push(a)}}),s}(...i),t=Array.from(this._bindings.keys()),n=t.length;if(!e.callback&&e.to.length>1)throw new B("observable-bind-to-no-callback",this);if(n>1&&e.callback)throw new B("observable-bind-to-extra-callback",this);var o;e.to.forEach(r=>{if(r.properties.length&&r.properties.length!==n)throw new B("observable-bind-to-properties-length",this);r.properties.length||(r.properties=this._bindProperties)}),this._to=e.to,e.callback&&(this._bindings.get(t[0]).callback=e.callback),o=this._observable,this._to.forEach(r=>{const s=o[tn];let a;s.get(r.observable)||o.listenTo(r.observable,"change",(c,l)=>{a=s.get(r.observable)[l],a&&a.forEach(d=>{eo(o,d.property)})})}),function(r){let s;r._bindings.forEach((a,c)=>{r._to.forEach(l=>{s=l.properties[a.callback?0:r._bindProperties.indexOf(c)],a.to.push([l.observable,s]),function(d,u,h,m){const k=d[tn],A=k.get(h),E=A||{};E[m]||(E[m]=new Set),E[m].add(u),A||k.set(h,E)}(r._observable,a,l.observable,s)})})}(this),this._bindProperties.forEach(r=>{eo(this._observable,r)})}function Xi(i,e,t){if(this._bindings.size>1)throw new B("observable-bind-to-many-not-one-binding",this);this.to(...function(n,o){const r=n.map(s=>[s,o]);return Array.prototype.concat.apply([],r)}(i,e),t)}function Xo(i){return i.every(e=>typeof e=="string")}function eo(i,e){const t=i[nn].get(e);let n;t.callback?n=t.callback.apply(i,t.to.map(o=>o[0][o[1]])):(n=t.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(i,e)?i[e]=n:i.set(e,n)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(i=>{xe[i]=Dn.prototype[i]});class ui{constructor(){this._replacedElements=[]}replace(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}restore(){this._replacedElements.forEach(({element:e,newElement:t})=>{e.style.display="",t&&t.remove()}),this._replacedElements=[]}}function hi(i){let e=0;for(const t of i)e++;return e}function ot(i,e){const t=Math.min(i.length,e.length);for(let n=0;n<t;n++)if(i[n]!=e[n])return n;return i.length==e.length?"same":i.length<e.length?"prefix":"extension"}function Ee(i){return!(!i||!i[Symbol.iterator])}const Nt=typeof zn=="object"&&zn&&zn.Object===Object&&zn;var gi=typeof self=="object"&&self&&self.Object===Object&&self;const Wt=Nt||gi||Function("return this")(),rn=Wt.Symbol;var Kc=Object.prototype,dw=Kc.hasOwnProperty,uw=Kc.toString,to=rn?rn.toStringTag:void 0;const hw=function(i){var e=dw.call(i,to),t=i[to];try{i[to]=void 0;var n=!0}catch{}var o=uw.call(i);return n&&(e?i[to]=t:delete i[to]),o};var gw=Object.prototype.toString;const mw=function(i){return gw.call(i)};var Yc=rn?rn.toStringTag:void 0;const Tn=function(i){return i==null?i===void 0?"[object Undefined]":"[object Null]":Yc&&Yc in Object(i)?hw(i):mw(i)},vt=Array.isArray,Ot=function(i){return i!=null&&typeof i=="object"},Qc=function(i){return typeof i=="string"||!vt(i)&&Ot(i)&&Tn(i)=="[object String]"};function Pt(i,e,t={},n=[]){const o=t&&t.xmlns,r=o?i.createElementNS(o,e):i.createElement(e);for(const s in t)r.setAttribute(s,t[s]);!Qc(n)&&Ee(n)||(n=[n]);for(let s of n)Qc(s)&&(s=i.createTextNode(s)),r.appendChild(s);return r}const Zc=function(i,e){return function(t){return i(e(t))}},Ds=Zc(Object.getPrototypeOf,Object);var pw=Function.prototype,fw=Object.prototype,Jc=pw.toString,kw=fw.hasOwnProperty,bw=Jc.call(Object);const yt=function(i){if(!Ot(i)||Tn(i)!="[object Object]")return!1;var e=Ds(i);if(e===null)return!0;var t=kw.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Jc.call(t)==bw},ww=function(){this.__data__=[],this.size=0},no=function(i,e){return i===e||i!=i&&e!=e},er=function(i,e){for(var t=i.length;t--;)if(no(i[t][0],e))return t;return-1};var _w=Array.prototype.splice;const Aw=function(i){var e=this.__data__,t=er(e,i);return!(t<0)&&(t==e.length-1?e.pop():_w.call(e,t,1),--this.size,!0)},Cw=function(i){var e=this.__data__,t=er(e,i);return t<0?void 0:e[t][1]},vw=function(i){return er(this.__data__,i)>-1},yw=function(i,e){var t=this.__data__,n=er(t,i);return n<0?(++this.size,t.push([i,e])):t[n][1]=e,this};function mi(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var n=i[e];this.set(n[0],n[1])}}mi.prototype.clear=ww,mi.prototype.delete=Aw,mi.prototype.get=Cw,mi.prototype.has=vw,mi.prototype.set=yw;const tr=mi,xw=function(){this.__data__=new tr,this.size=0},Dw=function(i){var e=this.__data__,t=e.delete(i);return this.size=e.size,t},Ew=function(i){return this.__data__.get(i)},Tw=function(i){return this.__data__.has(i)},jn=function(i){if(!he(i))return!1;var e=Tn(i);return e=="[object Function]"||e=="[object GeneratorFunction]"||e=="[object AsyncFunction]"||e=="[object Proxy]"},Es=Wt["__core-js_shared__"];var Xc=function(){var i=/[^.]+$/.exec(Es&&Es.keys&&Es.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();const Mw=function(i){return!!Xc&&Xc in i};var Iw=Function.prototype.toString;const Fn=function(i){if(i!=null){try{return Iw.call(i)}catch{}try{return i+""}catch{}}return""};var Sw=/^\[object .+?Constructor\]$/,Bw=Function.prototype,Nw=Object.prototype,Ow=Bw.toString,Pw=Nw.hasOwnProperty,Lw=RegExp("^"+Ow.call(Pw).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const zw=function(i){return!(!he(i)||Mw(i))&&(jn(i)?Lw:Sw).test(Fn(i))},Rw=function(i,e){return i==null?void 0:i[e]},Vn=function(i,e){var t=Rw(i,e);return zw(t)?t:void 0},io=Vn(Wt,"Map"),oo=Vn(Object,"create"),jw=function(){this.__data__=oo?oo(null):{},this.size=0},Fw=function(i){var e=this.has(i)&&delete this.__data__[i];return this.size-=e?1:0,e};var Vw=Object.prototype.hasOwnProperty;const Hw=function(i){var e=this.__data__;if(oo){var t=e[i];return t==="__lodash_hash_undefined__"?void 0:t}return Vw.call(e,i)?e[i]:void 0};var Uw=Object.prototype.hasOwnProperty;const Ww=function(i){var e=this.__data__;return oo?e[i]!==void 0:Uw.call(e,i)},qw=function(i,e){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=oo&&e===void 0?"__lodash_hash_undefined__":e,this};function pi(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var n=i[e];this.set(n[0],n[1])}}pi.prototype.clear=jw,pi.prototype.delete=Fw,pi.prototype.get=Hw,pi.prototype.has=Ww,pi.prototype.set=qw;const el=pi,Gw=function(){this.size=0,this.__data__={hash:new el,map:new(io||tr),string:new el}},$w=function(i){var e=typeof i;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?i!=="__proto__":i===null},nr=function(i,e){var t=i.__data__;return $w(e)?t[typeof e=="string"?"string":"hash"]:t.map},Kw=function(i){var e=nr(this,i).delete(i);return this.size-=e?1:0,e},Yw=function(i){return nr(this,i).get(i)},Qw=function(i){return nr(this,i).has(i)},Zw=function(i,e){var t=nr(this,i),n=t.size;return t.set(i,e),this.size+=t.size==n?0:1,this};function fi(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var n=i[e];this.set(n[0],n[1])}}fi.prototype.clear=Gw,fi.prototype.delete=Kw,fi.prototype.get=Yw,fi.prototype.has=Qw,fi.prototype.set=Zw;const ir=fi,Jw=function(i,e){var t=this.__data__;if(t instanceof tr){var n=t.__data__;if(!io||n.length<199)return n.push([i,e]),this.size=++t.size,this;t=this.__data__=new ir(n)}return t.set(i,e),this.size=t.size,this};function ki(i){var e=this.__data__=new tr(i);this.size=e.size}ki.prototype.clear=xw,ki.prototype.delete=Dw,ki.prototype.get=Ew,ki.prototype.has=Tw,ki.prototype.set=Jw;const bi=ki,Xw=function(i,e){for(var t=-1,n=i==null?0:i.length;++t<n&&e(i[t],t,i)!==!1;);return i},or=function(){try{var i=Vn(Object,"defineProperty");return i({},"",{}),i}catch{}}(),rr=function(i,e,t){e=="__proto__"&&or?or(i,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):i[e]=t};var e_=Object.prototype.hasOwnProperty;const Ts=function(i,e,t){var n=i[e];e_.call(i,e)&&no(n,t)&&(t!==void 0||e in i)||rr(i,e,t)},wi=function(i,e,t,n){var o=!t;t||(t={});for(var r=-1,s=e.length;++r<s;){var a=e[r],c=n?n(t[a],i[a],a,t,i):void 0;c===void 0&&(c=i[a]),o?rr(t,a,c):Ts(t,a,c)}return t},t_=function(i,e){for(var t=-1,n=Array(i);++t<i;)n[t]=e(t);return n},tl=function(i){return Ot(i)&&Tn(i)=="[object Arguments]"};var nl=Object.prototype,n_=nl.hasOwnProperty,i_=nl.propertyIsEnumerable;const sr=tl(function(){return arguments}())?tl:function(i){return Ot(i)&&n_.call(i,"callee")&&!i_.call(i,"callee")},o_=function(){return!1};var il=p&&!p.nodeType&&p,ol=il&&!0&&f&&!f.nodeType&&f,rl=ol&&ol.exports===il?Wt.Buffer:void 0;const ro=(rl?rl.isBuffer:void 0)||o_;var r_=/^(?:0|[1-9]\d*)$/;const ar=function(i,e){var t=typeof i;return!!(e=e??9007199254740991)&&(t=="number"||t!="symbol"&&r_.test(i))&&i>-1&&i%1==0&&i<e},Ms=function(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=9007199254740991};var je={};je["[object Float32Array]"]=je["[object Float64Array]"]=je["[object Int8Array]"]=je["[object Int16Array]"]=je["[object Int32Array]"]=je["[object Uint8Array]"]=je["[object Uint8ClampedArray]"]=je["[object Uint16Array]"]=je["[object Uint32Array]"]=!0,je["[object Arguments]"]=je["[object Array]"]=je["[object ArrayBuffer]"]=je["[object Boolean]"]=je["[object DataView]"]=je["[object Date]"]=je["[object Error]"]=je["[object Function]"]=je["[object Map]"]=je["[object Number]"]=je["[object Object]"]=je["[object RegExp]"]=je["[object Set]"]=je["[object String]"]=je["[object WeakMap]"]=!1;const s_=function(i){return Ot(i)&&Ms(i.length)&&!!je[Tn(i)]},Is=function(i){return function(e){return i(e)}};var sl=p&&!p.nodeType&&p,so=sl&&!0&&f&&!f.nodeType&&f,Ss=so&&so.exports===sl&&Nt.process;const _i=function(){try{var i=so&&so.require&&so.require("util").types;return i||Ss&&Ss.binding&&Ss.binding("util")}catch{}}();var al=_i&&_i.isTypedArray;const Bs=al?Is(al):s_;var a_=Object.prototype.hasOwnProperty;const cl=function(i,e){var t=vt(i),n=!t&&sr(i),o=!t&&!n&&ro(i),r=!t&&!n&&!o&&Bs(i),s=t||n||o||r,a=s?t_(i.length,String):[],c=a.length;for(var l in i)!e&&!a_.call(i,l)||s&&(l=="length"||o&&(l=="offset"||l=="parent")||r&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ar(l,c))||a.push(l);return a};var c_=Object.prototype;const Ns=function(i){var e=i&&i.constructor;return i===(typeof e=="function"&&e.prototype||c_)},l_=Zc(Object.keys,Object);var d_=Object.prototype.hasOwnProperty;const u_=function(i){if(!Ns(i))return l_(i);var e=[];for(var t in Object(i))d_.call(i,t)&&t!="constructor"&&e.push(t);return e},cr=function(i){return i!=null&&Ms(i.length)&&!jn(i)},ao=function(i){return cr(i)?cl(i):u_(i)},h_=function(i,e){return i&&wi(e,ao(e),i)},g_=function(i){var e=[];if(i!=null)for(var t in Object(i))e.push(t);return e};var m_=Object.prototype.hasOwnProperty;const p_=function(i){if(!he(i))return g_(i);var e=Ns(i),t=[];for(var n in i)(n!="constructor"||!e&&m_.call(i,n))&&t.push(n);return t},Ai=function(i){return cr(i)?cl(i,!0):p_(i)},f_=function(i,e){return i&&wi(e,Ai(e),i)};var ll=p&&!p.nodeType&&p,dl=ll&&!0&&f&&!f.nodeType&&f,ul=dl&&dl.exports===ll?Wt.Buffer:void 0,hl=ul?ul.allocUnsafe:void 0;const gl=function(i,e){if(e)return i.slice();var t=i.length,n=hl?hl(t):new i.constructor(t);return i.copy(n),n},ml=function(i,e){var t=-1,n=i.length;for(e||(e=Array(n));++t<n;)e[t]=i[t];return e},k_=function(i,e){for(var t=-1,n=i==null?0:i.length,o=0,r=[];++t<n;){var s=i[t];e(s,t,i)&&(r[o++]=s)}return r},pl=function(){return[]};var b_=Object.prototype.propertyIsEnumerable,fl=Object.getOwnPropertySymbols;const Os=fl?function(i){return i==null?[]:(i=Object(i),k_(fl(i),function(e){return b_.call(i,e)}))}:pl,w_=function(i,e){return wi(i,Os(i),e)},kl=function(i,e){for(var t=-1,n=e.length,o=i.length;++t<n;)i[o+t]=e[t];return i},bl=Object.getOwnPropertySymbols?function(i){for(var e=[];i;)kl(e,Os(i)),i=Ds(i);return e}:pl,__=function(i,e){return wi(i,bl(i),e)},wl=function(i,e,t){var n=e(i);return vt(i)?n:kl(n,t(i))},Ps=function(i){return wl(i,ao,Os)},A_=function(i){return wl(i,Ai,bl)},Ls=Vn(Wt,"DataView"),zs=Vn(Wt,"Promise"),Rs=Vn(Wt,"Set"),js=Vn(Wt,"WeakMap");var _l="[object Map]",Al="[object Promise]",Cl="[object Set]",vl="[object WeakMap]",yl="[object DataView]",C_=Fn(Ls),v_=Fn(io),y_=Fn(zs),x_=Fn(Rs),D_=Fn(js),Hn=Tn;(Ls&&Hn(new Ls(new ArrayBuffer(1)))!=yl||io&&Hn(new io)!=_l||zs&&Hn(zs.resolve())!=Al||Rs&&Hn(new Rs)!=Cl||js&&Hn(new js)!=vl)&&(Hn=function(i){var e=Tn(i),t=e=="[object Object]"?i.constructor:void 0,n=t?Fn(t):"";if(n)switch(n){case C_:return yl;case v_:return _l;case y_:return Al;case x_:return Cl;case D_:return vl}return e});const co=Hn;var E_=Object.prototype.hasOwnProperty;const T_=function(i){var e=i.length,t=new i.constructor(e);return e&&typeof i[0]=="string"&&E_.call(i,"index")&&(t.index=i.index,t.input=i.input),t},lr=Wt.Uint8Array,Fs=function(i){var e=new i.constructor(i.byteLength);return new lr(e).set(new lr(i)),e},M_=function(i,e){var t=e?Fs(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.byteLength)};var I_=/\w*$/;const S_=function(i){var e=new i.constructor(i.source,I_.exec(i));return e.lastIndex=i.lastIndex,e};var xl=rn?rn.prototype:void 0,Dl=xl?xl.valueOf:void 0;const B_=function(i){return Dl?Object(Dl.call(i)):{}},El=function(i,e){var t=e?Fs(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)},N_=function(i,e,t){var n=i.constructor;switch(e){case"[object ArrayBuffer]":return Fs(i);case"[object Boolean]":case"[object Date]":return new n(+i);case"[object DataView]":return M_(i,t);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return El(i,t);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(i);case"[object RegExp]":return S_(i);case"[object Symbol]":return B_(i)}};var Tl=Object.create;const O_=function(){function i(){}return function(e){if(!he(e))return{};if(Tl)return Tl(e);i.prototype=e;var t=new i;return i.prototype=void 0,t}}(),Ml=function(i){return typeof i.constructor!="function"||Ns(i)?{}:O_(Ds(i))},P_=function(i){return Ot(i)&&co(i)=="[object Map]"};var Il=_i&&_i.isMap;const L_=Il?Is(Il):P_,z_=function(i){return Ot(i)&&co(i)=="[object Set]"};var Sl=_i&&_i.isSet;const R_=Sl?Is(Sl):z_;var Bl="[object Arguments]",Nl="[object Function]",Ol="[object Object]",Le={};Le[Bl]=Le["[object Array]"]=Le["[object ArrayBuffer]"]=Le["[object DataView]"]=Le["[object Boolean]"]=Le["[object Date]"]=Le["[object Float32Array]"]=Le["[object Float64Array]"]=Le["[object Int8Array]"]=Le["[object Int16Array]"]=Le["[object Int32Array]"]=Le["[object Map]"]=Le["[object Number]"]=Le[Ol]=Le["[object RegExp]"]=Le["[object Set]"]=Le["[object String]"]=Le["[object Symbol]"]=Le["[object Uint8Array]"]=Le["[object Uint8ClampedArray]"]=Le["[object Uint16Array]"]=Le["[object Uint32Array]"]=!0,Le["[object Error]"]=Le[Nl]=Le["[object WeakMap]"]=!1;const Vs=function i(e,t,n,o,r,s){var a,c=1&t,l=2&t,d=4&t;if(n&&(a=r?n(e,o,r,s):n(e)),a!==void 0)return a;if(!he(e))return e;var u=vt(e);if(u){if(a=T_(e),!c)return ml(e,a)}else{var h=co(e),m=h==Nl||h=="[object GeneratorFunction]";if(ro(e))return gl(e,c);if(h==Ol||h==Bl||m&&!r){if(a=l||m?{}:Ml(e),!c)return l?__(e,f_(a,e)):w_(e,h_(a,e))}else{if(!Le[h])return r?e:{};a=N_(e,h,c)}}s||(s=new bi);var k=s.get(e);if(k)return k;s.set(e,a),R_(e)?e.forEach(function(E){a.add(i(E,t,n,E,e,s))}):L_(e)&&e.forEach(function(E,S){a.set(S,i(E,t,n,S,e,s))});var A=u?void 0:(d?l?A_:Ps:l?Ai:ao)(e);return Xw(A||e,function(E,S){A&&(E=e[S=E]),Ts(a,S,i(E,t,n,S,e,s))}),a},Hs=function(i,e){return Vs(i,5,e=typeof e=="function"?e:void 0)},Un=function(i){return Ot(i)&&i.nodeType===1&&!yt(i)};class Pl{constructor(e,t){this._config={},t&&this.define(Ll(t)),e&&this._setObjectToTarget(this._config,e)}set(e,t){this._setToTarget(this._config,e,t)}define(e,t){this._setToTarget(this._config,e,t,!0)}get(e){return this._getFromSource(this._config,e)}*names(){for(const e of Object.keys(this._config))yield e}_setToTarget(e,t,n,o=!1){if(yt(t))return void this._setObjectToTarget(e,t,o);const r=t.split(".");t=r.pop();for(const s of r)yt(e[s])||(e[s]={}),e=e[s];if(yt(n))return yt(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,n,o);o&&e[t]!==void 0||(e[t]=n)}_getFromSource(e,t){const n=t.split(".");t=n.pop();for(const o of n){if(!yt(e[o])){e=null;break}e=e[o]}return e?Ll(e[t]):void 0}_setObjectToTarget(e,t,n){Object.keys(t).forEach(o=>{this._setToTarget(e,o,t[o],n)})}}function Ll(i){return Hs(i,j_)}function j_(i){return Un(i)||typeof i=="function"?i:void 0}function Mn(i){if(i){if(i.defaultView)return i instanceof i.defaultView.Document;if(i.ownerDocument&&i.ownerDocument.defaultView)return i instanceof i.ownerDocument.defaultView.Node}return!1}function dr(i){const e=Object.prototype.toString.apply(i);return e=="[object Window]"||e=="[object global]"}const zl=Lt(ye());function Lt(i){return i?class extends i{listenTo(e,t,n,o={}){if(Mn(e)||dr(e)){const r={capture:!!o.useCapture,passive:!!o.usePassive},s=this._getProxyEmitter(e,r)||new F_(e,r);this.listenTo(s,t,n,o)}else super.listenTo(e,t,n,o)}stopListening(e,t,n){if(Mn(e)||dr(e)){const o=this._getAllProxyEmitters(e);for(const r of o)this.stopListening(r,t,n)}else super.stopListening(e,t,n)}_getProxyEmitter(e,t){return function(n,o){const r=n[mt];return r&&r[o]?r[o].emitter:null}(this,Rl(e,t))}_getAllProxyEmitters(e){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(t=>this._getProxyEmitter(e,t)).filter(t=>!!t)}}:zl}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(i=>{Lt[i]=zl.prototype[i]});class F_ extends ye(){constructor(e,t){super(),Jo(this,Rl(e,t)),this._domNode=e,this._options=t}attach(e){if(this._domListeners&&this._domListeners[e])return;const t=this._createDomListener(e);this._domNode.addEventListener(e,t,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=t}detach(e){let t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()}_addEventListener(e,t,n){this.attach(e),ye().prototype._addEventListener.call(this,e,t,n)}_removeEventListener(e,t){ye().prototype._removeEventListener.call(this,e,t),this.detach(e)}_createDomListener(e){const t=n=>{this.fire(e,n)};return t.removeListener=()=>{this._domNode.removeEventListener(e,t,this._options),delete this._domListeners[e]},t}}function Rl(i,e){let t=function(n){return n["data-ck-expando"]||(n["data-ck-expando"]=$())}(i);for(const n of Object.keys(e).sort())e[n]&&(t+="-"+n);return t}function jl(i){const e=i.ownerDocument.defaultView.getComputedStyle(i);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}function Ze(i){return Object.prototype.toString.call(i)=="[object Text]"}function ur(i){return Object.prototype.toString.apply(i)=="[object Range]"}function Fl(i){return i&&i.parentNode?i.offsetParent===w.document.body?null:i.offsetParent:null}const Vl=["top","right","bottom","left","width","height"];class ge{constructor(e){const t=ur(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),Us(e)||t)if(t){const n=ge.getDomRangeRects(e);hr(this,ge.getBoundingRect(n))}else hr(this,e.getBoundingClientRect());else if(dr(e)){const{innerWidth:n,innerHeight:o}=e;hr(this,{top:0,right:n,bottom:o,left:0,width:n,height:o})}else hr(this,e)}clone(){return new ge(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(e){const t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left),width:0,height:0};if(t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0)return null;{const n=new ge(t);return n._source=this._source,n}}getIntersectionArea(e){const t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){const e=this._source;let t=this.clone();if(Hl(e))return t;let n,o=e,r=e.parentNode||e.commonAncestorContainer;for(;r&&!Hl(r);){const a=((s=r)instanceof HTMLElement?s.ownerDocument.defaultView.getComputedStyle(s).overflow:"visible")==="visible";o instanceof HTMLElement&&Ul(o)==="absolute"&&(n=o);const c=Ul(r);if(a||n&&(c==="relative"&&a||c!=="relative")){o=r,r=r.parentNode;continue}const l=new ge(r),d=t.getIntersection(l);if(!d)return null;d.getArea()<t.getArea()&&(t=d),o=r,r=r.parentNode}var s;return t}isEqual(e){for(const t of Vl)if(this[t]!==e[t])return!1;return!0}contains(e){const t=this.getIntersection(e);return!(!t||!t.isEqual(e))}toAbsoluteRect(){const{scrollX:e,scrollY:t}=w.window,n=this.clone().moveBy(e,t);if(Us(n._source)){const o=Fl(n._source);o&&function(r,s){const a=new ge(s),c=jl(s);let l=0,d=0;l-=a.left,d-=a.top,l+=s.scrollLeft,d+=s.scrollTop,l-=c.left,d-=c.top,r.moveBy(l,d)}(n,o)}return n}excludeScrollbarsAndBorders(){const e=this._source;let t,n,o;if(dr(e))t=e.innerWidth-e.document.documentElement.clientWidth,n=e.innerHeight-e.document.documentElement.clientHeight,o=e.getComputedStyle(e.document.documentElement).direction;else{const r=jl(e);t=e.offsetWidth-e.clientWidth-r.left-r.right,n=e.offsetHeight-e.clientHeight-r.top-r.bottom,o=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,o==="ltr"?this.right-=t:this.left+=t,this.height-=n,this.bottom-=n,this}static getDomRangeRects(e){const t=[],n=Array.from(e.getClientRects());if(n.length)for(const o of n)t.push(new ge(o));else{let o=e.startContainer;Ze(o)&&(o=o.parentNode);const r=new ge(o.getBoundingClientRect());r.right=r.left,r.width=0,t.push(r)}return t}static getBoundingRect(e){const t={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let n=0;for(const o of e)n++,t.left=Math.min(t.left,o.left),t.top=Math.min(t.top,o.top),t.right=Math.max(t.right,o.right),t.bottom=Math.max(t.bottom,o.bottom);return n==0?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new ge(t))}}function hr(i,e){for(const t of Vl)i[t]=e[t]}function Hl(i){return!!Us(i)&&i===i.ownerDocument.body}function Us(i){return i!==null&&typeof i=="object"&&i.nodeType===1&&typeof i.getBoundingClientRect=="function"}function Ul(i){return i instanceof HTMLElement?i.ownerDocument.defaultView.getComputedStyle(i).position:"static"}const Je=class{constructor(i,e){Je._observerInstance||Je._createObserver(),this._element=i,this._callback=e,Je._addElementCallback(i,e),Je._observerInstance.observe(i)}get element(){return this._element}destroy(){Je._deleteElementCallback(this._element,this._callback)}static _addElementCallback(i,e){Je._elementCallbacks||(Je._elementCallbacks=new Map);let t=Je._elementCallbacks.get(i);t||(t=new Set,Je._elementCallbacks.set(i,t)),t.add(e)}static _deleteElementCallback(i,e){const t=Je._getElementCallbacks(i);t&&(t.delete(e),t.size||(Je._elementCallbacks.delete(i),Je._observerInstance.unobserve(i))),Je._elementCallbacks&&!Je._elementCallbacks.size&&(Je._observerInstance=null,Je._elementCallbacks=null)}static _getElementCallbacks(i){return Je._elementCallbacks?Je._elementCallbacks.get(i):null}static _createObserver(){Je._observerInstance=new w.window.ResizeObserver(i=>{for(const e of i){const t=Je._getElementCallbacks(e.target);if(t)for(const n of t)n(e)}})}};let lo=Je;function Wl(i,e){i instanceof HTMLTextAreaElement&&(i.value=e),i.innerHTML=e}function Ci(i){return e=>e+i}function uo(i){let e=0;for(;i.previousSibling;)i=i.previousSibling,e++;return e}function ql(i,e,t){i.insertBefore(t,i.childNodes[e]||null)}function ho(i){return i&&i.nodeType===Node.COMMENT_NODE}function Wn(i){return!!(i&&i.getClientRects&&i.getClientRects().length)}lo._observerInstance=null,lo._elementCallbacks=null;var Gl=Math.pow;function gr({element:i,target:e,positions:t,limiter:n,fitInViewport:o,viewportOffsetConfig:r}){jn(e)&&(e=e()),jn(n)&&(n=n());const s=Fl(i),a=function(h){h=Object.assign({top:0,bottom:0,left:0,right:0},h);const m=new ge(w.window);return m.top+=h.top,m.height-=h.top,m.bottom-=h.bottom,m.height-=h.bottom,m}(r),c=new ge(i),l=$l(e,a);let d;if(!l||!a.getIntersection(l))return null;const u={targetRect:l,elementRect:c,positionedElementAncestor:s,viewportRect:a};if(n||o){if(n){const h=$l(n,a);h&&(u.limiterRect=h)}d=function(h,m){const{elementRect:k}=m,A=k.getArea(),E=h.map(z=>new Kl(z,m)).filter(z=>!!z.name);let S=0,O=null;for(const z of E){const{limiterIntersectionArea:H,viewportIntersectionArea:Q}=z;if(H===A)return z;const ne=Gl(Q,2)+Gl(H,2);ne>S&&(S=ne,O=z)}return O}(t,u)}else d=new Kl(t[0],u);return d}function $l(i,e){const t=new ge(i).getVisible();return t?t.getIntersection(e):null}class Kl{constructor(e,t){const n=e(t.targetRect,t.elementRect,t.viewportRect,t.limiterRect);if(!n)return;const{left:o,top:r,name:s,config:a}=n;this.name=s,this.config=a,this._positioningFunctionCoordinates={left:o,top:r},this._options=t}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const e=this._options.limiterRect;return e?e.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function Yl(i){const e=i.parentNode;e&&e.removeChild(i)}function V_({window:i,rect:e,alignToTop:t,forceScroll:n,viewportOffset:o}){const r=e.clone().moveBy(0,o.bottom),s=e.clone().moveBy(0,-o.top),a=new ge(i).excludeScrollbarsAndBorders(),c=t&&n,l=[s,r].every(k=>a.contains(k));let{scrollX:d,scrollY:u}=i;const h=d,m=u;c?u-=a.top-e.top+o.top:l||(Zl(s,a)?u-=a.top-e.top+o.top:Ql(r,a)&&(u+=t?e.top-a.top-o.top:e.bottom-a.bottom+o.bottom)),l||(Jl(e,a)?d-=a.left-e.left+o.left:Xl(e,a)&&(d+=e.right-a.right+o.right)),d==h&&u===m||i.scrollTo(d,u)}function H_({parent:i,getRect:e,alignToTop:t,forceScroll:n,ancestorOffset:o=0,limiterElement:r}){const s=Ws(i),a=t&&n;let c,l,d;const u=r||s.document.body;for(;i!=u;)l=e(),c=new ge(i).excludeScrollbarsAndBorders(),d=c.contains(l),a?i.scrollTop-=c.top-l.top+o:d||(Zl(l,c)?i.scrollTop-=c.top-l.top+o:Ql(l,c)&&(i.scrollTop+=t?l.top-c.top-o:l.bottom-c.bottom+o)),d||(Jl(l,c)?i.scrollLeft-=c.left-l.left+o:Xl(l,c)&&(i.scrollLeft+=l.right-c.right+o)),i=i.parentNode}function Ql(i,e){return i.bottom>e.bottom}function Zl(i,e){return i.top<e.top}function Jl(i,e){return i.left<e.left}function Xl(i,e){return i.right>e.right}function Ws(i){return ur(i)?i.startContainer.ownerDocument.defaultView:i.ownerDocument.defaultView}function U_(i){if(ur(i)){let e=i.commonAncestorContainer;return Ze(e)&&(e=e.parentNode),e}return i.parentNode}function ed(i,e){const t=Ws(i),n=new ge(i);if(t===e)return n;{let o=t;for(;o!=e;){const r=o.frameElement,s=new ge(r).excludeScrollbarsAndBorders();n.moveBy(s.left,s.top),o=o.parent}}return n}const W_={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},q_={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},td={37:"←",38:"↑",39:"→",40:"↓",9:"⇥",33:"Page Up",34:"Page Down"},ke=function(){const i={pageup:33,pagedown:34,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let e=65;e<=90;e++)i[String.fromCharCode(e).toLowerCase()]=e;for(let e=48;e<=57;e++)i[e-48]=e;for(let e=112;e<=123;e++)i["f"+(e-111)]=e;return Object.assign(i,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),i}(),G_=Object.fromEntries(Object.entries(ke).map(([i,e])=>{let t;return t=e in td?td[e]:i.charAt(0).toUpperCase()+i.slice(1),[e,t]}));function vi(i){let e;if(typeof i=="string"){if(e=ke[i.toLowerCase()],!e)throw new B("keyboard-unknown-key",null,{key:i})}else e=i.keyCode+(i.altKey?ke.alt:0)+(i.ctrlKey?ke.ctrl:0)+(i.shiftKey?ke.shift:0)+(i.metaKey?ke.cmd:0);return e}function go(i){return typeof i=="string"&&(i=function(e){return e.split("+").map(t=>t.trim())}(i)),i.map(e=>typeof e=="string"?function(t){if(t.endsWith("!"))return vi(t.slice(0,-1));const n=vi(t);return(x.isMac||x.isiOS)&&n==ke.ctrl?ke.cmd:n}(e):e).reduce((e,t)=>t+e,0)}function mr(i){let e=go(i);return Object.entries(x.isMac||x.isiOS?W_:q_).reduce((t,[n,o])=>(e&ke[n]&&(e&=~ke[n],t+=o),t),"")+(e?G_[e]:"")}function qs(i,e){const t=e==="ltr";switch(i){case ke.arrowleft:return t?"left":"right";case ke.arrowright:return t?"right":"left";case ke.arrowup:return"up";case ke.arrowdown:return"down"}}function Oe(i){return Array.isArray(i)?i:[i]}const Gs=function(i,e,t){(t!==void 0&&!no(i[e],t)||t===void 0&&!(e in i))&&rr(i,e,t)},nd=function(i){return function(e,t,n){for(var o=-1,r=Object(e),s=n(e),a=s.length;a--;){var c=s[i?a:++o];if(t(r[c],c,r)===!1)break}return e}}(),$_=function(i){return Ot(i)&&cr(i)},$s=function(i,e){if((e!=="constructor"||typeof i[e]!="function")&&e!="__proto__")return i[e]},K_=function(i){return wi(i,Ai(i))},Y_=function(i,e,t,n,o,r,s){var a=$s(i,t),c=$s(e,t),l=s.get(c);if(l)Gs(i,t,l);else{var d=r?r(a,c,t+"",i,e,s):void 0,u=d===void 0;if(u){var h=vt(c),m=!h&&ro(c),k=!h&&!m&&Bs(c);d=c,h||m||k?vt(a)?d=a:$_(a)?d=ml(a):m?(u=!1,d=gl(c,!0)):k?(u=!1,d=El(c,!0)):d=[]:yt(c)||sr(c)?(d=a,sr(a)?d=K_(a):he(a)&&!jn(a)||(d=Ml(c))):u=!1}u&&(s.set(c,d),o(d,c,n,r,s),s.delete(c)),Gs(i,t,d)}},Q_=function i(e,t,n,o,r){e!==t&&nd(t,function(s,a){if(r||(r=new bi),he(s))Y_(e,t,a,n,i,o,r);else{var c=o?o($s(e,a),s,a+"",e,t,r):void 0;c===void 0&&(c=s),Gs(e,a,c)}},Ai)},In=function(i){return i},Z_=function(i,e,t){switch(t.length){case 0:return i.call(e);case 1:return i.call(e,t[0]);case 2:return i.call(e,t[0],t[1]);case 3:return i.call(e,t[0],t[1],t[2])}return i.apply(e,t)};var id=Math.max;const J_=function(i,e,t){return e=id(e===void 0?i.length-1:e,0),function(){for(var n=arguments,o=-1,r=id(n.length-e,0),s=Array(r);++o<r;)s[o]=n[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=n[o];return a[e]=t(s),Z_(i,this,a)}},X_=function(i){return function(){return i}},e0=or?function(i,e){return or(i,"toString",{configurable:!0,enumerable:!1,value:X_(e),writable:!0})}:In;var t0=Date.now;const n0=function(i){var e=0,t=0;return function(){var n=t0(),o=16-(n-t);if(t=n,o>0){if(++e>=800)return arguments[0]}else e=0;return i.apply(void 0,arguments)}}(e0),i0=function(i,e){return n0(J_(i,e,In),i+"")},o0=function(i,e,t){if(!he(t))return!1;var n=typeof e;return!!(n=="number"?cr(t)&&ar(e,t.length):n=="string"&&e in t)&&no(t[e],i)},od=function(i){return i0(function(e,t){var n=-1,o=t.length,r=o>1?t[o-1]:void 0,s=o>2?t[2]:void 0;for(r=i.length>3&&typeof r=="function"?(o--,r):void 0,s&&o0(t[0],t[1],s)&&(r=o<3?void 0:r,o=1),e=Object(e);++n<o;){var a=t[n];a&&i(e,a,n,r)}return e})},Ks=od(function(i,e,t){Q_(i,e,t)});function r0(i,e,t=1,n){if(typeof t!="number")throw new B("translation-service-quantity-not-a-number",null,{quantity:t});const o=n||w.window.CKEDITOR_TRANSLATIONS,r=function(d){return Object.keys(d).length}(o);r===1&&(i=Object.keys(o)[0]);const s=e.id||e.string;if(r===0||!function(d,u,h){return!!h[d]&&!!h[d].dictionary[u]}(i,s,o))return t!==1?e.plural:e.string;const a=o[i].dictionary,c=o[i].getPluralForm||(d=>d===1?0:1),l=a[s];return typeof l=="string"?l:l[Number(c(t))]}w.window.CKEDITOR_TRANSLATIONS||(w.window.CKEDITOR_TRANSLATIONS={});const s0=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig"];function rd(i){return s0.includes(i)?"rtl":"ltr"}class a0{constructor({uiLanguage:e="en",contentLanguage:t,translations:n}={}){this.uiLanguage=e,this.contentLanguage=t||this.uiLanguage,this.uiLanguageDirection=rd(this.uiLanguage),this.contentLanguageDirection=rd(this.contentLanguage),this.translations=function(o){return Array.isArray(o)?o.reduce((r,s)=>Ks(r,s)):o}(n),this.t=(o,r)=>this._t(o,r)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(e,t=[]){t=Oe(t),typeof e=="string"&&(e={string:e});const n=e.plural?t[0]:1;return function(o,r){return o.replace(/%(\d+)/g,(s,a)=>a<r.length?r[a]:s)}(r0(this.uiLanguage,e,n,this.translations),t)}}class qt extends ye(){constructor(e={},t={}){super();const n=Ee(e);if(n||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const o of e)this._items.push(o),this._itemMap.set(this._getItemIdBeforeAdding(o),o)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,t){return this.addMany([e],t)}addMany(e,t){if(t===void 0)t=this._items.length;else if(t>this._items.length||t<0)throw new B("collection-add-item-invalid-index",this);let n=0;for(const o of e){const r=this._getItemIdBeforeAdding(o),s=t+n;this._items.splice(s,0,o),this._itemMap.set(r,o),this.fire("add",o,s),n++}return this.fire("change",{added:e,removed:[],index:t}),this}get(e){let t;if(typeof e=="string")t=this._itemMap.get(e);else{if(typeof e!="number")throw new B("collection-get-invalid-arg",this);t=this._items[e]}return t||null}has(e){if(typeof e=="string")return this._itemMap.has(e);{const t=e[this._idProperty];return t&&this._itemMap.has(t)}}getIndex(e){let t;return t=typeof e=="string"?this._itemMap.get(e):e,t?this._items.indexOf(t):-1}remove(e){const[t,n]=this._remove(e);return this.fire("change",{added:[],removed:[t],index:n}),t}map(e,t){return this._items.map(e,t)}forEach(e,t){this._items.forEach(e,t)}find(e,t){return this._items.find(e,t)}filter(e,t){return this._items.filter(e,t)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new B("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:t=>{this._setUpBindToBinding(n=>new t(n))},using:t=>{typeof t=="function"?this._setUpBindToBinding(t):this._setUpBindToBinding(n=>n[t])}}}_setUpBindToBinding(e){const t=this._bindToCollection,n=(o,r,s)=>{const a=t._bindToCollection==this,c=t._bindToInternalToExternalMap.get(r);if(a&&c)this._bindToExternalToInternalMap.set(r,c),this._bindToInternalToExternalMap.set(c,r);else{const l=e(r);if(!l)return void this._skippedIndexesFromExternal.push(s);let d=s;for(const u of this._skippedIndexesFromExternal)s>u&&d--;for(const u of t._skippedIndexesFromExternal)d>=u&&d++;this._bindToExternalToInternalMap.set(r,l),this._bindToInternalToExternalMap.set(l,r),this.add(l,d);for(let u=0;u<t._skippedIndexesFromExternal.length;u++)d<=t._skippedIndexesFromExternal[u]&&t._skippedIndexesFromExternal[u]++}};for(const o of t)n(0,o,t.getIndex(o));this.listenTo(t,"add",n),this.listenTo(t,"remove",(o,r,s)=>{const a=this._bindToExternalToInternalMap.get(r);a&&this.remove(a),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((c,l)=>(s<l&&c.push(l-1),s>l&&c.push(l),c),[])})}_getItemIdBeforeAdding(e){const t=this._idProperty;let n;if(t in e){if(n=e[t],typeof n!="string")throw new B("collection-add-invalid-id",this);if(this.get(n))throw new B("collection-add-item-already-exists",this)}else e[t]=n=$();return n}_remove(e){let t,n,o,r=!1;const s=this._idProperty;if(typeof e=="string"?(n=e,o=this._itemMap.get(n),r=!o,o&&(t=this._items.indexOf(o))):typeof e=="number"?(t=e,o=this._items[t],r=!o,o&&(n=o[s])):(o=e,n=o[s],t=this._items.indexOf(o),r=t==-1||!this._itemMap.get(n)),r)throw new B("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(n);const a=this._bindToInternalToExternalMap.get(o);return this._bindToInternalToExternalMap.delete(o),this._bindToExternalToInternalMap.delete(a),this.fire("remove",o,t),[o,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function at(i){const e=i.next();return e.done?null:e.value}class ct extends Lt(xe()){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(e){if(this._elements.has(e))throw new B("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",()=>this._focus(e),{useCapture:!0}),this.listenTo(e,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(e)}remove(e){e===this.focusedElement&&this._blur(),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}destroy(){this.stopListening()}_focus(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class ft{constructor(){this._listener=new(Lt())}listenTo(e){this._listener.listenTo(e,"keydown",(t,n)=>{this._listener.fire("_keydown:"+vi(n),n)})}set(e,t,n={}){const o=go(e),r=n.priority;this._listener.listenTo(this._listener,"_keydown:"+o,(s,a)=>{t(a,()=>{a.preventDefault(),a.stopPropagation(),s.stop()}),s.return=!0},{priority:r})}press(e){return!!this._listener.fire("_keydown:"+vi(e),e)}stopListening(e){this._listener.stopListening(e)}destroy(){this.stopListening()}}function sn(i){return Ee(i)?new Map(i):function(e){const t=new Map;for(const n in e)t.set(n,e[n]);return t}(i)}function Ys(i,e){let t;function n(...o){n.cancel(),t=setTimeout(()=>i(...o),e)}return n.cancel=()=>{clearTimeout(t)},n}function Qs(i,e){return!!(t=i.charAt(e-1))&&t.length==1&&/[\ud800-\udbff]/.test(t)&&function(n){return!!n&&n.length==1&&/[\udc00-\udfff]/.test(n)}(i.charAt(e));var t}function Zs(i,e){return!!(t=i.charAt(e))&&t.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(t);var t}const c0=function(){const i=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],e=new RegExp("\\p{Regional_Indicator}{2}","u").source,t="(?:"+i.map(n=>n.source).join("|")+")";return new RegExp(`${e}|${t}(?:${t})*`,"ug")}();function sd(i,e){const t=String(i).matchAll(c0);return Array.from(t).some(n=>n.index<e&&e<n.index+n[0].length)}class zt extends qt{constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",(t,n,o)=>{this._renderViewIntoCollectionParent(n,o)}),this.on("remove",(t,n)=>{n.element&&this._parentElement&&n.element.remove()}),this._parentElement=null}destroy(){this.map(e=>e.destroy())}setParent(e){this._parentElement=e;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...e){if(!e.length||!e.every(t=>typeof t=="string"))throw new B("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(const n of this)for(const o of e)n.delegate(o).to(t);this.on("add",(n,o)=>{for(const r of e)o.delegate(r).to(t)}),this.on("remove",(n,o)=>{for(const r of e)o.stopDelegating(r,t)})}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}remove(e){return super.remove(e)}}class Gt extends ye(){constructor(e){super(),Object.assign(this,dd(ld(e))),this._isRendered=!1,this._revertData=null}render(){const e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,intoFragment:!1,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new B("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){yield*function*e(t){if(t.children)for(const n of t.children)fr(n)?yield n:Js(n)&&(yield*e(n))}(this)}static bind(e,t){return{to:(n,o)=>new l0({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:o}),if:(n,o,r)=>new ad({observable:e,emitter:t,attribute:n,valueIfTrue:o,callback:r})}}static extend(e,t){if(e._isRendered)throw new B("template-extend-render",[this,e]);md(e,dd(ld(t)))}_renderNode(e){let t;if(t=e.node?this.tag&&this.text:this.tag?this.text:!this.text,t)throw new B("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){let t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),pr(this.text)?this._bindToObservable({schema:this.text,updater:d0(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){if(!this.attributes)return;const t=e.node,n=e.revertData;for(const o in this.attributes){const r=t.getAttribute(o),s=this.attributes[o];n&&(n.attributes[o]=r);const a=pd(s)?s[0].ns:null;if(pr(s)){const c=pd(s)?s[0].value:s;n&&fd(o)&&c.unshift(r),this._bindToObservable({schema:c,updater:u0(t,o,a),data:e})}else if(o=="style"&&typeof s[0]!="string")this._renderStyleAttribute(s[0],e);else{n&&r&&fd(o)&&s.unshift(r);const c=s.map(l=>l&&l.value||l).reduce((l,d)=>l.concat(d),[]).reduce(hd,"");yi(c)||t.setAttributeNS(a,o,c)}}}_renderStyleAttribute(e,t){const n=t.node;for(const o in e){const r=e[o];pr(r)?this._bindToObservable({schema:[r],updater:h0(n,o),data:t}):n.style[o]=r}}_renderElementChildren(e){const t=e.node,n=e.intoFragment?document.createDocumentFragment():t,o=e.isApplying;let r=0;for(const s of this.children)if(Xs(s)){if(!o){s.setParent(t);for(const a of s)n.appendChild(a.element)}}else if(fr(s))o||(s.isRendered||s.render(),n.appendChild(s.element));else if(Mn(s))n.appendChild(s);else if(o){const a={children:[],bindings:[],attributes:{}};e.revertData.children.push(a),s._renderNode({intoFragment:!1,node:n.childNodes[r++],isApplying:!0,revertData:a})}else n.appendChild(s.render());e.intoFragment&&t.appendChild(n)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const n=this.eventListeners[t].map(o=>{const[r,s]=t.split("@");return o.activateDomEventListener(r,s,e)});e.revertData&&e.revertData.bindings.push(n)}}_bindToObservable({schema:e,updater:t,data:n}){const o=n.revertData;cd(e,t,n);const r=e.filter(s=>!yi(s)).filter(s=>s.observable).map(s=>s.activateAttributeListener(e,t,n));o&&o.bindings.push(r)}_revertTemplateFromNode(e,t){for(const o of t.bindings)for(const r of o)r();if(t.text)return void(e.textContent=t.text);const n=e;for(const o in t.attributes){const r=t.attributes[o];r===null?n.removeAttribute(o):n.setAttribute(o,r)}for(let o=0;o<t.children.length;++o)this._revertTemplateFromNode(n.childNodes[o],t.children[o])}}class mo{constructor(e){this.attribute=e.attribute,this.observable=e.observable,this.emitter=e.emitter,this.callback=e.callback}getValue(e){const t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}activateAttributeListener(e,t,n){const o=()=>cd(e,t,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,o),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,o)}}}class l0 extends mo{constructor(e){super(e),this.eventNameOrFunction=e.eventNameOrFunction}activateDomEventListener(e,t,n){const o=(r,s)=>{t&&!s.target.matches(t)||(typeof this.eventNameOrFunction=="function"?this.eventNameOrFunction(s):this.observable.fire(this.eventNameOrFunction,s))};return this.emitter.listenTo(n.node,e,o),()=>{this.emitter.stopListening(n.node,e,o)}}}class ad extends mo{constructor(e){super(e),this.valueIfTrue=e.valueIfTrue}getValue(e){return!yi(super.getValue(e))&&(this.valueIfTrue||!0)}}function pr(i){return!!i&&(i.value&&(i=i.value),Array.isArray(i)?i.some(pr):i instanceof mo)}function cd(i,e,{node:t}){const n=function(r,s){return r.map(a=>a instanceof mo?a.getValue(s):a)}(i,t);let o;o=i.length==1&&i[0]instanceof ad?n[0]:n.reduce(hd,""),yi(o)?e.remove():e.set(o)}function d0(i){return{set(e){i.textContent=e},remove(){i.textContent=""}}}function u0(i,e,t){return{set(n){i.setAttributeNS(t,e,n)},remove(){i.removeAttributeNS(t,e)}}}function h0(i,e){return{set(t){i.style[e]=t},remove(){i.style[e]=null}}}function ld(i){return Hs(i,e=>{if(e&&(e instanceof mo||Js(e)||fr(e)||Xs(e)))return e})}function dd(i){if(typeof i=="string"?i=function(e){return{text:[e]}}(i):i.text&&function(e){e.text=Oe(e.text)}(i),i.on&&(i.eventListeners=function(e){for(const t in e)ud(e,t);return e}(i.on),delete i.on),!i.text){i.attributes&&function(t){for(const n in t)t[n].value&&(t[n].value=Oe(t[n].value)),ud(t,n)}(i.attributes);const e=[];if(i.children)if(Xs(i.children))e.push(i.children);else for(const t of i.children)Js(t)||fr(t)||Mn(t)?e.push(t):e.push(new Gt(t));i.children=e}return i}function ud(i,e){i[e]=Oe(i[e])}function hd(i,e){return yi(e)?i:yi(i)?e:`${i} ${e}`}function gd(i,e){for(const t in e)i[t]?i[t].push(...e[t]):i[t]=e[t]}function md(i,e){if(e.attributes&&(i.attributes||(i.attributes={}),gd(i.attributes,e.attributes)),e.eventListeners&&(i.eventListeners||(i.eventListeners={}),gd(i.eventListeners,e.eventListeners)),e.text&&i.text.push(...e.text),e.children&&e.children.length){if(i.children.length!=e.children.length)throw new B("ui-template-extend-children-mismatch",i);let t=0;for(const n of e.children)md(i.children[t++],n)}}function yi(i){return!i&&i!==0}function fr(i){return i instanceof te}function Js(i){return i instanceof Gt}function Xs(i){return i instanceof zt}function pd(i){return he(i[0])&&i[0].ns}function fd(i){return i=="class"||i=="style"}var g0=I(2591),K=I.n(g0),kd=I(7676),m0={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(kd.A,m0),kd.A.locals;class te extends Lt(xe()){constructor(e){super(),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new qt,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(t,n)=>{n.locale=e,n.t=e&&e.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Gt.bind(this,this)}createCollection(e){const t=new zt(e);return this._viewCollections.add(t),t}registerChild(e){Ee(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){Ee(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new Gt(e)}extendTemplate(e){Gt.extend(this.template,e)}render(){if(this.isRendered)throw new B("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(e=>e.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}function kr({emitter:i,activator:e,callback:t,contextElements:n}){i.listenTo(document,"mousedown",(o,r)=>{if(!e())return;const s=typeof r.composedPath=="function"?r.composedPath():[],a=typeof n=="function"?n():n;for(const c of a)if(c.contains(r.target)||s.includes(c))return;t()})}function ea(i){return class extends i{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...e){super(...e),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function br({view:i}){i.listenTo(i.element,"submit",(e,t)=>{t.preventDefault(),i.fire("submit")},{useCapture:!0})}function p0({keystrokeHandler:i,focusTracker:e,gridItems:t,numberOfColumns:n,uiLanguageDirection:o}){const r=typeof n=="number"?()=>n:n;function s(l){return d=>{const u=t.find(k=>k.element===e.focusedElement),h=t.getIndex(u),m=l(h,t);t.get(m).focus(),d.stopPropagation(),d.preventDefault()}}function a(l,d){return l===d-1?0:l+1}function c(l,d){return l===0?d-1:l-1}i.set("arrowright",s((l,d)=>o==="rtl"?c(l,d.length):a(l,d.length))),i.set("arrowleft",s((l,d)=>o==="rtl"?a(l,d.length):c(l,d.length))),i.set("arrowup",s((l,d)=>{let u=l-r();return u<0&&(u=l+r()*Math.floor(d.length/r()),u>d.length-1&&(u-=r())),u})),i.set("arrowdown",s((l,d)=>{let u=l+r();return u>d.length-1&&(u=l%r()),u}))}class G extends xe(){constructor(e){super(),this._disableStack=new Set,this.editor=e,this.set("isEnabled",!0)}forceDisabled(e){this._disableStack.add(e),this._disableStack.size==1&&(this.on("set:isEnabled",bd,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),this._disableStack.size==0&&(this.off("set:isEnabled",bd),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function bd(i){i.return=!1,i.stop()}class de extends xe(){constructor(e){super(),this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(e,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",t=>{if(!this.affectsData)return;const n=e.model.document.selection,o=n.getFirstPosition().root.rootName!="$graveyard"&&e.model.canEditAt(n);(e.isReadOnly||this._isEnabledBasedOnSelection&&!o)&&(t.return=!1,t.stop())},{priority:"highest"}),this.on("execute",t=>{this.isEnabled||t.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(e){this._affectsData=e}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),this._disableStack.size==1&&(this.on("set:isEnabled",wd,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),this._disableStack.size==0&&(this.off("set:isEnabled",wd),this.refresh())}execute(...e){}destroy(){this.stopListening()}}function wd(i){i.return=!1,i.stop()}class _d extends de{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...e){const t=this._getFirstEnabledCommand();return!!t&&t.execute(e)}registerChildCommand(e,t={}){le(this._childCommandsDefinitions,{command:e,priority:t.priority||"normal"}),e.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const e=this._childCommandsDefinitions.find(({command:t})=>t.isEnabled);return e&&e.command}}class Ad extends ye(){constructor(e,t=[],n=[]){super(),this._plugins=new Map,this._context=e,this._availablePlugins=new Map;for(const o of t)o.pluginName&&this._availablePlugins.set(o.pluginName,o);this._contextPlugins=new Map;for(const[o,r]of n)this._contextPlugins.set(o,r),this._contextPlugins.set(r,o),o.pluginName&&this._availablePlugins.set(o.pluginName,o)}*[Symbol.iterator](){for(const e of this._plugins)typeof e[0]=="function"&&(yield e)}get(e){const t=this._plugins.get(e);if(!t){let n=e;throw typeof e=="function"&&(n=e.pluginName||e.name),new B("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return t}has(e){return this._plugins.has(e)}init(e,t=[],n=[]){const o=this,r=this._context;(function k(A,E=new Set){A.forEach(S=>{c(S)&&(E.has(S)||(E.add(S),S.pluginName&&!o._availablePlugins.has(S.pluginName)&&o._availablePlugins.set(S.pluginName,S),S.requires&&k(S.requires,E)))})})(e),h(e);const s=[...function k(A,E=new Set){return A.map(S=>c(S)?S:o._availablePlugins.get(S)).reduce((S,O)=>E.has(O)?S:(E.add(O),O.requires&&(h(O.requires,O),k(O.requires,E).forEach(z=>S.add(z))),S.add(O)),new Set)}(e.filter(k=>!d(k,t)))];(function(k,A){for(const E of A){if(typeof E!="function")throw new B("plugincollection-replace-plugin-invalid-type",null,{pluginItem:E});const S=E.pluginName;if(!S)throw new B("plugincollection-replace-plugin-missing-name",null,{pluginItem:E});if(E.requires&&E.requires.length)throw new B("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:S});const O=o._availablePlugins.get(S);if(!O)throw new B("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:S});const z=k.indexOf(O);if(z===-1){if(o._contextPlugins.has(O))return;throw new B("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:S})}if(O.requires&&O.requires.length)throw new B("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:S});k.splice(z,1,E),o._availablePlugins.set(S,E)}})(s,n);const a=s.map(k=>{let A=o._contextPlugins.get(k);return A=A||new k(r),o._add(k,A),A});return m(a,"init").then(()=>m(a,"afterInit")).then(()=>a);function c(k){return typeof k=="function"}function l(k){return c(k)&&!!k.isContextPlugin}function d(k,A){return A.some(E=>E===k||u(k)===E||u(E)===k)}function u(k){return c(k)?k.pluginName||k.name:k}function h(k,A=null){k.map(E=>c(E)?E:o._availablePlugins.get(E)||E).forEach(E=>{(function(S,O){if(!c(S))throw O?new B("plugincollection-soft-required",r,{missingPlugin:S,requiredBy:u(O)}):new B("plugincollection-plugin-not-found",r,{plugin:S})})(E,A),function(S,O){if(l(O)&&!l(S))throw new B("plugincollection-context-required",r,{plugin:u(S),requiredBy:u(O)})}(E,A),function(S,O){if(O&&d(S,t))throw new B("plugincollection-required",r,{plugin:u(S),requiredBy:u(O)})}(E,A)})}function m(k,A){return k.reduce((E,S)=>S[A]?o._contextPlugins.has(S)?E:E.then(S[A].bind(S)):E,Promise.resolve())}}destroy(){const e=[];for(const[,t]of this)typeof t.destroy!="function"||this._contextPlugins.has(t)||e.push(t.destroy());return Promise.all(e)}_add(e,t){this._plugins.set(e,t);const n=e.pluginName;if(n){if(this._plugins.has(n))throw new B("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}var Cd=Object.getOwnPropertySymbols,f0=Object.prototype.hasOwnProperty,k0=Object.prototype.propertyIsEnumerable;class vd{constructor(e){this._contextOwner=null;const t=e||{},{translations:n}=t,o=((a,c)=>{var l={};for(var d in a)f0.call(a,d)&&c.indexOf(d)<0&&(l[d]=a[d]);if(a!=null&&Cd)for(var d of Cd(a))c.indexOf(d)<0&&k0.call(a,d)&&(l[d]=a[d]);return l})(t,["translations"]);this.config=new Pl(o,this.constructor.defaultConfig);const r=this.constructor.builtinPlugins;this.config.define("plugins",r),this.plugins=new Ad(this,r);const s=this.config.get("language")||{};this.locale=new a0({uiLanguage:typeof s=="string"?s:s.ui,contentLanguage:this.config.get("language.content"),translations:n}),this.t=this.locale.t,this.editors=new qt}initPlugins(){const e=this.config.get("plugins")||[],t=this.config.get("substitutePlugins")||[];for(const n of e.concat(t)){if(typeof n!="function")throw new B("context-initplugins-constructor-only",null,{Plugin:n});if(n.isContextPlugin!==!0)throw new B("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(e,[],t)}destroy(){return Promise.all(Array.from(this.editors,e=>e.destroy())).then(()=>this.plugins.destroy())}_addEditor(e,t){if(this._contextOwner)throw new B("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){const e={};for(const t of this.config.names())["plugins","removePlugins","extraPlugins"].includes(t)||(e[t]=this.config.get(t));return e}static create(e){return new Promise(t=>{const n=new this(e);t(n.initPlugins().then(()=>n))})}}class wr extends xe(){constructor(e){super(),this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class b0 extends ft{constructor(e){super(),this.editor=e}set(e,t,n={}){if(typeof t=="string"){const o=t;t=(r,s)=>{this.editor.execute(o),s()}}super.set(e,t,n)}}var yd=I(4098),w0={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(yd.A,w0),yd.A.locals;const _r=new WeakMap;let xd=!1;function Dd({view:i,element:e,text:t,isDirectHost:n=!0,keepOnFocus:o=!1}){const r=i.document;function s(a){_r.get(r).set(e,{text:a,isDirectHost:n,keepOnFocus:o,hostElement:n?e:null}),i.change(c=>ta(r,c))}_r.has(r)||(_r.set(r,new Map),r.registerPostFixer(a=>ta(r,a)),r.on("change:isComposing",()=>{i.change(a=>ta(r,a))},{priority:"high"})),e.is("editableElement")&&e.on("change:placeholder",(a,c,l)=>{s(l)}),e.placeholder?s(e.placeholder):t&&s(t),t&&function(){xd||X("enableplaceholder-deprecated-text-option"),xd=!0}()}function _0(i,e){return!e.hasClass("ck-placeholder")&&(i.addClass("ck-placeholder",e),!0)}function A0(i,e){return!!e.hasClass("ck-placeholder")&&(i.removeClass("ck-placeholder",e),!0)}function C0(i,e){if(!i.isAttached()||Array.from(i.getChildren()).some(o=>!o.is("uiElement")))return!1;const t=i.document,n=t.selection.anchor;return(!t.isComposing||!n||n.parent!==i)&&(!!e||!t.isFocused||!!n&&n.parent!==i)}function ta(i,e){const t=_r.get(i),n=[];let o=!1;for(const[r,s]of t)s.isDirectHost&&(n.push(r),Ed(e,r,s)&&(o=!0));for(const[r,s]of t){if(s.isDirectHost)continue;const a=v0(r);a&&(n.includes(a)||(s.hostElement=a,Ed(e,r,s)&&(o=!0)))}return o}function Ed(i,e,t){const{text:n,isDirectHost:o,hostElement:r}=t;let s=!1;return r.getAttribute("data-placeholder")!==n&&(i.setAttribute("data-placeholder",n,r),s=!0),(o||e.childCount==1)&&C0(r,t.keepOnFocus)?_0(i,r)&&(s=!0):A0(i,r)&&(s=!0),s}function v0(i){if(i.childCount){const e=i.getChild(0);if(e.is("element")&&!e.is("uiElement")&&!e.is("attributeElement"))return e}return null}class qn{is(){throw new Error("is() method is abstract")}}const Td=function(i){return Vs(i,4)};class Gn extends ye(qn){constructor(e){super(),this.document=e,this.parent=null}get index(){let e;if(!this.parent)return null;if((e=this.parent.getChildIndex(this))==-1)throw new B("view-node-not-found-in-parent",this);return e}get nextSibling(){const e=this.index;return e!==null&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return e!==null&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.index),t=t.parent;return e}getAncestors(e={}){const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}getCommonAncestor(e,t={}){const n=this.getAncestors(t),o=e.getAncestors(t);let r=0;for(;n[r]==o[r]&&n[r];)r++;return r===0?null:n[r-1]}isBefore(e){if(this==e||this.root!==e.root)return!1;const t=this.getPath(),n=e.getPath(),o=ot(t,n);switch(o){case"prefix":return!0;case"extension":return!1;default:return t[o]<n[o]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}_remove(){this.parent._removeChildren(this.index)}_fireChange(e,t){this.fire(`change:${e}`,t),this.parent&&this.parent._fireChange(e,t)}toJSON(){const e=Td(this);return delete e.parent,e}}Gn.prototype.is=function(i){return i==="node"||i==="view:node"};class Se extends Gn{constructor(e,t){super(e),this._textData=t}get data(){return this._textData}get _data(){return this.data}set _data(e){this._fireChange("text",this),this._textData=e}isSimilar(e){return e instanceof Se&&(this===e||this.data===e.data)}_clone(){return new Se(this.document,this.data)}}Se.prototype.is=function(i){return i==="$text"||i==="view:$text"||i==="text"||i==="view:text"||i==="node"||i==="view:node"};class an extends qn{constructor(e,t,n){if(super(),this.textNode=e,t<0||t>e.data.length)throw new B("view-textproxy-wrong-offsetintext",this);if(n<0||t+n>e.data.length)throw new B("view-textproxy-wrong-length",this);this.data=e.data.substring(t,t+n),this.offsetInText=t}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(e={}){const t=[];let n=e.includeSelf?this.textNode:this.parent;for(;n!==null;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}}an.prototype.is=function(i){return i==="$textProxy"||i==="view:$textProxy"||i==="textProxy"||i==="view:textProxy"};class cn{constructor(...e){this._patterns=[],this.add(...e)}add(...e){for(let t of e)(typeof t=="string"||t instanceof RegExp)&&(t={name:t}),this._patterns.push(t)}match(...e){for(const t of e)for(const n of this._patterns){const o=Md(t,n);if(o)return{element:t,pattern:n,match:o}}return null}matchAll(...e){const t=[];for(const n of e)for(const o of this._patterns){const r=Md(n,o);r&&t.push({element:n,pattern:o,match:r})}return t.length>0?t:null}getElementName(){if(this._patterns.length!==1)return null;const e=this._patterns[0],t=e.name;return typeof e=="function"||!t||t instanceof RegExp?null:t}}function Md(i,e){if(typeof e=="function")return e(i);const t={};return e.name&&(t.name=function(n,o){return n instanceof RegExp?!!o.match(n):n===o}(e.name,i.name),!t.name)||e.attributes&&(t.attributes=function(n,o){const r=new Set(o.getAttributeKeys());return yt(n)?(n.style!==void 0&&X("matcher-pattern-deprecated-attributes-style-key",n),n.class!==void 0&&X("matcher-pattern-deprecated-attributes-class-key",n)):(r.delete("style"),r.delete("class")),na(n,r,s=>o.getAttribute(s))}(e.attributes,i),!t.attributes)||e.classes&&(t.classes=function(n,o){return na(n,o.getClassNames(),()=>{})}(e.classes,i),!t.classes)||e.styles&&(t.styles=function(n,o){return na(n,o.getStyleNames(!0),r=>o.getStyle(r))}(e.styles,i),!t.styles)?null:t}function na(i,e,t){const n=function(s){return Array.isArray(s)?s.map(a=>yt(a)?(a.key!==void 0&&a.value!==void 0||X("matcher-pattern-missing-key-or-value",a),[a.key,a.value]):[a,!0]):yt(s)?Object.entries(s):[[s,!0]]}(i),o=Array.from(e),r=[];if(n.forEach(([s,a])=>{o.forEach(c=>{(function(l,d){return l===!0||l===d||l instanceof RegExp&&d.match(l)})(s,c)&&function(l,d,u){if(l===!0)return!0;const h=u(d);return l===h||l instanceof RegExp&&!!String(h).match(l)}(a,c,t)&&r.push(c)})}),n.length&&!(r.length<n.length))return r}const Ar=function(i){return typeof i=="symbol"||Ot(i)&&Tn(i)=="[object Symbol]"};var y0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x0=/^\w*$/;const ia=function(i,e){if(vt(i))return!1;var t=typeof i;return!(t!="number"&&t!="symbol"&&t!="boolean"&&i!=null&&!Ar(i))||x0.test(i)||!y0.test(i)||e!=null&&i in Object(e)};function oa(i,e){if(typeof i!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");var t=function(){var n=arguments,o=e?e.apply(this,n):n[0],r=t.cache;if(r.has(o))return r.get(o);var s=i.apply(this,n);return t.cache=r.set(o,s)||r,s};return t.cache=new(oa.Cache||ir),t}oa.Cache=ir;const D0=oa,E0=function(i){var e=D0(i,function(n){return t.size===500&&t.clear(),n}),t=e.cache;return e};var T0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,M0=/\\(\\)?/g,I0=E0(function(i){var e=[];return i.charCodeAt(0)===46&&e.push(""),i.replace(T0,function(t,n,o,r){e.push(o?r.replace(M0,"$1"):n||t)}),e});const S0=I0,B0=function(i,e){for(var t=-1,n=i==null?0:i.length,o=Array(n);++t<n;)o[t]=e(i[t],t,i);return o};var Id=rn?rn.prototype:void 0,Sd=Id?Id.toString:void 0;const N0=function i(e){if(typeof e=="string")return e;if(vt(e))return B0(e,i)+"";if(Ar(e))return Sd?Sd.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t},ra=function(i){return i==null?"":N0(i)},Cr=function(i,e){return vt(i)?i:ia(i,e)?[i]:S0(ra(i))},O0=function(i){var e=i==null?0:i.length;return e?i[e-1]:void 0},xi=function(i){if(typeof i=="string"||Ar(i))return i;var e=i+"";return e=="0"&&1/i==-1/0?"-0":e},sa=function(i,e){for(var t=0,n=(e=Cr(e,i)).length;i!=null&&t<n;)i=i[xi(e[t++])];return t&&t==n?i:void 0},Bd=function(i,e,t){var n=-1,o=i.length;e<0&&(e=-e>o?0:o+e),(t=t>o?o:t)<0&&(t+=o),o=e>t?0:t-e>>>0,e>>>=0;for(var r=Array(o);++n<o;)r[n]=i[n+e];return r},P0=function(i,e){return e.length<2?i:sa(i,Bd(e,0,-1))},L0=function(i,e){return e=Cr(e,i),(i=P0(i,e))==null||delete i[xi(O0(e))]},z0=function(i,e){return i==null||L0(i,e)},po=function(i,e,t){var n=i==null?void 0:sa(i,e);return n===void 0?t:n},R0=function(i,e,t,n){if(!he(i))return i;for(var o=-1,r=(e=Cr(e,i)).length,s=r-1,a=i;a!=null&&++o<r;){var c=xi(e[o]),l=t;if(c==="__proto__"||c==="constructor"||c==="prototype")return i;if(o!=s){var d=a[c];(l=n?n(d,c,a):void 0)===void 0&&(l=he(d)?d:ar(e[o+1])?[]:{})}Ts(a,c,l),a=a[c]}return i},j0=function(i,e,t){return i==null?i:R0(i,e,t)};class aa{constructor(e){this._styles={},this._styleProcessor=e}get isEmpty(){return!Object.entries(this._styles).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(e){this.clear();const t=function(n){let o=null,r=0,s=0,a=null;const c=new Map;if(n==="")return c;n.charAt(n.length-1)!=";"&&(n+=";");for(let l=0;l<n.length;l++){const d=n.charAt(l);if(o===null)switch(d){case":":a||(a=n.substr(r,l-r),s=l+1);break;case'"':case"'":o=d;break;case";":{const u=n.substr(s,l-s);a&&c.set(a.trim(),u.trim()),a=null,r=l+1;break}}else d===o&&(o=null)}return c}(e);for(const[n,o]of t)this._styleProcessor.toNormalizedForm(n,o,this._styles)}has(e){if(this.isEmpty)return!1;const t=this._styleProcessor.getReducedForm(e,this._styles).find(([n])=>n===e);return Array.isArray(t)}set(e,t){if(he(e))for(const[n,o]of Object.entries(e))this._styleProcessor.toNormalizedForm(n,o,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){const t=ca(e);z0(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}getNormalized(e){return this._styleProcessor.getNormalized(e,this._styles)}toString(){return this.isEmpty?"":this.getStylesEntries().map(e=>e.join(":")).sort().join(";")+";"}getAsString(e){if(this.isEmpty)return;if(this._styles[e]&&!he(this._styles[e]))return this._styles[e];const t=this._styleProcessor.getReducedForm(e,this._styles).find(([n])=>n===e);return Array.isArray(t)?t[1]:void 0}getStyleNames(e=!1){return this.isEmpty?[]:e?this._styleProcessor.getStyleNames(this._styles):this.getStylesEntries().map(([t])=>t)}clear(){this._styles={}}getStylesEntries(){const e=[],t=Object.keys(this._styles);for(const n of t)e.push(...this._styleProcessor.getReducedForm(n,this._styles));return e}_cleanEmptyObjectsOnPath(e){const t=e.split(".");if(!(t.length>1))return;const n=t.splice(0,t.length-1).join("."),o=po(this._styles,n);o&&!Object.keys(o).length&&this.remove(n)}}class F0{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,n){if(he(t))la(n,ca(e),t);else if(this._normalizers.has(e)){const o=this._normalizers.get(e),{path:r,value:s}=o(t);la(n,r,s)}else la(n,e,t)}getNormalized(e,t){if(!e)return Ks({},t);if(t[e]!==void 0)return t[e];if(this._extractors.has(e)){const n=this._extractors.get(e);if(typeof n=="string")return po(t,n);const o=n(e,t);if(o)return o}return po(t,ca(e))}getReducedForm(e,t){const n=this.getNormalized(e,t);return n===void 0?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}getStyleNames(e){const t=Array.from(this._consumables.keys()).filter(o=>{const r=this.getNormalized(o,e);return r&&typeof r=="object"?Object.keys(r).length:r}),n=new Set([...t,...Object.keys(e)]);return Array.from(n)}getRelatedStyles(e){return this._consumables.get(e)||[]}setNormalizer(e,t){this._normalizers.set(e,t)}setExtractor(e,t){this._extractors.set(e,t)}setReducer(e,t){this._reducers.set(e,t)}setStyleRelation(e,t){this._mapStyleNames(e,t);for(const n of t)this._mapStyleNames(n,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}}function ca(i){return i.replace("-",".")}function la(i,e,t){let n=t;he(t)&&(n=Ks({},po(i,e),t)),j0(i,e,n)}class xt extends Gn{constructor(e,t,n,o){if(super(e),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=t,this._attrs=function(r){const s=sn(r);for(const[a,c]of s)c===null?s.delete(a):typeof c!="string"&&s.set(a,String(c));return s}(n),this._children=[],o&&this._insertChild(0,o),this._classes=new Set,this._attrs.has("class")){const r=this._attrs.get("class");Nd(this._classes,r),this._attrs.delete("class")}this._styles=new aa(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style"))}get childCount(){return this._children.length}get isEmpty(){return this._children.length===0}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(e){if(e=="class")return this._classes.size>0?[...this._classes].join(" "):void 0;if(e=="style"){const t=this._styles.toString();return t==""?void 0:t}return this._attrs.get(e)}hasAttribute(e){return e=="class"?this._classes.size>0:e=="style"?!this._styles.isEmpty:this._attrs.has(e)}isSimilar(e){if(!(e instanceof xt))return!1;if(this===e)return!0;if(this.name!=e.name||this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;for(const[t,n]of this._attrs)if(!e._attrs.has(t)||e._attrs.get(t)!==n)return!1;for(const t of this._classes)if(!e._classes.has(t))return!1;for(const t of this._styles.getStyleNames())if(!e._styles.has(t)||e._styles.getAsString(t)!==this._styles.getAsString(t))return!1;return!0}hasClass(...e){for(const t of e)if(!this._classes.has(t))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(e){return this._styles.getAsString(e)}getNormalizedStyle(e){return this._styles.getNormalized(e)}getStyleNames(e){return this._styles.getStyleNames(e)}hasStyle(...e){for(const t of e)if(!this._styles.has(t))return!1;return!0}findAncestor(...e){const t=new cn(...e);let n=this.parent;for(;n&&!n.is("documentFragment");){if(t.match(n))return n;n=n.parent}return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),n=Array.from(this._attrs).map(o=>`${o[0]}="${o[1]}"`).sort().join(" ");return this.name+(e==""?"":` class="${e}"`)+(t?` style="${t}"`:"")+(n==""?"":` ${n}`)}shouldRenderUnsafeAttribute(e){return this._unsafeAttributesToRender.includes(e)}_clone(e=!1){const t=[];if(e)for(const o of this.getChildren())t.push(o._clone(e));const n=new this.constructor(this.document,this.name,this._attrs,t);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._unsafeAttributesToRender=this._unsafeAttributesToRender,n}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){this._fireChange("children",this);let n=0;const o=function(r,s){return typeof s=="string"?[new Se(r,s)]:(Ee(s)||(s=[s]),Array.from(s).map(a=>typeof a=="string"?new Se(r,a):a instanceof an?new Se(r,a.data):a))}(this.document,t);for(const r of o)r.parent!==null&&r._remove(),r.parent=this,r.document=this.document,this._children.splice(e,0,r),e++,n++;return n}_removeChildren(e,t=1){this._fireChange("children",this);for(let n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}_setAttribute(e,t){const n=String(t);this._fireChange("attributes",this),e=="class"?Nd(this._classes,n):e=="style"?this._styles.setTo(n):this._attrs.set(e,n)}_removeAttribute(e){return this._fireChange("attributes",this),e=="class"?this._classes.size>0&&(this._classes.clear(),!0):e=="style"?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}_addClass(e){this._fireChange("attributes",this);for(const t of Oe(e))this._classes.add(t)}_removeClass(e){this._fireChange("attributes",this);for(const t of Oe(e))this._classes.delete(t)}_setStyle(e,t){this._fireChange("attributes",this),typeof e!="string"?this._styles.set(e):this._styles.set(e,t)}_removeStyle(e){this._fireChange("attributes",this);for(const t of Oe(e))this._styles.remove(t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}function Nd(i,e){const t=e.split(/\s+/);i.clear(),t.forEach(n=>i.add(n))}xt.prototype.is=function(i,e){return e?e===this.name&&(i==="element"||i==="view:element"):i==="element"||i==="view:element"||i==="node"||i==="view:node"};class fo extends xt{constructor(e,t,n,o){super(e,t,n,o),this.getFillerOffset=V0}}function V0(){const i=[...this.getChildren()],e=i[this.childCount-1];if(e&&e.is("element","br"))return this.childCount;for(const t of i)if(!t.is("uiElement"))return null;return this.childCount}fo.prototype.is=function(i,e){return e?e===this.name&&(i==="containerElement"||i==="view:containerElement"||i==="element"||i==="view:element"):i==="containerElement"||i==="view:containerElement"||i==="element"||i==="view:element"||i==="node"||i==="view:node"};class vr extends xe(fo){constructor(e,t,n,o){super(e,t,n,o),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(e),this.bind("isFocused").to(e,"isFocused",r=>r&&e.selection.editableElement==this),this.listenTo(e.selection,"change",()=>{this.isFocused=e.isFocused&&e.selection.editableElement==this})}destroy(){this.stopListening()}}vr.prototype.is=function(i,e){return e?e===this.name&&(i==="editableElement"||i==="view:editableElement"||i==="containerElement"||i==="view:containerElement"||i==="element"||i==="view:element"):i==="editableElement"||i==="view:editableElement"||i==="containerElement"||i==="view:containerElement"||i==="element"||i==="view:element"||i==="node"||i==="view:node"};const Od=Symbol("rootName");class Pd extends vr{constructor(e,t){super(e,t),this.rootName="main"}get rootName(){return this.getCustomProperty(Od)}set rootName(e){this._setCustomProperty(Od,e)}set _name(e){this.name=e}}Pd.prototype.is=function(i,e){return e?e===this.name&&(i==="rootElement"||i==="view:rootElement"||i==="editableElement"||i==="view:editableElement"||i==="containerElement"||i==="view:containerElement"||i==="element"||i==="view:element"):i==="rootElement"||i==="view:rootElement"||i==="editableElement"||i==="view:editableElement"||i==="containerElement"||i==="view:containerElement"||i==="element"||i==="view:element"||i==="node"||i==="view:node"};class $n{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new B("view-tree-walker-no-start-position",null);if(e.direction&&e.direction!="forward"&&e.direction!="backward")throw new B("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this._position=Y._createAt(e.startPosition):this._position=Y._createAt(e.boundaries[e.direction=="backward"?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(e){let t,n;do n=this.position,t=this.next();while(!t.done&&e(t.value));t.done||(this._position=n)}next(){return this.direction=="forward"?this._next():this._previous()}_next(){let e=this.position.clone();const t=this.position,n=e.parent;if(n.parent===null&&e.offset===n.childCount)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let o;if(n instanceof Se){if(e.isAtEnd)return this._position=Y._createAfter(n),this._next();o=n.data[e.offset]}else o=n.getChild(e.offset);if(o instanceof xt){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}else e=new Y(o,0);return this._position=e,this._formatReturnValue("elementStart",o,t,e,1)}if(o instanceof Se){if(this.singleCharacters)return e=new Y(o,0),this._position=e,this._next();let r,s=o.data.length;return o==this._boundaryEndParent?(s=this.boundaries.end.offset,r=new an(o,0,s),e=Y._createAfter(r)):(r=new an(o,0,o.data.length),e.offset++),this._position=e,this._formatReturnValue("text",r,t,e,s)}if(typeof o=="string"){let r;this.singleCharacters?r=1:r=(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-e.offset;const s=new an(n,e.offset,r);return e.offset+=r,this._position=e,this._formatReturnValue("text",s,t,e,r)}return e=Y._createAfter(n),this._position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,t,e)}_previous(){let e=this.position.clone();const t=this.position,n=e.parent;if(n.parent===null&&e.offset===0)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let o;if(n instanceof Se){if(e.isAtStart)return this._position=Y._createBefore(n),this._previous();o=n.data[e.offset-1]}else o=n.getChild(e.offset-1);if(o instanceof xt)return this.shallow?(e.offset--,this._position=e,this._formatReturnValue("elementStart",o,t,e,1)):(e=new Y(o,o.childCount),this._position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",o,t,e));if(o instanceof Se){if(this.singleCharacters)return e=new Y(o,o.data.length),this._position=e,this._previous();let r,s=o.data.length;if(o==this._boundaryStartParent){const a=this.boundaries.start.offset;r=new an(o,a,o.data.length-a),s=r.data.length,e=Y._createBefore(r)}else r=new an(o,0,o.data.length),e.offset--;return this._position=e,this._formatReturnValue("text",r,t,e,s)}if(typeof o=="string"){let r;if(this.singleCharacters)r=1;else{const a=n===this._boundaryStartParent?this.boundaries.start.offset:0;r=e.offset-a}e.offset-=r;const s=new an(n,e.offset,r);return this._position=e,this._formatReturnValue("text",s,t,e,r)}return e=Y._createBefore(n),this._position=e,this._formatReturnValue("elementStart",n,t,e,1)}_formatReturnValue(e,t,n,o,r){return t instanceof an&&(t.offsetInText+t.data.length==t.textNode.data.length&&(this.direction!="forward"||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=Y._createAfter(t.textNode):(o=Y._createAfter(t.textNode),this._position=o)),t.offsetInText===0&&(this.direction!="backward"||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=Y._createBefore(t.textNode):(o=Y._createBefore(t.textNode),this._position=o))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:o,length:r}}}}class Y extends qn{constructor(e,t){super(),this.parent=e,this.offset=t}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return this.offset===0}get isAtEnd(){const e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}get root(){return this.parent.root}get editableElement(){let e=this.parent;for(;!(e instanceof vr);){if(!e.parent)return null;e=e.parent}return e}getShiftedBy(e){const t=Y._createAt(this),n=t.offset+e;return t.offset=n<0?0:n,t}getLastMatchingPosition(e,t={}){t.startPosition=this;const n=new $n(t);return n.skip(e),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){const t=this.getAncestors(),n=e.getAncestors();let o=0;for(;t[o]==n[o]&&t[o];)o++;return o===0?null:t[o-1]}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return this.compareWith(e)=="before"}isAfter(e){return this.compareWith(e)=="after"}compareWith(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";const t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);const o=ot(t,n);switch(o){case"prefix":return"before";case"extension":return"after";default:return t[o]<n[o]?"before":"after"}}getWalker(e={}){return e.startPosition=this,new $n(e)}clone(){return new Y(this.parent,this.offset)}static _createAt(e,t){if(e instanceof Y)return new this(e.parent,e.offset);{const n=e;if(t=="end")t=n.is("$text")?n.data.length:n.childCount;else{if(t=="before")return this._createBefore(n);if(t=="after")return this._createAfter(n);if(t!==0&&!t)throw new B("view-createpositionat-offset-required",n)}return new Y(n,t)}}static _createAfter(e){if(e.is("$textProxy"))return new Y(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new B("view-position-after-root",e,{root:e});return new Y(e.parent,e.index+1)}static _createBefore(e){if(e.is("$textProxy"))return new Y(e.textNode,e.offsetInText);if(!e.parent)throw new B("view-position-before-root",e,{root:e});return new Y(e.parent,e.index)}}Y.prototype.is=function(i){return i==="position"||i==="view:position"};class ie extends qn{constructor(e,t=null){super(),this.start=e.clone(),this.end=t?t.clone():e.clone()}*[Symbol.iterator](){yield*new $n({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let e=this.start.getLastMatchingPosition(yr,{direction:"backward"}),t=this.end.getLastMatchingPosition(yr);return e.parent.is("$text")&&e.isAtStart&&(e=Y._createBefore(e.parent)),t.parent.is("$text")&&t.isAtEnd&&(t=Y._createAfter(t.parent)),new ie(e,t)}getTrimmed(){let e=this.start.getLastMatchingPosition(yr);if(e.isAfter(this.end)||e.isEqual(this.end))return new ie(e,e);let t=this.end.getLastMatchingPosition(yr,{direction:"backward"});const n=e.nodeAfter,o=t.nodeBefore;return n&&n.is("$text")&&(e=new Y(n,0)),o&&o.is("$text")&&(t=new Y(o,o.data.length)),new ie(e,t)}isEqual(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),o=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&o}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new ie(this.start,e.start)),this.containsPosition(e.end)&&t.push(new ie(e.end,this.end))):t.push(this.clone()),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new ie(t,n)}return null}getWalker(e={}){return e.boundaries=this,new $n(e)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}clone(){return new ie(this.start,this.end)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new $n(e);for(const n of t)yield n.item}*getPositions(e={}){e.boundaries=this;const t=new $n(e);yield t.position;for(const n of t)yield n.nextPosition}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}static _createFromParentsAndOffsets(e,t,n,o){return new this(new Y(e,t),new Y(n,o))}static _createFromPositionAndShift(e,t){const n=e,o=e.getShiftedBy(t);return t>0?new this(n,o):new this(o,n)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){const t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(Y._createBefore(e),t)}}function yr(i){return!(!i.item.is("attributeElement")&&!i.item.is("uiElement"))}ie.prototype.is=function(i){return i==="range"||i==="view:range"};class $t extends ye(qn){constructor(...e){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",e.length&&this.setTo(...e)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}get focus(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}get isCollapsed(){return this.rangeCount===1&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const e of this._ranges)yield e.clone()}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?e.clone():null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?e.clone():null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake||this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel||this.rangeCount!=e.rangeCount)return!1;if(this.rangeCount===0)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let n=!1;for(const o of e._ranges)if(t.isEqual(o)){n=!0;break}if(!n)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;const t=hi(this.getRanges());if(t!=hi(e.getRanges()))return!1;if(t==0)return!0;for(let n of this.getRanges()){n=n.getTrimmed();let o=!1;for(let r of e.getRanges())if(r=r.getTrimmed(),n.start.isEqual(r.start)&&n.end.isEqual(r.end)){o=!0;break}if(!o)return!1}return!0}getSelectedElement(){return this.rangeCount!==1?null:this.getFirstRange().getContainedElement()}setTo(...e){let[t,n,o]=e;if(typeof n=="object"&&(o=n,n=void 0),t===null)this._setRanges([]),this._setFakeOptions(o);else if(t instanceof $t||t instanceof da)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof ie)this._setRanges([t],o&&o.backward),this._setFakeOptions(o);else if(t instanceof Y)this._setRanges([new ie(t)]),this._setFakeOptions(o);else if(t instanceof Gn){const r=!!o&&!!o.backward;let s;if(n===void 0)throw new B("view-selection-setto-required-second-parameter",this);s=n=="in"?ie._createIn(t):n=="on"?ie._createOn(t):new ie(Y._createAt(t,n)),this._setRanges([s],r),this._setFakeOptions(o)}else{if(!Ee(t))throw new B("view-selection-setto-not-selectable",this);this._setRanges(t,o&&o.backward),this._setFakeOptions(o)}this.fire("change")}setFocus(e,t){if(this.anchor===null)throw new B("view-selection-setfocus-no-ranges",this);const n=Y._createAt(e,t);if(n.compareWith(this.focus)=="same")return;const o=this.anchor;this._ranges.pop(),n.compareWith(o)=="before"?this._addRange(new ie(n,o),!0):this._addRange(new ie(o,n)),this.fire("change")}_setRanges(e,t=!1){e=Array.from(e),this._ranges=[];for(const n of e)this._addRange(n);this._lastRangeBackward=!!t}_setFakeOptions(e={}){this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}_addRange(e,t=!1){if(!(e instanceof ie))throw new B("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}_pushRange(e){for(const t of this._ranges)if(e.isIntersecting(t))throw new B("view-selection-range-intersects",this,{addedRange:e,intersectingRange:t});this._ranges.push(new ie(e.start,e.end))}}$t.prototype.is=function(i){return i==="selection"||i==="view:selection"};class da extends ye(qn){constructor(...e){super(),this._selection=new $t,this._selection.delegate("change").to(this),e.length&&this._selection.setTo(...e)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}_setTo(...e){this._selection.setTo(...e)}_setFocus(e,t){this._selection.setFocus(e,t)}}da.prototype.is=function(i){return i==="selection"||i=="documentSelection"||i=="view:selection"||i=="view:documentSelection"};class Di extends V{constructor(e,t,n){super(e,t),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const ua=Symbol("bubbling contexts");function ha(i){return class extends i{fire(e,...t){try{const n=e instanceof V?e:new V(this,e),o=ga(this);if(!o.size)return;if(ko(n,"capturing",this),Ei(o,"$capture",n,...t))return n.return;const r=n.startRange||this.selection.getFirstRange(),s=r?r.getContainedElement():null,a=!!s&&!!Ld(o,s);let c=s||function(l){if(!l)return null;const d=l.start.parent,u=l.end.parent,h=d.getPath(),m=u.getPath();return h.length>m.length?d:u}(r);if(ko(n,"atTarget",c),!a){if(Ei(o,"$text",n,...t))return n.return;ko(n,"bubbling",c)}for(;c;){if(c.is("rootElement")){if(Ei(o,"$root",n,...t))return n.return}else if(c.is("element")&&Ei(o,c.name,n,...t))return n.return;if(Ei(o,c,n,...t))return n.return;c=c.parent,ko(n,"bubbling",c)}return ko(n,"bubbling",this),Ei(o,"$document",n,...t),n.return}catch(n){B.rethrowUnexpectedError(n,this)}}_addEventListener(e,t,n){const o=Oe(n.context||"$document"),r=ga(this);for(const s of o){let a=r.get(s);a||(a=new(ye()),r.set(s,a)),this.listenTo(a,e,t,n)}}_removeEventListener(e,t){const n=ga(this);for(const o of n.values())this.stopListening(o,e,t)}}}{const i=ha(Object);["fire","_addEventListener","_removeEventListener"].forEach(e=>{ha[e]=i.prototype[e]})}function ko(i,e,t){i instanceof Di&&(i._eventPhase=e,i._currentTarget=t)}function Ei(i,e,t,...n){const o=typeof e=="string"?i.get(e):Ld(i,e);return!!o&&(o.fire(t,...n),t.stop.called)}function Ld(i,e){for(const[t,n]of i)if(typeof t=="function"&&t(e))return n;return null}function ga(i){return i[ua]||(i[ua]=new Map),i[ua]}class xr extends ha(xe()){constructor(e){super(),this._postFixers=new Set,this.selection=new da,this.roots=new qt({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(e="main"){return this.roots.get(e)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.forEach(e=>e.destroy()),this.stopListening()}_callPostFixers(e){let t=!1;do for(const n of this._postFixers)if(t=n(e),t)break;while(t)}}class Kn extends xt{constructor(e,t,n,o){super(e,t,n,o),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=H0}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(this.id===null)throw new B("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(e){return this.id!==null||e.id!==null?this.id===e.id:super.isSimilar(e)&&this.priority==e.priority}_clone(e=!1){const t=super._clone(e);return t._priority=this._priority,t._id=this._id,t}}function H0(){if(ma(this))return null;let i=this.parent;for(;i&&i.is("attributeElement");){if(ma(i)>1)return null;i=i.parent}return!i||ma(i)>1?null:this.childCount}function ma(i){return Array.from(i.getChildren()).filter(e=>!e.is("uiElement")).length}Kn.DEFAULT_PRIORITY=10,Kn.prototype.is=function(i,e){return e?e===this.name&&(i==="attributeElement"||i==="view:attributeElement"||i==="element"||i==="view:element"):i==="attributeElement"||i==="view:attributeElement"||i==="element"||i==="view:element"||i==="node"||i==="view:node"};class pa extends xt{constructor(e,t,n,o){super(e,t,n,o),this.getFillerOffset=U0}_insertChild(e,t){if(t&&(t instanceof Gn||Array.from(t).length>0))throw new B("view-emptyelement-cannot-add",[this,t]);return 0}}function U0(){return null}pa.prototype.is=function(i,e){return e?e===this.name&&(i==="emptyElement"||i==="view:emptyElement"||i==="element"||i==="view:element"):i==="emptyElement"||i==="view:emptyElement"||i==="element"||i==="view:element"||i==="node"||i==="view:node"};class Dr extends xt{constructor(e,t,n,o){super(e,t,n,o),this.getFillerOffset=q0}_insertChild(e,t){if(t&&(t instanceof Gn||Array.from(t).length>0))throw new B("view-uielement-cannot-add",[this,t]);return 0}render(e,t){return this.toDomElement(e)}toDomElement(e){const t=e.createElement(this.name);for(const n of this.getAttributeKeys())t.setAttribute(n,this.getAttribute(n));return t}}function W0(i){i.document.on("arrowKey",(e,t)=>function(n,o,r){if(o.keyCode==ke.arrowright){const s=o.domTarget.ownerDocument.defaultView.getSelection(),a=s.rangeCount==1&&s.getRangeAt(0).collapsed;if(a||o.shiftKey){const c=s.focusNode,l=s.focusOffset,d=r.domPositionToView(c,l);if(d===null)return;let u=!1;const h=d.getLastMatchingPosition(m=>(m.item.is("uiElement")&&(u=!0),!(!m.item.is("uiElement")&&!m.item.is("attributeElement"))));if(u){const m=r.viewPositionToDom(h);a?s.collapse(m.parent,m.offset):s.extend(m.parent,m.offset)}}}}(0,t,i.domConverter),{priority:"low"})}function q0(){return null}Dr.prototype.is=function(i,e){return e?e===this.name&&(i==="uiElement"||i==="view:uiElement"||i==="element"||i==="view:element"):i==="uiElement"||i==="view:uiElement"||i==="element"||i==="view:element"||i==="node"||i==="view:node"};class fa extends xt{constructor(e,t,n,o){super(e,t,n,o),this.getFillerOffset=G0}_insertChild(e,t){if(t&&(t instanceof Gn||Array.from(t).length>0))throw new B("view-rawelement-cannot-add",[this,t]);return 0}render(e,t){}}function G0(){return null}fa.prototype.is=function(i,e){return e?e===this.name&&(i==="rawElement"||i==="view:rawElement"||i==="element"||i==="view:element"):i==="rawElement"||i==="view:rawElement"||i===this.name||i==="view:"+this.name||i==="element"||i==="view:element"||i==="node"||i==="view:node"};class Yn extends ye(qn){constructor(e,t){super(),this._children=[],this._customProperties=new Map,this.document=e,t&&this._insertChild(0,t)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return this.childCount===0}get root(){return this}get parent(){return null}get name(){}get getFillerOffset(){}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(e){return this._insertChild(this.childCount,e)}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(e,t){this._fireChange("children",this);let n=0;const o=function(r,s){return typeof s=="string"?[new Se(r,s)]:(Ee(s)||(s=[s]),Array.from(s).map(a=>typeof a=="string"?new Se(r,a):a instanceof an?new Se(r,a.data):a))}(this.document,t);for(const r of o)r.parent!==null&&r._remove(),r.parent=this,this._children.splice(e,0,r),e++,n++;return n}_removeChildren(e,t=1){this._fireChange("children",this);for(let n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}_fireChange(e,t){this.fire("change:"+e,t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}Yn.prototype.is=function(i){return i==="documentFragment"||i==="view:documentFragment"};class zd{constructor(e){this._cloneGroups=new Map,this._slotFactory=null,this.document=e}setSelection(...e){this.document.selection._setTo(...e)}setSelectionFocus(e,t){this.document.selection._setFocus(e,t)}createDocumentFragment(e){return new Yn(this.document,e)}createText(e){return new Se(this.document,e)}createAttributeElement(e,t,n={}){const o=new Kn(this.document,e,t);return typeof n.priority=="number"&&(o._priority=n.priority),n.id&&(o._id=n.id),n.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),o}createContainerElement(e,t,n={},o={}){let r=null;yt(n)?o=n:r=n;const s=new fo(this.document,e,t,r);return o.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),s}createEditableElement(e,t,n={}){const o=new vr(this.document,e,t);return n.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),o}createEmptyElement(e,t,n={}){const o=new pa(this.document,e,t);return n.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),o}createUIElement(e,t,n){const o=new Dr(this.document,e,t);return n&&(o.render=n),o}createRawElement(e,t,n,o={}){const r=new fa(this.document,e,t);return n&&(r.render=n),o.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),r}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){yt(e)&&n===void 0?t._setStyle(e):n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){return e instanceof Y?this._breakAttributes(e):this._breakAttributesRange(e)}breakContainer(e){const t=e.parent;if(!t.is("containerElement"))throw new B("view-writer-break-non-container-element",this.document);if(!t.parent)throw new B("view-writer-break-root",this.document);if(e.isAtStart)return Y._createBefore(t);if(!e.isAtEnd){const n=t._clone(!1);this.insert(Y._createAfter(t),n);const o=new ie(e,Y._createAt(t,"end")),r=new Y(n,0);this.move(o,r)}return Y._createAfter(t)}mergeAttributes(e){const t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&n.childCount===0){const s=n.parent,a=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new Y(s,a))}const o=n.getChild(t-1),r=n.getChild(t);if(!o||!r)return e;if(o.is("$text")&&r.is("$text"))return jd(o,r);if(o.is("attributeElement")&&r.is("attributeElement")&&o.isSimilar(r)){const s=o.childCount;return o._appendChild(r.getChildren()),r._remove(),this._removeFromClonedElementsGroup(r),this.mergeAttributes(new Y(o,s))}return e}mergeContainers(e){const t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new B("view-writer-merge-containers-invalid-position",this.document);const o=t.getChild(t.childCount-1),r=o instanceof Se?Y._createAt(o,"end"):Y._createAt(t,"end");return this.move(ie._createIn(n),Y._createAt(t,"end")),this.remove(ie._createOn(n)),r}insert(e,t){Fd(t=Ee(t)?[...t]:[t],this.document);const n=t.reduce((s,a)=>{const c=s[s.length-1],l=!a.is("uiElement");return c&&c.breakAttributes==l?c.nodes.push(a):s.push({breakAttributes:l,nodes:[a]}),s},[]);let o=null,r=e;for(const{nodes:s,breakAttributes:a}of n){const c=this._insertNodes(r,s,a);o||(o=c.start),r=c.end}return o?new ie(o,r):new ie(e)}remove(e){const t=e instanceof ie?e:ie._createOn(e);if(bo(t,this.document),t.isCollapsed)return new Yn(this.document);const{start:n,end:o}=this._breakAttributesRange(t,!0),r=n.parent,s=o.offset-n.offset,a=r._removeChildren(n.offset,s);for(const l of a)this._removeFromClonedElementsGroup(l);const c=this.mergeAttributes(n);return t.start=c,t.end=c.clone(),new Yn(this.document,a)}clear(e,t){bo(e,this.document);const n=e.getWalker({direction:"backward",ignoreElementEnd:!0});for(const o of n){const r=o.item;let s;if(r.is("element")&&t.isSimilar(r))s=ie._createOn(r);else if(!o.nextPosition.isAfter(e.start)&&r.is("$textProxy")){const a=r.getAncestors().find(c=>c.is("element")&&t.isSimilar(c));a&&(s=ie._createIn(a))}s&&(s.end.isAfter(e.end)&&(s.end=e.end),s.start.isBefore(e.start)&&(s.start=e.start),this.remove(s))}}move(e,t){let n;if(t.isAfter(e.end)){const o=(t=this._breakAttributes(t,!0)).parent,r=o.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=o.childCount-r}else n=this.remove(e);return this.insert(t,n)}wrap(e,t){if(!(t instanceof Kn))throw new B("view-writer-wrap-invalid-attribute",this.document);if(bo(e,this.document),e.isCollapsed){let o=e.start;o.parent.is("element")&&(n=o.parent,!Array.from(n.getChildren()).some(s=>!s.is("uiElement")))&&(o=o.getLastMatchingPosition(s=>s.item.is("uiElement"))),o=this._wrapPosition(o,t);const r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(e.start)&&this.setSelection(o),new ie(o)}return this._wrapRange(e,t);var n}unwrap(e,t){if(!(t instanceof Kn))throw new B("view-writer-unwrap-invalid-attribute",this.document);if(bo(e,this.document),e.isCollapsed)return e;const{start:n,end:o}=this._breakAttributesRange(e,!0),r=n.parent,s=this._unwrapChildren(r,n.offset,o.offset,t),a=this.mergeAttributes(s.start);a.isEqual(s.start)||s.end.offset--;const c=this.mergeAttributes(s.end);return new ie(a,c)}rename(e,t){const n=new fo(this.document,e,t.getAttributes());return this.insert(Y._createAfter(t),n),this.move(ie._createIn(t),Y._createAt(n,0)),this.remove(ie._createOn(t)),n}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return Y._createAt(e,t)}createPositionAfter(e){return Y._createAfter(e)}createPositionBefore(e){return Y._createBefore(e)}createRange(e,t){return new ie(e,t)}createRangeOn(e){return ie._createOn(e)}createRangeIn(e){return ie._createIn(e)}createSelection(...e){return new $t(...e)}createSlot(e="children"){if(!this._slotFactory)throw new B("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,e)}_registerSlotFactory(e){this._slotFactory=e}_clearSlotFactory(){this._slotFactory=null}_insertNodes(e,t,n){let o,r;if(o=n?ka(e):e.parent.is("$text")?e.parent.parent:e.parent,!o)throw new B("view-writer-invalid-position-container",this.document);r=n?this._breakAttributes(e,!0):e.parent.is("$text")?ba(e):e;const s=o._insertChild(r.offset,t);for(const d of t)this._addToClonedElementsGroup(d);const a=r.getShiftedBy(s),c=this.mergeAttributes(r);c.isEqual(r)||a.offset--;const l=this.mergeAttributes(a);return new ie(c,l)}_wrapChildren(e,t,n,o){let r=t;const s=[];for(;r<n;){const c=e.getChild(r),l=c.is("$text"),d=c.is("attributeElement");if(d&&this._wrapAttributeElement(o,c))s.push(new Y(e,r));else if(l||!d||$0(o,c)){const u=o._clone();c._remove(),u._appendChild(c),e._insertChild(r,u),this._addToClonedElementsGroup(u),s.push(new Y(e,r))}else this._wrapChildren(c,0,c.childCount,o);r++}let a=0;for(const c of s)c.offset-=a,c.offset!=t&&(this.mergeAttributes(c).isEqual(c)||(a++,n--));return ie._createFromParentsAndOffsets(e,t,e,n)}_unwrapChildren(e,t,n,o){let r=t;const s=[];for(;r<n;){const c=e.getChild(r);if(c.is("attributeElement"))if(c.isSimilar(o)){const l=c.getChildren(),d=c.childCount;c._remove(),e._insertChild(r,l),this._removeFromClonedElementsGroup(c),s.push(new Y(e,r),new Y(e,r+d)),r+=d,n+=d-1}else this._unwrapAttributeElement(o,c)?(s.push(new Y(e,r),new Y(e,r+1)),r++):(this._unwrapChildren(c,0,c.childCount,o),r++);else r++}let a=0;for(const c of s)c.offset-=a,!(c.offset==t||c.offset==n)&&(this.mergeAttributes(c).isEqual(c)||(a++,n--));return ie._createFromParentsAndOffsets(e,t,e,n)}_wrapRange(e,t){const{start:n,end:o}=this._breakAttributesRange(e,!0),r=n.parent,s=this._wrapChildren(r,n.offset,o.offset,t),a=this.mergeAttributes(s.start);a.isEqual(s.start)||s.end.offset--;const c=this.mergeAttributes(s.end);return new ie(a,c)}_wrapPosition(e,t){if(t.isSimilar(e.parent))return Rd(e.clone());e.parent.is("$text")&&(e=ba(e));const n=this.createAttributeElement("_wrapPosition-fake-element");n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,e.parent._insertChild(e.offset,n);const o=new ie(e,e.getShiftedBy(1));this.wrap(o,t);const r=new Y(n.parent,n.index);n._remove();const s=r.nodeBefore,a=r.nodeAfter;return s instanceof Se&&a instanceof Se?jd(s,a):Rd(r)}_wrapAttributeElement(e,t){if(!Vd(e,t)||e.name!==t.name||e.priority!==t.priority)return!1;for(const n of e.getAttributeKeys())if(n!=="class"&&n!=="style"&&t.hasAttribute(n)&&t.getAttribute(n)!==e.getAttribute(n))return!1;for(const n of e.getStyleNames())if(t.hasStyle(n)&&t.getStyle(n)!==e.getStyle(n))return!1;for(const n of e.getAttributeKeys())n!=="class"&&n!=="style"&&(t.hasAttribute(n)||this.setAttribute(n,e.getAttribute(n),t));for(const n of e.getStyleNames())t.hasStyle(n)||this.setStyle(n,e.getStyle(n),t);for(const n of e.getClassNames())t.hasClass(n)||this.addClass(n,t);return!0}_unwrapAttributeElement(e,t){if(!Vd(e,t)||e.name!==t.name||e.priority!==t.priority)return!1;for(const n of e.getAttributeKeys())if(n!=="class"&&n!=="style"&&(!t.hasAttribute(n)||t.getAttribute(n)!==e.getAttribute(n)))return!1;if(!t.hasClass(...e.getClassNames()))return!1;for(const n of e.getStyleNames())if(!t.hasStyle(n)||t.getStyle(n)!==e.getStyle(n))return!1;for(const n of e.getAttributeKeys())n!=="class"&&n!=="style"&&this.removeAttribute(n,t);return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}_breakAttributesRange(e,t=!1){const n=e.start,o=e.end;if(bo(e,this.document),e.isCollapsed){const c=this._breakAttributes(e.start,t);return new ie(c,c)}const r=this._breakAttributes(o,t),s=r.parent.childCount,a=this._breakAttributes(n,t);return r.offset+=r.parent.childCount-s,new ie(a,r)}_breakAttributes(e,t=!1){const n=e.offset,o=e.parent;if(e.parent.is("emptyElement"))throw new B("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new B("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new B("view-writer-cannot-break-raw-element",this.document);if(!t&&o.is("$text")&&wa(o.parent)||wa(o))return e.clone();if(o.is("$text"))return this._breakAttributes(ba(e),t);if(n==o.childCount){const r=new Y(o.parent,o.index+1);return this._breakAttributes(r,t)}if(n===0){const r=new Y(o.parent,o.index);return this._breakAttributes(r,t)}{const r=o.index+1,s=o._clone();o.parent._insertChild(r,s),this._addToClonedElementsGroup(s);const a=o.childCount-n,c=o._removeChildren(n,a);s._appendChild(c);const l=new Y(o.parent,r);return this._breakAttributes(l,t)}}_addToClonedElementsGroup(e){if(!e.root.is("rootElement"))return;if(e.is("element"))for(const o of e.getChildren())this._addToClonedElementsGroup(o);const t=e.id;if(!t)return;let n=this._cloneGroups.get(t);n||(n=new Set,this._cloneGroups.set(t,n)),n.add(e),e._clonesGroup=n}_removeFromClonedElementsGroup(e){if(e.is("element"))for(const o of e.getChildren())this._removeFromClonedElementsGroup(o);const t=e.id;if(!t)return;const n=this._cloneGroups.get(t);n&&n.delete(e)}}function ka(i){let e=i.parent;for(;!wa(e);){if(!e)return;e=e.parent}return e}function $0(i,e){return i.priority<e.priority||!(i.priority>e.priority)&&i.getIdentity()<e.getIdentity()}function Rd(i){const e=i.nodeBefore;if(e&&e.is("$text"))return new Y(e,e.data.length);const t=i.nodeAfter;return t&&t.is("$text")?new Y(t,0):i}function ba(i){if(i.offset==i.parent.data.length)return new Y(i.parent.parent,i.parent.index+1);if(i.offset===0)return new Y(i.parent.parent,i.parent.index);const e=i.parent.data.slice(i.offset);return i.parent._data=i.parent.data.slice(0,i.offset),i.parent.parent._insertChild(i.parent.index+1,new Se(i.root.document,e)),new Y(i.parent.parent,i.parent.index+1)}function jd(i,e){const t=i.data.length;return i._data+=e.data,e._remove(),new Y(i,t)}const K0=[Se,Kn,fo,pa,fa,Dr];function Fd(i,e){for(const t of i){if(!K0.some(n=>t instanceof n))throw new B("view-writer-insert-invalid-node-type",e);t.is("$text")||Fd(t.getChildren(),e)}}function wa(i){return i&&(i.is("containerElement")||i.is("documentFragment"))}function bo(i,e){const t=ka(i.start),n=ka(i.end);if(!t||!n||t!==n)throw new B("view-writer-invalid-range-container",e)}function Vd(i,e){return i.id===null&&e.id===null}const Hd=i=>i.createTextNode(" "),Ud=i=>{const e=i.createElement("span");return e.dataset.ckeFiller="true",e.innerText=" ",e},Wd=i=>{const e=i.createElement("br");return e.dataset.ckeFiller="true",e},Kt=7,wo="".repeat(Kt);function Dt(i){return typeof i=="string"?i.substr(0,Kt)===wo:Ze(i)&&i.data.substr(0,Kt)===wo}function Ti(i){return i.data.length==Kt&&Dt(i)}function qd(i){const e=typeof i=="string"?i:i.data;return Dt(i)?e.slice(Kt):e}function Y0(i,e){if(e.keyCode==ke.arrowleft){const t=e.domTarget.ownerDocument.defaultView.getSelection();if(t.rangeCount==1&&t.getRangeAt(0).collapsed){const n=t.getRangeAt(0).startContainer,o=t.getRangeAt(0).startOffset;Dt(n)&&o<=Kt&&t.collapse(n,0)}}}var Gd=I(8264),Q0={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Gd.A,Q0),Gd.A.locals;class Z0 extends xe(){constructor(e,t){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=e,this.selection=t,this.set("isFocused",!1),this.set("isSelecting",!1),x.isBlink&&!x.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()})}markToSync(e,t){if(e==="text")this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if(e==="attributes")this.markedAttributes.add(t);else{if(e!=="children")throw new B("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}render(){if(this.isComposing&&!x.isAndroid)return;let e=null;const t=!(x.isBlink&&!x.isAndroid)||!this.isSelecting;for(const n of this.markedChildren)this._updateChildrenMappings(n);t?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(e=this.domConverter.domPositionToView(this._inlineFiller),e&&e.parent.is("$text")&&(e=Y._createBefore(e.parent)));for(const n of this.markedAttributes)this._updateAttrs(n);for(const n of this.markedChildren)this._updateChildren(n,{inlineFillerPosition:e});for(const n of this.markedTexts)!this.markedChildren.has(n.parent)&&this.domConverter.mapViewToDom(n.parent)&&this._updateText(n,{inlineFillerPosition:e});if(t)if(e){const n=this.domConverter.viewPositionToDom(e),o=n.parent.ownerDocument;Dt(n.parent)?this._inlineFiller=n.parent:this._inlineFiller=$d(o,n.parent,n.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const n=Array.from(t.childNodes),o=Array.from(this.domConverter.viewChildrenToDom(e,{withChildren:!1})),r=this._diffNodeLists(n,o),s=this._findUpdateActions(r,n,o,J0);if(s.indexOf("update")!==-1){const a={equal:0,insert:0,delete:0};for(const c of s)if(c==="update"){const l=a.equal+a.insert,d=a.equal+a.delete,u=e.getChild(l);!u||u.is("uiElement")||u.is("rawElement")||this._updateElementMappings(u,n[d]),Yl(o[l]),a.equal++}else a[c]++}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}_getInlineFillerPosition(){const e=this.selection.getFirstPosition();return e.parent.is("$text")?Y._createBefore(e.parent):e}_isSelectionInInlineFiller(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&Ze(t.parent)&&Dt(t.parent))}_removeInlineFiller(){const e=this._inlineFiller;if(!Dt(e))throw new B("view-renderer-filler-was-lost",this);Ti(e)?e.remove():e.data=e.data.substr(Kt),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(this.selection.rangeCount!=1||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;if(!this.domConverter.mapViewToDom(t.root)||!t.is("element")||!function(s){if(s.getAttribute("contenteditable")=="false")return!1;const a=s.findAncestor(c=>c.hasAttribute("contenteditable"));return!a||a.getAttribute("contenteditable")=="true"}(t))return!1;const o=e.nodeBefore,r=e.nodeAfter;return!(o instanceof Se||r instanceof Se)&&!!(n!==t.getFillerOffset()||o&&o.is("element","br"))&&(!x.isAndroid||!o&&!r)}_updateText(e,t){const n=this.domConverter.findCorrespondingDomText(e);let o=this.domConverter.viewToDom(e).data;const r=t.inlineFillerPosition;r&&r.parent==e.parent&&r.offset==e.index&&(o=wo+o),Kd(n,o)}_updateAttrs(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const n=Array.from(t.attributes).map(r=>r.name),o=e.getAttributeKeys();for(const r of o)this.domConverter.setDomElementAttribute(t,r,e.getAttribute(r),e);for(const r of n)e.hasAttribute(r)||this.domConverter.removeDomElementAttribute(t,r)}_updateChildren(e,t){const n=this.domConverter.mapViewToDom(e);if(!n)return;if(x.isAndroid){let u=null;for(const h of Array.from(n.childNodes)){if(u&&Ze(u)&&Ze(h)){n.normalize();break}u=h}}const o=t.inlineFillerPosition,r=n.childNodes,s=Array.from(this.domConverter.viewChildrenToDom(e,{bind:!0}));o&&o.parent===e&&$d(n.ownerDocument,s,o.offset);const a=this._diffNodeLists(r,s),c=this._findUpdateActions(a,r,s,X0);let l=0;const d=new Set;for(const u of c)u==="delete"?(d.add(r[l]),Yl(r[l])):u!=="equal"&&u!=="update"||l++;l=0;for(const u of c)u==="insert"?(ql(n,l,s[l]),l++):u==="update"?(Kd(r[l],s[l].data),l++):u==="equal"&&(this._markDescendantTextToSync(this.domConverter.domToView(s[l])),l++);for(const u of d)u.parentNode||this.domConverter.unbindDomElement(u)}_diffNodeLists(e,t){return e=function(n,o){const r=Array.from(n);return r.length==0||!o||r[r.length-1]==o&&r.pop(),r}(e,this._fakeSelectionContainer),P(e,t,eA.bind(null,this.domConverter))}_findUpdateActions(e,t,n,o){if(e.indexOf("insert")===-1||e.indexOf("delete")===-1)return e;let r=[],s=[],a=[];const c={equal:0,insert:0,delete:0};for(const l of e)l==="insert"?a.push(n[c.equal+c.insert]):l==="delete"?s.push(t[c.equal+c.delete]):(r=r.concat(P(s,a,o).map(d=>d==="equal"?"update":d)),r.push("equal"),s=[],a=[]),c[l]++;return r.concat(P(s,a,o).map(l=>l==="equal"?"update":l))}_markDescendantTextToSync(e){if(e){if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element"))for(const t of e.getChildren())this._markDescendantTextToSync(t)}}_updateSelection(){if(x.isBlink&&!x.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(this.selection.rangeCount===0)return this._removeDomSelection(),void this._removeFakeSelection();const e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(e)):this.isComposing&&x.isAndroid||this._updateDomSelection(e))}_updateFakeSelection(e){const t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(s){const a=s.createElement("div");return a.className="ck-fake-selection-container",Object.assign(a.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),a.textContent=" ",a}(t));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(e))return;n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";const o=t.getSelection(),r=t.createRange();o.removeAllRanges(),r.selectNodeContents(n),o.addRange(r)}_updateDomSelection(e){const t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),o=this.domConverter.viewPositionToDom(this.selection.focus);t.setBaseAndExtent(n.parent,n.offset,o.parent,o.offset),x.isGecko&&function(r,s){let a=r.parent,c=r.offset;if(Ze(a)&&Ti(a)&&(c=uo(a)+1,a=a.parentNode),a.nodeType!=Node.ELEMENT_NODE||c!=a.childNodes.length-1)return;const l=a.childNodes[c];l&&l.tagName=="BR"&&s.addRange(s.getRangeAt(0))}(o,t)}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;const t=e&&this.domConverter.domSelectionToView(e);return(!t||!this.selection.isEqual(t))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(t))}_fakeSelectionNeedsUpdate(e){const t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const e of this.domDocuments){const t=e.getSelection();if(t.rangeCount){const n=e.activeElement,o=this.domConverter.mapDomToView(n);n&&o&&t.removeAllRanges()}}}_removeFakeSelection(){const e=this._fakeSelectionContainer;e&&e.remove()}_updateFocus(){if(this.isFocused){const e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}function $d(i,e,t){const n=e instanceof Array?e:e.childNodes,o=n[t];if(Ze(o))return o.data=wo+o.data,o;{const r=i.createTextNode(wo);return Array.isArray(e)?n.splice(t,0,r):ql(e,t,r),r}}function J0(i,e){return Mn(i)&&Mn(e)&&!Ze(i)&&!Ze(e)&&!ho(i)&&!ho(e)&&i.tagName.toLowerCase()===e.tagName.toLowerCase()}function X0(i,e){return Mn(i)&&Mn(e)&&Ze(i)&&Ze(e)}function eA(i,e,t){return e===t||(Ze(e)&&Ze(t)?e.data===t.data:!(!i.isBlockFiller(e)||!i.isBlockFiller(t)))}function Kd(i,e){const t=i.data;if(t==e)return;const n=b(t,e);for(const o of n)o.type==="insert"?i.insertData(o.index,o.values.join("")):i.deleteData(o.index,o.howMany)}const tA=Wd(w.document),nA=Hd(w.document),iA=Ud(w.document),Er="data-ck-unsafe-attribute-",Yd="data-ck-unsafe-element";class Tr{constructor(e,{blockFillerMode:t,renderingMode:n="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new cn,this._inlineObjectElementMatcher=new cn,this._elementsWithTemporaryCustomProperties=new Set,this.document=e,this.renderingMode=n,this.blockFillerMode=t||(n==="editing"?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument=this.renderingMode==="editing"?w.document:w.document.implementation.createHTMLDocument("")}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new $t(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}unbindDomElement(e){const t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);for(const n of Array.from(e.children))this.unbindDomElement(n)}}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}shouldRenderAttribute(e,t,n){return this.renderingMode==="data"||!(e=e.toLowerCase()).startsWith("on")&&(e!=="srcdoc"||!t.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&(n==="img"&&(e==="src"||e==="srcset")||n==="source"&&e==="srcset"||!t.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(e,t){if(this.renderingMode==="data")return void(e.innerHTML=t);const n=new DOMParser().parseFromString(t,"text/html"),o=n.createDocumentFragment(),r=n.body.childNodes;for(;r.length>0;)o.appendChild(r[0]);const s=n.createTreeWalker(o,NodeFilter.SHOW_ELEMENT),a=[];let c;for(;c=s.nextNode();)a.push(c);for(const l of a){for(const u of l.getAttributeNames())this.setDomElementAttribute(l,u,l.getAttribute(u));const d=l.tagName.toLowerCase();this._shouldRenameElement(d)&&(Jd(d),l.replaceWith(this._createReplacementDomElement(d,l)))}for(;e.firstChild;)e.firstChild.remove();e.append(o)}viewToDom(e,t={}){if(e.is("$text")){const n=this._processDataFromViewText(e);return this._domDocument.createTextNode(n)}{const n=e;if(this.mapViewToDom(n)){if(!n.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(n);this._elementsWithTemporaryCustomProperties.add(n)}let o;if(n.is("documentFragment"))o=this._domDocument.createDocumentFragment(),t.bind&&this.bindDocumentFragments(o,n);else{if(n.is("uiElement"))return o=n.name==="$comment"?this._domDocument.createComment(n.getCustomProperty("$rawContent")):n.render(this._domDocument,this),t.bind&&this.bindElements(o,n),o;this._shouldRenameElement(n.name)?(Jd(n.name),o=this._createReplacementDomElement(n.name)):o=n.hasAttribute("xmlns")?this._domDocument.createElementNS(n.getAttribute("xmlns"),n.name):this._domDocument.createElement(n.name),n.is("rawElement")&&n.render(o,this),t.bind&&this.bindElements(o,n);for(const r of n.getAttributeKeys())this.setDomElementAttribute(o,r,n.getAttribute(r),n)}if(t.withChildren!==!1)for(const r of this.viewChildrenToDom(n,t))o instanceof HTMLTemplateElement?o.content.appendChild(r):o.appendChild(r);return o}}setDomElementAttribute(e,t,n,o){const r=this.shouldRenderAttribute(t,n,e.tagName.toLowerCase())||o&&o.shouldRenderUnsafeAttribute(t);r||X("domconverter-unsafe-attribute-detected",{domElement:e,key:t,value:n}),function(s){try{w.document.createAttribute(s)}catch{return!1}return!0}(t)?(e.hasAttribute(t)&&!r?e.removeAttribute(t):e.hasAttribute(Er+t)&&r&&e.removeAttribute(Er+t),e.setAttribute(r?t:Er+t,n)):X("domconverter-invalid-attribute-detected",{domElement:e,key:t,value:n})}removeDomElementAttribute(e,t){t!=Yd&&(e.removeAttribute(t),e.removeAttribute(Er+t))}*viewChildrenToDom(e,t={}){const n=e.getFillerOffset&&e.getFillerOffset();let o=0;for(const r of e.getChildren()){n===o&&(yield this._getBlockFiller());const s=r.is("element")&&!!r.getCustomProperty("dataPipeline:transparentRendering")&&!at(r.getAttributes());s&&this.renderingMode=="data"?yield*this.viewChildrenToDom(r,t):(s&&X("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:r}),yield this.viewToDom(r,t)),o++}n===o&&(yield this._getBlockFiller())}viewRangeToDom(e){const t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),o=this._domDocument.createRange();return o.setStart(t.parent,t.offset),o.setEnd(n.parent,n.offset),o}viewPositionToDom(e){const t=e.parent;if(t.is("$text")){const n=this.findCorrespondingDomText(t);if(!n)return null;let o=e.offset;return Dt(n)&&(o+=Kt),{parent:n,offset:o}}{let n,o,r;if(e.offset===0){if(n=this.mapViewToDom(t),!n)return null;r=n.childNodes[0]}else{const s=e.nodeBefore;if(o=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(s),!o)return null;n=o.parentNode,r=o.nextSibling}return Ze(r)&&Dt(r)?{parent:r,offset:Kt}:{parent:n,offset:o?uo(o)+1:0}}}domToView(e,t={}){const n=[],o=this._domToView(e,t,n),r=o.next().value;return r?(o.next(),this._processDomInlineNodes(null,n,t),r.is("$text")&&r.data.length==0?null:r):null}*domChildrenToView(e,t={},n=[]){let o=[];o=e instanceof HTMLTemplateElement?[...e.content.childNodes]:[...e.childNodes];for(let r=0;r<o.length;r++){const s=o[r],a=this._domToView(s,t,n),c=a.next().value;c!==null&&(this._isBlockViewElement(c)&&this._processDomInlineNodes(e,n,t),yield c,a.next())}this._processDomInlineNodes(e,n,t)}domSelectionToView(e){if(function(o){if(!x.isGecko||!o.rangeCount)return!1;const r=o.getRangeAt(0).startContainer;try{Object.prototype.toString.call(r)}catch{return!0}return!1}(e))return new $t([]);if(e.rangeCount===1){let o=e.getRangeAt(0).startContainer;Ze(o)&&(o=o.parentNode);const r=this.fakeSelectionToView(o);if(r)return r}const t=this.isDomSelectionBackward(e),n=[];for(let o=0;o<e.rangeCount;o++){const r=e.getRangeAt(o),s=this.domRangeToView(r);s&&n.push(s)}return new $t(n,{backward:t})}domRangeToView(e){const t=this.domPositionToView(e.startContainer,e.startOffset),n=this.domPositionToView(e.endContainer,e.endOffset);return t&&n?new ie(t,n):null}domPositionToView(e,t=0){if(this.isBlockFiller(e))return this.domPositionToView(e.parentNode,uo(e));const n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return Y._createBefore(n);if(Ze(e)){if(Ti(e))return this.domPositionToView(e.parentNode,uo(e));const o=this.findCorrespondingViewText(e);let r=t;return o?(Dt(e)&&(r-=Kt,r=r<0?0:r),new Y(o,r)):null}if(t===0){const o=this.mapDomToView(e);if(o)return new Y(o,0)}else{const o=e.childNodes[t-1];if(Ze(o)&&Ti(o)||o&&this.isBlockFiller(o))return this.domPositionToView(o.parentNode,uo(o));const r=Ze(o)?this.findCorrespondingViewText(o):this.mapDomToView(o);if(r&&r.parent)return new Y(r.parent,r.index+1)}return null}mapDomToView(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}findCorrespondingViewText(e){if(Ti(e))return null;const t=this.getHostViewElement(e);if(t)return t;const n=e.previousSibling;if(n){if(!this.isElement(n))return null;const o=this.mapDomToView(n);if(o){const r=o.nextSibling;return r instanceof Se?r:null}}else{const o=this.mapDomToView(e.parentNode);if(o){const r=o.getChild(0);return r instanceof Se?r:null}}return null}mapViewToDom(e){return this._viewToDomMapping.get(e)}findCorrespondingDomText(e){const t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}focus(e){const t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){const{scrollX:n,scrollY:o}=w.window,r=[];Qd(t,s=>{const{scrollLeft:a,scrollTop:c}=s;r.push([a,c])}),t.focus(),Qd(t,s=>{const[a,c]=r.shift();s.scrollLeft=a,s.scrollTop=c}),w.window.scrollTo(n,o)}}_clearDomSelection(){const e=this.mapViewToDom(this.document.selection.editableElement);if(!e)return;const t=e.ownerDocument.defaultView.getSelection(),n=this.domSelectionToView(t);n&&n.rangeCount>0&&t.removeAllRanges()}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(e){return this.blockFillerMode=="br"?e.isEqualNode(tA):!(e.tagName!=="BR"||!Zd(e,this.blockElements)||e.parentNode.childNodes.length!==1)||e.isEqualNode(iA)||function(t,n){return t.isEqualNode(nA)&&Zd(t,n)&&t.parentNode.childNodes.length===1}(e,this.blockElements)}isDomSelectionBackward(e){if(e.isCollapsed)return!1;const t=this._domDocument.createRange();try{t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset)}catch{return!1}const n=t.collapsed;return t.detach(),n}getHostViewElement(e){const t=function(n){const o=[];let r=n;for(;r&&r.nodeType!=Node.DOCUMENT_NODE;)o.unshift(r),r=r.parentNode;return o}(e);for(t.pop();t.length;){const n=t.pop(),o=this._domToViewMapping.get(n);if(o&&(o.is("uiElement")||o.is("rawElement")))return o}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}registerRawContentMatcher(e){this._rawContentElementMatcher.add(e)}registerInlineObjectMatcher(e){this._inlineObjectElementMatcher.add(e)}_clearTemporaryCustomProperties(){for(const e of this._elementsWithTemporaryCustomProperties)e._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Hd(this._domDocument);case"markedNbsp":return Ud(this._domDocument);case"br":return Wd(this._domDocument)}}_isDomSelectionPositionCorrect(e,t){if(Ze(e)&&Dt(e)&&t<Kt||this.isElement(e)&&Dt(e.childNodes[t]))return!1;const n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}*_domToView(e,t,n){if(this.isBlockFiller(e))return null;const o=this.getHostViewElement(e);if(o)return o;if(ho(e)&&t.skipComments)return null;if(Ze(e)){if(Ti(e))return null;{const r=e.data;if(r==="")return null;const s=new Se(this.document,r);return n.push(s),s}}{let r=this.mapDomToView(e);if(r)return this._isInlineObjectElement(r)&&n.push(r),r;if(this.isDocumentFragment(e))r=new Yn(this.document),t.bind&&this.bindDocumentFragments(e,r);else{r=this._createViewElement(e,t),t.bind&&this.bindElements(e,r);const a=e.attributes;if(a)for(let c=a.length,l=0;l<c;l++)r._setAttribute(a[l].name,a[l].value);if(this._isViewElementWithRawContent(r,t))return r._setCustomProperty("$rawContent",e.innerHTML),this._isBlockViewElement(r)||n.push(r),r;if(ho(e))return r._setCustomProperty("$rawContent",e.data),r}yield r;const s=[];if(t.withChildren!==!1)for(const a of this.domChildrenToView(e,t,s))r._appendChild(a);if(this._isInlineObjectElement(r))n.push(r);else for(const a of s)n.push(a)}}_processDomInlineNodes(e,t,n){if(!t.length||e&&!this.isDocumentFragment(e)&&!this._isBlockDomElement(e))return;let o=!1;for(let r=0;r<t.length;r++){const s=t[r];if(!s.is("$text")){o=!1;continue}let a,c=!1;if(oA(s,this.preElements))a=qd(s.data);else{a=s.data.replace(/[ \n\t\r]{1,}/g," "),c=/[^\S\u00A0]/.test(a.charAt(a.length-1));const l=r>0?t[r-1]:null,d=r+1<t.length?t[r+1]:null,u=!l||l.is("element")&&l.name=="br"||o,h=!d&&!Dt(s.data);n.withChildren!==!1&&(u&&(a=a.replace(/^ /,"")),h&&(a=a.replace(/ $/,""))),a=qd(a),a=a.replace(/ \u00A0/g," ");const m=d&&d.is("element")&&d.name!="br",k=d&&d.is("$text")&&d.data.charAt(0)==" ";(/[ \u00A0]\u00A0$/.test(a)||!d||m||k)&&(a=a.replace(/\u00A0$/," ")),(u||l&&l.is("element")&&l.name!="br")&&(a=a.replace(/^\u00A0/," "))}a.length==0&&s.parent?(s._remove(),t.splice(r,1),r--):(s._data=a,o=c)}t.length=0}_processDataFromViewText(e){let t=e.data;if(e.getAncestors().some(n=>this.preElements.includes(n.name)))return t;if(t.charAt(0)==" "){const n=this._getTouchingInlineViewNode(e,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(t=" "+t.substr(1))}if(t.charAt(t.length-1)==" "){const n=this._getTouchingInlineViewNode(e,!0),o=n&&n.is("$textProxy")&&n.data.charAt(0)==" ";t.charAt(t.length-2)!=" "&&n&&!o||(t=t.substr(0,t.length-1)+" ")}return t.replace(/ {2}/g," ")}_nodeEndsWithSpace(e){if(e.getAncestors().some(n=>this.preElements.includes(n.name)))return!1;const t=this._processDataFromViewText(e);return t.charAt(t.length-1)==" "}_getTouchingInlineViewNode(e,t){const n=new $n({startPosition:t?Y._createAfter(e):Y._createBefore(e),direction:t?"forward":"backward"});for(const o of n){if(o.item.is("element","br"))return null;if(this._isInlineObjectElement(o.item))return o.item;if(o.item.is("containerElement"))return null;if(o.item.is("$textProxy"))return o.item}return null}_isBlockDomElement(e){return this.isElement(e)&&this.blockElements.includes(e.tagName.toLowerCase())}_isBlockViewElement(e){return e.is("element")&&this.blockElements.includes(e.name)}_isInlineObjectElement(e){return!!e.is("element")&&(e.name=="br"||this.inlineObjectElements.includes(e.name)||!!this._inlineObjectElementMatcher.match(e))}_createViewElement(e,t){if(ho(e))return new Dr(this.document,"$comment");const n=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();return new xt(this.document,n)}_isViewElementWithRawContent(e,t){return t.withChildren!==!1&&e.is("element")&&!!this._rawContentElementMatcher.match(e)}_shouldRenameElement(e){const t=e.toLowerCase();return this.renderingMode==="editing"&&this.unsafeElements.includes(t)}_createReplacementDomElement(e,t){const n=this._domDocument.createElement("span");if(n.setAttribute(Yd,e),t){for(;t.firstChild;)n.appendChild(t.firstChild);for(const o of t.getAttributeNames())n.setAttribute(o,t.getAttribute(o))}return n}}function oA(i,e){return i.getAncestors().some(t=>t.is("element")&&e.includes(t.name))}function Qd(i,e){let t=i;for(;t;)e(t),t=t.parentElement}function Zd(i,e){const t=i.parentNode;return!!t&&!!t.tagName&&e.includes(t.tagName.toLowerCase())}function Jd(i){i==="script"&&X("domconverter-unsafe-script-element-detected"),i==="style"&&X("domconverter-unsafe-style-element-detected")}class ln extends Lt(){constructor(e){super(),this._isEnabled=!1,this.view=e,this.document=e.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(e){return e&&e.nodeType===3&&(e=e.parentNode),!(!e||e.nodeType!==1)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const Xd=od(function(i,e){wi(e,Ai(e),i)});class Mi{constructor(e,t,n){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,Xd(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class Sn extends ln{constructor(){super(...arguments),this.useCapture=!1}observe(e){(typeof this.domEventType=="string"?[this.domEventType]:this.domEventType).forEach(t=>{this.listenTo(e,t,(n,o)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(o.target)&&this.onDomEvent(o)},{useCapture:this.useCapture})})}stopObserving(e){this.stopListening(e)}fire(e,t,n){this.isEnabled&&this.document.fire(e,new Mi(this.view,t,n))}}class rA extends Sn{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(e){const t={keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return vi(this)}};this.fire(e.type,e,t)}}const _a=function(){return Wt.Date.now()};var sA=/\s/;const aA=function(i){for(var e=i.length;e--&&sA.test(i.charAt(e)););return e};var cA=/^\s+/;const lA=function(i){return i&&i.slice(0,aA(i)+1).replace(cA,"")};var dA=/^[-+]0x[0-9a-f]+$/i,uA=/^0b[01]+$/i,hA=/^0o[0-7]+$/i,gA=parseInt;const eu=function(i){if(typeof i=="number")return i;if(Ar(i))return NaN;if(he(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=he(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=lA(i);var t=uA.test(i);return t||hA.test(i)?gA(i.slice(2),t?2:8):dA.test(i)?NaN:+i};var mA=Math.max,pA=Math.min;const Ii=function(i,e,t){var n,o,r,s,a,c,l=0,d=!1,u=!1,h=!0;if(typeof i!="function")throw new TypeError("Expected a function");function m(O){var z=n,H=o;return n=o=void 0,l=O,s=i.apply(H,z)}function k(O){var z=O-c;return c===void 0||z>=e||z<0||u&&O-l>=r}function A(){var O=_a();if(k(O))return E(O);a=setTimeout(A,function(z){var H=e-(z-c);return u?pA(H,r-(z-l)):H}(O))}function E(O){return a=void 0,h&&n?m(O):(n=o=void 0,s)}function S(){var O=_a(),z=k(O);if(n=arguments,o=this,c=O,z){if(a===void 0)return function(H){return l=H,a=setTimeout(A,e),d?m(H):s}(c);if(u)return clearTimeout(a),a=setTimeout(A,e),m(c)}return a===void 0&&(a=setTimeout(A,e)),s}return e=eu(e)||0,he(t)&&(d=!!t.leading,r=(u="maxWait"in t)?mA(eu(t.maxWait)||0,e):r,h="trailing"in t?!!t.trailing:h),S.cancel=function(){a!==void 0&&clearTimeout(a),l=0,n=c=o=a=void 0},S.flush=function(){return a===void 0?s:E(_a())},S};class fA extends ln{constructor(e){super(e),this._fireSelectionChangeDoneDebounced=Ii(t=>{this.document.fire("selectionChangeDone",t)},200)}observe(){const e=this.document;e.on("arrowKey",(t,n)=>{e.selection.isFake&&this.isEnabled&&n.preventDefault()},{context:"$capture"}),e.on("arrowKey",(t,n)=>{e.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){const t=this.document.selection,n=new $t(t.getRanges(),{backward:t.isBackward,fake:!1});e!=ke.arrowleft&&e!=ke.arrowup||n.setTo(n.getFirstPosition()),e!=ke.arrowright&&e!=ke.arrowdown||n.setTo(n.getLastPosition());const o={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",o),this._fireSelectionChangeDoneDebounced(o)}}const kA=function(i){return this.__data__.set(i,"__lodash_hash_undefined__"),this},bA=function(i){return this.__data__.has(i)};function Mr(i){var e=-1,t=i==null?0:i.length;for(this.__data__=new ir;++e<t;)this.add(i[e])}Mr.prototype.add=Mr.prototype.push=kA,Mr.prototype.has=bA;const wA=Mr,_A=function(i,e){for(var t=-1,n=i==null?0:i.length;++t<n;)if(e(i[t],t,i))return!0;return!1},AA=function(i,e){return i.has(e)},tu=function(i,e,t,n,o,r){var s=1&t,a=i.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var l=r.get(i),d=r.get(e);if(l&&d)return l==e&&d==i;var u=-1,h=!0,m=2&t?new wA:void 0;for(r.set(i,e),r.set(e,i);++u<a;){var k=i[u],A=e[u];if(n)var E=s?n(A,k,u,e,i,r):n(k,A,u,i,e,r);if(E!==void 0){if(E)continue;h=!1;break}if(m){if(!_A(e,function(S,O){if(!AA(m,O)&&(k===S||o(k,S,t,n,r)))return m.push(O)})){h=!1;break}}else if(k!==A&&!o(k,A,t,n,r)){h=!1;break}}return r.delete(i),r.delete(e),h},CA=function(i){var e=-1,t=Array(i.size);return i.forEach(function(n,o){t[++e]=[o,n]}),t},vA=function(i){var e=-1,t=Array(i.size);return i.forEach(function(n){t[++e]=n}),t};var nu=rn?rn.prototype:void 0,Aa=nu?nu.valueOf:void 0;const yA=function(i,e,t,n,o,r,s){switch(t){case"[object DataView]":if(i.byteLength!=e.byteLength||i.byteOffset!=e.byteOffset)return!1;i=i.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(i.byteLength!=e.byteLength||!r(new lr(i),new lr(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return no(+i,+e);case"[object Error]":return i.name==e.name&&i.message==e.message;case"[object RegExp]":case"[object String]":return i==e+"";case"[object Map]":var a=CA;case"[object Set]":var c=1&n;if(a||(a=vA),i.size!=e.size&&!c)return!1;var l=s.get(i);if(l)return l==e;n|=2,s.set(i,e);var d=tu(a(i),a(e),n,o,r,s);return s.delete(i),d;case"[object Symbol]":if(Aa)return Aa.call(i)==Aa.call(e)}return!1};var xA=Object.prototype.hasOwnProperty;const DA=function(i,e,t,n,o,r){var s=1&t,a=Ps(i),c=a.length;if(c!=Ps(e).length&&!s)return!1;for(var l=c;l--;){var d=a[l];if(!(s?d in e:xA.call(e,d)))return!1}var u=r.get(i),h=r.get(e);if(u&&h)return u==e&&h==i;var m=!0;r.set(i,e),r.set(e,i);for(var k=s;++l<c;){var A=i[d=a[l]],E=e[d];if(n)var S=s?n(E,A,d,e,i,r):n(A,E,d,i,e,r);if(!(S===void 0?A===E||o(A,E,t,n,r):S)){m=!1;break}k||(k=d=="constructor")}if(m&&!k){var O=i.constructor,z=e.constructor;O==z||!("constructor"in i)||!("constructor"in e)||typeof O=="function"&&O instanceof O&&typeof z=="function"&&z instanceof z||(m=!1)}return r.delete(i),r.delete(e),m};var iu="[object Arguments]",ou="[object Array]",Ir="[object Object]",ru=Object.prototype.hasOwnProperty;const EA=function(i,e,t,n,o,r){var s=vt(i),a=vt(e),c=s?ou:co(i),l=a?ou:co(e),d=(c=c==iu?Ir:c)==Ir,u=(l=l==iu?Ir:l)==Ir,h=c==l;if(h&&ro(i)){if(!ro(e))return!1;s=!0,d=!1}if(h&&!d)return r||(r=new bi),s||Bs(i)?tu(i,e,t,n,o,r):yA(i,e,c,t,n,o,r);if(!(1&t)){var m=d&&ru.call(i,"__wrapped__"),k=u&&ru.call(e,"__wrapped__");if(m||k){var A=m?i.value():i,E=k?e.value():e;return r||(r=new bi),o(A,E,t,n,r)}}return!!h&&(r||(r=new bi),DA(i,e,t,n,o,r))},Sr=function i(e,t,n,o,r){return e===t||(e==null||t==null||!Ot(e)&&!Ot(t)?e!=e&&t!=t:EA(e,t,n,o,i,r))},TA=function(i,e,t){var n=(t=typeof t=="function"?t:void 0)?t(i,e):void 0;return n===void 0?Sr(i,e,void 0,t):!!n};class su extends ln{constructor(e){super(e),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=e.domConverter,this.renderer=e._renderer,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(e){this._domElements.add(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}stopObserving(e){if(this._domElements.delete(e),this.isEnabled){this._mutationObserver.disconnect();for(const t of this._domElements)this._mutationObserver.observe(t,this._config)}}enable(){super.enable();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(e){if(e.length===0)return;const t=this.domConverter,n=new Set,o=new Set;for(const s of e){const a=t.mapDomToView(s.target);a&&(a.is("uiElement")||a.is("rawElement")||s.type!=="childList"||this._isBogusBrMutation(s)||o.add(a))}for(const s of e){const a=t.mapDomToView(s.target);if((!a||!a.is("uiElement")&&!a.is("rawElement"))&&s.type==="characterData"){const c=t.findCorrespondingViewText(s.target);c&&!o.has(c.parent)?n.add(c):!c&&Dt(s.target)&&o.add(t.mapDomToView(s.target.parentNode))}}let r=!1;for(const s of n)r=!0,this.renderer.markToSync("text",s);for(const s of o){const a=t.mapViewToDom(s),c=Array.from(s.getChildren()),l=Array.from(t.domChildrenToView(a,{withChildren:!1}));TA(c,l,MA)||(r=!0,this.renderer.markToSync("children",s))}r&&this.view.forceRender()}_isBogusBrMutation(e){let t=null;return e.nextSibling===null&&e.removedNodes.length===0&&e.addedNodes.length==1&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}function MA(i,e){if(!Array.isArray(i))return i===e||!(!i.is("$text")||!e.is("$text"))&&i.data===e.data}class Br extends Sn{constructor(e){super(e),this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;const t=this.document;t.on("focus",()=>{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),e.change(()=>{})},50)}),t.on("blur",(n,o)=>{const r=t.selection.editableElement;r!==null&&r!==o.target||(t.isFocused=!1,this._isFocusChanging=!1,e.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(e){this.fire(e.type,e)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class IA extends ln{constructor(e){super(e),this.mutationObserver=e.getObserver(su),this.focusObserver=e.getObserver(Br),this.selection=this.document.selection,this.domConverter=e.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Ii(t=>{this.document.fire("selectionChangeDone",t)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=Ii(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(e){const t=e.ownerDocument,n=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,t),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(e,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(e,"keydown",n,{priority:"highest",useCapture:!0}),this.listenTo(e,"keyup",n,{priority:"highest",useCapture:!0}),this._documents.has(t)||(this.listenTo(t,"mouseup",n,{priority:"highest",useCapture:!0}),this.listenTo(t,"selectionchange",(o,r)=>{this.document.isComposing&&!x.isAndroid||(this._handleSelectionChange(r,t),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(t))}stopObserving(e){this.stopListening(e)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(e,t){if(!this.isEnabled)return;const n=t.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const o=this.domConverter.domSelectionToView(n);if(o.rangeCount!=0){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(o)||!this.domConverter.isDomSelectionCorrect(n))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(o))this.view.forceRender();else{const r={oldSelection:this.selection,newSelection:o,domSelection:n};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class SA extends Sn{constructor(e){super(e),this.domEventType=["compositionstart","compositionupdate","compositionend"];const t=this.document;t.on("compositionstart",()=>{t.isComposing=!0},{priority:"low"}),t.on("compositionend",()=>{t.isComposing=!1},{priority:"low"})}onDomEvent(e){this.fire(e.type,e,{data:e.data})}}class au{constructor(e,t={}){this._files=t.cacheFiles?cu(e):null,this._native=e}get files(){return this._files||(this._files=cu(this._native)),this._files}get types(){return this._native.types}getData(e){return this._native.getData(e)}setData(e,t){this._native.setData(e,t)}set effectAllowed(e){this._native.effectAllowed=e}get effectAllowed(){return this._native.effectAllowed}set dropEffect(e){this._native.dropEffect=e}get dropEffect(){return this._native.dropEffect}setDragImage(e,t,n){this._native.setDragImage(e,t,n)}get isCanceled(){return this._native.dropEffect=="none"||!!this._native.mozUserCancelled}}function cu(i){const e=Array.from(i.files||[]),t=Array.from(i.items||[]);return e.length?e:t.filter(n=>n.kind==="file").map(n=>n.getAsFile())}class BA extends Sn{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(e){const t=e.getTargetRanges(),n=this.view,o=n.document;let r=null,s=null,a=[];if(e.dataTransfer&&(r=new au(e.dataTransfer)),e.data!==null?s=e.data:r&&(s=r.getData("text/plain")),o.selection.isFake)a=Array.from(o.selection.getRanges());else if(t.length)a=t.map(c=>{const l=n.domConverter.domPositionToView(c.startContainer,c.startOffset),d=n.domConverter.domPositionToView(c.endContainer,c.endOffset);return l?n.createRange(l,d):d?n.createRange(d):void 0}).filter(c=>!!c);else if(x.isAndroid){const c=e.target.ownerDocument.defaultView.getSelection();a=Array.from(n.domConverter.domSelectionToView(c).getRanges())}if(x.isAndroid&&e.inputType=="insertCompositionText"&&s&&s.endsWith(`
|
||
`))this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:[n.createRange(a[0].end)]});else if(e.inputType=="insertText"&&s&&s.includes(`
|
||
`)){const c=s.split(/\n{1,2}/g);let l=a;for(let d=0;d<c.length;d++){const u=c[d];u!=""&&(this.fire(e.type,e,{data:u,dataTransfer:r,targetRanges:l,inputType:e.inputType,isComposing:e.isComposing}),l=[o.selection.getFirstRange()]),d+1<c.length&&(this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:l}),l=[o.selection.getFirstRange()])}}else this.fire(e.type,e,{data:s,dataTransfer:r,targetRanges:a,inputType:e.inputType,isComposing:e.isComposing})}}class NA extends ln{constructor(e){super(e),this.document.on("keydown",(t,n)=>{if(this.isEnabled&&((o=n.keyCode)==ke.arrowright||o==ke.arrowleft||o==ke.arrowup||o==ke.arrowdown)){const r=new Di(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(r,n),r.stop.called&&t.stop()}var o})}observe(){}stopObserving(){}}class OA extends ln{constructor(e){super(e);const t=this.document;t.on("keydown",(n,o)=>{if(!this.isEnabled||o.keyCode!=ke.tab||o.ctrlKey)return;const r=new Di(t,"tab",t.selection.getFirstRange());t.fire(r,o),r.stop.called&&n.stop()})}observe(){}stopObserving(){}}const Yt=function(i){return Vs(i,5)};class PA extends xe(){constructor(e){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new xr(e),this.domConverter=new Tr(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Z0(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new zd(this.document),this.addObserver(su),this.addObserver(Br),this.addObserver(IA),this.addObserver(rA),this.addObserver(fA),this.addObserver(SA),this.addObserver(NA),this.addObserver(BA),this.addObserver(OA),this.document.on("arrowKey",Y0,{priority:"low"}),W0(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0}),x.isiOS&&this.listenTo(this.document,"blur",(t,n)=>{this.domConverter.mapDomToView(n.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})}attachDomRoot(e,t="main"){const n=this.document.getRoot(t);n._name=e.tagName.toLowerCase();const o={};for(const{name:s,value:a}of Array.from(e.attributes))o[s]=a,s==="class"?this._writer.addClass(a.split(" "),n):this._writer.setAttribute(s,a,n);this._initialDomRootAttributes.set(e,o);const r=()=>{this._writer.setAttribute("contenteditable",(!n.isReadOnly).toString(),n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};r(),this.domRoots.set(t,e),this.domConverter.bindElements(e,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(e.ownerDocument),n.on("change:children",(s,a)=>this._renderer.markToSync("children",a)),n.on("change:attributes",(s,a)=>this._renderer.markToSync("attributes",a)),n.on("change:text",(s,a)=>this._renderer.markToSync("text",a)),n.on("change:isReadOnly",()=>this.change(r)),n.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const s of this._observers.values())s.observe(e,t)}detachDomRoot(e){const t=this.domRoots.get(e);Array.from(t.attributes).forEach(({name:o})=>t.removeAttribute(o));const n=this._initialDomRootAttributes.get(t);for(const o in n)t.setAttribute(o,n[o]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t);for(const o of this._observers.values())o.stopObserving(t)}getDomRoot(e="main"){return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);for(const[n,o]of this.domRoots)t.observe(o,n);return t.enable(),t}getObserver(e){return this._observers.get(e)}disableObservers(){for(const e of this._observers.values())e.disable()}enableObservers(){for(const e of this._observers.values())e.enable()}scrollToTheSelection({alignToTop:e,forceScroll:t,viewportOffset:n=20,ancestorOffset:o=20}={}){const r=this.document.selection.getFirstRange();if(!r)return;const s=Yt({alignToTop:e,forceScroll:t,viewportOffset:n,ancestorOffset:o});typeof n=="number"&&(n={top:n,bottom:n,left:n,right:n});const a={target:this.domConverter.viewRangeToDom(r),viewportOffset:n,ancestorOffset:o,alignToTop:e,forceScroll:t};this.fire("scrollToTheSelection",a,s),function({target:c,viewportOffset:l=0,ancestorOffset:d=0,alignToTop:u,forceScroll:h}){const m=Ws(c);let k=m,A=null;for(l=function(E){return typeof E=="number"?{top:E,bottom:E,left:E,right:E}:E}(l);k;){let E;E=U_(k==m?c:A),H_({parent:E,getRect:()=>ed(c,k),alignToTop:u,ancestorOffset:d,forceScroll:h});const S=ed(c,k);if(V_({window:k,rect:S,viewportOffset:l,alignToTop:u,forceScroll:h}),k.parent!=k){if(A=k.frameElement,k=k.parent,!A)return}else k=null}}(a)}focus(){if(!this.document.isFocused){const e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}change(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new B("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;const t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(t){B.rethrowUnexpectedError(t,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(Br).flush(),this.change(()=>{})}destroy(){for(const e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return Y._createAt(e,t)}createPositionAfter(e){return Y._createAfter(e)}createPositionBefore(e){return Y._createBefore(e)}createRange(e,t){return new ie(e,t)}createRangeOn(e){return ie._createOn(e)}createRangeIn(e){return ie._createIn(e)}createSelection(...e){return new $t(...e)}_disableRendering(e){this._renderingDisabled=e,e==0&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Bn{is(){throw new Error("is() method is abstract")}}class Qn extends Bn{constructor(e){super(),this.parent=null,this._attrs=sn(e)}get document(){return null}get index(){let e;if(!this.parent)return null;if((e=this.parent.getChildIndex(this))===null)throw new B("model-node-not-found-in-parent",this);return e}get startOffset(){let e;if(!this.parent)return null;if((e=this.parent.getChildStartOffset(this))===null)throw new B("model-node-not-found-in-parent",this);return e}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const e=this.index;return e!==null&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return e!==null&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.parent!==null&&this.root.isAttached()}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}getAncestors(e={}){const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}getCommonAncestor(e,t={}){const n=this.getAncestors(t),o=e.getAncestors(t);let r=0;for(;n[r]==o[r]&&n[r];)r++;return r===0?null:n[r-1]}isBefore(e){if(this==e||this.root!==e.root)return!1;const t=this.getPath(),n=e.getPath(),o=ot(t,n);switch(o){case"prefix":return!0;case"extension":return!1;default:return t[o]<n[o]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}hasAttribute(e){return this._attrs.has(e)}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce((t,n)=>(t[n[0]]=n[1],t),{})),e}_clone(e){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=sn(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}Qn.prototype.is=function(i){return i==="node"||i==="model:node"};class _o{constructor(e){this._nodes=[],e&&this._insertNodes(0,e)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((e,t)=>e+t.offsetSize,0)}getNode(e){return this._nodes[e]||null}getNodeIndex(e){const t=this._nodes.indexOf(e);return t==-1?null:t}getNodeStartOffset(e){const t=this.getNodeIndex(e);return t===null?null:this._nodes.slice(0,t).reduce((n,o)=>n+o.offsetSize,0)}indexToOffset(e){if(e==this._nodes.length)return this.maxOffset;const t=this._nodes[e];if(!t)throw new B("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}offsetToIndex(e){let t=0;for(const n of this._nodes){if(e>=t&&e<t+n.offsetSize)return this.getNodeIndex(n);t+=n.offsetSize}if(t!=e)throw new B("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.length}_insertNodes(e,t){for(const n of t)if(!(n instanceof Qn))throw new B("model-nodelist-insertnodes-not-node",this);this._nodes=function(n,o,r,s){if(Math.max(o.length,n.length)>1e4)return n.slice(0,r).concat(o).concat(n.slice(r+s,n.length));{const a=Array.from(n);return a.splice(r,s,...o),a}}(this._nodes,Array.from(t),e,0)}_removeNodes(e,t=1){return this._nodes.splice(e,t)}toJSON(){return this._nodes.map(e=>e.toJSON())}}class Be extends Qn{constructor(e,t){super(t),this._data=e||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const e=super.toJSON();return e.data=this.data,e}_clone(){return new Be(this.data,this.getAttributes())}static fromJSON(e){return new Be(e.data,e.attributes)}}Be.prototype.is=function(i){return i==="$text"||i==="model:$text"||i==="text"||i==="model:text"||i==="node"||i==="model:node"};class Qt extends Bn{constructor(e,t,n){if(super(),this.textNode=e,t<0||t>e.offsetSize)throw new B("model-textproxy-wrong-offsetintext",this);if(n<0||t+n>e.offsetSize)throw new B("model-textproxy-wrong-length",this);this.data=e.data.substring(t,t+n),this.offsetInText=t}get startOffset(){return this.textNode.startOffset!==null?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return this.startOffset!==null?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(e={}){const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}Qt.prototype.is=function(i){return i==="$textProxy"||i==="model:$textProxy"||i==="textProxy"||i==="model:textProxy"};class Te extends Qn{constructor(e,t,n){super(t),this._children=new _o,this.name=e,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}offsetToIndex(e){return this._children.offsetToIndex(e)}getNodeByPath(e){let t=this;for(const n of e)t=t.getChild(t.offsetToIndex(n));return t}findAncestor(e,t={}){let n=t.includeSelf?this:this.parent;for(;n;){if(n.name===e)return n;n=n.parent}return null}toJSON(){const e=super.toJSON();if(e.name=this.name,this._children.length>0){e.children=[];for(const t of this._children)e.children.push(t.toJSON())}return e}_clone(e=!1){const t=e?Array.from(this._children).map(n=>n._clone(!0)):void 0;return new Te(this.name,this.getAttributes(),t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const n=function(o){return typeof o=="string"?[new Be(o)]:(Ee(o)||(o=[o]),Array.from(o).map(r=>typeof r=="string"?new Be(r):r instanceof Qt?new Be(r.data,r.getAttributes()):r))}(t);for(const o of n)o.parent!==null&&o._remove(),o.parent=this;this._children._insertNodes(e,n)}_removeChildren(e,t=1){const n=this._children._removeNodes(e,t);for(const o of n)o.parent=null;return n}static fromJSON(e){let t;if(e.children){t=[];for(const n of e.children)n.name?t.push(Te.fromJSON(n)):t.push(Be.fromJSON(n))}return new Te(e.name,e.attributes,t)}}Te.prototype.is=function(i,e){return e?e===this.name&&(i==="element"||i==="model:element"):i==="element"||i==="model:element"||i==="node"||i==="model:node"};class gn{constructor(e){if(!e||!e.boundaries&&!e.startPosition)throw new B("model-tree-walker-no-start-position",null);const t=e.direction||"forward";if(t!="forward"&&t!="backward")throw new B("model-tree-walker-unknown-direction",e,{direction:t});this.direction=t,this.boundaries=e.boundaries||null,e.startPosition?this._position=e.startPosition.clone():this._position=q._createAt(this.boundaries[this.direction=="backward"?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(e){let t,n,o,r;do o=this.position,r=this._visitedParent,{done:t,value:n}=this.next();while(!t&&e(n));t||(this._position=o,this._visitedParent=r)}next(){return this.direction=="forward"?this._next():this._previous()}_next(){const e=this.position,t=this.position.clone(),n=this._visitedParent;if(n.parent===null&&t.offset===n.maxOffset)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const o=Ao(t,n),r=o||lu(t,n,o);if(r instanceof Te){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t.path.push(0),this._visitedParent=r;return this._position=t,Zn("elementStart",r,e,t,1)}if(r instanceof Be){let s;if(this.singleCharacters)s=1;else{let l=r.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<l&&(l=this.boundaries.end.offset),s=l-t.offset}const a=t.offset-r.startOffset,c=new Qt(r,a,s);return t.offset+=s,this._position=t,Zn("text",c,e,t,s)}return t.path.pop(),t.offset++,this._position=t,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Zn("elementEnd",n,e,t)}_previous(){const e=this.position,t=this.position.clone(),n=this._visitedParent;if(n.parent===null&&t.offset===0)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const o=t.parent,r=Ao(t,o),s=r||du(t,o,r);if(s instanceof Te)return t.offset--,this.shallow?(this._position=t,Zn("elementStart",s,e,t,1)):(t.path.push(s.maxOffset),this._position=t,this._visitedParent=s,this.ignoreElementEnd?this._previous():Zn("elementEnd",s,e,t));if(s instanceof Be){let a;if(this.singleCharacters)a=1;else{let d=s.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>d&&(d=this.boundaries.start.offset),a=t.offset-d}const c=t.offset-s.startOffset,l=new Qt(s,c-a,a);return t.offset-=a,this._position=t,Zn("text",l,e,t,a)}return t.path.pop(),this._position=t,this._visitedParent=n.parent,Zn("elementStart",n,e,t,1)}}function Zn(i,e,t,n,o){return{done:!1,value:{type:i,item:e,previousPosition:t,nextPosition:n,length:o}}}class q extends Bn{constructor(e,t,n="toNone"){if(super(),!e.is("element")&&!e.is("documentFragment"))throw new B("model-position-root-invalid",e);if(!(t instanceof Array)||t.length===0)throw new B("model-position-path-incorrect-format",e,{path:t});e.is("rootElement")?t=t.slice():(t=[...e.getPath(),...t],e=e.root),this.root=e,this.path=t,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;t<this.path.length-1;t++)if(e=e.getChild(e.offsetToIndex(this.path[t])),!e)throw new B("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new B("model-position-path-incorrect",this,{position:this});return e}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return Ao(this,this.parent)}get nodeAfter(){const e=this.parent;return lu(this,e,Ao(this,e))}get nodeBefore(){const e=this.parent;return du(this,e,Ao(this,e))}get isAtStart(){return this.offset===0}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(e){if(this.root!=e.root)return"different";const t=ot(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}getLastMatchingPosition(e,t={}){t.startPosition=this;const n=new gn(t);return n.skip(e),n.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}findAncestor(e){const t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}getCommonPath(e){if(this.root!=e.root)return[];const t=ot(this.path,e.path),n=typeof t=="string"?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}getCommonAncestor(e){const t=this.getAncestors(),n=e.getAncestors();let o=0;for(;t[o]==n[o]&&t[o];)o++;return o===0?null:t[o-1]}getShiftedBy(e){const t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}isAfter(e){return this.compareWith(e)=="after"}isBefore(e){return this.compareWith(e)=="before"}isEqual(e){return this.compareWith(e)=="same"}isTouching(e){if(this.root!==e.root)return!1;const t=Math.min(this.path.length,e.path.length);for(let n=0;n<t;n++){const o=this.path[n]-e.path[n];if(o<-1||o>1)return!1;if(o===1)return uu(e,this,n);if(o===-1)return uu(this,e,n)}return this.path.length===e.path.length||(this.path.length>e.path.length?Ca(this.path,t):Ca(e.path,t))}hasSameParentAs(e){return this.root!==e.root?!1:ot(this.getParentPath(),e.getParentPath())=="same"}getTransformedByOperation(e){let t;switch(e.type){case"insert":t=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":t=this._getTransformedByMoveOperation(e);break;case"split":t=this._getTransformedBySplitOperation(e);break;case"merge":t=this._getTransformedByMergeOperation(e);break;default:t=q._createAt(this)}return t}_getTransformedByInsertOperation(e){return this._getTransformedByInsertion(e.position,e.howMany)}_getTransformedByMoveOperation(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}_getTransformedBySplitOperation(e){const t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&this.stickiness=="toNext"?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}_getTransformedByMergeOperation(e){const t=e.movedRange;let n;return t.containsPosition(this)||t.start.isEqual(this)?(n=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(n=n._getTransformedByDeletion(e.deletionPosition,1))):n=this.isEqual(e.deletionPosition)?q._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),n}_getTransformedByDeletion(e,t){const n=q._createAt(this);if(this.root!=e.root)return n;if(ot(e.getParentPath(),this.getParentPath())=="same"){if(e.offset<this.offset){if(e.offset+t>this.offset)return null;n.offset-=t}}else if(ot(e.getParentPath(),this.getParentPath())=="prefix"){const o=e.path.length-1;if(e.offset<=this.path[o]){if(e.offset+t>this.path[o])return null;n.path[o]-=t}}return n}_getTransformedByInsertion(e,t){const n=q._createAt(this);if(this.root!=e.root)return n;if(ot(e.getParentPath(),this.getParentPath())=="same")(e.offset<this.offset||e.offset==this.offset&&this.stickiness!="toPrevious")&&(n.offset+=t);else if(ot(e.getParentPath(),this.getParentPath())=="prefix"){const o=e.path.length-1;e.offset<=this.path[o]&&(n.path[o]+=t)}return n}_getTransformedByMove(e,t,n){if(t=t._getTransformedByDeletion(e,n),e.isEqual(t))return q._createAt(this);const o=this._getTransformedByDeletion(e,n);return o===null||e.isEqual(this)&&this.stickiness=="toNext"||e.getShiftedBy(n).isEqual(this)&&this.stickiness=="toPrevious"?this._getCombined(e,t):o._getTransformedByInsertion(t,n)}_getCombined(e,t){const n=e.path.length-1,o=q._createAt(t);return o.stickiness=this.stickiness,o.offset=o.offset+this.path[n]-e.offset,o.path=[...o.path,...this.path.slice(n+1)],o}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(e,t,n="toNone"){if(e instanceof q)return new q(e.root,e.path,e.stickiness);{const o=e;if(t=="end")t=o.maxOffset;else{if(t=="before")return this._createBefore(o,n);if(t=="after")return this._createAfter(o,n);if(t!==0&&!t)throw new B("model-createpositionat-offset-required",[this,e])}if(!o.is("element")&&!o.is("documentFragment"))throw new B("model-position-parent-incorrect",[this,e]);const r=o.getPath();return r.push(t),new this(o.root,r,n)}}static _createAfter(e,t){if(!e.parent)throw new B("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}static _createBefore(e,t){if(!e.parent)throw new B("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}static fromJSON(e,t){if(e.root==="$graveyard"){const n=new q(t.graveyard,e.path);return n.stickiness=e.stickiness,n}if(!t.getRoot(e.root))throw new B("model-position-fromjson-no-root",t,{rootName:e.root});return new q(t.getRoot(e.root),e.path,e.stickiness)}}function Ao(i,e){const t=e.getChild(e.offsetToIndex(i.offset));return t&&t.is("$text")&&t.startOffset<i.offset?t:null}function lu(i,e,t){return t!==null?null:e.getChild(e.offsetToIndex(i.offset))}function du(i,e,t){return t!==null?null:e.getChild(e.offsetToIndex(i.offset)-1)}function uu(i,e,t){return t+1!==i.path.length&&!!Ca(e.path,t+1)&&!!function(n,o){let r=n.parent,s=n.path.length-1,a=0;for(;s>=o;){if(n.path[s]+a!==r.maxOffset)return!1;a=1,s--,r=r.parent}return!0}(i,t+1)}function Ca(i,e){for(;e<i.length;){if(i[e]!==0)return!1;e++}return!0}q.prototype.is=function(i){return i==="position"||i==="model:position"};class F extends Bn{constructor(e,t){super(),this.start=q._createAt(e),this.end=t?q._createAt(t):q._createAt(e),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new gn({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return ot(this.start.getParentPath(),this.end.getParentPath())=="same"}get root(){return this.start.root}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),o=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&o}containsItem(e){const t=q._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}isEqual(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new F(this.start,e.start)),this.containsPosition(e.end)&&t.push(new F(e.end,this.end))):t.push(new F(this.start,this.end)),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new F(t,n)}return null}getJoined(e,t=!1){let n=this.isIntersecting(e);if(n||(n=this.start.isBefore(e.start)?t?this.end.isTouching(e.start):this.end.isEqual(e.start):t?e.end.isTouching(this.start):e.end.isEqual(this.start)),!n)return null;let o=this.start,r=this.end;return e.start.isBefore(o)&&(o=e.start),e.end.isAfter(r)&&(r=e.end),new F(o,r)}getMinimalFlatRanges(){const e=[],t=this.start.getCommonPath(this.end).length,n=q._createAt(this.start);let o=n.parent;for(;n.path.length>t+1;){const r=o.maxOffset-n.offset;r!==0&&e.push(new F(n,n.getShiftedBy(r))),n.path=n.path.slice(0,-1),n.offset++,o=o.parent}for(;n.path.length<=this.end.path.length;){const r=this.end.path[n.path.length-1],s=r-n.offset;s!==0&&e.push(new F(n,n.getShiftedBy(s))),n.offset=r,n.path.push(0)}return e}getWalker(e={}){return e.boundaries=this,new gn(e)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new gn(e);for(const n of t)yield n.item}*getPositions(e={}){e.boundaries=this;const t=new gn(e);yield t.position;for(const n of t)yield n.nextPosition}getTransformedByOperation(e){switch(e.type){case"insert":return this._getTransformedByInsertOperation(e);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(e);case"split":return[this._getTransformedBySplitOperation(e)];case"merge":return[this._getTransformedByMergeOperation(e)]}return[new F(this.start,this.end)]}getTransformedByOperations(e){const t=[new F(this.start,this.end)];for(const n of e)for(let o=0;o<t.length;o++){const r=t[o].getTransformedByOperation(n);t.splice(o,1,...r),o+=r.length-1}for(let n=0;n<t.length;n++){const o=t[n];for(let r=n+1;r<t.length;r++){const s=t[r];(o.containsRange(s)||s.containsRange(o)||o.isEqual(s))&&t.splice(r,1)}}return t}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(e,t=!1){return this._getTransformedByInsertion(e.position,e.howMany,t)}_getTransformedByMoveOperation(e,t=!1){const n=e.sourcePosition,o=e.howMany,r=e.targetPosition;return this._getTransformedByMove(n,r,o,t)}_getTransformedBySplitOperation(e){const t=this.start._getTransformedBySplitOperation(e);let n=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(n=this.end.getShiftedBy(1)),t.root!=n.root&&(n=this.end.getShiftedBy(-1)),new F(t,n)}_getTransformedByMergeOperation(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new F(this.start);let t=this.start._getTransformedByMergeOperation(e),n=this.end._getTransformedByMergeOperation(e);return t.root!=n.root&&(n=this.end.getShiftedBy(-1)),t.isAfter(n)?(e.sourcePosition.isBefore(e.targetPosition)?(t=q._createAt(n),t.offset=0):(e.deletionPosition.isEqual(t)||(n=e.deletionPosition),t=e.targetPosition),new F(t,n)):new F(t,n)}_getTransformedByInsertion(e,t,n=!1){if(n&&this.containsPosition(e))return[new F(this.start,e),new F(e.getShiftedBy(t),this.end._getTransformedByInsertion(e,t))];{const o=new F(this.start,this.end);return o.start=o.start._getTransformedByInsertion(e,t),o.end=o.end._getTransformedByInsertion(e,t),[o]}}_getTransformedByMove(e,t,n,o=!1){if(this.isCollapsed){const u=this.start._getTransformedByMove(e,t,n);return[new F(u)]}const r=F._createFromPositionAndShift(e,n),s=t._getTransformedByDeletion(e,n);if(this.containsPosition(t)&&!o&&(r.containsPosition(this.start)||r.containsPosition(this.end))){const u=this.start._getTransformedByMove(e,t,n),h=this.end._getTransformedByMove(e,t,n);return[new F(u,h)]}let a;const c=this.getDifference(r);let l=null;const d=this.getIntersection(r);if(c.length==1?l=new F(c[0].start._getTransformedByDeletion(e,n),c[0].end._getTransformedByDeletion(e,n)):c.length==2&&(l=new F(this.start,this.end._getTransformedByDeletion(e,n))),a=l?l._getTransformedByInsertion(s,n,d!==null||o):[],d){const u=new F(d.start._getCombined(r.start,s),d.end._getCombined(r.start,s));a.length==2?a.splice(1,0,u):a.push(u)}return a}_getTransformedByDeletion(e,t){let n=this.start._getTransformedByDeletion(e,t),o=this.end._getTransformedByDeletion(e,t);return n==null&&o==null?null:(n==null&&(n=e),o==null&&(o=e),new F(n,o))}static _createFromPositionAndShift(e,t){const n=e,o=e.getShiftedBy(t);return t>0?new this(n,o):new this(o,n)}static _createIn(e){return new this(q._createAt(e,0),q._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(q._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(e.length===0)throw new B("range-create-from-ranges-empty-array",null);if(e.length==1)return e[0].clone();const t=e[0];e.sort((r,s)=>r.start.isAfter(s.start)?1:-1);const n=e.indexOf(t),o=new this(t.start,t.end);if(n>0)for(let r=n-1;e[r].end.isEqual(o.start);r++)o.start=q._createAt(e[r].start);for(let r=n+1;r<e.length&&e[r].start.isEqual(o.end);r++)o.end=q._createAt(e[r].end);return o}static fromJSON(e,t){return new this(q.fromJSON(e.start,t),q.fromJSON(e.end,t))}}F.prototype.is=function(i){return i==="range"||i==="model:range"};class hu extends ye(){constructor(){super(),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._deferredBindingRemovals=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(e,t)=>{if(t.viewPosition)return;const n=this._modelToViewMapping.get(t.modelPosition.parent);if(!n)throw new B("mapping-model-position-view-parent-not-found",this,{modelPosition:t.modelPosition});t.viewPosition=this.findPositionIn(n,t.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(e,t)=>{if(t.modelPosition)return;const n=this.findMappedViewAncestor(t.viewPosition),o=this._viewToModelMapping.get(n),r=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,n);t.modelPosition=q._createAt(o,r)},{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e,t={}){const n=this.toModelElement(e);if(this._elementToMarkerNames.has(e))for(const o of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(o);t.defer?this._deferredBindingRemovals.set(e,e.root):(this._viewToModelMapping.delete(e),this._modelToViewMapping.get(n)==e&&this._modelToViewMapping.delete(n))}unbindModelElement(e){const t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}bindElementToMarker(e,t){const n=this._markerNameToElements.get(t)||new Set;n.add(e);const o=this._elementToMarkerNames.get(e)||new Set;o.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,o)}unbindElementFromMarkerName(e,t){const n=this._markerNameToElements.get(t);n&&(n.delete(e),n.size==0&&this._markerNameToElements.delete(t));const o=this._elementToMarkerNames.get(e);o&&(o.delete(t),o.size==0&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){const e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}flushDeferredBindings(){for(const[e,t]of this._deferredBindingRemovals)e.root==t&&this.unbindViewElement(e);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new F(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new ie(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){const t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}toViewPosition(e,t={}){const n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(e){const t=this._markerNameToElements.get(e);if(!t)return null;const n=new Set;for(const o of t)if(o.is("attributeElement"))for(const r of o.getElementsWithSameId())n.add(r);else n.add(o);return n}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;for(;!this._viewToModelMapping.has(t);)t=t.parent;return t}_toModelOffset(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;let o=0;for(let r=0;r<t;r++)o+=this.getModelLength(e.getChild(r));return o}getModelLength(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;{let t=0;for(const n of e.getChildren())t+=this.getModelLength(n);return t}}findPositionIn(e,t){let n,o=0,r=0,s=0;if(e.is("$text"))return new Y(e,t);for(;r<t;)n=e.getChild(s),o=this.getModelLength(n),r+=o,s++;return r==t?this._moveViewPositionToTextNode(new Y(e,s)):this.findPositionIn(n,t-(r-o))}_moveViewPositionToTextNode(e){const t=e.nodeBefore,n=e.nodeAfter;return t instanceof Se?new Y(t,t.data.length):n instanceof Se?new Y(n,0):e}}class LA{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(e,t){t=Nr(t),e instanceof Qt&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}consume(e,t){return t=Nr(t),e instanceof Qt&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}test(e,t){t=Nr(t),e instanceof Qt&&(e=this._getSymbolForTextProxy(e));const n=this._consumable.get(e);if(n===void 0)return null;const o=n.get(t);return o===void 0?null:o}revert(e,t){t=Nr(t),e instanceof Qt&&(e=this._getSymbolForTextProxy(e));const n=this.test(e,t);return n===!1?(this._consumable.get(e).set(t,!0),!0):n!==!0&&null}verifyAllConsumed(e){const t=[];for(const[n,o]of this._consumable)for(const[r,s]of o){const a=r.split(":")[0];s&&e==a&&t.push({event:r,item:n.name||n.description})}if(t.length)throw new B("conversion-model-consumable-not-consumed",null,{items:t})}_getSymbolForTextProxy(e){let t=null;const n=this._textProxyRegistry.get(e.startOffset);if(n){const o=n.get(e.endOffset);o&&(t=o.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e)),t}_addSymbolForTextProxy(e){const t=e.startOffset,n=e.endOffset,o=e.parent,r=Symbol("$textProxy:"+e.data);let s,a;return s=this._textProxyRegistry.get(t),s||(s=new Map,this._textProxyRegistry.set(t,s)),a=s.get(n),a||(a=new Map,s.set(n,a)),a.set(o,r),r}}function Nr(i){const e=i.split(":");return e[0]=="insert"?e[0]:e[0]=="addMarker"||e[0]=="removeMarker"?i:e.length>1?e[0]+":"+e[1]:e[0]}var zA=Object.defineProperty,RA=Object.defineProperties,jA=Object.getOwnPropertyDescriptors,gu=Object.getOwnPropertySymbols,FA=Object.prototype.hasOwnProperty,VA=Object.prototype.propertyIsEnumerable,mu=(i,e,t)=>e in i?zA(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,va=(i,e)=>{for(var t in e||(e={}))FA.call(e,t)&&mu(i,t,e[t]);if(gu)for(var t of gu(e))VA.call(e,t)&&mu(i,t,e[t]);return i},pu=(i,e)=>RA(i,jA(e));class fu extends ye(){constructor(e){super(),this._conversionApi=va({dispatcher:this},e),this._firedEventsMap=new WeakMap}convertChanges(e,t,n){const o=this._createConversionApi(n,e.getRefreshedItems());for(const s of e.getMarkersToRemove())this._convertMarkerRemove(s.name,s.range,o);const r=this._reduceChanges(e.getChanges());for(const s of r)s.type==="insert"?this._convertInsert(F._createFromPositionAndShift(s.position,s.length),o):s.type==="reinsert"?this._convertReinsert(F._createFromPositionAndShift(s.position,s.length),o):s.type==="remove"?this._convertRemove(s.position,s.length,s.name,o):this._convertAttribute(s.range,s.attributeKey,s.attributeOldValue,s.attributeNewValue,o);o.mapper.flushDeferredBindings();for(const s of o.mapper.flushUnboundMarkerNames()){const a=t.get(s).getRange();this._convertMarkerRemove(s,a,o),this._convertMarkerAdd(s,a,o)}for(const s of e.getMarkersToAdd())this._convertMarkerAdd(s.name,s.range,o);o.consumable.verifyAllConsumed("insert")}convert(e,t,n,o={}){const r=this._createConversionApi(n,void 0,o);this._convertInsert(e,r);for(const[s,a]of t)this._convertMarkerAdd(s,a,r);r.consumable.verifyAllConsumed("insert")}convertSelection(e,t,n){const o=this._createConversionApi(n);this.fire("cleanSelection",{selection:e},o);const r=e.getFirstPosition().root;if(!o.mapper.toViewElement(r))return;const s=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this._addConsumablesForSelection(o.consumable,e,s),this.fire("selection",{selection:e},o),e.isCollapsed){for(const a of s)if(o.consumable.test(e,"addMarker:"+a.name)){const c=a.getRange();if(!HA(e.getFirstPosition(),a,o.mapper))continue;const l={item:e,markerName:a.name,markerRange:c};this.fire(`addMarker:${a.name}`,l,o)}for(const a of e.getAttributeKeys())if(o.consumable.test(e,"attribute:"+a)){const c={item:e,range:e.getFirstRange(),attributeKey:a,attributeOldValue:null,attributeNewValue:e.getAttribute(a)};this.fire(`attribute:${a}:$text`,c,o)}}}_convertInsert(e,t,n={}){n.doNotAddConsumables||this._addConsumablesForInsert(t.consumable,e);for(const o of Array.from(e.getWalker({shallow:!0})).map(ku))this._testAndFire("insert",o,t)}_convertRemove(e,t,n,o){this.fire(`remove:${n}`,{position:e,length:t},o)}_convertAttribute(e,t,n,o,r){this._addConsumablesForRange(r.consumable,e,`attribute:${t}`);for(const s of e){const a={item:s.item,range:F._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:t,attributeOldValue:n,attributeNewValue:o};this._testAndFire(`attribute:${t}`,a,r)}}_convertReinsert(e,t){const n=Array.from(e.getWalker({shallow:!0}));this._addConsumablesForInsert(t.consumable,n);for(const o of n.map(ku))this._testAndFire("insert",pu(va({},o),{reconversion:!0}),t)}_convertMarkerAdd(e,t,n){if(t.root.rootName=="$graveyard")return;const o=`addMarker:${e}`;if(n.consumable.add(t,o),this.fire(o,{markerName:e,markerRange:t},n),n.consumable.consume(t,o)){this._addConsumablesForRange(n.consumable,t,o);for(const r of t.getItems()){if(!n.consumable.test(r,o))continue;const s={item:r,range:F._createOn(r),markerName:e,markerRange:t};this.fire(o,s,n)}}}_convertMarkerRemove(e,t,n){t.root.rootName!="$graveyard"&&this.fire(`removeMarker:${e}`,{markerName:e,markerRange:t},n)}_reduceChanges(e){const t={changes:e};return this.fire("reduceChanges",t),t.changes}_addConsumablesForInsert(e,t){for(const n of t){const o=n.item;if(e.test(o,"insert")===null){e.add(o,"insert");for(const r of o.getAttributeKeys())e.add(o,"attribute:"+r)}}return e}_addConsumablesForRange(e,t,n){for(const o of t.getItems())e.add(o,n);return e}_addConsumablesForSelection(e,t,n){e.add(t,"selection");for(const o of n)e.add(t,"addMarker:"+o.name);for(const o of t.getAttributeKeys())e.add(t,"attribute:"+o);return e}_testAndFire(e,t,n){const o=function(c,l){const d=l.item.is("element")?l.item.name:"$text";return`${c}:${d}`}(e,t),r=t.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(t.item):t.item,s=this._firedEventsMap.get(n),a=s.get(r);if(a){if(a.has(o))return;a.add(o)}else s.set(r,new Set([o]));this.fire(o,t,n)}_testAndFireAddAttributes(e,t){const n={item:e,range:F._createOn(e)};for(const o of n.item.getAttributeKeys())n.attributeKey=o,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(o),this._testAndFire(`attribute:${o}`,n,t)}_createConversionApi(e,t=new Set,n={}){const o=pu(va({},this._conversionApi),{consumable:new LA,writer:e,options:n,convertItem:r=>this._convertInsert(F._createOn(r),o),convertChildren:r=>this._convertInsert(F._createIn(r),o,{doNotAddConsumables:!0}),convertAttributes:r=>this._testAndFireAddAttributes(r,o),canReuseView:r=>!t.has(o.mapper.toModelElement(r))});return this._firedEventsMap.set(o,new Map),o}}function HA(i,e,t){const n=e.getRange(),o=Array.from(i.getAncestors());return o.shift(),o.reverse(),!o.some(r=>{if(n.containsItem(r))return!!t.toViewElement(r).getCustomProperty("addHighlight")})}function ku(i){return{item:i.item,range:F._createFromPositionAndShift(i.previousPosition,i.length)}}class Et extends ye(Bn){constructor(...e){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],e.length&&this.setTo(...e)}get anchor(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}get isCollapsed(){return this._ranges.length===1&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(e){if(this.rangeCount!=e.rangeCount)return!1;if(this.rangeCount===0)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let n=!1;for(const o of e._ranges)if(t.isEqual(o)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const e of this._ranges)yield new F(e.start,e.end)}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?new F(e.start,e.end):null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?new F(e.start,e.end):null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}setTo(...e){let[t,n,o]=e;if(typeof n=="object"&&(o=n,n=void 0),t===null)this._setRanges([]);else if(t instanceof Et)this._setRanges(t.getRanges(),t.isBackward);else if(t&&typeof t.getRanges=="function")this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof F)this._setRanges([t],!!o&&!!o.backward);else if(t instanceof q)this._setRanges([new F(t)]);else if(t instanceof Qn){const r=!!o&&!!o.backward;let s;if(n=="in")s=F._createIn(t);else if(n=="on")s=F._createOn(t);else{if(n===void 0)throw new B("model-selection-setto-required-second-parameter",[this,t]);s=new F(q._createAt(t,n))}this._setRanges([s],r)}else{if(!Ee(t))throw new B("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,o&&!!o.backward)}}_setRanges(e,t=!1){const n=Array.from(e),o=n.some(r=>{if(!(r instanceof F))throw new B("model-selection-set-ranges-not-range",[this,e]);return this._ranges.every(s=>!s.isEqual(r))});(n.length!==this._ranges.length||o)&&(this._replaceAllRanges(n),this._lastRangeBackward=!!t,this.fire("change:range",{directChange:!0}))}setFocus(e,t){if(this.anchor===null)throw new B("model-selection-setfocus-no-ranges",[this,e]);const n=q._createAt(e,t);if(n.compareWith(this.focus)=="same")return;const o=this.anchor;this._ranges.length&&this._popRange(),n.compareWith(o)=="before"?(this._pushRange(new F(n,o)),this._lastRangeBackward=!0):(this._pushRange(new F(o,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}setAttribute(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}getSelectedElement(){return this.rangeCount!==1?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const e=new WeakSet;for(const t of this.getRanges()){const n=wu(t.start,e);WA(n,t)&&(yield n);for(const r of t.getWalker()){const s=r.item;r.type=="elementEnd"&&UA(s,e,t)&&(yield s)}const o=wu(t.end,e);qA(o,t)&&(yield o)}}containsEntireContent(e=this.anchor.root){const t=q._createAt(e,0),n=q._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(e){this._checkRange(e),this._ranges.push(new F(e.start,e.end))}_checkRange(e){for(let t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new B("model-selection-range-intersects",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}_replaceAllRanges(e){this._removeAllRanges();for(const t of e)this._pushRange(t)}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function bu(i,e){return!e.has(i)&&(e.add(i),i.root.document.model.schema.isBlock(i)&&!!i.parent)}function UA(i,e,t){return bu(i,e)&&ya(i,t)}function wu(i,e){const t=i.parent.root.document.model.schema,n=i.parent.getAncestors({parentFirst:!0,includeSelf:!0});let o=!1;const r=n.find(s=>!o&&(o=t.isLimit(s),!o&&bu(s,e)));return n.forEach(s=>e.add(s)),r}function ya(i,e){const t=function(n){const o=n.root.document.model.schema;let r=n.parent;for(;r;){if(o.isBlock(r))return r;r=r.parent}}(i);return t?!e.containsRange(F._createOn(t),!0):!0}function WA(i,e){return!!i&&(!(!e.isCollapsed&&!i.isEmpty)||!e.start.isTouching(q._createAt(i,i.maxOffset))&&ya(i,e))}function qA(i,e){return!!i&&(!(!e.isCollapsed&&!i.isEmpty)||!e.end.isTouching(q._createAt(i,0))&&ya(i,e))}Et.prototype.is=function(i){return i==="selection"||i==="model:selection"};class Tt extends ye(F){constructor(e,t){super(e,t),GA.call(this)}detach(){this.stopListening()}toRange(){return new F(this.start,this.end)}static fromRange(e){return new Tt(e.start,e.end)}}function GA(){this.listenTo(this.root.document.model,"applyOperation",(i,e)=>{const t=e[0];t.isDocumentOperation&&$A.call(this,t)},{priority:"low"})}function $A(i){const e=this.getTransformedByOperation(i),t=F._createFromRanges(e),n=!t.isEqual(this),o=function(s,a){switch(a.type){case"insert":return s.containsPosition(a.position);case"move":case"remove":case"reinsert":case"merge":return s.containsPosition(a.sourcePosition)||s.start.isEqual(a.sourcePosition)||s.containsPosition(a.targetPosition);case"split":return s.containsPosition(a.splitPosition)||s.containsPosition(a.insertionPosition)}return!1}(this,i);let r=null;if(n){t.root.rootName=="$graveyard"&&(r=i.type=="remove"?i.sourcePosition:i.deletionPosition);const s=this.toRange();this.start=t.start,this.end=t.end,this.fire("change:range",s,{deletionPosition:r})}else o&&this.fire("change:content",this.toRange(),{deletionPosition:r})}Tt.prototype.is=function(i){return i==="liveRange"||i==="model:liveRange"||i=="range"||i==="model:range"};const Or="selection:";class Zt extends ye(Bn){constructor(e){super(),this._selection=new KA(e),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(e){return this._selection.containsEntireContent(e)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(e){return this._selection.getAttribute(e)}hasAttribute(e){return this._selection.hasAttribute(e)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(e){this._selection.observeMarkers(e)}_setFocus(e,t){this._selection.setFocus(e,t)}_setTo(...e){this._selection.setTo(...e)}_setAttribute(e,t){this._selection.setAttribute(e,t)}_removeAttribute(e){this._selection.removeAttribute(e)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(e){this._selection.restoreGravity(e)}static _getStoreAttributeKey(e){return Or+e}static _isStoreAttributeKey(e){return e.startsWith(Or)}}Zt.prototype.is=function(i){return i==="selection"||i=="model:selection"||i=="documentSelection"||i=="model:documentSelection"};class KA extends Et{constructor(e){super(),this.markers=new qt({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=e.model,this._document=e,this.listenTo(this._model,"applyOperation",(t,n)=>{const o=n[0];o.isDocumentOperation&&o.type!="marker"&&o.type!="rename"&&o.type!="noop"&&(this._ranges.length==0&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(t,n,o,r)=>{this._updateMarker(n,r)}),this.listenTo(this._document,"change",(t,n)=>{(function(o,r){const s=o.document.differ;for(const a of s.getChanges()){if(a.type!="insert")continue;const c=a.position.parent;a.length===c.maxOffset&&o.enqueueChange(r,l=>{const d=Array.from(c.getAttributeKeys()).filter(u=>u.startsWith(Or));for(const u of d)l.removeAttribute(u,c)})}})(this._model,n)})}get isCollapsed(){return this._ranges.length===0?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(...e){super.setTo(...e),this._updateAttributes(!0),this.updateMarkers()}setFocus(e,t){super.setFocus(e,t),this._updateAttributes(!0),this.updateMarkers()}setAttribute(e,t){if(this._setAttribute(e,t)){const n=[e];this.fire("change:attribute",{attributeKeys:n,directChange:!0})}}removeAttribute(e){if(this._removeAttribute(e)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}overrideGravity(){const e=$();return this._overriddenGravityRegister.add(e),this._overriddenGravityRegister.size===1&&this._updateAttributes(!0),e}restoreGravity(e){if(!this._overriddenGravityRegister.has(e))throw new B("document-selection-gravity-wrong-restore",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(e){this._observedMarkers.add(e),this.updateMarkers()}_replaceAllRanges(e){this._validateSelectionRanges(e),super._replaceAllRanges(e)}_popRange(){this._ranges.pop().detach()}_pushRange(e){const t=this._prepareRange(e);t&&this._ranges.push(t)}_validateSelectionRanges(e){for(const t of e)if(!this._document._validateSelectionRange(t))throw new B("document-selection-wrong-position",this,{range:t})}_prepareRange(e){if(this._checkRange(e),e.root==this._document.graveyard)return;const t=Tt.fromRange(e);return t.on("change:range",(n,o,r)=>{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=r.deletionPosition;const s=this._ranges.indexOf(t);this._ranges.splice(s,1),t.detach()}}),t}updateMarkers(){if(!this._observedMarkers.size)return;const e=[];let t=!1;for(const o of this._model.markers){const r=o.name.split(":",1)[0];if(!this._observedMarkers.has(r))continue;const s=o.getRange();for(const a of this.getRanges())s.containsRange(a,!a.isCollapsed)&&e.push(o)}const n=Array.from(this.markers);for(const o of e)this.markers.has(o)||(this.markers.add(o),t=!0);for(const o of Array.from(this.markers))e.includes(o)||(this.markers.remove(o),t=!0);t&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(e,t){const n=e.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let o=!1;const r=Array.from(this.markers),s=this.markers.has(e);if(t){let a=!1;for(const c of this.getRanges())if(t.containsRange(c,!c.isCollapsed)){a=!0;break}a&&!s?(this.markers.add(e),o=!0):!a&&s&&(this.markers.remove(e),o=!0)}else s&&(this.markers.remove(e),o=!0);o&&this.fire("change:marker",{oldMarkers:r,directChange:!1})}_updateAttributes(e){const t=sn(this._getSurroundingAttributes()),n=sn(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else for(const[r,s]of this._attributePriority)s=="low"&&(this._attrs.delete(r),this._attributePriority.delete(r));this._setAttributesTo(t);const o=[];for(const[r,s]of this.getAttributes())n.has(r)&&n.get(r)===s||o.push(r);for(const[r]of n)this.hasAttribute(r)||o.push(r);o.length>0&&this.fire("change:attribute",{attributeKeys:o,directChange:!1})}_setAttribute(e,t,n=!0){const o=n?"normal":"low";return o=="low"&&this._attributePriority.get(e)=="normal"?!1:super.getAttribute(e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,o),!0)}_removeAttribute(e,t=!0){const n=t?"normal":"low";return(n!="low"||this._attributePriority.get(e)!="normal")&&(this._attributePriority.set(e,n),!!super.hasAttribute(e)&&(this._attrs.delete(e),!0))}_setAttributesTo(e){const t=new Set;for(const[n,o]of this.getAttributes())e.get(n)!==o&&this._removeAttribute(n,!1);for(const[n,o]of e)this._setAttribute(n,o,!1)&&t.add(n);return t}*getStoredAttributes(){const e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty)for(const t of e.getAttributeKeys())t.startsWith(Or)&&(yield[t.substr(10),e.getAttribute(t)])}_getSurroundingAttributes(){const e=this.getFirstPosition(),t=this._model.schema;if(e.root.rootName=="$graveyard")return null;let n=null;if(this.isCollapsed){const o=e.textNode?e.textNode:e.nodeBefore,r=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=Co(o,t)),n||(n=Co(r,t)),!this.isGravityOverridden&&!n){let s=o;for(;s&&!n;)s=s.previousSibling,n=Co(s,t)}if(!n){let s=r;for(;s&&!n;)s=s.nextSibling,n=Co(s,t)}n||(n=this.getStoredAttributes())}else{const o=this.getFirstRange();for(const r of o){if(r.item.is("element")&&t.isObject(r.item)){n=Co(r.item,t);break}if(r.type=="text"){n=r.item.getAttributes();break}}}return n}_fixGraveyardSelection(e){const t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}function Co(i,e){if(!i)return null;if(i instanceof Qt||i instanceof Be)return i.getAttributes();if(!e.isInline(i))return null;if(!e.isObject(i))return[];const t=[];for(const[n,o]of i.getAttributes())e.checkAttribute("$text",n)&&e.getAttributeProperties(n).copyFromObject!==!1&&t.push([n,o]);return t}class _u{constructor(e){this._dispatchers=e}add(e){for(const t of this._dispatchers)e(t);return this}}class YA extends _u{elementToElement(e){return this.add(function(t){const n=vu(t.model),o=vo(t.view,"container");return n.attributes.length&&(n.children=!0),r=>{r.on(`insert:${n.name}`,ZA(o,Eu(n)),{priority:t.converterPriority||"normal"}),(n.children||n.attributes.length)&&r.on("reduceChanges",Du(n),{priority:"low"})}}(e))}elementToStructure(e){return this.add(function(t){const n=vu(t.model),o=vo(t.view,"container");return n.children=!0,r=>{if(r._conversionApi.schema.checkChild(n.name,"$text"))throw new B("conversion-element-to-structure-disallowed-text",r,{elementName:n.name});var s,a;r.on(`insert:${n.name}`,(s=o,a=Eu(n),(c,l,d)=>{if(!a(l.item,d.consumable,{preflight:!0}))return;const u=new Map;d.writer._registerSlotFactory(function(k,A,E){return(S,O)=>{const z=S.createContainerElement("$slot");let H=null;if(O==="children")H=Array.from(k.getChildren());else{if(typeof O!="function")throw new B("conversion-slot-mode-unknown",E.dispatcher,{modeOrFilter:O});H=Array.from(k.getChildren()).filter(Q=>O(Q))}return A.set(z,H),z}}(l.item,u,d));const h=s(l.item,d,l);if(d.writer._clearSlotFactory(),!h)return;(function(k,A,E){const S=Array.from(A.values()).flat(),O=new Set(S);if(O.size!=S.length)throw new B("conversion-slot-filter-overlap",E.dispatcher,{element:k});if(O.size!=k.childCount)throw new B("conversion-slot-filter-incomplete",E.dispatcher,{element:k})})(l.item,u,d),a(l.item,d.consumable);const m=d.mapper.toViewPosition(l.range.start);d.mapper.bindElements(l.item,h),d.writer.insert(m,h),d.convertAttributes(l.item),function(k,A,E,S){E.mapper.on("modelToViewPosition",H,{priority:"highest"});let O=null,z=null;for([O,z]of A)Tu(k,z,E,S),E.writer.move(E.writer.createRangeIn(O),E.writer.createPositionBefore(O)),E.writer.remove(O);function H(Q,ne){const se=ne.modelPosition.nodeAfter,Pe=z.indexOf(se);Pe<0||(ne.viewPosition=ne.mapper.findPositionIn(O,Pe))}E.mapper.off("modelToViewPosition",H)}(h,u,d,{reconversion:l.reconversion})}),{priority:t.converterPriority||"normal"}),r.on("reduceChanges",Du(n),{priority:"low"})}}(e))}attributeToElement(e){return this.add(function(t){t=Yt(t);let n=t.model;typeof n=="string"&&(n={key:n});let o=`attribute:${n.key}`;if(n.name&&(o+=":"+n.name),n.values)for(const s of n.values)t.view[s]=vo(t.view[s],"attribute");else t.view=vo(t.view,"attribute");const r=yu(t);return s=>{s.on(o,QA(r),{priority:t.converterPriority||"normal"})}}(e))}attributeToAttribute(e){return this.add(function(t){t=Yt(t);let n=t.model;typeof n=="string"&&(n={key:n});let o=`attribute:${n.key}`;if(n.name&&(o+=":"+n.name),n.values)for(const s of n.values)t.view[s]=xu(t.view[s]);else t.view=xu(t.view);const r=yu(t);return s=>{var a;s.on(o,(a=r,(c,l,d)=>{if(!d.consumable.test(l.item,c.name))return;const u=a(l.attributeOldValue,d,l),h=a(l.attributeNewValue,d,l);if(!u&&!h)return;d.consumable.consume(l.item,c.name);const m=d.mapper.toViewElement(l.item),k=d.writer;if(!m)throw new B("conversion-attribute-to-attribute-on-text",d.dispatcher,l);if(l.attributeOldValue!==null&&u)if(u.key=="class"){const A=typeof u.value=="string"?u.value.split(/\s+/):u.value;for(const E of A)k.removeClass(E,m)}else if(u.key=="style")if(typeof u.value=="string"){const A=new aa(k.document.stylesProcessor);A.setTo(u.value);for(const[E]of A.getStylesEntries())k.removeStyle(E,m)}else{const A=Object.keys(u.value);for(const E of A)k.removeStyle(E,m)}else k.removeAttribute(u.key,m);if(l.attributeNewValue!==null&&h)if(h.key=="class"){const A=typeof h.value=="string"?h.value.split(/\s+/):h.value;for(const E of A)k.addClass(E,m)}else if(h.key=="style")if(typeof h.value=="string"){const A=new aa(k.document.stylesProcessor);A.setTo(h.value);for(const[E,S]of A.getStylesEntries())k.setStyle(E,S,m)}else{const A=Object.keys(h.value);for(const E of A)k.setStyle(E,h.value[E],m)}else k.setAttribute(h.key,h.value,m)}),{priority:t.converterPriority||"normal"})}}(e))}markerToElement(e){return this.add(function(t){const n=vo(t.view,"ui");return o=>{o.on(`addMarker:${t.model}`,JA(n),{priority:t.converterPriority||"normal"}),o.on(`removeMarker:${t.model}`,(r,s,a)=>{const c=a.mapper.markerNameToElements(s.markerName);if(c){for(const l of c)a.mapper.unbindElementFromMarkerName(l,s.markerName),a.writer.clear(a.writer.createRangeOn(l),l);a.writer.clearClonedElementsGroup(s.markerName),r.stop()}},{priority:t.converterPriority||"normal"})}}(e))}markerToHighlight(e){return this.add(function(t){return n=>{var o;n.on(`addMarker:${t.model}`,(o=t.view,(r,s,a)=>{if(!s.item||!(s.item instanceof Et||s.item instanceof Zt||s.item.is("$textProxy")))return;const c=xa(o,s,a);if(!c||!a.consumable.consume(s.item,r.name))return;const l=a.writer,d=Au(l,c),u=l.document.selection;if(s.item instanceof Et||s.item instanceof Zt)l.wrap(u.getFirstRange(),d);else{const h=a.mapper.toViewRange(s.range),m=l.wrap(h,d);for(const k of m.getItems())if(k.is("attributeElement")&&k.isSimilar(d)){a.mapper.bindElementToMarker(k,s.markerName);break}}}),{priority:t.converterPriority||"normal"}),n.on(`addMarker:${t.model}`,function(r){return(s,a,c)=>{if(!a.item||!(a.item instanceof Te))return;const l=xa(r,a,c);if(!l||!c.consumable.test(a.item,s.name))return;const d=c.mapper.toViewElement(a.item);if(d&&d.getCustomProperty("addHighlight")){c.consumable.consume(a.item,s.name);for(const u of F._createIn(a.item))c.consumable.consume(u.item,s.name);d.getCustomProperty("addHighlight")(d,l,c.writer),c.mapper.bindElementToMarker(d,a.markerName)}}}(t.view),{priority:t.converterPriority||"normal"}),n.on(`removeMarker:${t.model}`,function(r){return(s,a,c)=>{if(a.markerRange.isCollapsed)return;const l=xa(r,a,c);if(!l)return;const d=Au(c.writer,l),u=c.mapper.markerNameToElements(a.markerName);if(u){for(const h of u)c.mapper.unbindElementFromMarkerName(h,a.markerName),h.is("attributeElement")?c.writer.unwrap(c.writer.createRangeOn(h),d):h.getCustomProperty("removeHighlight")(h,l.id,c.writer);c.writer.clearClonedElementsGroup(a.markerName),s.stop()}}}(t.view),{priority:t.converterPriority||"normal"})}}(e))}markerToData(e){return this.add(function(t){t=Yt(t);const n=t.model;let o=t.view;return o||(o=r=>({group:n,name:r.substr(t.model.length+1)})),r=>{var s;r.on(`addMarker:${n}`,(s=o,(a,c,l)=>{const d=s(c.markerName,l);if(!d)return;const u=c.markerRange;l.consumable.consume(u,a.name)&&(Cu(u,!1,l,c,d),Cu(u,!0,l,c,d),a.stop())}),{priority:t.converterPriority||"normal"}),r.on(`removeMarker:${n}`,function(a){return(c,l,d)=>{const u=a(l.markerName,d);if(!u)return;const h=d.mapper.markerNameToElements(l.markerName);if(h){for(const k of h)d.mapper.unbindElementFromMarkerName(k,l.markerName),k.is("containerElement")?(m(`data-${u.group}-start-before`,k),m(`data-${u.group}-start-after`,k),m(`data-${u.group}-end-before`,k),m(`data-${u.group}-end-after`,k)):d.writer.clear(d.writer.createRangeOn(k),k);d.writer.clearClonedElementsGroup(l.markerName),c.stop()}function m(k,A){if(A.hasAttribute(k)){const E=new Set(A.getAttribute(k).split(","));E.delete(u.name),E.size==0?d.writer.removeAttribute(k,A):d.writer.setAttribute(k,Array.from(E).join(","),A)}}}}(o),{priority:t.converterPriority||"normal"})}}(e))}}function Au(i,e){const t=i.createAttributeElement("span",e.attributes);return e.classes&&t._addClass(e.classes),typeof e.priority=="number"&&(t._priority=e.priority),t._id=e.id,t}function QA(i){return(e,t,n)=>{if(!n.consumable.test(t.item,e.name))return;const o=i(t.attributeOldValue,n,t),r=i(t.attributeNewValue,n,t);if(!o&&!r)return;n.consumable.consume(t.item,e.name);const s=n.writer,a=s.document.selection;if(t.item instanceof Et||t.item instanceof Zt)s.wrap(a.getFirstRange(),r);else{let c=n.mapper.toViewRange(t.range);t.attributeOldValue!==null&&o&&(c=s.unwrap(c,o)),t.attributeNewValue!==null&&r&&s.wrap(c,r)}}}function ZA(i,e=eC){return(t,n,o)=>{if(!e(n.item,o.consumable,{preflight:!0}))return;const r=i(n.item,o,n);if(!r)return;e(n.item,o.consumable);const s=o.mapper.toViewPosition(n.range.start);o.mapper.bindElements(n.item,r),o.writer.insert(s,r),o.convertAttributes(n.item),Tu(r,n.item.getChildren(),o,{reconversion:n.reconversion})}}function JA(i){return(e,t,n)=>{t.isOpening=!0;const o=i(t,n);t.isOpening=!1;const r=i(t,n);if(!o||!r)return;const s=t.markerRange;if(s.isCollapsed&&!n.consumable.consume(s,e.name))return;for(const l of s)if(!n.consumable.consume(l.item,e.name))return;const a=n.mapper,c=n.writer;c.insert(a.toViewPosition(s.start),o),n.mapper.bindElementToMarker(o,t.markerName),s.isCollapsed||(c.insert(a.toViewPosition(s.end),r),n.mapper.bindElementToMarker(r,t.markerName)),e.stop()}}function Cu(i,e,t,n,o){const r=e?i.start:i.end,s=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,a=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(s||a){let c,l;e&&s||!e&&!a?(c=s,l=!0):(c=a,l=!1);const d=t.mapper.toViewElement(c);if(d)return void function(u,h,m,k,A,E){const S=`data-${E.group}-${h?"start":"end"}-${m?"before":"after"}`,O=u.hasAttribute(S)?u.getAttribute(S).split(","):[];O.unshift(E.name),k.writer.setAttribute(S,O.join(","),u),k.mapper.bindElementToMarker(u,A.markerName)}(d,e,l,t,n,o)}(function(c,l,d,u,h){const m=`${h.group}-${l?"start":"end"}`,k=h.name?{name:h.name}:null,A=d.writer.createUIElement(m,k);d.writer.insert(c,A),d.mapper.bindElementToMarker(A,u.markerName)})(t.mapper.toViewPosition(r),e,t,n,o)}function vu(i){return typeof i=="string"&&(i={name:i}),{name:i.name,attributes:i.attributes?Oe(i.attributes):[],children:!!i.children}}function vo(i,e){return typeof i=="function"?i:(t,n)=>function(o,r,s){typeof o=="string"&&(o={name:o});let a;const c=r.writer,l=Object.assign({},o.attributes);if(s=="container")a=c.createContainerElement(o.name,l);else if(s=="attribute"){const d={priority:o.priority||Kn.DEFAULT_PRIORITY};a=c.createAttributeElement(o.name,l,d)}else a=c.createUIElement(o.name,l);if(o.styles){const d=Object.keys(o.styles);for(const u of d)c.setStyle(u,o.styles[u],a)}if(o.classes){const d=o.classes;if(typeof d=="string")c.addClass(d,a);else for(const u of d)c.addClass(u,a)}return a}(i,n,e)}function yu(i){return i.model.values?(e,t,n)=>{const o=i.view[e];return o?o(e,t,n):null}:i.view}function xu(i){return typeof i=="string"?e=>({key:i,value:e}):typeof i=="object"?i.value?()=>i:e=>({key:i.key,value:e}):i}function xa(i,e,t){const n=typeof i=="function"?i(e,t):i;return n?(n.priority||(n.priority=10),n.id||(n.id=e.markerName),n):null}function Du(i){const e=function(t){return(n,o)=>{if(!n.is("element",t.name))return!1;if(o.type=="attribute"){if(t.attributes.includes(o.attributeKey))return!0}else if(t.children)return!0;return!1}}(i);return(t,n)=>{const o=[];n.reconvertedElements||(n.reconvertedElements=new Set);for(const r of n.changes){const s=r.type=="attribute"?r.range.start.nodeAfter:r.position.parent;if(s&&e(s,r)){if(!n.reconvertedElements.has(s)){n.reconvertedElements.add(s);const a=q._createBefore(s);let c=o.length;for(let l=o.length-1;l>=0;l--){const d=o[l],u=(d.type=="attribute"?d.range.start:d.position).compareWith(a);if(u=="before"||d.type=="remove"&&u=="same")break;c=l}o.splice(c,0,{type:"remove",name:s.name,position:a,length:1},{type:"reinsert",name:s.name,position:a,length:1})}}else o.push(r)}n.changes=o}}function Eu(i){return(e,t,n={})=>{const o=["insert"];for(const r of i.attributes)e.hasAttribute(r)&&o.push(`attribute:${r}`);return!!o.every(r=>t.test(e,r))&&(n.preflight||o.forEach(r=>t.consume(e,r)),!0)}}function Tu(i,e,t,n){for(const o of e)XA(i.root,o,t,n)||t.convertItem(o)}function XA(i,e,t,n){const{writer:o,mapper:r}=t;if(!n.reconversion)return!1;const s=r.toViewElement(e);return!(!s||s.root==i)&&!!t.canReuseView(s)&&(o.move(o.createRangeOn(s),r.toViewPosition(q._createBefore(e))),!0)}function eC(i,e,{preflight:t}={}){return t?e.test(i,"insert"):e.consume(i,"insert")}function Mu(i){const{schema:e,document:t}=i.model;for(const n of t.getRoots())if(n.isEmpty&&!e.checkChild(n,"$text")&&e.checkChild(n,"paragraph"))return i.insertElement("paragraph",n),!0;return!1}function Iu(i,e,t){const n=t.createContext(i);return!!t.checkChild(n,"paragraph")&&!!t.checkChild(n.push("paragraph"),e)}function Su(i,e){const t=e.createElement("paragraph");return e.insert(t,i),e.createPositionAt(t,0)}var tC=Object.defineProperty,nC=Object.defineProperties,iC=Object.getOwnPropertyDescriptors,Bu=Object.getOwnPropertySymbols,oC=Object.prototype.hasOwnProperty,rC=Object.prototype.propertyIsEnumerable,Nu=(i,e,t)=>e in i?tC(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;class sC extends _u{elementToElement(e){return this.add(Ou(e))}elementToAttribute(e){return this.add(function(t){t=Yt(t),Pu(t);const n=Lu(t,!1),o=Da(t.view),r=o?`element:${o}`:"element";return s=>{s.on(r,n,{priority:t.converterPriority||"low"})}}(e))}attributeToAttribute(e){return this.add(function(t){t=Yt(t);let n=null;(typeof t.view=="string"||t.view.key)&&(n=function(r){typeof r.view=="string"&&(r.view={key:r.view});const s=r.view.key,a=r.view.value===void 0?/[\s\S]*/:r.view.value;let c;return s=="class"||s=="style"?c={[s=="class"?"classes":"styles"]:a}:c={attributes:{[s]:a}},r.view.name&&(c.name=r.view.name),r.view=c,s}(t)),Pu(t,n);const o=Lu(t,!0);return r=>{r.on("element",o,{priority:t.converterPriority||"low"})}}(e))}elementToMarker(e){return this.add(function(t){const n=function(s){return(a,c)=>{const l=typeof s=="string"?s:s(a,c);return c.writer.createElement("$marker",{"data-name":l})}}(t.model);return Ou((o=((s,a)=>{for(var c in a||(a={}))oC.call(a,c)&&Nu(s,c,a[c]);if(Bu)for(var c of Bu(a))rC.call(a,c)&&Nu(s,c,a[c]);return s})({},t),r={model:n},nC(o,iC(r))));var o,r}(e))}dataToMarker(e){return this.add(function(t){t=Yt(t),t.model||(t.model=s=>s?t.view+":"+s:t.view);const n={view:t.view,model:t.model},o=Ea(zu(n,"start")),r=Ea(zu(n,"end"));return s=>{s.on(`element:${t.view}-start`,o,{priority:t.converterPriority||"normal"}),s.on(`element:${t.view}-end`,r,{priority:t.converterPriority||"normal"});const a=ee.low,c=ee.highest,l=ee.get(t.converterPriority)/c;s.on("element",function(d){return(u,h,m)=>{const k=`data-${d.view}`;function A(E,S){for(const O of S){const z=d.model(O,m),H=m.writer.createElement("$marker",{"data-name":z});m.writer.insert(H,E),h.modelCursor.isEqual(E)?h.modelCursor=h.modelCursor.getShiftedBy(1):h.modelCursor=h.modelCursor._getTransformedByInsertion(E,1),h.modelRange=h.modelRange._getTransformedByInsertion(E,1)[0]}}(m.consumable.test(h.viewItem,{attributes:k+"-end-after"})||m.consumable.test(h.viewItem,{attributes:k+"-start-after"})||m.consumable.test(h.viewItem,{attributes:k+"-end-before"})||m.consumable.test(h.viewItem,{attributes:k+"-start-before"}))&&(h.modelRange||Object.assign(h,m.convertChildren(h.viewItem,h.modelCursor)),m.consumable.consume(h.viewItem,{attributes:k+"-end-after"})&&A(h.modelRange.end,h.viewItem.getAttribute(k+"-end-after").split(",")),m.consumable.consume(h.viewItem,{attributes:k+"-start-after"})&&A(h.modelRange.end,h.viewItem.getAttribute(k+"-start-after").split(",")),m.consumable.consume(h.viewItem,{attributes:k+"-end-before"})&&A(h.modelRange.start,h.viewItem.getAttribute(k+"-end-before").split(",")),m.consumable.consume(h.viewItem,{attributes:k+"-start-before"})&&A(h.modelRange.start,h.viewItem.getAttribute(k+"-start-before").split(",")))}}(n),{priority:a+l})}}(e))}}function Ou(i){const e=Ea(i=Yt(i)),t=Da(i.view),n=t?`element:${t}`:"element";return o=>{o.on(n,e,{priority:i.converterPriority||"normal"})}}function Da(i){return typeof i=="string"?i:typeof i=="object"&&typeof i.name=="string"?i.name:null}function Ea(i){const e=new cn(i.view);return(t,n,o)=>{const r=e.match(n.viewItem);if(!r)return;const s=r.match;if(s.name=!0,!o.consumable.test(n.viewItem,s))return;const a=function(c,l,d){return c instanceof Function?c(l,d):d.writer.createElement(c)}(i.model,n.viewItem,o);a&&o.safeInsert(a,n.modelCursor)&&(o.consumable.consume(n.viewItem,s),o.convertChildren(n.viewItem,a),o.updateConversionResult(a,n))}}function Pu(i,e=null){const t=e===null||(r=>r.getAttribute(e)),n=typeof i.model!="object"?i.model:i.model.key,o=typeof i.model!="object"||i.model.value===void 0?t:i.model.value;i.model={key:n,value:o}}function Lu(i,e){const t=new cn(i.view);return(n,o,r)=>{if(!o.modelRange&&e)return;const s=t.match(o.viewItem);if(!s||(function(d,u){const h=typeof d=="function"?d(u):d;return typeof h=="object"&&!Da(h)?!1:!h.classes&&!h.attributes&&!h.styles}(i.view,o.viewItem)?s.match.name=!0:delete s.match.name,!r.consumable.test(o.viewItem,s.match)))return;const a=i.model.key,c=typeof i.model.value=="function"?i.model.value(o.viewItem,r):i.model.value;if(c===null)return;o.modelRange||Object.assign(o,r.convertChildren(o.viewItem,o.modelCursor)),function(d,u,h,m){let k=!1;for(const A of Array.from(d.getItems({shallow:h})))m.schema.checkAttribute(A,u.key)&&(k=!0,A.hasAttribute(u.key)||m.writer.setAttribute(u.key,u.value,A));return k}(o.modelRange,{key:a,value:c},e,r)&&(r.consumable.test(o.viewItem,{name:!0})&&(s.match.name=!0),r.consumable.consume(o.viewItem,s.match))}}function zu(i,e){return{view:`${i.view}-${e}`,model:(t,n)=>{const o=t.getAttribute("name"),r=i.model(o,n);return n.writer.createElement("$marker",{"data-name":r})}}}function aC(i){i.document.registerPostFixer(e=>function(t,n){const o=n.document.selection,r=n.schema,s=[];let a=!1;for(const c of o.getRanges()){const l=Ru(c,r);l&&!l.isEqual(c)?(s.push(l),a=!0):s.push(c)}return a&&t.setSelection(function(c){const l=[...c],d=new Set;let u=1;for(;u<l.length;){const h=l[u],m=l.slice(0,u);for(const[k,A]of m.entries())if(!d.has(k)){if(h.isEqual(A))d.add(k);else if(h.isIntersecting(A)){d.add(k),d.add(u);const E=h.getJoined(A);l.push(E)}}u++}return l.filter((h,m)=>!d.has(m))}(s),{backward:o.isBackward}),!1}(e,i))}function Ru(i,e){return i.isCollapsed?function(t,n){const o=t.start,r=n.getNearestSelectionRange(o);if(!r){const a=o.getAncestors().reverse().find(c=>n.isObject(c));return a?F._createOn(a):null}if(!r.isCollapsed)return r;const s=r.start;return o.isEqual(s)?null:new F(s)}(i,e):function(t,n){const{start:o,end:r}=t,s=n.checkChild(o,"$text"),a=n.checkChild(r,"$text"),c=n.getLimitElement(o),l=n.getLimitElement(r);if(c===l){if(s&&a)return null;if(function(h,m,k){const A=h.nodeAfter&&!k.isLimit(h.nodeAfter)||k.checkChild(h,"$text"),E=m.nodeBefore&&!k.isLimit(m.nodeBefore)||k.checkChild(m,"$text");return A||E}(o,r,n)){const h=o.nodeAfter&&n.isSelectable(o.nodeAfter)?null:n.getNearestSelectionRange(o,"forward"),m=r.nodeBefore&&n.isSelectable(r.nodeBefore)?null:n.getNearestSelectionRange(r,"backward"),k=h?h.start:o,A=m?m.end:r;return new F(k,A)}}const d=c&&!c.is("rootElement"),u=l&&!l.is("rootElement");if(d||u){const h=o.nodeAfter&&r.nodeBefore&&o.nodeAfter.parent===r.nodeBefore.parent,m=d&&(!h||!Fu(o.nodeAfter,n)),k=u&&(!h||!Fu(r.nodeBefore,n));let A=o,E=r;return m&&(A=q._createBefore(ju(c,n))),k&&(E=q._createAfter(ju(l,n))),new F(A,E)}return null}(i,e)}function ju(i,e){let t=i,n=t;for(;e.isLimit(n)&&n.parent;)t=n,n=n.parent;return t}function Fu(i,e){return i&&e.isSelectable(i)}class cC extends xe(){constructor(e,t){super(),this.model=e,this.view=new PA(t),this.mapper=new hu,this.downcastDispatcher=new fu({mapper:this.mapper,schema:e.schema});const n=this.model.document,o=n.selection,r=this.model.markers;var s,a,c;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(n,"change",()=>{this.view.change(l=>{this.downcastDispatcher.convertChanges(n.differ,r,l),this.downcastDispatcher.convertSelection(o,r,l)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(l,d){return(u,h)=>{const m=h.newSelection,k=[];for(const E of m.getRanges())k.push(d.toModelRange(E));const A=l.createSelection(k,{backward:m.isBackward});A.isEqual(l.document.selection)||l.change(E=>{E.setSelection(A)})}}(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",(s=this.mapper,a=this.model.schema,c=this.view,(l,d)=>{if(!c.document.isComposing||x.isAndroid)for(let u=0;u<d.targetRanges.length;u++){const h=d.targetRanges[u],m=s.toModelRange(h),k=Ru(m,a);k&&!k.isEqual(m)&&(d.targetRanges[u]=s.toViewRange(k))}}),{priority:"high"}),this.downcastDispatcher.on("insert:$text",(l,d,u)=>{if(!u.consumable.consume(d.item,l.name))return;const h=u.writer,m=u.mapper.toViewPosition(d.range.start),k=h.createText(d.item.data);h.insert(m,k)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(l,d,u)=>{u.convertAttributes(d.item),d.reconversion||!d.item.is("element")||d.item.isEmpty||u.convertChildren(d.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(l,d,u)=>{const h=u.mapper.toViewPosition(d.position),m=d.position.getShiftedBy(d.length),k=u.mapper.toViewPosition(m,{isPhantom:!0}),A=u.writer.createRange(h,k),E=u.writer.remove(A.getTrimmed());for(const S of u.writer.createRangeIn(E).getItems())u.mapper.unbindViewElement(S,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(l,d,u)=>{const h=u.writer,m=h.document.selection;for(const k of m.getRanges())k.isCollapsed&&k.end.parent.isAttached()&&u.writer.mergeAttributes(k.start);h.setSelection(null)}),this.downcastDispatcher.on("selection",(l,d,u)=>{const h=d.selection;if(h.isCollapsed||!u.consumable.consume(h,"selection"))return;const m=[];for(const k of h.getRanges())m.push(u.mapper.toViewRange(k));u.writer.setSelection(m,{backward:h.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(l,d,u)=>{const h=d.selection;if(!h.isCollapsed||!u.consumable.consume(h,"selection"))return;const m=u.writer,k=h.getFirstPosition(),A=u.mapper.toViewPosition(k),E=m.breakAttributes(A);m.setSelection(E)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(l=>{if(l.rootName=="$graveyard")return null;const d=new Pd(this.view.document,l.name);return d.rootName=l.rootName,this.mapper.bindElements(l,d),d})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(e){const t=typeof e=="string"?e:e.name,n=this.model.markers.get(t);if(!n)throw new B("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:t});this.model.change(()=>{this.model.markers._refresh(n)})}reconvertItem(e){this.model.change(()=>{this.model.document.differ._refreshItem(e)})}}class yo{constructor(){this._consumables=new Map}add(e,t){let n;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?n=this._consumables.get(e):(n=new lC(e),this._consumables.set(e,n)),n.add(t))}test(e,t){const n=this._consumables.get(e);return n===void 0?null:e.is("$text")||e.is("documentFragment")?n:n.test(t)}consume(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}revert(e,t){const n=this._consumables.get(e);n!==void 0&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):n.revert(t))}static consumablesFromElement(e){const t={element:e,name:!0,attributes:[],classes:[],styles:[]},n=e.getAttributeKeys();for(const s of n)s!="style"&&s!="class"&&t.attributes.push(s);const o=e.getClassNames();for(const s of o)t.classes.push(s);const r=e.getStyleNames();for(const s of r)t.styles.push(s);return t}static createFrom(e,t){if(t||(t=new yo),e.is("$text"))return t.add(e),t;e.is("element")&&t.add(e,yo.consumablesFromElement(e)),e.is("documentFragment")&&t.add(e);for(const n of e.getChildren())t=yo.createFrom(n,t);return t}}const Pr=["attributes","classes","styles"];class lC{constructor(e){this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(e){e.name&&(this._canConsumeName=!0);for(const t of Pr)t in e&&this._add(t,e[t])}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(const t of Pr)if(t in e){const n=this._test(t,e[t]);if(n!==!0)return n}return!0}consume(e){e.name&&(this._canConsumeName=!1);for(const t of Pr)t in e&&this._consume(t,e[t])}revert(e){e.name&&(this._canConsumeName=!0);for(const t of Pr)t in e&&this._revert(t,e[t])}_add(e,t){const n=Oe(t),o=this._consumables[e];for(const r of n){if(e==="attributes"&&(r==="class"||r==="style"))throw new B("viewconsumable-invalid-attribute",this);if(o.set(r,!0),e==="styles")for(const s of this.element.document.stylesProcessor.getRelatedStyles(r))o.set(s,!0)}}_test(e,t){const n=Oe(t),o=this._consumables[e];for(const r of n)if(e!=="attributes"||r!=="class"&&r!=="style"){const s=o.get(r);if(s===void 0)return null;if(!s)return!1}else{const s=r=="class"?"classes":"styles",a=this._test(s,[...this._consumables[s].keys()]);if(a!==!0)return a}return!0}_consume(e,t){const n=Oe(t),o=this._consumables[e];for(const r of n)if(e!=="attributes"||r!=="class"&&r!=="style"){if(o.set(r,!1),e=="styles")for(const s of this.element.document.stylesProcessor.getRelatedStyles(r))o.set(s,!1)}else{const s=r=="class"?"classes":"styles";this._consume(s,[...this._consumables[s].keys()])}}_revert(e,t){const n=Oe(t),o=this._consumables[e];for(const r of n)if(e!=="attributes"||r!=="class"&&r!=="style")o.get(r)===!1&&o.set(r,!0);else{const s=r=="class"?"classes":"styles";this._revert(s,[...this._consumables[s].keys()])}}}class dC extends xe(){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(e,t)=>{t[0]=new Jn(t[0])},{priority:"highest"}),this.on("checkChild",(e,t)=>{t[0]=new Jn(t[0]),t[1]=this.getDefinition(t[1])},{priority:"highest"})}register(e,t){if(this._sourceDefinitions[e])throw new B("schema-cannot-register-item-twice",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}extend(e,t){if(!this._sourceDefinitions[e])throw new B("schema-cannot-extend-missing-item",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(e){let t;return t=typeof e=="string"?e:"is"in e&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}isRegistered(e){return!!this.getDefinition(e)}isBlock(e){const t=this.getDefinition(e);return!(!t||!t.isBlock)}isLimit(e){const t=this.getDefinition(e);return!!t&&!(!t.isLimit&&!t.isObject)}isObject(e){const t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}isInline(e){const t=this.getDefinition(e);return!(!t||!t.isInline)}isSelectable(e){const t=this.getDefinition(e);return!!t&&!(!t.isSelectable&&!t.isObject)}isContent(e){const t=this.getDefinition(e);return!!t&&!(!t.isContent&&!t.isObject)}checkChild(e,t){return!!t&&this._checkContextMatch(t,e)}checkAttribute(e,t){const n=this.getDefinition(e.last);return!!n&&n.allowAttributes.includes(t)}checkMerge(e,t){if(e instanceof q){const n=e.nodeBefore,o=e.nodeAfter;if(!(n instanceof Te))throw new B("schema-check-merge-no-element-before",this);if(!(o instanceof Te))throw new B("schema-check-merge-no-element-after",this);return this.checkMerge(n,o)}for(const n of t.getChildren())if(!this.checkChild(e,n))return!1;return!0}addChildCheck(e){this.on("checkChild",(t,[n,o])=>{if(!o)return;const r=e(n,o);typeof r=="boolean"&&(t.stop(),t.return=r)},{priority:"high"})}addAttributeCheck(e){this.on("checkAttribute",(t,[n,o])=>{const r=e(n,o);typeof r=="boolean"&&(t.stop(),t.return=r)},{priority:"high"})}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||{}}getLimitElement(e){let t;for(e instanceof q?t=e.parent:t=(e instanceof F?[e]:Array.from(e.getRanges())).reduce((n,o)=>{const r=o.getCommonAncestor();return n?n.getCommonAncestor(r,{includeSelf:!0}):r},null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){const n=[...e.getFirstPosition().getAncestors(),new Be("",e.getAttributes())];return this.checkAttribute(n,t)}{const n=e.getRanges();for(const o of n)for(const r of o)if(this.checkAttribute(r.item,t))return!0}return!1}*getValidRanges(e,t){e=function*(n){for(const o of n)yield*o.getMinimalFlatRanges()}(e);for(const n of e)yield*this._getValidRangesForRange(n,t)}getNearestSelectionRange(e,t="both"){if(e.root.rootName=="$graveyard")return null;if(this.checkChild(e,"$text"))return new F(e);let n,o;const r=e.getAncestors().reverse().find(s=>this.isLimit(s))||e.root;t!="both"&&t!="backward"||(n=new gn({boundaries:F._createIn(r),startPosition:e,direction:"backward"})),t!="both"&&t!="forward"||(o=new gn({boundaries:F._createIn(r),startPosition:e}));for(const s of function*(a,c){let l=!1;for(;!l;){if(l=!0,a){const d=a.next();d.done||(l=!1,yield{walker:a,value:d.value})}if(c){const d=c.next();d.done||(l=!1,yield{walker:c,value:d.value})}}}(n,o)){const a=s.walker==n?"elementEnd":"elementStart",c=s.value;if(c.type==a&&this.isObject(c.item))return F._createOn(c.item);if(this.checkChild(c.nextPosition,"$text"))return new F(c.nextPosition)}return null}findAllowedParent(e,t){let n=e.parent;for(;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}setAllowedAttributes(e,t,n){const o=n.model;for(const[r,s]of Object.entries(t))o.schema.checkAttribute(e,r)&&n.setAttribute(r,s,e)}removeDisallowedAttributes(e,t){for(const n of e)if(n.is("$text"))Vu(this,n,t);else{const o=F._createIn(n).getPositions();for(const r of o)Vu(this,r.nodeBefore||r.parent,t)}}getAttributesWithProperty(e,t,n){const o={};for(const[r,s]of e.getAttributes()){const a=this.getAttributeProperties(r);a[t]!==void 0&&(n!==void 0&&n!==a[t]||(o[r]=s))}return o}createContext(e){return new Jn(e)}_clearCache(){this._compiledDefinitions=null}_compile(){const e={},t=this._sourceDefinitions,n=Object.keys(t);for(const o of n)e[o]=uC(t[o],o);for(const o of n)hC(e,o);for(const o of n)gC(e,o);for(const o of n)mC(e,o);for(const o of n)pC(e,o),fC(e,o);for(const o of n)kC(e,o),bC(e,o),wC(e,o);this._compiledDefinitions=e}_checkContextMatch(e,t,n=t.length-1){const o=t.getItem(n);if(e.allowIn.includes(o.name)){if(n==0)return!0;{const r=this.getDefinition(o);return this._checkContextMatch(r,t,n-1)}}return!1}*_getValidRangesForRange(e,t){let n=e.start,o=e.start;for(const r of e.getItems({shallow:!0}))r.is("element")&&(yield*this._getValidRangesForRange(F._createIn(r),t)),this.checkAttribute(r,t)||(n.isEqual(o)||(yield new F(n,o)),n=q._createAfter(r)),o=q._createAfter(r);n.isEqual(o)||(yield new F(n,o))}findOptimalInsertionRange(e,t){const n=e.getSelectedElement();if(n&&this.isObject(n)&&!this.isInline(n))return t=="before"||t=="after"?new F(q._createAt(n,t)):F._createOn(n);const o=at(e.getSelectedBlocks());if(!o)return new F(e.focus);if(o.isEmpty)return new F(q._createAt(o,0));const r=q._createAfter(o);return e.focus.isTouching(r)?new F(r):new F(q._createBefore(o))}}class Jn{constructor(e){if(e instanceof Jn)return e;let t;t=typeof e=="string"?[e]:Array.isArray(e)?e:e.getAncestors({includeSelf:!0}),this._items=t.map(AC)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(e){const t=new Jn([e]);return t._items=[...this._items,...t._items],t}getItem(e){return this._items[e]}*getNames(){yield*this._items.map(e=>e.name)}endsWith(e){return Array.from(this.getNames()).join(" ").endsWith(e)}startsWith(e){return Array.from(this.getNames()).join(" ").startsWith(e)}}function uC(i,e){const t={name:e,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(n,o){for(const r of n){const s=Object.keys(r).filter(a=>a.startsWith("is"));for(const a of s)o[a]=!!r[a]}}(i,t),Xn(i,t,"allowIn"),Xn(i,t,"allowContentOf"),Xn(i,t,"allowWhere"),Xn(i,t,"allowAttributes"),Xn(i,t,"allowAttributesOf"),Xn(i,t,"allowChildren"),Xn(i,t,"inheritTypesFrom"),function(n,o){for(const r of n){const s=r.inheritAllFrom;s&&(o.allowContentOf.push(s),o.allowWhere.push(s),o.allowAttributesOf.push(s),o.inheritTypesFrom.push(s))}}(i,t),t}function hC(i,e){const t=i[e];for(const n of t.allowChildren){const o=i[n];o&&o.allowIn.push(e)}t.allowChildren.length=0}function gC(i,e){for(const t of i[e].allowContentOf)i[t]&&_C(i,t).forEach(n=>{n.allowIn.push(e)});delete i[e].allowContentOf}function mC(i,e){for(const t of i[e].allowWhere){const n=i[t];if(n){const o=n.allowIn;i[e].allowIn.push(...o)}}delete i[e].allowWhere}function pC(i,e){for(const t of i[e].allowAttributesOf){const n=i[t];if(n){const o=n.allowAttributes;i[e].allowAttributes.push(...o)}}delete i[e].allowAttributesOf}function fC(i,e){const t=i[e];for(const n of t.inheritTypesFrom){const o=i[n];if(o){const r=Object.keys(o).filter(s=>s.startsWith("is"));for(const s of r)s in t||(t[s]=o[s])}}delete t.inheritTypesFrom}function kC(i,e){const t=i[e],n=t.allowIn.filter(o=>i[o]);t.allowIn=Array.from(new Set(n))}function bC(i,e){const t=i[e];for(const n of t.allowIn)i[n].allowChildren.push(e)}function wC(i,e){const t=i[e];t.allowAttributes=Array.from(new Set(t.allowAttributes))}function Xn(i,e,t){for(const n of i){const o=n[t];typeof o=="string"?e[t].push(o):Array.isArray(o)&&e[t].push(...o)}}function _C(i,e){const t=i[e];return(n=i,Object.keys(n).map(o=>n[o])).filter(o=>o.allowIn.includes(t.name));var n}function AC(i){return typeof i=="string"||i.is("documentFragment")?{name:typeof i=="string"?i:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:i.is("element")?i.name:"$text",*getAttributeKeys(){yield*i.getAttributeKeys()},getAttribute:e=>i.getAttribute(e)}}function Vu(i,e,t){for(const n of e.getAttributeKeys())i.checkAttribute(e,n)||t.removeAttribute(n,e)}var CC=Object.defineProperty,vC=Object.defineProperties,yC=Object.getOwnPropertyDescriptors,Hu=Object.getOwnPropertySymbols,xC=Object.prototype.hasOwnProperty,DC=Object.prototype.propertyIsEnumerable,Uu=(i,e,t)=>e in i?CC(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;class EC extends ye(){constructor(e){var t;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(t=((n,o)=>{for(var r in o||(o={}))xC.call(o,r)&&Uu(n,r,o[r]);if(Hu)for(var r of Hu(o))DC.call(o,r)&&Uu(n,r,o[r]);return n})({},e),vC(t,yC({consumable:null,writer:null,store:null,convertItem:(n,o)=>this._convertItem(n,o),convertChildren:(n,o)=>this._convertChildren(n,o),safeInsert:(n,o)=>this._safeInsert(n,o),updateConversionResult:(n,o)=>this._updateConversionResult(n,o),splitToAllowedParent:(n,o)=>this._splitToAllowedParent(n,o),getSplitParts:n=>this._getSplitParts(n),keepEmptyElement:n=>this._keepEmptyElement(n)})))}convert(e,t,n=["$root"]){this.fire("viewCleanup",e),this._modelCursor=function(s,a){let c;for(const l of new Jn(s)){const d={};for(const h of l.getAttributeKeys())d[h]=l.getAttribute(h);const u=a.createElement(l.name,d);c&&a.insert(u,c),c=q._createAt(u,0)}return c}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=yo.createFrom(e),this.conversionApi.store={};const{modelRange:o}=this._convertItem(e,this._modelCursor),r=t.createDocumentFragment();if(o){this._removeEmptyElements();for(const s of Array.from(this._modelCursor.parent.getChildren()))t.append(s,r);r.markers=function(s,a){const c=new Set,l=new Map,d=F._createIn(s).getItems();for(const u of d)u.is("element","$marker")&&c.add(u);for(const u of c){const h=u.getAttribute("data-name"),m=a.createPositionBefore(u);l.has(h)?l.get(h).end=m.clone():l.set(h,new F(m.clone())),a.remove(u)}return l}(r,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,r}_convertItem(e,t){const n={viewItem:e,modelCursor:t,modelRange:null};if(e.is("element")?this.fire(`element:${e.name}`,n,this.conversionApi):e.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof F))throw new B("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(e,t){let n=t.is("position")?t:q._createAt(t,0);const o=new F(n);for(const r of Array.from(e.getChildren())){const s=this._convertItem(r,n);s.modelRange instanceof F&&(o.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:o,modelCursor:n}}_safeInsert(e,t){const n=this._splitToAllowedParent(e,t);return!!n&&(this.conversionApi.writer.insert(e,n.position),!0)}_updateConversionResult(e,t){const n=this._getSplitParts(e),o=this.conversionApi.writer;t.modelRange||(t.modelRange=o.createRange(o.createPositionBefore(e),o.createPositionAfter(n[n.length-1])));const r=this._cursorParents.get(e);t.modelCursor=r?o.createPositionAt(r,0):t.modelRange.end}_splitToAllowedParent(e,t){const{schema:n,writer:o}=this.conversionApi;let r=n.findAllowedParent(t,e);if(r){if(r===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(r)&&(r=null)}if(!r)return Iu(t,e,n)?{position:Su(t,o)}:null;const s=this.conversionApi.writer.split(t,r),a=[];for(const l of s.range.getWalker())if(l.type=="elementEnd")a.push(l.item);else{const d=a.pop(),u=l.item;this._registerSplitPair(d,u)}const c=s.range.end.parent;return this._cursorParents.set(e,c),{position:s.position,cursorParent:c}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);const n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}_getSplitParts(e){let t;return t=this._splitParts.has(e)?this._splitParts.get(e):[e],t}_keepEmptyElement(e){this._emptyElementsToKeep.add(e)}_removeEmptyElements(){let e=!1;for(const t of this._splitParts.keys())t.isEmpty&&!this._emptyElementsToKeep.has(t)&&(this.conversionApi.writer.remove(t),this._splitParts.delete(t),e=!0);e&&this._removeEmptyElements()}}class TC{getHtml(e){const t=w.document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}class MC{constructor(e){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new Tr(e,{renderingMode:"data"}),this.htmlWriter=new TC}toData(e){const t=this.domConverter.viewToDom(e);return this.htmlWriter.getHtml(t)}toView(e){const t=this._toDom(e);return this.domConverter.domToView(t,{skipComments:this.skipComments})}registerRawContentMatcher(e){this.domConverter.registerRawContentMatcher(e)}useFillerType(e){this.domConverter.blockFillerMode=e=="marked"?"markedNbsp":"nbsp"}_toDom(e){e.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(e=`<body>${e}</body>`);const t=this.domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment(),o=t.body.childNodes;for(;o.length>0;)n.appendChild(o[0]);return n}}class IC extends ye(){constructor(e,t){super(),this.model=e,this.mapper=new hu,this.downcastDispatcher=new fu({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",(n,o,r)=>{if(!r.consumable.consume(o.item,n.name))return;const s=r.writer,a=r.mapper.toViewPosition(o.range.start),c=s.createText(o.item.data);s.insert(a,c)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(n,o,r)=>{r.convertAttributes(o.item),o.reconversion||!o.item.is("element")||o.item.isEmpty||r.convertChildren(o.item)},{priority:"lowest"}),this.upcastDispatcher=new EC({schema:e.schema}),this.viewDocument=new xr(t),this.stylesProcessor=t,this.htmlProcessor=new MC(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new zd(this.viewDocument),this.upcastDispatcher.on("text",(n,o,{schema:r,consumable:s,writer:a})=>{let c=o.modelCursor;if(!s.test(o.viewItem))return;if(!r.checkChild(c,"$text")){if(!Iu(c,"$text",r)||o.viewItem.data.trim().length==0)return;const d=c.nodeBefore;c=Su(c,a),d&&d.is("element","$marker")&&(a.move(a.createRangeOn(d),c),c=a.createPositionAfter(d))}s.consume(o.viewItem);const l=a.createText(o.viewItem.data);a.insert(l,c),o.modelRange=a.createRange(c,c.getShiftedBy(l.offsetSize)),o.modelCursor=o.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(n,o,r)=>{if(!o.modelRange&&r.consumable.consume(o.viewItem,{name:!0})){const{modelRange:s,modelCursor:a}=r.convertChildren(o.viewItem,o.modelCursor);o.modelRange=s,o.modelCursor=a}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(n,o,r)=>{if(!o.modelRange&&r.consumable.consume(o.viewItem,{name:!0})){const{modelRange:s,modelCursor:a}=r.convertChildren(o.viewItem,o.modelCursor);o.modelRange=s,o.modelCursor=a}},{priority:"lowest"}),xe().prototype.decorate.call(this,"init"),xe().prototype.decorate.call(this,"set"),xe().prototype.decorate.call(this,"get"),xe().prototype.decorate.call(this,"toView"),xe().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},Mu)},{priority:"lowest"})}get(e={}){const{rootName:t="main",trim:n="empty"}=e;if(!this._checkIfRootsExists([t]))throw new B("datacontroller-get-non-existent-root",this);const o=this.model.document.getRoot(t);return o.isAttached()||X("datacontroller-get-detached-root",this),n!=="empty"||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,e):""}stringify(e,t={}){const n=this.toView(e,t);return this.processor.toData(n)}toView(e,t={}){const n=this.viewDocument,o=this._viewWriter;this.mapper.clearBindings();const r=F._createIn(e),s=new Yn(n);this.mapper.bindElements(e,s);const a=e.is("documentFragment")?e.markers:function(c){const l=[],d=c.root.document;if(!d)return new Map;const u=F._createIn(c);for(const h of d.model.markers){const m=h.getRange(),k=m.isCollapsed,A=m.start.isEqual(u.start)||m.end.isEqual(u.end);if(k&&A)l.push([h.name,m]);else{const E=u.getIntersection(m);E&&l.push([h.name,E])}}return l.sort(([h,m],[k,A])=>{if(m.end.compareWith(A.start)!=="after")return 1;if(m.start.compareWith(A.end)!=="before")return-1;switch(m.start.compareWith(A.start)){case"before":return 1;case"after":return-1;default:switch(m.end.compareWith(A.end)){case"before":return 1;case"after":return-1;default:return k.localeCompare(h)}}}),new Map(l)}(e);return this.downcastDispatcher.convert(r,a,o,t),s}init(e){if(this.model.document.version)throw new B("datacontroller-init-document-not-empty",this);let t={};if(typeof e=="string"?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new B("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},n=>{for(const o of Object.keys(t)){const r=this.model.document.getRoot(o);n.insert(this.parse(t[o],r),r,0)}}),Promise.resolve()}set(e,t={}){let n={};if(typeof e=="string"?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new B("datacontroller-set-non-existent-root",this);this.model.enqueueChange(t.batchType||{},o=>{o.setSelection(null),o.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const r of Object.keys(n)){const s=this.model.document.getRoot(r);o.remove(o.createRangeIn(s)),o.insert(this.parse(n[r],s),s,0)}})}parse(e,t="$root"){const n=this.processor.toView(e);return this.toModel(n,t)}toModel(e,t="$root"){return this.model.change(n=>this.upcastDispatcher.convert(e,n,t))}addStyleProcessorRules(e){e(this.stylesProcessor)}registerRawContentMatcher(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(const t of e)if(!this.model.document.getRoot(t))return!1;return!0}}class SC{constructor(e,t){this._helpers=new Map,this._downcast=Oe(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Oe(t),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){const n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new B("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}for(e){if(!this._helpers.has(e))throw new B("conversion-for-unknown-group",this);return this._helpers.get(e)}elementToElement(e){this.for("downcast").elementToElement(e);for(const{model:t,view:n}of Ta(e))this.for("upcast").elementToElement({model:t,view:n,converterPriority:e.converterPriority})}attributeToElement(e){this.for("downcast").attributeToElement(e);for(const{model:t,view:n}of Ta(e))this.for("upcast").elementToAttribute({view:n,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){this.for("downcast").attributeToAttribute(e);for(const{model:t,view:n}of Ta(e))this.for("upcast").attributeToAttribute({view:n,model:t})}_createConversionHelpers({name:e,dispatchers:t,isDowncast:n}){if(this._helpers.has(e))throw new B("conversion-group-exists",this);const o=n?new YA(t):new sC(t);this._helpers.set(e,o)}}function*Ta(i){if(i.model.values)for(const e of i.model.values){const t={key:i.model.key,value:e},n=i.view[e],o=i.upcastAlso?i.upcastAlso[e]:void 0;yield*Wu(t,n,o)}else yield*Wu(i.model,i.view,i.upcastAlso)}function*Wu(i,e,t){if(yield{model:i,view:e},t)for(const n of Oe(t))yield{model:i,view:n}}class Mt{constructor(e){this.baseVersion=e,this.isDocumentOperation=this.baseVersion!==null,this.batch=null}_validate(){}toJSON(){const e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}static get className(){return"Operation"}static fromJSON(e,t){return new this(e.baseVersion)}}function Ma(i,e){const t=Gu(e),n=t.reduce((s,a)=>s+a.offsetSize,0),o=i.parent;Eo(i);const r=i.index;return o._insertChild(r,t),Do(o,r+t.length),Do(o,r),new F(i,i.getShiftedBy(n))}function qu(i){if(!i.isFlat)throw new B("operation-utils-remove-range-not-flat",this);const e=i.start.parent;Eo(i.start),Eo(i.end);const t=e._removeChildren(i.start.index,i.end.index-i.start.index);return Do(e,i.start.index),t}function xo(i,e){if(!i.isFlat)throw new B("operation-utils-move-range-not-flat",this);const t=qu(i);return Ma(e=e._getTransformedByDeletion(i.start,i.end.offset-i.start.offset),t)}function Gu(i){const e=[];(function t(n){if(typeof n=="string")e.push(new Be(n));else if(n instanceof Qt)e.push(new Be(n.data,n.getAttributes()));else if(n instanceof Qn)e.push(n);else if(Ee(n))for(const o of n)t(o)})(i);for(let t=1;t<e.length;t++){const n=e[t],o=e[t-1];n instanceof Be&&o instanceof Be&&$u(n,o)&&(e.splice(t-1,2,new Be(o.data+n.data,o.getAttributes())),t--)}return e}function Do(i,e){const t=i.getChild(e-1),n=i.getChild(e);if(t&&n&&t.is("$text")&&n.is("$text")&&$u(t,n)){const o=new Be(t.data+n.data,t.getAttributes());i._removeChildren(e-1,2),i._insertChild(e-1,o)}}function Eo(i){const e=i.textNode,t=i.parent;if(e){const n=i.offset-e.startOffset,o=e.index;t._removeChildren(o,1);const r=new Be(e.data.substr(0,n),e.getAttributes()),s=new Be(e.data.substr(n),e.getAttributes());t._insertChild(o,[r,s])}}function $u(i,e){const t=i.getAttributes(),n=e.getAttributes();for(const o of t){if(o[1]!==e.getAttribute(o[0]))return!1;n.next()}return n.next().done}class _e extends Mt{constructor(e,t,n,o){super(o),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toNext",this.howMany=t,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return this.targetPosition.root.rootName=="$graveyard"?"remove":this.sourcePosition.root.rootName=="$graveyard"?"reinsert":"move"}get affectedSelectable(){return[F._createFromPositionAndShift(this.sourcePosition,this.howMany),F._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new _e(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new _e(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,o=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new B("move-operation-nodes-do-not-exist",this);if(e===t&&n<o&&o<n+this.howMany)throw new B("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&ot(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())=="prefix"){const r=this.sourcePosition.path.length-1;if(this.targetPosition.path[r]>=n&&this.targetPosition.path[r]<n+this.howMany)throw new B("move-operation-node-into-itself",this)}}_execute(){xo(F._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}static get className(){return"MoveOperation"}static fromJSON(e,t){const n=q.fromJSON(e.sourcePosition,t),o=q.fromJSON(e.targetPosition,t);return new this(n,e.howMany,o,e.baseVersion)}}class lt extends Mt{constructor(e,t,n){super(n),this.position=e.clone(),this.position.stickiness="toNone",this.nodes=new _o(Gu(t)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const e=new _o([...this.nodes].map(n=>n._clone(!0))),t=new lt(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){const e=this.position.root.document.graveyard,t=new q(e,[0]);return new _e(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}_validate(){const e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new B("insert-operation-position-invalid",this)}_execute(){const e=this.nodes;this.nodes=new _o([...e].map(t=>t._clone(!0))),Ma(this.position,e)}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return"InsertOperation"}static fromJSON(e,t){const n=[];for(const r of e.nodes)r.name?n.push(Te.fromJSON(r)):n.push(Be.fromJSON(r));const o=new lt(q.fromJSON(e.position,t),n,e.baseVersion);return o.shouldReceiveAttributes=e.shouldReceiveAttributes,o}}class Ne extends Mt{constructor(e,t,n,o,r){super(r),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=n,this.graveyardPosition=o?o.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const e=this.insertionPosition.path.slice();return e.push(0),new q(this.insertionPosition.root,e)}get movedRange(){const e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new F(this.splitPosition,e)}get affectedSelectable(){const e=[F._createFromPositionAndShift(this.splitPosition,0),F._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&e.push(F._createFromPositionAndShift(this.graveyardPosition,0)),e}clone(){return new Ne(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.splitPosition.root.document.graveyard,t=new q(e,[0]);return new Ke(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}_validate(){const e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset<t)throw new B("split-operation-position-invalid",this);if(!e.parent)throw new B("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new B("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new B("split-operation-graveyard-position-invalid",this)}_execute(){const e=this.splitPosition.parent;if(this.graveyardPosition)xo(F._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const t=e._clone();Ma(this.insertionPosition,t)}xo(new F(q._createAt(e,this.splitPosition.offset),q._createAt(e,e.maxOffset)),this.moveTargetPosition)}toJSON(){const e=super.toJSON();return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}static get className(){return"SplitOperation"}static getInsertionPosition(e){const t=e.path.slice(0,-1);return t[t.length-1]++,new q(e.root,t,"toPrevious")}static fromJSON(e,t){const n=q.fromJSON(e.splitPosition,t),o=q.fromJSON(e.insertionPosition,t),r=e.graveyardPosition?q.fromJSON(e.graveyardPosition,t):null;return new this(n,e.howMany,o,r,e.baseVersion)}}class Ke extends Mt{constructor(e,t,n,o,r){super(r),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=t,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=o.clone()}get type(){return"merge"}get deletionPosition(){return new q(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new F(this.sourcePosition,e)}get affectedSelectable(){const e=this.sourcePosition.parent;return[F._createOn(e),F._createFromPositionAndShift(this.targetPosition,0),F._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new Ke(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),n=new q(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);return new Ne(e,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new B("merge-operation-source-position-invalid",this);if(!t.parent)throw new B("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new B("merge-operation-how-many-invalid",this)}_execute(){const e=this.sourcePosition.parent;xo(F._createIn(e),this.targetPosition),xo(F._createOn(e),this.graveyardPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}static get className(){return"MergeOperation"}static fromJSON(e,t){const n=q.fromJSON(e.sourcePosition,t),o=q.fromJSON(e.targetPosition,t),r=q.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,o,r,e.baseVersion)}}class kt extends Mt{constructor(e,t,n,o,r,s){super(s),this.name=e,this.oldRange=t?t.clone():null,this.newRange=n?n.clone():null,this.affectsData=r,this._markers=o}get type(){return"marker"}get affectedSelectable(){const e=[];return this.oldRange&&e.push(this.oldRange.clone()),this.newRange&&(this.oldRange?e.push(...this.newRange.getDifference(this.oldRange)):e.push(this.newRange.clone())),e}clone(){return new kt(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new kt(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name)}toJSON(){const e=super.toJSON();return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}static get className(){return"MarkerOperation"}static fromJSON(e,t){return new kt(e.name,e.oldRange?F.fromJSON(e.oldRange,t):null,e.newRange?F.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}const Ku=function(i,e){return Sr(i,e)};class Xe extends Mt{constructor(e,t,n,o,r){super(r),this.range=e.clone(),this.key=t,this.oldValue=n===void 0?null:n,this.newValue=o===void 0?null:o}get type(){return this.oldValue===null?"addAttribute":this.newValue===null?"removeAttribute":"changeAttribute"}get affectedSelectable(){return this.range.clone()}clone(){return new Xe(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Xe(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const e=super.toJSON();return e.range=this.range.toJSON(),e}_validate(){if(!this.range.isFlat)throw new B("attribute-operation-range-not-flat",this);for(const e of this.range.getItems({shallow:!0})){if(this.oldValue!==null&&!Ku(e.getAttribute(this.key),this.oldValue))throw new B("attribute-operation-wrong-old-value",this,{item:e,key:this.key,value:this.oldValue});if(this.oldValue===null&&this.newValue!==null&&e.hasAttribute(this.key))throw new B("attribute-operation-attribute-exists",this,{node:e,key:this.key})}}_execute(){Ku(this.oldValue,this.newValue)||function(e,t,n){Eo(e.start),Eo(e.end);for(const o of e.getItems({shallow:!0})){const r=o.is("$textProxy")?o.textNode:o;n!==null?r._setAttribute(t,n):r._removeAttribute(t),Do(r.parent,r.index)}Do(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(e,t){return new Xe(F.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}}class tt extends Mt{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new tt(this.baseVersion)}getReversed(){return new tt(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class bt extends Mt{constructor(e,t,n,o){super(o),this.position=e,this.position.stickiness="toNext",this.oldName=t,this.newName=n}get type(){return"rename"}get affectedSelectable(){return this.position.nodeAfter}clone(){return new bt(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new bt(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const e=this.position.nodeAfter;if(!(e instanceof Te))throw new B("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new B("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e}static get className(){return"RenameOperation"}static fromJSON(e,t){return new bt(q.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class mn extends Mt{constructor(e,t,n,o,r){super(r),this.root=e,this.key=t,this.oldValue=n===void 0?null:n,this.newValue=o===void 0?null:o}get type(){return this.oldValue===null?"addRootAttribute":this.newValue===null?"removeRootAttribute":"changeRootAttribute"}get affectedSelectable(){return this.root}clone(){return new mn(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new mn(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new B("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(this.oldValue!==null&&this.root.getAttribute(this.key)!==this.oldValue)throw new B("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(this.oldValue===null&&this.newValue!==null&&this.root.hasAttribute(this.key))throw new B("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){this.newValue!==null?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const e=super.toJSON();return e.root=this.root.toJSON(),e}static get className(){return"RootAttributeOperation"}static fromJSON(e,t){if(!t.getRoot(e.root))throw new B("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new mn(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class dn extends Mt{constructor(e,t,n,o,r){super(r),this.rootName=e,this.elementName=t,this.isAdd=n,this._document=o,!this._document.getRoot(this.rootName)&&(this._document.createRoot(this.elementName,this.rootName)._isAttached=!1)}get type(){return this.isAdd?"addRoot":"detachRoot"}get affectedSelectable(){return this._document.getRoot(this.rootName)}clone(){return new dn(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new dn(this.rootName,this.elementName,!this.isAdd,this._document,this.baseVersion+1)}_execute(){this._document.getRoot(this.rootName)._isAttached=this.isAdd}toJSON(){const e=super.toJSON();return delete e._document,e}static get className(){return"RootOperation"}static fromJSON(e,t){return new dn(e.rootName,e.elementName,e.isAdd,t,e.baseVersion)}}const Rt={};Rt[Xe.className]=Xe,Rt[lt.className]=lt,Rt[kt.className]=kt,Rt[_e.className]=_e,Rt[tt.className]=tt,Rt[Mt.className]=Mt,Rt[bt.className]=bt,Rt[mn.className]=mn,Rt[dn.className]=dn,Rt[Ne.className]=Ne,Rt[Ke.className]=Ke;class BC{static fromJSON(e,t){return Rt[e.__className].fromJSON(e,t)}}const Ia=new Map;function be(i,e,t){let n=Ia.get(i);n||(n=new Map,Ia.set(i,n)),n.set(e,t)}function NC(i){return[i]}function Yu(i,e,t={}){const n=function(o,r){const s=Ia.get(o);return s&&s.has(r)?s.get(r):NC}(i.constructor,e.constructor);try{return n(i=i.clone(),e,t)}catch(o){throw o}}function OC(i,e,t){i=i.slice(),e=e.slice();const n=new PC(t.document,t.useRelations,t.forceWeakRemove);n.setOriginalOperations(i),n.setOriginalOperations(e);const o=n.originalOperations;if(i.length==0||e.length==0)return{operationsA:i,operationsB:e,originalOperations:o};const r=new WeakMap;for(const c of i)r.set(c,0);const s={nextBaseVersionA:i[i.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:i.length,originalOperationsBCount:e.length};let a=0;for(;a<i.length;){const c=i[a],l=r.get(c);if(l==e.length){a++;continue}const d=e[l],u=Yu(c,d,n.getContext(c,d,!0)),h=Yu(d,c,n.getContext(d,c,!1));n.updateRelation(c,d),n.setOriginalOperations(u,c),n.setOriginalOperations(h,d);for(const m of u)r.set(m,l+h.length);i.splice(a,1,...u),e.splice(l,1,...h)}if(t.padWithNoOps){const c=i.length-s.originalOperationsACount,l=e.length-s.originalOperationsBCount;Zu(i,l-c),Zu(e,c-l)}return Qu(i,s.nextBaseVersionB),Qu(e,s.nextBaseVersionA),{operationsA:i,operationsB:e,originalOperations:o}}class PC{constructor(e,t,n=!1){this.originalOperations=new Map,this._history=e.history,this._useRelations=t,this._forceWeakRemove=!!n,this._relations=new Map}setOriginalOperations(e,t=null){const n=t?this.originalOperations.get(t):null;for(const o of e)this.originalOperations.set(o,n||o)}updateRelation(e,t){if(e instanceof _e)t instanceof Ke?e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter"):t instanceof _e&&(e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter"));else if(e instanceof Ne){if(t instanceof Ke)e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");else if(t instanceof _e)if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{const n=F._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.splitPosition)){const o=n.end.offset-e.splitPosition.offset,r=e.splitPosition.offset-n.start.offset;this._setRelation(e,t,{howMany:o,offset:r})}}}else if(e instanceof Ke)t instanceof Ke?(e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement")):t instanceof Ne?e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource"):t instanceof _e&&t.howMany>0&&(e.sourcePosition.isEqual(t.sourcePosition.getShiftedBy(t.howMany))&&this._setRelation(e,t,"mergeSourceAffected"),e.targetPosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeTargetWasBefore"));else if(e instanceof kt){const n=e.newRange;if(!n)return;if(t instanceof _e){const o=F._createFromPositionAndShift(t.sourcePosition,t.howMany),r=o.containsPosition(n.start)||o.start.isEqual(n.start),s=o.containsPosition(n.end)||o.end.isEqual(n.end);!r&&!s||o.containsRange(n)||this._setRelation(e,t,{side:r?"left":"right",path:r?n.start.path.slice():n.end.path.slice()})}else if(t instanceof Ke){const o=n.start.isEqual(t.targetPosition),r=n.start.isEqual(t.deletionPosition),s=n.end.isEqual(t.deletionPosition),a=n.end.isEqual(t.sourcePosition);(o||r||s||a)&&this._setRelation(e,t,{wasInLeftElement:o,wasStartBeforeMergedElement:r,wasEndBeforeMergedElement:s,wasInRightElement:a})}}}getContext(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(e){const t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}_getRelation(e,t){const n=this.originalOperations.get(t),o=this._history.getUndoneOperation(n);if(!o)return null;const r=this.originalOperations.get(e),s=this._relations.get(r);return s&&s.get(o)||null}_setRelation(e,t,n){const o=this.originalOperations.get(e),r=this.originalOperations.get(t);let s=this._relations.get(o);s||(s=new Map,this._relations.set(o,s)),s.set(r,n)}}function Qu(i,e){for(const t of i)t.baseVersion=e++}function Zu(i,e){for(let t=0;t<e;t++)i.push(new tt(0))}function Ju(i,e,t){const n=i.nodes.getNode(0).getAttribute(e);if(n==t)return null;const o=new F(i.position,i.position.getShiftedBy(i.howMany));return new Xe(o,e,n,t,0)}function Xu(i,e){return i.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany)===null}function Si(i,e){const t=[];for(let n=0;n<i.length;n++){const o=i[n],r=new _e(o.start,o.end.offset-o.start.offset,e,0);t.push(r);for(let s=n+1;s<i.length;s++)i[s]=i[s]._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)[0];e=e._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}return t}be(Xe,Xe,(i,e,t)=>{if(i.key===e.key&&i.range.start.hasSameParentAs(e.range.start)){const n=i.range.getDifference(e.range).map(r=>new Xe(r,i.key,i.oldValue,i.newValue,0)),o=i.range.getIntersection(e.range);return o&&t.aIsStrong&&n.push(new Xe(o,e.key,e.newValue,i.newValue,0)),n.length==0?[new tt(0)]:n}return[i]}),be(Xe,lt,(i,e)=>{if(i.range.start.hasSameParentAs(e.position)&&i.range.containsPosition(e.position)){const t=i.range._getTransformedByInsertion(e.position,e.howMany,!e.shouldReceiveAttributes).map(n=>new Xe(n,i.key,i.oldValue,i.newValue,i.baseVersion));if(e.shouldReceiveAttributes){const n=Ju(e,i.key,i.oldValue);n&&t.unshift(n)}return t}return i.range=i.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[i]}),be(Xe,Ke,(i,e)=>{const t=[];i.range.start.hasSameParentAs(e.deletionPosition)&&(i.range.containsPosition(e.deletionPosition)||i.range.start.isEqual(e.deletionPosition))&&t.push(F._createFromPositionAndShift(e.graveyardPosition,1));const n=i.range._getTransformedByMergeOperation(e);return n.isCollapsed||t.push(n),t.map(o=>new Xe(o,i.key,i.oldValue,i.newValue,i.baseVersion))}),be(Xe,_e,(i,e)=>function(n,o){const r=F._createFromPositionAndShift(o.sourcePosition,o.howMany);let s=null,a=[];r.containsRange(n,!0)?s=n:n.start.hasSameParentAs(r.start)?(a=n.getDifference(r),s=n.getIntersection(r)):a=[n];const c=[];for(let l of a){l=l._getTransformedByDeletion(o.sourcePosition,o.howMany);const d=o.getMovedRangeStart(),u=l.start.hasSameParentAs(d),h=l._getTransformedByInsertion(d,o.howMany,u);c.push(...h)}return s&&c.push(s._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany,!1)[0]),c}(i.range,e).map(n=>new Xe(n,i.key,i.oldValue,i.newValue,i.baseVersion))),be(Xe,Ne,(i,e)=>{if(i.range.end.isEqual(e.insertionPosition))return e.graveyardPosition||i.range.end.offset++,[i];if(i.range.start.hasSameParentAs(e.splitPosition)&&i.range.containsPosition(e.splitPosition)){const t=i.clone();return t.range=new F(e.moveTargetPosition.clone(),i.range.end._getCombined(e.splitPosition,e.moveTargetPosition)),i.range.end=e.splitPosition.clone(),i.range.end.stickiness="toPrevious",[i,t]}return i.range=i.range._getTransformedBySplitOperation(e),[i]}),be(lt,Xe,(i,e)=>{const t=[i];if(i.shouldReceiveAttributes&&i.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(i.position)){const n=Ju(i,e.key,e.newValue);n&&t.push(n)}return t}),be(lt,lt,(i,e,t)=>(i.position.isEqual(e.position)&&t.aIsStrong||(i.position=i.position._getTransformedByInsertOperation(e)),[i])),be(lt,_e,(i,e)=>(i.position=i.position._getTransformedByMoveOperation(e),[i])),be(lt,Ne,(i,e)=>(i.position=i.position._getTransformedBySplitOperation(e),[i])),be(lt,Ke,(i,e)=>(i.position=i.position._getTransformedByMergeOperation(e),[i])),be(kt,lt,(i,e)=>(i.oldRange&&(i.oldRange=i.oldRange._getTransformedByInsertOperation(e)[0]),i.newRange&&(i.newRange=i.newRange._getTransformedByInsertOperation(e)[0]),[i])),be(kt,kt,(i,e,t)=>{if(i.name==e.name){if(!t.aIsStrong)return[new tt(0)];i.oldRange=e.newRange?e.newRange.clone():null}return[i]}),be(kt,Ke,(i,e)=>(i.oldRange&&(i.oldRange=i.oldRange._getTransformedByMergeOperation(e)),i.newRange&&(i.newRange=i.newRange._getTransformedByMergeOperation(e)),[i])),be(kt,_e,(i,e,t)=>{if(i.oldRange&&(i.oldRange=F._createFromRanges(i.oldRange._getTransformedByMoveOperation(e))),i.newRange){if(t.abRelation){const n=F._createFromRanges(i.newRange._getTransformedByMoveOperation(e));if(t.abRelation.side=="left"&&e.targetPosition.isEqual(i.newRange.start))return i.newRange.end=n.end,i.newRange.start.path=t.abRelation.path,[i];if(t.abRelation.side=="right"&&e.targetPosition.isEqual(i.newRange.end))return i.newRange.start=n.start,i.newRange.end.path=t.abRelation.path,[i]}i.newRange=F._createFromRanges(i.newRange._getTransformedByMoveOperation(e))}return[i]}),be(kt,Ne,(i,e,t)=>{if(i.oldRange&&(i.oldRange=i.oldRange._getTransformedBySplitOperation(e)),i.newRange){if(t.abRelation){const n=i.newRange._getTransformedBySplitOperation(e);return i.newRange.start.isEqual(e.splitPosition)&&t.abRelation.wasStartBeforeMergedElement?i.newRange.start=q._createAt(e.insertionPosition):i.newRange.start.isEqual(e.splitPosition)&&!t.abRelation.wasInLeftElement&&(i.newRange.start=q._createAt(e.moveTargetPosition)),i.newRange.end.isEqual(e.splitPosition)&&t.abRelation.wasInRightElement?i.newRange.end=q._createAt(e.moveTargetPosition):i.newRange.end.isEqual(e.splitPosition)&&t.abRelation.wasEndBeforeMergedElement?i.newRange.end=q._createAt(e.insertionPosition):i.newRange.end=n.end,[i]}i.newRange=i.newRange._getTransformedBySplitOperation(e)}return[i]}),be(Ke,lt,(i,e)=>(i.sourcePosition.hasSameParentAs(e.position)&&(i.howMany+=e.howMany),i.sourcePosition=i.sourcePosition._getTransformedByInsertOperation(e),i.targetPosition=i.targetPosition._getTransformedByInsertOperation(e),[i])),be(Ke,Ke,(i,e,t)=>{if(i.sourcePosition.isEqual(e.sourcePosition)&&i.targetPosition.isEqual(e.targetPosition)){if(t.bWasUndone){const n=e.graveyardPosition.path.slice();return n.push(0),i.sourcePosition=new q(e.graveyardPosition.root,n),i.howMany=0,[i]}return[new tt(0)]}if(i.sourcePosition.isEqual(e.sourcePosition)&&!i.targetPosition.isEqual(e.targetPosition)&&!t.bWasUndone&&t.abRelation!="splitAtSource"){const n=i.targetPosition.root.rootName=="$graveyard",o=e.targetPosition.root.rootName=="$graveyard";if(o&&!n||!(n&&!o)&&t.aIsStrong){const r=e.targetPosition._getTransformedByMergeOperation(e),s=i.targetPosition._getTransformedByMergeOperation(e);return[new _e(r,i.howMany,s,0)]}return[new tt(0)]}return i.sourcePosition.hasSameParentAs(e.targetPosition)&&(i.howMany+=e.howMany),i.sourcePosition=i.sourcePosition._getTransformedByMergeOperation(e),i.targetPosition=i.targetPosition._getTransformedByMergeOperation(e),i.graveyardPosition.isEqual(e.graveyardPosition)&&t.aIsStrong||(i.graveyardPosition=i.graveyardPosition._getTransformedByMergeOperation(e)),[i]}),be(Ke,_e,(i,e,t)=>{const n=F._createFromPositionAndShift(e.sourcePosition,e.howMany);return e.type=="remove"&&!t.bWasUndone&&!t.forceWeakRemove&&i.deletionPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(i.sourcePosition)?[new tt(0)]:(e.sourcePosition.getShiftedBy(e.howMany).isEqual(i.sourcePosition)?i.sourcePosition.stickiness="toNone":e.targetPosition.isEqual(i.sourcePosition)&&t.abRelation=="mergeSourceAffected"?i.sourcePosition.stickiness="toNext":e.sourcePosition.isEqual(i.targetPosition)?(i.targetPosition.stickiness="toNone",i.howMany-=e.howMany):e.targetPosition.isEqual(i.targetPosition)&&t.abRelation=="mergeTargetWasBefore"?(i.targetPosition.stickiness="toPrevious",i.howMany+=e.howMany):(i.sourcePosition.hasSameParentAs(e.targetPosition)&&(i.howMany+=e.howMany),i.sourcePosition.hasSameParentAs(e.sourcePosition)&&(i.howMany-=e.howMany)),i.sourcePosition=i.sourcePosition._getTransformedByMoveOperation(e),i.targetPosition=i.targetPosition._getTransformedByMoveOperation(e),i.sourcePosition.stickiness="toPrevious",i.targetPosition.stickiness="toNext",i.graveyardPosition.isEqual(e.targetPosition)||(i.graveyardPosition=i.graveyardPosition._getTransformedByMoveOperation(e)),[i])}),be(Ke,Ne,(i,e,t)=>{if(e.graveyardPosition&&(i.graveyardPosition=i.graveyardPosition._getTransformedByDeletion(e.graveyardPosition,1),i.deletionPosition.isEqual(e.graveyardPosition)&&(i.howMany=e.howMany)),i.targetPosition.isEqual(e.splitPosition)){const n=e.howMany!=0,o=e.graveyardPosition&&i.deletionPosition.isEqual(e.graveyardPosition);if(n||o||t.abRelation=="mergeTargetNotMoved")return i.sourcePosition=i.sourcePosition._getTransformedBySplitOperation(e),[i]}if(i.sourcePosition.isEqual(e.splitPosition)){if(t.abRelation=="mergeSourceNotMoved")return i.howMany=0,i.targetPosition=i.targetPosition._getTransformedBySplitOperation(e),[i];if(t.abRelation=="mergeSameElement"||i.sourcePosition.offset>0)return i.sourcePosition=e.moveTargetPosition.clone(),i.targetPosition=i.targetPosition._getTransformedBySplitOperation(e),[i]}return i.sourcePosition.hasSameParentAs(e.splitPosition)&&(i.howMany=e.splitPosition.offset),i.sourcePosition=i.sourcePosition._getTransformedBySplitOperation(e),i.targetPosition=i.targetPosition._getTransformedBySplitOperation(e),[i]}),be(_e,lt,(i,e)=>{const t=F._createFromPositionAndShift(i.sourcePosition,i.howMany)._getTransformedByInsertOperation(e,!1)[0];return i.sourcePosition=t.start,i.howMany=t.end.offset-t.start.offset,i.targetPosition.isEqual(e.position)||(i.targetPosition=i.targetPosition._getTransformedByInsertOperation(e)),[i]}),be(_e,_e,(i,e,t)=>{const n=F._createFromPositionAndShift(i.sourcePosition,i.howMany),o=F._createFromPositionAndShift(e.sourcePosition,e.howMany);let r,s=t.aIsStrong,a=!t.aIsStrong;if(t.abRelation=="insertBefore"||t.baRelation=="insertAfter"?a=!0:t.abRelation!="insertAfter"&&t.baRelation!="insertBefore"||(a=!1),r=i.targetPosition.isEqual(e.targetPosition)&&a?i.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):i.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Xu(i,e)&&Xu(e,i))return[e.getReversed()];if(n.containsPosition(e.targetPosition)&&n.containsRange(o,!0))return n.start=n.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),n.end=n.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Si([n],r);if(o.containsPosition(i.targetPosition)&&o.containsRange(n,!0))return n.start=n.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),n.end=n.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),Si([n],r);const c=ot(i.sourcePosition.getParentPath(),e.sourcePosition.getParentPath());if(c=="prefix"||c=="extension")return n.start=n.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),n.end=n.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Si([n],r);i.type!="remove"||e.type=="remove"||t.aWasUndone||t.forceWeakRemove?i.type=="remove"||e.type!="remove"||t.bWasUndone||t.forceWeakRemove||(s=!1):s=!0;const l=[],d=n.getDifference(o);for(const h of d){h.start=h.start._getTransformedByDeletion(e.sourcePosition,e.howMany),h.end=h.end._getTransformedByDeletion(e.sourcePosition,e.howMany);const m=ot(h.start.getParentPath(),e.getMovedRangeStart().getParentPath())=="same",k=h._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,m);l.push(...k)}const u=n.getIntersection(o);return u!==null&&s&&(u.start=u.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),u.end=u.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),l.length===0?l.push(u):l.length==1?o.start.isBefore(n.start)||o.start.isEqual(n.start)?l.unshift(u):l.push(u):l.splice(1,0,u)),l.length===0?[new tt(i.baseVersion)]:Si(l,r)}),be(_e,Ne,(i,e,t)=>{let n=i.targetPosition.clone();i.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&t.abRelation!="moveTargetAfter"||(n=i.targetPosition._getTransformedBySplitOperation(e));const o=F._createFromPositionAndShift(i.sourcePosition,i.howMany);if(o.end.isEqual(e.insertionPosition))return e.graveyardPosition||i.howMany++,i.targetPosition=n,[i];if(o.start.hasSameParentAs(e.splitPosition)&&o.containsPosition(e.splitPosition)){let s=new F(e.splitPosition,o.end);return s=s._getTransformedBySplitOperation(e),Si([new F(o.start,e.splitPosition),s],n)}i.targetPosition.isEqual(e.splitPosition)&&t.abRelation=="insertAtSource"&&(n=e.moveTargetPosition),i.targetPosition.isEqual(e.insertionPosition)&&t.abRelation=="insertBetween"&&(n=i.targetPosition);const r=[o._getTransformedBySplitOperation(e)];if(e.graveyardPosition){const s=o.start.isEqual(e.graveyardPosition)||o.containsPosition(e.graveyardPosition);i.howMany>1&&s&&!t.aWasUndone&&r.push(F._createFromPositionAndShift(e.insertionPosition,1))}return Si(r,n)}),be(_e,Ke,(i,e,t)=>{const n=F._createFromPositionAndShift(i.sourcePosition,i.howMany);if(e.deletionPosition.hasSameParentAs(i.sourcePosition)&&n.containsPosition(e.sourcePosition)){if(i.type!="remove"||t.forceWeakRemove){if(i.howMany==1)return t.bWasUndone?(i.sourcePosition=e.graveyardPosition.clone(),i.targetPosition=i.targetPosition._getTransformedByMergeOperation(e),[i]):[new tt(0)]}else if(!t.aWasUndone){const r=[];let s=e.graveyardPosition.clone(),a=e.targetPosition._getTransformedByMergeOperation(e);i.howMany>1&&(r.push(new _e(i.sourcePosition,i.howMany-1,i.targetPosition,0)),s=s._getTransformedByMove(i.sourcePosition,i.targetPosition,i.howMany-1),a=a._getTransformedByMove(i.sourcePosition,i.targetPosition,i.howMany-1));const c=e.deletionPosition._getCombined(i.sourcePosition,i.targetPosition),l=new _e(s,1,c,0),d=l.getMovedRangeStart().path.slice();d.push(0);const u=new q(l.targetPosition.root,d);a=a._getTransformedByMove(s,c,1);const h=new _e(a,e.howMany,u,0);return r.push(l),r.push(h),r}}const o=F._createFromPositionAndShift(i.sourcePosition,i.howMany)._getTransformedByMergeOperation(e);return i.sourcePosition=o.start,i.howMany=o.end.offset-o.start.offset,i.targetPosition=i.targetPosition._getTransformedByMergeOperation(e),[i]}),be(bt,lt,(i,e)=>(i.position=i.position._getTransformedByInsertOperation(e),[i])),be(bt,Ke,(i,e)=>i.position.isEqual(e.deletionPosition)?(i.position=e.graveyardPosition.clone(),i.position.stickiness="toNext",[i]):(i.position=i.position._getTransformedByMergeOperation(e),[i])),be(bt,_e,(i,e)=>(i.position=i.position._getTransformedByMoveOperation(e),[i])),be(bt,bt,(i,e,t)=>{if(i.position.isEqual(e.position)){if(!t.aIsStrong)return[new tt(0)];i.oldName=e.newName}return[i]}),be(bt,Ne,(i,e)=>{if(ot(i.position.path,e.splitPosition.getParentPath())=="same"&&!e.graveyardPosition){const t=new bt(i.position.getShiftedBy(1),i.oldName,i.newName,0);return[i,t]}return i.position=i.position._getTransformedBySplitOperation(e),[i]}),be(mn,mn,(i,e,t)=>{if(i.root===e.root&&i.key===e.key){if(!t.aIsStrong||i.newValue===e.newValue)return[new tt(0)];i.oldValue=e.newValue}return[i]}),be(dn,dn,(i,e)=>i.rootName===e.rootName&&i.isAdd===e.isAdd?[new tt(0)]:[i]),be(Ne,lt,(i,e)=>(i.splitPosition.hasSameParentAs(e.position)&&i.splitPosition.offset<e.position.offset&&(i.howMany+=e.howMany),i.splitPosition=i.splitPosition._getTransformedByInsertOperation(e),i.insertionPosition=i.insertionPosition._getTransformedByInsertOperation(e),[i])),be(Ne,Ke,(i,e,t)=>{if(!i.graveyardPosition&&!t.bWasUndone&&i.splitPosition.hasSameParentAs(e.sourcePosition)){const n=e.graveyardPosition.path.slice();n.push(0);const o=new q(e.graveyardPosition.root,n),r=Ne.getInsertionPosition(new q(e.graveyardPosition.root,n)),s=new Ne(o,0,r,null,0);return i.splitPosition=i.splitPosition._getTransformedByMergeOperation(e),i.insertionPosition=Ne.getInsertionPosition(i.splitPosition),i.graveyardPosition=s.insertionPosition.clone(),i.graveyardPosition.stickiness="toNext",[s,i]}return i.splitPosition.hasSameParentAs(e.deletionPosition)&&!i.splitPosition.isAfter(e.deletionPosition)&&i.howMany--,i.splitPosition.hasSameParentAs(e.targetPosition)&&(i.howMany+=e.howMany),i.splitPosition=i.splitPosition._getTransformedByMergeOperation(e),i.insertionPosition=Ne.getInsertionPosition(i.splitPosition),i.graveyardPosition&&(i.graveyardPosition=i.graveyardPosition._getTransformedByMergeOperation(e)),[i]}),be(Ne,_e,(i,e,t)=>{const n=F._createFromPositionAndShift(e.sourcePosition,e.howMany);if(i.graveyardPosition){const r=n.start.isEqual(i.graveyardPosition)||n.containsPosition(i.graveyardPosition);if(!t.bWasUndone&&r){const s=i.splitPosition._getTransformedByMoveOperation(e),a=i.graveyardPosition._getTransformedByMoveOperation(e),c=a.path.slice();c.push(0);const l=new q(a.root,c);return[new _e(s,i.howMany,l,0)]}i.graveyardPosition=i.graveyardPosition._getTransformedByMoveOperation(e)}const o=i.splitPosition.isEqual(e.targetPosition);if(o&&(t.baRelation=="insertAtSource"||t.abRelation=="splitBefore"))return i.howMany+=e.howMany,i.splitPosition=i.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),i.insertionPosition=Ne.getInsertionPosition(i.splitPosition),[i];if(o&&t.abRelation&&t.abRelation.howMany){const{howMany:r,offset:s}=t.abRelation;return i.howMany+=r,i.splitPosition=i.splitPosition.getShiftedBy(s),[i]}if(i.splitPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(i.splitPosition)){const r=e.howMany-(i.splitPosition.offset-e.sourcePosition.offset);return i.howMany-=r,i.splitPosition.hasSameParentAs(e.targetPosition)&&i.splitPosition.offset<e.targetPosition.offset&&(i.howMany+=e.howMany),i.splitPosition=e.sourcePosition.clone(),i.insertionPosition=Ne.getInsertionPosition(i.splitPosition),[i]}return e.sourcePosition.isEqual(e.targetPosition)||(i.splitPosition.hasSameParentAs(e.sourcePosition)&&i.splitPosition.offset<=e.sourcePosition.offset&&(i.howMany-=e.howMany),i.splitPosition.hasSameParentAs(e.targetPosition)&&i.splitPosition.offset<e.targetPosition.offset&&(i.howMany+=e.howMany)),i.splitPosition.stickiness="toNone",i.splitPosition=i.splitPosition._getTransformedByMoveOperation(e),i.splitPosition.stickiness="toNext",i.graveyardPosition?i.insertionPosition=i.insertionPosition._getTransformedByMoveOperation(e):i.insertionPosition=Ne.getInsertionPosition(i.splitPosition),[i]}),be(Ne,Ne,(i,e,t)=>{if(i.splitPosition.isEqual(e.splitPosition)){if(!i.graveyardPosition&&!e.graveyardPosition)return[new tt(0)];if(i.graveyardPosition&&e.graveyardPosition&&i.graveyardPosition.isEqual(e.graveyardPosition))return[new tt(0)];if(t.abRelation=="splitBefore")return i.howMany=0,i.graveyardPosition=i.graveyardPosition._getTransformedBySplitOperation(e),[i]}if(i.graveyardPosition&&e.graveyardPosition&&i.graveyardPosition.isEqual(e.graveyardPosition)){const n=i.splitPosition.root.rootName=="$graveyard",o=e.splitPosition.root.rootName=="$graveyard";if(o&&!n||!(n&&!o)&&t.aIsStrong){const r=[];return e.howMany&&r.push(new _e(e.moveTargetPosition,e.howMany,e.splitPosition,0)),i.howMany&&r.push(new _e(i.splitPosition,i.howMany,i.moveTargetPosition,0)),r}return[new tt(0)]}if(i.graveyardPosition&&(i.graveyardPosition=i.graveyardPosition._getTransformedBySplitOperation(e)),i.splitPosition.isEqual(e.insertionPosition)&&t.abRelation=="splitBefore")return i.howMany++,[i];if(e.splitPosition.isEqual(i.insertionPosition)&&t.baRelation=="splitBefore"){const n=e.insertionPosition.path.slice();n.push(0);const o=new q(e.insertionPosition.root,n);return[i,new _e(i.insertionPosition,1,o,0)]}return i.splitPosition.hasSameParentAs(e.splitPosition)&&i.splitPosition.offset<e.splitPosition.offset&&(i.howMany-=e.howMany),i.splitPosition=i.splitPosition._getTransformedBySplitOperation(e),i.insertionPosition=Ne.getInsertionPosition(i.splitPosition),[i]});class ht extends ye(q){constructor(e,t,n="toNone"){if(super(e,t,n),!this.root.is("rootElement"))throw new B("model-liveposition-root-not-rootelement",e);LC.call(this)}detach(){this.stopListening()}toPosition(){return new q(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}function LC(){this.listenTo(this.root.document.model,"applyOperation",(i,e)=>{const t=e[0];t.isDocumentOperation&&zC.call(this,t)},{priority:"low"})}function zC(i){const e=this.getTransformedByOperation(i);if(!this.isEqual(e)){const t=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",t)}}ht.prototype.is=function(i){return i==="livePosition"||i==="model:livePosition"||i=="position"||i==="model:position"};class Bi{constructor(e={}){typeof e=="string"&&(e=e==="transparent"?{isUndoable:!1}:{},X("batch-constructor-deprecated-string-type"));const{isUndoable:t=!0,isLocal:n=!0,isUndo:o=!1,isTyping:r=!1}=e;this.operations=[],this.isUndoable=t,this.isLocal=n,this.isUndo=o,this.isTyping=r}get type(){return X("batch-type-deprecated"),"default"}get baseVersion(){for(const e of this.operations)if(e.baseVersion!==null)return e.baseVersion;return null}addOperation(e){return e.batch=this,this.operations.push(e),e}}var RC=Object.defineProperty,jC=Object.defineProperties,FC=Object.getOwnPropertyDescriptors,eh=Object.getOwnPropertySymbols,VC=Object.prototype.hasOwnProperty,HC=Object.prototype.propertyIsEnumerable,th=(i,e,t)=>e in i?RC(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,nh=(i,e)=>{for(var t in e||(e={}))VC.call(e,t)&&th(i,t,e[t]);if(eh)for(var t of eh(e))HC.call(e,t)&&th(i,t,e[t]);return i};class UC{constructor(e){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=e}get isEmpty(){return this._changesInElement.size==0&&this._changedMarkers.size==0&&this._changedRoots.size==0}bufferOperation(e){const t=e;switch(t.type){case"insert":if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const n of t.range.getItems({shallow:!0}))this._isInInsertedElement(n.parent)||this._markAttribute(n);break;case"remove":case"move":case"reinsert":{if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;const n=this._isInInsertedElement(t.sourcePosition.parent),o=this._isInInsertedElement(t.targetPosition.parent);n||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),o||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);break}case"rename":{if(this._isInInsertedElement(t.position.parent))return;this._markRemove(t.position.parent,t.position.offset,1),this._markInsert(t.position.parent,t.position.offset,1);const n=F._createFromPositionAndShift(t.position,1);for(const o of this._markerCollection.getMarkersIntersectingRange(n)){const r=o.getData();this.bufferMarkerChange(o.name,r,r)}break}case"split":{const n=t.splitPosition.parent;this._isInInsertedElement(n)||this._markRemove(n,t.splitPosition.offset,t.howMany),this._isInInsertedElement(t.insertionPosition.parent)||this._markInsert(t.insertionPosition.parent,t.insertionPosition.offset,1),t.graveyardPosition&&this._markRemove(t.graveyardPosition.parent,t.graveyardPosition.offset,1);break}case"merge":{const n=t.sourcePosition.parent;this._isInInsertedElement(n.parent)||this._markRemove(n.parent,n.startOffset,1);const o=t.graveyardPosition.parent;this._markInsert(o,t.graveyardPosition.offset,1);const r=t.targetPosition.parent;this._isInInsertedElement(r)||this._markInsert(r,t.targetPosition.offset,n.maxOffset);break}case"detachRoot":case"addRoot":{const n=t.affectedSelectable;if(!n._isLoaded||n.isAttached()==t.isAdd)return;this._bufferRootStateChange(t.rootName,t.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!t.root._isLoaded)return;const n=t.root.rootName;this._bufferRootAttributeChange(n,t.key,t.oldValue,t.newValue);break}}this._cachedChanges=null}bufferMarkerChange(e,t,n){t.range&&t.range.root.is("rootElement")&&!t.range.root._isLoaded&&(t.range=null),n.range&&n.range.root.is("rootElement")&&!n.range.root._isLoaded&&(n.range=null);let o=this._changedMarkers.get(e);o?o.newMarkerData=n:(o={newMarkerData:n,oldMarkerData:t},this._changedMarkers.set(e,o)),o.oldMarkerData.range==null&&n.range==null&&this._changedMarkers.delete(e)}getMarkersToRemove(){const e=[];for(const[t,n]of this._changedMarkers)n.oldMarkerData.range!=null&&e.push({name:t,range:n.oldMarkerData.range});return e}getMarkersToAdd(){const e=[];for(const[t,n]of this._changedMarkers)n.newMarkerData.range!=null&&e.push({name:t,range:n.newMarkerData.range});return e}getChangedMarkers(){return Array.from(this._changedMarkers).map(([e,t])=>({name:e,data:{oldRange:t.oldMarkerData.range,newRange:t.newMarkerData.range}}))}hasDataChanges(){if(this.getChanges().length||this._changedRoots.size>0)return!0;for(const{newMarkerData:e,oldMarkerData:t}of this._changedMarkers.values()){if(e.affectsData!==t.affectsData)return!0;if(e.affectsData){const n=e.range&&!t.range,o=!e.range&&t.range,r=e.range&&t.range&&!e.range.isEqual(t.range);if(n||o||r)return!0}}return!1}getChanges(e={}){if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let t=[];for(const n of this._changesInElement.keys()){const o=this._changesInElement.get(n).sort((d,u)=>d.offset===u.offset?d.type!=u.type?d.type=="remove"?-1:1:0:d.offset<u.offset?-1:1),r=this._elementSnapshots.get(n),s=ih(n.getChildren()),a=WC(r.length,o);let c=0,l=0;for(const d of a)if(d==="i")t.push(this._getInsertDiff(n,c,s[c])),c++;else if(d==="r")t.push(this._getRemoveDiff(n,c,r[l])),l++;else if(d==="a"){const u=s[c].attributes,h=r[l].attributes;let m;if(s[c].name=="$text")m=new F(q._createAt(n,c),q._createAt(n,c+1));else{const k=n.offsetToIndex(c);m=new F(q._createAt(n,c),q._createAt(n.getChild(k),0))}t.push(...this._getAttributesDiff(m,h,u)),c++,l++}else c++,l++}t.sort((n,o)=>n.position.root!=o.position.root?n.position.root.rootName<o.position.root.rootName?-1:1:n.position.isEqual(o.position)?n.changeCount-o.changeCount:n.position.isBefore(o.position)?-1:1);for(let n=1,o=0;n<t.length;n++){const r=t[o],s=t[n],a=r.type=="remove"&&s.type=="remove"&&r.name=="$text"&&s.name=="$text"&&r.position.isEqual(s.position),c=r.type=="insert"&&s.type=="insert"&&r.name=="$text"&&s.name=="$text"&&r.position.parent==s.position.parent&&r.position.offset+r.length==s.position.offset,l=r.type=="attribute"&&s.type=="attribute"&&r.position.parent==s.position.parent&&r.range.isFlat&&s.range.isFlat&&r.position.offset+r.length==s.position.offset&&r.attributeKey==s.attributeKey&&r.attributeOldValue==s.attributeOldValue&&r.attributeNewValue==s.attributeNewValue;a||c||l?(r.length++,l&&(r.range.end=r.range.end.getShiftedBy(1)),t[n]=null):o=n}t=t.filter(n=>n);for(const n of t)delete n.changeCount,n.type=="attribute"&&(delete n.position,delete n.length);return this._changeCount=0,this._cachedChangesWithGraveyard=t,this._cachedChanges=t.filter(qC),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(e=>{const t=nh({},e);return t.state!==void 0&&delete t.attributes,t})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(e,t){if(!this._changedRoots.has(e))return void this._changedRoots.set(e,{name:e,state:t?"attached":"detached"});const n=this._changedRoots.get(e);n.state!==void 0?(delete n.state,n.attributes===void 0&&this._changedRoots.delete(e)):n.state=t?"attached":"detached"}_bufferRootAttributeChange(e,t,n,o){const r=this._changedRoots.get(e)||{name:e},s=r.attributes||{};if(s[t]){const a=s[t];o===a.oldValue?delete s[t]:a.newValue=o}else s[t]={oldValue:n,newValue:o};Object.entries(s).length===0?(delete r.attributes,r.state===void 0&&this._changedRoots.delete(e)):(r.attributes=s,this._changedRoots.set(e,r))}_refreshItem(e){if(this._isInInsertedElement(e.parent))return;this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize),this._refreshedItems.add(e);const t=F._createOn(e);for(const n of this._markerCollection.getMarkersIntersectingRange(t)){const o=n.getData();this.bufferMarkerChange(n.name,o,o)}this._cachedChanges=null}_bufferRootLoad(e){if(e.isAttached()){this._bufferRootStateChange(e.rootName,!0),this._markInsert(e,0,e.maxOffset);for(const n of e.getAttributeKeys())this._bufferRootAttributeChange(e.rootName,n,null,e.getAttribute(n));for(const n of this._markerCollection)if(n.getRange().root==e){const o=n.getData();this.bufferMarkerChange(n.name,(t=nh({},o),jC(t,FC({range:null}))),o)}var t}}_markInsert(e,t,n){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const o={type:"insert",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,o)}_markRemove(e,t,n){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const o={type:"remove",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,o),this._removeAllNestedChanges(e,t,n)}_markAttribute(e){if(e.root.is("rootElement")&&!e.root._isLoaded)return;const t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}_markChange(e,t){this._makeSnapshot(e);const n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(let o=0;o<n.length;o++)n[o].howMany<1&&(n.splice(o,1),o--)}_getChangesForElement(e){let t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}_makeSnapshot(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,ih(e.getChildren()))}_handleChange(e,t){e.nodesToHandle=e.howMany;for(const n of t){const o=e.offset+e.howMany,r=n.offset+n.howMany;if(e.type=="insert"&&(n.type=="insert"&&(e.offset<=n.offset?n.offset+=e.howMany:e.offset<r&&(n.howMany+=e.nodesToHandle,e.nodesToHandle=0)),n.type=="remove"&&e.offset<n.offset&&(n.offset+=e.howMany),n.type=="attribute")){if(e.offset<=n.offset)n.offset+=e.howMany;else if(e.offset<r){const s=n.howMany;n.howMany=e.offset-n.offset,t.unshift({type:"attribute",offset:o,howMany:s-n.howMany,count:this._changeCount++})}}if(e.type=="remove"){if(n.type=="insert"){if(o<=n.offset)n.offset-=e.howMany;else if(o<=r)if(e.offset<n.offset){const s=o-n.offset;n.offset=e.offset,n.howMany-=s,e.nodesToHandle-=s}else n.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=n.offset)e.nodesToHandle-=n.howMany,n.howMany=0;else if(e.offset<r){const s=r-e.offset;n.howMany-=s,e.nodesToHandle-=s}}if(n.type=="remove"&&(o<=n.offset?n.offset-=e.howMany:e.offset<n.offset&&(e.nodesToHandle+=n.howMany,n.howMany=0)),n.type=="attribute"){if(o<=n.offset)n.offset-=e.howMany;else if(e.offset<n.offset){const s=o-n.offset;n.offset=e.offset,n.howMany-=s}else if(e.offset<r)if(o<=r){const s=n.howMany;n.howMany=e.offset-n.offset;const a=s-n.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:a,count:this._changeCount++})}else n.howMany-=r-e.offset}}if(e.type=="attribute"){if(n.type=="insert")if(e.offset<n.offset&&o>n.offset){if(o>r){const s={type:"attribute",offset:r,howMany:o-r,count:this._changeCount++};this._handleChange(s,t),t.push(s)}e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=n.offset&&e.offset<r&&(o>r?(e.nodesToHandle=o-r,e.offset=r):e.nodesToHandle=0);if(n.type=="remove"&&e.offset<n.offset&&o>n.offset){const s={type:"attribute",offset:n.offset,howMany:o-n.offset,count:this._changeCount++};this._handleChange(s,t),t.push(s),e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}n.type=="attribute"&&(e.offset>=n.offset&&o<=r?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=n.offset&&o>=r&&(n.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,n){return{type:"insert",position:q._createAt(e,t),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++,_element:n.element}}_getRemoveDiff(e,t,n){return{type:"remove",position:q._createAt(e,t),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++,_element:n.element}}_getAttributesDiff(e,t,n){const o=[];n=new Map(n);for(const[r,s]of t){const a=n.has(r)?n.get(r):null;a!==s&&o.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:r,attributeOldValue:s,attributeNewValue:a,changeCount:this._changeCount++}),n.delete(r)}for(const[r,s]of n)o.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:r,attributeOldValue:null,attributeNewValue:s,changeCount:this._changeCount++});return o}_isInInsertedElement(e){const t=e.parent;if(!t)return!1;const n=this._changesInElement.get(t),o=e.startOffset;if(n){for(const r of n)if(r.type=="insert"&&o>=r.offset&&o<r.offset+r.howMany)return!0}return this._isInInsertedElement(t)}_removeAllNestedChanges(e,t,n){const o=new F(q._createAt(e,t),q._createAt(e,t+n));for(const r of o.getItems({shallow:!0}))r.is("element")&&(this._elementSnapshots.delete(r),this._changesInElement.delete(r),this._removeAllNestedChanges(r,0,r.maxOffset))}}function ih(i){const e=[];for(const t of i)if(t.is("$text"))for(let n=0;n<t.data.length;n++)e.push({name:"$text",attributes:new Map(t.getAttributes())});else e.push({name:t.name,attributes:new Map(t.getAttributes()),element:t});return e}function WC(i,e){const t=[];let n=0,o=0;for(const r of e){if(r.offset>n){for(let s=0;s<r.offset-n;s++)t.push("e");o+=r.offset-n}if(r.type=="insert"){for(let s=0;s<r.howMany;s++)t.push("i");n=r.offset+r.howMany}else if(r.type=="remove"){for(let s=0;s<r.howMany;s++)t.push("r");n=r.offset,o+=r.howMany}else t.push(..."a".repeat(r.howMany).split("")),n=r.offset+r.howMany,o+=r.howMany}if(o<i)for(let r=0;r<i-o-n;r++)t.push("e");return t}function qC(i){const e="position"in i&&i.position.root.rootName=="$graveyard",t="range"in i&&i.range.root.rootName=="$graveyard";return!e&&!t}class GC{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set,this._baseVersionToOperationIndex=new Map,this._version=0,this._gaps=new Map}get version(){return this._version}set version(e){this._operations.length&&e>this._version+1&&this._gaps.set(this._version,e),this._version=e}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(e){if(e.baseVersion!==this.version)throw new B("model-document-history-addoperation-incorrect-version",this,{operation:e,historyVersion:this.version});this._operations.push(e),this._version++,this._baseVersionToOperationIndex.set(e.baseVersion,this._operations.length-1)}getOperations(e,t=this.version){if(!this._operations.length)return[];const n=this._operations[0];e===void 0&&(e=n.baseVersion);let o=t-1;for(const[a,c]of this._gaps)e>a&&e<c&&(e=c),o>a&&o<c&&(o=a-1);if(o<n.baseVersion||e>this.lastOperation.baseVersion)return[];let r=this._baseVersionToOperationIndex.get(e);r===void 0&&(r=0);let s=this._baseVersionToOperationIndex.get(o);return s===void 0&&(s=this._operations.length-1),this._operations.slice(r,s+1)}getOperation(e){const t=this._baseVersionToOperationIndex.get(e);if(t!==void 0)return this._operations[t]}setOperationAsUndone(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}isUndoingOperation(e){return this._undoPairs.has(e)}isUndoneOperation(e){return this._undoneOperations.has(e)}getUndoneOperation(e){return this._undoPairs.get(e)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class Lr extends Te{constructor(e,t,n="main"){super(t),this._isAttached=!0,this._isLoaded=!0,this._document=e,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}Lr.prototype.is=function(i,e){return e?e===this.name&&(i==="rootElement"||i==="model:rootElement"||i==="element"||i==="model:element"):i==="rootElement"||i==="model:rootElement"||i==="element"||i==="model:element"||i==="node"||i==="model:node"};var $C=Object.defineProperty,KC=Object.defineProperties,YC=Object.getOwnPropertyDescriptors,oh=Object.getOwnPropertySymbols,QC=Object.prototype.hasOwnProperty,ZC=Object.prototype.propertyIsEnumerable,rh=(i,e,t)=>e in i?$C(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,sh=(i,e)=>{for(var t in e||(e={}))QC.call(e,t)&&rh(i,t,e[t]);if(oh)for(var t of oh(e))ZC.call(e,t)&&rh(i,t,e[t]);return i},ah=(i,e)=>KC(i,YC(e));const ch="$graveyard";class JC extends ye(){constructor(e){super(),this.model=e,this.history=new GC,this.selection=new Zt(this),this.roots=new qt({idProperty:"rootName"}),this.differ=new UC(e.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",ch),this.listenTo(e,"applyOperation",(t,n)=>{const o=n[0];o.isDocumentOperation&&this.differ.bufferOperation(o)},{priority:"high"}),this.listenTo(e,"applyOperation",(t,n)=>{const o=n[0];o.isDocumentOperation&&this.history.addOperation(o)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(e.markers,"update",(t,n,o,r,s)=>{const a=ah(sh({},n.getData()),{range:r});this.differ.bufferMarkerChange(n.name,s,a),o===null&&n.on("change",(c,l)=>{const d=n.getData();this.differ.bufferMarkerChange(n.name,ah(sh({},d),{range:l}),d)})}),this.registerPostFixer(t=>{let n=!1;for(const o of this.roots)o.isAttached()||o.isEmpty||(t.remove(t.createRangeIn(o)),n=!0);for(const o of this.model.markers)o.getRange().root.isAttached()||(t.removeMarker(o),n=!0);return n})}get version(){return this.history.version}set version(e){this.history.version=e}get graveyard(){return this.getRoot(ch)}createRoot(e="$root",t="main"){if(this.roots.get(t))throw new B("model-document-createroot-name-exists",this,{name:t});const n=new Lr(this,e,t);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(e="main"){return this.roots.get(e)}getRootNames(e=!1){return this.getRoots(e).map(t=>t.rootName)}getRoots(e=!1){return this.roots.filter(t=>t!=this.graveyard&&(e||t.isAttached())&&t._isLoaded)}registerPostFixer(e){this._postFixers.add(e)}toJSON(){const e=Td(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}_handleChangeBlock(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const e=this.getRoots();return e.length?e[0]:this.graveyard}_getDefaultRange(){const e=this._getDefaultRoot(),t=this.model,n=t.schema,o=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(o)||t.createRange(o)}_validateSelectionRange(e){return lh(e.start)&&lh(e.end)}_callPostFixers(e){let t=!1;do for(const n of this._postFixers)if(this.selection.refresh(),t=n(e),t)break;while(t)}}function lh(i){const e=i.textNode;if(e){const t=e.data,n=i.offset-e.startOffset;return!Qs(t,n)&&!Zs(t,n)}return!0}var XC=Object.defineProperty,ev=Object.defineProperties,tv=Object.getOwnPropertyDescriptors,dh=Object.getOwnPropertySymbols,nv=Object.prototype.hasOwnProperty,iv=Object.prototype.propertyIsEnumerable,uh=(i,e,t)=>e in i?XC(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;class ov extends ye(){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(e){const t=e instanceof Ni?e.name:e;return this._markers.has(t)}get(e){return this._markers.get(e)||null}_set(e,t,n=!1,o=!1){const r=e instanceof Ni?e.name:e;if(r.includes(","))throw new B("markercollection-incorrect-marker-name",this);const s=this._markers.get(r);if(s){const d=s.getData(),u=s.getRange();let h=!1;return u.isEqual(t)||(s._attachLiveRange(Tt.fromRange(t)),h=!0),n!=s.managedUsingOperations&&(s._managedUsingOperations=n,h=!0),typeof o=="boolean"&&o!=s.affectsData&&(s._affectsData=o,h=!0),h&&this.fire(`update:${r}`,s,u,t,d),s}const a=Tt.fromRange(t),c=new Ni(r,a,n,o);var l;return this._markers.set(r,c),this.fire(`update:${r}`,c,null,t,(l=((d,u)=>{for(var h in u||(u={}))nv.call(u,h)&&uh(d,h,u[h]);if(dh)for(var h of dh(u))iv.call(u,h)&&uh(d,h,u[h]);return d})({},c.getData()),ev(l,tv({range:null})))),c}_remove(e){const t=e instanceof Ni?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire(`update:${t}`,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}_refresh(e){const t=e instanceof Ni?e.name:e,n=this._markers.get(t);if(!n)throw new B("markercollection-refresh-marker-not-exists",this);const o=n.getRange();this.fire(`update:${t}`,n,o,o,n.getData())}*getMarkersAtPosition(e){for(const t of this)t.getRange().containsPosition(e)&&(yield t)}*getMarkersIntersectingRange(e){for(const t of this)t.getRange().getIntersection(e)!==null&&(yield t)}destroy(){for(const e of this._markers.values())this._destroyMarker(e);this._markers=null,this.stopListening()}*getMarkersGroup(e){for(const t of this._markers.values())t.name.startsWith(e+":")&&(yield t)}_destroyMarker(e){e.stopListening(),e._detachLiveRange()}}class Ni extends ye(Bn){constructor(e,t,n,o){super(),this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=n,this._affectsData=o}get managedUsingOperations(){if(!this._liveRange)throw new B("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new B("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new B("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new B("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new B("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Ni.prototype.is=function(i){return i==="marker"||i==="model:marker"};class rv extends Mt{constructor(e,t){super(null),this.sourcePosition=e.clone(),this.howMany=t}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e}_validate(){if(this.sourcePosition.root.document)throw new B("detach-operation-on-document-node",this)}_execute(){qu(F._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class pn extends Bn{constructor(e){super(),this.markers=new Map,this._children=new _o,e&&this._insertChild(0,e)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}getPath(){return[]}getNodeByPath(e){let t=this;for(const n of e)t=t.getChild(t.offsetToIndex(n));return t}offsetToIndex(e){return this._children.offsetToIndex(e)}toJSON(){const e=[];for(const t of this._children)e.push(t.toJSON());return e}static fromJSON(e){const t=[];for(const n of e)n.name?t.push(Te.fromJSON(n)):t.push(Be.fromJSON(n));return new pn(t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const n=function(o){return typeof o=="string"?[new Be(o)]:(Ee(o)||(o=[o]),Array.from(o).map(r=>typeof r=="string"?new Be(r):r instanceof Qt?new Be(r.data,r.getAttributes()):r))}(t);for(const o of n)o.parent!==null&&o._remove(),o.parent=this;this._children._insertNodes(e,n)}_removeChildren(e,t=1){const n=this._children._removeNodes(e,t);for(const o of n)o.parent=null;return n}}pn.prototype.is=function(i){return i==="documentFragment"||i==="model:documentFragment"};class sv{constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new Be(e,t)}createElement(e,t){return new Te(e,t)}createDocumentFragment(){return new pn}cloneElement(e,t=!0){return e._clone(t)}insert(e,t,n=0){if(this._assertWriterUsedCorrectly(),e instanceof Be&&e.data=="")return;const o=q._createAt(t,n);if(e.parent){if(mh(e.root,o.root))return void this.move(F._createOn(e),o);if(e.root.document)throw new B("model-writer-insert-forbidden-move",this);this.remove(e)}const r=o.root.document?o.root.document.version:null,s=new lt(o,e,r);if(e instanceof Be&&(s.shouldReceiveAttributes=!0),this.batch.addOperation(s),this.model.applyOperation(s),e instanceof pn)for(const[a,c]of e.markers){const l=q._createAt(c.root,0),d={range:new F(c.start._getCombined(l,o),c.end._getCombined(l,o)),usingOperation:!0,affectsData:!0};this.model.markers.has(a)?this.updateMarker(a,d):this.addMarker(a,d)}}insertText(e,t,n,o){t instanceof pn||t instanceof Te||t instanceof q?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,o)}insertElement(e,t,n,o){t instanceof pn||t instanceof Te||t instanceof q?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,o)}append(e,t){this.insert(e,t,"end")}appendText(e,t,n){t instanceof pn||t instanceof Te?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}appendElement(e,t,n){t instanceof pn||t instanceof Te?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}setAttribute(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof F){const o=n.getMinimalFlatRanges();for(const r of o)hh(this,e,t,r)}else gh(this,e,t,n)}setAttributes(e,t){for(const[n,o]of sn(e))this.setAttribute(n,o,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof F){const n=t.getMinimalFlatRanges();for(const o of n)hh(this,e,null,o)}else gh(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();const t=n=>{for(const o of n.getAttributeKeys())this.removeAttribute(o,n)};if(e instanceof F)for(const n of e.getItems())t(n);else t(e)}move(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof F))throw new B("writer-move-invalid-range",this);if(!e.isFlat)throw new B("writer-move-range-not-flat",this);const o=q._createAt(t,n);if(o.isEqual(e.start))return;if(this._addOperationForAffectedMarkers("move",e),!mh(e.root,o.root))throw new B("writer-move-different-document",this);const r=e.root.document?e.root.document.version:null,s=new _e(e.start,e.end.offset-e.start.offset,o,r);this.batch.addOperation(s),this.model.applyOperation(s)}remove(e){this._assertWriterUsedCorrectly();const t=(e instanceof F?e:F._createOn(e)).getMinimalFlatRanges().reverse();for(const n of t)this._addOperationForAffectedMarkers("move",n),av(n.start,n.end.offset-n.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();const t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof Te))throw new B("writer-merge-no-element-before",this);if(!(n instanceof Te))throw new B("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,n){return this.model.createPositionFromPath(e,t,n)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(...e){return this.model.createSelection(...e)}_mergeDetached(e){const t=e.nodeBefore,n=e.nodeAfter;this.move(F._createIn(n),q._createAt(t,"end")),this.remove(n)}_merge(e){const t=q._createAt(e.nodeBefore,"end"),n=q._createAt(e.nodeAfter,0),o=e.root.document.graveyard,r=new q(o,[0]),s=e.root.document.version,a=new Ke(n,e.nodeAfter.maxOffset,t,r,s);this.batch.addOperation(a),this.model.applyOperation(a)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof Te))throw new B("writer-rename-not-element-instance",this);const n=e.root.document?e.root.document.version:null,o=new bt(q._createBefore(e),e.name,t,n);this.batch.addOperation(o),this.model.applyOperation(o)}split(e,t){this._assertWriterUsedCorrectly();let n,o,r=e.parent;if(!r.parent)throw new B("writer-split-element-no-parent",this);if(t||(t=r.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new B("writer-split-invalid-limit-element",this);do{const s=r.root.document?r.root.document.version:null,a=r.maxOffset-e.offset,c=Ne.getInsertionPosition(e),l=new Ne(e,a,c,null,s);this.batch.addOperation(l),this.model.applyOperation(l),n||o||(n=r,o=e.parent.nextSibling),r=(e=this.createPositionAfter(e.parent)).parent}while(r!==t);return{position:e,range:new F(q._createAt(n,"end"),q._createAt(o,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new B("writer-wrap-range-not-flat",this);const n=t instanceof Te?t:new Te(t);if(n.childCount>0)throw new B("writer-wrap-element-not-empty",this);if(n.parent!==null)throw new B("writer-wrap-element-attached",this);this.insert(n,e.start);const o=new F(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(o,q._createAt(n,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),e.parent===null)throw new B("writer-unwrap-element-no-parent",this);this.move(F._createIn(e),this.createPositionAfter(e)),this.remove(e)}addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||typeof t.usingOperation!="boolean")throw new B("writer-addmarker-no-usingoperation",this);const n=t.usingOperation,o=t.range,r=t.affectsData!==void 0&&t.affectsData;if(this.model.markers.has(e))throw new B("writer-addmarker-marker-exists",this);if(!o)throw new B("writer-addmarker-no-range",this);return n?(To(this,e,null,o,r),this.model.markers.get(e)):this.model.markers._set(e,o,n,r)}updateMarker(e,t){this._assertWriterUsedCorrectly();const n=typeof e=="string"?e:e.name,o=this.model.markers.get(n);if(!o)throw new B("writer-updatemarker-marker-not-exists",this);if(!t)return X("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(o);const r=typeof t.usingOperation=="boolean",s=typeof t.affectsData=="boolean",a=s?t.affectsData:o.affectsData;if(!r&&!t.range&&!s)throw new B("writer-updatemarker-wrong-options",this);const c=o.getRange(),l=t.range?t.range:c;r&&t.usingOperation!==o.managedUsingOperations?t.usingOperation?To(this,n,null,l,a):(To(this,n,c,null,a),this.model.markers._set(n,l,void 0,a)):o.managedUsingOperations?To(this,n,c,l,a):this.model.markers._set(n,l,void 0,a)}removeMarker(e){this._assertWriterUsedCorrectly();const t=typeof e=="string"?e:e.name;if(!this.model.markers.has(t))throw new B("writer-removemarker-no-marker",this);const n=this.model.markers.get(t);if(!n.managedUsingOperations)return void this.model.markers._remove(t);To(this,t,n.getRange(),null,n.affectsData)}addRoot(e,t="$root"){this._assertWriterUsedCorrectly();const n=this.model.document.getRoot(e);if(n&&n.isAttached())throw new B("writer-addroot-root-exists",this);const o=this.model.document,r=new dn(e,t,!0,o,o.version);return this.batch.addOperation(r),this.model.applyOperation(r),this.model.document.getRoot(e)}detachRoot(e){this._assertWriterUsedCorrectly();const t=typeof e=="string"?this.model.document.getRoot(e):e;if(!t||!t.isAttached())throw new B("writer-detachroot-no-root",this);for(const r of this.model.markers)r.getRange().root===t&&this.removeMarker(r);for(const r of t.getAttributeKeys())this.removeAttribute(r,t);this.remove(this.createRangeIn(t));const n=this.model.document,o=new dn(t.rootName,t.name,!1,n,n.version);this.batch.addOperation(o),this.model.applyOperation(o)}setSelection(...e){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...e)}setSelectionFocus(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}setSelectionAttribute(e,t){if(this._assertWriterUsedCorrectly(),typeof e=="string")this._setSelectionAttribute(e,t);else for(const[n,o]of sn(e))this._setSelectionAttribute(n,o)}removeSelectionAttribute(e){if(this._assertWriterUsedCorrectly(),typeof e=="string")this._removeSelectionAttribute(e);else for(const t of e)this._removeSelectionAttribute(t)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const o=Zt._getStoreAttributeKey(e);this.setAttribute(o,t,n.anchor.parent)}n._setAttribute(e,t)}_removeSelectionAttribute(e){const t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){const n=Zt._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new B("writer-incorrect-use",this)}_addOperationForAffectedMarkers(e,t){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const o=n.getRange();let r=!1;if(e==="move"){const s=t;r=s.containsPosition(o.start)||s.start.isEqual(o.start)||s.containsPosition(o.end)||s.end.isEqual(o.end)}else{const s=t,a=s.nodeBefore,c=s.nodeAfter,l=o.start.parent==a&&o.start.isAtEnd,d=o.end.parent==c&&o.end.offset==0,u=o.end.nodeAfter==c,h=o.start.nodeAfter==c;r=l||d||u||h}r&&this.updateMarker(n.name,{range:o})}}}function hh(i,e,t,n){const o=i.model,r=o.document;let s,a,c,l=n.start;for(const u of n.getWalker({shallow:!0}))c=u.item.getAttribute(e),s&&a!=c&&(a!=t&&d(),l=s),s=u.nextPosition,a=c;function d(){const u=new F(l,s),h=u.root.document?r.version:null,m=new Xe(u,e,a,t,h);i.batch.addOperation(m),o.applyOperation(m)}s instanceof q&&s!=l&&a!=t&&d()}function gh(i,e,t,n){const o=i.model,r=o.document,s=n.getAttribute(e);let a,c;if(s!=t){if(n.root===n){const l=n.document?r.version:null;c=new mn(n,e,s,t,l)}else{a=new F(q._createBefore(n),i.createPositionAfter(n));const l=a.root.document?r.version:null;c=new Xe(a,e,s,t,l)}i.batch.addOperation(c),o.applyOperation(c)}}function To(i,e,t,n,o){const r=i.model,s=r.document,a=new kt(e,t,n,r.markers,!!o,s.version);i.batch.addOperation(a),r.applyOperation(a)}function av(i,e,t,n){let o;if(i.root.document){const r=n.document,s=new q(r.graveyard,[0]);o=new _e(i,e,s,r.version)}else o=new rv(i,e);t.addOperation(o),n.applyOperation(o)}function mh(i,e){return i===e||i instanceof Lr&&e instanceof Lr}function cv(i,e,t={}){if(e.isCollapsed)return;const n=e.getFirstRange();if(n.root.rootName=="$graveyard")return;const o=i.schema;i.change(r=>{if(!t.doNotResetEntireContent&&function(l,d){const u=l.getLimitElement(d);if(!d.containsEntireContent(u))return!1;const h=d.getFirstRange();return h.start.parent==h.end.parent?!1:l.checkChild(u,"paragraph")}(o,e))return void function(l,d){const u=l.model.schema.getLimitElement(d);l.remove(l.createRangeIn(u)),kh(l,l.createPositionAt(u,0),d)}(r,e);const s={};if(!t.doNotAutoparagraph){const l=e.getSelectedElement();l&&Object.assign(s,o.getAttributesWithProperty(l,"copyOnReplace",!0))}const[a,c]=function(l){const d=l.root.document.model,u=l.start;let h=l.end;if(d.hasContent(l,{ignoreMarkers:!0})){const m=function(k){const A=k.parent,E=A.root.document.model.schema,S=A.getAncestors({parentFirst:!0,includeSelf:!0});for(const O of S){if(E.isLimit(O))return null;if(E.isBlock(O))return O}}(h);if(m&&h.isTouching(d.createPositionAt(m,0))){const k=d.createSelection(l);d.modifySelection(k,{direction:"backward"});const A=k.getLastPosition(),E=d.createRange(A,h);d.hasContent(E,{ignoreMarkers:!0})||(h=A)}}return[ht.fromPosition(u,"toPrevious"),ht.fromPosition(h,"toNext")]}(n);a.isTouching(c)||r.remove(r.createRange(a,c)),t.leaveUnmerged||(function(l,d,u){const h=l.model;if(!Sa(l.model.schema,d,u))return;const[m,k]=function(A,E){const S=A.getAncestors(),O=E.getAncestors();let z=0;for(;S[z]&&S[z]==O[z];)z++;return[S[z],O[z]]}(d,u);!m||!k||(!h.hasContent(m,{ignoreMarkers:!0})&&h.hasContent(k,{ignoreMarkers:!0})?fh(l,d,u,m.parent):ph(l,d,u,m.parent))}(r,a,c),o.removeDisallowedAttributes(a.parent.getChildren(),r)),bh(r,e,a),!t.doNotAutoparagraph&&function(l,d){const u=l.checkChild(d,"$text"),h=l.checkChild(d,"paragraph");return!u&&h}(o,a)&&kh(r,a,e,s),a.detach(),c.detach()})}function ph(i,e,t,n){const o=e.parent,r=t.parent;if(o!=n&&r!=n){for(e=i.createPositionAfter(o),(t=i.createPositionBefore(r)).isEqual(e)||i.insert(r,e),i.merge(e);t.parent.isEmpty;){const s=t.parent;t=i.createPositionBefore(s),i.remove(s)}Sa(i.model.schema,e,t)&&ph(i,e,t,n)}}function fh(i,e,t,n){const o=e.parent,r=t.parent;if(o!=n&&r!=n){for(e=i.createPositionAfter(o),(t=i.createPositionBefore(r)).isEqual(e)||i.insert(o,t);e.parent.isEmpty;){const s=e.parent;e=i.createPositionBefore(s),i.remove(s)}t=i.createPositionBefore(r),function(s,a){const c=a.nodeBefore,l=a.nodeAfter;c.name!=l.name&&s.rename(c,l.name),s.clearAttributes(c),s.setAttributes(Object.fromEntries(l.getAttributes()),c),s.merge(a)}(i,t),Sa(i.model.schema,e,t)&&fh(i,e,t,n)}}function Sa(i,e,t){const n=e.parent,o=t.parent;return n!=o&&!i.isLimit(n)&&!i.isLimit(o)&&function(r,s,a){const c=new F(r,s);for(const l of c.getWalker())if(a.isLimit(l.item))return!1;return!0}(e,t,i)}function kh(i,e,t,n={}){const o=i.createElement("paragraph");i.model.schema.setAllowedAttributes(o,n,i),i.insert(o,e),bh(i,t,i.createPositionAt(o,0))}function bh(i,e,t){e instanceof Zt?i.setSelection(t):e.setTo(t)}function wh(i,e){const t=[];Array.from(i.getItems({direction:"backward"})).map(n=>e.createRangeOn(n)).filter(n=>(n.start.isAfter(i.start)||n.start.isEqual(i.start))&&(n.end.isBefore(i.end)||n.end.isEqual(i.end))).forEach(n=>{t.push(n.start.parent),e.remove(n)}),t.forEach(n=>{let o=n;for(;o.parent&&o.isEmpty;){const r=e.createRangeOn(o);o=o.parent,e.remove(r)}})}class lv{constructor(e,t,n){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=e,this.writer=t,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._documentFragment=t.createDocumentFragment(),this._documentFragmentPosition=t.createPositionAt(this._documentFragment,0)}handleNodes(e){for(const t of Array.from(e))this._handleNode(t);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(e){const t=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(e);if(n.isAfter(t)){if(this._lastNode=e,this.position.parent!=e||!this.position.isAtEnd)throw new B("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?F._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new F(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(e){if(this.schema.isObject(e))return void this._handleObject(e);let t=this._checkAndAutoParagraphToAllowedPosition(e);t||(t=this._checkAndSplitToAllowedPosition(e),t)?(this._appendToFragment(e),this._firstNode||(this._firstNode=e),this._lastNode=e):this._handleDisallowedNode(e)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const e=ht.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=e.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=e.toPosition(),e.detach()}_handleObject(e){this._checkAndSplitToAllowedPosition(e)?this._appendToFragment(e):this._tryAutoparagraphing(e)}_handleDisallowedNode(e){e.is("element")?this.handleNodes(e.getChildren()):this._tryAutoparagraphing(e)}_appendToFragment(e){if(!this.schema.checkChild(this.position,e))throw new B("insertcontent-wrong-position",this,{node:e,position:this.position});this.writer.insert(e,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(e.offsetSize),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=e:this._nodeToSelect=null,this._filterAttributesOf.push(e)}_setAffectedBoundaries(e){this._affectedStart||(this._affectedStart=ht.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=ht.fromPosition(e,"toNext"))}_mergeOnLeft(){const e=this._firstNode;if(!(e instanceof Te)||!this._canMergeLeft(e))return;const t=ht._createBefore(e);t.stickiness="toNext";const n=ht.fromPosition(this.position,"toNext");this._affectedStart.isEqual(t)&&(this._affectedStart.detach(),this._affectedStart=ht._createAt(t.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=ht._createAt(t.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_mergeOnRight(){const e=this._lastNode;if(!(e instanceof Te)||!this._canMergeRight(e))return;const t=ht._createAfter(e);if(t.stickiness="toNext",!this.position.isEqual(t))throw new B("insertcontent-invalid-insertion-position",this);this.position=q._createAt(t.nodeBefore,"end");const n=ht.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(t)&&(this._affectedEnd.detach(),this._affectedEnd=ht._createAt(t.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=ht._createAt(t.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_canMergeLeft(e){const t=e.previousSibling;return t instanceof Te&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(t,e)}_canMergeRight(e){const t=e.nextSibling;return t instanceof Te&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(e,t)}_tryAutoparagraphing(e){const t=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,t)&&this.schema.checkChild(t,e)&&(t._appendChild(e),this._handleNode(t))}_checkAndAutoParagraphToAllowedPosition(e){if(this.schema.checkChild(this.position.parent,e))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",e))return!1;this._insertPartialFragment();const t=this.writer.createElement("paragraph");return this.writer.insert(t,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=t,this.position=this.writer.createPositionAt(t,0),!0}_checkAndSplitToAllowedPosition(e){const t=this._getAllowedIn(this.position.parent,e);if(!t)return!1;for(t!=this.position.parent&&this._insertPartialFragment();t!=this.position.parent;)if(this.position.isAtStart){const n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===t&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const n=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=n,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(e,t){return this.schema.checkChild(e,t)?e:this.schema.isLimit(e)?null:this._getAllowedIn(e.parent,t)}}function dv(i,e,t,n={}){if(!i.schema.isObject(e))throw new B("insertobject-element-not-an-object",i,{object:e});const o=t||i.document.selection;let r=o;n.findOptimalPosition&&i.schema.isBlock(e)&&(r=i.createSelection(i.schema.findOptimalInsertionRange(o,n.findOptimalPosition)));const s=at(o.getSelectedBlocks()),a={};return s&&Object.assign(a,i.schema.getAttributesWithProperty(s,"copyOnReplace",!0)),i.change(c=>{r.isCollapsed||i.deleteContent(r,{doNotAutoparagraph:!0});let l=e;const d=r.anchor.parent;!i.schema.checkChild(d,e)&&i.schema.checkChild(d,"paragraph")&&i.schema.checkChild("paragraph",e)&&(l=c.createElement("paragraph"),c.insert(e,l)),i.schema.setAllowedAttributes(l,a,c);const u=i.insertContent(l,r);return u.isCollapsed||n.setSelection&&function(h,m,k,A){const E=h.model;if(k=="on")return void h.setSelection(m,"on");if(k!="after")throw new B("insertobject-invalid-place-parameter-value",E);let S=m.nextSibling;if(E.schema.isInline(m))return void h.setSelection(m,"after");!(S&&E.schema.checkChild(S,"$text"))&&E.schema.checkChild(m.parent,"paragraph")&&(S=h.createElement("paragraph"),E.schema.setAllowedAttributes(S,A,h),E.insertContent(S,h.createPositionAfter(m))),S&&h.setSelection(S,0)}(c,e,n.setSelection,a),u})}const uv=' ,.?!:;"-()';function hv(i,e){const{isForward:t,walker:n,unit:o,schema:r,treatEmojiAsSingleUnit:s}=i,{type:a,item:c,nextPosition:l}=e;if(a=="text")return i.unit==="word"?function(d,u){let h=d.position.textNode;for(h||(h=u?d.position.nodeAfter:d.position.nodeBefore);h&&h.is("$text");){const m=d.position.offset-h.startOffset;if(pv(h,m,u))h=u?d.position.nodeAfter:d.position.nodeBefore;else{if(mv(h.data,m,u))break;d.next()}}return d.position}(n,t):function(d,u,h){const m=d.position.textNode;if(m){const k=m.data;let A=d.position.offset-m.startOffset;for(;Qs(k,A)||u=="character"&&Zs(k,A)||h&&sd(k,A);)d.next(),A=d.position.offset-m.startOffset}return d.position}(n,o,s);if(a==(t?"elementStart":"elementEnd")){if(r.isSelectable(c))return q._createAt(c,t?"after":"before");if(r.checkChild(l,"$text"))return l}else{if(r.isLimit(c))return void n.skip(()=>!0);if(r.checkChild(l,"$text"))return l}}function gv(i,e){const t=i.root,n=q._createAt(t,e?"end":0);return e?new F(i,n):new F(n,i)}function mv(i,e,t){const n=e+(t?0:-1);return uv.includes(i.charAt(n))}function pv(i,e,t){return e===(t?i.offsetSize:0)}class fv extends xe(){constructor(){super(),this.markers=new ov,this.document=new JC(this),this.schema=new dC,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(e=>this.decorate(e)),this.on("applyOperation",(e,t)=>{t[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((e,t)=>{if(t.name==="$marker")return!0}),aC(this),this.document.registerPostFixer(Mu),this.on("insertContent",(e,[t,n])=>{e.return=function(o,r,s){return o.change(a=>{const c=s||o.document.selection;c.isCollapsed||o.deleteContent(c,{doNotAutoparagraph:!0});const l=new lv(o,a,c.anchor),d=[];let u;if(r.is("documentFragment")){if(r.markers.size){const k=[];for(const[A,E]of r.markers){const{start:S,end:O}=E,z=S.isEqual(O);k.push({position:S,name:A,isCollapsed:z},{position:O,name:A,isCollapsed:z})}k.sort(({position:A},{position:E})=>A.isBefore(E)?1:-1);for(const{position:A,name:E,isCollapsed:S}of k){let O=null,z=null;const H=A.parent===r&&A.isAtStart,Q=A.parent===r&&A.isAtEnd;H||Q?S&&(z=H?"start":"end"):(O=a.createElement("$marker"),a.insert(O,A)),d.push({name:E,element:O,collapsed:z})}}u=r.getChildren()}else u=[r];l.handleNodes(u);let h=l.getSelectionRange();if(r.is("documentFragment")&&d.length){const k=h?Tt.fromRange(h):null,A={};for(let E=d.length-1;E>=0;E--){const{name:S,element:O,collapsed:z}=d[E],H=!A[S];if(H&&(A[S]=[]),O){const Q=a.createPositionAt(O,"before");A[S].push(Q),a.remove(O)}else{const Q=l.getAffectedRange();if(!Q){z&&A[S].push(l.position);continue}z?A[S].push(Q[z]):A[S].push(H?Q.start:Q.end)}}for(const[E,[S,O]]of Object.entries(A))S&&O&&S.root===O.root&&S.root.document&&!a.model.markers.has(E)&&a.addMarker(E,{usingOperation:!0,affectsData:!0,range:new F(S,O)});k&&(h=k.toRange(),k.detach())}h&&(c instanceof Zt?a.setSelection(h):c.setTo(h));const m=l.getAffectedRange()||o.createRange(c.anchor);return l.destroy(),m})}(this,t,n)}),this.on("insertObject",(e,[t,n,o])=>{e.return=dv(this,t,n,o)}),this.on("canEditAt",e=>{const t=!this.document.isReadOnly;e.return=t,t||e.stop()})}change(e){try{return this._pendingChanges.length===0?(this._pendingChanges.push({batch:new Bi,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(t){B.rethrowUnexpectedError(t,this)}}enqueueChange(e,t){try{e?typeof e=="function"?(t=e,e=new Bi):e instanceof Bi||(e=new Bi(e)):e=new Bi,this._pendingChanges.push({batch:e,callback:t}),this._pendingChanges.length==1&&this._runPendingChanges()}catch(n){B.rethrowUnexpectedError(n,this)}}applyOperation(e){e._execute()}insertContent(e,t,n,...o){const r=Ba(t,n);return this.fire("insertContent",[e,r,n,...o])}insertObject(e,t,n,o,...r){const s=Ba(t,n);return this.fire("insertObject",[e,s,o,o,...r])}deleteContent(e,t){cv(this,e,t)}modifySelection(e,t){(function(n,o,r={}){const s=n.schema,a=r.direction!="backward",c=r.unit?r.unit:"character",l=!!r.treatEmojiAsSingleUnit,d=o.focus,u=new gn({boundaries:gv(d,a),singleCharacters:!0,direction:a?"forward":"backward"}),h={walker:u,schema:s,isForward:a,unit:c,treatEmojiAsSingleUnit:l};let m;for(;m=u.next();){if(m.done)return;const k=hv(h,m.value);if(k)return void(o instanceof Zt?n.change(A=>{A.setSelectionFocus(k)}):o.setFocus(k))}})(this,e,t)}getSelectedContent(e){return function(t,n){return t.change(o=>{const r=o.createDocumentFragment(),s=n.getFirstRange();if(!s||s.isCollapsed)return r;const a=s.start.root,c=s.start.getCommonPath(s.end),l=a.getNodeByPath(c);let d;d=s.start.parent==s.end.parent?s:o.createRange(o.createPositionAt(l,s.start.path[c.length]),o.createPositionAt(l,s.end.path[c.length]+1));const u=d.end.offset-d.start.offset;for(const h of d.getItems({shallow:!0}))h.is("$textProxy")?o.appendText(h.data,h.getAttributes(),r):o.append(o.cloneElement(h,!0),r);if(d!=s){const h=s._getTransformedByMove(d.start,o.createPositionAt(r,0),u)[0],m=o.createRange(o.createPositionAt(r,0),h.start);wh(o.createRange(h.end,o.createPositionAt(r,"end")),o),wh(m,o)}return r})}(this,e)}hasContent(e,t={}){const n=e instanceof F?e:F._createIn(e);if(n.isCollapsed)return!1;const{ignoreWhitespaces:o=!1,ignoreMarkers:r=!1}=t;if(!r){for(const s of this.markers.getMarkersIntersectingRange(n))if(s.affectsData)return!0}for(const s of n.getItems())if(this.schema.isContent(s)&&(!s.is("$textProxy")||!o||s.data.search(/\S/)!==-1))return!0;return!1}canEditAt(e){const t=Ba(e);return this.fire("canEditAt",[t])}createPositionFromPath(e,t,n){return new q(e,t,n)}createPositionAt(e,t){return q._createAt(e,t)}createPositionAfter(e){return q._createAfter(e)}createPositionBefore(e){return q._createBefore(e)}createRange(e,t){return new F(e,t)}createRangeIn(e){return F._createIn(e)}createRangeOn(e){return F._createOn(e)}createSelection(...e){return new Et(...e)}createBatch(e){return new Bi(e)}createOperationFromJSON(e){return BC.fromJSON(e,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const e=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const t=this._pendingChanges[0].batch;this._currentWriter=new sv(this,t);const n=this._pendingChanges[0].callback(this._currentWriter);e.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return e}}function Ba(i,e){if(i)return i instanceof Et||i instanceof Zt?i:i instanceof Qn?e||e===0?new Et(i,e):i.is("rootElement")?new Et(i,"in"):new Et(i,"on"):new Et(i)}class kv extends Sn{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(e){this.fire(e.type,e)}}class Na extends Sn{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(e){this.fire(e.type,e)}}class fn{constructor(e){this.document=e}createDocumentFragment(e){return new Yn(this.document,e)}createElement(e,t,n){return new xt(this.document,e,t,n)}createText(e){return new Se(this.document,e)}clone(e,t=!1){return e._clone(t)}appendChild(e,t){return t._appendChild(e)}insertChild(e,t,n){return n._insertChild(e,t)}removeChildren(e,t,n){return n._removeChildren(e,t)}remove(e){const t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}replace(e,t){const n=e.parent;if(n){const o=n.getChildIndex(e);return this.removeChildren(o,1,n),this.insertChild(o,t,n),!0}return!1}unwrapElement(e){const t=e.parent;if(t){const n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}rename(e,t){const n=new xt(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){yt(e)&&n===void 0?t._setStyle(e):n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}createPositionAt(e,t){return Y._createAt(e,t)}createPositionAfter(e){return Y._createAfter(e)}createPositionBefore(e){return Y._createBefore(e)}createRange(e,t){return new ie(e,t)}createRangeOn(e){return ie._createOn(e)}createRangeIn(e){return ie._createIn(e)}createSelection(...e){return new $t(...e)}}class bv{constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){const n=this.get(e);if(!n)throw new B("commandcollection-command-not-found",this,{commandName:e});return n.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const e of this.commands())e.destroy()}}var wv=Object.defineProperty,_h=Object.getOwnPropertySymbols,_v=Object.prototype.hasOwnProperty,Av=Object.prototype.propertyIsEnumerable,Ah=(i,e,t)=>e in i?wv(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;const Oa="contentEditing",Ch="common";class Cv{constructor(e){this.keystrokeInfos=new Map,this._editor=e;const t=e.config.get("menuBar.isVisible"),n=e.locale.t;this.addKeystrokeInfoCategory({id:Oa,label:n("Content editing keystrokes"),description:n("These keyboard shortcuts allow for quick access to content editing features.")});const o=[{label:n("Close contextual balloons, dropdowns, and dialogs"),keystroke:"Esc"},{label:n("Open the accessibility help dialog"),keystroke:"Alt+0"},{label:n("Move focus between form fields (inputs, buttons, etc.)"),keystroke:[["Tab"],["Shift+Tab"]]},{label:n("Move focus to the toolbar, navigate between toolbars"),keystroke:"Alt+F10",mayRequireFn:!0},{label:n("Navigate through the toolbar or menu bar"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]},{label:n("Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content."),keystroke:[["Enter"],["Space"]]}];t&&o.push({label:n("Move focus to the menu bar, navigate between menu bars"),keystroke:"Alt+F9",mayRequireFn:!0}),this.addKeystrokeInfoCategory({id:"navigation",label:n("User interface and content navigation keystrokes"),description:n("Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface."),groups:[{id:"common",keystrokes:o}]})}addKeystrokeInfoCategory({id:e,label:t,description:n,groups:o}){this.keystrokeInfos.set(e,{id:e,label:t,description:n,groups:new Map}),this.addKeystrokeInfoGroup({categoryId:e,id:Ch}),o&&o.forEach(r=>{this.addKeystrokeInfoGroup(((s,a)=>{for(var c in a||(a={}))_v.call(a,c)&&Ah(s,c,a[c]);if(_h)for(var c of _h(a))Av.call(a,c)&&Ah(s,c,a[c]);return s})({categoryId:e},r))})}addKeystrokeInfoGroup({categoryId:e=Oa,id:t,label:n,keystrokes:o}){const r=this.keystrokeInfos.get(e);if(!r)throw new B("accessibility-unknown-keystroke-info-category",this._editor,{groupId:t,categoryId:e});r.groups.set(t,{id:t,label:n,keystrokes:o||[]})}addKeystrokeInfos({categoryId:e=Oa,groupId:t=Ch,keystrokes:n}){if(!this.keystrokeInfos.has(e))throw new B("accessibility-unknown-keystroke-info-category",this._editor,{categoryId:e,keystrokes:n});const o=this.keystrokeInfos.get(e);if(!o.groups.has(t))throw new B("accessibility-unknown-keystroke-info-group",this._editor,{groupId:t,categoryId:e,keystrokes:n});o.groups.get(t).keystrokes.push(...n)}}var vh=Object.getOwnPropertySymbols,vv=Object.prototype.hasOwnProperty,yv=Object.prototype.propertyIsEnumerable,yh=(i,e)=>{var t={};for(var n in i)vv.call(i,n)&&e.indexOf(n)<0&&(t[n]=i[n]);if(i!=null&&vh)for(var n of vh(i))e.indexOf(n)<0&&yv.call(i,n)&&(t[n]=i[n]);return t};class xv extends xe(){constructor(e={}){super();const t=this.constructor,n=t.defaultConfig||{},{translations:o}=n,r=yh(n,["translations"]),s=e,{translations:a=o}=s,c=yh(s,["translations"]),l=e.language||r.language;this._context=e.context||new vd({language:l,translations:a}),this._context._addEditor(this,!e.context);const d=Array.from(t.builtinPlugins||[]);this.config=new Pl(c,r),this.config.define("plugins",d),this.config.define(this._context._getEditorConfig()),this.plugins=new Ad(this,d,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new bv,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new fv,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const u=new F0;this.data=new IC(this.model,u),this.editing=new cC(this.model,u),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new SC([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new b0(this),this.keystrokes.listenTo(this.editing.view.document),this.accessibility=new Cv(this)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(e){throw new B("editor-isreadonly-has-no-setter")}enableReadOnlyMode(e){if(typeof e!="string"&&typeof e!="symbol")throw new B("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)||(this._readOnlyLocks.add(e),this._readOnlyLocks.size===1&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(e){if(typeof e!="string"&&typeof e!="symbol")throw new B("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)&&(this._readOnlyLocks.delete(e),this._readOnlyLocks.size===0&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}setData(e){this.data.set(e)}getData(e){return this.data.get(e)}initPlugins(){const e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],o=e.get("extraPlugins")||[],r=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(o),n,r)}destroy(){let e=Promise.resolve();return this.state=="initializing"&&(e=new Promise(t=>this.once("ready",t))),e.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(e,...t){try{return this.commands.execute(e,...t)}catch(n){B.rethrowUnexpectedError(n,this)}}focus(){this.editing.view.focus()}static create(...e){throw new Error("This is an abstract method.")}}function Pa(i){return class extends i{updateSourceElement(e){if(!this.sourceElement)throw new B("editor-missing-sourceelement",this);const t=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;if(!t&&!n)return void Wl(this.sourceElement,"");const o=typeof e=="string"?e:this.data.get();Wl(this.sourceElement,o)}}}Pa.updateSourceElement=Pa(Object).prototype.updateSourceElement;class xh extends wr{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new qt({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if(typeof e!="string")throw new B("pendingactions-add-invalid-message",this);const t=new(xe());return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}remove(e){this._actions.remove(e),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const oe={bold:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',colorPalette:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.209 18.717A8.5 8.5 0 1 1 18.686 9.6h-.008l.002.12a3 3 0 0 1-2.866 2.997h-.268l-.046-.002v.002h-4.791a2 2 0 1 0 0 4 1 1 0 1 1-.128 1.992 8.665 8.665 0 0 1-.372.008Zm-3.918-7.01a1.25 1.25 0 1 0-2.415-.648 1.25 1.25 0 0 0 2.415.647ZM5.723 8.18a1.25 1.25 0 1 0 .647-2.414 1.25 1.25 0 0 0-.647 2.414ZM9.76 6.155a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Zm4.028 1.759a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Z"/></svg>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',history:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 1a9 9 0 1 1-8.027 13.075l1.128-1.129A7.502 7.502 0 0 0 18.5 10a7.5 7.5 0 1 0-14.962.759l-.745-.746-.76.76A9 9 0 0 1 11 1z"/><path d="M.475 8.17a.75.75 0 0 1 .978.047l.075.082 1.284 1.643 1.681-1.284a.75.75 0 0 1 .978.057l.073.083a.75.75 0 0 1-.057.978l-.083.073-2.27 1.737a.75.75 0 0 1-.973-.052l-.074-.082-1.741-2.23a.75.75 0 0 1 .13-1.052z"/><path d="M11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.66 9.118a.693.693 0 0 1 .956.032l3.65 3.411 2.422-2.238a.695.695 0 0 1 .945 0L17.5 13.6V2.5h-15v11.1l4.16-4.482ZM17.8 1c.652 0 1.2.47 1.2 1.1v14.362c0 .64-.532 1.038-1.184 1.038H2.184C1.532 17.5 1 17.103 1 16.462V2.1C1 1.47 1.537 1 2.2 1h15.6Zm-5.655 6a2.128 2.128 0 0 1 .157-2.364A2.133 2.133 0 1 1 12.145 7Z"/></svg>',imageUpload:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h9.494a2.97 2.97 0 0 1-.414-.287 2.998 2.998 0 0 1-1.055-2.03 3.003 3.003 0 0 1 .693-2.185l.383-.455-.02.018-3.65-3.41a.695.695 0 0 0-.957-.034L1.5 13.6V2.5h15v5.535a2.97 2.97 0 0 1 1.412.932l.088.105V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.146 2.146 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.644-3.11 2.134 2.134 0 0 0-1.875-.978Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/></svg>',imageAssetManager:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1c-.662 0-1.2.47-1.2 1.1v14.248c0 .64.533 1.152 1.185 1.152h6.623v-7.236L6.617 9.15a.694.694 0 0 0-.957-.033L1.602 13.55V2.553l14.798.003V9.7H18V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.094 2.094 0 0 0-1.621.832 2.127 2.127 0 0 0 1.136 3.357 2.13 2.13 0 0 0 2.611-1.506 2.133 2.133 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.366-.44Z"/><path clip-rule="evenodd" d="M19.898 12.369v6.187a.844.844 0 0 1-.844.844h-8.719a.844.844 0 0 1-.843-.844v-7.312a.844.844 0 0 1 .843-.844h2.531a.843.843 0 0 1 .597.248l.838.852h4.75c.223 0 .441.114.6.272a.844.844 0 0 1 .247.597Zm-1.52.654-4.377.02-1.1-1.143H11v6h7.4l-.023-4.877Z"/></svg>',imageUrl:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h7.029a5.401 5.401 0 0 1 .615-4.338l.762-1.232-2.975-2.78a.696.696 0 0 0-.957-.033L1.5 13.6V2.5h15v6.023c.449.131.887.32 1.307.573l.058.033c.046.028.09.057.135.086V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.15 2.15 0 0 0-1.611.834 2.118 2.118 0 0 0-.438 1.158 2.14 2.14 0 0 0 1.277 2.096 2.132 2.132 0 0 0 2.645-3.11 2.13 2.13 0 0 0-1.873-.978Z"/><path d="M16.63 10.294a3.003 3.003 0 0 0-4.142.887l-.117.177a.647.647 0 0 0-.096.492.664.664 0 0 0 .278.418.7.7 0 0 0 .944-.234 1.741 1.741 0 0 1 2.478-.463 1.869 1.869 0 0 1 .476 2.55.637.637 0 0 0-.071.5.646.646 0 0 0 .309.396.627.627 0 0 0 .869-.19l.027-.041a3.226 3.226 0 0 0-.956-4.492Zm-6.061 3.78-.044.066a3.228 3.228 0 0 0 .82 4.403 3.005 3.005 0 0 0 4.275-.798l.13-.197a.626.626 0 0 0 .092-.475.638.638 0 0 0-.268-.402.713.713 0 0 0-.99.26l-.018.029a1.741 1.741 0 0 1-2.477.461 1.87 1.87 0 0 1-.475-2.55l.029-.047a.647.647 0 0 0 .086-.485.66.66 0 0 0-.275-.408l-.04-.027a.609.609 0 0 0-.845.17Z"/><path d="M15.312 13.925c.24-.36.154-.838-.19-1.067-.346-.23-.82-.124-1.059.236l-1.268 1.907c-.239.36-.153.838.192 1.067.345.23.818.123 1.057-.236l1.268-1.907Z"/></svg>',lowVision:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',textAlternative:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.035 1C2.446 1 2 1.54 2 2.098V10.5h1.5v-8h13v8H18V2.098C18 1.539 17.48 1 16.9 1H3.035Zm10.453 2.61a1.885 1.885 0 0 0-1.442.736 1.89 1.89 0 0 0 1.011 2.976 1.903 1.903 0 0 0 2.253-1.114 1.887 1.887 0 0 0-1.822-2.598ZM7.463 8.163a.611.611 0 0 0-.432.154L5.071 10.5h5.119L7.88 8.348a.628.628 0 0 0-.417-.185Zm6.236 1.059a.62.62 0 0 0-.42.164L12.07 10.5h2.969l-.92-1.113a.618.618 0 0 0-.42-.165ZM.91 11.5a.91.91 0 0 0-.91.912v6.877c0 .505.405.91.91.91h18.178a.91.91 0 0 0 .912-.91v-6.877a.908.908 0 0 0-.912-.912H.91ZM3.668 13h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516L3.668 13Zm4.947 0h1.801v4.3h2.7v1.4h-4.5V13h-.001Zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9V13h-.001Zm-8.517 1.457-.614 2.059h1.262l-.648-2.059Z"/></svg>',loupe:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.68 13.74h-.001l4.209 4.208a1 1 0 1 0 1.414-1.414l-4.267-4.268a6 6 0 1 0-1.355 1.474ZM13 9a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/></svg>',previousArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>',nextArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeCustom:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:v="https://vecta.io/nano" viewBox="0 0 20 20"><path d="M.95 1.43a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h.75v6.3H.95a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-.65h1.932l1.539-1.5H5v-.95a.95.95 0 0 0-.95-.95H3.2v-6.3h.85A.95.95 0 0 0 5 5.48v-.55h10v.55a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-3.1a.95.95 0 0 0-.95-.95h-3.1a.95.95 0 0 0-.95.95v1.05H5V2.38a.95.95 0 0 0-.95-.95H.95zm.55 3.5v-2h2v2h-2zm0 9.3v2h2v-2h-2zm15-11.3v2h2v-2h-2z"/><path d="M8.139 20.004v-2.388l7.045-7.048 2.391 2.391-7.046 7.046h-2.39zm11.421-9.101a.64.64 0 0 1-.138.206l-1.165 1.168-2.391-2.391 1.167-1.163a.63.63 0 0 1 .206-.138.635.635 0 0 1 .243-.049.63.63 0 0 1 .449.187l1.491 1.488c.059.059.108.129.138.206s.049.16.049.243a.6.6 0 0 1-.049.243z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M13 5.5H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2ZM13 7a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-8A.5.5 0 0 1 2 7h11Z"/></svg>',objectSizeSmall:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M7 9.5H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2ZM7 11a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4A.5.5 0 0 1 2 11h5Z"/></svg>',objectSizeMedium:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M10 7.5H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2ZM10 9a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6A.5.5 0 0 1 2 9h8Z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>',dragIndicator:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/></svg>',redo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',undo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',bulletedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>',numberedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',todoList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m2.315 14.705 2.224-2.24a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .949L2.865 16.07a.682.682 0 0 1-.112.089.647.647 0 0 1-.852-.051L.688 14.886a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.717.722zm5.185.045a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75zM2.329 5.745l2.21-2.226a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .95L2.865 7.125a.685.685 0 0 1-.496.196.644.644 0 0 1-.468-.187L.688 5.912a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.73.736zM7.5 5.75A.75.75 0 0 1 8.25 5h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',codeBlock:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.87 12.61a.75.75 0 0 1-.089.976l-.085.07-3.154 2.254 3.412 2.414a.75.75 0 0 1 .237.95l-.057.095a.75.75 0 0 1-.95.237l-.096-.058-4.272-3.022-.003-1.223 4.01-2.867a.75.75 0 0 1 1.047.174zm2.795-.231.095.057 4.011 2.867-.003 1.223-4.272 3.022-.095.058a.75.75 0 0 1-.88-.151l-.07-.086-.058-.095a.75.75 0 0 1 .15-.88l.087-.07 3.412-2.414-3.154-2.253-.085-.071a.75.75 0 0 1 .862-1.207zM16 0a2 2 0 0 1 2 2v9.354l-.663-.492-.837-.001V2a.5.5 0 0 0-.5-.5H2a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h3.118L7.156 19H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14zM5.009 15l.003 1H3v-1h2.009zm2.188-2-1.471 1H5v-1h2.197zM10 11v.095L8.668 12H7v-1h3zm4-2v1H7V9h7zm0-2v1H7V7h7zm-4-2v1H5V5h5zM6 3v1H3V3h3z"/></svg>',browseFiles:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',heading1:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 9v10h-2v-8h-2V9h4zM4 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1V11H4v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H3a1 1 0 0 1 1 1v4.5z"/></svg>',heading2:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm16.076 8.343V18.5h-6.252c.067-.626.27-1.22.61-1.78.338-.561 1.006-1.305 2.005-2.232.804-.749 1.297-1.257 1.479-1.523.245-.368.368-.732.368-1.092 0-.398-.107-.703-.32-.917-.214-.214-.51-.32-.886-.32-.372 0-.669.111-.889.336-.22.224-.347.596-.38 1.117l-1.778-.178c.106-.982.438-1.686.997-2.114.558-.427 1.257-.64 2.095-.64.918 0 1.64.247 2.164.742.525.495.787 1.11.787 1.847 0 .419-.075.818-.225 1.197-.15.378-.388.775-.714 1.19-.216.275-.605.67-1.168 1.187-.563.516-.92.859-1.07 1.028a3.11 3.11 0 0 0-.365.495h3.542z"/></svg>',heading3:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm9.989 7.53 1.726-.209c.055.44.203.777.445 1.01.24.232.533.349.876.349.368 0 .678-.14.93-.42.251-.279.377-.655.377-1.13 0-.448-.12-.803-.362-1.066a1.153 1.153 0 0 0-.882-.393c-.228 0-.501.044-.819.133l.197-1.453c.482.012.85-.092 1.105-.315.253-.222.38-.517.38-.885 0-.313-.093-.563-.279-.75-.186-.185-.434-.278-.743-.278a1.07 1.07 0 0 0-.78.317c-.216.212-.347.52-.394.927l-1.644-.28c.114-.562.287-1.012.517-1.348.231-.337.553-.601.965-.794a3.24 3.24 0 0 1 1.387-.289c.876 0 1.579.28 2.108.838.436.457.653.973.653 1.549 0 .817-.446 1.468-1.339 1.955.533.114.96.37 1.28.768.319.398.478.878.478 1.441 0 .817-.298 1.513-.895 2.088-.596.576-1.339.864-2.228.864-.842 0-1.54-.243-2.094-.727-.555-.485-.876-1.118-.965-1.901z"/></svg>',heading4:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm13.55 10v-1.873h-3.81v-1.561l4.037-5.91h1.498v5.904h1.156v1.567h-1.156V18.5H17.05zm0-3.44v-3.18l-2.14 3.18h2.14z"/></svg>',heading5:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm9.578 7.607 1.777-.184c.05.402.201.72.45.955a1.223 1.223 0 0 0 1.81-.101c.258-.303.387-.759.387-1.368 0-.572-.128-1-.384-1.286-.256-.285-.59-.428-1-.428-.512 0-.971.226-1.377.679l-1.448-.21.915-4.843h4.716v1.67H15.56l-.28 1.58a2.697 2.697 0 0 1 1.219-.298 2.68 2.68 0 0 1 2.012.863c.55.576.825 1.323.825 2.241a3.36 3.36 0 0 1-.666 2.05c-.605.821-1.445 1.232-2.52 1.232-.86 0-1.56-.23-2.101-.692-.542-.461-.866-1.081-.971-1.86z"/></svg>',heading6:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm15.595 2.973-1.726.19c-.043-.355-.153-.617-.33-.787-.178-.169-.409-.253-.692-.253-.377 0-.695.169-.956.507-.26.339-.424 1.043-.492 2.114.445-.525.997-.787 1.657-.787.745 0 1.383.284 1.914.85.531.568.797 1.3.797 2.197 0 .952-.28 1.716-.838 2.291-.559.576-1.276.864-2.152.864-.94 0-1.712-.365-2.317-1.095-.605-.73-.908-1.927-.908-3.59 0-1.705.316-2.935.946-3.688.63-.753 1.45-1.13 2.457-1.13.706 0 1.291.198 1.755.594.463.395.758.97.885 1.723zm-4.043 3.891c0 .58.133 1.028.4 1.343.266.315.57.473.914.473.33 0 .605-.13.825-.388.22-.258.33-.68.33-1.27 0-.604-.118-1.047-.355-1.329a1.115 1.115 0 0 0-.89-.422c-.342 0-.632.134-.869.403s-.355.666-.355 1.19z"/></svg>',horizontalLine:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',html:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17 0a2 2 0 0 1 2 2v7a1 1 0 0 1 1 1v5a1 1 0 0 1-.883.993l-.118.006L19 17a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2l-.001-1.001-.116-.006A1 1 0 0 1 0 15v-5a1 1 0 0 1 .999-1L1 2a2 2 0 0 1 2-2h14zm.499 15.999h-15L2.5 17a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5l-.001-1.001zm-3.478-6.013-.014.014H14v.007l-1.525 1.525-1.46-1.46-.015.013V10h-1v5h1v-3.53l1.428 1.43.048.043.131-.129L14 11.421V15h1v-5h-.965l-.014-.014zM2 10H1v5h1v-2h2v2h1v-5H4v2H2v-2zm7 0H6v1h1v4h1v-4h1v-1zm8 0h-1v5h3v-1h-2v-4zm0-8.5H3a.5.5 0 0 0-.5.5l-.001 6.999h15L17.5 2a.5.5 0 0 0-.5-.5zM10 7v1H4V7h6zm3-2v1H4V5h9zm-3-2v1H4V3h6z"/></svg>',indent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',outdent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',table:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5.5v3h4v-3H3Zm0 4v3h4v-3H3Zm0 4v3h4v-3H3Zm5 3h4v-3H8v3Zm5 0h4v-3h-4v3Zm4-4v-3h-4v3h4Zm0-4v-3h-4v3h4Zm1.5 8A1.5 1.5 0 0 1 17 18H3a1.5 1.5 0 0 1-1.5-1.5V3c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13.5Zm-6.5-4v-3H8v3h4Zm0-4v-3H8v3h4Z"/></svg>'};var Dh=I(7801),Dv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Dh.A,Dv),Dh.A.locals;class zr extends te{constructor(e){super(e),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${$()}`;const t=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:t.to("for")},children:[{text:t.to("text")}]})}}class Ev extends te{constructor(e,t){super(e);const n=e.t,o=new zr;o.text=n("Help Contents. To close this dialog press ESC."),this.setTemplate({tag:"div",attributes:{class:["ck","ck-accessibility-help-dialog__content"],"aria-labelledby":o.id,role:"document",tabindex:-1},children:[Pt(document,"p",{},n("Below, you can find a list of keyboard shortcuts that can be used in the editor.")),...this._createCategories(Array.from(t.values())),o]})}focus(){this.element.focus()}_createCategories(e){return e.map(t=>{const n=[Pt(document,"h3",{},t.label),...Array.from(t.groups.values()).map(o=>this._createGroup(o)).flat()];return t.description&&n.splice(1,0,Pt(document,"p",{},t.description)),Pt(document,"section",{},n)})}_createGroup(e){const t=e.keystrokes.sort((o,r)=>o.label.localeCompare(r.label)).map(o=>this._createGroupRow(o)).flat(),n=[Pt(document,"dl",{},t)];return e.label&&n.unshift(Pt(document,"h4",{},e.label)),n}_createGroupRow(e){const t=this.locale.t,n=Pt(document,"dt"),o=Pt(document,"dd"),r=function(a){return typeof a=="string"?[[a]]:typeof a[0]=="string"?[a]:a}(e.keystroke),s=[];for(const a of r)s.push(a.map(Tv).join(""));return n.innerHTML=e.label,o.innerHTML=s.join(", ")+(e.mayRequireFn&&x.isMac?` ${t("(may require <kbd>Fn</kbd>)")}`:""),[n,o]}}function Tv(i){return mr(i).split("+").map(e=>`<kbd>${e}</kbd>`).join("+")}const Eh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 6.628a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"/><path d="M8.5 9.125a.3.3 0 0 0-.253-.296L5.11 8.327a.75.75 0 1 1 .388-1.449l4.04.716c.267.072.624.08.893.009l4.066-.724a.75.75 0 1 1 .388 1.45l-3.132.5a.3.3 0 0 0-.253.296v1.357a.3.3 0 0 0 .018.102l1.615 4.438a.75.75 0 0 1-1.41.513l-1.35-3.71a.3.3 0 0 0-.281-.197h-.209a.3.3 0 0 0-.282.198l-1.35 3.711a.75.75 0 0 1-1.41-.513l1.64-4.509a.3.3 0 0 0 .019-.103V9.125Z"/><path clip-rule="evenodd" d="M10 18.5a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17Zm0 1.5c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10Z"/></svg>';var Th=I(8527),Mv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Th.A,Mv),Th.A.locals;class Iv extends G{constructor(){super(...arguments),this.contentView=null}static get requires(){return[wn]}static get pluginName(){return"AccessibilityHelp"}init(){const e=this.editor,t=e.locale.t;e.ui.componentFactory.add("accessibilityHelp",()=>{const n=this._createButton(Ae);return n.set({tooltip:!0,withText:!1,label:t("Accessibility help")}),n}),e.ui.componentFactory.add("menuBar:accessibilityHelp",()=>{const n=this._createButton(It);return n.label=t("Accessibility"),n}),e.keystrokes.set("Alt+0",(n,o)=>{this._showDialog(),o()}),this._setupRootLabels()}_createButton(e){const t=new e(this.editor.locale);return t.set({keystroke:"Alt+0",icon:Eh}),t.on("execute",()=>this._showDialog()),t}_setupRootLabels(){const e=this.editor,t=e.editing.view,n=e.t;function o(r,s){const a=`${s.getAttribute("aria-label")}. ${n("Press %0 for help.",[mr("Alt+0")])}`;r.setAttribute("aria-label",a,s)}e.ui.on("ready",()=>{t.change(r=>{for(const s of t.document.roots)o(r,s)}),e.on("addRoot",(r,s)=>{const a=e.editing.view.document.getRoot(s.rootName);t.change(c=>o(c,a))},{priority:"low"})})}_showDialog(){const e=this.editor,t=e.plugins.get("Dialog"),n=e.locale.t;this.contentView||(this.contentView=new Ev(e.locale,e.accessibility.keystrokeInfos)),t.show({id:"accessibilityHelp",className:"ck-accessibility-help-dialog",title:n("Accessibility help"),icon:Eh,hasCloseButton:!0,content:this.contentView})}}class Sv extends zt{constructor(e,t=[]){super(t),this.locale=e}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Gt({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let e=document.querySelector(".ck-body-wrapper");e||(e=Pt(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const e=document.querySelector(".ck-body-wrapper");e&&e.childElementCount==0&&e.remove()}}var Mh=I(7621),Bv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Mh.A,Bv),Mh.A.locals;const Ih=class extends te{constructor(){super();const i=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",i.if("isVisible","ck-hidden",e=>!e),"ck-reset_all-excluded",i.if("isColorInherited","ck-icon_inherit-color")],viewBox:i.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const i=new DOMParser().parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),e=i.getAttribute("viewBox");e&&(this.viewBox=e);for(const{name:t,value:n}of Array.from(i.attributes))Ih.presentationalAttributeNames.includes(t)&&this.element.setAttribute(t,n);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;i.childNodes.length>0;)this.element.appendChild(i.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(i=>{i.style.fill=this.fillColor})}};let kn=Ih;kn.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];class Nv extends te{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const e=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:e.to("style"),id:e.to("id")},children:[{text:e.to("text")}]})}}var Sh=I(9715),Ov={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Sh.A,Ov),Sh.A.locals;class Ae extends te{constructor(e,t=new Nv){super(e),this._focusDelayed=null;const n=this.bindTemplate,o=$();this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${o}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(t),this.iconView=new kn,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const r={tag:"button",attributes:{class:["ck","ck-button",n.to("class"),n.if("isEnabled","ck-disabled",s=>!s),n.if("isVisible","ck-hidden",s=>!s),n.to("isOn",s=>s?"ck-on":"ck-off"),n.if("withText","ck-button_with-text"),n.if("withKeystroke","ck-button_with-keystroke")],role:n.to("role"),type:n.to("type",s=>s||"button"),tabindex:n.to("tabindex"),"aria-checked":n.to("ariaChecked"),"aria-label":n.to("ariaLabel"),"aria-labelledby":n.to("ariaLabelledBy"),"aria-disabled":n.if("isEnabled",!0,s=>!s),"aria-pressed":n.to("isOn",s=>!!this.isToggleable&&String(!!s)),"data-cke-tooltip-text":n.to("_tooltipString"),"data-cke-tooltip-position":n.to("tooltipPosition")},children:this.children,on:{click:n.to(s=>{this.isEnabled?this.fire("execute"):s.preventDefault()})}};x.isSafari&&(this._focusDelayed||(this._focusDelayed=Ys(()=>this.focus(),0)),r.on.mousedown=n.to(()=>{this._focusDelayed()}),r.on.mouseup=n.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(r)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(e){return e.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),e}_createKeystrokeView(){const e=new te;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",t=>mr(t))}]}),e}_getTooltipString(e,t,n){return e?typeof e=="string"?e:(n&&(n=mr(n)),e instanceof Function?e(t,n):`${t}${n?` (${n})`:""}`):""}}var Bh=I(4391),Pv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Bh.A,Pv),Bh.A.locals;class Rr extends Ae{constructor(e){super(e),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const e=new te;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}class Nh extends Ae{constructor(e){super(e),this.buttonView=this,this._fileInputView=new Lv(e),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",()=>{this._fileInputView.open()}),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}class Lv extends te{constructor(e){super(e),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:t.to("acceptedType"),multiple:t.to("allowMultipleFiles")},on:{change:t.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const jr='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';var Oh=I(25),zv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Oh.A,zv),Oh.A.locals;class Rv extends te{constructor(e,t){super(e);const n=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),t&&this.children.addMany(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",n.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:n.if("isCollapsed","hidden"),"aria-labelledby":n.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}focus(){this.buttonView.focus()}_createButtonView(){const e=new Ae(this.locale),t=e.bindTemplate;return e.set({withText:!0,icon:jr}),e.extendTemplate({attributes:{"aria-expanded":t.to("isOn",n=>String(n))}}),e.bind("label").to(this),e.bind("isOn").to(this,"isCollapsed",n=>!n),e.on("execute",()=>{this.isCollapsed=!this.isCollapsed}),e}}var Ph=I(7317),jv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Ph.A,jv),Ph.A.locals,I(6931),I(9047);var Lh=I(4962),Fv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Lh.A,Fv),Lh.A.locals;class Fr extends te{constructor(e,t){super(e);const n=`ck-labeled-field-view-${$()}`,o=`ck-labeled-field-view-status-${$()}`;this.fieldView=t(this,n,o),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(o),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(s,a)=>s||a);const r=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",r.to("class"),r.if("isEnabled","ck-disabled",s=>!s),r.if("isEmpty","ck-labeled-field-view_empty"),r.if("isFocused","ck-labeled-field-view_focused"),r.if("placeholder","ck-labeled-field-view_placeholder"),r.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(e){const t=new zr(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){const t=new te(this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",o=>!o)],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}focus(e){this.fieldView.focus(e)}}class Vv extends te{constructor(e){super(e),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("tabIndex",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.set("ariaLabel",void 0),this.focusTracker=new ct,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",t.if("isFocused","ck-input_focused"),t.if("isEmpty","ck-input-text_empty"),t.if("hasError","ck-error")],id:t.to("id"),placeholder:t.to("placeholder"),tabindex:t.to("tabIndex"),readonly:t.to("isReadOnly"),"aria-invalid":t.if("hasError",!0),"aria-describedby":t.to("ariaDescribedById"),"aria-label":t.to("ariaLabel")},on:{input:t.to((...n)=>{this.fire("input",...n),this._updateIsEmpty()}),change:t.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(e,t,n)=>{this._setDomElementValue(n),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(e){this.element.value=e||e===0?e:""}}var zh=I(253),Hv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(zh.A,Hv),zh.A.locals;class Uv extends Vv{constructor(e){super(e),this.set("inputMode","text");const t=this.bindTemplate;this.extendTemplate({attributes:{inputmode:t.to("inputMode")}})}}class Wv extends Uv{constructor(e){super(e),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var Rh=I(1671),qv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Rh.A,qv),Rh.A.locals;class Gv extends te{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",t.to("position",n=>`ck-dropdown__panel_${n}`),t.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:t.to(n=>{n.target.tagName.toLocaleLowerCase()!=="input"&&n.preventDefault()})}})}focus(){if(this.children.length){const e=this.children.first;typeof e.focus=="function"?e.focus():X("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const e=this.children.last;typeof e.focusLast=="function"?e.focusLast():e.focus()}}}var jh=I(8149),$v={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(jh.A,$v),jh.A.locals;const La=class extends te{constructor(i,e,t){super(i);const n=this.bindTemplate;this.buttonView=e,this.panelView=t,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new ft,this.focusTracker=new ct,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",n.to("class"),n.if("isEnabled","ck-disabled",o=>!o)],id:n.to("id"),"aria-describedby":n.to("ariaDescribedById")},children:[e,t]}),e.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":n.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.on("change:isOpen",(e,t,n)=>{if(n)if(this.panelPosition==="auto"){const o=La._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=o?o.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);const i=(e,t)=>{this.isOpen&&(this.isOpen=!1,t())};this.keystrokes.set("arrowdown",(e,t)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,t())}),this.keystrokes.set("arrowright",(e,t)=>{this.isOpen&&t()}),this.keystrokes.set("arrowleft",i),this.keystrokes.set("esc",i)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:i,north:e,southEast:t,southWest:n,northEast:o,northWest:r,southMiddleEast:s,southMiddleWest:a,northMiddleEast:c,northMiddleWest:l}=La.defaultPanelPositions;return this.locale.uiLanguageDirection!=="rtl"?[t,n,s,a,i,o,r,c,l,e]:[n,t,a,s,i,r,o,l,c,e]}};let za=La;za.defaultPanelPositions={south:(i,e)=>({top:i.bottom,left:i.left-(e.width-i.width)/2,name:"s"}),southEast:i=>({top:i.bottom,left:i.left,name:"se"}),southWest:(i,e)=>({top:i.bottom,left:i.left-e.width+i.width,name:"sw"}),southMiddleEast:(i,e)=>({top:i.bottom,left:i.left-(e.width-i.width)/4,name:"sme"}),southMiddleWest:(i,e)=>({top:i.bottom,left:i.left-3*(e.width-i.width)/4,name:"smw"}),north:(i,e)=>({top:i.top-e.height,left:i.left-(e.width-i.width)/2,name:"n"}),northEast:(i,e)=>({top:i.top-e.height,left:i.left,name:"ne"}),northWest:(i,e)=>({top:i.top-e.height,left:i.left-e.width+i.width,name:"nw"}),northMiddleEast:(i,e)=>({top:i.top-e.height,left:i.left-(e.width-i.width)/4,name:"nme"}),northMiddleWest:(i,e)=>({top:i.top-e.height,left:i.left-3*(e.width-i.width)/4,name:"nmw"})},za._getOptimalPosition=gr;class Kv extends Ae{constructor(e){super(e),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",t=>String(t))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const e=new kn;return e.content=jr,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}class jt extends ye(){constructor(e){if(super(),this.focusables=e.focusables,this.focusTracker=e.focusTracker,this.keystrokeHandler=e.keystrokeHandler,this.actions=e.actions,e.actions&&e.keystrokeHandler)for(const t in e.actions){let n=e.actions[t];typeof n=="string"&&(n=[n]);for(const o of n)e.keystrokeHandler.set(o,(r,s)=>{this[t](),s()})}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(Ra)||null}get last(){return this.focusables.filter(Ra).slice(-1)[0]||null}get next(){return this._getDomFocusableItem(1)}get previous(){return this._getDomFocusableItem(-1)}get current(){let e=null;return this.focusTracker.focusedElement===null?null:(this.focusables.find((t,n)=>{const o=t.element===this.focusTracker.focusedElement;return o&&(e=n),o}),e)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const e=this.next;e&&this.focusables.getIndex(e)===this.current||e===this.first?this.fire("forwardCycle"):this._focus(e,1)}focusPrevious(){const e=this.previous;e&&this.focusables.getIndex(e)===this.current||e===this.last?this.fire("backwardCycle"):this._focus(e,-1)}_focus(e,t){e&&this.focusTracker.focusedElement!==e.element&&e.focus(t)}_getDomFocusableItem(e){const t=this.focusables.length;if(!t)return null;const n=this.current;if(n===null)return this[e===1?"first":"last"];let o=this.focusables.get(n),r=(n+t+e)%t;do{const s=this.focusables.get(r);if(Ra(s)){o=s;break}r=(r+t+e)%t}while(r!==n);return o}}function Ra(i){return Mo(i)&&Wn(i.element)}function Mo(i){return!(!("focus"in i)||typeof i.focus!="function")}class Fh extends te{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Yv extends te{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}var Qv=Object.defineProperty,Vh=Object.getOwnPropertySymbols,Zv=Object.prototype.hasOwnProperty,Jv=Object.prototype.propertyIsEnumerable,Hh=(i,e,t)=>e in i?Qv(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Uh=(i,e)=>{for(var t in e||(e={}))Zv.call(e,t)&&Hh(i,t,e[t]);if(Vh)for(var t of Vh(e))Jv.call(e,t)&&Hh(i,t,e[t]);return i};function Wh(i){if(Array.isArray(i))return{items:i,removeItems:[]};const e={items:[],removeItems:[]};return i?Uh(Uh({},e),i):e}var qh=I(9677),Xv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(qh.A,Xv),qh.A.locals;const e1={alignLeft:oe.alignLeft,bold:oe.bold,importExport:oe.importExport,paragraph:oe.paragraph,plus:oe.plus,text:oe.text,threeVerticalDots:oe.threeVerticalDots,pilcrow:oe.pilcrow,dragIndicator:oe.dragIndicator};class ja extends te{constructor(e,t){super(e);const n=this.bindTemplate,o=this.t;this.options=t||{},this.set("ariaLabel",o("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new ct,this.keystrokes=new ft,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new t1(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const r=e.uiLanguageDirection==="rtl";this._focusCycler=new jt({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[r?"arrowright":"arrowleft","arrowup"],focusNext:[r?"arrowleft":"arrowright","arrowdown"]}});const s=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var a;this.options.shouldGroupWhenFull&&this.options.isFloating&&s.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:s,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(a=this,a.bindTemplate.to(c=>{c.target===a.element&&c.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new i1(this):new n1(this)}render(){super.render(),this.focusTracker.add(this.element);for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",(e,t)=>{this.focusTracker.add(t.element)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(e,t,n){this.items.addMany(this._buildItemsFromConfig(e,t,n))}_buildItemsFromConfig(e,t,n){const o=Wh(e),r=n||o.removeItems;return this._cleanItemsConfiguration(o.items,t,r).map(s=>he(s)?this._createNestedToolbarDropdown(s,t,r):s==="|"?new Fh:s==="-"?new Yv:t.create(s)).filter(s=>!!s)}_cleanItemsConfiguration(e,t,n){const o=e.filter((r,s,a)=>r==="|"||n.indexOf(r)===-1&&(r==="-"?!this.options.shouldGroupWhenFull||(X("toolbarview-line-break-ignored-when-grouping-items",a),!1):!(!he(r)&&!t.has(r))||(X("toolbarview-item-unavailable",{item:r}),!1)));return this._cleanSeparatorsAndLineBreaks(o)}_cleanSeparatorsAndLineBreaks(e){const t=s=>s!=="-"&&s!=="|",n=e.length,o=e.findIndex(t);if(o===-1)return[];const r=n-e.slice().reverse().findIndex(t);return e.slice(o,r).filter((s,a,c)=>t(s)?!0:!(a>0&&c[a-1]===s))}_createNestedToolbarDropdown(e,t,n){let{label:o,icon:r,items:s,tooltip:a=!0,withText:c=!1}=e;if(s=this._cleanItemsConfiguration(s,t,n),!s.length)return null;const l=bn(this.locale);return o||X("toolbarview-nested-toolbar-dropdown-missing-label",e),l.class="ck-toolbar__nested-toolbar-dropdown",l.buttonView.set({label:o,tooltip:a,withText:!!c}),r!==!1?l.buttonView.icon=e1[r]||r||oe.threeVerticalDots:l.buttonView.withText=!0,Ha(l,()=>l.toolbarView._buildItemsFromConfig(s,t,n)),l}}class t1 extends te{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class n1{constructor(e){const t=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using(n=>n),e.focusables.bindTo(e.items).using(n=>Mo(n)?n:null),e.extendTemplate({attributes:{class:[t.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class i1{constructor(e){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),e.itemsView.children.bindTo(this.ungroupedItems).using(t=>t),this.ungroupedItems.on("change",this._updateFocusCyclableItems.bind(this)),e.children.on("change",this._updateFocusCyclableItems.bind(this)),e.items.on("change",(t,n)=>{const o=n.index,r=Array.from(n.added);for(const s of n.removed)o>=this.ungroupedItems.length?this.groupedItems.remove(s):this.ungroupedItems.remove(s);for(let s=o;s<o+r.length;s++){const a=r[s-o];s>this.ungroupedItems.length?this.groupedItems.add(a,s-this.ungroupedItems.length):this.ungroupedItems.add(a,s)}this._updateGrouping()}),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!Wn(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const e=this.groupedItems.length;let t;for(;this._areItemsOverflowing;)this._groupLastItem(),t=!0;if(!t&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==e&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new ge(e.lastChild),o=new ge(e);if(!this.cachedPadding){const r=w.window.getComputedStyle(e),s=t==="ltr"?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(r[s])}return t==="ltr"?n.right>o.right-this.cachedPadding:n.left<o.left+this.cachedPadding}_enableGroupingOnResize(){let e;this.resizeObserver=new lo(this.viewElement,t=>{e&&e===t.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),e=t.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(e){e.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Fh),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const e=this.viewLocale,t=e.t,n=bn(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition=e.uiLanguageDirection==="ltr"?"sw":"se",Ha(n,this.groupedItems),n.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:e.uiLanguageDirection==="rtl"?"se":"sw",icon:oe.threeVerticalDots}),n}_updateFocusCyclableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(e=>{Mo(e)&&this.viewFocusables.add(e)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class Oi extends te{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",t.if("isVisible","ck-hidden",n=>!n)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class Fa extends te{constructor(e){super(e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class Vr extends te{constructor(e,t=new zr){super(e);const n=this.bindTemplate,o=new Va(e);this.set({label:"",isVisible:!0}),this.labelView=t,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,o]),o.set({role:"group",ariaLabelledBy:t.id}),o.focusTracker.destroy(),o.keystrokes.destroy(),this.items=o.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",n.if("isVisible","ck-hidden",r=>!r)]},children:this.children})}focus(){if(this.items){const e=this.items.find(t=>!(t instanceof Fa));e&&e.focus()}}}var Gh=I(5199),o1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Gh.A,o1),Gh.A.locals;class Va extends te{constructor(e){super(e),this._listItemGroupToChangeListeners=new WeakMap;const t=this.bindTemplate;this.focusables=new zt,this.items=this.createCollection(),this.focusTracker=new ct,this.keystrokes=new ft,this._focusCycler=new jt({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:t.to("role"),"aria-label":t.to("ariaLabel"),"aria-labelledby":t.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const e of this.items)e instanceof Vr?this._registerFocusableItemsGroup(e):e instanceof Oi&&this._registerFocusableListItem(e);this.items.on("change",(e,t)=>{for(const n of t.removed)n instanceof Vr?this._deregisterFocusableItemsGroup(n):n instanceof Oi&&this._deregisterFocusableListItem(n);for(const n of Array.from(t.added).reverse())n instanceof Vr?this._registerFocusableItemsGroup(n,t.index):this._registerFocusableListItem(n,t.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(e,t){this.focusTracker.add(e.element),this.focusables.add(e,t)}_deregisterFocusableListItem(e){this.focusTracker.remove(e.element),this.focusables.remove(e)}_getOnGroupItemsChangeCallback(e){return(t,n)=>{for(const o of n.removed)this._deregisterFocusableListItem(o);for(const o of Array.from(n.added).reverse())this._registerFocusableListItem(o,this.items.getIndex(e)+n.index)}}_registerFocusableItemsGroup(e,t){Array.from(e.items).forEach((o,r)=>{const s=t!==void 0?t+r:void 0;this._registerFocusableListItem(o,s)});const n=this._getOnGroupItemsChangeCallback(e);this._listItemGroupToChangeListeners.set(e,n),e.items.on("change",n)}_deregisterFocusableItemsGroup(e){for(const t of e.items)this._deregisterFocusableListItem(t);e.items.off("change",this._listItemGroupToChangeListeners.get(e)),this._listItemGroupToChangeListeners.delete(e)}}var $h=I(1792),r1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()($h.A,r1),$h.A.locals;class Hr extends te{constructor(e,t){super(e);const n=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(t),this.arrowView=this._createArrowView(),this.keystrokes=new ft,this.focusTracker=new ct,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",n.to("class"),n.if("isVisible","ck-hidden",o=>!o),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())}),this.keystrokes.set("arrowleft",(e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(e){const t=e||new Ae;return e||t.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),t.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),t.delegate("execute").to(this),t}_createArrowView(){const e=new Ae,t=e.bindTemplate;return e.icon=jr,e.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":t.to("isOn"),"aria-haspopup":!0,"aria-expanded":t.to("isOn",n=>String(n))}}),e.bind("isEnabled").to(this),e.bind("label").to(this),e.bind("tooltip").to(this),e.delegate("execute").to(this,"open"),e}}var Kh=I(1666),s1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Kh.A,s1),Kh.A.locals;var Yh=I(3629),a1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Yh.A,a1),Yh.A.locals;function bn(i,e=Kv){const t=typeof e=="function"?new e(i):e,n=new Gv(i),o=new za(i,t,n);return t.bind("isEnabled").to(o),t instanceof Hr?t.arrowView.bind("isOn").to(o,"isOpen"):t.bind("isOn").to(o,"isOpen"),function(r){(function(s){s.on("render",()=>{kr({emitter:s,activator:()=>s.isOpen,callback:()=>{s.isOpen=!1},contextElements:()=>[s.element,...s.focusTracker._elements]})})})(r),function(s){s.on("execute",a=>{a.source instanceof Rr||(s.isOpen=!1)})}(r),function(s){s.focusTracker.on("change:isFocused",(a,c,l)=>{s.isOpen&&!l&&(s.isOpen=!1)})}(r),function(s){s.keystrokes.set("arrowdown",(a,c)=>{s.isOpen&&(s.panelView.focus(),c())}),s.keystrokes.set("arrowup",(a,c)=>{s.isOpen&&(s.panelView.focusLast(),c())})}(r),function(s){s.on("change:isOpen",(a,c,l)=>{if(l)return;const d=s.panelView.element;d&&d.contains(w.document.activeElement)&&s.buttonView.focus()})}(r),function(s){s.on("change:isOpen",(a,c,l)=>{l&&s.panelView.focus()},{priority:"low"})}(r)}(o),o}function Ha(i,e,t={}){i.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),i.isOpen?Qh(i,e,t):i.once("change:isOpen",()=>Qh(i,e,t),{priority:"highest"}),t.enableActiveItemFocusOnDropdownOpen&&Xh(i,()=>i.toolbarView.items.find(n=>n.isOn))}function Qh(i,e,t){const n=i.locale,o=n.t,r=i.toolbarView=new ja(n),s=typeof e=="function"?e():e;r.ariaLabel=t.ariaLabel||o("Dropdown toolbar"),t.maxWidth&&(r.maxWidth=t.maxWidth),t.class&&(r.class=t.class),t.isCompact&&(r.isCompact=t.isCompact),t.isVertical&&(r.isVertical=!0),s instanceof zt?r.items.bindTo(s).using(a=>a):r.items.addMany(s),i.panelView.children.add(r),r.items.delegate("execute").to(i)}function Zh(i,e,t={}){i.isOpen?Jh(i,e,t):i.once("change:isOpen",()=>Jh(i,e,t),{priority:"highest"}),Xh(i,()=>i.listView.items.find(n=>n instanceof Oi&&n.children.first.isOn))}function Jh(i,e,t){const n=i.locale,o=i.listView=new Va(n),r=typeof e=="function"?e():e;o.ariaLabel=t.ariaLabel,o.role=t.role,eg(i,o.items,r,n),i.panelView.children.add(o),o.items.delegate("execute").to(i)}function Xh(i,e){i.on("change:isOpen",()=>{if(!i.isOpen)return;const t=e();t&&(typeof t.focus=="function"?t.focus():X("ui-dropdown-focus-child-on-open-child-missing-focus",{view:t}))},{priority:ee.low-10})}function eg(i,e,t,n){e.bindTo(t).using(o=>{if(o.type==="separator")return new Fa(n);if(o.type==="group"){const r=new Vr(n);return r.set({label:o.label}),eg(i,r.items,o.items,n),r.items.delegate("execute").to(i),r}if(o.type==="button"||o.type==="switchbutton"){const r=new Oi(n);let s;return o.type==="button"?(s=new Ae(n),s.bind("ariaChecked").to(s,"isOn")):s=new Rr(n),s.bind(...Object.keys(o.model)).to(o.model),s.delegate("execute").to(r),r.children.add(s),r}return null})}const Ur=(i,e,t)=>{const n=new Wv(i.locale);return n.set({id:e,ariaDescribedById:t}),n.bind("isReadOnly").to(i,"isEnabled",o=>!o),n.bind("hasError").to(i,"errorText",o=>!!o),n.on("input",()=>{i.errorText=null}),i.bind("isEmpty","isFocused","placeholder").to(n),n};var tg=I(1905),c1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(tg.A,c1),tg.A.locals;var ng=I(6309),l1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(ng.A,l1),ng.A.locals;class d1{constructor(e){this._components=new Map,this.editor=e}*names(){for(const e of this._components.values())yield e.originalName}add(e,t){this._components.set(Ua(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new B("componentfactory-item-missing",this,{name:e});return this._components.get(Ua(e)).callback(this.editor.locale)}has(e){return this._components.has(Ua(e))}}function Ua(i){return String(i).toLowerCase()}var ig=I(7913),u1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(ig.A,u1),ig.A.locals;class h1 extends te{constructor(e,t={}){super(e);const n=this.bindTemplate;this.set("label",t.label||""),this.set("class",t.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",n.to("class")]},children:this.children}),t.icon&&(this.iconView=new kn,this.iconView.content=t.icon,this.children.add(this.iconView));const o=new te(e);o.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"],role:"presentation"},children:[{text:n.to("label")}]}),this.children.add(o)}}var og=I(9822),g1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(og.A,g1),og.A.locals;class m1 extends te{constructor(e){super(e),this.children=this.createCollection(),this.keystrokes=new ft,this._focusTracker=new ct,this._focusables=new zt,this.focusCycler=new jt({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__actions"]},children:this.children})}render(){super.render(),this.keystrokes.listenTo(this.element)}setButtons(e){for(const t of e){const n=new Ae(this.locale);let o;for(o in n.on("execute",()=>t.onExecute()),t.onCreate&&t.onCreate(n),t)o!="onExecute"&&o!="onCreate"&&n.set(o,t[o]);this.children.add(n)}this._updateFocusCyclableItems()}focus(e){e===-1?this.focusCycler.focusLast():this.focusCycler.focusFirst()}_updateFocusCyclableItems(){Array.from(this.children).forEach(e=>{this._focusables.add(e),this._focusTracker.add(e.element)})}}class p1 extends te{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__content"]},children:this.children})}reset(){for(;this.children.length;)this.children.remove(0)}}var rg=I(9819),f1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(rg.A,f1),rg.A.locals;const Wr="screen-center",sg="editor-center",k1="editor-top-side",b1="editor-top-center",w1="editor-bottom-center",_1="editor-above-center",A1="editor-below-center",ag=Ci("px"),cg=class extends function(i){return class extends i{constructor(...e){super(...e),this._onDragBound=this._onDrag.bind(this),this._onDragEndBound=this._onDragEnd.bind(this),this._lastDraggingCoordinates={x:0,y:0},this.on("render",()=>{this._attachListeners()}),this.set("isDragging",!1)}_attachListeners(){this.listenTo(this.element,"mousedown",this._onDragStart.bind(this)),this.listenTo(this.element,"touchstart",this._onDragStart.bind(this))}_attachDragListeners(){this.listenTo(w.document,"mouseup",this._onDragEndBound),this.listenTo(w.document,"touchend",this._onDragEndBound),this.listenTo(w.document,"mousemove",this._onDragBound),this.listenTo(w.document,"touchmove",this._onDragBound)}_detachDragListeners(){this.stopListening(w.document,"mouseup",this._onDragEndBound),this.stopListening(w.document,"touchend",this._onDragEndBound),this.stopListening(w.document,"mousemove",this._onDragBound),this.stopListening(w.document,"touchmove",this._onDragBound)}_onDragStart(e,t){if(!this._isHandleElementPressed(t))return;this._attachDragListeners();let n=0,o=0;t instanceof MouseEvent?(n=t.clientX,o=t.clientY):(n=t.touches[0].clientX,o=t.touches[0].clientY),this._lastDraggingCoordinates={x:n,y:o},this.isDragging=!0}_onDrag(e,t){if(!this.isDragging)return void this._detachDragListeners();let n=0,o=0;t instanceof MouseEvent?(n=t.clientX,o=t.clientY):(n=t.touches[0].clientX,o=t.touches[0].clientY),t.preventDefault(),this.fire("drag",{deltaX:Math.round(n-this._lastDraggingCoordinates.x),deltaY:Math.round(o-this._lastDraggingCoordinates.y)}),this._lastDraggingCoordinates={x:n,y:o}}_onDragEnd(){this._detachDragListeners(),this.isDragging=!1}_isHandleElementPressed(e){return!!this.dragHandleElement&&(this.dragHandleElement===e.target||e.target instanceof HTMLElement&&this.dragHandleElement.contains(e.target))}}}(te){constructor(i,{getCurrentDomRoot:e,getViewportOffset:t}){super(i),this.wasMoved=!1;const n=this.bindTemplate,o=i.t;this.set("className",""),this.set("ariaLabel",o("Editor dialog")),this.set("isModal",!1),this.set("position",Wr),this.set("_isVisible",!1),this.set("_isTransparent",!1),this.set("_top",0),this.set("_left",0),this._getCurrentDomRoot=e,this._getViewportOffset=t,this.decorate("moveTo"),this.parts=this.createCollection(),this.keystrokes=new ft,this.focusTracker=new ct,this._focusables=new zt,this._focusCycler=new jt({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog-overlay",n.if("isModal","ck-dialog-overlay__transparent",r=>!r),n.if("_isVisible","ck-hidden",r=>!r)],tabindex:"-1"},children:[{tag:"div",attributes:{tabindex:"-1",class:["ck","ck-dialog",n.to("className")],role:"dialog","aria-label":n.to("ariaLabel"),style:{top:n.to("_top",r=>ag(r)),left:n.to("_left",r=>ag(r)),visibility:n.if("_isTransparent","hidden")}},children:this.parts}]})}render(){super.render(),this.keystrokes.set("Esc",(i,e)=>{this.fire("close",{source:"escKeyPress"}),e()}),this.on("drag",(i,{deltaX:e,deltaY:t})=>{this.wasMoved=!0,this.moveBy(e,t)}),this.listenTo(w.window,"resize",()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()}),this.listenTo(w.document,"scroll",()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()}),this.on("change:_isVisible",(i,e,t)=>{t&&(this._isTransparent=!0,setTimeout(()=>{this.updatePosition(),this._isTransparent=!1,this.focus()},10))}),this.keystrokes.listenTo(this.element)}get dragHandleElement(){return this.headerView?this.headerView.element:null}setupParts({icon:i,title:e,hasCloseButton:t=!0,content:n,actionButtons:o}){e&&(this.headerView=new h1(this.locale,{icon:i}),t&&(this.closeButtonView=this._createCloseButton(),this.headerView.children.add(this.closeButtonView)),this.headerView.label=e,this.ariaLabel=e,this.parts.add(this.headerView,0)),n&&(n instanceof te&&(n=[n]),this.contentView=new p1(this.locale),this.contentView.children.addMany(n),this.parts.add(this.contentView)),o&&(this.actionsView=new m1(this.locale),this.actionsView.setButtons(o),this.parts.add(this.actionsView)),this._updateFocusCyclableItems()}focus(){this._focusCycler.focusFirst()}moveTo(i,e){const t=this._getViewportRect(),n=this._getDialogRect();i+n.width>t.right&&(i=t.right-n.width),i<t.left&&(i=t.left),e<t.top&&(e=t.top),this._moveTo(i,e)}_moveTo(i,e){this._left=i,this._top=e}moveBy(i,e){this.moveTo(this._left+i,this._top+e)}_moveOffScreen(){this._moveTo(-9999,-9999)}updatePosition(){if(!this.element||!this.element.parentNode)return;const i=this._getViewportRect();let e,t=this.position;this._getCurrentDomRoot()?e=this._getVisibleDomRootRect(i):t=Wr;const n=cg.defaultOffset,o=this._getDialogRect();switch(t){case k1:if(e){const r=this.locale.contentLanguageDirection==="ltr"?e.right-o.width-n:e.left+n;this.moveTo(r,e.top+n)}else this._moveOffScreen();break;case sg:e?this.moveTo(Math.round(e.left+e.width/2-o.width/2),Math.round(e.top+e.height/2-o.height/2)):this._moveOffScreen();break;case Wr:this.moveTo(Math.round((i.width-o.width)/2),Math.round((i.height-o.height)/2));break;case b1:e?this.moveTo(Math.round(e.left+e.width/2-o.width/2),e.top+n):this._moveOffScreen();break;case w1:e?this.moveTo(Math.round(e.left+e.width/2-o.width/2),e.bottom-o.height-n):this._moveOffScreen();break;case _1:e?this.moveTo(Math.round(e.left+e.width/2-o.width/2),e.top-o.height-n):this._moveOffScreen();break;case A1:e?this.moveTo(Math.round(e.left+e.width/2-o.width/2),e.bottom+n):this._moveOffScreen()}}_getVisibleDomRootRect(i){let e=new ge(this._getCurrentDomRoot()).getVisible();return e?(e=i.getIntersection(e),e||null):null}_getDialogRect(){return new ge(this.element.firstElementChild)}_getViewportRect(){return function(i){i=Object.assign({top:0,bottom:0,left:0,right:0},i);const e=new ge(w.window);return e.top+=i.top,e.height-=i.top,e.bottom-=i.bottom,e.height-=i.bottom,e.left+=i.left,e.right-=i.right,e.width-=i.left+i.right,e}(this._getViewportOffset())}_updateFocusCyclableItems(){const i=[];if(this.contentView)for(const e of this.contentView.children)Mo(e)&&i.push(e);this.actionsView&&i.push(this.actionsView),this.closeButtonView&&i.push(this.closeButtonView),i.forEach(e=>{var t;this._focusables.add(e),this.focusTracker.add(e.element),Mo(t=e)&&"focusCycler"in t&&t.focusCycler instanceof jt&&(this.listenTo(e.focusCycler,"forwardCycle",n=>{this._focusCycler.focusNext(),this._focusCycler.next!==this._focusCycler.focusables.get(this._focusCycler.current)&&n.stop()}),this.listenTo(e.focusCycler,"backwardCycle",n=>{this._focusCycler.focusPrevious(),this._focusCycler.previous!==this._focusCycler.focusables.get(this._focusCycler.current)&&n.stop()}))})}_createCloseButton(){const i=new Ae(this.locale),e=this.locale.t;return i.set({label:e("Close"),tooltip:!0,icon:oe.cancel}),i.on("execute",()=>this.fire("close",{source:"closeButton"})),i}};let qr=cg;qr.defaultOffset=15;class wn extends G{constructor(e){super(e);const t=e.t;this._initShowHideListeners(),this._initFocusToggler(),this._initMultiRootIntegration(),this.set("id",null),e.accessibility.addKeystrokeInfos({categoryId:"navigation",keystrokes:[{label:t("Move focus in and out of an active dialog window"),keystroke:"Ctrl+F6",mayRequireFn:!0}]})}static get pluginName(){return"Dialog"}_initShowHideListeners(){this.on("show",(e,t)=>{this._show(t)}),this.on("show",(e,t)=>{t.onShow&&t.onShow(this)},{priority:"low"}),this.on("hide",()=>{wn._visibleDialogPlugin&&wn._visibleDialogPlugin._hide()}),this.on("hide",()=>{this._onHide&&(this._onHide(this),this._onHide=void 0)},{priority:"low"})}_initFocusToggler(){const e=this.editor;e.keystrokes.set("Ctrl+F6",(t,n)=>{this.isOpen&&!this.view.isModal&&(this.view.focusTracker.isFocused?e.editing.view.focus():this.view.focus(),n())})}_initMultiRootIntegration(){const e=this.editor.model;e.document.on("change:data",()=>{if(!this.view)return;const t=e.document.differ.getChangedRoots();for(const n of t)n.state&&this.view.updatePosition()})}show(e){this.hide(),this.fire(`show:${e.id}`,e)}_show({id:e,icon:t,title:n,hasCloseButton:o=!0,content:r,actionButtons:s,className:a,isModal:c,position:l,onHide:d}){const u=this.editor;this.view=new qr(u.locale,{getCurrentDomRoot:()=>u.editing.view.getDomRoot(u.model.document.selection.anchor.root.rootName),getViewportOffset:()=>u.ui.viewportOffset});const h=this.view;h.on("close",()=>{this.hide()}),u.ui.view.body.add(h),u.ui.focusTracker.add(h.element),u.keystrokes.listenTo(h.element),l||(l=c?Wr:sg),h.set({position:l,_isVisible:!0,className:a,isModal:c}),h.setupParts({icon:t,title:n,hasCloseButton:o,content:r,actionButtons:s}),this.id=e,d&&(this._onHide=d),this.isOpen=!0,wn._visibleDialogPlugin=this}hide(){wn._visibleDialogPlugin&&wn._visibleDialogPlugin.fire(`hide:${wn._visibleDialogPlugin.id}`)}_hide(){if(!this.view)return;const e=this.editor,t=this.view;t.contentView&&t.contentView.reset(),e.ui.view.body.remove(t),e.ui.focusTracker.remove(t.element),e.keystrokes.stopListening(t.element),t.destroy(),e.editing.view.focus(),this.id=null,this.isOpen=!1,wn._visibleDialogPlugin=null}}var lg=I(3710),C1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(lg.A,C1),lg.A.locals;var v1=Object.defineProperty,dg=Object.getOwnPropertySymbols,y1=Object.prototype.hasOwnProperty,x1=Object.prototype.propertyIsEnumerable,ug=(i,e,t)=>e in i?v1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ce=(i,e)=>{for(var t in e||(e={}))y1.call(e,t)&&ug(i,t,e[t]);if(dg)for(var t of dg(e))x1.call(e,t)&&ug(i,t,e[t]);return i};const hg=Ci("px"),gg=w.document.body,D1={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},Wa=class extends te{constructor(i){super(i);const e=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",e.to("position",t=>`ck-balloon-panel_${t}`),e.if("isVisible","ck-balloon-panel_visible"),e.if("withArrow","ck-balloon-panel_with-arrow"),e.to("class")],style:{top:e.to("top",hg),left:e.to("left",hg)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(i){this.show();const e=Wa.defaultPositions,t=Object.assign({},{element:this.element,positions:[e.southArrowNorth,e.southArrowNorthMiddleWest,e.southArrowNorthMiddleEast,e.southArrowNorthWest,e.southArrowNorthEast,e.northArrowSouth,e.northArrowSouthMiddleWest,e.northArrowSouthMiddleEast,e.northArrowSouthWest,e.northArrowSouthEast,e.viewportStickyNorth],limiter:gg,fitInViewport:!0},i),n=Wa._getOptimalPosition(t)||D1,o=parseInt(n.left),r=parseInt(n.top),s=n.name,a=n.config||{},{withArrow:c=!0}=a;this.top=r,this.left=o,this.position=s,this.withArrow=c}pin(i){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(i):this._stopPinning()},this._startPinning(i),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(i){this.attachTo(i);const e=qa(i.target),t=i.limiter?qa(i.limiter):gg;this.listenTo(w.document,"scroll",(n,o)=>{const r=o.target,s=e&&r.contains(e),a=t&&r.contains(t);!s&&!a&&e&&t||this.attachTo(i)},{useCapture:!0}),this.listenTo(w.window,"resize",()=>{this.attachTo(i)})}_stopPinning(){this.stopListening(w.document,"scroll"),this.stopListening(w.window,"resize")}};let wt=Wa;function qa(i){return Un(i)?i:ur(i)?i.commonAncestorContainer:typeof i=="function"?qa(i()):null}function mg(i={}){const{sideOffset:e=wt.arrowSideOffset,heightOffset:t=wt.arrowHeightOffset,stickyVerticalOffset:n=wt.stickyVerticalOffset,config:o}=i;return{northWestArrowSouthWest:(a,c)=>Ce({top:r(a,c),left:a.left-e,name:"arrow_sw"},o&&{config:o}),northWestArrowSouthMiddleWest:(a,c)=>Ce({top:r(a,c),left:a.left-.25*c.width-e,name:"arrow_smw"},o&&{config:o}),northWestArrowSouth:(a,c)=>Ce({top:r(a,c),left:a.left-c.width/2,name:"arrow_s"},o&&{config:o}),northWestArrowSouthMiddleEast:(a,c)=>Ce({top:r(a,c),left:a.left-.75*c.width+e,name:"arrow_sme"},o&&{config:o}),northWestArrowSouthEast:(a,c)=>Ce({top:r(a,c),left:a.left-c.width+e,name:"arrow_se"},o&&{config:o}),northArrowSouthWest:(a,c)=>Ce({top:r(a,c),left:a.left+a.width/2-e,name:"arrow_sw"},o&&{config:o}),northArrowSouthMiddleWest:(a,c)=>Ce({top:r(a,c),left:a.left+a.width/2-.25*c.width-e,name:"arrow_smw"},o&&{config:o}),northArrowSouth:(a,c)=>Ce({top:r(a,c),left:a.left+a.width/2-c.width/2,name:"arrow_s"},o&&{config:o}),northArrowSouthMiddleEast:(a,c)=>Ce({top:r(a,c),left:a.left+a.width/2-.75*c.width+e,name:"arrow_sme"},o&&{config:o}),northArrowSouthEast:(a,c)=>Ce({top:r(a,c),left:a.left+a.width/2-c.width+e,name:"arrow_se"},o&&{config:o}),northEastArrowSouthWest:(a,c)=>Ce({top:r(a,c),left:a.right-e,name:"arrow_sw"},o&&{config:o}),northEastArrowSouthMiddleWest:(a,c)=>Ce({top:r(a,c),left:a.right-.25*c.width-e,name:"arrow_smw"},o&&{config:o}),northEastArrowSouth:(a,c)=>Ce({top:r(a,c),left:a.right-c.width/2,name:"arrow_s"},o&&{config:o}),northEastArrowSouthMiddleEast:(a,c)=>Ce({top:r(a,c),left:a.right-.75*c.width+e,name:"arrow_sme"},o&&{config:o}),northEastArrowSouthEast:(a,c)=>Ce({top:r(a,c),left:a.right-c.width+e,name:"arrow_se"},o&&{config:o}),southWestArrowNorthWest:a=>Ce({top:s(a),left:a.left-e,name:"arrow_nw"},o&&{config:o}),southWestArrowNorthMiddleWest:(a,c)=>Ce({top:s(a),left:a.left-.25*c.width-e,name:"arrow_nmw"},o&&{config:o}),southWestArrowNorth:(a,c)=>Ce({top:s(a),left:a.left-c.width/2,name:"arrow_n"},o&&{config:o}),southWestArrowNorthMiddleEast:(a,c)=>Ce({top:s(a),left:a.left-.75*c.width+e,name:"arrow_nme"},o&&{config:o}),southWestArrowNorthEast:(a,c)=>Ce({top:s(a),left:a.left-c.width+e,name:"arrow_ne"},o&&{config:o}),southArrowNorthWest:a=>Ce({top:s(a),left:a.left+a.width/2-e,name:"arrow_nw"},o&&{config:o}),southArrowNorthMiddleWest:(a,c)=>Ce({top:s(a),left:a.left+a.width/2-.25*c.width-e,name:"arrow_nmw"},o&&{config:o}),southArrowNorth:(a,c)=>Ce({top:s(a),left:a.left+a.width/2-c.width/2,name:"arrow_n"},o&&{config:o}),southArrowNorthMiddleEast:(a,c)=>Ce({top:s(a),left:a.left+a.width/2-.75*c.width+e,name:"arrow_nme"},o&&{config:o}),southArrowNorthEast:(a,c)=>Ce({top:s(a),left:a.left+a.width/2-c.width+e,name:"arrow_ne"},o&&{config:o}),southEastArrowNorthWest:a=>Ce({top:s(a),left:a.right-e,name:"arrow_nw"},o&&{config:o}),southEastArrowNorthMiddleWest:(a,c)=>Ce({top:s(a),left:a.right-.25*c.width-e,name:"arrow_nmw"},o&&{config:o}),southEastArrowNorth:(a,c)=>Ce({top:s(a),left:a.right-c.width/2,name:"arrow_n"},o&&{config:o}),southEastArrowNorthMiddleEast:(a,c)=>Ce({top:s(a),left:a.right-.75*c.width+e,name:"arrow_nme"},o&&{config:o}),southEastArrowNorthEast:(a,c)=>Ce({top:s(a),left:a.right-c.width+e,name:"arrow_ne"},o&&{config:o}),westArrowEast:(a,c)=>Ce({top:a.top+a.height/2-c.height/2,left:a.left-c.width-t,name:"arrow_e"},o&&{config:o}),eastArrowWest:(a,c)=>Ce({top:a.top+a.height/2-c.height/2,left:a.right+t,name:"arrow_w"},o&&{config:o}),viewportStickyNorth:(a,c,l,d)=>{const u=d||l;return a.getIntersection(u)?u.height-a.height>n?null:{top:u.top+n,left:a.left+a.width/2-c.width/2,name:"arrowless",config:Ce({withArrow:!1},o)}:null}};function r(a,c){return a.top-c.height-t}function s(a){return a.bottom+t}}wt.arrowSideOffset=25,wt.arrowHeightOffset=10,wt.stickyVerticalOffset=20,wt._getOptimalPosition=gr,wt.defaultPositions=mg();var pg=I(9205),E1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(pg.A,E1),pg.A.locals;const fg="ck-tooltip",_t=class extends Lt(){constructor(i){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,this._mutationObserver=null,_t._editors.add(i),_t._instance)return _t._instance;_t._instance=this,this.tooltipTextView=new te(i.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new wt(i.locale),this.balloonPanelView.class=fg,this.balloonPanelView.content.add(this.tooltipTextView),this._mutationObserver=function(e){const t=new MutationObserver(()=>{e()});return{attach(n){t.observe(n,{attributes:!0,attributeFilter:["data-cke-tooltip-text","data-cke-tooltip-position"]})},detach(){t.disconnect()}}}(()=>{this._updateTooltipPosition()}),this._pinTooltipDebounced=Ii(this._pinTooltip,600),this._unpinTooltipDebounced=Ii(this._unpinTooltip,400),this.listenTo(w.document,"keydown",this._onKeyDown.bind(this),{useCapture:!0}),this.listenTo(w.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(w.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(w.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(w.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(w.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(i){const e=i.ui.view&&i.ui.view.body;_t._editors.delete(i),this.stopListening(i.ui),e&&e.has(this.balloonPanelView)&&e.remove(this.balloonPanelView),_t._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),_t._instance=null)}static getPositioningFunctions(i){const e=_t.defaultBalloonPositions;return{s:[e.southArrowNorth,e.southArrowNorthEast,e.southArrowNorthWest],n:[e.northArrowSouth],e:[e.eastArrowWest],w:[e.westArrowEast],sw:[e.southArrowNorthEast],se:[e.southArrowNorthWest]}[i]}_onKeyDown(i,e){e.key==="Escape"&&this._currentElementWithTooltip&&(this._unpinTooltip(),e.stopPropagation())}_onEnterOrFocus(i,{target:e}){const t=Ga(e);t?t!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(t,kg(t))):i.name==="focus"&&this._unpinTooltip()}_onLeaveOrBlur(i,{target:e,relatedTarget:t}){if(i.name==="mouseleave"){if(!Un(e))return;const n=this.balloonPanelView.element,o=n&&(n===t||n.contains(t)),r=!o&&e===n;if(o)return void this._unpinTooltipDebounced.cancel();if(!r&&this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;const s=Ga(e),a=Ga(t);(r||s&&s!==a)&&this._unpinTooltipDebounced()}else{if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;this._unpinTooltipDebounced()}}_onScroll(i,{target:e}){this._currentElementWithTooltip&&(e.contains(this.balloonPanelView.element)&&e.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(i,{text:e,position:t,cssClass:n}){this._unpinTooltip();const o=at(_t._editors.values()).ui.view.body;o.has(this.balloonPanelView)||o.add(this.balloonPanelView),this.tooltipTextView.text=e,this.balloonPanelView.pin({target:i,positions:_t.getPositioningFunctions(t)}),this._resizeObserver=new lo(i,()=>{Wn(i)||this._unpinTooltip()}),this._mutationObserver.attach(i),this.balloonPanelView.class=[fg,n].filter(r=>r).join(" ");for(const r of _t._editors)this.listenTo(r.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=i,this._currentTooltipPosition=t}_unpinTooltip(){this._unpinTooltipDebounced.cancel(),this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const i of _t._editors)this.stopListening(i.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this.tooltipTextView.text="",this._resizeObserver&&this._resizeObserver.destroy(),this._mutationObserver.detach()}_updateTooltipPosition(){if(!this._currentElementWithTooltip)return;const i=kg(this._currentElementWithTooltip);Wn(this._currentElementWithTooltip)&&i.text?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:_t.getPositioningFunctions(i.position)}):this._unpinTooltip()}};let Gr=_t;function Ga(i){return Un(i)?i.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}function kg(i){return{text:i.dataset.ckeTooltipText,position:i.dataset.ckeTooltipPosition||"s",cssClass:i.dataset.ckeTooltipClass||""}}Gr.defaultBalloonPositions=mg({heightOffset:5,sideOffset:13}),Gr._editors=new Set,Gr._instance=null;const $r=function(i,e,t){var n=!0,o=!0;if(typeof i!="function")throw new TypeError("Expected a function");return he(t)&&(n="leading"in t?!!t.leading:n,o="trailing"in t?!!t.trailing:o),Ii(i,e,{leading:n,maxWait:e,trailing:o})};var T1=Object.defineProperty,bg=Object.getOwnPropertySymbols,M1=Object.prototype.hasOwnProperty,I1=Object.prototype.propertyIsEnumerable,wg=(i,e,t)=>e in i?T1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,S1=(i,e)=>{for(var t in e||(e={}))M1.call(e,t)&&wg(i,t,e[t]);if(bg)for(var t of bg(e))I1.call(e,t)&&wg(i,t,e[t]);return i};const B1=50,N1=350,O1="Powered by";class P1 extends Lt(){constructor(e){super(),this.editor=e,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=$r(this._showBalloon.bind(this),50,{leading:!0}),e.on("ready",this._handleEditorReady.bind(this))}destroy(){const e=this._balloonView;e&&(e.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const e=this.editor;(e.config.get("ui.poweredBy.forceVisible")||function(t){function n(m){return m.length>=40&&m.length<=255?"VALID":"INVALID"}if(!t)return"INVALID";let o="";try{o=atob(t)}catch{return"INVALID"}const r=o.split("-"),s=r[0],a=r[1];if(!a)return n(t);try{atob(a)}catch{try{if(atob(s),!atob(s).length)return n(t)}catch{return n(t)}}if(s.length<40||s.length>255)return"INVALID";let c="";try{atob(s),c=atob(a)}catch{return"INVALID"}if(c.length!==8)return"INVALID";const l=Number(c.substring(0,4)),d=Number(c.substring(4,6))-1,u=Number(c.substring(6,8)),h=new Date(l,d,u);return h<Fe||isNaN(Number(h))?"INVALID":"VALID"}(e.config.get("licenseKey"))!=="VALID")&&e.ui.view&&(e.ui.focusTracker.on("change:isFocused",(t,n,o)=>{this._updateLastFocusedEditableElement(),o?this._showBalloon():this._hideBalloon()}),e.ui.focusTracker.on("change:focusedElement",(t,n,o)=>{this._updateLastFocusedEditableElement(),o&&this._showBalloon()}),e.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){const e=this.editor,t=this._balloonView=new wt,n=Ag(e),o=new L1(e.locale,n.label);t.content.add(o),t.set({class:"ck-powered-by-balloon"}),e.ui.view.body.add(t),e.ui.focusTracker.add(t.element),this._balloonView=t}_showBalloon(){if(!this._lastFocusedEditableElement)return;const e=function(t,n){const o=Ag(t),r=o.side==="right"?function(s,a){return _g(s,a,(c,l)=>c.left+c.width-l.width-a.horizontalOffset)}(n,o):function(s,a){return _g(s,a,c=>c.left+a.horizontalOffset)}(n,o);return{target:n,positions:[r]}}(this.editor,this._lastFocusedEditableElement);e&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(e))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const e=this.editor,t=e.ui.focusTracker.isFocused,n=e.ui.focusTracker.focusedElement;if(!t||!n)return void(this._lastFocusedEditableElement=null);const o=Array.from(e.ui.getEditableElementsNames()).map(r=>e.ui.getEditableElement(r));o.includes(n)?this._lastFocusedEditableElement=n:this._lastFocusedEditableElement=o[0]}}class L1 extends te{constructor(e,t){super(e);const n=new kn,o=this.bindTemplate;n.set({content:`<svg xmlns="http://www.w3.org/2000/svg" width="53" height="10" viewBox="0 0 53 10"><path fill="#1C2331" d="M31.724 1.492a15.139 15.139 0 0 0 .045 1.16 2.434 2.434 0 0 0-.687-.34 3.68 3.68 0 0 0-1.103-.166 2.332 2.332 0 0 0-1.14.255 1.549 1.549 0 0 0-.686.87c-.15.41-.225.98-.225 1.712 0 .939.148 1.659.444 2.161.297.503.792.754 1.487.754.452.015.9-.094 1.294-.316.296-.174.557-.4.771-.669l.14.852h1.282V.007h-1.623v1.485ZM31 6.496a1.77 1.77 0 0 1-.494.061.964.964 0 0 1-.521-.127.758.758 0 0 1-.296-.466 3.984 3.984 0 0 1-.093-.992 4.208 4.208 0 0 1 .098-1.052.753.753 0 0 1 .307-.477 1.08 1.08 0 0 1 .55-.122c.233-.004.466.026.69.089l.483.144v2.553c-.11.076-.213.143-.307.2a1.73 1.73 0 0 1-.417.189ZM35.68 0l-.702.004c-.322.002-.482.168-.48.497l.004.581c.002.33.164.493.486.49l.702-.004c.322-.002.481-.167.48-.496L36.165.49c-.002-.33-.164-.493-.486-.491ZM36.145 2.313l-1.612.01.034 5.482 1.613-.01-.035-5.482ZM39.623.79 37.989.8 38 2.306l-.946.056.006 1.009.949-.006.024 2.983c.003.476.143.844.419 1.106.275.26.658.39 1.148.387.132 0 .293-.01.483-.03.19-.02.38-.046.57-.08.163-.028.324-.068.482-.119l-.183-1.095-.702.004a.664.664 0 0 1-.456-.123.553.553 0 0 1-.14-.422l-.016-2.621 1.513-.01-.006-1.064-1.514.01-.01-1.503ZM46.226 2.388c-.41-.184-.956-.274-1.636-.27-.673.004-1.215.101-1.627.29-.402.179-.72.505-.888.91-.18.419-.268.979-.264 1.68.004.688.1 1.24.285 1.655.172.404.495.724.9.894.414.18.957.268 1.63.264.68-.004 1.224-.099 1.632-.284.4-.176.714-.501.878-.905.176-.418.263-.971.258-1.658-.004-.702-.097-1.261-.28-1.677a1.696 1.696 0 0 0-.888-.9Zm-.613 3.607a.77.77 0 0 1-.337.501 1.649 1.649 0 0 1-1.317.009.776.776 0 0 1-.343-.497 4.066 4.066 0 0 1-.105-1.02 4.136 4.136 0 0 1 .092-1.03.786.786 0 0 1 .337-.507 1.59 1.59 0 0 1 1.316-.008.79.79 0 0 1 .344.502c.078.337.113.683.105 1.03.012.343-.019.685-.092 1.02ZM52.114 2.07a2.67 2.67 0 0 0-1.128.278c-.39.191-.752.437-1.072.73l-.157-.846-1.273.008.036 5.572 1.623-.01-.024-3.78c.35-.124.646-.22.887-.286.26-.075.53-.114.8-.118l.45-.003.144-1.546-.286.001ZM22.083 7.426l-1.576-2.532a2.137 2.137 0 0 0-.172-.253 1.95 1.95 0 0 0-.304-.29.138.138 0 0 1 .042-.04 1.7 1.7 0 0 0 .328-.374l1.75-2.71c.01-.015.025-.028.024-.048-.01-.01-.021-.007-.031-.007L20.49 1.17a.078.078 0 0 0-.075.045l-.868 1.384c-.23.366-.46.732-.688 1.099a.108.108 0 0 1-.112.06c-.098-.005-.196-.001-.294-.002-.018 0-.038.006-.055-.007.002-.02.002-.039.005-.058a4.6 4.6 0 0 0 .046-.701V1.203c0-.02-.009-.032-.03-.03h-.033L16.93 1.17c-.084 0-.073-.01-.073.076v6.491c-.001.018.006.028.025.027h1.494c.083 0 .072.007.072-.071v-2.19c0-.055-.003-.11-.004-.166a3.366 3.366 0 0 0-.05-.417h.06c.104 0 .209.002.313-.002a.082.082 0 0 1 .084.05c.535.913 1.07 1.824 1.607 2.736a.104.104 0 0 0 .103.062c.554-.003 1.107-.002 1.66-.002l.069-.003-.019-.032-.188-.304ZM27.112 6.555c-.005-.08-.004-.08-.082-.08h-2.414c-.053 0-.106-.003-.159-.011a.279.279 0 0 1-.246-.209.558.558 0 0 1-.022-.15c0-.382 0-.762-.002-1.143 0-.032.007-.049.042-.044h2.504c.029.003.037-.012.034-.038V3.814c0-.089.013-.078-.076-.078h-2.44c-.07 0-.062.003-.062-.06v-.837c0-.047.004-.093.013-.14a.283.283 0 0 1 .241-.246.717.717 0 0 1 .146-.011h2.484c.024.002.035-.009.036-.033l.003-.038.03-.496c.01-.183.024-.365.034-.548.005-.085.003-.087-.082-.094-.218-.018-.437-.038-.655-.05a17.845 17.845 0 0 0-.657-.026 72.994 72.994 0 0 0-1.756-.016 1.7 1.7 0 0 0-.471.064 1.286 1.286 0 0 0-.817.655c-.099.196-.149.413-.145.633v3.875c0 .072.003.144.011.216a1.27 1.27 0 0 0 .711 1.029c.228.113.48.167.734.158.757-.005 1.515.002 2.272-.042.274-.016.548-.034.82-.053.03-.002.043-.008.04-.041-.008-.104-.012-.208-.019-.312a69.964 69.964 0 0 1-.05-.768ZM16.14 7.415l-.127-1.075c-.004-.03-.014-.04-.044-.037a13.125 13.125 0 0 1-.998.073c-.336.01-.672.02-1.008.016-.116-.001-.233-.014-.347-.039a.746.746 0 0 1-.45-.262c-.075-.1-.132-.211-.167-.33a3.324 3.324 0 0 1-.126-.773 9.113 9.113 0 0 1-.015-.749c0-.285.022-.57.065-.852.023-.158.066-.312.127-.46a.728.728 0 0 1 .518-.443 1.64 1.64 0 0 1 .397-.048c.628-.001 1.255.003 1.882.05.022.001.033-.006.036-.026l.003-.031.06-.55c.019-.177.036-.355.057-.532.004-.034-.005-.046-.04-.056a5.595 5.595 0 0 0-1.213-.21 10.783 10.783 0 0 0-.708-.02c-.24-.003-.48.01-.719.041a3.477 3.477 0 0 0-.625.14 1.912 1.912 0 0 0-.807.497c-.185.2-.33.433-.424.688a4.311 4.311 0 0 0-.24 1.096c-.031.286-.045.572-.042.86-.006.43.024.86.091 1.286.04.25.104.497.193.734.098.279.26.53.473.734.214.205.473.358.756.446.344.11.702.17 1.063.177a8.505 8.505 0 0 0 1.578-.083 6.11 6.11 0 0 0 .766-.18c.03-.008.047-.023.037-.057a.157.157 0 0 1-.003-.025Z"/><path fill="#AFE229" d="M6.016 6.69a1.592 1.592 0 0 0-.614.21c-.23.132-.422.32-.56.546-.044.072-.287.539-.287.539l-.836 1.528.009.006c.038.025.08.046.123.063.127.046.26.07.395.073.505.023 1.011-.007 1.517-.003.29.009.58.002.869-.022a.886.886 0 0 0 .395-.116.962.962 0 0 0 .312-.286c.056-.083.114-.163.164-.249.24-.408.48-.816.718-1.226.075-.128.148-.257.222-.386l.112-.192a1.07 1.07 0 0 0 .153-.518l-1.304.023s-1.258-.005-1.388.01Z"/><path fill="#771BFF" d="m2.848 9.044.76-1.39.184-.352c-.124-.067-.245-.14-.367-.21-.346-.204-.706-.384-1.045-.6a.984.984 0 0 1-.244-.207c-.108-.134-.136-.294-.144-.46-.021-.409-.002-.818-.009-1.227-.003-.195 0-.39.003-.585.004-.322.153-.553.427-.713l.833-.488c.22-.13.44-.257.662-.385.05-.029.105-.052.158-.077.272-.128.519-.047.76.085l.044.028c.123.06.242.125.358.196.318.178.635.357.952.537.095.056.187.117.275.184.194.144.254.35.266.578.016.284.007.569.006.853-.001.28.004.558 0 .838.592-.003 1.259 0 1.259 0l.723-.013c-.003-.292-.007-.584-.007-.876 0-.524.015-1.048-.016-1.571-.024-.42-.135-.8-.492-1.067a5.02 5.02 0 0 0-.506-.339A400.52 400.52 0 0 0 5.94.787C5.722.664 5.513.524 5.282.423 5.255.406 5.228.388 5.2.373 4.758.126 4.305-.026 3.807.21c-.097.046-.197.087-.29.14A699.896 699.896 0 0 0 .783 1.948c-.501.294-.773.717-.778 1.31-.004.36-.009.718-.001 1.077.016.754-.017 1.508.024 2.261.016.304.07.6.269.848.127.15.279.28.448.382.622.4 1.283.734 1.92 1.11l.183.109Z"/></svg>
|
||
`,isColorInherited:!1}),n.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...t?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[t]}]:[],n],on:{dragstart:o.to(r=>r.preventDefault())}}]})}}function _g(i,e,t){return(n,o)=>{const r=new ge(i);if(r.width<N1||r.height<B1)return null;let s;s=e.position==="inside"?r.bottom-o.height:r.bottom-o.height/2,s-=e.verticalOffset;const a=t(r,o),c=n.clone().moveTo(a,s).getIntersection(o.clone().moveTo(a,s)).getVisible();return!c||c.getArea()<o.getArea()?null:{top:s,left:a,name:`position_${e.position}-side_${e.side}`,config:{withArrow:!1}}}}function Ag(i){const e=i.config.get("ui.poweredBy"),t=e&&e.position||"border";return S1({position:t,label:O1,verticalOffset:t==="inside"?5:0,horizontalOffset:5,side:i.locale.contentLanguageDirection==="ltr"?"right":"left"},e)}var Cg=I(1801),z1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Cg.A,z1),Cg.A.locals;const vg={POLITE:"polite",ASSERTIVE:"assertive"};class R1{constructor(e){this.editor=e,e.once("ready",()=>{for(const t of Object.values(vg))this.announce("",t)})}announce(e,t=vg.POLITE){const n=this.editor;if(!n.ui.view)return;this.view||(this.view=new j1(n.locale),n.ui.view.body.add(this.view));const{politeness:o,isUnsafeHTML:r}=typeof t=="string"?{politeness:t}:t;let s=this.view.regionViews.find(a=>a.politeness===o);s||(s=new F1(n,o),this.view.regionViews.add(s)),s.announce({announcement:e,isUnsafeHTML:r})}}class j1 extends te{constructor(e){super(e),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class F1 extends te{constructor(e,t){super(e.locale),this.setTemplate({tag:"div",attributes:{role:"region","aria-live":t,"aria-relevant":"additions"},children:[{tag:"ul",attributes:{class:["ck","ck-aria-live-region-list"]}}]}),e.on("destroy",()=>{this._pruneAnnouncementsInterval!==null&&(clearInterval(this._pruneAnnouncementsInterval),this._pruneAnnouncementsInterval=null)}),this.politeness=t,this._domConverter=e.data.htmlProcessor.domConverter,this._pruneAnnouncementsInterval=setInterval(()=>{this.element&&this._listElement.firstChild&&this._listElement.firstChild.remove()},5e3)}announce({announcement:e,isUnsafeHTML:t}){if(!e.trim().length)return;const n=document.createElement("li");t?this._domConverter.setContentOf(n,e):n.innerText=e,this._listElement.appendChild(n)}get _listElement(){return this.element.querySelector("ul")}}var V1=Object.defineProperty,yg=Object.getOwnPropertySymbols,H1=Object.prototype.hasOwnProperty,U1=Object.prototype.propertyIsEnumerable,xg=(i,e,t)=>e in i?V1(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;class W1 extends xe(){constructor(e){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const t=e.editing.view;this.editor=e,this.componentFactory=new d1(e),this.focusTracker=new ct,this.tooltipManager=new Gr(e),this.poweredBy=new P1(e),this.ariaLiveAnnouncer=new R1(e),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this.isReady=!0}),this.listenTo(t.document,"layoutChanged",this.update.bind(this)),this.listenTo(t,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const e of this._editableElementsMap.values())e.ckeditorInstance=null,this.editor.keystrokes.stopListening(e);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor),this.focusTracker.add(t);const n=()=>{this.editor.editing.view.getDomRoot(e)||this.editor.keystrokes.listenTo(t)};this.isReady?n():this.once("ready",n)}removeEditableElement(e){const t=this._editableElementsMap.get(e);t&&(this._editableElementsMap.delete(e),this.editor.keystrokes.stopListening(t),this.focusTracker.remove(t),t.ckeditorInstance=null)}getEditableElement(e="main"){return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(e,t={}){e.isRendered?(this.focusTracker.add(e.element),this.editor.keystrokes.listenTo(e.element)):e.once("render",()=>{this.focusTracker.add(e.element),this.editor.keystrokes.listenTo(e.element)}),this._focusableToolbarDefinitions.push({toolbarView:e,options:t})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const e=this.editor,t=e.config.get("ui.viewportOffset");if(t)return t;const n=e.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}_initFocusTracking(){const e=this.editor,t=e.editing.view;let n,o;e.keystrokes.set("Alt+F10",(r,s)=>{const a=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(a)&&!Array.from(t.domRoots.values()).includes(a)&&(n=a);const c=this._getCurrentFocusedToolbarDefinition();c&&o||(o=this._getFocusableCandidateToolbarDefinitions());for(let l=0;l<o.length;l++){const d=o.shift();if(o.push(d),d!==c&&this._focusFocusableCandidateToolbar(d)){c&&c.options.afterBlur&&c.options.afterBlur();break}}s()}),e.keystrokes.set("Esc",(r,s)=>{const a=this._getCurrentFocusedToolbarDefinition();a&&(n?(n.focus(),n=null):e.editing.view.focus(),a.options.afterBlur&&a.options.afterBlur(),s())})}_getFocusableCandidateToolbarDefinitions(){const e=[];for(const t of this._focusableToolbarDefinitions){const{toolbarView:n,options:o}=t;(Wn(n.element)||o.beforeFocus)&&e.push(t)}return e.sort((t,n)=>Dg(t)-Dg(n)),e}_getCurrentFocusedToolbarDefinition(){for(const e of this._focusableToolbarDefinitions)if(e.toolbarView.element&&e.toolbarView.element.contains(this.focusTracker.focusedElement))return e;return null}_focusFocusableCandidateToolbar(e){const{toolbarView:t,options:{beforeFocus:n}}=e;return n&&n(),!!Wn(t.element)&&(t.focus(),!0)}_handleScrollToTheSelection(e,t){const n=((o,r)=>{for(var s in r||(r={}))H1.call(r,s)&&xg(o,s,r[s]);if(yg)for(var s of yg(r))U1.call(r,s)&&xg(o,s,r[s]);return o})({top:0,bottom:0,left:0,right:0},this.viewportOffset);t.viewportOffset.top+=n.top,t.viewportOffset.bottom+=n.bottom,t.viewportOffset.left+=n.left,t.viewportOffset.right+=n.right}}function Dg(i){const{toolbarView:e,options:t}=i;let n=10;return Wn(e.element)&&n--,t.isContextual&&n--,n}var Eg=I(1185),q1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Eg.A,q1),Eg.A.locals;class G1 extends te{constructor(e){super(e),this.body=new Sv(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class $1 extends G1{constructor(e){super(e),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const e=this.t,t=new zr;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}class K1 extends te{constructor(e,t,n){super(e),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=t}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const e=this._editingView;function t(n){e.change(o=>{const r=e.document.getRoot(n.name);o.addClass(n.isFocused?"ck-focused":"ck-blurred",r),o.removeClass(n.isFocused?"ck-blurred":"ck-focused",r)})}e.isRenderingInProgress?function n(o){e.once("change:isRenderingInProgress",(r,s,a)=>{a?n(o):t(o)})}(this):t(this)}}class Y1 extends K1{constructor(e,t,n,o={}){super(e,t,n);const r=e.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=o.label||(()=>r("Editor editing area: %0",this.name))}render(){super.render();const e=this._editingView;e.change(t=>{const n=e.document.getRoot(this.name);t.setAttribute("aria-label",this._generateLabel(this),n)})}}class $a extends wr{static get pluginName(){return"Notification"}init(){this.on("show:warning",(e,t)=>{window.alert(t.message)},{priority:"lowest"})}showSuccess(e,t={}){this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}showInfo(e,t={}){this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}showWarning(e,t={}){this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}_showNotification(e){const t=e.namespace?`show:${e.type}:${e.namespace}`:`show:${e.type}`;this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}class Tg extends xe(){constructor(e,t){super(),t&&Xd(this,t),e&&this.set(e)}}var Mg=I(991),Q1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Mg.A,Q1),Mg.A.locals;var Ig=I(5380),Z1={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Ig.A,Z1),Ig.A.locals;const Kr=Ci("px");class Yr extends G{constructor(e){super(e),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const t=this.editor.editing.view,n=t.document.selection.editableElement;return n?t.domConverter.mapViewToDom(n.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(e){return Array.from(this._viewToStack.keys()).includes(e)}add(e){if(this._view||this._createPanelView(),this.hasView(e.view))throw new B("contextualballoon-add-view-exist",[this,e]);const t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));const n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new B("contextualballoon-remove-view-not-exist",[this,e]);const t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(t.size===1?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),t.size===1?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}updatePosition(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(e){this.visibleStack=e;const t=this._idToStack.get(e);if(!t)throw new B("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}_createPanelView(){this._view=new wt(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(e){return Array.from(this._idToStack.entries()).find(t=>t[1]===e)[0]}_showNextStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}_showPrevStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}_createRotatorView(){const e=new J1(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(n,o)=>!o&&n>1),e.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(n,o)=>{if(o<2)return"";const r=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return t("%0 of %1",[r,o])}),e.buttonNextView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),e.buttonPrevView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),e}_createFakePanelsView(){const e=new X1(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(t,n)=>!n&&t>=2?Math.min(t-1,2):0),e.listenTo(this.view,"change:top",()=>e.updatePosition()),e.listenTo(this.view,"change:left",()=>e.updatePosition()),this.editor.ui.view.body.add(e),e}_showView({view:e,balloonClassName:t="",withArrow:n=!0,singleViewMode:o=!1}){this.view.class=t,this.view.withArrow=n,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),o&&(this._singleViewMode=!0)}_getBalloonPosition(){let e=Array.from(this._visibleStack.values()).pop().position;return e&&(e.limiter||(e=Object.assign({},e,{limiter:this.positionLimiter})),e=Object.assign({},e,{viewportOffsetConfig:this.editor.ui.viewportOffset})),e}}class J1 extends te{constructor(e){super(e);const t=e.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new ct,this.buttonPrevView=this._createButtonView(t("Previous"),oe.previousArrow),this.buttonNextView=this._createButtonView(t("Next"),oe.nextArrow),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",o=>o?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){const n=new Ae(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}class X1 extends te{constructor(e,t){super(e);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=t,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",o=>o?"":"ck-hidden")],style:{top:n.to("top",Kr),left:n.to("left",Kr),width:n.to("width",Kr),height:n.to("height",Kr)}},children:this.content}),this.on("change:numberOfPanels",(o,r,s,a)=>{s>a?this._addPanels(s-a):this._removePanels(a-s),this.updatePosition()})}_addPanels(e){for(;e--;){const t=new te;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}_removePanels(e){for(;e--;){const t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:e,left:t}=this._balloonPanelView,{width:n,height:o}=new ge(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:n,height:o})}}}var Sg=I(8298),ey={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Sg.A,ey),Sg.A.locals;const Pi=Ci("px");class ty extends te{constructor(e){super(e);const t=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new Gt({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:t.to("isSticky",n=>n?"block":"none"),height:t.to("isSticky",n=>n?Pi(this._contentPanelRect.height):null)}}}).render(),this.contentPanelElement=new Gt({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",t.if("isSticky","ck-sticky-panel__content_sticky"),t.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:t.to("isSticky",n=>n?Pi(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:t.to("_stickyTopOffset",n=>n&&Pi(n)),bottom:t.to("_stickyBottomOffset",n=>n&&Pi(n)),marginLeft:t.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this.contentPanelElement]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(w.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const e=new ge(this.limiterElement);let t=e.getVisible();if(t){const n=new ge(w.window);n.top+=this.viewportTopOffset,n.height-=this.viewportTopOffset,t=t.getIntersection(n)}if(t&&e.top<t.top){const n=t.top;if(n+this._contentPanelRect.height+this.limiterBottomOffset>t.bottom){const o=Math.max(e.bottom-t.bottom,0)+this.limiterBottomOffset;e.bottom-o>e.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(o):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset<e.height?this._stickToTopOfAncestors(n):this._unstick()}else this._unstick()}_stickToTopOfAncestors(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=e,this._stickyBottomOffset=null,this._marginLeft=Pi(-w.window.scrollX)}_stickToBottomOfLimiter(e){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=e,this._marginLeft=Pi(-w.window.scrollX)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new ge(this.contentPanelElement)}}class ny extends Fr{constructor(e,t){const n=e.t,o=Object.assign({},{showResetButton:!0,showIcon:!0,creator:Ur},t);super(e,o.creator),this.label=t.label,this._viewConfig=o,this._viewConfig.showIcon&&(this.iconView=new kn,this.iconView.content=oe.loupe,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new Ae(e),this.resetButtonView.set({label:n("Clear"),icon:oe.cancel,class:"ck-search__reset",isVisible:!1,tooltip:!0}),this.resetButtonView.on("execute",()=>{this.reset(),this.focus(),this.fire("reset")}),this.resetButtonView.bind("isVisible").to(this.fieldView,"isEmpty",r=>!r),this.fieldWrapperChildren.add(this.resetButtonView),this.extendTemplate({attributes:{class:"ck-search__query_with-reset"}}))}reset(){this.fieldView.reset(),this._viewConfig.showResetButton&&(this.resetButtonView.isVisible=!1)}}class iy extends te{constructor(){super();const e=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",e.if("isVisible","ck-hidden",t=>!t)],tabindex:-1},children:[{tag:"span",children:[{text:[e.to("primaryText")]}]},{tag:"span",children:[{text:[e.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class oy extends te{constructor(e){super(e),this.children=this.createCollection(),this.focusTracker=new ct,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new jt({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const e of this.children)this.focusTracker.add(e.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var Bg=/[\\^$.*+?()[\]{}|]/g,ry=RegExp(Bg.source);const Ng=function(i){return(i=ra(i))&&ry.test(i)?i.replace(Bg,"\\$&"):i};var Og=I(8107),sy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Og.A,sy),Og.A.locals;var ay=Object.defineProperty,Pg=Object.getOwnPropertySymbols,cy=Object.prototype.hasOwnProperty,ly=Object.prototype.propertyIsEnumerable,Lg=(i,e,t)=>e in i?ay(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;class dy extends te{constructor(e,t){super(e),this._config=t,this.filteredView=t.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new ct,this.keystrokes=new ft,this.resultsView=new oy(e),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),t.infoView&&t.infoView.instance?this.infoView=t.infoView.instance:(this.infoView=new iy,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new jt({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(n,{resultsCount:o,totalItemsCount:r})=>{this.resultsCount=o,this.totalItemsCount=r}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",t.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const e=t=>t.stopPropagation();for(const t of this.focusableChildren)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(e){const t=e?new RegExp(Ng(e),"ig"):null,n=this.filteredView.filter(t);this.fire("search",((o,r)=>{for(var s in r||(r={}))cy.call(r,s)&&Lg(o,s,r[s]);if(Pg)for(var s of Pg(r))ly.call(r,s)&&Lg(o,s,r[s]);return o})({query:e},n))}_createSearchTextQueryView(){const e=new ny(this.locale,this._config.queryView);return this.listenTo(e.fieldView,"input",()=>{this.search(e.fieldView.element.value)}),e.on("reset",()=>this.reset()),e.bind("isEnabled").to(this),e}_enableDefaultInfoViewBehavior(){const e=this.locale.t,t=this.infoView;function n(o,{query:r,resultsCount:s,totalItemsCount:a}){return typeof o=="function"?o(r,s,a):o}this.on("search",(o,r)=>{if(r.resultsCount)t.set({isVisible:!1});else{const s=this._config.infoView&&this._config.infoView.text;let a,c;r.totalItemsCount?s&&s.notFound?(a=s.notFound.primary,c=s.notFound.secondary):(a=e("No results found"),c=""):s&&s.noSearchableItems?(a=s.noSearchableItems.primary,c=s.noSearchableItems.secondary):(a=e("No searchable items"),c=""),t.set({primaryText:n(a,r),secondaryText:n(c,r),isVisible:!0})}})}}var zg=I(5727),uy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(zg.A,uy),zg.A.locals;const Ka=class extends dy{constructor(i,e){super(i,e),this._config=e;const t=Ci("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const n=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[n.if("isVisible","ck-hidden",o=>!o),n.to("_position",o=>`ck-search__results_${o}`)],style:{width:n.to("_width",t)}}}),this.focusTracker.on("change:isFocused",(o,r,s)=>{this._updateResultsVisibility(),s?this.resultsView.element.scrollTop=0:e.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(o,r)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,r())}),this.listenTo(w.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(o,{value:r})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=r,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new ge(this.queryView.fieldView.element).width;const i=Ka._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:Ka.defaultResultsPositions});this.resultsView._position=i?i.name:"s"}_updateResultsVisibility(){const i=this._config.queryMinChars===void 0?0:this._config.queryMinChars,e=this.queryView.fieldView.element.value.length;this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&e>=i}};let Rg=Ka;Rg.defaultResultsPositions=[i=>({top:i.bottom,left:i.left,name:"s"}),(i,e)=>({top:i.top-e.height,left:i.left,name:"n"})],Rg._getOptimalPosition=gr;var jg=I(9529),hy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(jg.A,hy),jg.A.locals;var Fg=I(109),gy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Fg.A,gy),Fg.A.locals;var Vg=I(2710),my={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Vg.A,my),Vg.A.locals;var Hg=I(3344),py={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Hg.A,py),Hg.A.locals;class fy extends Ae{constructor(e){super(e);const t=this.bindTemplate;this.set({withText:!0,role:"menuitem"}),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__button"],"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",n=>String(n)),"data-cke-tooltip-disabled":t.to("isOn")},on:{mouseenter:t.to("mouseenter")}})}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const e=new kn;return e.content=jr,e.extendTemplate({attributes:{class:"ck-menu-bar__menu__button__arrow"}}),e}}var Ug=I(9481),ky={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Ug.A,ky),Ug.A.locals;class Ya extends Oi{constructor(e,t){super(e);const n=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item"]},on:{mouseenter:n.to("mouseenter")}}),this.delegate("mouseenter").to(t)}}var by=Object.defineProperty,Wg=Object.getOwnPropertySymbols,wy=Object.prototype.hasOwnProperty,_y=Object.prototype.propertyIsEnumerable,qg=(i,e,t)=>e in i?by(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Gg=(i,e)=>{for(var t in e||(e={}))wy.call(e,t)&&qg(i,t,e[t]);if(Wg)for(var t of Wg(e))_y.call(e,t)&&qg(i,t,e[t]);return i};const Io={toggleMenusAndFocusItemsOnHover(i){i.on("menu:mouseenter",e=>{if(i.isOpen){for(const t of i.menus){const n=e.path[0],o=n instanceof Ya&&n.children.first===t;t.isOpen=(e.path.includes(t)||o)&&t.isEnabled}e.source.focus()}})},focusCycleMenusOnArrows(i){const e=i.locale.uiLanguageDirection==="rtl";function t(n,o){const r=i.children.getIndex(n),s=n.isOpen,a=i.children.length,c=i.children.get((r+a+o)%a);n.isOpen=!1,s&&(c.isOpen=!0),c.buttonView.focus()}i.on("menu:arrowright",n=>{t(n.source,e?-1:1)}),i.on("menu:arrowleft",n=>{t(n.source,e?1:-1)})},closeMenusWhenTheBarCloses(i){i.on("change:isOpen",()=>{i.isOpen||i.menus.forEach(e=>{e.isOpen=!1})})},closeMenuWhenAnotherOnTheSameLevelOpens(i){i.on("menu:change:isOpen",(e,t,n)=>{n&&i.menus.filter(o=>e.source.parentMenuView===o.parentMenuView&&e.source!==o&&o.isOpen).forEach(o=>{o.isOpen=!1})})},closeOnClickOutside(i){kr({emitter:i,activator:()=>i.isOpen,callback:()=>i.close(),contextElements:()=>i.children.map(e=>e.element)})}},ei={openAndFocusPanelOnArrowDownKey(i){i.keystrokes.set("arrowdown",(e,t)=>{i.focusTracker.focusedElement===i.buttonView.element&&(i.isOpen||(i.isOpen=!0),i.panelView.focus(),t())})},openOnArrowRightKey(i){const e=i.locale.uiLanguageDirection==="rtl"?"arrowleft":"arrowright";i.keystrokes.set(e,(t,n)=>{i.focusTracker.focusedElement===i.buttonView.element&&i.isEnabled&&(i.isOpen||(i.isOpen=!0),i.panelView.focus(),n())})},openOnButtonClick(i){i.buttonView.on("execute",()=>{i.isOpen=!0,i.panelView.focus()})},toggleOnButtonClick(i){i.buttonView.on("execute",()=>{i.isOpen=!i.isOpen,i.isOpen&&i.panelView.focus()})},closeOnArrowLeftKey(i){const e=i.locale.uiLanguageDirection==="rtl"?"arrowright":"arrowleft";i.keystrokes.set(e,(t,n)=>{i.isOpen&&(i.isOpen=!1,i.focus(),n())})},closeOnEscKey(i){i.keystrokes.set("esc",(e,t)=>{i.isOpen&&(i.isOpen=!1,i.focus(),t())})},closeOnParentClose(i){i.parentMenuView.on("change:isOpen",(e,t,n)=>{n||e.source!==i.parentMenuView||(i.isOpen=!1)})}},Ay={southEast:i=>({top:i.bottom,left:i.left,name:"se"}),southWest:(i,e)=>({top:i.bottom,left:i.left-e.width+i.width,name:"sw"}),northEast:(i,e)=>({top:i.top-e.height,left:i.left,name:"ne"}),northWest:(i,e)=>({top:i.top-e.height,left:i.left-e.width+i.width,name:"nw"}),eastSouth:i=>({top:i.top,left:i.right-5,name:"es"}),eastNorth:(i,e)=>({top:i.top-e.height,left:i.right-5,name:"en"}),westSouth:(i,e)=>({top:i.top,left:i.left-e.width+5,name:"ws"}),westNorth:(i,e)=>({top:i.top-e.height,left:i.left-e.width+5,name:"wn"})},Cy=[{menuId:"file",label:"File",groups:[{groupId:"export",items:["menuBar:exportPdf","menuBar:exportWord"]},{groupId:"import",items:["menuBar:importWord"]},{groupId:"revisionHistory",items:["menuBar:revisionHistory"]}]},{menuId:"edit",label:"Edit",groups:[{groupId:"undo",items:["menuBar:undo","menuBar:redo"]},{groupId:"selectAll",items:["menuBar:selectAll"]},{groupId:"findAndReplace",items:["menuBar:findAndReplace"]}]},{menuId:"view",label:"View",groups:[{groupId:"sourceEditing",items:["menuBar:sourceEditing"]},{groupId:"showBlocks",items:["menuBar:showBlocks"]},{groupId:"restrictedEditingException",items:["menuBar:restrictedEditingException"]}]},{menuId:"insert",label:"Insert",groups:[{groupId:"insertMainWidgets",items:["menuBar:uploadImage","menuBar:ckbox","menuBar:ckfinder","menuBar:insertTable"]},{groupId:"insertInline",items:["menuBar:link","menuBar:comment"]},{groupId:"insertMinorWidgets",items:["menuBar:insertTemplate","menuBar:blockQuote","menuBar:codeBlock","menuBar:htmlEmbed"]},{groupId:"insertStructureWidgets",items:["menuBar:horizontalLine","menuBar:pageBreak","menuBar:tableOfContents"]},{groupId:"restrictedEditing",items:["menuBar:restrictedEditing"]}]},{menuId:"format",label:"Format",groups:[{groupId:"textAndFont",items:[{menuId:"text",label:"Text",groups:[{groupId:"basicStyles",items:["menuBar:bold","menuBar:italic","menuBar:underline","menuBar:strikethrough","menuBar:superscript","menuBar:subscript","menuBar:code"]},{groupId:"textPartLanguage",items:["menuBar:textPartLanguage"]}]},{menuId:"font",label:"Font",groups:[{groupId:"fontProperties",items:["menuBar:fontSize","menuBar:fontFamily"]},{groupId:"fontColors",items:["menuBar:fontColor","menuBar:fontBackgroundColor"]},{groupId:"highlight",items:["menuBar:highlight"]}]},"menuBar:heading"]},{groupId:"list",items:["menuBar:bulletedList","menuBar:numberedList","menuBar:todoList"]},{groupId:"indent",items:["menuBar:alignment","menuBar:indent","menuBar:outdent"]},{groupId:"caseChange",items:["menuBar:caseChange"]},{groupId:"removeFormat",items:["menuBar:removeFormat"]}]},{menuId:"tools",label:"Tools",groups:[{groupId:"aiTools",items:["menuBar:aiAssistant","menuBar:aiCommands"]},{groupId:"tools",items:["menuBar:trackChanges","menuBar:commentsArchive"]}]},{menuId:"help",label:"Help",groups:[{groupId:"help",items:["menuBar:accessibilityHelp"]}]}];function vy({normalizedConfig:i,locale:e,componentFactory:t}){const n=Yt(i);return function(o,r){const s=r.removeItems,a=[];r.items=r.items.filter(({menuId:c})=>!s.includes(c)||(a.push(c),!1)),Li(r.items,c=>{c.groups=c.groups.filter(({groupId:l})=>!s.includes(l)||(a.push(l),!1));for(const l of c.groups)l.items=l.items.filter(d=>{const u=Yg(d);return!s.includes(u)||(a.push(u),!1)})});for(const c of s)a.includes(c)||X("menu-bar-item-could-not-be-removed",{menuBarConfig:o,itemName:c})}(i,n),function(o,r){const s=r.addItems,a=[];for(const c of s){const l=Dy(c.position),d=Ey(c.position);if(yy(c))if(d){const u=r.items.findIndex(h=>h.menuId===d);u!=-1?l==="before"?(r.items.splice(u,0,c.menu),a.push(c)):l==="after"&&(r.items.splice(u+1,0,c.menu),a.push(c)):$g(r,c.menu,d,l)&&a.push(c)}else l==="start"?(r.items.unshift(c.menu),a.push(c)):l==="end"&&(r.items.push(c.menu),a.push(c));else xy(c)?Li(r.items,u=>{if(u.menuId===d)l==="start"?(u.groups.unshift(c.group),a.push(c)):l==="end"&&(u.groups.push(c.group),a.push(c));else{const h=u.groups.findIndex(m=>m.groupId===d);h!==-1&&(l==="before"?(u.groups.splice(h,0,c.group),a.push(c)):l==="after"&&(u.groups.splice(h+1,0,c.group),a.push(c)))}}):$g(r,c.item,d,l)&&a.push(c)}for(const c of s)a.includes(c)||X("menu-bar-item-could-not-be-added",{menuBarConfig:o,addedItemConfig:c})}(i,n),function(o,r,s){Li(r.items,a=>{for(const c of a.groups)c.items=c.items.filter(l=>{const d=typeof l=="string"&&!s.has(l);return d&&!r.isUsingDefaultConfig&&X("menu-bar-item-unavailable",{menuBarConfig:o,parentMenuConfig:Yt(a),componentName:l}),!d})})}(i,n,t),Kg(i,n),function(o,r){const s=r.t,a={File:s({string:"File",id:"MENU_BAR_MENU_FILE"}),Edit:s({string:"Edit",id:"MENU_BAR_MENU_EDIT"}),View:s({string:"View",id:"MENU_BAR_MENU_VIEW"}),Insert:s({string:"Insert",id:"MENU_BAR_MENU_INSERT"}),Format:s({string:"Format",id:"MENU_BAR_MENU_FORMAT"}),Tools:s({string:"Tools",id:"MENU_BAR_MENU_TOOLS"}),Help:s({string:"Help",id:"MENU_BAR_MENU_HELP"}),Text:s({string:"Text",id:"MENU_BAR_MENU_TEXT"}),Font:s({string:"Font",id:"MENU_BAR_MENU_FONT"})};Li(o.items,c=>{c.label in a&&(c.label=a[c.label])})}(n,e),n}function $g(i,e,t,n){let o=!1;return Li(i.items,r=>{for(const{groupId:s,items:a}of r.groups){if(o)return;if(s===t)n==="start"?(a.unshift(e),o=!0):n==="end"&&(a.push(e),o=!0);else{const c=a.findIndex(l=>Yg(l)===t);c!==-1&&(n==="before"?(a.splice(c,0,e),o=!0):n==="after"&&(a.splice(c+1,0,e),o=!0))}}}),o}function Kg(i,e){const t=e.isUsingDefaultConfig;let n=!1;e.items=e.items.filter(o=>!!o.groups.length||(Qa(i,o,t),!1)),e.items.length?(Li(e.items,o=>{o.groups=o.groups.filter(r=>!!r.items.length||(n=!0,!1));for(const r of o.groups)r.items=r.items.filter(s=>!(Qg(s)&&!s.groups.length)||(Qa(i,s,t),n=!0,!1))}),n&&Kg(i,e)):Qa(i,i,t)}function Qa(i,e,t){t||X("menu-bar-menu-empty",{menuBarConfig:i,emptyMenuConfig:e})}function Li(i,e){if(Array.isArray(i))for(const n of i)t(n);function t(n){e(n);for(const o of n.groups)for(const r of o.items)Qg(r)&&t(r)}}function yy(i){return typeof i=="object"&&"menu"in i}function xy(i){return typeof i=="object"&&"group"in i}function Dy(i){return i.startsWith("start")?"start":i.startsWith("end")?"end":i.startsWith("after")?"after":"before"}function Ey(i){const e=i.match(/^[^:]+:(.+)/);return e?e[1]:null}function Yg(i){return typeof i=="string"?i:i.menuId}function Qg(i){return typeof i=="object"&&"menuId"in i}function Ty(i,e){const t=e.element;i.ui.focusTracker.add(t),i.keystrokes.listenTo(t);const n=function(o){let r;return r="items"in o&&o.items?Gg({items:o.items,removeItems:[],addItems:[],isVisible:!0,isUsingDefaultConfig:!1},o):Gg({items:Yt(Cy),addItems:[],removeItems:[],isVisible:!0,isUsingDefaultConfig:!0},o),r}(i.config.get("menuBar")||{});e.fillFromConfig(n,i.ui.componentFactory),i.keystrokes.set("Esc",(o,r)=>{t.contains(i.ui.focusTracker.focusedElement)&&(i.editing.view.focus(),r())}),i.keystrokes.set("Alt+F9",(o,r)=>{t.contains(i.ui.focusTracker.focusedElement)||(e.focus(),r())})}var Zg=I(9108),My={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Zg.A,My),Zg.A.locals;class Iy extends te{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-menu-bar__menu__panel",t.to("position",n=>`ck-menu-bar__menu__panel_position_${n}`),t.if("isVisible","ck-hidden",n=>!n)],tabindex:"-1"},children:this.children,on:{selectstart:t.to(n=>{n.target.tagName.toLocaleLowerCase()!=="input"&&n.preventDefault()})}})}focus(e=1){this.children.length&&(e===1?this.children.first.focus():this.children.last.focus())}}var Jg=I(4),Sy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Jg.A,Sy),Jg.A.locals;const Xg=class extends te{constructor(i){super(i);const e=this.bindTemplate;this.buttonView=new fy(i),this.buttonView.delegate("mouseenter").to(this),this.buttonView.bind("isOn","isEnabled").to(this,"isOpen","isEnabled"),this.panelView=new Iy(i),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new ft,this.focusTracker=new ct,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("panelPosition","w"),this.set("class",void 0),this.set("parentMenuView",null),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar__menu",e.to("class"),e.if("isEnabled","ck-disabled",t=>!t),e.if("parentMenuView","ck-menu-bar__menu_top-level",t=>!t)]},children:[this.buttonView,this.panelView]})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.keystrokes.listenTo(this.element),ei.closeOnEscKey(this),this._repositionPanelOnOpen()}_attachBehaviors(){this.parentMenuView?(ei.openOnButtonClick(this),ei.openOnArrowRightKey(this),ei.closeOnArrowLeftKey(this),ei.closeOnParentClose(this)):(this._propagateArrowKeystrokeEvents(),ei.openAndFocusPanelOnArrowDownKey(this),ei.toggleOnButtonClick(this))}_propagateArrowKeystrokeEvents(){this.keystrokes.set("arrowright",(i,e)=>{this.fire("arrowright"),e()}),this.keystrokes.set("arrowleft",(i,e)=>{this.fire("arrowleft"),e()})}_repositionPanelOnOpen(){this.on("change:isOpen",(i,e,t)=>{if(!t)return;const n=Xg._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=n?n.name:this._panelPositions[0].name})}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:i,southWest:e,northEast:t,northWest:n,westSouth:o,eastSouth:r,westNorth:s,eastNorth:a}=Ay;return this.locale.uiLanguageDirection==="ltr"?this.parentMenuView?[r,a,o,s]:[i,e,t,n]:this.parentMenuView?[o,s,r,a]:[e,i,n,t]}};let zi=Xg;zi._getOptimalPosition=gr;class Za extends Va{constructor(e){super(e),this.role="menu"}}var em=I(977),By={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(em.A,By),em.A.locals;class It extends Ae{constructor(e){super(e),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}class tm extends Nh{constructor(e){super(e),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}var nm=I(497),Ny={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(nm.A,Ny),nm.A.locals;const im=["mouseenter","arrowleft","arrowright","change:isOpen"];class Oy extends te{constructor(e){super(e),this.menus=[];const t=e.t;this.set("isOpen",!1),this._setupIsOpenUpdater(),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar"],"aria-label":t("Editor menu bar"),role:"menubar"},children:this.children})}fillFromConfig(e,t){const n=vy({normalizedConfig:e,locale:this.locale,componentFactory:t}).items.map(o=>this._createMenu({componentFactory:t,menuDefinition:o}));this.children.addMany(n)}render(){super.render(),Io.toggleMenusAndFocusItemsOnHover(this),Io.closeMenusWhenTheBarCloses(this),Io.closeMenuWhenAnotherOnTheSameLevelOpens(this),Io.focusCycleMenusOnArrows(this),Io.closeOnClickOutside(this)}focus(){this.children.first&&this.children.first.focus()}close(){for(const e of this.children)e.isOpen=!1}registerMenu(e,t=null){t?(e.delegate(...im).to(t),e.parentMenuView=t):e.delegate(...im).to(this,n=>"menu:"+n),e._attachBehaviors(),this.menus.push(e)}_createMenu({componentFactory:e,menuDefinition:t,parentMenuView:n}){const o=this.locale,r=new zi(o);return this.registerMenu(r,n),r.buttonView.set({label:t.label}),r.once("change:isOpen",()=>{const s=new Za(o);s.ariaLabel=t.label,r.panelView.children.add(s),s.items.addMany(this._createMenuItems({menuDefinition:t,parentMenuView:r,componentFactory:e}))}),r}_createMenuItems({menuDefinition:e,parentMenuView:t,componentFactory:n}){const o=this.locale,r=[];for(const s of e.groups){for(const a of s.items){const c=new Ya(o,t);if(he(a))c.children.add(this._createMenu({componentFactory:n,menuDefinition:a,parentMenuView:t}));else{const l=this._createMenuItemContentFromFactory({componentName:a,componentFactory:n,parentMenuView:t});if(!l)continue;c.children.add(l)}r.push(c)}s!==e.groups[e.groups.length-1]&&r.push(new Fa(o))}return r}_createMenuItemContentFromFactory({componentName:e,parentMenuView:t,componentFactory:n}){const o=n.create(e);return o instanceof zi||o instanceof It||o instanceof tm?(this._registerMenuTree(o,t),o.on("execute",()=>{this.close()}),o):(X("menu-bar-component-unsupported",{componentName:e,componentView:o}),null)}_registerMenuTree(e,t){if(!(e instanceof zi))return void e.delegate("mouseenter").to(t);this.registerMenu(e,t);const n=e.panelView.children.filter(r=>r instanceof Za)[0];if(!n)return void e.delegate("mouseenter").to(t);const o=n.items.filter(r=>r instanceof Oi);for(const r of o)this._registerMenuTree(r.children.get(0),e)}_setupIsOpenUpdater(){let e;this.on("menu:change:isOpen",(t,n,o)=>{clearTimeout(e),o?this.isOpen=!0:e=setTimeout(()=>{this.isOpen=Array.from(this.children).some(r=>r.isOpen)},0)})}}class Py extends W1{constructor(e,t){super(e),this.view=t,this._toolbarConfig=Wh(e.config.get("toolbar")),this._elementReplacer=new ui,this.listenTo(e.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(e){const t=this.editor,n=this.view,o=t.editing.view,r=n.editable,s=o.document.getRoot();r.name=s.rootName,n.render();const a=r.element;this.setEditableElement(r.name,a),n.editable.bind("isFocused").to(this.focusTracker),o.attachDomRoot(a),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),n.menuBarView&&Ty(t,n.menuBarView),this._initDialogPluginIntegration(),this.fire("ready")}destroy(){super.destroy();const e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy()}_initToolbar(){const e=this.view;e.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),e.stickyPanel.limiterElement=e.element,e.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:t})=>t||0),e.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(e.toolbar)}_initPlaceholder(){const e=this.editor,t=e.editing.view,n=t.document.getRoot(),o=e.sourceElement;let r;const s=e.config.get("placeholder");s&&(r=typeof s=="string"?s:s[this.view.editable.name]),!r&&o&&o.tagName.toLowerCase()==="textarea"&&(r=o.getAttribute("placeholder")),r&&(n.placeholder=r),Dd({view:t,element:n,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(e,t,n){const o=this.view.stickyPanel;if(o.isSticky){const r=new ge(o.element).height;t.viewportOffset.top+=r}else{const r=()=>{this.editor.editing.view.scrollToTheSelection(n)};this.listenTo(o,"change:isSticky",r),setTimeout(()=>{this.stopListening(o,"change:isSticky",r)},20)}}_initDialogPluginIntegration(){if(!this.editor.plugins.has("Dialog"))return;const e=this.view.stickyPanel,t=this.editor.plugins.get("Dialog");t.on("show",()=>{const n=t.view;n.on("moveTo",(o,r)=>{if(!e.isSticky||n.wasMoved)return;const s=new ge(e.contentPanelElement);r[1]<s.bottom+qr.defaultOffset&&(r[1]=s.bottom+qr.defaultOffset)},{priority:"high"})},{priority:"low"})}}var om=I(7388),Ly={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(om.A,Ly),om.A.locals;class zy extends $1{constructor(e,t,n={}){super(e),this.stickyPanel=new ty(e),this.toolbar=new ja(e,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),n.useMenuBar&&(this.menuBarView=new Oy(e)),this.editable=new Y1(e,t)}render(){super.render(),this.menuBarView?this.stickyPanel.content.addMany([this.menuBarView,this.toolbar]):this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class rm{constructor(e){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit=typeof e.crashNumberLimit=="number"?e.crashNumberLimit:3,this._minimumNonErrorTimePeriod=typeof e.minimumNonErrorTimePeriod=="number"?e.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=t=>{const n="error"in t?t.error:t.reason;n instanceof Error&&this._handleError(n,t)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){this._listeners[e]=this._listeners[e].filter(n=>n!==t)}_fire(e,...t){const n=this._listeners[e]||[];for(const o of n)o.apply(this,[null,...t])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(e,t){if(this._shouldReactToError(e)){this.crashes.push({message:e.message,stack:e.stack,filename:t instanceof ErrorEvent?t.filename:void 0,lineno:t instanceof ErrorEvent?t.lineno:void 0,colno:t instanceof ErrorEvent?t.colno:void 0,date:this._now()});const n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:e,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(e){return e.is&&e.is("CKEditorError")&&e.context!==void 0&&e.context!==null&&this.state==="ready"&&this._isErrorComingFromThisItem(e)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit?!0:(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function Ja(i,e=new Set){const t=[i],n=new Set;let o=0;for(;t.length>o;){const r=t[o++];if(!n.has(r)&&Ry(r)&&!e.has(r))if(n.add(r),Symbol.iterator in r)try{for(const s of r)t.push(s)}catch{}else for(const s in r)s!=="defaultValue"&&t.push(r[s])}return n}function Ry(i){const e=Object.prototype.toString.call(i),t=typeof i;return!(t==="number"||t==="boolean"||t==="string"||t==="symbol"||t==="function"||e==="[object Date]"||e==="[object RegExp]"||e==="[object Module]"||i==null||i._watchdogExcluded||i instanceof EventTarget||i instanceof Event)}function sm(i,e,t=new Set){if(i===e&&typeof(n=i)=="object"&&n!==null)return!0;var n;const o=Ja(i,t),r=Ja(e,t);for(const s of o)if(r.has(s))return!0;return!1}var jy=Object.defineProperty,Fy=Object.defineProperties,Vy=Object.getOwnPropertyDescriptors,Qr=Object.getOwnPropertySymbols,am=Object.prototype.hasOwnProperty,cm=Object.prototype.propertyIsEnumerable,lm=(i,e,t)=>e in i?jy(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Xa=(i,e)=>{for(var t in e||(e={}))am.call(e,t)&&lm(i,t,e[t]);if(Qr)for(var t of Qr(e))cm.call(e,t)&&lm(i,t,e[t]);return i};class dm extends rm{constructor(e,t={}){super(t),this._editor=null,this._lifecyclePromise=null,this._initUsingData=!0,this._editables={},this._throttledSave=$r(this._save.bind(this),typeof t.saveInterval=="number"?t.saveInterval:5e3),e&&(this._creator=(n,o)=>e.create(n,o)),this._destructor=n=>n.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(e=>{console.error("An error happened during the editor destroying.",e)}).then(()=>{const e={},t=[],n=this._config.rootsAttributes||{},o={};for(const[c,l]of Object.entries(this._data.roots))l.isLoaded?(e[c]="",o[c]=n[c]||{}):t.push(c);const r=(s=Xa({},this._config),a={extraPlugins:this._config.extraPlugins||[],lazyRoots:t,rootsAttributes:o,_watchdogInitialData:this._data},Fy(s,Vy(a)));var s,a;return delete r.initialData,r.extraPlugins.push(Hy),this._initUsingData?this.create(e,r,r.context):Un(this._elementOrData)?this.create(this._elementOrData,r,r.context):this.create(this._editables,r,r.context)}).then(()=>{this._fire("restart")})}create(e=this._elementOrData,t=this._config,n){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then(()=>(super._startErrorHandling(),this._elementOrData=e,this._initUsingData=typeof e=="string"||Object.keys(e).length>0&&typeof Object.values(e)[0]=="string",this._config=this._cloneEditorConfiguration(t)||{},this._config.context=n,this._creator(e,this._config))).then(o=>{this._editor=o,o.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=o.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")}).finally(()=>{this._lifecyclePromise=null}),this._lifecyclePromise}destroy(){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())).finally(()=>{this._lifecyclePromise=null}),this._lifecyclePromise}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const e=this._editor;return this._editor=null,e.model.document.off("change:data",this._throttledSave),this._destructor(e)})}_save(){const e=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=e}catch(t){console.error(t,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(e){this._excludedProps=e}_getData(){const e=this._editor,t=e.model.document.roots.filter(a=>a.isAttached()&&a.rootName!="$graveyard"),{plugins:n}=e,o=n.has("CommentsRepository")&&n.get("CommentsRepository"),r=n.has("TrackChanges")&&n.get("TrackChanges"),s={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};t.forEach(a=>{s.roots[a.rootName]={content:JSON.stringify(Array.from(a.getChildren())),attributes:JSON.stringify(Array.from(a.getAttributes())),isLoaded:a._isLoaded}});for(const a of e.model.markers)a._affectsData&&(s.markers[a.name]={rangeJSON:a.getRange().toJSON(),usingOperation:a._managedUsingOperations,affectsData:a._affectsData});return o&&(s.commentThreads=JSON.stringify(o.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),r&&(s.suggestions=JSON.stringify(r.getSuggestions({toJSON:!0,skipNotAttached:!0}))),s}_getEditables(){const e={};for(const t of this.editor.model.document.getRootNames()){const n=this.editor.ui.getEditableElement(t);n&&(e[t]=n)}return e}_isErrorComingFromThisItem(e){return sm(this._editor,e.context,this._excludedProps)}_cloneEditorConfiguration(e){return Hs(e,(t,n)=>Un(t)||n==="context"?t:void 0)}}class Hy{constructor(e){this.editor=e,this._data=e.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",e=>{e.stop(),this.editor.model.enqueueChange({isUndoable:!1},t=>{this._restoreCollaborationData(),this._restoreEditorData(t)}),this.editor.data.fire("ready")},{priority:999})}_createNode(e,t){if("name"in t){const n=e.createElement(t.name,t.attributes);if(t.children)for(const o of t.children)n._appendChild(this._createNode(e,o));return n}return e.createText(t.data,t.attributes)}_restoreEditorData(e){const t=this.editor;Object.entries(this._data.roots).forEach(([n,{content:o,attributes:r}])=>{const s=JSON.parse(o),a=JSON.parse(r),c=t.model.document.getRoot(n);for(const[l,d]of a)e.setAttribute(l,d,c);for(const l of s){const d=this._createNode(e,l);e.insert(d,c,"end")}}),Object.entries(this._data.markers).forEach(([n,o])=>{const{document:r}=t.model,s=o,{rangeJSON:{start:a,end:c}}=s,l=((k,A)=>{var E={};for(var S in k)am.call(k,S)&&A.indexOf(S)<0&&(E[S]=k[S]);if(k!=null&&Qr)for(var S of Qr(k))A.indexOf(S)<0&&cm.call(k,S)&&(E[S]=k[S]);return E})(s,["rangeJSON"]),d=r.getRoot(a.root),u=e.createPositionFromPath(d,a.path,a.stickiness),h=e.createPositionFromPath(d,c.path,c.stickiness),m=e.createRange(u,h);e.addMarker(n,Xa({range:m},l))})}_restoreCollaborationData(){const e=JSON.parse(this._data.commentThreads),t=JSON.parse(this._data.suggestions);e.forEach(n=>{const o=this.editor.config.get("collaboration.channelId"),r=this.editor.plugins.get("CommentsRepository");r.hasCommentThread(n.threadId)&&r.getCommentThread(n.threadId).remove(),r.addCommentThread(Xa({channelId:o},n))}),t.forEach(n=>{const o=this.editor.plugins.get("TrackChangesEditing");o.hasSuggestion(n.id)?o.getSuggestion(n.id).attributes=n.attributes:o.addSuggestionData(n)})}}const So=Symbol("MainQueueId");class Uy{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(e){this._onEmptyCallbacks.push(e)}enqueue(e,t){const n=e===So;this._activeActions++,this._queues.get(e)||this._queues.set(e,Promise.resolve());const o=(n?Promise.all(this._queues.values()):Promise.all([this._queues.get(So),this._queues.get(e)])).then(t),r=o.catch(()=>{});return this._queues.set(e,r),o.finally(()=>{this._activeActions--,this._queues.get(e)===r&&this._activeActions===0&&this._onEmptyCallbacks.forEach(s=>s())})}}function um(i){return Array.isArray(i)?i:[i]}class Zr extends Pa(xv){constructor(e,t={}){if(!Jr(e)&&t.initialData!==void 0)throw new B("editor-create-initial-data",null);super(t),this.config.define("menuBar.isVisible",!1),this.config.get("initialData")===void 0&&this.config.set("initialData",function(s){return Jr(s)?(a=s,a instanceof HTMLTextAreaElement?a.value:a.innerHTML):s;var a}(e)),Jr(e)&&(this.sourceElement=e),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),o=this.config.get("menuBar"),r=new zy(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n,useMenuBar:o.isVisible});this.ui=new Py(this,r),function(s){if(!jn(s.updateSourceElement))throw new B("attachtoform-missing-elementapi-interface",s);const a=s.sourceElement;if(function(c){return!!c&&c.tagName.toLowerCase()==="textarea"}(a)&&a.form){let c;const l=a.form,d=()=>s.updateSourceElement();jn(l.submit)&&(c=l.submit,l.submit=()=>{d(),c.apply(l)}),l.addEventListener("submit",d),s.on("destroy",()=>{l.removeEventListener("submit",d),c&&(l.submit=c)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(e,t={}){return new Promise(n=>{const o=new this(e,t);n(o.initPlugins().then(()=>o.ui.init(Jr(e)?e:null)).then(()=>o.data.init(o.config.get("initialData"))).then(()=>o.fire("ready")).then(()=>o))})}}function Jr(i){return Un(i)}Zr.Context=vd,Zr.EditorWatchdog=dm,Zr.ContextWatchdog=class extends rm{constructor(i,e={}){super(e),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new Uy,this._watchdogConfig=e,this._creator=t=>i.create(t),this._destructor=t=>t.destroy(),this._actionQueues.onEmpty(()=>{this.state==="initializing"&&(this.state="ready",this._fire("stateChange"))})}setCreator(i){this._creator=i}setDestructor(i){this._destructor=i}get context(){return this._context}create(i={}){return this._actionQueues.enqueue(So,()=>(this._contextConfig=i,this._create()))}getItem(i){return this._getWatchdog(i)._item}getItemState(i){return this._getWatchdog(i).state}add(i){const e=um(i);return Promise.all(e.map(t=>this._actionQueues.enqueue(t.id,()=>{if(this.state==="destroyed")throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let n;if(this._watchdogs.has(t.id))throw new Error(`Item with the given id is already added: '${t.id}'.`);if(t.type==="editor")return n=new dm(null,this._watchdogConfig),n.setCreator(t.creator),n._setExcludedProperties(this._contextProps),t.destructor&&n.setDestructor(t.destructor),this._watchdogs.set(t.id,n),n.on("error",(o,{error:r,causesRestart:s})=>{this._fire("itemError",{itemId:t.id,error:r}),s&&this._actionQueues.enqueue(t.id,()=>new Promise(a=>{const c=()=>{n.off("restart",c),this._fire("itemRestart",{itemId:t.id}),a()};n.on("restart",c)}))}),n.create(t.sourceElementOrData,t.config,this._context);throw new Error(`Not supported item type: '${t.type}'.`)})))}remove(i){const e=um(i);return Promise.all(e.map(t=>this._actionQueues.enqueue(t,()=>{const n=this._getWatchdog(t);return this._watchdogs.delete(t),n.destroy()})))}destroy(){return this._actionQueues.enqueue(So,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(So,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(i=>{console.error("An error happened during destroying the context or items.",i)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(i=>(this._context=i,this._contextProps=Ja(this._context),Promise.all(Array.from(this._watchdogs.values()).map(e=>(e._setExcludedProperties(this._contextProps),e.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();const i=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(e=>e.destroy())).then(()=>this._destructor(i))})}_getWatchdog(i){const e=this._watchdogs.get(i);if(!e)throw new Error(`Item with the given id was not registered: ${i}.`);return e}_isErrorComingFromThisItem(i){for(const e of this._watchdogs.values())if(e._isErrorComingFromThisItem(i))return!1;return sm(this._context,i.context)}};class Bo extends Sn{constructor(e){super(e),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const t=this.document;function n(o){return(r,s)=>{s.preventDefault();const a=s.dropRange?[s.dropRange]:null,c=new V(t,o);t.fire(c,{dataTransfer:s.dataTransfer,method:r.name,targetRanges:a,target:s.target,domEvent:s.domEvent}),c.stop.called&&s.stopPropagation()}}this.listenTo(t,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(t,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(t,"dragover",n("dragging"),{priority:"low"})}onDomEvent(e){const t="clipboardData"in e?e.clipboardData:e.dataTransfer,n=e.type=="drop"||e.type=="paste",o={dataTransfer:new au(t,{cacheFiles:n})};e.type!="drop"&&e.type!="dragover"||(o.dropRange=function(r,s){const a=s.target.ownerDocument,c=s.clientX,l=s.clientY;let d;return a.caretRangeFromPoint&&a.caretRangeFromPoint(c,l)?d=a.caretRangeFromPoint(c,l):s.rangeParent&&(d=a.createRange(),d.setStart(s.rangeParent,s.rangeOffset),d.collapse(!0)),d?r.domConverter.domRangeToView(d):null}(this.view,e)),this.fire(e.type,e,o)}}const hm=["figcaption","li"],gm=["ol","ul"];function mm(i){if(i.is("$text")||i.is("$textProxy"))return i.data;if(i.is("element","img")&&i.hasAttribute("alt"))return i.getAttribute("alt");if(i.is("element","br"))return`
|
||
`;let e="",t=null;for(const n of i.getChildren())e+=Wy(n,t)+mm(n),t=n;return e}function Wy(i,e){return e?i.is("element","li")&&!i.isEmpty&&i.getChild(0).is("containerElement")||gm.includes(i.name)&&gm.includes(e.name)?`
|
||
|
||
`:i.is("containerElement")||e.is("containerElement")?hm.includes(i.name)||hm.includes(e.name)?`
|
||
`:`
|
||
|
||
`:"":""}const qy=function(i,e){return i&&nd(i,e,ao)},Gy=function(i,e,t,n){var o=t.length,r=o,s=!n;if(i==null)return!r;for(i=Object(i);o--;){var a=t[o];if(s&&a[2]?a[1]!==i[a[0]]:!(a[0]in i))return!1}for(;++o<r;){var c=(a=t[o])[0],l=i[c],d=a[1];if(s&&a[2]){if(l===void 0&&!(c in i))return!1}else{var u=new bi;if(n)var h=n(l,d,c,i,e,u);if(!(h===void 0?Sr(d,l,3,n,u):h))return!1}}return!0},pm=function(i){return i==i&&!he(i)},$y=function(i){for(var e=ao(i),t=e.length;t--;){var n=e[t],o=i[n];e[t]=[n,o,pm(o)]}return e},fm=function(i,e){return function(t){return t!=null&&t[i]===e&&(e!==void 0||i in Object(t))}},Ky=function(i){var e=$y(i);return e.length==1&&e[0][2]?fm(e[0][0],e[0][1]):function(t){return t===i||Gy(t,i,e)}},Yy=function(i,e){return i!=null&&e in Object(i)},Qy=function(i,e,t){for(var n=-1,o=(e=Cr(e,i)).length,r=!1;++n<o;){var s=xi(e[n]);if(!(r=i!=null&&t(i,s)))break;i=i[s]}return r||++n!=o?r:!!(o=i==null?0:i.length)&&Ms(o)&&ar(s,o)&&(vt(i)||sr(i))},Zy=function(i,e){return i!=null&&Qy(i,e,Yy)},Jy=function(i,e){return ia(i)&&pm(e)?fm(xi(i),e):function(t){var n=po(t,i);return n===void 0&&n===e?Zy(t,i):Sr(e,n,3)}},Xy=function(i){return function(e){return e==null?void 0:e[i]}},ex=function(i){return function(e){return sa(e,i)}},tx=function(i){return ia(i)?Xy(xi(i)):ex(i)},nx=function(i){return typeof i=="function"?i:i==null?In:typeof i=="object"?vt(i)?Jy(i[0],i[1]):Ky(i):tx(i)},ix=function(i,e){var t={};return e=nx(e),qy(i,function(n,o,r){rr(t,o,e(n,o,r))}),t};var ox=Object.defineProperty,rx=Object.defineProperties,sx=Object.getOwnPropertyDescriptors,km=Object.getOwnPropertySymbols,ax=Object.prototype.hasOwnProperty,cx=Object.prototype.propertyIsEnumerable,bm=(i,e,t)=>e in i?ox(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;class No extends G{constructor(){super(...arguments),this._markersToCopy=new Map}static get pluginName(){return"ClipboardMarkersUtils"}_registerMarkerToCopy(e,t){this._markersToCopy.set(e,t)}_copySelectedFragmentWithMarkers(e,t,n=o=>o.model.getSelectedContent(o.model.document.selection)){return this.editor.model.change(o=>{const r=o.model.document.selection;o.setSelection(t);const s=this._insertFakeMarkersIntoSelection(o,o.model.document.selection,e),a=n(o),c=this._removeFakeMarkersInsideElement(o,a);for(const[l,d]of Object.entries(s)){c[l]||(c[l]=o.createRangeIn(a));for(const u of d)o.remove(u)}a.markers.clear();for(const[l,d]of Object.entries(c))a.markers.set(l,d);return o.setSelection(r),a})}_pasteMarkersIntoTransformedElement(e,t){const n=this._getPasteMarkersFromRangeMap(e);return this.editor.model.change(o=>{const r=this._insertFakeMarkersElements(o,n),s=t(o),a=this._removeFakeMarkersInsideElement(o,s);for(const c of Object.values(r).flat())o.remove(c);for(const[c,l]of Object.entries(a))o.model.markers.has(c)||o.addMarker(c,{usingOperation:!0,affectsData:!0,range:l});return s})}_pasteFragmentWithMarkers(e){const t=this._getPasteMarkersFromRangeMap(e.markers);e.markers.clear();for(const n of t)e.markers.set(n.name,n.range);return this.editor.model.insertContent(e)}_forceMarkersCopy(e,t,n={allowedActions:"all",copyPartiallySelected:!0,duplicateOnPaste:!0}){const o=this._markersToCopy.get(e);this._markersToCopy.set(e,n),t(),o?this._markersToCopy.set(e,o):this._markersToCopy.delete(e)}_isMarkerCopyable(e,t){const n=this._getMarkerClipboardConfig(e);if(!n)return!1;if(!t)return!0;const{allowedActions:o}=n;return o==="all"||o.includes(t)}_hasMarkerConfiguration(e){return!!this._getMarkerClipboardConfig(e)}_getMarkerClipboardConfig(e){const[t]=e.split(":");return this._markersToCopy.get(t)||null}_insertFakeMarkersIntoSelection(e,t,n){const o=this._getCopyableMarkersFromSelection(e,t,n);return this._insertFakeMarkersElements(e,o)}_getCopyableMarkersFromSelection(e,t,n){const o=Array.from(t.getRanges()),r=new Set(o.flatMap(s=>Array.from(e.model.markers.getMarkersIntersectingRange(s))));return Array.from(r).filter(s=>{if(!this._isMarkerCopyable(s.name,n))return!1;const{copyPartiallySelected:a}=this._getMarkerClipboardConfig(s.name);if(!a){const c=s.getRange();return o.some(l=>l.containsRange(c,!0))}return!0}).map(s=>({name:n==="dragstart"?this._getUniqueMarkerName(s.name):s.name,range:s.getRange()}))}_getPasteMarkersFromRangeMap(e,t=null){const{model:n}=this.editor;return(e instanceof Map?Array.from(e.entries()):Object.entries(e)).flatMap(([o,r])=>{if(!this._hasMarkerConfiguration(o))return[{name:o,range:r}];if(this._isMarkerCopyable(o,t)){const s=this._getMarkerClipboardConfig(o),a=n.markers.has(o)&&n.markers.get(o).getRange().root.rootName==="$graveyard";return(s.duplicateOnPaste||a)&&(o=this._getUniqueMarkerName(o)),[{name:o,range:r}]}return[]})}_insertFakeMarkersElements(e,t){const n={},o=t.flatMap(r=>{const{start:s,end:a}=r.range;return[{position:s,marker:r,type:"start"},{position:a,marker:r,type:"end"}]}).sort(({position:r},{position:s})=>r.isBefore(s)?1:-1);for(const{position:r,marker:s,type:a}of o){const c=e.createElement("$marker",{"data-name":s.name,"data-type":a});n[s.name]||(n[s.name]=[]),n[s.name].push(c),e.insert(c,r)}return n}_removeFakeMarkersInsideElement(e,t){const n=this._getAllFakeMarkersFromElement(e,t).reduce((o,r)=>{const s=r.markerElement&&e.createPositionBefore(r.markerElement);let a=o[r.name],c=!1;a&&a.start&&a.end&&(this._getMarkerClipboardConfig(r.name).duplicateOnPaste?o[this._getUniqueMarkerName(r.name)]=o[r.name]:c=!0,a=null);var l,d;return c||(o[r.name]=(l=((u,h)=>{for(var m in h||(h={}))ax.call(h,m)&&bm(u,m,h[m]);if(km)for(var m of km(h))cx.call(h,m)&&bm(u,m,h[m]);return u})({},a),d={[r.type]:s},rx(l,sx(d)))),r.markerElement&&e.remove(r.markerElement),o},{});return ix(n,o=>new F(o.start||e.createPositionFromPath(t,[0]),o.end||e.createPositionAt(t,"end")))}_getAllFakeMarkersFromElement(e,t){const n=Array.from(e.createRangeIn(t)).flatMap(({item:s})=>{if(!s.is("element","$marker"))return[];const a=s.getAttribute("data-name"),c=s.getAttribute("data-type");return[{markerElement:s,name:a,type:c}]}),o=[],r=[];for(const s of n)s.type==="end"&&(n.some(a=>a.name===s.name&&a.type==="start")||o.push({markerElement:null,name:s.name,type:"start"})),s.type==="start"&&(n.some(a=>a.name===s.name&&a.type==="end")||r.unshift({markerElement:null,name:s.name,type:"end"}));return[...o,...n,...r]}_getUniqueMarkerName(e){const t=e.split(":"),n=$().substring(1,6);return t.length===3?`${t.slice(0,2).join(":")}:${n}`:`${t.join(":")}:${n}`}}class Ft extends G{static get pluginName(){return"ClipboardPipeline"}static get requires(){return[No]}init(){this.editor.editing.view.addObserver(Bo),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(e,t,n){const o=this.editor.plugins.get("ClipboardMarkersUtils");this.editor.model.enqueueChange({isUndoable:n==="cut"},()=>{const r=o._copySelectedFragmentWithMarkers(n,t);this.fire("outputTransformation",{dataTransfer:e,content:r,method:n})})}_setupPasteDrop(){const e=this.editor,t=e.model,n=e.editing.view,o=n.document,r=this.editor.plugins.get("ClipboardMarkersUtils");this.listenTo(o,"clipboardInput",(s,a)=>{a.method!="paste"||e.model.canEditAt(e.model.document.selection)||s.stop()},{priority:"highest"}),this.listenTo(o,"clipboardInput",(s,a)=>{const c=a.dataTransfer;let l;if(a.content)l=a.content;else{let h="";c.getData("text/html")?h=function(m){return m.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(k,A)=>A.length==1?" ":A).replace(/<!--[\s\S]*?-->/g,"")}(c.getData("text/html")):c.getData("text/plain")&&(((d=(d=c.getData("text/plain")).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/\t/g," ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," ")).includes("</p><p>")||d.includes("<br>"))&&(d=`<p>${d}</p>`),h=d),l=this.editor.data.htmlProcessor.toView(h)}var d;const u=new V(this,"inputTransformation");this.fire(u,{content:l,dataTransfer:c,targetRanges:a.targetRanges,method:a.method}),u.stop.called&&s.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(s,a)=>{if(a.content.isEmpty)return;const c=this.editor.data.toModel(a.content,"$clipboardHolder");c.childCount!=0&&(s.stop(),t.change(()=>{this.fire("contentInsertion",{content:c,method:a.method,dataTransfer:a.dataTransfer,targetRanges:a.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(s,a)=>{a.resultRange=r._pasteFragmentWithMarkers(a.content)},{priority:"low"})}_setupCopyCut(){const e=this.editor,t=e.model.document,n=e.editing.view.document,o=(r,s)=>{const a=s.dataTransfer;s.preventDefault(),this._fireOutputTransformationEvent(a,t.selection,r.name)};this.listenTo(n,"copy",o,{priority:"low"}),this.listenTo(n,"cut",(r,s)=>{e.model.canEditAt(e.model.document.selection)?o(r,s):s.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(r,s)=>{const a=e.data.toView(s.content);n.fire("clipboardOutput",{dataTransfer:s.dataTransfer,content:a,method:s.method})},{priority:"low"}),this.listenTo(n,"clipboardOutput",(r,s)=>{s.content.isEmpty||(s.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(s.content)),s.dataTransfer.setData("text/plain",mm(s.content))),s.method=="cut"&&e.model.deleteContent(t.selection)},{priority:"low"})}}class wm{constructor(e,t=20){this._batch=null,this.model=e,this._size=0,this.limit=t,this._isLocked=!1,this._changeCallback=(n,o)=>{o.isLocal&&o.isUndoable&&o!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(e){this._size+=e,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(e=!1){this.isLocked&&!e||(this._batch=null,this._size=0)}}class lx extends de{constructor(e,t){super(e),this._buffer=new wm(e.model,t),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){const t=this.editor.model,n=t.document,o=e.text||"",r=o.length;let s=n.selection;if(e.selection?s=e.selection:e.range&&(s=t.createSelection(e.range)),!t.canEditAt(s))return;const a=e.resultRange;t.enqueueChange(this._buffer.batch,c=>{this._buffer.lock();const l=Array.from(n.selection.getAttributes());t.deleteContent(s),o&&t.insertContent(c.createText(o,l),s),a?c.setSelection(a):s.is("documentSelection")||c.setSelection(s),this._buffer.unlock(),this._buffer.input(r)})}}const _m=["insertText","insertReplacementText"];class dx extends ln{constructor(e){super(e),this.focusObserver=e.getObserver(Br),x.isAndroid&&_m.push("insertCompositionText");const t=e.document;t.on("beforeinput",(n,o)=>{if(!this.isEnabled)return;const{data:r,targetRanges:s,inputType:a,domEvent:c}=o;if(!_m.includes(a))return;this.focusObserver.flush();const l=new V(t,"insertText");t.fire(l,new Mi(e,c,{text:r,selection:e.createSelection(s)})),l.stop.called&&n.stop()}),t.on("compositionend",(n,{data:o,domEvent:r})=>{this.isEnabled&&!x.isAndroid&&o&&t.fire("insertText",new Mi(e,r,{text:o,selection:t.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class Am extends G{static get pluginName(){return"Input"}init(){const e=this.editor,t=e.model,n=e.editing.view,o=t.document.selection;n.addObserver(dx);const r=new lx(e,e.config.get("typing.undoStep")||20);e.commands.add("insertText",r),e.commands.add("input",r),this.listenTo(n.document,"insertText",(s,a)=>{n.document.isComposing||a.preventDefault();const{text:c,selection:l,resultRange:d}=a,u=Array.from(l.getRanges()).map(k=>e.editing.mapper.toModelRange(k));let h=c;if(x.isAndroid){const k=Array.from(u[0].getItems()).reduce((A,E)=>A+(E.is("$textProxy")?E.data:""),"");k&&(k.length<=h.length?h.startsWith(k)&&(h=h.substring(k.length),u[0].start=u[0].start.getShiftedBy(k.length)):k.startsWith(h)&&(u[0].start=u[0].start.getShiftedBy(h.length),h=""))}const m={text:h,selection:t.createSelection(u)};d&&(m.resultRange=e.editing.mapper.toModelRange(d)),e.execute("insertText",m),n.scrollToTheSelection()}),x.isAndroid?this.listenTo(n.document,"keydown",(s,a)=>{!o.isCollapsed&&a.keyCode==229&&n.document.isComposing&&Cm(t,r)}):this.listenTo(n.document,"compositionstart",()=>{o.isCollapsed||Cm(t,r)})}}function Cm(i,e){if(!e.isEnabled)return;const t=e.buffer;t.lock(),i.enqueueChange(t.batch,()=>{i.deleteContent(i.document.selection)}),t.unlock()}class vm extends de{constructor(e,t){super(e),this.direction=t,this._buffer=new wm(e.model,e.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(e={}){const t=this.editor.model,n=t.document;t.enqueueChange(this._buffer.batch,o=>{this._buffer.lock();const r=o.createSelection(e.selection||n.selection);if(!t.canEditAt(r))return;const s=e.sequence||1,a=r.isCollapsed;if(r.isCollapsed&&t.modifySelection(r,{direction:this.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(s))return void this._replaceEntireContentWithParagraph(o);if(this._shouldReplaceFirstBlockWithParagraph(r,s))return void this.editor.execute("paragraph",{selection:r});if(r.isCollapsed)return;let c=0;r.getFirstRange().getMinimalFlatRanges().forEach(l=>{c+=hi(l.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),t.deleteContent(r,{doNotResetEntireContent:a,direction:this.direction}),this._buffer.input(c),o.setSelection(r),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;const t=this.editor.model,n=t.document.selection,o=t.schema.getLimitElement(n);if(!(n.isCollapsed&&n.containsEntireContent(o))||!t.schema.checkChild(o,"paragraph"))return!1;const r=o.getChild(0);return!r||!r.is("element","paragraph")}_replaceEntireContentWithParagraph(e){const t=this.editor.model,n=t.document.selection,o=t.schema.getLimitElement(n),r=e.createElement("paragraph");e.remove(e.createRangeIn(o)),e.insert(r,o),e.setSelection(r,0)}_shouldReplaceFirstBlockWithParagraph(e,t){const n=this.editor.model;if(t>1||this.direction!="backward"||!e.isCollapsed)return!1;const o=e.getFirstPosition(),r=n.schema.getLimitElement(o),s=r.getChild(0);return o.parent==s&&!!e.containsEntireContent(s)&&!!n.schema.checkChild(r,"paragraph")&&s.name!="paragraph"}}const ym="word",Nn="selection",Ri="backward",Oo="forward",xm={deleteContent:{unit:Nn,direction:Ri},deleteContentBackward:{unit:"codePoint",direction:Ri},deleteWordBackward:{unit:ym,direction:Ri},deleteHardLineBackward:{unit:Nn,direction:Ri},deleteSoftLineBackward:{unit:Nn,direction:Ri},deleteContentForward:{unit:"character",direction:Oo},deleteWordForward:{unit:ym,direction:Oo},deleteHardLineForward:{unit:Nn,direction:Oo},deleteSoftLineForward:{unit:Nn,direction:Oo}};class ux extends ln{constructor(e){super(e);const t=e.document;let n=0;t.on("keydown",()=>{n++}),t.on("keyup",()=>{n=0}),t.on("beforeinput",(o,r)=>{if(!this.isEnabled)return;const{targetRanges:s,domEvent:a,inputType:c}=r,l=xm[c];if(!l)return;const d={direction:l.direction,unit:l.unit,sequence:n};d.unit==Nn&&(d.selectionToRemove=e.createSelection(s[0])),c==="deleteContentBackward"&&(x.isAndroid&&(d.sequence=1),function(h){if(h.length!=1||h[0].isCollapsed)return!1;const m=h[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let k=0;for(const{nextPosition:A,item:E}of m){if(A.parent.is("$text")){const S=A.parent.data,O=A.offset;if(Qs(S,O)||Zs(S,O)||sd(S,O))continue;k++}else(E.is("containerElement")||E.is("emptyElement"))&&k++;if(k>1)return!0}return!1}(s)&&(d.unit=Nn,d.selectionToRemove=e.createSelection(s)));const u=new Di(t,"delete",s[0]);t.fire(u,new Mi(e,a,d)),u.stop.called&&o.stop()}),x.isBlink&&function(o){const r=o.view,s=r.document;let a=null,c=!1;function l(u){return u==ke.backspace||u==ke.delete}function d(u){return u==ke.backspace?Ri:Oo}s.on("keydown",(u,{keyCode:h})=>{a=h,c=!1}),s.on("keyup",(u,{keyCode:h,domEvent:m})=>{const k=s.selection,A=o.isEnabled&&h==a&&l(h)&&!k.isCollapsed&&!c;if(a=null,A){const E=k.getFirstRange(),S=new Di(s,"delete",E),O={unit:Nn,direction:d(h),selectionToRemove:k};s.fire(S,new Mi(r,m,O))}}),s.on("beforeinput",(u,{inputType:h})=>{const m=xm[h];l(a)&&m&&m.direction==d(a)&&(c=!0)},{priority:"high"}),s.on("beforeinput",(u,{inputType:h,data:m})=>{a==ke.delete&&h=="insertText"&&m==""&&u.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class _n extends G{static get pluginName(){return"Delete"}init(){const e=this.editor,t=e.editing.view,n=t.document,o=e.model.document;t.addObserver(ux),this._undoOnBackspace=!1;const r=new vm(e,"forward");e.commands.add("deleteForward",r),e.commands.add("forwardDelete",r),e.commands.add("delete",new vm(e,"backward")),this.listenTo(n,"delete",(s,a)=>{n.isComposing||a.preventDefault();const{direction:c,sequence:l,selectionToRemove:d,unit:u}=a,h=c==="forward"?"deleteForward":"delete",m={sequence:l};if(u=="selection"){const k=Array.from(d.getRanges()).map(A=>e.editing.mapper.toModelRange(A));m.selection=e.model.createSelection(k)}else m.unit=u;e.execute(h,m),t.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",(s,a)=>{this._undoOnBackspace&&a.direction=="backward"&&a.sequence==1&&a.unit=="codePoint"&&(this._undoOnBackspace=!1,e.execute("undo"),a.preventDefault(),s.stop())},{context:"$capture"}),this.listenTo(o,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class hx extends G{static get requires(){return[Am,_n]}static get pluginName(){return"Typing"}}function Dm(i,e){let t=i.start;return{text:Array.from(i.getWalker({ignoreElementEnd:!1})).reduce((n,{item:o})=>o.is("$text")||o.is("$textProxy")?n+o.data:(t=e.createPositionAfter(o),""),""),range:e.createRange(t,i.end)}}class Em extends xe(){constructor(e,t){super(),this.model=e,this.testCallback=t,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const e=this.model.document;this.listenTo(e.selection,"change:range",(t,{directChange:n})=>{n&&(e.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(e,"change:data",(t,n)=>{!n.isUndo&&n.isLocal&&this._evaluateTextBeforeSelection("data",{batch:n})})}_evaluateTextBeforeSelection(e,t={}){const n=this.model,o=n.document.selection,r=n.createRange(n.createPositionAt(o.focus.parent,0),o.focus),{text:s,range:a}=Dm(r,n),c=this.testCallback(s);if(!c&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!c,c){const l=Object.assign(t,{text:s,range:a});typeof c=="object"&&Object.assign(l,c),this.fire(`matched:${e}`,l)}}}class Tm extends G{constructor(e){super(e),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const e=this.editor,t=e.model,n=e.editing.view,o=e.locale,r=t.document.selection;this.listenTo(n.document,"arrowKey",(s,a)=>{if(!r.isCollapsed||a.shiftKey||a.altKey||a.ctrlKey)return;const c=a.keyCode==ke.arrowright,l=a.keyCode==ke.arrowleft;if(!c&&!l)return;const d=o.contentLanguageDirection;let u=!1;u=d==="ltr"&&c||d==="rtl"&&l?this._handleForwardMovement(a):this._handleBackwardMovement(a),u===!0&&s.stop()},{context:"$text",priority:"highest"}),this.listenTo(r,"change:range",(s,a)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!a.directChange&&Vt(r.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){const t=this.attributes,n=this.editor.model,o=n.document.selection,r=o.getFirstPosition();return!this._isGravityOverridden&&(!r.isAtStart||!An(o,t))&&!!Vt(r,t)&&(Lo(e),An(o,t)&&Vt(r,t,!0)?Po(n,t):this._overrideGravity(),!0)}_handleBackwardMovement(e){const t=this.attributes,n=this.editor.model,o=n.document.selection,r=o.getFirstPosition();return this._isGravityOverridden?(Lo(e),this._restoreGravity(),Vt(r,t,!0)?Po(n,t):Xr(n,t,r),!0):r.isAtStart?!!An(o,t)&&(Lo(e),Xr(n,t,r),!0):!An(o,t)&&Vt(r,t,!0)?(Lo(e),Xr(n,t,r),!0):!!Mm(r,t)&&(r.isAtEnd&&!An(o,t)&&Vt(r,t)?(Lo(e),Xr(n,t,r),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const e=this.editor,t=e.model,n=t.document.selection,o=e.editing.view.document;e.editing.view.addObserver(Na);let r=!1;this.listenTo(o,"mousedown",()=>{r=!0}),this.listenTo(o,"selectionChange",()=>{const s=this.attributes;if(!r||(r=!1,!n.isCollapsed)||!An(n,s))return;const a=n.getFirstPosition();Vt(a,s)&&(a.isAtStart||Vt(a,s,!0)?Po(t,s):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection,n=this.attributes;this.listenTo(e,"insertContent",()=>{const o=t.getFirstPosition();An(t,n)&&Vt(o,n)&&Po(e,n)},{priority:"low"})}_handleDeleteContentAfterNode(){const e=this.editor,t=e.model,n=t.document.selection,o=e.editing.view;let r=!1,s=!1;this.listenTo(o.document,"delete",(a,c)=>{r=c.direction==="backward"},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{if(!r)return;const a=n.getFirstPosition();s=An(n,this.attributes)&&!Mm(a,this.attributes)},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{r&&(r=!1,s||e.model.enqueueChange(()=>{const a=n.getFirstPosition();An(n,this.attributes)&&Vt(a,this.attributes)&&(a.isAtStart||Vt(a,this.attributes,!0)?Po(t,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(e=>e.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(e=>{e.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function An(i,e){for(const t of e)if(i.hasAttribute(t))return!0;return!1}function Xr(i,e,t){const n=t.nodeBefore;i.change(o=>{if(n){const r=[],s=i.schema.isObject(n)&&i.schema.isInline(n);for(const[a,c]of n.getAttributes())!i.schema.checkAttribute("$text",a)||s&&i.schema.getAttributeProperties(a).copyFromObject===!1||r.push([a,c]);o.setSelectionAttribute(r)}else o.removeSelectionAttribute(e)})}function Po(i,e){i.change(t=>{t.removeSelectionAttribute(e)})}function Lo(i){i.preventDefault()}function Mm(i,e){return Vt(i.getShiftedBy(-1),e)}function Vt(i,e,t=!1){const{nodeBefore:n,nodeAfter:o}=i;for(const r of e){const s=n?n.getAttribute(r):void 0,a=o?o.getAttribute(r):void 0;if((!t||s!==void 0&&a!==void 0)&&a!==s)return!0}return!1}const Im={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:ji('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:ji("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:ji("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:ji('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:ji('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:ji("'"),to:[null,"‚",null,"’"]}},Sm={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},gx=["symbols","mathematical","typography","quotes"];function mx(i){return typeof i=="string"?new RegExp(`(${Ng(i)})$`):i}function px(i){return typeof i=="string"?()=>[i]:i instanceof Array?()=>i:i}function fx(i){return(i.textNode?i.textNode:i.nodeAfter).getAttributes()}function ji(i){return new RegExp(`(^|\\s)(${i})([^${i}]*)(${i})$`)}function es(i,e,t,n){return n.createRange(Bm(i,e,t,!0,n),Bm(i,e,t,!1,n))}function Bm(i,e,t,n,o){let r=i.textNode||(n?i.nodeBefore:i.nodeAfter),s=null;for(;r&&r.getAttribute(e)==t;)s=r,r=n?r.previousSibling:r.nextSibling;return s?o.createPositionAt(s,n?"before":"after"):i}function*Nm(i,e){for(const t of e)t&&i.getAttributeProperties(t[0]).copyOnEnter&&(yield t)}class kx extends de{execute(){this.editor.model.change(e=>{this.enterBlock(e),this.fire("afterExecute",{writer:e})})}enterBlock(e){const t=this.editor.model,n=t.document.selection,o=t.schema,r=n.isCollapsed,s=n.getFirstRange(),a=s.start.parent,c=s.end.parent;if(o.isLimit(a)||o.isLimit(c))return r||a!=c||t.deleteContent(n),!1;if(r){const l=Nm(e.model.schema,n.getAttributes());return Om(e,s.start),e.setSelectionAttribute(l),!0}{const l=!(s.start.isAtStart&&s.end.isAtEnd),d=a==c;if(t.deleteContent(n,{leaveUnmerged:l}),l){if(d)return Om(e,n.focus),!0;e.setSelection(c,0)}}return!1}}function Om(i,e){i.split(e),i.setSelection(e.parent.nextSibling,0)}const bx={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class Pm extends ln{constructor(e){super(e);const t=this.document;let n=!1;t.on("keydown",(o,r)=>{n=r.shiftKey}),t.on("beforeinput",(o,r)=>{if(!this.isEnabled)return;let s=r.inputType;x.isSafari&&n&&s=="insertParagraph"&&(s="insertLineBreak");const a=r.domEvent,c=bx[s];if(!c)return;const l=new Di(t,"enter",r.targetRanges[0]);t.fire(l,new Mi(e,a,{isSoft:c.isSoft})),l.stop.called&&o.stop()})}observe(){}stopObserving(){}}class ts extends G{static get pluginName(){return"Enter"}init(){const e=this.editor,t=e.editing.view,n=t.document,o=this.editor.t;t.addObserver(Pm),e.commands.add("enter",new kx(e)),this.listenTo(n,"enter",(r,s)=>{n.isComposing||s.preventDefault(),s.isSoft||(e.execute("enter"),t.scrollToTheSelection())},{priority:"low"}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:o("Insert a hard break (a new paragraph)"),keystroke:"Enter"}]})}}class wx extends de{execute(){const e=this.editor.model,t=e.document;e.change(n=>{(function(o,r,s){const a=s.isCollapsed,c=s.getFirstRange(),l=c.start.parent,d=c.end.parent,u=l==d;if(a){const h=Nm(o.schema,s.getAttributes());Lm(o,r,c.end),r.removeSelectionAttribute(s.getAttributeKeys()),r.setSelectionAttribute(h)}else{const h=!(c.start.isAtStart&&c.end.isAtEnd);o.deleteContent(s,{leaveUnmerged:h}),u?Lm(o,r,s.focus):h&&r.setSelection(d,0)}})(e,n,t.selection),this.fire("afterExecute",{writer:n})})}refresh(){const e=this.editor.model,t=e.document;this.isEnabled=function(n,o){if(o.rangeCount>1)return!1;const r=o.anchor;if(!r||!n.checkChild(r,"softBreak"))return!1;const s=o.getFirstRange(),a=s.start.parent,c=s.end.parent;return!((ec(a,n)||ec(c,n))&&a!==c)}(e.schema,t.selection)}}function Lm(i,e,t){const n=e.createElement("softBreak");i.insertContent(n,t),e.setSelection(n,"after")}function ec(i,e){return!i.is("rootElement")&&(e.isLimit(i)||ec(i.parent,e))}class _x extends G{static get pluginName(){return"ShiftEnter"}init(){const e=this.editor,t=e.model.schema,n=e.conversion,o=e.editing.view,r=o.document,s=this.editor.t;t.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(a,{writer:c})=>c.createEmptyElement("br")}),o.addObserver(Pm),e.commands.add("shiftEnter",new wx(e)),this.listenTo(r,"enter",(a,c)=>{r.isComposing||c.preventDefault(),c.isSoft&&(e.execute("shiftEnter"),o.scrollToTheSelection())},{priority:"low"}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:s("Insert a soft break (a <code><br></code> element)"),keystroke:"Shift+Enter"}]})}}class Ax extends ye(){constructor(){super(...arguments),this._stack=[]}add(e,t){const n=this._stack,o=n[0];this._insertDescriptor(e);const r=n[0];o===r||tc(o,r)||this.fire("change:top",{oldDescriptor:o,newDescriptor:r,writer:t})}remove(e,t){const n=this._stack,o=n[0];this._removeDescriptor(e);const r=n[0];o===r||tc(o,r)||this.fire("change:top",{oldDescriptor:o,newDescriptor:r,writer:t})}_insertDescriptor(e){const t=this._stack,n=t.findIndex(r=>r.id===e.id);if(tc(e,t[n]))return;n>-1&&t.splice(n,1);let o=0;for(;t[o]&&Cx(t[o],e);)o++;t.splice(o,0,e)}_removeDescriptor(e){const t=this._stack,n=t.findIndex(o=>o.id===e);n>-1&&t.splice(n,1)}}function tc(i,e){return i&&e&&i.priority==e.priority&&ns(i.classes)==ns(e.classes)}function Cx(i,e){return i.priority>e.priority||!(i.priority<e.priority)&&ns(i.classes)>ns(e.classes)}function ns(i){return Array.isArray(i)?i.sort().join(","):i}const vx='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',yx="ck-widget",zm="ck-widget_selected";function et(i){return!!i.is("element")&&!!i.getCustomProperty("widget")}function nc(i,e,t={}){if(!i.is("containerElement"))throw new B("widget-to-widget-wrong-element-type",null,{element:i});return e.setAttribute("contenteditable","false",i),e.addClass(yx,i),e.setCustomProperty("widget",!0,i),i.getFillerOffset=Ex,e.setCustomProperty("widgetLabel",[],i),t.label&&function(n,o){n.getCustomProperty("widgetLabel").push(o)}(i,t.label),t.hasSelectionHandle&&function(n,o){const r=o.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(s){const a=this.toDomElement(s),c=new kn;return c.set("content",vx),c.render(),a.appendChild(c.element),a});o.insert(o.createPositionAt(n,0),r),o.addClass(["ck-widget_with-selection-handle"],n)}(i,e),Rm(i,e),i}function xx(i,e,t){if(e.classes&&t.addClass(Oe(e.classes),i),e.attributes)for(const n in e.attributes)t.setAttribute(n,e.attributes[n],i)}function Dx(i,e,t){if(e.classes&&t.removeClass(Oe(e.classes),i),e.attributes)for(const n in e.attributes)t.removeAttribute(n,i)}function Rm(i,e,t=xx,n=Dx){const o=new Ax;o.on("change:top",(r,s)=>{s.oldDescriptor&&n(i,s.oldDescriptor,s.writer),s.newDescriptor&&t(i,s.newDescriptor,s.writer)}),e.setCustomProperty("addHighlight",(r,s,a)=>o.add(s,a),i),e.setCustomProperty("removeHighlight",(r,s,a)=>o.remove(s,a),i)}function jm(i,e,t={}){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],i),e.setAttribute("role","textbox",i),e.setAttribute("tabindex","-1",i),t.label&&e.setAttribute("aria-label",t.label,i),e.setAttribute("contenteditable",i.isReadOnly?"false":"true",i),i.on("change:isReadOnly",(n,o,r)=>{e.setAttribute("contenteditable",r?"false":"true",i)}),i.on("change:isFocused",(n,o,r)=>{r?e.addClass("ck-editor__nested-editable_focused",i):e.removeClass("ck-editor__nested-editable_focused",i)}),Rm(i,e),i}function Fm(i,e){const t=i.getSelectedElement();if(t){const n=On(i);if(n)return e.createRange(e.createPositionAt(t,n))}return e.schema.findOptimalInsertionRange(i)}function Ex(){return null}const Cn="widget-type-around";function ti(i,e,t){return!!i&&et(i)&&!t.isInline(e)}function On(i){return i.getAttribute(Cn)}var Vm=I(8508),Tx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Vm.A,Tx),Vm.A.locals;const Hm=["before","after"],Mx=new DOMParser().parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild,Um="ck-widget__type-around_disabled";class Ix extends G{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[ts,_n]}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",(n,o,r)=>{t.change(s=>{for(const a of t.document.roots)r?s.removeClass(Um,a):s.addClass(Um,a)}),r||e.model.change(s=>{s.removeSelectionAttribute(Cn)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(e,t){const n=this.editor,o=n.editing.view,r=n.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(e,t),attributes:r}),o.focus(),o.scrollToTheSelection()}_listenToIfEnabled(e,t,n,o){this.listenTo(e,t,(...r)=>{this.isEnabled&&n(...r)},o)}_insertParagraphAccordingToFakeCaretPosition(){const e=this.editor.model.document.selection,t=On(e);if(!t)return!1;const n=e.getSelectedElement();return this._insertParagraph(n,t),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,n=e.locale.t,o={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(r,s,a)=>{const c=a.mapper.toViewElement(s.item);c&&ti(c,s.item,t)&&(function(l,d,u){const h=l.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(m){const k=this.toDomElement(m);return function(A,E){for(const S of Hm){const O=new Gt({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${S}`],title:E[S],"aria-hidden":"true"},children:[A.ownerDocument.importNode(Mx,!0)]});A.appendChild(O.render())}}(k,d),function(A){const E=new Gt({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});A.appendChild(E.render())}(k),k});l.insert(l.createPositionAt(u,"end"),h)}(a.writer,o,c),c.getCustomProperty("widgetLabel").push(()=>this.isEnabled?n("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,n=t.document.selection,o=t.schema,r=e.editing.view;function s(a){return`ck-widget_type-around_show-fake-caret_${a}`}this._listenToIfEnabled(r.document,"arrowKey",(a,c)=>{this._handleArrowKeyPress(a,c)},{context:[et,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",(a,c)=>{c.directChange&&e.model.change(l=>{l.removeSelectionAttribute(Cn)})}),this._listenToIfEnabled(t.document,"change:data",()=>{const a=n.getSelectedElement();a&&ti(e.editing.mapper.toViewElement(a),a,o)||e.model.change(c=>{c.removeSelectionAttribute(Cn)})}),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(a,c,l)=>{const d=l.writer;if(this._currentFakeCaretModelElement){const k=l.mapper.toViewElement(this._currentFakeCaretModelElement);k&&(d.removeClass(Hm.map(s),k),this._currentFakeCaretModelElement=null)}const u=c.selection.getSelectedElement();if(!u)return;const h=l.mapper.toViewElement(u);if(!ti(h,u,o))return;const m=On(c.selection);m&&(d.addClass(s(m),h),this._currentFakeCaretModelElement=u)}),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(a,c,l)=>{l||e.model.change(d=>{d.removeSelectionAttribute(Cn)})})}_handleArrowKeyPress(e,t){const n=this.editor,o=n.model,r=o.document.selection,s=o.schema,a=n.editing.view,c=function(u,h){const m=qs(u,h);return m==="down"||m==="right"}(t.keyCode,n.locale.contentLanguageDirection),l=a.document.selection.getSelectedElement();let d;ti(l,n.editing.mapper.toModelElement(l),s)?d=this._handleArrowKeyPressOnSelectedWidget(c):r.isCollapsed?d=this._handleArrowKeyPressWhenSelectionNextToAWidget(c):t.shiftKey||(d=this._handleArrowKeyPressWhenNonCollapsedSelection(c)),d&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const t=this.editor.model,n=On(t.document.selection);return t.change(o=>n?n!==(e?"after":"before")?(o.removeSelectionAttribute(Cn),!0):!1:(o.setSelectionAttribute(Cn,e?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,n=t.model,o=n.schema,r=t.plugins.get("Widget"),s=r._getObjectElementNextToSelection(e);return!!ti(t.editing.mapper.toViewElement(s),s,o)&&(n.change(a=>{r._setSelectionOverElement(s),a.setSelectionAttribute(Cn,e?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,n=t.model,o=n.schema,r=t.editing.mapper,s=n.document.selection,a=e?s.getLastPosition().nodeBefore:s.getFirstPosition().nodeAfter;return!!ti(r.toViewElement(a),a,o)&&(n.change(c=>{c.setSelection(a,"on"),c.setSelectionAttribute(Cn,e?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",(n,o)=>{const r=o.domTarget.closest(".ck-widget__type-around__button");if(!r)return;const s=function(l){return l.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(r),a=function(l,d){const u=l.closest(".ck-widget");return d.mapDomToView(u)}(r,t.domConverter),c=e.editing.mapper.toModelElement(a);this._insertParagraph(c,s),o.preventDefault(),n.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,n=e.editing.view;this._listenToIfEnabled(n.document,"enter",(o,r)=>{if(o.eventPhase!="atTarget")return;const s=t.getSelectedElement(),a=e.editing.mapper.toViewElement(s),c=e.model.schema;let l;this._insertParagraphAccordingToFakeCaretPosition()?l=!0:ti(a,s,c)&&(this._insertParagraph(s,r.isSoft?"before":"after"),l=!0),l&&(r.preventDefault(),o.stop())},{context:et})}_enableInsertingParagraphsOnTypingKeystroke(){const e=this.editor.editing.view.document;this._listenToIfEnabled(e,"insertText",(t,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=e.selection)},{priority:"high"}),x.isAndroid?this._listenToIfEnabled(e,"keydown",(t,n)=>{n.keyCode==229&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(e,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,n=e.model,o=n.schema;this._listenToIfEnabled(t.document,"delete",(r,s)=>{if(r.eventPhase!="atTarget")return;const a=On(n.document.selection);if(!a)return;const c=s.direction,l=n.document.selection.getSelectedElement(),d=c=="forward";if(a==="before"===d)e.execute("delete",{selection:n.createSelection(l,"on")});else{const u=o.getNearestSelectionRange(n.createPositionAt(l,a),c);if(u)if(u.isCollapsed){const h=n.createSelection(u.start);if(n.modifySelection(h,{direction:c}),h.focus.isEqual(u.start)){const m=function(k,A){let E=A;for(const S of A.getAncestors({parentFirst:!0})){if(S.childCount>1||k.isLimit(S))break;E=S}return E}(o,u.start.parent);n.deleteContent(n.createSelection(m,"on"),{doNotAutoparagraph:!0})}else n.change(m=>{m.setSelection(u),e.execute(d?"deleteForward":"delete")})}else n.change(h=>{h.setSelection(u),e.execute(d?"deleteForward":"delete")})}s.preventDefault(),r.stop()},{context:et})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,n=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(o,[r,s])=>{if(s&&!s.is("documentSelection"))return;const a=On(n);return a?(o.stop(),t.change(c=>{const l=n.getSelectedElement(),d=t.createPositionAt(l,a),u=c.createSelection(d),h=t.insertContent(r,u);return c.setSelection(u),h})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",(n,o)=>{const[,r,s={}]=o;if(r&&!r.is("documentSelection"))return;const a=On(t);a&&(s.findOptimalPosition=a,o[3]=s)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",(n,[o])=>{o&&!o.is("documentSelection")||On(t)&&n.stop()},{priority:"high"})}}function Sx(i){const e=i.model;return(t,n)=>{const o=n.keyCode==ke.arrowup,r=n.keyCode==ke.arrowdown,s=n.shiftKey,a=e.document.selection;if(!o&&!r)return;const c=r;if(s&&function(d,u){return!d.isCollapsed&&d.isBackward==u}(a,c))return;const l=function(d,u,h){const m=d.model;if(h){const k=u.isCollapsed?u.focus:u.getLastPosition(),A=Wm(m,k,"forward");if(!A)return null;const E=m.createRange(k,A),S=qm(m.schema,E,"backward");return S?m.createRange(k,S):null}{const k=u.isCollapsed?u.focus:u.getFirstPosition(),A=Wm(m,k,"backward");if(!A)return null;const E=m.createRange(A,k),S=qm(m.schema,E,"forward");return S?m.createRange(S,k):null}}(i,a,c);if(l){if(l.isCollapsed&&(a.isCollapsed||s))return;(l.isCollapsed||function(d,u,h){const m=d.model,k=d.view.domConverter;if(h){const z=m.createSelection(u.start);m.modifySelection(z),z.focus.isAtEnd||u.start.isEqual(z.focus)||(u=m.createRange(z.focus,u.end))}const A=d.mapper.toViewRange(u),E=k.viewRangeToDom(A),S=ge.getDomRangeRects(E);let O;for(const z of S)if(O!==void 0){if(Math.round(z.top)>=O)return!1;O=Math.max(O,Math.round(z.bottom))}else O=Math.round(z.bottom);return!0}(i,l,c))&&(e.change(d=>{const u=c?l.end:l.start;if(s){const h=e.createSelection(a.anchor);h.setFocus(u),d.setSelection(h)}else d.setSelection(u)}),t.stop(),n.preventDefault(),n.stopPropagation())}}}function Wm(i,e,t){const n=i.schema,o=i.createRangeIn(e.root),r=t=="forward"?"elementStart":"elementEnd";for(const{previousPosition:s,item:a,type:c}of o.getWalker({startPosition:e,direction:t})){if(n.isLimit(a)&&!n.isInline(a))return s;if(c==r&&n.isBlock(a))return null}return null}function qm(i,e,t){const n=t=="backward"?e.end:e.start;if(i.checkChild(n,"$text"))return n;for(const{nextPosition:o}of e.getWalker({direction:t}))if(i.checkChild(o,"$text"))return o;return null}var Gm=I(695),Bx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Gm.A,Bx),Gm.A.locals;class zo extends G{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[Ix,_n]}init(){const e=this.editor,t=e.editing.view,n=t.document,o=e.t;this.editor.editing.downcastDispatcher.on("selection",(r,s,a)=>{const c=a.writer,l=s.selection;if(l.isCollapsed)return;const d=l.getSelectedElement();if(!d)return;const u=e.editing.mapper.toViewElement(d);var h;et(u)&&a.consumable.consume(l,"selection")&&c.setSelection(c.createRangeOn(u),{fake:!0,label:(h=u,h.getCustomProperty("widgetLabel").reduce((m,k)=>typeof k=="function"?m?m+". "+k():k():m?m+". "+k:k,""))})}),this.editor.editing.downcastDispatcher.on("selection",(r,s,a)=>{this._clearPreviouslySelectedWidgets(a.writer);const c=a.writer,l=c.document.selection;let d=null;for(const u of l.getRanges())for(const h of u){const m=h.item;et(m)&&!Nx(m,d)&&(c.addClass(zm,m),this._previouslySelected.add(m),d=m)}},{priority:"low"}),t.addObserver(Na),this.listenTo(n,"mousedown",(...r)=>this._onMousedown(...r)),this.listenTo(n,"arrowKey",(...r)=>{this._handleSelectionChangeOnArrowKeyPress(...r)},{context:[et,"$text"]}),this.listenTo(n,"arrowKey",(...r)=>{this._preventDefaultOnArrowKeyPress(...r)},{context:"$root"}),this.listenTo(n,"arrowKey",Sx(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",(r,s)=>{this._handleDelete(s.direction=="forward")&&(s.preventDefault(),r.stop())},{context:"$root"}),this.listenTo(n,"tab",(r,s)=>{r.eventPhase=="atTarget"&&(s.shiftKey||this._selectFirstNestedEditable()&&(s.preventDefault(),r.stop()))},{context:et,priority:"low"}),this.listenTo(n,"tab",(r,s)=>{s.shiftKey&&this._selectAncestorWidget()&&(s.preventDefault(),r.stop())},{priority:"low"}),this.listenTo(n,"keydown",(r,s)=>{s.keystroke==ke.esc&&this._selectAncestorWidget()&&(s.preventDefault(),r.stop())},{priority:"low"}),e.accessibility.addKeystrokeInfoGroup({id:"widget",label:o("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{label:o("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:o("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:o("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:o("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(e,t){const n=this.editor,o=n.editing.view,r=o.document;let s=t.target;if(t.domEvent.detail>=3)return void(this._selectBlockContent(s)&&t.preventDefault());if(function(c){let l=c;for(;l;){if(l.is("editableElement")&&!l.is("rootElement"))return!0;if(et(l))return!1;l=l.parent}return!1}(s)||!et(s)&&(s=s.findAncestor(et),!s))return;x.isAndroid&&t.preventDefault(),r.isFocused||o.focus();const a=n.editing.mapper.toModelElement(s);this._setSelectionOverElement(a)}_selectBlockContent(e){const t=this.editor,n=t.model,o=t.editing.mapper,r=n.schema,s=o.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),a=function(c,l){for(const d of c.getAncestors({includeSelf:!0,parentFirst:!0})){if(l.checkChild(d,"$text"))return d;if(l.isLimit(d)&&!l.isObject(d))break}return null}(o.toModelElement(s),n.schema);return!!a&&(n.change(c=>{const l=r.isLimit(a)?null:function(h,m){const k=new gn({startPosition:h});for(const{item:A}of k){if(m.isLimit(A)||!A.is("element"))return null;if(m.checkChild(A,"$text"))return A}return null}(c.createPositionAfter(a),r),d=c.createPositionAt(a,0),u=l?c.createPositionAt(l,0):c.createPositionAt(a,"end");c.setSelection(c.createRange(d,u))}),!0)}_handleSelectionChangeOnArrowKeyPress(e,t){const n=t.keyCode,o=this.editor.model,r=o.schema,s=o.document.selection,a=s.getSelectedElement(),c=qs(n,this.editor.locale.contentLanguageDirection),l=c=="down"||c=="right",d=c=="up"||c=="down";if(a&&r.isObject(a)){const h=l?s.getLastPosition():s.getFirstPosition(),m=r.getNearestSelectionRange(h,l?"forward":"backward");return void(m&&(o.change(k=>{k.setSelection(m)}),t.preventDefault(),e.stop()))}if(!s.isCollapsed&&!t.shiftKey){const h=s.getFirstPosition(),m=s.getLastPosition(),k=h.nodeAfter,A=m.nodeBefore;return void((k&&r.isObject(k)||A&&r.isObject(A))&&(o.change(E=>{E.setSelection(l?m:h)}),t.preventDefault(),e.stop()))}if(!s.isCollapsed)return;const u=this._getObjectElementNextToSelection(l);if(u&&r.isObject(u)){if(r.isInline(u)&&d)return;this._setSelectionOverElement(u),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const n=this.editor.model,o=n.schema,r=n.document.selection.getSelectedElement();r&&o.isObject(r)&&(t.preventDefault(),e.stop())}_handleDelete(e){const t=this.editor.model.document.selection;if(!this.editor.model.canEditAt(t)||!t.isCollapsed)return;const n=this._getObjectElementNextToSelection(e);return n?(this.editor.model.change(o=>{let r=t.anchor.parent;for(;r.isEmpty;){const s=r;r=s.parent,o.remove(s)}this._setSelectionOverElement(n)}),!0):void 0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){const t=this.editor.model,n=t.schema,o=t.document.selection,r=t.createSelection(o);if(t.modifySelection(r,{direction:e?"forward":"backward"}),r.isEqual(o))return null;const s=e?r.focus.nodeBefore:r.focus.nodeAfter;return s&&n.isObject(s)?s:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass(zm,t);this._previouslySelected.clear()}_selectFirstNestedEditable(){const e=this.editor,t=this.editor.editing.view.document;for(const n of t.selection.getFirstRange().getItems())if(n.is("editableElement")){const o=e.editing.mapper.toModelElement(n);if(!o)continue;const r=e.model.createPositionAt(o,0),s=e.model.schema.getNearestSelectionRange(r,"forward");return e.model.change(a=>{a.setSelection(s)}),!0}return!1}_selectAncestorWidget(){const e=this.editor,t=e.editing.mapper,n=e.editing.view.document.selection.getFirstPosition().parent,o=(n.is("$text")?n.parent:n).findAncestor(et);if(!o)return!1;const r=t.toModelElement(o);return!!r&&(e.model.change(s=>{s.setSelection(r,"on")}),!0)}}function Nx(i,e){return!!e&&Array.from(i.getAncestors()).includes(e)}class is extends G{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[Yr]}static get pluginName(){return"WidgetToolbarRepository"}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",n=>{(function(o){const r=o.getSelectedElement();return!(!r||!et(r))})(e.editing.view.document.selection)&&n.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:n,getRelatedElement:o,balloonClassName:r="ck-toolbar-container"}){if(!n.length)return void X("widget-toolbar-no-items",{toolbarId:e});const s=this.editor,a=s.t,c=new ja(s.locale);if(c.ariaLabel=t||a("Widget toolbar"),this._toolbarDefinitions.has(e))throw new B("widget-toolbar-duplicated",this,{toolbarId:e});const l={view:c,getRelatedElement:o,balloonClassName:r,itemsConfig:n,initialized:!1};s.ui.addToolbar(c,{isContextual:!0,beforeFocus:()=>{const d=o(s.editing.view.document.selection);d&&this._showToolbar(l,d)},afterBlur:()=>{this._hideToolbar(l)}}),this._toolbarDefinitions.set(e,l)}_updateToolbarsVisibility(){let e=0,t=null,n=null;for(const o of this._toolbarDefinitions.values()){const r=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&r)if(this.editor.ui.focusTracker.isFocused){const s=r.getAncestors().length;s>e&&(e=s,t=r,n=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}n&&this._showToolbar(n,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?$m(this.editor,t):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:Km(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const n of this._toolbarDefinitions.values())if(this._isToolbarVisible(n)){const o=n.getRelatedElement(this.editor.editing.view.document.selection);$m(this.editor,o)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function $m(i,e){const t=i.plugins.get("ContextualBalloon"),n=Km(i,e);t.updatePosition(n)}function Km(i,e){const t=i.editing.view,n=wt.defaultPositions;return{target:t.domConverter.mapViewToDom(e),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}var Ym=I(4095),Ox={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Ym.A,Ox),Ym.A.locals;const ic=Ci("px");class Px extends te{constructor(){super();const e=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",e.if("isVisible","ck-hidden",t=>!t)],style:{left:e.to("left",t=>ic(t)),top:e.to("top",t=>ic(t)),width:e.to("width",t=>ic(t))}}})}}class os extends G{constructor(){super(...arguments),this.removeDropMarkerDelayed=Ys(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=$r(e=>this._updateDropMarker(e),40),this._reconvertMarkerThrottled=$r(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new Px,this._domEmitter=new(Lt()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:e}of this._scrollables.values())e.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(e,t,n,o,r,s){this.removeDropMarkerDelayed.cancel();const a=Qm(this.editor,e,t,n,o,r,s);if(a)return s&&s.containsRange(a)?this.removeDropMarker():void this._updateDropMarkerThrottled(a)}getFinalDropRange(e,t,n,o,r,s){const a=Qm(this.editor,e,t,n,o,r,s);return this.removeDropMarker(),a}removeDropMarker(){const e=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,e.markers.has("drop-target")&&e.change(t=>{t.removeMarker("drop-target")})}_setupDropMarker(){const e=this.editor;e.ui.view.body.add(this._dropTargetLineView),e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(t,{writer:n})=>{if(e.model.schema.checkChild(t.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(n);t.markerRange.isCollapsed?this._updateDropTargetLine(t.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(e){const t=this.editor,n=t.model.markers;t.model.change(o=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(e)||o.updateMarker("drop-target",{range:e}):o.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(e){return e.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(t){const n=this.toDomElement(t);return n.append("",t.createElement("span"),""),n})}_updateDropTargetLine(e){const t=this.editor.editing,n=e.start.nodeBefore,o=e.start.nodeAfter,r=e.start.parent,s=n?t.mapper.toViewElement(n):null,a=s?t.view.domConverter.mapViewToDom(s):null,c=o?t.mapper.toViewElement(o):null,l=c?t.view.domConverter.mapViewToDom(c):null,d=t.mapper.toViewElement(r);if(!d)return;const u=t.view.domConverter.mapViewToDom(d),h=this._getScrollableRect(d),{scrollX:m,scrollY:k}=w.window,A=a?new ge(a):null,E=l?new ge(l):null,S=new ge(u).excludeScrollbarsAndBorders(),O=A?A.bottom:S.top,z=E?E.top:S.bottom,H=w.window.getComputedStyle(u),Q=O<=z?(O+z)/2:z;if(h.top<Q&&Q<h.bottom){const ne=S.left+parseFloat(H.paddingLeft),se=S.right-parseFloat(H.paddingRight),Pe=Math.max(ne+m,h.left),st=Math.min(se+m,h.right);this._dropTargetLineView.set({isVisible:!0,left:Pe,top:Q+k,width:st-Pe})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(e){const t=e.root.rootName;let n;if(this._scrollables.has(t))n=this._scrollables.get(t).domElement;else{n=function(r){let s=r;do{s=s.parentElement;const a=w.window.getComputedStyle(s).overflowY;if(a=="auto"||a=="scroll")break}while(s.tagName!="BODY");return s}(this.editor.editing.view.domConverter.mapViewToDom(e)),this._domEmitter.listenTo(n,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const o=new lo(n,this._reconvertMarkerThrottled);this._scrollables.set(t,{domElement:n,resizeObserver:o})}return new ge(n).excludeScrollbarsAndBorders()}}function Qm(i,e,t,n,o,r,s){const a=i.model,c=i.editing.mapper;let l=Jm(i,e);for(;l;){if(!r){if(a.schema.checkChild(l,"$text")){if(t){const d=t[0].start,u=c.toModelPosition(d);if(!s||Array.from(s.getItems()).every(h=>a.schema.checkChild(u,h))){if(a.schema.checkChild(u,"$text"))return a.createRange(u);if(d)return rs(i,Jm(i,d.parent),n,o)}}}else if(a.schema.isInline(l))return rs(i,l,n,o)}if(a.schema.isBlock(l))return rs(i,l,n,o);if(a.schema.checkChild(l,"$block")){const d=Array.from(l.getChildren()).filter(m=>m.is("element")&&!Lx(i,m));let u=0,h=d.length;if(h==0)return a.createRange(a.createPositionAt(l,"end"));for(;u<h-1;){const m=Math.floor((u+h)/2);Zm(i,d[m],n,o)=="before"?h=m:u=m}return rs(i,d[u],n,o)}l=l.parent}return null}function Lx(i,e){const t=i.editing.mapper,n=i.editing.view.domConverter,o=t.toViewElement(e);if(!o)return!0;const r=n.mapViewToDom(o);return w.window.getComputedStyle(r).float!="none"}function rs(i,e,t,n){const o=i.model;return o.createRange(o.createPositionAt(e,Zm(i,e,t,n)))}function Zm(i,e,t,n){const o=i.editing.mapper,r=i.editing.view.domConverter,s=o.toViewElement(e),a=r.mapViewToDom(s),c=new ge(a);return i.model.schema.isInline(e)?t<(c.left+c.right)/2?"before":"after":n<(c.top+c.bottom)/2?"before":"after"}function Jm(i,e){const t=i.editing.mapper,n=i.editing.view,o=t.toModelElement(e);if(o)return o;const r=n.createPositionBefore(e),s=t.findMappedViewAncestor(r);return t.toModelElement(s)}var zx=Object.defineProperty,Rx=Object.defineProperties,jx=Object.getOwnPropertyDescriptors,Xm=Object.getOwnPropertySymbols,Fx=Object.prototype.hasOwnProperty,Vx=Object.prototype.propertyIsEnumerable,ep=(i,e,t)=>e in i?zx(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;class Hx extends G{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(Lt())}static get pluginName(){return"DragDropBlockToolbar"}init(){const e=this.editor;if(this.listenTo(e,"change:isReadOnly",(t,n,o)=>{o?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),x.isAndroid&&this.forceDisabled("noAndroidSupport"),e.plugins.has("BlockToolbar")){const t=e.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(t,"dragstart",(n,o)=>this._handleBlockDragStart(o)),this._domEmitter.listenTo(w.document,"dragover",(n,o)=>this._handleBlockDragging(o)),this._domEmitter.listenTo(w.document,"drop",(n,o)=>this._handleBlockDragging(o)),this._domEmitter.listenTo(w.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&t.setAttribute("draggable","true"),this.on("change:isEnabled",(n,o,r)=>{t.setAttribute("draggable",r?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(e){if(!this.isEnabled)return;const t=this.editor.model,n=t.document.selection,o=this.editor.editing.view,r=Array.from(n.getSelectedBlocks()),s=t.createRange(t.createPositionBefore(r[0]),t.createPositionAfter(r[r.length-1]));t.change(a=>a.setSelection(s)),this._isBlockDragging=!0,o.focus(),o.getObserver(Bo).onDomEvent(e)}_handleBlockDragging(e){if(!this.isEnabled||!this._isBlockDragging)return;const t=e.clientX+(this.editor.locale.contentLanguageDirection=="ltr"?100:-100),n=e.clientY,o=document.elementFromPoint(t,n),r=this.editor.editing.view;var s,a;o&&o.closest(".ck-editor__editable")&&r.getObserver(Bo).onDomEvent((s=((c,l)=>{for(var d in l||(l={}))Fx.call(l,d)&&ep(c,d,l[d]);if(Xm)for(var d of Xm(l))Vx.call(l,d)&&ep(c,d,l[d]);return c})({},e),a={type:e.type,dataTransfer:e.dataTransfer,target:o,clientX:t,clientY:n,preventDefault:()=>e.preventDefault(),stopPropagation:()=>e.stopPropagation()},Rx(s,jx(a))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var tp=I(7793),Ux={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(tp.A,Ux),tp.A.locals;class Wx extends G{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=Ys(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(Lt())}static get pluginName(){return"DragDrop"}static get requires(){return[Ft,zo,os,Hx]}init(){const e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,t.addObserver(Bo),t.addObserver(Na),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",(n,o,r)=>{r?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(n,o,r)=>{r||this._finalizeDragging(!1)}),x.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const e=this.editor,t=e.model,n=e.editing.view,o=n.document,r=e.plugins.get(os);this.listenTo(o,"dragstart",(s,a)=>{if(a.target&&a.target.is("editableElement")||(this._prepareDraggedRange(a.target),!this._draggedRange))return void a.preventDefault();this._draggingUid=$(),a.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",a.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const c=t.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(a.dataTransfer,c,"dragstart");const{dataTransfer:l,domTarget:d,domEvent:u}=a,{clientX:h}=u;this._updatePreview({dataTransfer:l,domTarget:d,clientX:h}),a.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(o,"dragend",(s,a)=>{this._finalizeDragging(!a.dataTransfer.isCanceled&&a.dataTransfer.dropEffect=="move")},{priority:"low"}),this._domEmitter.listenTo(w.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(o,"dragenter",()=>{this.isEnabled&&n.focus()}),this.listenTo(o,"dragleave",()=>{r.removeDropMarkerDelayed()}),this.listenTo(o,"dragging",(s,a)=>{if(!this.isEnabled)return void(a.dataTransfer.dropEffect="none");const{clientX:c,clientY:l}=a.domEvent;r.updateDropMarker(a.target,a.targetRanges,c,l,this._blockMode,this._draggedRange),this._draggedRange||(a.dataTransfer.dropEffect="copy"),x.isGecko||(a.dataTransfer.effectAllowed=="copy"?a.dataTransfer.dropEffect="copy":["all","copyMove"].includes(a.dataTransfer.effectAllowed)&&(a.dataTransfer.dropEffect="move")),s.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const e=this.editor,t=e.editing.view.document,n=e.plugins.get(os);this.listenTo(t,"clipboardInput",(o,r)=>{if(r.method!="drop")return;const{clientX:s,clientY:a}=r.domEvent,c=n.getFinalDropRange(r.target,r.targetRanges,s,a,this._blockMode,this._draggedRange);if(!c)return this._finalizeDragging(!1),void o.stop();if(this._draggedRange&&this._draggingUid!=r.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),np(r.dataTransfer)=="move"&&this._draggedRange&&this._draggedRange.containsRange(c,!0))return this._finalizeDragging(!1),void o.stop();r.targetRanges=[e.editing.mapper.toViewRange(c)]},{priority:"high"})}_setupContentInsertionIntegration(){const e=this.editor.plugins.get(Ft);e.on("contentInsertion",(t,n)=>{if(!this.isEnabled||n.method!=="drop")return;const o=n.targetRanges.map(r=>this.editor.editing.mapper.toModelRange(r));this.editor.model.change(r=>r.setSelection(o))},{priority:"high"}),e.on("contentInsertion",(t,n)=>{if(!this.isEnabled||n.method!=="drop")return;const o=np(n.dataTransfer)=="move",r=!n.resultRange||!n.resultRange.isCollapsed;this._finalizeDragging(r&&o)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const e=this.editor,t=e.editing.view,n=t.document;this.listenTo(n,"mousedown",(o,r)=>{if(x.isAndroid||!r)return;this._clearDraggableAttributesDelayed.cancel();let s=ip(r.target);if(x.isBlink&&!e.isReadOnly&&!s&&!n.selection.isCollapsed){const a=n.selection.getSelectedElement();a&&et(a)||(s=n.selection.editableElement)}s&&(t.change(a=>{a.setAttribute("draggable","true",s)}),this._draggableElement=e.editing.mapper.toModelElement(s))}),this.listenTo(n,"mouseup",()=>{x.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const e=this.editor.editing;e.view.change(t=>{this._draggableElement&&this._draggableElement.root.rootName!="$graveyard"&&t.removeAttribute("draggable",e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(e){const t=this.editor,n=t.model;t.plugins.get(os).removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(e&&this.isEnabled&&n.change(o=>{const r=n.createSelection(this._draggedRange);n.deleteContent(r,{doNotAutoparagraph:!0});const s=r.getFirstPosition().parent;s.isEmpty&&!n.schema.checkChild(s,"$text")&&n.schema.checkChild(s,"paragraph")&&o.insertElement("paragraph",s,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(e){const t=this.editor,n=t.model,o=n.document.selection,r=e?ip(e):null;if(r){const l=t.editing.mapper.toModelElement(r);this._draggedRange=Tt.fromRange(n.createRangeOn(l)),this._blockMode=n.schema.isBlock(l),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop");return}if(o.isCollapsed&&!o.getFirstPosition().parent.isEmpty)return;const s=Array.from(o.getSelectedBlocks()),a=o.getFirstRange();if(s.length==0)return void(this._draggedRange=Tt.fromRange(a));const c=op(n,s);if(s.length>1)this._draggedRange=Tt.fromRange(c),this._blockMode=!0;else if(s.length==1){const l=a.start.isTouching(c.start)&&a.end.isTouching(c.end);this._draggedRange=Tt.fromRange(l?c:a),this._blockMode=l}n.change(l=>l.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:e,domTarget:t,clientX:n}){const o=this.editor.editing.view,r=o.document.selection.editableElement,s=o.domConverter.mapViewToDom(r),a=w.window.getComputedStyle(s);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=Pt(w.document,"div",{style:"position: fixed; left: -999999px;"}),w.document.body.appendChild(this._previewContainer));const c=new ge(s);if(s.contains(t))return;const l=parseFloat(a.paddingLeft),d=Pt(w.document,"div");d.className="ck ck-content",d.style.width=a.width,d.style.paddingLeft=`${c.left-n+l}px`,x.isiOS&&(d.style.backgroundColor="white"),d.innerHTML=e.getData("text/html"),e.setDragImage(d,0,0),this._previewContainer.appendChild(d)}}function np(i){return x.isGecko?i.dropEffect:["all","copyMove"].includes(i.effectAllowed)?"move":"copy"}function ip(i){if(i.is("editableElement"))return null;if(i.hasClass("ck-widget__selection-handle"))return i.findAncestor(et);if(et(i))return i;const e=i.findAncestor(t=>et(t)||t.is("editableElement"));return et(e)?e:null}function op(i,e){const t=e[0],n=e[e.length-1],o=t.getCommonAncestor(n),r=i.createPositionBefore(t),s=i.createPositionAfter(n);if(o&&o.is("element")&&!i.schema.isLimit(o)){const a=i.createRangeOn(o),c=r.isTouching(a.start),l=s.isTouching(a.end);if(c&&l)return op(i,[o])}return i.createRange(r,s)}class qx extends G{static get pluginName(){return"PastePlainText"}static get requires(){return[Ft]}init(){const e=this.editor,t=e.model,n=e.editing.view,o=n.document,r=t.document.selection;let s=!1;n.addObserver(Bo),this.listenTo(o,"keydown",(a,c)=>{s=c.shiftKey}),e.plugins.get(Ft).on("contentInsertion",(a,c)=>{(s||function(l,d){if(l.childCount>1)return!1;const u=l.getChild(0);return d.isObject(u)?!1:Array.from(u.getAttributeKeys()).length==0}(c.content,t.schema))&&t.change(l=>{const d=Array.from(r.getAttributes()).filter(([h])=>t.schema.getAttributeProperties(h).isFormatting);r.isCollapsed||t.deleteContent(r,{doNotAutoparagraph:!0}),d.push(...r.getAttributes());const u=l.createRangeIn(c.content);for(const h of u.getItems())h.is("$textProxy")&&l.setAttributes(d,h)})})}}class rp extends G{static get pluginName(){return"Clipboard"}static get requires(){return[No,Ft,Wx,qx]}init(){const e=this.editor,t=this.editor.t;e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Copy selected content"),keystroke:"CTRL+C"},{label:t("Paste content"),keystroke:"CTRL+V"},{label:t("Paste content as plain text"),keystroke:"CTRL+SHIFT+V"}]})}}class Gx extends de{constructor(e){super(e),this.affectsData=!1}execute(){const e=this.editor.model,t=e.document.selection;let n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!sp(e.schema,n))do if(n=n.parent,!n)return;while(!sp(e.schema,n));e.change(o=>{o.setSelection(n,"in")})}}function sp(i,e){return i.isLimit(e)&&(i.checkChild(e,"$text")||i.checkChild(e,"paragraph"))}const $x=go("Ctrl+A");class Kx extends G{static get pluginName(){return"SelectAllEditing"}init(){const e=this.editor,t=e.t,n=e.editing.view.document;e.commands.add("selectAll",new Gx(e)),this.listenTo(n,"keydown",(o,r)=>{vi(r)===$x&&(e.execute("selectAll"),r.preventDefault())}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Select all"),keystroke:"CTRL+A"}]})}}class Yx extends G{static get pluginName(){return"SelectAllUI"}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",()=>{const t=this._createButton(Ae);return t.set({tooltip:!0}),t}),e.ui.componentFactory.add("menuBar:selectAll",()=>this._createButton(It))}_createButton(e){const t=this.editor,n=t.locale,o=t.commands.get("selectAll"),r=new e(t.locale),s=n.t;return r.set({label:s("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A"}),r.bind("isEnabled").to(o,"isEnabled"),this.listenTo(r,"execute",()=>{t.execute("selectAll"),t.editing.view.focus()}),r}}class Qx extends G{static get requires(){return[Kx,Yx]}static get pluginName(){return"SelectAll"}}var Zx=Object.defineProperty,ap=Object.getOwnPropertySymbols,Jx=Object.prototype.hasOwnProperty,Xx=Object.prototype.propertyIsEnumerable,cp=(i,e,t)=>e in i?Zx(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;class lp extends de{constructor(e){super(e),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(e.data,"set",(t,n)=>{n[1]=((r,s)=>{for(var a in s||(s={}))Jx.call(s,a)&&cp(r,a,s[a]);if(ap)for(var a of ap(s))Xx.call(s,a)&&cp(r,a,s[a]);return r})({},n[1]);const o=n[1];o.batchType||(o.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(e.data,"set",(t,n)=>{n[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(e){const t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,n){const o=this.editor.model,r=o.document,s=[],a=e.map(l=>l.getTransformedByOperations(n)),c=a.flat();for(const l of a){const d=l.filter(u=>u.root!=r.graveyard).filter(u=>!t2(u,c));d.length&&(e2(d),s.push(d[0]))}s.length&&o.change(l=>{l.setSelection(s,{backward:t})})}_undo(e,t){const n=this.editor.model,o=n.document;this._createdBatches.add(t);const r=e.operations.slice().filter(s=>s.isDocumentOperation);r.reverse();for(const s of r){const a=s.baseVersion+1,c=Array.from(o.history.getOperations(a)),l=OC([s.getReversed()],c,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let d of l){const u=d.affectedSelectable;u&&!n.canEditAt(u)&&(d=new tt(d.baseVersion)),t.addOperation(d),n.applyOperation(d),o.history.setOperationAsUndone(s,d)}}}}function e2(i){i.sort((e,t)=>e.start.isBefore(t.start)?-1:1);for(let e=1;e<i.length;e++){const t=i[e-1].getJoined(i[e],!0);t&&(e--,i.splice(e,2,t))}}function t2(i,e){return e.some(t=>t!==i&&t.containsRange(i,!0))}class n2 extends lp{execute(e=null){const t=e?this._stack.findIndex(r=>r.batch==e):this._stack.length-1,n=this._stack.splice(t,1)[0],o=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(o,()=>{this._undo(n.batch,o);const r=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,r)}),this.fire("revert",n.batch,o),this.refresh()}}class i2 extends lp{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,()=>{const n=e.batch.operations[e.batch.operations.length-1].baseVersion+1,o=this.editor.model.document.history.getOperations(n);this._restoreSelection(e.selection.ranges,e.selection.isBackward,o),this._undo(e.batch,t)}),this.refresh()}}class o2 extends G{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const e=this.editor,t=e.t;this._undoCommand=new n2(e),this._redoCommand=new i2(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",(n,o)=>{const r=o[0];if(!r.isDocumentOperation)return;const s=r.batch,a=this._redoCommand.createdBatches.has(s),c=this._undoCommand.createdBatches.has(s);this._batchRegistry.has(s)||(this._batchRegistry.add(s),s.isUndoable&&(a?this._undoCommand.addBatch(s):c||(this._undoCommand.addBatch(s),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(n,o,r)=>{this._redoCommand.addBatch(r)}),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo"),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Undo"),keystroke:"CTRL+Z"},{label:t("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class r2 extends G{static get pluginName(){return"UndoUI"}init(){const e=this.editor,t=e.locale,n=e.t,o=t.uiLanguageDirection=="ltr"?oe.undo:oe.redo,r=t.uiLanguageDirection=="ltr"?oe.redo:oe.undo;this._addButtonsToFactory("undo",n("Undo"),"CTRL+Z",o),this._addButtonsToFactory("redo",n("Redo"),"CTRL+Y",r)}_addButtonsToFactory(e,t,n,o){const r=this.editor;r.ui.componentFactory.add(e,()=>{const s=this._createButton(Ae,e,t,n,o);return s.set({tooltip:!0}),s}),r.ui.componentFactory.add("menuBar:"+e,()=>this._createButton(It,e,t,n,o))}_createButton(e,t,n,o,r){const s=this.editor,a=s.locale,c=s.commands.get(t),l=new e(a);return l.set({label:n,icon:r,keystroke:o}),l.bind("isEnabled").to(c,"isEnabled"),this.listenTo(l,"execute",()=>{s.execute(t),s.editing.view.focus()}),l}}class dp extends G{static get requires(){return[o2,r2]}static get pluginName(){return"Undo"}}class s2 extends xe(){constructor(){super();const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise((n,o)=>{t.onload=()=>{const r=t.result;this._data=r,n(r)},t.onerror=()=>{o("error")},t.onabort=()=>{o("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}class Jt extends G{constructor(){super(...arguments),this.loaders=new qt,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[xh]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0)}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return X("filerepository-no-upload-adapter"),null;const t=new up(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(n=>{this._loadersMap.set(n,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let n=0;for(const o of this.loaders)n+=o.uploaded;this.uploaded=n}),t.on("change:uploadTotal",()=>{let n=0;for(const o of this.loaders)o.uploadTotal&&(n+=o.uploadTotal);this.uploadTotal=n}),t}destroyLoader(e){const t=e instanceof up?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((n,o)=>{n===t&&this._loadersMap.delete(o)})}_updatePendingAction(){const e=this.editor.plugins.get(xh);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,n=o=>`${t("Upload in progress")} ${parseInt(o)}%.`;this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}class up extends xe(){constructor(e,t){super(),this.id=$(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new s2,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(n,o)=>o?n/o*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if(this.status!="idle")throw new B("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if(this.status!=="reading")throw this.status;return this.status="idle",e}).catch(e=>{throw e==="aborted"?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:e)})}upload(){if(this.status!="idle")throw new B("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>(this.uploadResponse=e,this.status="idle",e)).catch(e=>{throw this.status==="aborted"?"aborted":(this.status="error",e)})}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?e=="reading"?this._reader.abort():e=="uploading"&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise((n,o)=>{t.rejecter=o,t.isFulfilled=!1,e.then(r=>{t.isFulfilled=!0,n(r)}).catch(r=>{t.isFulfilled=!0,o(r)})}),t}}const hp="ckCsrfToken",gp="abcdefghijklmnopqrstuvwxyz0123456789";function a2(){let i=function(n){n=n.toLowerCase();const o=document.cookie.split(";");for(const r of o){const s=r.split("=");if(decodeURIComponent(s[0].trim().toLowerCase())===n)return decodeURIComponent(s[1])}return null}(hp);var e,t;return i&&i.length==40||(i=function(n){let o="";const r=new Uint8Array(n);window.crypto.getRandomValues(r);for(let s=0;s<r.length;s++){const a=gp.charAt(r[s]%gp.length);o+=Math.random()>.5?a.toUpperCase():a}return o}(40),e=hp,t=i,document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/"),i}class c2{constructor(e,t,n){this.loader=e,this.url=t,this.t=n}upload(){return this.loader.file.then(e=>new Promise((t,n)=>{this._initRequest(),this._initListeners(t,n,e),this._sendRequest(e)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}_initListeners(e,t,n){const o=this.xhr,r=this.loader,s=(0,this.t)("Cannot upload file:")+` ${n.name}.`;o.addEventListener("error",()=>t(s)),o.addEventListener("abort",()=>t()),o.addEventListener("load",()=>{const a=o.response;if(!a||!a.uploaded)return t(a&&a.error&&a.error.message?a.error.message:s);e({default:a.url})}),o.upload&&o.upload.addEventListener("progress",a=>{a.lengthComputable&&(r.uploadTotal=a.total,r.uploaded=a.loaded)})}_sendRequest(e){const t=new FormData;t.append("upload",e),t.append("ckCsrfToken",a2()),this.xhr.send(t)}}function Pn(i,e,t,n){let o,r=null;typeof n=="function"?o=n:(r=i.commands.get(n),o=()=>{i.execute(n)}),i.model.document.on("change:data",(s,a)=>{if(r&&!r.isEnabled||!e.isEnabled)return;const c=at(i.model.document.selection.getRanges());if(!c.isCollapsed||a.isUndo||!a.isLocal)return;const l=Array.from(i.model.document.differ.getChanges()),d=l[0];if(l.length!=1||d.type!=="insert"||d.name!="$text"||d.length!=1)return;const u=d.position.parent;if(u.is("element","codeBlock")||u.is("element","listItem")&&typeof n!="function"&&!["numberedList","bulletedList","todoList"].includes(n)||r&&r.value===!0)return;const h=u.getChild(0),m=i.model.createRangeOn(h);if(!m.containsRange(c)&&!c.end.isEqual(m.end))return;const k=t.exec(h.data.substr(0,c.end.offset));k&&i.model.enqueueChange(A=>{const E=A.createPositionAt(u,0),S=A.createPositionAt(u,k[0].length),O=new Tt(E,S);if(o({match:k})!==!1){A.remove(O);const z=i.model.document.selection.getFirstRange(),H=A.createRangeIn(u);!u.isEmpty||H.isEqual(z)||H.containsRange(z,!0)||A.remove(u)}O.detach(),i.model.enqueueChange(()=>{i.plugins.get("Delete").requestUndoOnBackspace()})})})}function Fi(i,e,t,n){let o,r;t instanceof RegExp?o=t:r=t,r=r||(s=>{let a;const c=[],l=[];for(;(a=o.exec(s))!==null&&!(a&&a.length<4);){let{index:d,1:u,2:h,3:m}=a;const k=u+h+m;d+=a[0].length-k.length;const A=[d,d+u.length],E=[d+u.length+h.length,d+u.length+h.length+m.length];c.push(A),c.push(E),l.push([d+u.length,d+u.length+h.length])}return{remove:c,format:l}}),i.model.document.on("change:data",(s,a)=>{if(a.isUndo||!a.isLocal||!e.isEnabled)return;const c=i.model,l=c.document.selection;if(!l.isCollapsed)return;const d=Array.from(c.document.differ.getChanges()),u=d[0];if(d.length!=1||u.type!=="insert"||u.name!="$text"||u.length!=1)return;const h=l.focus,m=h.parent,{text:k,range:A}=function(z,H){let Q=z.start;return{text:Array.from(z.getItems()).reduce((se,Pe)=>!Pe.is("$text")&&!Pe.is("$textProxy")||Pe.getAttribute("code")?(Q=H.createPositionAfter(Pe),""):se+Pe.data,""),range:H.createRange(Q,z.end)}}(c.createRange(c.createPositionAt(m,0),h),c),E=r(k),S=mp(A.start,E.format,c),O=mp(A.start,E.remove,c);S.length&&O.length&&c.enqueueChange(z=>{if(n(z,S)!==!1){for(const H of O.reverse())z.remove(H);c.enqueueChange(()=>{i.plugins.get("Delete").requestUndoOnBackspace()})}})})}function mp(i,e,t){return e.filter(n=>n[0]!==void 0&&n[1]!==void 0).map(n=>t.createRange(i.getShiftedBy(n[0]),i.getShiftedBy(n[1])))}function ss(i,e){return(t,n)=>{if(!i.commands.get(e).isEnabled)return!1;const o=i.model.schema.getValidRanges(n,e);for(const r of o)t.setAttribute(e,!0,r);t.removeSelectionAttribute(e)}}class pp extends de{constructor(e,t){super(e),this.attributeKey=t}refresh(){const e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}execute(e={}){const t=this.editor.model,n=t.document.selection,o=e.forceValue===void 0?!this.value:e.forceValue;t.change(r=>{if(n.isCollapsed)o?r.setSelectionAttribute(this.attributeKey,!0):r.removeSelectionAttribute(this.attributeKey);else{const s=t.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const a of s)o?r.setAttribute(this.attributeKey,o,a):r.removeAttribute(this.attributeKey,a)}})}_getValueFromFirstAllowedNode(){const e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const o of n.getRanges())for(const r of o.getItems())if(t.checkAttribute(r,this.attributeKey))return r.hasAttribute(this.attributeKey);return!1}}const Vi="bold";class l2 extends G{static get pluginName(){return"BoldEditing"}init(){const e=this.editor,t=this.editor.t;e.model.schema.extend("$text",{allowAttributes:Vi}),e.model.schema.setAttributeProperties(Vi,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:Vi,view:"strong",upcastAlso:["b",n=>{const o=n.getStyle("font-weight");return o&&(o=="bold"||Number(o)>=600)?{name:!0,styles:["font-weight"]}:null}]}),e.commands.add(Vi,new pp(e,Vi)),e.keystrokes.set("CTRL+B",Vi),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Bold text"),keystroke:"CTRL+B"}]})}}function fp({editor:i,commandName:e,plugin:t,icon:n,label:o,keystroke:r}){return s=>{const a=i.commands.get(e),c=new s(i.locale);return c.set({label:o,icon:n,keystroke:r,isToggleable:!0}),c.bind("isEnabled").to(a,"isEnabled"),t.listenTo(c,"execute",()=>{i.execute(e),i.editing.view.focus()}),c}}const as="bold";class d2 extends G{static get pluginName(){return"BoldUI"}init(){const e=this.editor,t=e.locale.t,n=e.commands.get(as),o=fp({editor:e,commandName:as,plugin:this,icon:oe.bold,label:t("Bold"),keystroke:"CTRL+B"});e.ui.componentFactory.add(as,()=>{const r=o(Ae);return r.set({tooltip:!0}),r.bind("isOn").to(n,"value"),r}),e.ui.componentFactory.add("menuBar:"+as,()=>o(It))}}var kp=I(4199),u2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(kp.A,u2),kp.A.locals;const Hi="italic";class h2 extends G{static get pluginName(){return"ItalicEditing"}init(){const e=this.editor,t=this.editor.t;e.model.schema.extend("$text",{allowAttributes:Hi}),e.model.schema.setAttributeProperties(Hi,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:Hi,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add(Hi,new pp(e,Hi)),e.keystrokes.set("CTRL+I",Hi),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Italic text"),keystroke:"CTRL+I"}]})}}const cs="italic";class g2 extends G{static get pluginName(){return"ItalicUI"}init(){const e=this.editor,t=e.commands.get(cs),n=e.locale.t,o=fp({editor:e,commandName:cs,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",label:n("Italic")});e.ui.componentFactory.add(cs,()=>{const r=o(Ae);return r.set({tooltip:!0}),r.bind("isOn").to(t,"value"),r}),e.ui.componentFactory.add("menuBar:"+cs,()=>o(It))}}class m2 extends de{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,n=t.schema,o=t.document.selection,r=Array.from(o.getSelectedBlocks()),s=e.forceValue===void 0?!this.value:e.forceValue;t.change(a=>{if(s){const c=r.filter(l=>ls(l)||wp(n,l));this._applyQuote(a,c)}else this._removeQuote(a,r.filter(ls))})}_getValue(){const e=at(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!ls(e))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,n=at(e.getSelectedBlocks());return!!n&&wp(t,n)}_removeQuote(e,t){bp(e,t).reverse().forEach(n=>{if(n.start.isAtStart&&n.end.isAtEnd)return void e.unwrap(n.start.parent);if(n.start.isAtStart){const r=e.createPositionBefore(n.start.parent);return void e.move(n,r)}n.end.isAtEnd||e.split(n.end);const o=e.createPositionAfter(n.end.parent);e.move(n,o)})}_applyQuote(e,t){const n=[];bp(e,t).reverse().forEach(o=>{let r=ls(o.start);r||(r=e.createElement("blockQuote"),e.wrap(o,r)),n.push(r)}),n.reverse().reduce((o,r)=>o.nextSibling==r?(e.merge(e.createPositionAfter(o)),o):r)}}function ls(i){return i.parent.name=="blockQuote"?i.parent:null}function bp(i,e){let t,n=0;const o=[];for(;n<e.length;){const r=e[n],s=e[n+1];t||(t=i.createPositionBefore(r)),s&&r.nextSibling==s||(o.push(i.createRange(t,i.createPositionAfter(r))),t=null),n++}return o}function wp(i,e){const t=i.checkChild(e.parent,"blockQuote"),n=i.checkChild(["$root","blockQuote"],e);return t&&n}class p2 extends G{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[ts,_n]}init(){const e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new m2(e)),t.register("blockQuote",{inheritAllFrom:"$container"}),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer(s=>{const a=e.model.document.differ.getChanges();for(const c of a)if(c.type=="insert"){const l=c.position.nodeAfter;if(!l)continue;if(l.is("element","blockQuote")&&l.isEmpty)return s.remove(l),!0;if(l.is("element","blockQuote")&&!t.checkChild(c.position,l))return s.unwrap(l),!0;if(l.is("element")){const d=s.createRangeIn(l);for(const u of d.getItems())if(u.is("element","blockQuote")&&!t.checkChild(s.createPositionBefore(u),u))return s.unwrap(u),!0}}else if(c.type=="remove"){const l=c.position.parent;if(l.is("element","blockQuote")&&l.isEmpty)return s.remove(l),!0}return!1});const n=this.editor.editing.view.document,o=e.model.document.selection,r=e.commands.get("blockQuote");this.listenTo(n,"enter",(s,a)=>{!o.isCollapsed||!r.value||o.getLastPosition().parent.isEmpty&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),a.preventDefault(),s.stop())},{context:"blockquote"}),this.listenTo(n,"delete",(s,a)=>{if(a.direction!="backward"||!o.isCollapsed||!r.value)return;const c=o.getLastPosition().parent;c.isEmpty&&!c.previousSibling&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),a.preventDefault(),s.stop())},{context:"blockquote"})}}var _p=I(8708),f2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(_p.A,f2),_p.A.locals;class k2 extends G{static get pluginName(){return"BlockQuoteUI"}init(){const e=this.editor,t=e.commands.get("blockQuote");e.ui.componentFactory.add("blockQuote",()=>{const n=this._createButton(Ae);return n.set({tooltip:!0}),n.bind("isOn").to(t,"value"),n}),e.ui.componentFactory.add("menuBar:blockQuote",()=>this._createButton(It))}_createButton(e){const t=this.editor,n=t.locale,o=t.commands.get("blockQuote"),r=new e(t.locale),s=n.t;return r.set({label:s("Block quote"),icon:oe.quote,isToggleable:!0}),r.bind("isEnabled").to(o,"isEnabled"),this.listenTo(r,"execute",()=>{t.execute("blockQuote"),t.editing.view.focus()}),r}}class b2 extends G{static get pluginName(){return"CKBoxUI"}afterInit(){const e=this.editor;if(!e.commands.get("ckbox"))return;const t=e.t,n=e.ui.componentFactory;if(n.add("ckbox",()=>{const o=this._createButton(Ae);return o.tooltip=!0,o}),n.add("menuBar:ckbox",()=>this._createButton(It)),e.plugins.has("ImageInsertUI")){const o=e.plugins.get("ImageInsertUI");o.registerIntegration({name:"assetManager",observable:()=>e.commands.get("ckbox"),buttonViewCreator:()=>{const r=this.editor.ui.componentFactory.create("ckbox");return r.icon=oe.imageAssetManager,r.bind("label").to(o,"isImageSelected",s=>t(s?"Replace image with file manager":"Insert image with file manager")),r},formViewCreator:()=>{const r=this.editor.ui.componentFactory.create("ckbox");return r.icon=oe.imageAssetManager,r.withText=!0,r.bind("label").to(o,"isImageSelected",s=>t(s?"Replace with file manager":"Insert with file manager")),r.on("execute",()=>{o.dropdownView.isOpen=!1}),r}})}}_createButton(e){const t=this.editor,n=t.locale,o=new e(n),r=t.commands.get("ckbox"),s=n.t;return o.set({label:s("Open file manager"),icon:oe.browseFiles}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),o.on("execute",()=>{t.execute("ckbox")}),o}}var w2=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],Ro=i=>{let e=0;for(let t=0;t<i.length;t++){let n=i[t];e=83*e+w2.indexOf(n)}return e},oc=i=>{let e=i/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},rc=i=>{let e=Math.max(0,Math.min(1,i));return e<=.0031308?Math.trunc(12.92*e*255+.5):Math.trunc(255*(1.055*Math.pow(e,.4166666666666667)-.055)+.5)},sc=(i,e)=>(t=>t<0?-1:1)(i)*Math.pow(Math.abs(i),e),Ap=class extends Error{constructor(i){super(i),this.name="ValidationError",this.message=i}},_2=i=>{if(!i||i.length<6)throw new Ap("The blurhash string must be at least 6 characters");let e=Ro(i[0]),t=Math.floor(e/9)+1,n=e%9+1;if(i.length!==4+2*n*t)throw new Ap(`blurhash length mismatch: length is ${i.length} but it should be ${4+2*n*t}`)},A2=i=>{let e=i>>8&255,t=255&i;return[oc(i>>16),oc(e),oc(t)]},C2=(i,e)=>{let t=Math.floor(i/361),n=Math.floor(i/19)%19,o=i%19;return[sc((t-9)/9,2)*e,sc((n-9)/9,2)*e,sc((o-9)/9,2)*e]},v2=(i,e,t,n)=>{_2(i),n|=1;let o=Ro(i[0]),r=Math.floor(o/9)+1,s=o%9+1,a=(Ro(i[1])+1)/166,c=new Array(s*r);for(let u=0;u<c.length;u++)if(u===0){let h=Ro(i.substring(2,6));c[u]=A2(h)}else{let h=Ro(i.substring(4+2*u,6+2*u));c[u]=C2(h,a*n)}let l=4*e,d=new Uint8ClampedArray(l*t);for(let u=0;u<t;u++)for(let h=0;h<e;h++){let m=0,k=0,A=0;for(let z=0;z<r;z++)for(let H=0;H<s;H++){let Q=Math.cos(Math.PI*h*H/e)*Math.cos(Math.PI*u*z/t),ne=c[H+z*s];m+=ne[0]*Q,k+=ne[1]*Q,A+=ne[2]*Q}let E=rc(m),S=rc(k),O=rc(A);d[4*h+0+u*l]=E,d[4*h+1+u*l]=S,d[4*h+2+u*l]=O,d[4*h+3+u*l]=255}return d},y2=Object.defineProperty,Cp=Object.getOwnPropertySymbols,x2=Object.prototype.hasOwnProperty,D2=Object.prototype.propertyIsEnumerable,vp=(i,e,t)=>e in i?y2(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;function yp(i){const e=[];let t=0;for(const o in i){const r=parseInt(o,10);isNaN(r)||(r>t&&(t=r),e.push(`${i[o]} ${o}w`))}const n=[{srcset:e.join(","),sizes:`(max-width: ${t}px) 100vw, ${t}px`,type:"image/webp"}];return{imageFallbackUrl:i.default,imageSources:n}}const jo=32;function xp({url:i,method:e="GET",data:t,onUploadProgress:n,signal:o,authorization:r}){const s=new XMLHttpRequest;s.open(e,i.toString()),s.setRequestHeader("Authorization",r),s.setRequestHeader("CKBox-Version","CKEditor 5"),s.responseType="json";const a=()=>{s.abort()};return new Promise((c,l)=>{o.throwIfAborted(),o.addEventListener("abort",a),s.addEventListener("loadstart",()=>{o.addEventListener("abort",a)}),s.addEventListener("loadend",()=>{o.removeEventListener("abort",a)}),s.addEventListener("error",()=>{l()}),s.addEventListener("abort",()=>{l()}),s.addEventListener("load",()=>{const d=s.response;if(!d||d.statusCode>=400)return l(d&&d.message);c(d)}),n&&s.upload.addEventListener("progress",d=>{n(d)}),s.send(t)})}const E2={"image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};function T2(i,e){return t=this,n=null,o=function*(){try{const r=yield fetch(i,((s,a)=>{for(var c in a||(a={}))x2.call(a,c)&&vp(s,c,a[c]);if(Cp)for(var c of Cp(a))D2.call(a,c)&&vp(s,c,a[c]);return s})({method:"HEAD",cache:"force-cache"},e));return r.ok&&r.headers.get("content-type")||""}catch{return""}},new Promise((r,s)=>{var a=d=>{try{l(o.next(d))}catch(u){s(u)}},c=d=>{try{l(o.throw(d))}catch(u){s(u)}},l=d=>d.done?r(d.value):Promise.resolve(d.value).then(a,c);l((o=o.apply(t,n)).next())});var t,n,o}var M2=Object.defineProperty,Dp=Object.getOwnPropertySymbols,I2=Object.prototype.hasOwnProperty,S2=Object.prototype.propertyIsEnumerable,Ep=(i,e,t)=>e in i?M2(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Tp=(i,e)=>{for(var t in e||(e={}))I2.call(e,t)&&Ep(i,t,e[t]);if(Dp)for(var t of Dp(e))S2.call(e,t)&&Ep(i,t,e[t]);return i};class B2 extends de{constructor(e){super(e),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return this._wrapper!==null}_checkEnabled(){const e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");return!(!e.isEnabled&&!t.isEnabled)}_prepareOptions(){const e=this.editor.config.get("ckbox");return{theme:e.theme,language:e.language,tokenUrl:e.tokenUrl,serviceOrigin:e.serviceOrigin,forceDemoLabel:e.forceDemoLabel,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:t=>this.fire("ckbox:choose",t)}}}_initListeners(){const e=this.editor,t=e.model,n=!e.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=Pt(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null,e.editing.view.focus())}),this.on("ckbox:choose",(o,r)=>{if(!this.isEnabled)return;const s=e.commands.get("insertImage"),a=e.commands.get("link"),c=function({assets:d,isImageAllowed:u,isLinkAllowed:h}){return d.map(m=>function(k){const A=k.data.metadata;return A?A.width&&A.height:!1}(m)?{id:m.data.id,type:"image",attributes:N2(m)}:{id:m.data.id,type:"link",attributes:O2(m)}).filter(m=>m.type==="image"?u:h)}({assets:r,isImageAllowed:s.isEnabled,isLinkAllowed:a.isEnabled}),l=c.length;l!==0&&(t.change(d=>{for(const u of c){const h=u===c[l-1],m=l===1;this._insertAsset(u,h,d,m),n&&(setTimeout(()=>this._chosenAssets.delete(u),1e3),this._chosenAssets.add(u))}}),e.editing.view.focus())}),this.listenTo(e,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(e,t,n,o){const r=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),e.type==="image"?this._insertImage(e):this._insertLink(e,n,o),t||n.setSelection(r.getLastPosition())}_insertImage(e){const t=this.editor,{imageFallbackUrl:n,imageSources:o,imageTextAlternative:r,imageWidth:s,imageHeight:a,imagePlaceholder:c}=e.attributes;t.execute("insertImage",{source:Tp({src:n,sources:o,alt:r,width:s,height:a},c?{placeholder:c}:null)})}_insertLink(e,t,n){const o=this.editor,r=o.model,s=r.document.selection,{linkName:a,linkHref:c}=e.attributes;if(s.isCollapsed){const l=sn(s.getAttributes()),d=t.createText(a,l);if(!n){const h=s.getLastPosition(),m=h.parent;m.name==="paragraph"&&m.isEmpty||o.execute("insertParagraph",{position:h});const k=r.insertContent(d);return t.setSelection(k),void o.execute("link",c)}const u=r.insertContent(d);t.setSelection(u)}o.execute("link",c)}}function N2(i){const{imageFallbackUrl:e,imageSources:t}=yp(i.data.imageUrls),{description:n,width:o,height:r,blurHash:s}=i.data.metadata,a=function(c){if(c)try{const l=`${jo}px`,d=document.createElement("canvas");d.setAttribute("width",l),d.setAttribute("height",l);const u=d.getContext("2d");if(!u)return;const h=u.createImageData(jo,jo),m=v2(c,jo,jo);return h.data.set(m),u.putImageData(h,0,0),d.toDataURL()}catch{return}}(s);return Tp({imageFallbackUrl:e,imageSources:t,imageTextAlternative:n||"",imageWidth:o,imageHeight:r},a?{imagePlaceholder:a}:null)}function O2(i){return{linkName:i.data.name,linkHref:P2(i)}}function P2(i){const e=new URL(i.data.url);return e.searchParams.set("download","true"),e.toString()}var ac=(i,e,t)=>new Promise((n,o)=>{var r=c=>{try{a(t.next(c))}catch(l){o(l)}},s=c=>{try{a(t.throw(c))}catch(l){o(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(r,s);a((t=t.apply(i,e)).next())});class Mp extends G{static get pluginName(){return"CKBoxUtils"}static get requires(){return["CloudServices"]}init(){return ac(this,null,function*(){const e=this.editor,t=!!e.config.get("ckbox"),n=!!window.CKBox;if(!t&&!n)return;e.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:e.locale.uiLanguage,theme:"lark",tokenUrl:e.config.get("cloudServices.tokenUrl")});const o=e.plugins.get("CloudServices"),r=e.config.get("cloudServices.tokenUrl"),s=e.config.get("ckbox.tokenUrl");if(!s)throw new B("ckbox-plugin-missing-token-url",this);this._token=s==r?o.token:yield o.registerTokenUrl(s)})}getToken(){return this._token}getWorkspaceId(){const e=(0,this.editor.t)("Cannot access default workspace."),t=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),n=function(o,r){const[,s]=o.value.split("."),a=JSON.parse(atob(s)),c=a.auth&&a.auth.ckbox&&a.auth.ckbox.workspaces||[a.aud];return r?(a.auth&&a.auth.ckbox&&a.auth.ckbox.role)=="superadmin"||c.includes(r)?r:null:c[0]}(this._token,t);if(n==null)throw re("ckbox-access-default-workspace-error"),e;return n}getCategoryIdForFile(e,t){return ac(this,null,function*(){const n=(0,this.editor.t)("Cannot determine a category for the uploaded file."),o=this.editor.config.get("ckbox.defaultUploadCategories"),r=this._getAvailableCategories(t),s=typeof e=="string"?(a=yield T2(e,t),E2[a]):function(d){const u=d.name,h=new RegExp("\\.(?<ext>[^.]+)$");return u.match(h).groups.ext.toLowerCase()}(e);var a;const c=yield r;if(!c)throw n;if(o){const d=Object.keys(o).find(u=>o[u].find(h=>h.toLowerCase()==s));if(d){const u=c.find(h=>h.id===d||h.name===d);if(!u)throw n;return u.id}}const l=c.find(d=>d.extensions.find(u=>u.toLowerCase()==s));if(!l)throw n;return l.id})}_getAvailableCategories(e){return ac(this,null,function*(){const t=this.editor,n=this._token,{signal:o}=e,r=t.config.get("ckbox.serviceOrigin"),s=this.getWorkspaceId();try{const c=[];let l,d=0;do{const u=yield a(d);c.push(...u.items),l=u.totalCount-(d+50),d+=50}while(l>0);return c}catch{return o.throwIfAborted(),void re("ckbox-fetch-category-http-error")}function a(c){const l=new URL("categories",r);return l.searchParams.set("limit",50 .toString()),l.searchParams.set("offset",c.toString()),l.searchParams.set("workspaceId",s),xp({url:l,signal:o,authorization:n.value})}})}}var cc=(i,e,t)=>new Promise((n,o)=>{var r=c=>{try{a(t.next(c))}catch(l){o(l)}},s=c=>{try{a(t.throw(c))}catch(l){o(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(r,s);a((t=t.apply(i,e)).next())});class L2 extends G{static get requires(){return["ImageUploadEditing","ImageUploadProgress",Jt,Ip]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return cc(this,null,function*(){const e=this.editor,t=!!e.config.get("ckbox"),n=!!window.CKBox;if(!t&&!n)return;const o=e.plugins.get(Jt),r=e.plugins.get(Mp);o.createUploadAdapter=c=>new z2(c,e,r);const s=!e.config.get("ckbox.ignoreDataId"),a=e.plugins.get("ImageUploadEditing");s&&a.on("uploadComplete",(c,{imageElement:l,data:d})=>{e.model.change(u=>{u.setAttribute("ckboxImageId",d.ckboxImageId,l)})})})}}class z2{constructor(e,t,n){this.loader=e,this.token=n.getToken(),this.ckboxUtils=n,this.editor=t,this.controller=new AbortController,this.serviceOrigin=t.config.get("ckbox.serviceOrigin")}upload(){return cc(this,null,function*(){const e=this.ckboxUtils,t=this.editor.t,n=yield this.loader.file,o=yield e.getCategoryIdForFile(n,{signal:this.controller.signal}),r=new URL("assets",this.serviceOrigin),s=new FormData;return r.searchParams.set("workspaceId",e.getWorkspaceId()),s.append("categoryId",o),s.append("file",n),xp({method:"POST",url:r,data:s,onUploadProgress:a=>{a.lengthComputable&&(this.loader.uploadTotal=a.total,this.loader.uploaded=a.loaded)},signal:this.controller.signal,authorization:this.token.value}).then(a=>cc(this,null,function*(){const c=yp(a.imageUrls);return{ckboxImageId:a.id,default:c.imageFallbackUrl,sources:c.imageSources}})).catch(()=>{const a=t("Cannot upload file:")+` ${n.name}.`;return Promise.reject(a)})})}abort(){this.controller.abort()}}class Ip extends G{static get pluginName(){return"CKBoxEditing"}static get requires(){return["LinkEditing","PictureEditing",L2,Mp]}init(){const e=this.editor;this._shouldBeInitialised()&&(this._checkImagePlugins(),Bp()&&e.commands.add("ckbox",new B2(e)))}afterInit(){const e=this.editor;this._shouldBeInitialised()&&(e.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()))}_shouldBeInitialised(){return!!this.editor.config.get("ckbox")||Bp()}_checkImagePlugins(){const e=this.editor;e.plugins.has("ImageBlockEditing")||e.plugins.has("ImageInlineEditing")||re("ckbox-plugin-image-feature-missing",e)}_initSchema(){const e=this.editor.model.schema;e.extend("$text",{allowAttributes:"ckboxLinkId"}),e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),e.addAttributeCheck((t,n)=>{if(!t.last.getAttribute("linkHref")&&n==="ckboxLinkId")return!1})}_initConversion(){const e=this.editor;e.conversion.for("downcast").add(n=>{n.on("attribute:ckboxLinkId:imageBlock",(o,r,s)=>{const{writer:a,mapper:c,consumable:l}=s;if(!l.consume(r.item,o.name))return;const d=[...c.toViewElement(r.item).getChildren()].find(u=>u.name==="a");d&&(r.item.hasAttribute("ckboxLinkId")?a.setAttribute("data-ckbox-resource-id",r.item.getAttribute("ckboxLinkId"),d):a.removeAttribute("data-ckbox-resource-id",d))},{priority:"low"}),n.on("attribute:ckboxLinkId",(o,r,s)=>{const{writer:a,mapper:c,consumable:l}=s;if(l.consume(r.item,o.name)){if(r.attributeOldValue){const d=Sp(a,r.attributeOldValue);a.unwrap(c.toViewRange(r.range),d)}if(r.attributeNewValue){const d=Sp(a,r.attributeNewValue);if(r.item.is("selection")){const u=a.document.selection;a.wrap(u.getFirstRange(),d)}else a.wrap(c.toViewRange(r.range),d)}}},{priority:"low"})}),e.conversion.for("upcast").add(n=>{n.on("element:a",(o,r,s)=>{const{writer:a,consumable:c}=s;if(!r.viewItem.getAttribute("href")||!c.consume(r.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const l=r.viewItem.getAttribute("data-ckbox-resource-id");if(l)if(r.modelRange)for(let d of r.modelRange.getItems())d.is("$textProxy")&&(d=d.textNode),j2(d)&&a.setAttribute("ckboxLinkId",l,d);else{const d=r.modelCursor.nodeBefore||r.modelCursor.parent;a.setAttribute("ckboxLinkId",l,d)}},{priority:"low"})}),e.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),e.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:n=>n.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}});const t=e.commands.get("replaceImageSource");t&&this.listenTo(t,"cleanupImage",(n,[o,r])=>{o.removeAttribute("ckboxImageId",r)})}_initFixers(){const e=this.editor,t=e.model,n=t.document.selection;t.document.registerPostFixer(function(o){return r=>{let s=!1;const a=o.model,c=o.commands.get("ckbox");if(!c)return s;for(const l of a.document.differ.getChanges()){if(l.type!=="insert"&&l.type!=="attribute")continue;const d=l.type==="insert"?new F(l.position,l.position.getShiftedBy(l.length)):l.range,u=l.type==="attribute"&&l.attributeKey==="linkHref"&&l.attributeNewValue===null;for(const h of d.getItems()){if(u&&h.hasAttribute("ckboxLinkId")){r.removeAttribute("ckboxLinkId",h),s=!0;continue}const m=R2(h,c._chosenAssets);for(const k of m){const A=k.type==="image"?"ckboxImageId":"ckboxLinkId";k.id!==h.getAttribute(A)&&(r.setAttribute(A,k.id,h),s=!0)}}}return s}}(e)),t.document.registerPostFixer(function(o){return r=>!(o.hasAttribute("linkHref")||!o.hasAttribute("ckboxLinkId"))&&(r.removeSelectionAttribute("ckboxLinkId"),!0)}(n))}}function R2(i,e){const t=i.is("element","imageInline")||i.is("element","imageBlock"),n=i.hasAttribute("linkHref");return[...e].filter(o=>o.type==="image"&&t?o.attributes.imageFallbackUrl===i.getAttribute("src"):o.type==="link"&&n?o.attributes.linkHref===i.getAttribute("linkHref"):void 0)}function Sp(i,e){const t=i.createAttributeElement("a",{"data-ckbox-resource-id":e},{priority:5});return i.setCustomProperty("link",!0,t),t}function j2(i){return!!i.is("$text")||!(!i.is("element","imageInline")&&!i.is("element","imageBlock"))}function Bp(){return!!window.CKBox}var Np=I(1866),F2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Np.A,F2),Np.A.locals;class V2 extends G{static get pluginName(){return"CKFinderUI"}init(){const e=this.editor,t=e.ui.componentFactory,n=e.t;if(t.add("ckfinder",o=>{const r=this._createButton(Ae),s=o.t;return r.set({label:s("Insert image or file"),tooltip:!0}),r}),t.add("menuBar:ckfinder",o=>{const r=this._createButton(It),s=o.t;return r.label=s("Image or file"),r}),e.plugins.has("ImageInsertUI")){const o=e.plugins.get("ImageInsertUI");o.registerIntegration({name:"assetManager",observable:()=>e.commands.get("ckfinder"),buttonViewCreator:()=>{const r=this.editor.ui.componentFactory.create("ckfinder");return r.icon=oe.imageAssetManager,r.bind("label").to(o,"isImageSelected",s=>n(s?"Replace image with file manager":"Insert image with file manager")),r},formViewCreator:()=>{const r=this.editor.ui.componentFactory.create("ckfinder");return r.icon=oe.imageAssetManager,r.withText=!0,r.bind("label").to(o,"isImageSelected",s=>n(s?"Replace with file manager":"Insert with file manager")),r.on("execute",()=>{o.dropdownView.isOpen=!1}),r}})}}_createButton(e){const t=this.editor,n=new e(t.locale),o=t.commands.get("ckfinder");return n.icon=oe.browseFiles,n.bind("isEnabled").to(o),n.on("execute",()=>{t.execute("ckfinder"),t.editing.view.focus()}),n}}class H2 extends de{constructor(e){super(e),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");this.isEnabled=e.isEnabled||t.isEnabled}execute(){const e=this.editor,t=this.editor.config.get("ckfinder.openerMethod")||"modal";if(t!="popup"&&t!="modal")throw new B("ckfinder-unknown-openermethod",e);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const o=n.onInit;n.language||(n.language=e.locale.uiLanguage),n.onInit=r=>{o&&o(r),r.on("files:choose",s=>{const a=s.data.files.toArray(),c=a.filter(u=>!u.isImage()),l=a.filter(u=>u.isImage());for(const u of c)e.execute("link",u.getUrl());const d=[];for(const u of l){const h=u.getUrl();d.push(h||r.request("file:getProxyUrl",{file:u}))}d.length&&Op(e,d)}),r.on("file:choose:resizedImage",s=>{const a=s.data.resizedUrl;if(a)Op(e,[a]);else{const c=e.plugins.get("Notification"),l=e.locale.t;c.showWarning(l("Could not obtain resized image URL."),{title:l("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[t](n)}}function Op(i,e){if(i.commands.get("insertImage").isEnabled)i.execute("insertImage",{source:e});else{const t=i.plugins.get("Notification"),n=i.locale.t;t.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class U2 extends G{static get pluginName(){return"CKFinderEditing"}static get requires(){return[$a,"LinkEditing"]}init(){const e=this.editor;if(!e.plugins.has("ImageBlockEditing")&&!e.plugins.has("ImageInlineEditing"))throw new B("ckfinder-missing-image-plugin",e);e.commands.add("ckfinder",new H2(e))}}class W2 extends G{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",Jt]}init(){const e=this.editor,t=e.plugins.get("CloudServices"),n=t.token,o=t.uploadUrl;if(!n)return;const r=e.plugins.get("CloudServicesCore");this._uploadGateway=r.createUploadGateway(n,o),e.plugins.get(Jt).createUploadAdapter=s=>new q2(this._uploadGateway,s)}}class q2{constructor(e,t){this.uploadGateway=e,this.loader=t}upload(){return this.loader.file.then(e=>(this.fileUploader=this.uploadGateway.upload(e),this.fileUploader.on("progress",(t,n)=>{this.loader.uploadTotal=n.total,this.loader.uploaded=n.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class G2 extends de{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}refresh(){const e=this.editor.model,t=at(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&Pp(t,e.schema)}execute(e={}){const t=this.editor.model,n=t.document,o=e.selection||n.selection;t.canEditAt(o)&&t.change(r=>{const s=o.getSelectedBlocks();for(const a of s)!a.is("element","paragraph")&&Pp(a,t.schema)&&r.rename(a,"paragraph")})}}function Pp(i,e){return e.checkChild(i.parent,"paragraph")&&!e.isObject(i)}class $2 extends de{constructor(e){super(e),this._isEnabledBasedOnSelection=!1}execute(e){const t=this.editor.model,n=e.attributes;let o=e.position;t.canEditAt(o)&&t.change(r=>{if(o=this._findPositionToInsertParagraph(o,r),!o)return;const s=r.createElement("paragraph");n&&t.schema.setAllowedAttributes(s,n,r),t.insertContent(s,o),r.setSelection(s,"in")})}_findPositionToInsertParagraph(e,t){const n=this.editor.model;if(n.schema.checkChild(e,"paragraph"))return e;const o=n.schema.findAllowedParent(e,"paragraph");if(!o)return null;const r=e.parent,s=n.schema.checkChild(r,"$text");return r.isEmpty||s&&e.isAtEnd?n.createPositionAfter(r):!r.isEmpty&&s&&e.isAtStart?n.createPositionBefore(r):t.split(e,o).position}}const Lp=class extends G{static get pluginName(){return"Paragraph"}init(){const i=this.editor,e=i.model;i.commands.add("paragraph",new G2(i)),i.commands.add("insertParagraph",new $2(i)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),i.conversion.elementToElement({model:"paragraph",view:"p"}),i.conversion.for("upcast").elementToElement({model:(t,{writer:n})=>Lp.paragraphLikeElements.has(t.name)?t.isEmpty?null:n.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let lc=Lp;lc.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class K2 extends de{constructor(e,t){super(e),this.modelElements=t}refresh(){const e=at(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some(t=>zp(e,t,this.editor.model.schema))}execute(e){const t=this.editor.model,n=t.document,o=e.value;t.change(r=>{const s=Array.from(n.selection.getSelectedBlocks()).filter(a=>zp(a,o,t.schema));for(const a of s)a.is("element",o)||r.rename(a,o)})}}function zp(i,e,t){return t.checkChild(i.parent,e)&&!t.isObject(i)}const Rp="paragraph";class Y2 extends G{static get pluginName(){return"HeadingEditing"}constructor(e){super(e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[lc]}init(){const e=this.editor,t=e.config.get("heading.options"),n=[];for(const o of t)o.model!=="paragraph"&&(e.model.schema.register(o.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(o),n.push(o.model));this._addDefaultH1Conversion(e),e.commands.add("heading",new K2(e,n))}afterInit(){const e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(o,r)=>{const s=e.model.document.selection.getFirstPosition().parent;n.some(a=>s.is("element",a.model))&&!s.is("element",Rp)&&s.childCount===0&&r.writer.rename(s,Rp)})}_addDefaultH1Conversion(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:ee.low+1})}}var jp=I(6269),Q2={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(jp.A,Q2),jp.A.locals;class Z2 extends G{static get pluginName(){return"HeadingUI"}init(){const e=this.editor,t=e.t,n=function(s){const a=s.t,c={Paragraph:a("Paragraph"),"Heading 1":a("Heading 1"),"Heading 2":a("Heading 2"),"Heading 3":a("Heading 3"),"Heading 4":a("Heading 4"),"Heading 5":a("Heading 5"),"Heading 6":a("Heading 6")};return s.config.get("heading.options").map(l=>{const d=c[l.title];return d&&d!=l.title&&(l.title=d),l})}(e),o=t("Choose heading"),r=t("Heading");e.ui.componentFactory.add("heading",s=>{const a={},c=new qt,l=e.commands.get("heading"),d=e.commands.get("paragraph"),u=[l];for(const m of n){const k={type:"button",model:new Tg({label:m.title,class:m.class,role:"menuitemradio",withText:!0})};m.model==="paragraph"?(k.model.bind("isOn").to(d,"value"),k.model.set("commandName","paragraph"),u.push(d)):(k.model.bind("isOn").to(l,"value",A=>A===m.model),k.model.set({commandName:"heading",commandValue:m.model})),c.add(k),a[m.model]=m.title}const h=bn(s);return Zh(h,c,{ariaLabel:r,role:"menu"}),h.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),h.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),h.bind("isEnabled").toMany(u,"isEnabled",(...m)=>m.some(k=>k)),h.buttonView.bind("label").to(l,"value",d,"value",(m,k)=>{const A=k?"paragraph":m;return typeof A=="boolean"?o:a[A]?a[A]:o}),h.buttonView.bind("ariaLabel").to(l,"value",d,"value",(m,k)=>{const A=k?"paragraph":m;return typeof A=="boolean"?r:a[A]?`${a[A]}, ${r}`:r}),this.listenTo(h,"execute",m=>{const{commandName:k,commandValue:A}=m.source;e.execute(k,A?{value:A}:void 0),e.editing.view.focus()}),h}),e.ui.componentFactory.add("menuBar:heading",s=>{const a=new zi(s),c=e.commands.get("heading"),l=e.commands.get("paragraph"),d=[c],u=new Za(s);a.set({class:"ck-heading-dropdown"}),u.set({ariaLabel:t("Heading"),role:"menu"}),a.buttonView.set({label:t("Heading")}),a.panelView.children.add(u);for(const h of n){const m=new Ya(s,a),k=new It(s);m.children.add(k),u.items.add(m),k.set({label:h.title,role:"menuitemradio",class:h.class}),k.bind("ariaChecked").to(k,"isOn"),k.delegate("execute").to(a),k.on("execute",()=>{const A=h.model==="paragraph"?"paragraph":"heading";e.execute(A,{value:h.model}),e.editing.view.focus()}),h.model==="paragraph"?(k.bind("isOn").to(l,"value"),d.push(l)):k.bind("isOn").to(c,"value",A=>A===h.model)}return a.bind("isEnabled").toMany(d,"isEnabled",(...h)=>h.some(m=>m)),a})}}function Fp(i){return i.createContainerElement("figure",{class:"image"},[i.createEmptyElement("img"),i.createSlot("children")])}function Vp(i,e){const t=i.plugins.get("ImageUtils"),n=i.plugins.has("ImageInlineEditing")&&i.plugins.has("ImageBlockEditing");return r=>t.isInlineImageView(r)?n&&(r.getStyle("display")=="block"||r.findAncestor(t.isBlockImageView)?"imageBlock":"imageInline")!==e?null:o(r):null;function o(r){const s={name:!0};return r.hasAttribute("src")&&(s.attributes=["src"]),s}}function dc(i,e){const t=at(e.getSelectedBlocks());return!t||i.isObject(t)||t.isEmpty&&t.name!="listItem"?"imageBlock":"imageInline"}function ds(i){return i&&i.endsWith("px")?parseInt(i):null}function Hp(i){const e=ds(i.getStyle("width")),t=ds(i.getStyle("height"));return!(!e||!t)}var J2=Object.defineProperty,Up=Object.getOwnPropertySymbols,X2=Object.prototype.hasOwnProperty,eD=Object.prototype.propertyIsEnumerable,Wp=(i,e,t)=>e in i?J2(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,qp=(i,e)=>{for(var t in e||(e={}))X2.call(e,t)&&Wp(i,t,e[t]);if(Up)for(var t of Up(e))eD.call(e,t)&&Wp(i,t,e[t]);return i};const tD=/^(image|image-inline)$/;class At extends G{constructor(){super(...arguments),this._domEmitter=new(Lt())}static get pluginName(){return"ImageUtils"}isImage(e){return this.isInlineImage(e)||this.isBlockImage(e)}isInlineImageView(e){return!!e&&e.is("element","img")}isBlockImageView(e){return!!e&&e.is("element","figure")&&e.hasClass("image")}insertImage(e={},t=null,n=null,o={}){const r=this.editor,s=r.model,a=s.document.selection,c=Gp(r,t||a,n);e=qp(qp({},Object.fromEntries(a.getAttributes())),e);for(const l in e)s.schema.checkAttribute(c,l)||delete e[l];return s.change(l=>{const{setImageSizes:d=!0}=o,u=l.createElement(c,e);return s.insertObject(u,t,null,{setSelection:"on",findOptimalPosition:t||c=="imageInline"?void 0:"auto"}),u.parent?(d&&this.setImageNaturalSizeAttributes(u),u):null})}setImageNaturalSizeAttributes(e){const t=e.getAttribute("src");t&&(e.getAttribute("width")||e.getAttribute("height")||this.editor.model.change(n=>{const o=new w.window.Image;this._domEmitter.listenTo(o,"load",()=>{e.getAttribute("width")||e.getAttribute("height")||this.editor.model.enqueueChange(n.batch,r=>{r.setAttribute("width",o.naturalWidth,e),r.setAttribute("height",o.naturalHeight,e)}),this._domEmitter.stopListening(o,"load")}),o.src=t}))}getClosestSelectedImageWidget(e){const t=e.getFirstPosition();if(!t)return null;const n=e.getSelectedElement();if(n&&this.isImageWidget(n))return n;let o=t.parent;for(;o;){if(o.is("element")&&this.isImageWidget(o))return o;o=o.parent}return null}getClosestSelectedImageElement(e){const t=e.getSelectedElement();return this.isImage(t)?t:e.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(e){return e.findAncestor({classes:tD})}isImageAllowed(){const e=this.editor.model.document.selection;return function(t,n){if(Gp(t,n,null)=="imageBlock"){const r=function(s,a){const c=Fm(s,a),l=c.start.parent;return l.isEmpty&&!l.is("element","$root")?l.parent:l}(n,t.model);if(t.model.schema.checkChild(r,"imageBlock"))return!0}else if(t.model.schema.checkChild(n.focus,"imageInline"))return!0;return!1}(this.editor,e)&&function(t){return[...t.focus.getAncestors()].every(n=>!n.is("element","imageBlock"))}(e)}toImageWidget(e,t,n){return t.setCustomProperty("image",!0,e),nc(e,t,{label:()=>{const o=this.findViewImgElement(e).getAttribute("alt");return o?`${o} ${n}`:n}})}isImageWidget(e){return!!e.getCustomProperty("image")&&et(e)}isBlockImage(e){return!!e&&e.is("element","imageBlock")}isInlineImage(e){return!!e&&e.is("element","imageInline")}findViewImgElement(e){if(this.isInlineImageView(e))return e;const t=this.editor.editing.view;for(const{item:n}of t.createRangeIn(e))if(this.isInlineImageView(n))return n}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function Gp(i,e,t){const n=i.model.schema,o=i.config.get("image.insert.type");return i.plugins.has("ImageBlockEditing")?i.plugins.has("ImageInlineEditing")?t||(o==="inline"?"imageInline":o!=="auto"?"imageBlock":e.is("selection")?dc(n,e):n.checkChild(e,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class nD extends de{refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}execute(e){const t=this.editor,n=t.plugins.get("ImageUtils"),o=t.model,r=n.getClosestSelectedImageElement(o.document.selection);o.change(s=>{s.setAttribute("alt",e.newValue,r)})}}class iD extends G{static get requires(){return[At]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new nD(this.editor))}}var $p=I(4062),oD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()($p.A,oD),$p.A.locals;var Kp=I(2722),rD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Kp.A,rD),Kp.A.locals;class sD extends te{constructor(e){super(e);const t=this.locale.t;this.focusTracker=new ct,this.keystrokes=new ft,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(t("Save"),oe.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(t("Cancel"),oe.cancel,"ck-button-cancel","cancel"),this._focusables=new zt,this._focusCycler=new jt({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),br({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(e,t,n,o){const r=new Ae(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),o&&r.delegate("execute").to(this,o),r}_createLabeledInputView(){const e=this.locale.t,t=new Fr(this.locale,Ur);return t.label=e("Text alternative"),t}}function Yp(i){const e=i.editing.view,t=wt.defaultPositions,n=i.plugins.get("ImageUtils");return{target:e.domConverter.mapViewToDom(n.getClosestSelectedImageWidget(e.document.selection)),positions:[t.northArrowSouth,t.northArrowSouthWest,t.northArrowSouthEast,t.southArrowNorth,t.southArrowNorthWest,t.southArrowNorthEast,t.viewportStickyNorth]}}class aD extends G{static get requires(){return[Yr]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const e=this.editor,t=e.t;e.ui.componentFactory.add("imageTextAlternative",n=>{const o=e.commands.get("imageTextAlternative"),r=new Ae(n);return r.set({label:t("Change image text alternative"),icon:oe.textAlternative,tooltip:!0}),r.bind("isEnabled").to(o,"isEnabled"),r.bind("isOn").to(o,"value",s=>!!s),this.listenTo(r,"execute",()=>{this._showForm()}),r})}_createForm(){const e=this.editor,t=e.editing.view.document,n=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(ea(sD))(e.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{e.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(o,r)=>{this._hideForm(!0),r()}),this.listenTo(e.ui,"update",()=>{n.getClosestSelectedImageWidget(t.selection)?this._isVisible&&function(o){const r=o.plugins.get("ContextualBalloon");if(o.plugins.get("ImageUtils").getClosestSelectedImageWidget(o.editing.view.document.selection)){const s=Yp(o);r.updatePosition(s)}}(e):this._hideForm(!0)}),kr({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Yp(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class Qp extends G{static get requires(){return[iD,aD]}static get pluginName(){return"ImageTextAlternative"}}function Zp(i,e){const t=(n,o,r)=>{if(!r.consumable.consume(o.item,n.name))return;const s=r.writer,a=r.mapper.toViewElement(o.item),c=i.findViewImgElement(a);o.attributeNewValue===null?(s.removeAttribute("srcset",c),s.removeAttribute("sizes",c)):o.attributeNewValue&&(s.setAttribute("srcset",o.attributeNewValue,c),s.setAttribute("sizes","100vw",c))};return n=>{n.on(`attribute:srcset:${e}`,t)}}function us(i,e,t){const n=(o,r,s)=>{if(!s.consumable.consume(r.item,o.name))return;const a=s.writer,c=s.mapper.toViewElement(r.item),l=i.findViewImgElement(c);a.setAttribute(r.attributeKey,r.attributeNewValue||"",l)};return o=>{o.on(`attribute:${t}:${e}`,n)}}class Jp extends ln{observe(e){this.listenTo(e,"load",(t,n)=>{const o=n.target;this.checkShouldIgnoreEventFromTarget(o)||o.tagName=="IMG"&&this._fireEvents(n)},{useCapture:!0})}stopObserving(e){this.stopListening(e)}_fireEvents(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}var cD=Object.defineProperty,Xp=Object.getOwnPropertySymbols,lD=Object.prototype.hasOwnProperty,dD=Object.prototype.propertyIsEnumerable,ef=(i,e,t)=>e in i?cD(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,hs=(i,e)=>{for(var t in e||(e={}))lD.call(e,t)&&ef(i,t,e[t]);if(Xp)for(var t of Xp(e))dD.call(e,t)&&ef(i,t,e[t]);return i};class uD extends de{constructor(e){super(e);const t=e.config.get("image.insert.type");e.plugins.has("ImageBlockEditing")||t==="block"&&X("image-block-plugin-required"),e.plugins.has("ImageInlineEditing")||t==="inline"&&X("image-inline-plugin-required")}refresh(){const e=this.editor.plugins.get("ImageUtils");this.isEnabled=e.isImageAllowed()}execute(e){const t=Oe(e.source),n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(n.getAttributes());t.forEach((s,a)=>{const c=n.getSelectedElement();if(typeof s=="string"&&(s={src:s}),a&&c&&o.isImage(c)){const l=this.editor.model.createPositionAfter(c);o.insertImage(hs(hs({},s),r),l)}else o.insertImage(hs(hs({},s),r))})}}class hD extends de{constructor(e){super(e),this.decorate("cleanupImage")}refresh(){const e=this.editor.plugins.get("ImageUtils"),t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=e.isImage(t),this.value=this.isEnabled?t.getAttribute("src"):null}execute(e){const t=this.editor.model.document.selection.getSelectedElement(),n=this.editor.plugins.get("ImageUtils");this.editor.model.change(o=>{o.setAttribute("src",e.source,t),this.cleanupImage(o,t),n.setImageNaturalSizeAttributes(t)})}cleanupImage(e,t){e.removeAttribute("srcset",t),e.removeAttribute("sizes",t),e.removeAttribute("sources",t),e.removeAttribute("width",t),e.removeAttribute("height",t),e.removeAttribute("alt",t)}}class uc extends G{static get requires(){return[At]}static get pluginName(){return"ImageEditing"}init(){const e=this.editor,t=e.conversion;e.editing.view.addObserver(Jp),t.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new uD(e),o=new hD(e);e.commands.add("insertImage",n),e.commands.add("replaceImageSource",o),e.commands.add("imageInsert",n)}}class tf extends G{static get requires(){return[At]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(e){const t=this.editor,n=t.plugins.get("ImageUtils"),o=e==="imageBlock"?"figure":"img";function r(s,a,c,l){s.on(`attribute:${a}:${e}`,(d,u,h)=>{if(!h.consumable.consume(u.item,d.name))return;const m=h.writer,k=h.mapper.toViewElement(u.item),A=n.findViewImgElement(k);if(u.attributeNewValue!==null?m.setAttribute(c,u.attributeNewValue,A):m.removeAttribute(c,A),u.item.hasAttribute("sources"))return;const E=u.item.hasAttribute("resizedWidth");if(e==="imageInline"&&!E&&!l)return;const S=u.item.getAttribute("width"),O=u.item.getAttribute("height");S&&O&&m.setStyle("aspect-ratio",`${S}/${O}`,A)})}t.conversion.for("upcast").attributeToAttribute({view:{name:o,styles:{width:/.+/}},model:{key:"width",value:s=>Hp(s)?ds(s.getStyle("width")):null}}).attributeToAttribute({view:{name:o,key:"width"},model:"width"}).attributeToAttribute({view:{name:o,styles:{height:/.+/}},model:{key:"height",value:s=>Hp(s)?ds(s.getStyle("height")):null}}).attributeToAttribute({view:{name:o,key:"height"},model:"height"}),t.conversion.for("editingDowncast").add(s=>{r(s,"width","width",!0),r(s,"height","height",!0)}),t.conversion.for("dataDowncast").add(s=>{r(s,"width","width",!1),r(s,"height","height",!1)})}}class nf extends de{constructor(e,t){super(e),this._modelElementName=t}refresh(){const e=this.editor.plugins.get("ImageUtils"),t=e.getClosestSelectedImageElement(this.editor.model.document.selection);this._modelElementName==="imageBlock"?this.isEnabled=e.isInlineImage(t):this.isEnabled=e.isBlockImage(t)}execute(e={}){const t=this.editor,n=this.editor.model,o=t.plugins.get("ImageUtils"),r=o.getClosestSelectedImageElement(n.document.selection),s=Object.fromEntries(r.getAttributes());return s.src||s.uploadId?n.change(a=>{const{setImageSizes:c=!0}=e,l=Array.from(n.markers).filter(h=>h.getRange().containsItem(r)),d=o.insertImage(s,n.createSelection(r,"on"),this._modelElementName,{setImageSizes:c});if(!d)return null;const u=a.createRangeOn(d);for(const h of l){const m=h.getRange(),k=m.root.rootName!="$graveyard"?m.getJoined(u,!0):u;a.updateMarker(h,{range:k})}return{oldElement:r,newElement:d}}):null}}var of=I(7378),gD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(of.A,gD),of.A.locals;class rf extends G{static get requires(){return[At]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const e=this.editor.model.schema;e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["placeholder"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const e=this.editor,t=e.conversion,n=e.plugins.get("ImageUtils");t.for("editingDowncast").add(o=>{o.on("attribute:placeholder",(r,s,a)=>{if(!a.consumable.test(s.item,r.name)||!s.item.is("element","imageBlock")&&!s.item.is("element","imageInline"))return;a.consumable.consume(s.item,r.name);const c=a.writer,l=a.mapper.toViewElement(s.item),d=n.findViewImgElement(l);s.attributeNewValue?(c.addClass("image_placeholder",d),c.setStyle("background-image",`url(${s.attributeNewValue})`,d),c.setCustomProperty("editingPipeline:doNotReuseOnce",!0,d)):(c.removeClass("image_placeholder",d),c.removeStyle("background-image",d))})})}_setupLoadListener(){const e=this.editor,t=e.model,n=e.editing,o=n.view,r=e.plugins.get("ImageUtils");o.addObserver(Jp),this.listenTo(o.document,"imageLoaded",(s,a)=>{const c=o.domConverter.mapDomToView(a.target);if(!c)return;const l=r.getImageWidgetFromImageView(c);if(!l)return;const d=n.mapper.toModelElement(l);d&&d.hasAttribute("placeholder")&&t.enqueueChange({isUndoable:!1},u=>{u.removeAttribute("placeholder",d)})})}}class sf extends G{static get requires(){return[uc,tf,At,rf,Ft]}static get pluginName(){return"ImageBlockEditing"}init(){const e=this.editor;e.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),e.plugins.has("ImageInlineEditing")&&(e.commands.add("imageTypeBlock",new nf(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,n=e.conversion,o=e.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(r,{writer:s})=>Fp(s)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(r,{writer:s})=>o.toImageWidget(Fp(s),s,t("image widget"))}),n.for("downcast").add(us(o,"imageBlock","src")).add(us(o,"imageBlock","alt")).add(Zp(o,"imageBlock")),n.for("upcast").elementToElement({view:Vp(e,"imageBlock"),model:(r,{writer:s})=>s.createElement("imageBlock",r.hasAttribute("src")?{src:r.getAttribute("src")}:void 0)}).add(function(r){const s=(a,c,l)=>{if(!l.consumable.test(c.viewItem,{name:!0,classes:"image"}))return;const d=r.findViewImgElement(c.viewItem);if(!d||!l.consumable.test(d,{name:!0}))return;l.consumable.consume(c.viewItem,{name:!0,classes:"image"});const u=at(l.convertItem(d,c.modelCursor).modelRange.getItems());u?(l.convertChildren(c.viewItem,u),l.updateConversionResult(u,c)):l.consumable.revert(c.viewItem,{name:!0,classes:"image"})};return a=>{a.on("element:figure",s)}}(o))}_setupClipboardIntegration(){const e=this.editor,t=e.model,n=e.editing.view,o=e.plugins.get("ImageUtils"),r=e.plugins.get("ClipboardPipeline");this.listenTo(r,"inputTransformation",(s,a)=>{const c=Array.from(a.content.getChildren());let l;if(!c.every(o.isInlineImageView))return;l=a.targetRanges?e.editing.mapper.toModelRange(a.targetRanges[0]):t.document.selection.getFirstRange();const d=t.createSelection(l);if(dc(t.schema,d)==="imageBlock"){const u=new fn(n.document),h=c.map(m=>u.createElement("figure",{class:"image"},m));a.content=u.createDocumentFragment(h)}}),this.listenTo(r,"contentInsertion",(s,a)=>{a.method==="paste"&&t.change(c=>{const l=c.createRangeIn(a.content);for(const d of l.getItems())d.is("element","imageBlock")&&o.setImageNaturalSizeAttributes(d)})})}}var af=I(3350),mD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(af.A,mD),af.A.locals;class pD extends te{constructor(e,t=[]){super(e),this.focusTracker=new ct,this.keystrokes=new ft,this._focusables=new zt,this.children=this.createCollection(),this._focusCycler=new jt({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const n of t)this.children.add(n),this._focusables.add(n),n instanceof Rv&&this._focusables.addMany(n.children);if(this._focusables.length>1)for(const n of this._focusables)fD(n)&&(n.focusCycler.on("forwardCycle",o=>{this._focusCycler.focusNext(),o.stop()}),n.focusCycler.on("backwardCycle",o=>{this._focusCycler.focusPrevious(),o.stop()}));this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),br({view:this});for(const t of this._focusables)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element);const e=t=>t.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}function fD(i){return"focusCycler"in i}class cf extends G{constructor(e){super(e),this._integrations=new Map,e.config.define("image.insert.integrations",["upload","assetManager","url"])}static get pluginName(){return"ImageInsertUI"}static get requires(){return[At]}init(){const e=this.editor,t=e.model.document.selection,n=e.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(e.model.document,"change",()=>{this.isImageSelected=n.isImage(t.getSelectedElement())});const o=r=>this._createToolbarComponent(r);e.ui.componentFactory.add("insertImage",o),e.ui.componentFactory.add("imageInsert",o)}registerIntegration({name:e,observable:t,buttonViewCreator:n,formViewCreator:o,requiresForm:r}){this._integrations.has(e)&&X("image-insert-integration-exists",{name:e}),this._integrations.set(e,{observable:t,buttonViewCreator:n,formViewCreator:o,requiresForm:!!r})}_createToolbarComponent(e){const t=this.editor,n=e.t,o=this._prepareIntegrations();if(!o.length)return null;let r;const s=o[0];if(o.length==1){if(!s.requiresForm)return s.buttonViewCreator(!0);r=s.buttonViewCreator(!0)}else{const l=s.buttonViewCreator(!1);r=new Hr(e,l),r.tooltip=!0,r.bind("label").to(this,"isImageSelected",d=>n(d?"Replace image":"Insert image"))}const a=this.dropdownView=bn(e,r),c=o.map(({observable:l})=>typeof l=="function"?l():l);return a.bind("isEnabled").toMany(c,"isEnabled",(...l)=>l.some(d=>d)),a.once("change:isOpen",()=>{const l=o.map(({formViewCreator:u})=>u(o.length==1)),d=new pD(t.locale,l);a.panelView.children.add(d)}),a}_prepareIntegrations(){const e=this.editor.config.get("image.insert.integrations"),t=[];if(!e.length)return X("image-insert-integrations-not-specified"),t;for(const n of e)this._integrations.has(n)?t.push(this._integrations.get(n)):["upload","assetManager","url"].includes(n)||X("image-insert-unknown-integration",{item:n});return t.length||X("image-insert-integrations-not-registered"),t}}var lf=I(265),kD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(lf.A,kD),lf.A.locals;class bD extends G{static get requires(){return[sf,zo,Qp,cf]}static get pluginName(){return"ImageBlock"}}class wD extends G{static get requires(){return[uc,tf,At,rf,Ft]}static get pluginName(){return"ImageInlineEditing"}init(){const e=this.editor,t=e.model.schema;t.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),t.addChildCheck((n,o)=>{if(n.endsWith("caption")&&o.name==="imageInline")return!1}),this._setupConversion(),e.plugins.has("ImageBlockEditing")&&(e.commands.add("imageTypeInline",new nf(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,n=e.conversion,o=e.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(r,{writer:s})=>s.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(r,{writer:s})=>o.toImageWidget(function(a){return a.createContainerElement("span",{class:"image-inline"},a.createEmptyElement("img"))}(s),s,t("image widget"))}),n.for("downcast").add(us(o,"imageInline","src")).add(us(o,"imageInline","alt")).add(Zp(o,"imageInline")),n.for("upcast").elementToElement({view:Vp(e,"imageInline"),model:(r,{writer:s})=>s.createElement("imageInline",r.hasAttribute("src")?{src:r.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const e=this.editor,t=e.model,n=e.editing.view,o=e.plugins.get("ImageUtils"),r=e.plugins.get("ClipboardPipeline");this.listenTo(r,"inputTransformation",(s,a)=>{const c=Array.from(a.content.getChildren());let l;if(!c.every(o.isBlockImageView))return;l=a.targetRanges?e.editing.mapper.toModelRange(a.targetRanges[0]):t.document.selection.getFirstRange();const d=t.createSelection(l);if(dc(t.schema,d)==="imageInline"){const u=new fn(n.document),h=c.map(m=>m.childCount===1?(Array.from(m.getAttributes()).forEach(k=>u.setAttribute(...k,o.findViewImgElement(m))),m.getChild(0)):m);a.content=u.createDocumentFragment(h)}}),this.listenTo(r,"contentInsertion",(s,a)=>{a.method==="paste"&&t.change(c=>{const l=c.createRangeIn(a.content);for(const d of l.getItems())d.is("element","imageInline")&&o.setImageNaturalSizeAttributes(d)})})}}class _D extends G{static get requires(){return[wD,zo,Qp,cf]}static get pluginName(){return"ImageInline"}}class df extends G{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[At]}getCaptionFromImageModelElement(e){for(const t of e.getChildren())if(t&&t.is("element","caption"))return t;return null}getCaptionFromModelSelection(e){const t=this.editor.plugins.get("ImageUtils"),n=e.getFirstPosition().findAncestor("caption");return n&&t.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(e){const t=this.editor.plugins.get("ImageUtils");return e.name=="figcaption"&&t.isBlockImageView(e.parent)?{name:!0}:null}}class AD extends de{refresh(){const e=this.editor,t=e.plugins.get("ImageCaptionUtils"),n=e.plugins.get("ImageUtils");if(!e.plugins.has(sf))return this.isEnabled=!1,void(this.value=!1);const o=e.model.document.selection,r=o.getSelectedElement();if(!r){const s=t.getCaptionFromModelSelection(o);return this.isEnabled=!!s,void(this.value=!!s)}this.isEnabled=n.isImage(r),this.isEnabled?this.value=!!t.getCaptionFromImageModelElement(r):this.value=!1}execute(e={}){const{focusCaptionOnShow:t}=e;this.editor.model.change(n=>{this.value?this._hideImageCaption(n):this._showImageCaption(n,t)})}_showImageCaption(e,t){const n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageCaptionEditing"),r=this.editor.plugins.get("ImageUtils");let s=n.getSelectedElement();const a=o._getSavedCaption(s);r.isInlineImage(s)&&(this.editor.execute("imageTypeBlock"),s=n.getSelectedElement());const c=a||e.createElement("caption");e.append(c,s),t&&e.setSelection(c,"in")}_hideImageCaption(e){const t=this.editor,n=t.model.document.selection,o=t.plugins.get("ImageCaptionEditing"),r=t.plugins.get("ImageCaptionUtils");let s,a=n.getSelectedElement();a?s=r.getCaptionFromImageModelElement(a):(s=r.getCaptionFromModelSelection(n),a=s.parent),o._saveCaption(a,s),e.setSelection(a,"on"),e.remove(s)}}class CD extends G{constructor(e){super(e),this._savedCaptionsMap=new WeakMap}static get requires(){return[At,df]}static get pluginName(){return"ImageCaptionEditing"}init(){const e=this.editor,t=e.model.schema;t.isRegistered("caption")?t.extend("caption",{allowIn:"imageBlock"}):t.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleImageCaption",new AD(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const e=this.editor,t=e.editing.view,n=e.plugins.get("ImageUtils"),o=e.plugins.get("ImageCaptionUtils"),r=e.t;e.conversion.for("upcast").elementToElement({view:s=>o.matchImageCaptionViewElement(s),model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(s,{writer:a})=>n.isBlockImage(s.parent)?a.createContainerElement("figcaption"):null}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(s,{writer:a})=>{if(!n.isBlockImage(s.parent))return null;const c=a.createEditableElement("figcaption");a.setCustomProperty("imageCaption",!0,c),c.placeholder=r("Enter image caption"),Dd({view:t,element:c,keepOnFocus:!0});const l=s.parent.getAttribute("alt");return jm(c,a,{label:l?r("Caption for image: %0",[l]):r("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const e=this.editor,t=e.plugins.get("ImageUtils"),n=e.plugins.get("ImageCaptionUtils"),o=e.commands.get("imageTypeInline"),r=e.commands.get("imageTypeBlock"),s=a=>{if(!a.return)return;const{oldElement:c,newElement:l}=a.return;if(!c)return;if(t.isBlockImage(c)){const u=n.getCaptionFromImageModelElement(c);if(u)return void this._saveCaption(l,u)}const d=this._getSavedCaption(c);d&&this._saveCaption(l,d)};o&&this.listenTo(o,"execute",s,{priority:"low"}),r&&this.listenTo(r,"execute",s,{priority:"low"})}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?Te.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}_registerCaptionReconversion(){const e=this.editor,t=e.model,n=e.plugins.get("ImageUtils"),o=e.plugins.get("ImageCaptionUtils");t.document.on("change:data",()=>{const r=t.document.differ.getChanges();for(const s of r){if(s.attributeKey!=="alt")continue;const a=s.range.start.nodeAfter;if(n.isBlockImage(a)){const c=o.getCaptionFromImageModelElement(a);if(!c)return;e.editing.reconvertItem(c)}}})}}class vD extends G{static get requires(){return[df]}static get pluginName(){return"ImageCaptionUI"}init(){const e=this.editor,t=e.editing.view,n=e.plugins.get("ImageCaptionUtils"),o=e.t;e.ui.componentFactory.add("toggleImageCaption",r=>{const s=e.commands.get("toggleImageCaption"),a=new Ae(r);return a.set({icon:oe.caption,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(s,"value","isEnabled"),a.bind("label").to(s,"value",c=>o(c?"Toggle caption off":"Toggle caption on")),this.listenTo(a,"execute",()=>{e.execute("toggleImageCaption",{focusCaptionOnShow:!0});const c=n.getCaptionFromModelSelection(e.model.document.selection);if(c){const l=e.editing.mapper.toViewElement(c);t.scrollToTheSelection(),t.change(d=>{d.addClass("image__caption_highlighted",l)})}e.editing.view.focus()}),a})}}var uf=I(5247),yD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(uf.A,yD),uf.A.locals;function hf(i){const e=i.map(t=>t.replace("+","\\+"));return new RegExp(`^image\\/(${e.join("|")})$`)}function xD(i){return new Promise((e,t)=>{const n=i.getAttribute("src");fetch(n).then(o=>o.blob()).then(o=>{const r=gf(o,n),s=r.replace("image/",""),a=new File([o],`image.${s}`,{type:r});e(a)}).catch(o=>o&&o.name==="TypeError"?function(r){return function(s){return new Promise((a,c)=>{const l=w.document.createElement("img");l.addEventListener("load",()=>{const d=w.document.createElement("canvas");d.width=l.width,d.height=l.height,d.getContext("2d").drawImage(l,0,0),d.toBlob(u=>u?a(u):c())}),l.addEventListener("error",()=>c()),l.src=s})}(r).then(s=>{const a=gf(s,r),c=a.replace("image/","");return new File([s],`image.${c}`,{type:a})})}(n).then(e).catch(t):t(o))})}function gf(i,e){return i.type?i.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class DD extends G{static get pluginName(){return"ImageUploadUI"}init(){const e=this.editor,t=e.t,n=()=>{const o=this._createButton(Nh);return o.set({label:t("Upload image from computer"),tooltip:!0}),o};if(e.ui.componentFactory.add("uploadImage",n),e.ui.componentFactory.add("imageUpload",n),e.ui.componentFactory.add("menuBar:uploadImage",()=>{const o=this._createButton(tm);return o.label=t("Image from computer"),o}),e.plugins.has("ImageInsertUI")){const o=e.plugins.get("ImageInsertUI");o.registerIntegration({name:"upload",observable:()=>e.commands.get("uploadImage"),buttonViewCreator:()=>{const r=e.ui.componentFactory.create("uploadImage");return r.bind("label").to(o,"isImageSelected",s=>t(s?"Replace image from computer":"Upload image from computer")),r},formViewCreator:()=>{const r=e.ui.componentFactory.create("uploadImage");return r.withText=!0,r.bind("label").to(o,"isImageSelected",s=>t(s?"Replace from computer":"Upload from computer")),r.on("execute",()=>{o.dropdownView.isOpen=!1}),r}})}}_createButton(e){const t=this.editor,n=t.locale,o=t.commands.get("uploadImage"),r=t.config.get("image.upload.types"),s=hf(r),a=new e(t.locale),c=n.t;return a.set({acceptedType:r.map(l=>`image/${l}`).join(","),allowMultipleFiles:!0,label:c("Upload image from computer"),icon:oe.imageUpload}),a.bind("isEnabled").to(o),a.on("done",(l,d)=>{const u=Array.from(d).filter(h=>s.test(h.type));u.length&&(t.execute("uploadImage",{file:u}),t.editing.view.focus())}),a}}var mf=I(2267),ED={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(mf.A,ED),mf.A.locals;var pf=I(7693),TD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(pf.A,TD),pf.A.locals;var ff=I(1559),MD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(ff.A,MD),ff.A.locals;class ID extends G{constructor(e){super(e),this.uploadStatusChange=(t,n,o)=>{const r=this.editor,s=n.item,a=s.getAttribute("uploadId");if(!o.consumable.consume(n.item,t.name))return;const c=r.plugins.get("ImageUtils"),l=r.plugins.get(Jt),d=a?n.attributeNewValue:null,u=this.placeholder,h=r.editing.mapper.toViewElement(s),m=o.writer;if(d=="reading")return kf(h,m),void bf(c,u,h,m);if(d=="uploading"){const k=l.loaders.get(a);return kf(h,m),void(k?(wf(h,m),function(A,E,S,O){const z=function(H){const Q=H.createUIElement("div",{class:"ck-progress-bar"});return H.setCustomProperty("progressBar",!0,Q),Q}(E);E.insert(E.createPositionAt(A,"end"),z),S.on("change:uploadedPercent",(H,Q,ne)=>{O.change(se=>{se.setStyle("width",ne+"%",z)})})}(h,m,k,r.editing.view),function(A,E,S,O){if(O.data){const z=A.findViewImgElement(E);S.setAttribute("src",O.data,z)}}(c,h,m,k)):bf(c,u,h,m))}d=="complete"&&l.loaders.get(a)&&function(k,A,E){const S=A.createUIElement("div",{class:"ck-image-upload-complete-icon"});A.insert(A.createPositionAt(k,"end"),S),setTimeout(()=>{E.change(O=>O.remove(O.createRangeOn(S)))},3e3)}(h,m,r.editing.view),function(k,A){Af(k,A,"progressBar")}(h,m),wf(h,m),function(k,A){A.removeClass("ck-appear",k)}(h,m)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const e=this.editor;e.plugins.has("ImageBlockEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),e.plugins.has("ImageInlineEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function kf(i,e){i.hasClass("ck-appear")||e.addClass("ck-appear",i)}function bf(i,e,t,n){t.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",t);const o=i.findViewImgElement(t);o.getAttribute("src")!==e&&n.setAttribute("src",e,o),_f(t,"placeholder")||n.insert(n.createPositionAfter(o),function(r){const s=r.createUIElement("div",{class:"ck-upload-placeholder-loader"});return r.setCustomProperty("placeholder",!0,s),s}(n))}function wf(i,e){i.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",i),Af(i,e,"placeholder")}function _f(i,e){for(const t of i.getChildren())if(t.getCustomProperty(e))return t}function Af(i,e,t){const n=_f(i,t);n&&e.remove(e.createRangeOn(n))}var SD=Object.defineProperty,BD=Object.defineProperties,ND=Object.getOwnPropertyDescriptors,Cf=Object.getOwnPropertySymbols,OD=Object.prototype.hasOwnProperty,PD=Object.prototype.propertyIsEnumerable,vf=(i,e,t)=>e in i?SD(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;class LD extends de{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils"),n=e.model.document.selection.getSelectedElement();this.isEnabled=t.isImageAllowed()||t.isImage(n)}execute(e){const t=Oe(e.file),n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(n.getAttributes());t.forEach((s,a)=>{const c=n.getSelectedElement();if(a&&c&&o.isImage(c)){const l=this.editor.model.createPositionAfter(c);this._uploadImage(s,r,l)}else this._uploadImage(s,r)})}_uploadImage(e,t,n){const o=this.editor,r=o.plugins.get(Jt).createLoader(e),s=o.plugins.get("ImageUtils");var a,c;r&&s.insertImage((a=((l,d)=>{for(var u in d||(d={}))OD.call(d,u)&&vf(l,u,d[u]);if(Cf)for(var u of Cf(d))PD.call(d,u)&&vf(l,u,d[u]);return l})({},t),c={uploadId:r.id},BD(a,ND(c))),n)}}class zD extends G{constructor(e){super(e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[Jt,$a,Ft,At]}static get pluginName(){return"ImageUploadEditing"}init(){const e=this.editor,t=e.model.document,n=e.conversion,o=e.plugins.get(Jt),r=e.plugins.get("ImageUtils"),s=e.plugins.get("ClipboardPipeline"),a=hf(e.config.get("image.upload.types")),c=new LD(e);e.commands.add("uploadImage",c),e.commands.add("imageUpload",c),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",(l,d)=>{if(u=d.dataTransfer,Array.from(u.types).includes("text/html")&&u.getData("text/html")!=="")return;var u;const h=Array.from(d.dataTransfer.files).filter(m=>!!m&&a.test(m.type));h.length&&(l.stop(),e.model.change(m=>{d.targetRanges&&m.setSelection(d.targetRanges.map(k=>e.editing.mapper.toModelRange(k))),e.execute("uploadImage",{file:h})}))}),this.listenTo(s,"inputTransformation",(l,d)=>{const u=Array.from(e.editing.view.createRangeIn(d.content)).map(m=>m.item).filter(m=>function(k,A){return!(!k.isInlineImageView(A)||!A.getAttribute("src")||!A.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!A.getAttribute("src").match(/^blob:/g))}(r,m)&&!m.getAttribute("uploadProcessed")).map(m=>({promise:xD(m),imageElement:m}));if(!u.length)return;const h=new fn(e.editing.view.document);for(const m of u){h.setAttribute("uploadProcessed",!0,m.imageElement);const k=o.createLoader(m.promise);k&&(h.setAttribute("src","",m.imageElement),h.setAttribute("uploadId",k.id,m.imageElement))}}),e.editing.view.document.on("dragover",(l,d)=>{d.preventDefault()}),t.on("change",()=>{const l=t.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),d=new Set;for(const u of l)if(u.type=="insert"&&u.name!="$text"){const h=u.position.nodeAfter,m=u.position.root.rootName=="$graveyard";for(const k of RD(e,h)){const A=k.getAttribute("uploadId");if(!A)continue;const E=o.loaders.get(A);E&&(m?d.has(A)||E.abort():(d.add(A),this._uploadImageElements.set(A,k),E.status=="idle"&&this._readAndUpload(E)))}}}),this.on("uploadComplete",(l,{imageElement:d,data:u})=>{const h=u.urls?u.urls:u;this.editor.model.change(m=>{m.setAttribute("src",h.default,d),this._parseAndSetSrcsetAttributeOnImage(h,d,m),r.setImageNaturalSizeAttributes(d)})},{priority:"low"})}afterInit(){const e=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&e.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(e){const t=this.editor,n=t.model,o=t.locale.t,r=t.plugins.get(Jt),s=t.plugins.get($a),a=t.plugins.get("ImageUtils"),c=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},d=>{d.setAttribute("uploadStatus","reading",c.get(e.id))}),e.read().then(()=>{const d=e.upload(),u=c.get(e.id);if(x.isSafari){const h=t.editing.mapper.toViewElement(u),m=a.findViewImgElement(h);t.editing.view.once("render",()=>{if(!m.parent)return;const k=t.editing.view.domConverter.mapViewToDom(m.parent);if(!k)return;const A=k.style.display;k.style.display="none",k._ckHack=k.offsetHeight,k.style.display=A})}return t.ui&&t.ui.ariaLiveAnnouncer.announce(o("Uploading image")),n.enqueueChange({isUndoable:!1},h=>{h.setAttribute("uploadStatus","uploading",u)}),d}).then(d=>{n.enqueueChange({isUndoable:!1},u=>{const h=c.get(e.id);u.setAttribute("uploadStatus","complete",h),t.ui&&t.ui.ariaLiveAnnouncer.announce(o("Image upload complete")),this.fire("uploadComplete",{data:d,imageElement:h})}),l()}).catch(d=>{if(t.ui&&t.ui.ariaLiveAnnouncer.announce(o("Error during image upload")),e.status!=="error"&&e.status!=="aborted")throw d;e.status=="error"&&d&&s.showWarning(d,{title:o("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},u=>{u.remove(c.get(e.id))}),l()});function l(){n.enqueueChange({isUndoable:!1},d=>{const u=c.get(e.id);d.removeAttribute("uploadId",u),d.removeAttribute("uploadStatus",u),c.delete(e.id)}),r.destroyLoader(e)}}_parseAndSetSrcsetAttributeOnImage(e,t,n){let o=0;const r=Object.keys(e).filter(s=>{const a=parseInt(s,10);if(!isNaN(a))return o=Math.max(o,a),!0}).map(s=>`${e[s]} ${s}w`).join(", ");if(r!=""){const s={srcset:r};t.hasAttribute("width")||t.hasAttribute("height")||(s.width=o),n.setAttributes(s,t)}}}function RD(i,e){const t=i.plugins.get("ImageUtils");return Array.from(i.model.createRangeOn(e)).filter(n=>t.isImage(n.item)).map(n=>n.item)}var yf=I(4642),jD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(yf.A,jD),yf.A.locals;var xf=I(3469),FD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(xf.A,FD),xf.A.locals;class VD extends de{constructor(e,t){super(e),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(t.map(n=>{if(n.isDefault)for(const o of n.modelElements)this._defaultStyles[o]=n.name;return[n.name,n]}))}refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled?e.hasAttribute("imageStyle")?this.value=e.getAttribute("imageStyle"):this.value=this._defaultStyles[e.name]:this.value=!1}execute(e={}){const t=this.editor,n=t.model,o=t.plugins.get("ImageUtils");n.change(r=>{const s=e.value,{setImageSizes:a=!0}=e;let c=o.getClosestSelectedImageElement(n.document.selection);s&&this.shouldConvertImageType(s,c)&&(this.editor.execute(o.isBlockImage(c)?"imageTypeInline":"imageTypeBlock",{setImageSizes:a}),c=o.getClosestSelectedImageElement(n.document.selection)),!s||this._styles.get(s).isDefault?r.removeAttribute("imageStyle",c):r.setAttribute("imageStyle",s,c),a&&o.setImageNaturalSizeAttributes(c)})}shouldConvertImageType(e,t){return!this._styles.get(e).modelElements.includes(t.name)}}var HD=Object.defineProperty,Df=Object.getOwnPropertySymbols,UD=Object.prototype.hasOwnProperty,WD=Object.prototype.propertyIsEnumerable,Ef=(i,e,t)=>e in i?HD(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Tf=(i,e)=>{for(var t in e||(e={}))UD.call(e,t)&&Ef(i,t,e[t]);if(Df)for(var t of Df(e))WD.call(e,t)&&Ef(i,t,e[t]);return i};const{objectFullWidth:qD,objectInline:Mf,objectLeft:If,objectRight:hc,objectCenter:gc,objectBlockLeft:Sf,objectBlockRight:Bf}=oe,gs={get inline(){return{name:"inline",title:"In line",icon:Mf,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:If,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Sf,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:gc,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:hc,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Bf,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:gc,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:hc,modelElements:["imageBlock"],className:"image-style-side"}}},Nf={full:qD,left:Sf,right:Bf,center:gc,inlineLeft:If,inlineRight:hc,inline:Mf},Of=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function Pf(i){X("image-style-configuration-definition-invalid",i)}const mc={normalizeStyles:function(i){return(i.configuredStyles.options||[]).map(e=>function(t){return t=typeof t=="string"?gs[t]?Tf({},gs[t]):{name:t}:function(n,o){const r=Tf({},o);for(const s in n)Object.prototype.hasOwnProperty.call(o,s)||(r[s]=n[s]);return r}(gs[t.name],t),typeof t.icon=="string"&&(t.icon=Nf[t.icon]||t.icon),t}(e)).filter(e=>function(t,{isBlockPluginLoaded:n,isInlinePluginLoaded:o}){const{modelElements:r,name:s}=t;if(!(r&&r.length&&s))return Pf({style:t}),!1;{const a=[n?"imageBlock":null,o?"imageInline":null];if(!r.some(c=>a.includes(c)))return X("image-style-missing-dependency",{style:t,missingPlugins:r.map(c=>c==="imageBlock"?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(e,i))},getDefaultStylesConfiguration:function(i,e){return i&&e?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:i?{options:["block","side"]}:e?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(i){return i.has("ImageBlockEditing")&&i.has("ImageInlineEditing")?[...Of]:[]},warnInvalidStyle:Pf,DEFAULT_OPTIONS:gs,DEFAULT_ICONS:Nf,DEFAULT_DROPDOWN_DEFINITIONS:Of};function Lf(i,e){for(const t of e)if(t.name===i)return t}class zf extends G{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[At]}init(){const{normalizeStyles:e,getDefaultStylesConfiguration:t}=mc,n=this.editor,o=n.plugins.has("ImageBlockEditing"),r=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",t(o,r)),this.normalizedStyles=e({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:o,isInlinePluginLoaded:r}),this._setupConversion(o,r),this._setupPostFixer(),n.commands.add("imageStyle",new VD(n,this.normalizedStyles))}_setupConversion(e,t){const n=this.editor,o=n.model.schema,r=(s=this.normalizedStyles,(c,l,d)=>{if(!d.consumable.consume(l.item,c.name))return;const u=Lf(l.attributeNewValue,s),h=Lf(l.attributeOldValue,s),m=d.mapper.toViewElement(l.item),k=d.writer;h&&k.removeClass(h.className,m),u&&k.addClass(u.className,m)});var s;const a=function(c){const l={imageInline:c.filter(d=>!d.isDefault&&d.modelElements.includes("imageInline")),imageBlock:c.filter(d=>!d.isDefault&&d.modelElements.includes("imageBlock"))};return(d,u,h)=>{if(!u.modelRange)return;const m=u.viewItem,k=at(u.modelRange.getItems());if(k&&h.schema.checkAttribute(k,"imageStyle"))for(const A of l[k.name])h.consumable.consume(m,{classes:A.className})&&h.writer.setAttribute("imageStyle",A.name,k)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",r),n.data.downcastDispatcher.on("attribute:imageStyle",r),e&&(o.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",a,{priority:"low"})),t&&(o.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",a,{priority:"low"}))}_setupPostFixer(){const e=this.editor,t=e.model.document,n=e.plugins.get(At),o=new Map(this.normalizedStyles.map(r=>[r.name,r]));t.registerPostFixer(r=>{let s=!1;for(const a of t.differ.getChanges())if(a.type=="insert"||a.type=="attribute"&&a.attributeKey=="imageStyle"){let c=a.type=="insert"?a.position.nodeAfter:a.range.start.nodeAfter;if(c&&c.is("element","paragraph")&&c.childCount>0&&(c=c.getChild(0)),!n.isImage(c))continue;const l=c.getAttribute("imageStyle");if(!l)continue;const d=o.get(l);d&&d.modelElements.includes(c.name)||(r.removeAttribute("imageStyle",c),s=!0)}return s})}}var Rf=I(6386),GD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Rf.A,GD),Rf.A.locals;class $D extends G{static get requires(){return[zf]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const e=this.editor.t;return{"Wrap text":e("Wrap text"),"Break text":e("Break text"),"In line":e("In line"),"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}init(){const e=this.editor.plugins,t=this.editor.config.get("image.toolbar")||[],n=jf(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const r of n)this._createButton(r);const o=jf([...t.filter(he),...mc.getDefaultDropdownDefinitions(e)],this.localizedDefaultStylesTitles);for(const r of o)this._createDropdown(r,n)}_createDropdown(e,t){const n=this.editor.ui.componentFactory;n.add(e.name,o=>{let r;const{defaultItem:s,items:a,title:c}=e,l=a.filter(m=>t.find(({name:k})=>Ff(k)===m)).map(m=>{const k=n.create(m);return m===s&&(r=k),k});a.length!==l.length&&mc.warnInvalidStyle({dropdown:e});const d=bn(o,Hr),u=d.buttonView,h=u.arrowView;return Ha(d,l,{enableActiveItemFocusOnDropdownOpen:!0}),u.set({label:Vf(c,r.label),class:null,tooltip:!0}),h.unbind("label"),h.set({label:c}),u.bind("icon").toMany(l,"isOn",(...m)=>{const k=m.findIndex(In);return k<0?r.icon:l[k].icon}),u.bind("label").toMany(l,"isOn",(...m)=>{const k=m.findIndex(In);return Vf(c,k<0?r.label:l[k].label)}),u.bind("isOn").toMany(l,"isOn",(...m)=>m.some(In)),u.bind("class").toMany(l,"isOn",(...m)=>m.some(In)?"ck-splitbutton_flatten":void 0),u.on("execute",()=>{l.some(({isOn:m})=>m)?d.isOpen=!d.isOpen:r.fire("execute")}),d.bind("isEnabled").toMany(l,"isEnabled",(...m)=>m.some(In)),this.listenTo(d,"execute",()=>{this.editor.editing.view.focus()}),d})}_createButton(e){const t=e.name;this.editor.ui.componentFactory.add(Ff(t),n=>{const o=this.editor.commands.get("imageStyle"),r=new Ae(n);return r.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),r.bind("isEnabled").to(o,"isEnabled"),r.bind("isOn").to(o,"value",s=>s===t),r.on("execute",this._executeCommand.bind(this,t)),r})}_executeCommand(e){this.editor.execute("imageStyle",{value:e}),this.editor.editing.view.focus()}}function jf(i,e){for(const t of i)e[t.title]&&(t.title=e[t.title]);return i}function Ff(i){return`imageStyle:${i}`}function Vf(i,e){return(i?i+": ":"")+e}class KD extends G{static get pluginName(){return"IndentEditing"}init(){const e=this.editor;e.commands.add("indent",new _d(e)),e.commands.add("outdent",new _d(e))}}class YD extends G{static get pluginName(){return"IndentUI"}init(){const e=this.editor,t=e.locale,n=e.t,o=t.uiLanguageDirection=="ltr"?oe.indent:oe.outdent,r=t.uiLanguageDirection=="ltr"?oe.outdent:oe.indent;this._defineButton("indent",n("Increase indent"),o),this._defineButton("outdent",n("Decrease indent"),r)}_defineButton(e,t,n){const o=this.editor;o.ui.componentFactory.add(e,()=>{const r=this._createButton(Ae,e,t,n);return r.set({tooltip:!0}),r}),o.ui.componentFactory.add("menuBar:"+e,()=>this._createButton(It,e,t,n))}_createButton(e,t,n,o){const r=this.editor,s=r.commands.get(t),a=new e(r.locale);return a.set({label:n,icon:o}),a.bind("isEnabled").to(s,"isEnabled"),this.listenTo(a,"execute",()=>{r.execute(t),r.editing.view.focus()}),a}}class QD{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(e){Array.isArray(e)?e.forEach(t=>this._definitions.add(t)):this._definitions.add(e)}getDispatcher(){return e=>{e.on("attribute:linkHref",(t,n,o)=>{if(!o.consumable.test(n.item,"attribute:linkHref")||!n.item.is("selection")&&!o.schema.isInline(n.item))return;const r=o.writer,s=r.document.selection;for(const a of this._definitions){const c=r.createAttributeElement("a",a.attributes,{priority:5});a.classes&&r.addClass(a.classes,c);for(const l in a.styles)r.setStyle(l,a.styles[l],c);r.setCustomProperty("link",!0,c),a.callback(n.attributeNewValue)?n.item.is("selection")?r.wrap(s.getFirstRange(),c):r.wrap(o.mapper.toViewRange(n.range),c):r.unwrap(o.mapper.toViewRange(n.range),c)}},{priority:"high"})}}getDispatcherForLinkedImage(){return e=>{e.on("attribute:linkHref:imageBlock",(t,n,{writer:o,mapper:r})=>{const s=r.toViewElement(n.item),a=Array.from(s.getChildren()).find(c=>c.is("element","a"));for(const c of this._definitions){const l=sn(c.attributes);if(c.callback(n.attributeNewValue)){for(const[d,u]of l)d==="class"?o.addClass(u,a):o.setAttribute(d,u,a);c.classes&&o.addClass(c.classes,a);for(const d in c.styles)o.setStyle(d,c.styles[d],a)}else{for(const[d,u]of l)d==="class"?o.removeClass(u,a):o.removeAttribute(d,a);c.classes&&o.removeClass(c.classes,a);for(const d in c.styles)o.removeStyle(d,a)}}})}}}const ZD=function(i,e,t){var n=i.length;return t=t===void 0?n:t,!e&&t>=n?i:Bd(i,e,t)};var JD=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Hf=function(i){return JD.test(i)},XD=function(i){return i.split("")};var Uf="\\ud800-\\udfff",eE="["+Uf+"]",pc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",fc="\\ud83c[\\udffb-\\udfff]",Wf="[^"+Uf+"]",qf="(?:\\ud83c[\\udde6-\\uddff]){2}",Gf="[\\ud800-\\udbff][\\udc00-\\udfff]",$f="(?:"+pc+"|"+fc+")?",Kf="[\\ufe0e\\ufe0f]?",tE=Kf+$f+("(?:\\u200d(?:"+[Wf,qf,Gf].join("|")+")"+Kf+$f+")*"),nE="(?:"+[Wf+pc+"?",pc,qf,Gf,eE].join("|")+")",iE=RegExp(fc+"(?="+fc+")|"+nE+tE,"g");const oE=function(i){return i.match(iE)||[]},rE=function(i){return Hf(i)?oE(i):XD(i)},sE=function(i){return function(e){e=ra(e);var t=Hf(e)?rE(e):void 0,n=t?t[0]:e.charAt(0),o=t?ZD(t,1).join(""):e.slice(1);return n[i]()+o}}("toUpperCase"),aE=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,cE=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,lE=/^((\w+:(\/{2,})?)|(\W))/i,dE=["https?","ftps?","mailto"],ms="Ctrl+K";function Yf(i,{writer:e}){const t=e.createAttributeElement("a",{href:i},{priority:5});return e.setCustomProperty("link",!0,t),t}function Qf(i,e=dE){const t=String(i),n=e.join("|");return function(o,r){return!!o.replace(aE,"").match(r)}(t,new RegExp(`${"^(?:(?:<protocols>):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))".replace("<protocols>",n)}`,"i"))?t:"#"}function kc(i,e){return!!i&&e.checkAttribute(i.name,"linkHref")}function bc(i,e){const t=(n=i,cE.test(n)?"mailto:":e);var n;const o=!!t&&!Zf(i);return i&&o?t+i:i}function Zf(i){return lE.test(i)}function Jf(i){window.open(i,"_blank","noopener")}class uE extends de{constructor(){super(...arguments),this.manualDecorators=new qt,this.automaticDecorators=new QD}restoreManualDecoratorStates(){for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){const e=this.editor.model,t=e.document.selection,n=t.getSelectedElement()||at(t.getSelectedBlocks());kc(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref"));for(const o of this.manualDecorators)o.value=this._getDecoratorStateFromModel(o.id)}execute(e,t={}){const n=this.editor.model,o=n.document.selection,r=[],s=[];for(const a in t)t[a]?r.push(a):s.push(a);n.change(a=>{if(o.isCollapsed){const c=o.getFirstPosition();if(o.hasAttribute("linkHref")){const l=Xf(o);let d=es(c,"linkHref",o.getAttribute("linkHref"),n);o.getAttribute("linkHref")===l&&(d=this._updateLinkContent(n,a,d,e)),a.setAttribute("linkHref",e,d),r.forEach(u=>{a.setAttribute(u,!0,d)}),s.forEach(u=>{a.removeAttribute(u,d)}),a.setSelection(a.createPositionAfter(d.end.nodeBefore))}else if(e!==""){const l=sn(o.getAttributes());l.set("linkHref",e),r.forEach(u=>{l.set(u,!0)});const{end:d}=n.insertContent(a.createText(e,l),c);a.setSelection(d)}["linkHref",...r,...s].forEach(l=>{a.removeSelectionAttribute(l)})}else{const c=n.schema.getValidRanges(o.getRanges(),"linkHref"),l=[];for(const u of o.getSelectedBlocks())n.schema.checkAttribute(u,"linkHref")&&l.push(a.createRangeOn(u));const d=l.slice();for(const u of c)this._isRangeToUpdate(u,l)&&d.push(u);for(const u of d){let h=u;if(d.length===1){const m=Xf(o);o.getAttribute("linkHref")===m&&(h=this._updateLinkContent(n,a,u,e),a.setSelection(a.createSelection(h)))}a.setAttribute("linkHref",e,h),r.forEach(m=>{a.setAttribute(m,!0,h)}),s.forEach(m=>{a.removeAttribute(m,h)})}}})}_getDecoratorStateFromModel(e){const t=this.editor.model,n=t.document.selection,o=n.getSelectedElement();return kc(o,t.schema)?o.getAttribute(e):n.getAttribute(e)}_isRangeToUpdate(e,t){for(const n of t)if(n.containsRange(e))return!1;return!0}_updateLinkContent(e,t,n,o){const r=t.createText(o,{linkHref:o});return e.insertContent(r,n)}}function Xf(i){if(i.isCollapsed){const e=i.getFirstPosition();return e.textNode&&e.textNode.data}{const e=Array.from(i.getFirstRange().getItems());if(e.length>1)return null;const t=e[0];return t.is("$text")||t.is("$textProxy")?t.data:null}}class hE extends de{refresh(){const e=this.editor.model,t=e.document.selection,n=t.getSelectedElement();kc(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")}execute(){const e=this.editor,t=this.editor.model,n=t.document.selection,o=e.commands.get("link");t.change(r=>{const s=n.isCollapsed?[es(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),t)]:t.schema.getValidRanges(n.getRanges(),"linkHref");for(const a of s)if(r.removeAttribute("linkHref",a),o)for(const c of o.manualDecorators)r.removeAttribute(c.id,a)})}}class gE extends xe(){constructor({id:e,label:t,attributes:n,classes:o,styles:r,defaultValue:s}){super(),this.id=e,this.set("value",void 0),this.defaultValue=s,this.label=t,this.attributes=n,this.classes=o,this.styles=r}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var ek=I(7719),mE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(ek.A,mE),ek.A.locals;var pE=Object.defineProperty,tk=Object.getOwnPropertySymbols,fE=Object.prototype.hasOwnProperty,kE=Object.prototype.propertyIsEnumerable,nk=(i,e,t)=>e in i?pE(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,bE=(i,e)=>{for(var t in e||(e={}))fE.call(e,t)&&nk(i,t,e[t]);if(tk)for(var t of tk(e))kE.call(e,t)&&nk(i,t,e[t]);return i};const ik="automatic",wE=/^(https?:)?\/\//;class ok extends G{static get pluginName(){return"LinkEditing"}static get requires(){return[Tm,Am,Ft]}constructor(e){super(e),e.config.define("link",{allowCreatingEmptyLinks:!1,addTargetToExternalLinks:!1})}init(){const e=this.editor,t=this.editor.config.get("link.allowedProtocols");e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Yf}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(o,r)=>Yf(Qf(o,t),r)}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:o=>o.getAttribute("href")}}),e.commands.add("link",new uE(e)),e.commands.add("unlink",new hE(e));const n=function(o,r){const s={"Open in a new tab":o("Open in a new tab"),Downloadable:o("Downloadable")};return r.forEach(a=>("label"in a&&s[a.label]&&(a.label=s[a.label]),a)),r}(e.t,function(o){const r=[];if(o)for(const[s,a]of Object.entries(o)){const c=Object.assign({},a,{id:`link${sE(s)}`});r.push(c)}return r}(e.config.get("link.decorators")));this._enableAutomaticDecorators(n.filter(o=>o.mode===ik)),this._enableManualDecorators(n.filter(o=>o.mode==="manual")),e.plugins.get(Tm).registerAttribute("linkHref"),function(o,r,s,a){const c=o.editing.view,l=new Set;c.document.registerPostFixer(d=>{const u=o.model.document.selection;let h=!1;if(u.hasAttribute(r)){const m=es(u.getFirstPosition(),r,u.getAttribute(r),o.model),k=o.editing.mapper.toViewRange(m);for(const A of k.getItems())A.is("element",s)&&!A.hasClass(a)&&(d.addClass(a,A),l.add(A),h=!0)}return h}),o.conversion.for("editingDowncast").add(d=>{function u(){c.change(h=>{for(const m of l.values())h.removeClass(a,m),l.delete(m)})}d.on("insert",u,{priority:"highest"}),d.on("remove",u,{priority:"highest"}),d.on("attribute",u,{priority:"highest"}),d.on("selection",u,{priority:"highest"})})}(e,"linkHref","a","ck-link_selected"),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(e){const t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:ik,callback:o=>!!o&&wE.test(o),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(e){if(!e.length)return;const t=this.editor,n=t.commands.get("link").manualDecorators;e.forEach(o=>{t.model.schema.extend("$text",{allowAttributes:o.id});const r=new gE(o);n.add(r),t.conversion.for("downcast").attributeToElement({model:r.id,view:(s,{writer:a,schema:c},{item:l})=>{if((l.is("selection")||c.isInline(l))&&s){const d=a.createAttributeElement("a",r.attributes,{priority:5});r.classes&&a.addClass(r.classes,d);for(const u in r.styles)a.setStyle(u,r.styles[u],d);return a.setCustomProperty("link",!0,d),d}}}),t.conversion.for("upcast").elementToAttribute({view:bE({name:"a"},r._createPattern()),model:{key:r.id}})})}_enableLinkOpen(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",(n,o)=>{if(!(x.isMac?o.domEvent.metaKey:o.domEvent.ctrlKey))return;let r=o.domTarget;if(r.tagName.toLowerCase()!="a"&&(r=r.closest("a")),!r)return;const s=r.getAttribute("href");s&&(n.stop(),o.preventDefault(),Jf(s))},{context:"$capture"}),this.listenTo(t,"keydown",(n,o)=>{const r=e.commands.get("link").value;r&&o.keyCode===ke.enter&&o.altKey&&(n.stop(),Jf(r))})}_enableSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection;this.listenTo(t,"change:attribute",(n,{attributeKeys:o})=>{o.includes("linkHref")&&!t.hasAttribute("linkHref")&&e.change(r=>{var s;(function(a,c){a.removeSelectionAttribute("linkHref");for(const l of c)a.removeSelectionAttribute(l)})(r,(s=e.schema,s.getDefinition("$text").allowAttributes.filter(a=>a.startsWith("link"))))})})}_enableClipboardIntegration(){const e=this.editor,t=e.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(e.plugins.get("ClipboardPipeline"),"contentInsertion",(o,r)=>{t.change(s=>{const a=s.createRangeIn(r.content);for(const c of a.getItems())if(c.hasAttribute("linkHref")){const l=bc(c.getAttribute("linkHref"),n);s.setAttribute("linkHref",l,c)}})})}}var rk=I(3817),_E={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(rk.A,_E),rk.A.locals;class AE extends te{constructor(e,t,n){super(e),this.focusTracker=new ct,this.keystrokes=new ft,this._focusables=new zt;const o=e.t;this._validators=n,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(o("Save"),oe.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(o("Cancel"),oe.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(t),this.children=this._createFormChildren(t.manualDecorators),this._focusCycler=new jt({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const r=["ck","ck-link-form","ck-responsive-form"];t.manualDecorators.length&&r.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:r,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((e,t)=>(e[t.name]=t.isOn,e),{})}render(){super.render(),br({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}isValid(){this.resetFormStatus();for(const e of this._validators){const t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null}_createUrlInput(){const e=this.locale.t,t=new Fr(this.locale,Ur);return t.label=e("Link URL"),t}_createButton(e,t,n,o){const r=new Ae(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),o&&r.delegate("execute").to(this,o),r}_createManualDecoratorSwitches(e){const t=this.createCollection();for(const n of e.manualDecorators){const o=new Rr(this.locale);o.set({name:n.id,label:n.label,withText:!0}),o.bind("isOn").toMany([n,e],"value",(r,s)=>s===void 0&&r===void 0?!!n.defaultValue:!!r),o.on("execute",()=>{n.set("value",!o.isOn)}),t.add(o)}return t}_createFormChildren(e){const t=this.createCollection();if(t.add(this.urlInputView),e.length){const n=new te;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(o=>({tag:"li",children:[o],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(n)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}get url(){const{element:e}=this.urlInputView.fieldView;return e?e.value.trim():null}}var sk=I(8762),CE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(sk.A,CE),sk.A.locals;class vE extends te{constructor(e,t={}){super(e),this.focusTracker=new ct,this.keystrokes=new ft,this._focusables=new zt;const n=e.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(n("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(n("Edit link"),oe.pencil,"edit"),this.set("href",void 0),this._linkConfig=t,this._focusCycler=new jt({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(e,t,n){const o=new Ae(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.delegate("execute").to(this,n),o}_createPreviewButton(){const e=new Ae(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",o=>o&&Qf(o,this._linkConfig.allowedProtocols)),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",o=>o||n("This link has no URL")),e.bind("isEnabled").to(this,"href",o=>!!o),e.template.tag="a",e.template.eventListeners={},e}}const un="link-ui";class yE extends G{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[Yr]}static get pluginName(){return"LinkUI"}init(){const e=this.editor,t=this.editor.t;e.editing.view.addObserver(kv),this._balloon=e.plugins.get(Yr),this._createToolbarLinkButton(),this._enableBalloonActivators(),e.conversion.for("editingDowncast").markerToHighlight({model:un,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:un,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Create link"),keystroke:ms},{label:t("Move out of a link"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const e=this.editor,t=new vE(e.locale,e.config.get("link")),n=e.commands.get("link"),o=e.commands.get("unlink");return t.bind("href").to(n,"value"),t.editButtonView.bind("isEnabled").to(n),t.unlinkButtonView.bind("isEnabled").to(o),this.listenTo(t,"edit",()=>{this._addFormView()}),this.listenTo(t,"unlink",()=>{e.execute("unlink"),this._hideUI()}),t.keystrokes.set("Esc",(r,s)=>{this._hideUI(),s()}),t.keystrokes.set(ms,(r,s)=>{this._addFormView(),s()}),t}_createFormView(){const e=this.editor,t=e.commands.get("link"),n=e.config.get("link.defaultProtocol"),o=new(ea(AE))(e.locale,t,function(r){const s=r.t,a=r.config.get("link.allowCreatingEmptyLinks");return[c=>{if(!a&&!c.url.length)return s("Link URL must not be empty.")}]}(e));return o.urlInputView.fieldView.bind("value").to(t,"value"),o.urlInputView.bind("isEnabled").to(t,"isEnabled"),o.saveButtonView.bind("isEnabled").to(t,"isEnabled"),this.listenTo(o,"submit",()=>{if(o.isValid()){const{value:r}=o.urlInputView.fieldView.element,s=bc(r,n);e.execute("link",s,o.getDecoratorSwitchesState()),this._closeFormView()}}),this.listenTo(o.urlInputView,"change:errorText",()=>{e.ui.update()}),this.listenTo(o,"cancel",()=>{this._closeFormView()}),o.keystrokes.set("Esc",(r,s)=>{this._closeFormView(),s()}),o}_createToolbarLinkButton(){const e=this.editor,t=e.commands.get("link");e.ui.componentFactory.add("link",()=>{const n=this._createButton(Ae);return n.set({tooltip:!0,isToggleable:!0}),n.bind("isOn").to(t,"value",o=>!!o),n}),e.ui.componentFactory.add("menuBar:link",()=>this._createButton(It))}_createButton(e){const t=this.editor,n=t.locale,o=t.commands.get("link"),r=new e(t.locale),s=n.t;return r.set({label:s("Link"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',keystroke:ms}),r.bind("isEnabled").to(o,"isEnabled"),this.listenTo(r,"execute",()=>this._showUI(!0)),r}_enableBalloonActivators(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),e.keystrokes.set(ms,(n,o)=>{o(),e.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(e,t)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),t())},{priority:"high"}),this.editor.keystrokes.set("Esc",(e,t)=>{this._isUIVisible&&(this._hideUI(),t())}),kr({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const e=this.editor.commands.get("link");this.formView.disableCssTransitions(),this.formView.resetFormStatus(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this.formView.urlInputView.fieldView.value=e.value||"",this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions()}_closeFormView(){const e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),e.value!==void 0?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this.formView.urlInputView.fieldView.reset(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(e=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const e=this.editor,t=e.editing.view.document;let n=this._getSelectedLinkElement(),o=s();const r=()=>{const a=this._getSelectedLinkElement(),c=s();n&&!a||!n&&c!==o?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=a,o=c};function s(){return t.selection.focus.getAncestors().reverse().find(a=>a.is("element"))}this.listenTo(e.ui,"update",r),this.listenTo(this._balloon,"change:visibleView",r)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){const e=this._balloon.visibleView;return!!this.formView&&e==this.formView||this._areActionsVisible}_getBalloonPositionData(){const e=this.editor.editing.view,t=this.editor.model,n=e.document;let o;if(t.markers.has(un)){const r=Array.from(this.editor.editing.mapper.markerNameToElements(un)),s=e.createRange(e.createPositionBefore(r[0]),e.createPositionAfter(r[r.length-1]));o=e.domConverter.viewRangeToDom(s)}else o=()=>{const r=this._getSelectedLinkElement();return r?e.domConverter.mapViewToDom(r):e.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:o}}_getSelectedLinkElement(){const e=this.editor.editing.view,t=e.document.selection,n=t.getSelectedElement();if(t.isCollapsed||n&&et(n))return wc(t.getFirstPosition());{const o=t.getFirstRange().getTrimmed(),r=wc(o.start),s=wc(o.end);return r&&r==s&&e.createRangeIn(r).getTrimmed().isEqual(o)?r:null}}_showFakeVisualSelection(){const e=this.editor.model;e.change(t=>{const n=e.document.selection.getFirstRange();if(e.markers.has(un))t.updateMarker(un,{range:n});else if(n.start.isAtEnd){const o=n.start.getLastMatchingPosition(({item:r})=>!e.schema.isContent(r),{boundaries:n});t.addMarker(un,{usingOperation:!1,affectsData:!1,range:t.createRange(o,n.end)})}else t.addMarker(un,{usingOperation:!1,affectsData:!1,range:n})})}_hideFakeVisualSelection(){const e=this.editor.model;e.markers.has(un)&&e.change(t=>{t.removeMarker(un)})}}function wc(i){return i.getAncestors().find(e=>{return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t})||null}const ak=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class xE extends G{static get requires(){return[_n,ok]}static get pluginName(){return"AutoLink"}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(e,t){return t.textNode&&t.textNode.hasAttribute("linkHref")?es(t,"linkHref",t.textNode.getAttribute("linkHref"),e):null}_selectEntireLinks(e,t){const n=this.editor.model,o=n.document.selection,r=o.getFirstPosition(),s=o.getLastPosition();let a=t.getJoined(this._expandLinkRange(n,r)||t);a&&(a=a.getJoined(this._expandLinkRange(n,s)||t)),a&&(a.start.isBefore(r)||a.end.isAfter(s))&&e.setSelection(a)}_enablePasteLinking(){const e=this.editor,t=e.model,n=t.document.selection,o=e.plugins.get("ClipboardPipeline"),r=e.commands.get("link");o.on("inputTransformation",(s,a)=>{if(!this.isEnabled||!r.isEnabled||n.isCollapsed||a.method!=="paste"||n.rangeCount>1)return;const c=n.getFirstRange(),l=a.dataTransfer.getData("text/plain");if(!l)return;const d=l.match(ak);d&&d[2]===l&&(t.change(u=>{this._selectEntireLinks(u,c),r.execute(l)}),s.stop())},{priority:"high"})}_enableTypingHandling(){const e=this.editor,t=new Em(e.model,n=>{if(!function(r){return r.length>4&&r[r.length-1]===" "&&r[r.length-2]!==" "}(n))return;const o=ck(n.substr(0,n.length-1));return o?{url:o}:void 0});t.on("matched:data",(n,o)=>{const{batch:r,range:s,url:a}=o;if(!r.isTyping)return;const c=s.end.getShiftedBy(-1),l=c.getShiftedBy(-a.length),d=e.model.createRange(l,c);this._applyAutoLink(a,d)}),t.bind("isEnabled").to(this)}_enableEnterHandling(){const e=this.editor,t=e.model,n=e.commands.get("enter");n&&n.on("execute",()=>{const o=t.document.selection.getFirstPosition();if(!o.parent.previousSibling)return;const r=t.createRangeIn(o.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(r)})}_enableShiftEnterHandling(){const e=this.editor,t=e.model,n=e.commands.get("shiftEnter");n&&n.on("execute",()=>{const o=t.document.selection.getFirstPosition(),r=t.createRange(t.createPositionAt(o.parent,0),o.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(r)})}_checkAndApplyAutoLinkOnRange(e){const t=this.editor.model,{text:n,range:o}=Dm(e,t),r=ck(n);if(r){const s=t.createRange(o.end.getShiftedBy(-r.length),o.end);this._applyAutoLink(r,s)}}_applyAutoLink(e,t){const n=this.editor.model,o=bc(e,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(r,s){return s.schema.checkAttributeInSelection(s.createSelection(r),"linkHref")}(t,n)&&Zf(o)&&!function(r){const s=r.start.nodeAfter;return!!s&&s.hasAttribute("linkHref")}(t)&&this._persistAutoLink(o,t)}_persistAutoLink(e,t){const n=this.editor.model,o=this.editor.plugins.get("Delete");n.enqueueChange(r=>{r.setAttribute("linkHref",e,t),n.enqueueChange(()=>{o.requestUndoOnBackspace()})})}}function ck(i){const e=ak.exec(i);return e?e[2]:null}var lk=I(4808),DE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(lk.A,DE),lk.A.locals;class Ht{constructor(e,t){this._startElement=e,this._referenceIndent=e.getAttribute("listIndent"),this._isForward=t.direction=="forward",this._includeSelf=!!t.includeSelf,this._sameAttributes=Oe(t.sameAttributes||[]),this._sameIndent=!!t.sameIndent,this._lowerIndent=!!t.lowerIndent,this._higherIndent=!!t.higherIndent}static first(e,t){return at(new this(e,t)[Symbol.iterator]())}*[Symbol.iterator](){const e=[];for(const{node:t}of Fo(this._getStartNode(),this._isForward?"forward":"backward")){const n=t.getAttribute("listIndent");if(n<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=n}else if(n>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){e.push(t);continue}}else{if(!this._sameIndent){if(this._higherIndent){e.length&&(yield*e,e.length=0);break}continue}if(this._sameAttributes.some(o=>t.getAttribute(o)!==this._startElement.getAttribute(o)))break}e.length&&(yield*e,e.length=0),yield t}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}function*Fo(i,e="forward"){const t=e=="forward",n=[];let o=null;for(;rt(i);){let r=null;if(o){const s=i.getAttribute("listIndent"),a=o.getAttribute("listIndent");s>a?n[a]=o:s<a?(r=n[s],n.length=s):r=o}yield{node:i,previous:o,previousNodeInList:r},o=i,i=t?i.nextSibling:i.previousSibling}}class EE{constructor(e){this._listHead=e}[Symbol.iterator](){return Fo(this._listHead,"forward")}}var TE=Object.defineProperty,ME=Object.defineProperties,IE=Object.getOwnPropertyDescriptors,dk=Object.getOwnPropertySymbols,SE=Object.prototype.hasOwnProperty,BE=Object.prototype.propertyIsEnumerable,uk=(i,e,t)=>e in i?TE(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Vo=(i,e)=>{for(var t in e||(e={}))SE.call(e,t)&&uk(i,t,e[t]);if(dk)for(var t of dk(e))BE.call(e,t)&&uk(i,t,e[t]);return i},_c=(i,e)=>ME(i,IE(e));class Ui{static next(){return $()}}function rt(i){return!!i&&i.is("element")&&i.hasAttribute("listItemId")}function Ac(i,e={}){return[...Ln(i,_c(Vo({},e),{direction:"backward"})),...Ln(i,_c(Vo({},e),{direction:"forward"}))]}function Ln(i,e={}){const t=e.direction=="forward",n=Array.from(new Ht(i,_c(Vo({},e),{includeSelf:t,sameIndent:!0,sameAttributes:"listItemId"})));return t?n:n.reverse()}function hk(i,e){const t=new Ht(i,Vo({sameIndent:!0,sameAttributes:"listType"},e)),n=new Ht(i,Vo({sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward"},e));return[...Array.from(t).reverse(),...n]}function ni(i){return!Ht.first(i,{sameIndent:!0,sameAttributes:"listItemId"})}function gk(i){return!Ht.first(i,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function Ho(i,e={}){i=Oe(i);const t=e.withNested!==!1,n=new Set;for(const o of i)for(const r of Ac(o,{higherIndent:t}))n.add(r);return ii(n)}function NE(i){i=Oe(i);const e=new Set;for(const t of i)for(const n of hk(t))e.add(n);return ii(e)}function Cc(i,e){const t=Ln(i,{direction:"forward"}),n=Ui.next();for(const o of t)e.setAttribute("listItemId",n,o);return t}function vc(i,e,t){const n={};for(const[r,s]of e.getAttributes())r.startsWith("list")&&(n[r]=s);const o=Ln(i,{direction:"forward"});for(const r of o)t.setAttributes(n,r);return o}function yc(i,e,{expand:t,indentBy:n=1}={}){i=Oe(i);const o=t?Ho(i):i;for(const r of o){const s=r.getAttribute("listIndent")+n;s<0?ps(r,e):e.setAttribute("listIndent",s,r)}return o}function ps(i,e){i=Oe(i);for(const t of i)t.is("element","listItem")&&e.rename(t,"paragraph");for(const t of i)for(const n of t.getAttributeKeys())n.startsWith("list")&&e.removeAttribute(n,t);return i}function Uo(i){if(!i.length)return!1;const e=i[0].getAttribute("listItemId");return!!e&&!i.some(t=>t.getAttribute("listItemId")!=e)}function ii(i){return Array.from(i).filter(e=>e.root.rootName!=="$graveyard").sort((e,t)=>e.index-t.index)}function Wo(i){const e=i.document.selection.getSelectedElement();return e&&i.schema.isObject(e)&&i.schema.isBlock(e)?e:null}function xc(i,e){return e.checkChild(i.parent,"listItem")&&e.checkChild(i,"$text")&&!e.isObject(i)}function OE(i){return i=="numbered"||i=="customNumbered"}function PE(i,e,t){return Ln(e,{direction:"forward"}).pop().index>i.index?vc(i,e,t):[]}class mk extends de{constructor(e,t){super(e),this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute(){const e=this.editor.model,t=pk(e.document.selection);e.change(n=>{const o=[];Uo(t)&&!ni(t[0])?(this._direction=="forward"&&o.push(...yc(t,n)),o.push(...Cc(t[0],n))):this._direction=="forward"?o.push(...yc(t,n,{expand:!0})):o.push(...function(r,s){const a=Ho(r=Oe(r)),c=new Set,l=Math.min(...a.map(u=>u.getAttribute("listIndent"))),d=new Map;for(const u of a)d.set(u,Ht.first(u,{lowerIndent:!0}));for(const u of a){if(c.has(u))continue;c.add(u);const h=u.getAttribute("listIndent")-1;if(h<0)ps(u,s);else{if(u.getAttribute("listIndent")==l){const m=PE(u,d.get(u),s);for(const k of m)c.add(k);if(m.length)continue}s.setAttribute("listIndent",h,u)}}return ii(c)}(t,n));for(const r of o){if(!r.hasAttribute("listType"))continue;const s=Ht.first(r,{sameIndent:!0});s&&n.setAttribute("listType",s.getAttribute("listType"),r)}this._fireAfterExecute(o)})}_fireAfterExecute(e){this.fire("afterExecute",ii(new Set(e)))}_checkEnabled(){let e=pk(this.editor.model.document.selection),t=e[0];if(!t)return!1;if(this._direction=="backward"||Uo(e)&&!ni(e[0]))return!0;e=Ho(e),t=e[0];const n=Ht.first(t,{sameIndent:!0});return!!n&&n.getAttribute("listType")==t.getAttribute("listType")}}function pk(i){const e=Array.from(i.getSelectedBlocks()),t=e.findIndex(n=>!rt(n));return t!=-1&&(e.length=t),e}var LE=Object.defineProperty,zE=Object.defineProperties,RE=Object.getOwnPropertyDescriptors,fk=Object.getOwnPropertySymbols,jE=Object.prototype.hasOwnProperty,FE=Object.prototype.propertyIsEnumerable,kk=(i,e,t)=>e in i?LE(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Dc=(i,e)=>{for(var t in e||(e={}))jE.call(e,t)&&kk(i,t,e[t]);if(fk)for(var t of fk(e))FE.call(e,t)&&kk(i,t,e[t]);return i},Ec=(i,e)=>zE(i,RE(e));class fs extends de{constructor(e,t,n={}){super(e),this.type=t,this._listWalkerOptions=n.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,n=t.document,o=Wo(t),r=Array.from(n.selection.getSelectedBlocks()).filter(a=>t.schema.checkAttribute(a,"listType")||xc(a,t.schema)),s=e.forceValue!==void 0?!e.forceValue:this.value;t.change(a=>{if(s){const c=r[r.length-1],l=Ln(c,{direction:"forward"}),d=[];l.length>1&&d.push(...Cc(l[1],a)),d.push(...ps(r,a)),d.push(...function(u,h){const m=[];let k=Number.POSITIVE_INFINITY;for(const{node:A}of Fo(u.nextSibling,"forward")){const E=A.getAttribute("listIndent");if(E==0)break;E<k&&(k=E);const S=E-k;h.setAttribute("listIndent",S,A),m.push(A)}return m}(c,a)),this._fireAfterExecute(d)}else if((o||n.selection.isCollapsed)&&rt(r[0])){const c=hk(o||r[0],this._listWalkerOptions);for(const l of c)a.setAttributes(Ec(Dc({},e.additionalAttributes),{listType:this.type}),l);this._fireAfterExecute(c)}else{const c=[];for(const l of r)if(l.hasAttribute("listType"))for(const d of Ho(l,{withNested:!1}))d.getAttribute("listType")!=this.type&&(a.setAttributes(Ec(Dc({},e.additionalAttributes),{listType:this.type}),d),c.push(d));else!l.is("element","listItem")&&xc(l,t.schema)&&a.rename(l,"listItem"),a.setAttributes(Ec(Dc({},e.additionalAttributes),{listIndent:0,listItemId:Ui.next(),listType:this.type}),l),c.push(l);this._fireAfterExecute(c)}})}_fireAfterExecute(e){this.fire("afterExecute",ii(new Set(e)))}_getValue(){const e=this.editor.model.document.selection,t=Array.from(e.getSelectedBlocks());if(!t.length)return!1;for(const n of t)if(n.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const e=this.editor.model,t=e.schema,n=e.document.selection,o=Array.from(n.getSelectedBlocks());if(!o.length)return!1;if(this.value)return!0;for(const r of o)if(t.checkAttribute(r,"listType")||xc(r,t))return!0;return!1}}class bk extends de{constructor(e,t){super(e),this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:e=!1}={}){const t=this.editor.model,n=t.document.selection,o=[];t.change(r=>{const{firstElement:s,lastElement:a}=this._getMergeSubjectElements(n,e),c=s.getAttribute("listIndent")||0,l=a.getAttribute("listIndent"),d=a.getAttribute("listItemId");if(c!=l){const h=(u=a,Array.from(new Ht(u,{direction:"forward",higherIndent:!0})));o.push(...yc([a,...h],r,{indentBy:c-l,expand:c<l}))}var u;if(e){let h=n;n.isCollapsed&&(h=r.createSelection(r.createRange(r.createPositionAt(s,"end"),r.createPositionAt(a,0)))),t.deleteContent(h,{doNotResetEntireContent:n.isCollapsed});const m=h.getLastPosition().parent,k=m.nextSibling;o.push(m),k&&k!==a&&k.getAttribute("listItemId")==d&&o.push(...vc(k,m,r))}else o.push(...vc(a,s,r));this._fireAfterExecute(o)})}_fireAfterExecute(e){this.fire("afterExecute",ii(new Set(e)))}_checkEnabled(){const e=this.editor.model,t=e.document.selection,n=Wo(e);if(t.isCollapsed||n){const o=n||t.getFirstPosition().parent;if(!rt(o))return!1;const r=this._direction=="backward"?o.previousSibling:o.nextSibling;if(!r||Uo([o,r]))return!1}else{const o=t.getLastPosition(),r=t.getFirstPosition();if(o.parent===r.parent||!rt(o.parent))return!1}return!0}_getMergeSubjectElements(e,t){const n=Wo(this.editor.model);let o,r;if(e.isCollapsed||n){const s=n||e.getFirstPosition().parent,a=ni(s);this._direction=="backward"?(r=s,o=a&&!t?Ht.first(s,{sameIndent:!0,lowerIndent:!0}):s.previousSibling):(o=s,r=s.nextSibling)}else o=e.getFirstPosition().parent,r=e.getLastPosition().parent;return{firstElement:o,lastElement:r}}}class wk extends de{constructor(e,t){super(e),this._direction=t}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change(e=>{const t=Cc(this._getStartBlock(),e);this._fireAfterExecute(t)})}_fireAfterExecute(e){this.fire("afterExecute",ii(new Set(e)))}_checkEnabled(){const e=this.editor.model.document.selection,t=this._getStartBlock();return e.isCollapsed&&rt(t)&&!ni(t)}_getStartBlock(){const e=this.editor.model.document.selection.getFirstPosition().parent;return this._direction=="before"?e:e.nextSibling}}class VE extends G{static get pluginName(){return"ListUtils"}expandListBlocksToCompleteList(e){return NE(e)}isFirstBlockOfListItem(e){return ni(e)}isListItemBlock(e){return rt(e)}expandListBlocksToCompleteItems(e,t={}){return Ho(e,t)}isNumberedListType(e){return OE(e)}}function _k(i){return i.is("element","ol")||i.is("element","ul")}function ks(i){return i.is("element","li")}function HE(i,e,t,n=Ck(t,e)){return i.createAttributeElement(Ak(t),null,{priority:2*e/100-100,id:n})}function UE(i,e,t){return i.createAttributeElement("li",null,{priority:(2*e+1)/100-100,id:t})}function Ak(i){return i=="numbered"||i=="customNumbered"?"ol":"ul"}function Ck(i,e){return`list-${i}-${e}`}function Xt(i,e){const t=i.nodeBefore;if(rt(t)){let n=t;for(const{node:o}of Fo(n,"backward"))if(n=o,e.has(n))return;e.set(t,n)}else{const n=i.nodeAfter;rt(n)&&e.set(n,n)}}function WE(){return(i,e,t)=>{const{writer:n,schema:o}=t;if(!e.modelRange)return;const r=Array.from(e.modelRange.getItems({shallow:!0})).filter(u=>o.checkAttribute(u,"listItemId"));if(!r.length)return;const s=Ui.next(),a=function(u){let h=0,m=u.parent;for(;m;){if(ks(m))h++;else{const k=m.previousSibling;k&&ks(k)&&h++}m=m.parent}return h}(e.viewItem);let c=e.viewItem.parent&&e.viewItem.parent.is("element","ol")?"numbered":"bulleted";const l=r[0].getAttribute("listType");l&&(c=l);const d={listItemId:s,listIndent:a,listType:c};for(const u of r)u.hasAttribute("listItemId")||n.setAttributes(d,u);r.length>1&&r[1].getAttribute("listItemId")!=d.listItemId&&t.keepEmptyElement(r[0])}}function vk(){return(i,e,t)=>{if(!t.consumable.test(e.viewItem,{name:!0}))return;const n=new fn(e.viewItem.document);for(const o of Array.from(e.viewItem.getChildren()))ks(o)||_k(o)||n.remove(o)}}function yk(i,e,t,{dataPipeline:n}={}){const o=function(r){return(s,a)=>{const c=[];for(const l of r)s.hasAttribute(l)&&c.push(`attribute:${l}`);return!!c.every(l=>a.test(s,l)!==!1)&&(c.forEach(l=>a.consume(s,l)),!0)}}(i);return(r,s,a)=>{const{writer:c,mapper:l,consumable:d}=a,u=s.item;if(!i.includes(s.attributeKey)||!o(u,d))return;const h=function(k,A,E){const S=E.createRangeOn(k);return A.toViewRange(S).getTrimmed().end.nodeBefore}(u,l,t);Dk(h,c,l),function(k,A){let E=k.parent;for(;E.is("attributeElement")&&["ul","ol","li"].includes(E.name);){const S=E.parent;A.unwrap(A.createRangeOn(k),E),E=S}}(h,c);const m=function(k,A,E,S,{dataPipeline:O}){let z=S.createRangeOn(A);if(!ni(k))return z;for(const H of E){if(H.scope!="itemMarker")continue;const Q=H.createElement(S,k,{dataPipeline:O});if(!Q||(S.setCustomProperty("listItemMarker",!0,Q),H.canInjectMarkerIntoElement&&H.canInjectMarkerIntoElement(k)?S.insert(S.createPositionAt(A,0),Q):(S.insert(z.start,Q),z=S.createRange(S.createPositionBefore(Q),S.createPositionAfter(A))),!H.createWrapperElement||!H.canWrapElement))continue;const ne=H.createWrapperElement(S,k,{dataPipeline:O});S.setCustomProperty("listItemWrapper",!0,ne),H.canWrapElement(k)?z=S.wrap(z,ne):(z=S.wrap(S.createRangeOn(Q),ne),z=S.createRange(z.start,S.createPositionAfter(A)))}return z}(u,h,e,c,{dataPipeline:n});(function(k,A,E,S){if(!k.hasAttribute("listIndent"))return;const O=k.getAttribute("listIndent");let z=k;for(let H=O;H>=0;H--){const Q=UE(S,H,z.getAttribute("listItemId")),ne=HE(S,H,z.getAttribute("listType"));for(const se of E)se.scope!="list"&&se.scope!="item"||!z.hasAttribute(se.attributeName)||se.setAttributeOnDowncast(S,z.getAttribute(se.attributeName),se.scope=="list"?ne:Q);if(A=S.wrap(A,Q),A=S.wrap(A,ne),H==0||(z=Ht.first(z,{lowerIndent:!0}),!z))break}})(u,m,e,c)}}function xk(i,{dataPipeline:e}={}){return(t,{writer:n})=>{if(!Ek(t,i))return null;if(!e)return n.createContainerElement("span",{class:"ck-list-bogus-paragraph"});const o=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}function Dk(i,e,t){for(;i.parent.is("attributeElement")&&i.parent.getCustomProperty("listItemWrapper");)e.unwrap(e.createRangeOn(i),i.parent);const n=[];o(e.createPositionBefore(i).getWalker({direction:"backward"})),o(e.createRangeIn(i).getWalker());for(const r of n)e.remove(r);function o(r){for(const{item:s}of r){if(s.is("element")&&t.toModelElement(s))break;s.is("element")&&s.getCustomProperty("listItemMarker")&&n.push(s)}}}function Ek(i,e,t=Ac(i)){if(!rt(i))return!1;for(const n of i.getAttributeKeys())if(!n.startsWith("selection:")&&!e.includes(n))return!1;return t.length<2}var Tk=I(1232),qE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Tk.A,qE),Tk.A.locals;var Mk=I(6903),GE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Mk.A,GE),Mk.A.locals;const bs=["listType","listIndent","listItemId"];class $E extends G{constructor(e){super(e),this._downcastStrategies=[],e.config.define("list.multiBlock",!0)}static get pluginName(){return"ListEditing"}static get requires(){return[ts,_n,VE,Ft]}init(){const e=this.editor,t=e.model,n=e.config.get("list.multiBlock");if(e.plugins.has("LegacyListEditing"))throw new B("list-feature-conflict",this,{conflictPlugin:"LegacyListEditing"});t.schema.register("$listItem",{allowAttributes:bs}),n?(t.schema.extend("$container",{allowAttributesOf:"$listItem"}),t.schema.extend("$block",{allowAttributesOf:"$listItem"}),t.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):t.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"});for(const o of bs)t.schema.setAttributeProperties(o,{copyOnReplace:!0});e.commands.add("numberedList",new fs(e,"numbered")),e.commands.add("bulletedList",new fs(e,"bulleted")),e.commands.add("customNumberedList",new fs(e,"customNumbered",{multiLevel:!0})),e.commands.add("customBulletedList",new fs(e,"customBulleted",{multiLevel:!0})),e.commands.add("indentList",new mk(e,"forward")),e.commands.add("outdentList",new mk(e,"backward")),e.commands.add("splitListItemBefore",new wk(e,"before")),e.commands.add("splitListItemAfter",new wk(e,"after")),n&&(e.commands.add("mergeListItemBackward",new bk(e,"backward")),e.commands.add("mergeListItemForward",new bk(e,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration(),this._setupAccessibilityIntegration()}afterInit(){const e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList"),{priority:"high"}),n&&n.registerChildCommand(e.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(e){this._downcastStrategies.push(e)}getListAttributeNames(){return[...bs,...this._downcastStrategies.map(e=>e.attributeName)]}_setupDeleteIntegration(){const e=this.editor,t=e.commands.get("mergeListItemBackward"),n=e.commands.get("mergeListItemForward");this.listenTo(e.editing.view.document,"delete",(o,r)=>{const s=e.model.document.selection;Wo(e.model)||e.model.change(()=>{const a=s.getFirstPosition();if(s.isCollapsed&&r.direction=="backward"){if(!a.isAtStart)return;const c=a.parent;if(!rt(c))return;if(Ht.first(c,{sameAttributes:"listType",sameIndent:!0})||c.getAttribute("listIndent")!==0){if(!t||!t.isEnabled)return;t.execute({shouldMergeOnBlocksContentLevel:Ik(e.model,"backward")})}else gk(c)||e.execute("splitListItemAfter"),e.execute("outdentList");r.preventDefault(),o.stop()}else{if(s.isCollapsed&&!s.getLastPosition().isAtEnd||!n||!n.isEnabled)return;n.execute({shouldMergeOnBlocksContentLevel:Ik(e.model,"forward")}),r.preventDefault(),o.stop()}})},{context:"li"})}_setupEnterIntegration(){const e=this.editor,t=e.model,n=e.commands,o=n.get("enter");this.listenTo(e.editing.view.document,"enter",(r,s)=>{const a=t.document,c=a.selection.getFirstPosition().parent;if(a.selection.isCollapsed&&rt(c)&&c.isEmpty&&!s.isSoft){const l=ni(c),d=gk(c);l&&d?(e.execute("outdentList"),s.preventDefault(),r.stop()):l&&!d?(e.execute("splitListItemAfter"),s.preventDefault(),r.stop()):d&&(e.execute("splitListItemBefore"),s.preventDefault(),r.stop())}},{context:"li"}),this.listenTo(o,"afterExecute",()=>{const r=n.get("splitListItemBefore");r.refresh(),r.isEnabled&&Ac(e.model.document.selection.getLastPosition().parent).length===2&&r.execute()})}_setupTabIntegration(){const e=this.editor;this.listenTo(e.editing.view.document,"tab",(t,n)=>{const o=n.shiftKey?"outdentList":"indentList";this.editor.commands.get(o).isEnabled&&(e.execute(o),n.stopPropagation(),n.preventDefault(),t.stop())},{context:"li"})}_setupConversion(){const e=this.editor,t=e.model,n=this.getListAttributeNames(),o=e.config.get("list.multiBlock"),r=o?"paragraph":"listItem";e.conversion.for("upcast").elementToElement({view:"li",model:(l,{writer:d})=>d.createElement(r,{listType:""})}).elementToElement({view:"p",model:(l,{writer:d})=>l.parent&&l.parent.is("element","li")?d.createElement(r,{listType:""}):null,converterPriority:"high"}).add(l=>{l.on("element:li",WE()),l.on("element:ul",vk(),{priority:"high"}),l.on("element:ol",vk(),{priority:"high"})}),o||e.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),e.conversion.for("editingDowncast").elementToElement({model:r,view:xk(n),converterPriority:"high"}).add(l=>{var d;l.on("attribute",yk(n,this._downcastStrategies,t)),l.on("remove",(d=t.schema,(u,h,m)=>{const{writer:k,mapper:A}=m,E=u.name.split(":")[1];if(!d.checkAttribute(E,"listItemId"))return;const S=A.toViewPosition(h.position),O=h.position.getShiftedBy(h.length),z=A.toViewPosition(O,{isPhantom:!0}),H=k.createRange(S,z).getTrimmed().end.nodeBefore;H&&Dk(H,k,A)}))}),e.conversion.for("dataDowncast").elementToElement({model:r,view:xk(n,{dataPipeline:!0}),converterPriority:"high"}).add(l=>{l.on("attribute",yk(n,this._downcastStrategies,t,{dataPipeline:!0}))});const s=(a=this._downcastStrategies,c=e.editing.view,(l,d)=>{if(d.modelPosition.offset>0)return;const u=d.modelPosition.parent;if(!rt(u)||!a.some(E=>E.scope=="itemMarker"&&E.canInjectMarkerIntoElement&&E.canInjectMarkerIntoElement(u)))return;const h=d.mapper.toViewElement(u),m=c.createRangeIn(h),k=m.getWalker();let A=m.start;for(const{item:E}of k){if(E.is("element")&&d.mapper.toModelElement(E)||E.is("$textProxy"))break;E.is("element")&&E.getCustomProperty("listItemMarker")&&(A=c.createPositionAfter(E),k.skip(({previousPosition:S})=>!S.isEqual(A)))}d.viewPosition=A});var a,c;e.editing.mapper.on("modelToViewPosition",s),e.data.mapper.on("modelToViewPosition",s),this.listenTo(t.document,"change:data",function(l,d,u,h){return()=>{const E=l.document.differ.getChanges(),S=[],O=new Map,z=new Set;for(const H of E)if(H.type=="insert"&&H.name!="$text")Xt(H.position,O),H.attributes.has("listItemId")?z.add(H.position.nodeAfter):Xt(H.position.getShiftedBy(H.length),O);else if(H.type=="remove"&&H.attributes.has("listItemId"))Xt(H.position,O);else if(H.type=="attribute"){const Q=H.range.start.nodeAfter;u.includes(H.attributeKey)?(Xt(H.range.start,O),H.attributeNewValue===null?(Xt(H.range.start.getShiftedBy(1),O),k(Q)&&S.push(Q)):z.add(Q)):rt(Q)&&k(Q)&&S.push(Q)}for(const H of O.values())S.push(...m(H,z));for(const H of new Set(S))d.reconvertItem(H)};function m(E,S){const O=[],z=new Set,H=[];for(const{node:Q,previous:ne}of Fo(E,"forward")){if(z.has(Q))continue;const se=Q.getAttribute("listIndent");ne&&se<ne.getAttribute("listIndent")&&(H.length=se+1),H[se]=Object.fromEntries(Array.from(Q.getAttributes()).filter(([st])=>u.includes(st)));const Pe=Ln(Q,{direction:"forward"});for(const st of Pe)z.add(st),(k(st,Pe)||A(st,H,S))&&O.push(st)}return O}function k(E,S){const O=d.mapper.toViewElement(E);if(!O)return!1;if(h.fire("checkElement",{modelElement:E,viewElement:O}))return!0;if(!E.is("element","paragraph")&&!E.is("element","listItem"))return!1;const z=Ek(E,u,S);return!(!z||!O.is("element","p"))||!(z||!O.is("element","span"))}function A(E,S,O){if(O.has(E))return!1;const z=d.mapper.toViewElement(E);let H=S.length-1;for(let Q=z.parent;!Q.is("editableElement");Q=Q.parent){const ne=ks(Q),se=_k(Q);if(!se&&!ne)continue;const Pe="checkAttributes:"+(ne?"item":"list");if(h.fire(Pe,{viewElement:Q,modelAttributes:S[H]}))break;if(se&&(H--,H<0))return!1}return!0}}(t,e.editing,n,this),{priority:"high"}),this.on("checkAttributes:item",(l,{viewElement:d,modelAttributes:u})=>{d.id!=u.listItemId&&(l.return=!0,l.stop())}),this.on("checkAttributes:list",(l,{viewElement:d,modelAttributes:u})=>{d.name==Ak(u.listType)&&d.id==Ck(u.listType,u.listIndent)||(l.return=!0,l.stop())})}_setupModelPostFixing(){const e=this.editor.model,t=this.getListAttributeNames();e.document.registerPostFixer(n=>function(o,r,s,a){const c=o.document.differ.getChanges(),l=new Map,d=a.editor.config.get("list.multiBlock");let u=!1;for(const m of c){if(m.type=="insert"&&m.name!="$text"){const k=m.position.nodeAfter;if(!o.schema.checkAttribute(k,"listItemId"))for(const A of Array.from(k.getAttributeKeys()))s.includes(A)&&(r.removeAttribute(A,k),u=!0);Xt(m.position,l),m.attributes.has("listItemId")||Xt(m.position.getShiftedBy(m.length),l);for(const{item:A,previousPosition:E}of o.createRangeIn(k))rt(A)&&Xt(E,l)}else m.type=="remove"?Xt(m.position,l):m.type=="attribute"&&s.includes(m.attributeKey)&&(Xt(m.range.start,l),m.attributeNewValue===null&&Xt(m.range.start.getShiftedBy(1),l));if(!d&&m.type=="attribute"&&bs.includes(m.attributeKey)){const k=m.range.start.nodeAfter;m.attributeNewValue===null&&k&&k.is("element","listItem")?(r.rename(k,"paragraph"),u=!0):m.attributeOldValue===null&&k&&k.is("element")&&k.name!="listItem"&&(r.rename(k,"listItem"),u=!0)}}const h=new Set;for(const m of l.values())u=a.fire("postFixer",{listNodes:new EE(m),listHead:m,writer:r,seenIds:h})||u;return u}(e,n,t,this)),this.on("postFixer",(n,{listNodes:o,writer:r})=>{n.return=function(s,a){let c=0,l=-1,d=null,u=!1;for(const{node:h}of s){const m=h.getAttribute("listIndent");if(m>c){let k;d===null?(d=m-c,k=c):(d>m&&(d=m),k=m-d),k>l+1&&(k=l+1),a.setAttribute("listIndent",k,h),u=!0,l=k}else d=null,c=m+1,l=m}return u}(o,r)||n.return},{priority:"high"}),this.on("postFixer",(n,{listNodes:o,writer:r,seenIds:s})=>{n.return=function(a,c,l){const d=new Set;let u=!1;for(const{node:h}of a){if(d.has(h))continue;let m=h.getAttribute("listType"),k=h.getAttribute("listItemId");if(c.has(k)&&(k=Ui.next()),c.add(k),h.is("element","listItem"))h.getAttribute("listItemId")!=k&&(l.setAttribute("listItemId",k,h),u=!0);else for(const A of Ln(h,{direction:"forward"}))d.add(A),A.getAttribute("listType")!=m&&(k=Ui.next(),m=A.getAttribute("listType")),A.getAttribute("listItemId")!=k&&(l.setAttribute("listItemId",k,A),u=!0)}return u}(o,s,r)||n.return},{priority:"high"})}_setupClipboardIntegration(){const e=this.editor.model,t=this.editor.plugins.get("ClipboardPipeline");this.listenTo(e,"insertContent",function(n){return(o,[r,s])=>{const a=r.is("documentFragment")?Array.from(r.getChildren()):[r];if(!a.length)return;const c=(s?n.createSelection(s):n.document.selection).getFirstPosition();let l;if(rt(c.parent))l=c.parent;else{if(!rt(c.nodeBefore))return;l=c.nodeBefore}n.change(d=>{const u=l.getAttribute("listType"),h=l.getAttribute("listIndent"),m=a[0].getAttribute("listIndent")||0,k=Math.max(h-m,0);for(const A of a){const E=rt(A);l.is("element","listItem")&&A.is("element","paragraph")&&d.rename(A,"listItem"),d.setAttributes({listIndent:(E?A.getAttribute("listIndent"):0)+k,listItemId:E?A.getAttribute("listItemId"):Ui.next(),listType:u},A)}})}}(e),{priority:"high"}),this.listenTo(t,"outputTransformation",(n,o)=>{e.change(r=>{const s=Array.from(o.content.getChildren()),a=s[s.length-1];if(s.length>1&&a.is("element")&&a.isEmpty&&s.slice(0,-1).every(rt)&&r.remove(a),o.method=="copy"||o.method=="cut"){const c=Array.from(o.content.getChildren());Uo(c)&&ps(c,r)}})})}_setupAccessibilityIntegration(){const e=this.editor,t=e.t;e.accessibility.addKeystrokeInfoGroup({id:"list",label:t("Keystrokes that can be used in a list"),keystrokes:[{label:t("Increase list item indent"),keystroke:"Tab"},{label:t("Decrease list item indent"),keystroke:"Shift+Tab"}]})}}function Ik(i,e){const t=i.document.selection;if(!t.isCollapsed)return!Wo(i);if(e==="forward")return!0;const n=t.getFirstPosition().parent,o=n.previousSibling;return!i.schema.isObject(o)&&(!!o.isEmpty||Uo([n,o]))}function Sk(i,e,t,n){i.ui.componentFactory.add(e,()=>{const o=Bk(Ae,i,e,t,n);return o.set({tooltip:!0,isToggleable:!0}),o}),i.ui.componentFactory.add(`menuBar:${e}`,()=>Bk(It,i,e,t,n))}function Bk(i,e,t,n,o){const r=e.commands.get(t),s=new i(e.locale);return s.set({label:n,icon:o}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.on("execute",()=>{e.execute(t),e.editing.view.focus()}),s}class KE extends G{static get pluginName(){return"ListUI"}init(){const e=this.editor.t;this.editor.ui.componentFactory.has("numberedList")||Sk(this.editor,"numberedList",e("Numbered List"),oe.numberedList),this.editor.ui.componentFactory.has("bulletedList")||Sk(this.editor,"bulletedList",e("Bulleted List"),oe.bulletedList)}}class YE extends G{static get requires(){return[$E,KE]}static get pluginName(){return"List"}}const QE=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:i,typeAttribute:e,listType:t}of QE);var Nk=I(9968),ZE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Nk.A,ZE),Nk.A.locals;var Ok=I(7141),JE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Ok.A,JE),Ok.A.locals,go("Ctrl+Enter");var Pk=I(8991),XE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Pk.A,XE),Pk.A.locals,go("Ctrl+Enter");function Lk(i,e){const t=(n,o,r)=>{if(!r.consumable.consume(o.item,n.name))return;const s=o.attributeNewValue,a=r.writer,c=r.mapper.toViewElement(o.item),l=[...c.getChildren()].find(u=>u.getCustomProperty("media-content"));a.remove(l);const d=i.getMediaViewElement(a,s,e);a.insert(a.createPositionAt(c,0),d)};return n=>{n.on("attribute:url:media",t)}}function zk(i,e,t,n){return i.createContainerElement("figure",{class:"media"},[e.getMediaViewElement(i,t,n),i.createSlot()])}function Rk(i){const e=i.getSelectedElement();return e&&e.is("element","media")?e:null}function jk(i,e,t,n){i.change(o=>{const r=o.createElement("media",{url:e});i.insertObject(r,t,null,{setSelection:"on",findOptimalPosition:n?"auto":void 0})})}class e5 extends de{refresh(){const e=this.editor.model,t=e.document.selection,n=Rk(t);this.value=n?n.getAttribute("url"):void 0,this.isEnabled=function(o){const r=o.getSelectedElement();return!!r&&r.name==="media"}(t)||function(o,r){let a=Fm(o,r).start.parent;return a.isEmpty&&!r.schema.isLimit(a)&&(a=a.parent),r.schema.checkChild(a,"media")}(t,e)}execute(e){const t=this.editor.model,n=t.document.selection,o=Rk(n);o?t.change(r=>{r.setAttribute("url",e,o)}):jk(t,e,n,!0)}}class t5{constructor(e,t){const n=t.providers,o=t.extraProviders||[],r=new Set(t.removeProviders),s=n.concat(o).filter(a=>{const c=a.name;return c?!r.has(c):(X("media-embed-no-provider-name",{provider:a}),!1)});this.locale=e,this.providerDefinitions=s}hasMedia(e){return!!this._getMedia(e)}getMediaViewElement(e,t,n){return this._getMedia(t).getViewElement(e,n)}_getMedia(e){if(!e)return new Fk(this.locale);e=e.trim();for(const t of this.providerDefinitions){const n=t.html,o=Oe(t.url);for(const r of o){const s=this._getUrlMatches(e,r);if(s)return new Fk(this.locale,e,s,n)}}return null}_getUrlMatches(e,t){let n=e.match(t);if(n)return n;let o=e.replace(/^https?:\/\//,"");return n=o.match(t),n||(o=o.replace(/^www\./,""),n=o.match(t),n||null)}}class Fk{constructor(e,t,n,o){this.url=this._getValidUrl(t),this._locale=e,this._match=n,this._previewRenderer=o}getViewElement(e,t){const n={};let o;if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),t.renderForEditingView&&(n.class="ck-media__wrapper");const r=this._getPreviewHtml(t);o=e.createRawElement("div",n,(s,a)=>{a.setContentOf(s,r)})}else this.url&&(n.url=this.url),o=e.createEmptyElement(t.elementName,n);return e.setCustomProperty("media-content",!0,o),o}_getPreviewHtml(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const e=new kn,t=this._locale.t;return e.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',e.viewBox="0 0 64 42",new Gt({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[e]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":t("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(e){return e?e.match(/^https?/)?e:"https://"+e:null}}var Vk=I(7048),n5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Vk.A,n5),Vk.A.locals;class ws extends G{constructor(e){super(e),e.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:[/^dailymotion\.com\/video\/(\w+)/,/^dai.ly\/(\w+)/],html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:t=>{const n=t[1],o=t[2];return`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${n}${o?`?start=${o}`:""}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new t5(e.locale,e.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const e=this.editor,t=e.model.schema,n=e.t,o=e.conversion,r=e.config.get("mediaEmbed.previewsInData"),s=e.config.get("mediaEmbed.elementName"),a=this.registry;e.commands.add("mediaEmbed",new e5(e)),t.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),o.for("dataDowncast").elementToStructure({model:"media",view:(c,{writer:l})=>{const d=c.getAttribute("url");return zk(l,a,d,{elementName:s,renderMediaPreview:!!d&&r})}}),o.for("dataDowncast").add(Lk(a,{elementName:s,renderMediaPreview:r})),o.for("editingDowncast").elementToStructure({model:"media",view:(c,{writer:l})=>{const d=c.getAttribute("url");return function(u,h,m){return h.setCustomProperty("media",!0,u),nc(u,h,{label:m})}(zk(l,a,d,{elementName:s,renderForEditingView:!0}),l,n("media widget"))}}),o.for("editingDowncast").add(Lk(a,{elementName:s,renderForEditingView:!0})),o.for("upcast").elementToElement({view:c=>["oembed",s].includes(c.name)&&c.getAttribute("url")?{name:!0}:null,model:(c,{writer:l})=>{const d=c.getAttribute("url");return a.hasMedia(d)?l.createElement("media",{url:d}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(c,{writer:l})=>{const d=c.getAttribute("data-oembed-url");return a.hasMedia(d)?l.createElement("media",{url:d}):null}}).add(c=>{c.on("element:figure",(l,d,u)=>{if(!u.consumable.consume(d.viewItem,{name:!0,classes:"media"}))return;const{modelRange:h,modelCursor:m}=u.convertChildren(d.viewItem,d.modelCursor);d.modelRange=h,d.modelCursor=m,at(h.getItems())||u.consumable.revert(d.viewItem,{name:!0,classes:"media"})})})}}const i5=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class o5 extends G{constructor(e){super(e),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[rp,_n,dp]}static get pluginName(){return"AutoMediaEmbed"}init(){const e=this.editor,t=e.model.document,n=e.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",()=>{const o=t.selection.getFirstRange(),r=ht.fromPosition(o.start);r.stickiness="toPrevious";const s=ht.fromPosition(o.end);s.stickiness="toNext",t.once("change:data",()=>{this._embedMediaBetweenPositions(r,s),r.detach(),s.detach()},{priority:"high"})}),e.commands.get("undo").on("execute",()=>{this._timeoutId&&(w.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(e,t){const n=this.editor,o=n.plugins.get(ws).registry,r=new Tt(e,t),s=r.getWalker({ignoreElementEnd:!0});let a="";for(const c of s)c.item.is("$textProxy")&&(a+=c.item.data);if(a=a.trim(),!a.match(i5)||!o.hasMedia(a))return void r.detach();n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=ht.fromPosition(e),this._timeoutId=w.window.setTimeout(()=>{n.model.change(c=>{this._timeoutId=null,c.remove(r),r.detach();let l=null;this._positionToInsert.root.rootName!=="$graveyard"&&(l=this._positionToInsert),jk(n.model,a,l,!1),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get(_n).requestUndoOnBackspace()},100)):r.detach()}}var Hk=I(5651),r5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Hk.A,r5),Hk.A.locals;class s5 extends te{constructor(e,t){super(t);const n=t.t;this.focusTracker=new ct,this.keystrokes=new ft,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),oe.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),oe.cancel,"ck-button-cancel","cancel"),this._focusables=new zt,this._focusCycler=new jt({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=e,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),br({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element);const e=t=>t.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(e){this.urlInputView.fieldView.element.value=e.trim()}isValid(){this.resetFormStatus();for(const e of this._validators){const t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const e=this.locale.t,t=new Fr(this.locale,Ur),n=t.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),t.label=e("Media URL"),t.infoText=this._urlInputViewInfoDefault,n.on("input",()=>{t.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()}),t}_createButton(e,t,n,o){const r=new Ae(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),o&&r.delegate("execute").to(this,o),r}}class a5 extends G{static get requires(){return[ws]}static get pluginName(){return"MediaEmbedUI"}init(){const e=this.editor,t=e.commands.get("mediaEmbed");e.ui.componentFactory.add("mediaEmbed",n=>{const o=bn(n);return this._setUpDropdown(o,t),o})}_setUpDropdown(e,t){const n=this.editor,o=n.t,r=e.buttonView,s=n.plugins.get(ws).registry;e.once("change:isOpen",()=>{const a=new(ea(s5))(function(c,l){return[d=>{if(!d.url.length)return c("The URL must not be empty.")},d=>{if(!l.hasMedia(d.url))return c("This media URL is not supported.")}]}(n.t,s),n.locale);e.panelView.children.add(a),r.on("open",()=>{a.disableCssTransitions(),a.url=t.value||"",a.urlInputView.fieldView.select(),a.enableCssTransitions()},{priority:"low"}),e.on("submit",()=>{a.isValid()&&(n.execute("mediaEmbed",a.url),n.editing.view.focus())}),e.on("change:isOpen",()=>a.resetFormStatus()),e.on("cancel",()=>{n.editing.view.focus()}),a.delegate("submit","cancel").to(e),a.urlInputView.fieldView.bind("value").to(t,"value"),a.urlInputView.on("change:errorText",()=>{n.ui.update()}),a.urlInputView.bind("isEnabled").to(t,"isEnabled")}),e.bind("isEnabled").to(t),r.set({label:o("Insert media"),icon:'<svg viewBox="0 0 22 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.587 1.5c-.612 0-.601-.029-.601.551v14.84c0 .59-.01.559.591.559h18.846c.602 0 .591.03.591-.56V2.052c0-.58.01-.55-.591-.55H1.587Zm.701.971h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-14.24 1h13.008v12H4.467l.029-12Zm-2.208 1h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003l-.029 1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h.974v1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Z"/><path d="M8.374 6.648a.399.399 0 0 1 .395-.4.402.402 0 0 1 .2.049l5.148 2.824a.4.4 0 0 1 0 .7l-5.148 2.824a.403.403 0 0 1-.595-.35V6.648Z"/></svg>',tooltip:!0})}}var Uk=I(70),c5={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Uk.A,c5),Uk.A.locals;function Wk(i){return i!==void 0&&i.endsWith("px")}function Wi(i){return i.toFixed(2).replace(/\.?0+$/,"")+"px"}var l5=Object.defineProperty,d5=Object.defineProperties,u5=Object.getOwnPropertyDescriptors,qk=Object.getOwnPropertySymbols,h5=Object.prototype.hasOwnProperty,g5=Object.prototype.propertyIsEnumerable,Gk=(i,e,t)=>e in i?l5(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,m5=(i,e)=>{for(var t in e||(e={}))h5.call(e,t)&&Gk(i,t,e[t]);if(qk)for(var t of qk(e))g5.call(e,t)&&Gk(i,t,e[t]);return i};function p5(i,e,t){if(!i.childCount)return;const n=new fn(i.document),o=function(c,l){const d=l.createRangeIn(c),u=[],h=new Set;for(const m of d.getItems()){if(!m.is("element")||!m.name.match(/^(p|h\d+|li|div)$/))continue;let k=v5(m);if(k===void 0||parseFloat(k)!=0||Array.from(m.getClassNames()).find(A=>A.startsWith("MsoList"))||(k=void 0),m.hasStyle("mso-list")||k!==void 0&&h.has(k)){const A=A5(m);u.push({element:m,id:A.id,order:A.order,indent:A.indent,marginLeft:k}),k!==void 0&&h.add(k)}else h.clear()}return u}(i,n);if(!o.length)return;const r={},s=[];for(const c of o)if(c.indent!==void 0){f5(c)||(s.length=0);const l=`${c.id}:${c.indent}`,d=Math.min(c.indent-1,s.length);if(d<s.length&&s[d].id!==c.id&&(s.length=d),d<s.length-1)s.length=d+1;else{const h=b5(c,e);if(d>s.length-1||s[d].listElement.name!=h.type){d==0&&h.type=="ol"&&c.id!==void 0&&r[l]&&(h.startIndex=r[l]);const m=_5(h,n,t);if(Wk(c.marginLeft)&&(d==0||Wk(s[d-1].marginLeft))){let k=c.marginLeft;d>0&&(k=Wi(parseFloat(k)-parseFloat(s[d-1].marginLeft))),n.setStyle("padding-left",k,m)}if(s.length==0){const k=c.element.parent,A=k.getChildIndex(c.element)+1;n.insertChild(A,m,k)}else{const k=s[d-1].listItemElements;n.appendChild(m,k[k.length-1])}s[d]=(a=m5({},c),d5(a,u5({listElement:m,listItemElements:[]}))),d==0&&c.id!==void 0&&(r[l]=h.startIndex||1)}}const u=c.element.name=="li"?c.element:n.createElement("li");n.appendChild(u,s[d].listElement),s[d].listItemElements.push(u),d==0&&c.id!==void 0&&r[l]++,c.element!=u&&n.appendChild(c.element,u),C5(c.element,n),n.removeStyle("text-indent",c.element),n.removeStyle("margin-left",c.element)}else{const l=s.find(d=>d.marginLeft==c.marginLeft);if(l){const d=l.listItemElements;n.appendChild(c.element,d[d.length-1]),n.removeStyle("margin-left",c.element)}else s.length=0}var a}function f5(i){const e=i.element.previousSibling;return k5(e||i.element.parent)}function k5(i){return i.is("element","ol")||i.is("element","ul")}function b5(i,e){const t=new RegExp(`@list l${i.id}:level${i.indent}\\s*({[^}]*)`,"gi"),n=/mso-level-number-format:([^;]{0,100});/gi,o=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,r=new RegExp(`@list\\s+l${i.id}:level\\d\\s*{[^{]*mso-level-text:"%\\d\\\\.`,"gi"),s=new RegExp(`@list l${i.id}:level\\d\\s*{[^{]*mso-level-number-format:`,"gi"),a=r.exec(e),c=s.exec(e),l=a&&!c,d=t.exec(e);let u="decimal",h="ol",m=null;if(d&&d[1]){const k=n.exec(d[1]);if(k&&k[1]&&(u=k[1].trim(),h=u!=="bullet"&&u!=="image"?"ol":"ul"),u==="bullet"){const A=function(E){if(E.name=="li"&&E.parent.name=="ul"&&E.parent.hasAttribute("type"))return E.parent.getAttribute("type");const S=function(z){if(z.getChild(0).is("$text"))return null;for(const H of z.getChildren()){if(!H.is("element","span"))continue;const Q=H.getChild(0);if(Q)return Q.is("$text")?Q:Q.getChild(0)}return null}(E);if(!S)return null;const O=S._data;return O==="o"?"circle":O==="·"?"disc":O==="§"?"square":null}(i.element);A&&(u=A)}else{const A=o.exec(d[1]);A&&A[1]&&(m=parseInt(A[1]))}l&&(h="ol")}return{type:h,startIndex:m,style:w5(u),isLegalStyleList:l}}function w5(i){if(i.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(i){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return i;default:return null}}function _5(i,e,t){const n=e.createElement(i.type);return i.style&&e.setStyle("list-style-type",i.style,n),i.startIndex&&i.startIndex>1&&e.setAttribute("start",i.startIndex,n),i.isLegalStyleList&&t&&e.addClass("legal-list",n),n}function A5(i){const e=i.getStyle("mso-list");if(e===void 0)return{};const t=e.match(/(^|\s{1,100})l(\d+)/i),n=e.match(/\s{0,100}lfo(\d+)/i),o=e.match(/\s{0,100}level(\d+)/i);return t&&n&&o?{id:t[2],order:n[1],indent:parseInt(o[1])}:{indent:1}}function C5(i,e){const t=new cn({name:"span",styles:{"mso-list":"Ignore"}}),n=e.createRangeIn(i);for(const o of n)o.type==="elementStart"&&t.match(o.item)&&e.remove(o.item)}function v5(i){const e=i.getStyle("margin-left");return e===void 0||e.endsWith("px")?e:function(t){const n=parseFloat(t);return t.endsWith("pt")?Wi(96*n/72):t.endsWith("pc")?Wi(12*n*96/72):t.endsWith("in")?Wi(96*n):t.endsWith("cm")?Wi(96*n/2.54):t.endsWith("mm")?Wi(n/10*96/2.54):t}(e)}function y5(i,e){if(!i.childCount)return;const t=new fn(i.document),n=function(r,s){const a=s.createRangeIn(r),c=new cn({name:/v:(.+)/}),l=[];for(const d of a){if(d.type!="elementStart")continue;const u=d.item,h=u.previousSibling,m=h&&h.is("element")?h.name:null,k=["Chart"],A=c.match(u),E=u.getAttribute("o:gfxdata"),S=m==="v:shapetype",O=E&&k.some(z=>u.getAttribute("id").includes(z));A&&E&&!S&&!O&&l.push(d.item.getAttribute("id"))}return l}(i,t);(function(r,s,a){const c=a.createRangeIn(s),l=new cn({name:"img"}),d=[];for(const u of c)if(u.item.is("element")&&l.match(u.item)){const h=u.item,m=h.getAttribute("v:shapes")?h.getAttribute("v:shapes").split(" "):[];m.length&&m.every(k=>r.indexOf(k)>-1)?d.push(h):h.getAttribute("src")||d.push(h)}for(const u of d)a.remove(u)})(n,i,t),function(r,s,a){const c=a.createRangeIn(s),l=[];for(const h of c)if(h.type=="elementStart"&&h.item.is("element","v:shape")){const m=h.item.getAttribute("id");if(r.includes(m))continue;d(h.item.parent.getChildren(),m)||l.push(h.item)}for(const h of l){const m={src:u(h)};h.hasAttribute("alt")&&(m.alt=h.getAttribute("alt"));const k=a.createElement("img",m);a.insertChild(h.index+1,k,h.parent)}function d(h,m){for(const k of h)if(k.is("element")&&(k.name=="img"&&k.getAttribute("v:shapes")==m||d(k.getChildren(),m)))return!0;return!1}function u(h){for(const m of h.getChildren())if(m.is("element")&&m.getAttribute("src"))return m.getAttribute("src")}}(n,i,t),function(r,s){const a=s.createRangeIn(r),c=new cn({name:/v:(.+)/}),l=[];for(const d of a)d.type=="elementStart"&&c.match(d.item)&&l.push(d.item);for(const d of l)s.remove(d)}(i,t);const o=function(r,s){const a=s.createRangeIn(r),c=new cn({name:"img"}),l=[];for(const d of a)d.item.is("element")&&c.match(d.item)&&d.item.getAttribute("src").startsWith("file://")&&l.push(d.item);return l}(i,t);o.length&&function(r,s,a){if(r.length===s.length)for(let c=0;c<r.length;c++){const l=`data:${s[c].type};base64,${x5(s[c].hex)}`;a.setAttribute("src",l,r[c])}}(o,function(r){if(!r)return[];const s=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,a=new RegExp("(?:("+s.source+"))([\\da-fA-F\\s]+)\\}","g"),c=r.match(a),l=[];if(c)for(const d of c){let u=!1;d.includes("\\pngblip")?u="image/png":d.includes("\\jpegblip")&&(u="image/jpeg"),u&&l.push({hex:d.replace(s,"").replace(/[^\da-fA-F]/g,""),type:u})}return l}(e),t)}function x5(i){return btoa(i.match(/\w{2}/g).map(e=>String.fromCharCode(parseInt(e,16))).join(""))}const D5=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,E5=/xmlns:o="urn:schemas-microsoft-com/i;class T5{constructor(e,t=!1){this.document=e,this.hasMultiLevelListPlugin=t}isActive(e){return D5.test(e)||E5.test(e)}execute(e){const{body:t,stylesString:n}=e._parsedData;p5(t,n,this.hasMultiLevelListPlugin),y5(t,e.dataTransfer.getData("text/rtf")),function(o){const r=[],s=new fn(o.document);for(const{item:a}of s.createRangeIn(o))if(a.is("element")){for(const c of a.getClassNames())/\bmso/gi.exec(c)&&s.removeClass(c,a);for(const c of a.getStyleNames())/\bmso/gi.exec(c)&&s.removeStyle(c,a);(a.is("element","w:sdt")||a.is("element","w:sdtpr")&&a.isEmpty||a.is("element","o:p")&&a.isEmpty)&&r.push(a)}for(const a of r){const c=a.parent,l=c.getChildIndex(a);s.insertChild(l,a.getChildren(),c),s.remove(a)}}(t),e.content=t}}function $k(i,e,t,{blockElements:n,inlineObjectElements:o}){let r=t.createPositionAt(i,e=="forward"?"after":"before");return r=r.getLastMatchingPosition(({item:s})=>s.is("element")&&!n.includes(s.name)&&!o.includes(s.name),{direction:e}),e=="forward"?r.nodeAfter:r.nodeBefore}function Kk(i,e){return!!i&&i.is("element")&&e.includes(i.name)}const M5=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class I5{constructor(e){this.document=e}isActive(e){return M5.test(e)}execute(e){const t=new fn(this.document),{body:n}=e._parsedData;(function(o,r){for(const s of o.getChildren())if(s.is("element","b")&&s.getStyle("font-weight")==="normal"){const a=o.getChildIndex(s);r.remove(s),r.insertChild(a,s.getChildren(),o)}})(n,t),function(o,r){for(const s of r.createRangeIn(o)){const a=s.item;if(a.is("element","li")){const c=a.getChild(0);c&&c.is("element","p")&&r.unwrapElement(c)}}}(n,t),function(o,r){const s=new xr(r.document.stylesProcessor),a=new Tr(s,{renderingMode:"data"}),c=a.blockElements,l=a.inlineObjectElements,d=[];for(const u of r.createRangeIn(o)){const h=u.item;if(h.is("element","br")){const m=$k(h,"forward",r,{blockElements:c,inlineObjectElements:l}),k=$k(h,"backward",r,{blockElements:c,inlineObjectElements:l}),A=Kk(m,c);(Kk(k,c)||A)&&d.push(h)}}for(const u of d)u.hasClass("Apple-interchange-newline")?r.remove(u):r.replace(u,r.createElement("p"))}(n,t),e.content=n}}const S5=/<google-sheets-html-origin/i;class B5{constructor(e){this.document=e}isActive(e){return S5.test(e)}execute(e){const t=new fn(this.document),{body:n}=e._parsedData;(function(o,r){for(const s of o.getChildren())if(s.is("element","google-sheets-html-origin")){const a=o.getChildIndex(s);r.remove(s),r.insertChild(a,s.getChildren(),o)}})(n,t),function(o,r){for(const s of o.getChildren())s.is("element","table")&&s.hasAttribute("xmlns")&&r.removeAttribute("xmlns",s)}(n,t),function(o,r){for(const s of o.getChildren())s.is("element","table")&&s.getStyle("width")==="0px"&&r.removeStyle("width",s)}(n,t),function(o,r){for(const s of Array.from(o.getChildren()))s.is("element","style")&&r.remove(s)}(n,t),e.content=n}}function Yk(i){return i.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(e,t)=>t.length===1?" ":Array(t.length+1).join(" ").substr(0,t.length))}function N5(i,e){const t=new DOMParser,n=function(c){return Yk(Yk(c)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/(<span\s+style=['"]letter-spacing:[^'"]+?['"]>)[\r\n]+(<\/span>)/g,"$1 $2").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function(c){const l="</body>",d="</html>",u=c.indexOf(l);if(u<0)return c;const h=c.indexOf(d,u+l.length);return c.substring(0,u+l.length)+(h>=0?c.substring(h):"")}(i=(i=i.replace(/<!--\[if gte vml 1]>/g,"")).replace(/<o:SmartTagType(?:\s+[^\s>=]+(?:="[^"]*")?)*\s*\/?>/gi,""))),o=t.parseFromString(n,"text/html");(function(c){c.querySelectorAll("span[style*=spacerun]").forEach(l=>{const d=l,u=d.innerText.length||0;d.innerText=Array(u+1).join(" ").substr(0,u)})})(o);const r=o.body.innerHTML,s=function(c,l){const d=new xr(l),u=new Tr(d,{renderingMode:"data"}),h=c.createDocumentFragment(),m=c.body.childNodes;for(;m.length>0;)h.appendChild(m[0]);return u.domToView(h,{skipComments:!0})}(o,e),a=function(c){const l=[],d=[],u=Array.from(c.getElementsByTagName("style"));for(const h of u)h.sheet&&h.sheet.cssRules&&h.sheet.cssRules.length&&(l.push(h.sheet),d.push(h.innerHTML));return{styles:l,stylesString:d.join(" ")}}(o);return{body:s,bodyString:r,styles:a.styles,stylesString:a.stylesString}}function Ye(i,e,t,n,o=1){e!=null&&o!=null&&e>o?n.setAttribute(i,e,t):n.removeAttribute(i,t)}function oi(i,e,t={}){const n=i.createElement("tableCell",t);return i.insertElement("paragraph",n),i.insert(n,e),n}function Tc(i,e){const t=e.parent.parent,n=parseInt(t.getAttribute("headingColumns")||"0"),{column:o}=i.getCellLocation(e);return!!n&&o<n}function O5(){return i=>{i.on("element:table",(e,t,n)=>{const o=t.viewItem;if(!n.consumable.test(o,{name:!0}))return;const{rows:r,headingRows:s,headingColumns:a}=function(d){let u,h=0;const m=[],k=[];let A;for(const E of Array.from(d.getChildren())){if(E.name!=="tbody"&&E.name!=="thead"&&E.name!=="tfoot")continue;E.name!=="thead"||A||(A=E);const S=Array.from(E.getChildren()).filter(O=>O.is("element","tr"));for(const O of S)if(A&&E===A||E.name==="tbody"&&Array.from(O.getChildren()).length&&Array.from(O.getChildren()).every(z=>z.is("element","th")))h++,m.push(O);else{k.push(O);const z=P5(O);(!u||z<u)&&(u=z)}}return{headingRows:h,headingColumns:u||0,rows:[...m,...k]}}(o),c={};a&&(c.headingColumns=a),s&&(c.headingRows=s);const l=n.writer.createElement("table",c);if(n.safeInsert(l,t.modelCursor)){if(n.consumable.consume(o,{name:!0}),r.forEach(d=>n.convertItem(d,n.writer.createPositionAt(l,"end"))),n.convertChildren(o,n.writer.createPositionAt(l,"end")),l.isEmpty){const d=n.writer.createElement("tableRow");n.writer.insert(d,n.writer.createPositionAt(l,"end")),oi(n.writer,n.writer.createPositionAt(d,"end"))}n.updateConversionResult(l,t)}})}}function Qk(i){return e=>{e.on(`element:${i}`,(t,n,{writer:o})=>{if(!n.modelRange)return;const r=n.modelRange.start.nodeAfter,s=o.createPositionAt(r,0);if(n.viewItem.isEmpty)return void o.insertElement("paragraph",s);const a=Array.from(r.getChildren());if(a.every(c=>c.is("element","$marker"))){const c=o.createElement("paragraph");o.insert(c,o.createPositionAt(r,0));for(const l of a)o.move(o.createRangeOn(l),o.createPositionAt(c,"end"))}},{priority:"low"})}}function P5(i){let e=0,t=0;const n=Array.from(i.getChildren()).filter(o=>o.name==="th"||o.name==="td");for(;t<n.length&&n[t].name==="th";){const o=n[t];e+=parseInt(o.getAttribute("colspan")||"1"),t++}return e}class Me{constructor(e,t={}){this._jumpedToStartRow=!1,this._table=e,this._startRow=t.row!==void 0?t.row:t.startRow||0,this._endRow=t.row!==void 0?t.row:t.endRow,this._startColumn=t.column!==void 0?t.column:t.startColumn||0,this._endColumn=t.column!==void 0?t.column:t.endColumn,this._includeAllSlots=!!t.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){this._canJumpToStartRow()&&this._jumpToNonSpannedRowClosestToStartRow();const e=this._table.getChild(this._rowIndex);if(!e||this._isOverEndRow())return{done:!0,value:void 0};if(!e.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let t=null;const n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{const o=e.getChild(this._cellIndex);if(!o)return this._advanceToNextRow();const r=parseInt(o.getAttribute("colspan")||"1"),s=parseInt(o.getAttribute("rowspan")||"1");(r>1||s>1)&&this._recordSpans(o,s,r),this._shouldSkipSlot()||(t=this._formatOutValue(o)),this._nextCellAtColumn=this._column+r}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}skipRow(e){this._skipRows.add(e)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return this._endRow!==void 0&&this._row>this._endRow}_isOverEndColumn(){return this._endColumn!==void 0&&this._column>this._endColumn}_formatOutValue(e,t=this._row,n=this._column){return{done:!1,value:new L5(this,e,t,n)}}_shouldSkipSlot(){const e=this._skipRows.has(this._row),t=this._row<this._startRow,n=this._column<this._startColumn,o=this._endColumn!==void 0&&this._column>this._endColumn;return e||t||n||o}_getSpanned(){const e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}_recordSpans(e,t,n){const o={cell:e,row:this._row,column:this._column};for(let r=this._row;r<this._row+t;r++)for(let s=this._column;s<this._column+n;s++)r==this._row&&s==this._column||this._markSpannedCell(r,s,o)}_markSpannedCell(e,t,n){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,n)}_canJumpToStartRow(){return!!this._startRow&&this._startRow>0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const e=this._getRowLength(0);for(let t=this._startRow;!this._jumpedToStartRow;t--)e===this._getRowLength(t)&&(this._row=t,this._rowIndex=t,this._jumpedToStartRow=!0)}_getRowLength(e){return[...this._table.getChild(e).getChildren()].reduce((t,n)=>t+parseInt(n.getAttribute("colspan")||"1"),0)}}class L5{constructor(e,t,n,o){this.cell=t,this.row=e._row,this.column=e._column,this.cellAnchorRow=n,this.cellAnchorColumn=o,this._cellIndex=e._cellIndex,this._rowIndex=e._rowIndex,this._table=e._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function Zk(i,e){return(t,{writer:n})=>{const o=t.getAttribute("headingRows")||0,r=n.createContainerElement("table",null,[]),s=n.createContainerElement("figure",{class:"table"},r);o>0&&n.insert(n.createPositionAt(r,"end"),n.createContainerElement("thead",null,n.createSlot(a=>a.is("element","tableRow")&&a.index<o))),o<i.getRows(t)&&n.insert(n.createPositionAt(r,"end"),n.createContainerElement("tbody",null,n.createSlot(a=>a.is("element","tableRow")&&a.index>=o)));for(const{positionOffset:a,filter:c}of e.additionalSlots)n.insert(n.createPositionAt(r,a),n.createSlot(c));return n.insert(n.createPositionAt(r,"after"),n.createSlot(a=>!a.is("element","tableRow")&&!e.additionalSlots.some(({filter:c})=>c(a)))),e.asWidget?function(a,c){return c.setCustomProperty("table",!0,a),nc(a,c,{hasSelectionHandle:!0})}(s,n):s}}function Jk(i={}){return(e,{writer:t})=>{const n=e.parent,o=n.parent,r=o.getChildIndex(n),s=new Me(o,{row:r}),a=o.getAttribute("headingRows")||0,c=o.getAttribute("headingColumns")||0;let l=null;for(const d of s)if(d.cell==e){const u=d.row<a||d.column<c?"th":"td";l=i.asWidget?jm(t.createEditableElement(u),t):t.createContainerElement(u);break}return l}}function Xk(i={}){return(e,{writer:t})=>{if(!e.parent.is("element","tableCell")||!eb(e))return null;if(i.asWidget)return t.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const n=t.createContainerElement("p");return t.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}}function eb(i){return i.parent.childCount==1&&!!i.getAttributeKeys().next().done}class z5 extends de{refresh(){const e=this.editor.model,t=e.document.selection,n=e.schema;this.isEnabled=function(o,r){const s=o.getFirstPosition().parent,a=s===s.root?s:s.parent;return r.checkChild(a,"table")}(t,n)}execute(e={}){const t=this.editor,n=t.model,o=t.plugins.get("TableUtils"),r=t.config.get("table.defaultHeadings.rows"),s=t.config.get("table.defaultHeadings.columns");e.headingRows===void 0&&r&&(e.headingRows=r),e.headingColumns===void 0&&s&&(e.headingColumns=s),n.change(a=>{const c=o.createTable(a,e);n.insertObject(c,null,null,{findOptimalPosition:"auto"}),a.setSelection(a.createPositionAt(c.getNodeByPath([0,0,0]),0))})}}class tb extends de{constructor(e,t={}){super(e),this.order=t.order||"below"}refresh(){const e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){const e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),o=this.order==="above",r=n.getSelectionAffectedTableCells(t),s=n.getRowIndexes(r),a=o?s.first:s.last,c=r[0].findAncestor("table");n.insertRows(c,{at:o?a:a+1,copyStructureFromAbove:!o})}}class nb extends de{constructor(e,t={}){super(e),this.order=t.order||"right"}refresh(){const e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){const e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),o=this.order==="left",r=n.getSelectionAffectedTableCells(t),s=n.getColumnIndexes(r),a=o?s.first:s.last,c=r[0].findAncestor("table");n.insertColumns(c,{columns:1,at:o?a:a+1})}}class ib extends de{constructor(e,t={}){super(e),this.direction=t.direction||"horizontally"}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length===1}execute(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];this.direction==="horizontally"?e.splitCellHorizontally(t,2):e.splitCellVertically(t,2)}}function ob(i,e,t){const{startRow:n,startColumn:o,endRow:r,endColumn:s}=e,a=t.createElement("table"),c=r-n+1;for(let d=0;d<c;d++)t.insertElement("tableRow",a,"end");const l=[...new Me(i,{startRow:n,endRow:r,startColumn:o,endColumn:s,includeAllSlots:!0})];for(const{row:d,column:u,cell:h,isAnchor:m,cellAnchorRow:k,cellAnchorColumn:A}of l){const E=d-n,S=a.getChild(E);if(m){const O=t.cloneElement(h);t.append(O,S),lb(O,d,u,r,s,t)}else(k<n||A<o)&&oi(t,t.createPositionAt(S,"end"))}return function(d,u,h,m,k){const A=parseInt(u.getAttribute("headingRows")||"0");A>0&&Ye("headingRows",A-h,d,k,0);const E=parseInt(u.getAttribute("headingColumns")||"0");E>0&&Ye("headingColumns",E-m,d,k,0)}(a,i,n,o,t),a}function rb(i,e,t=0){const n=[],o=new Me(i,{startRow:t,endRow:e-1});for(const r of o){const{row:s,cellHeight:a}=r;s<e&&e<=s+a-1&&n.push(r)}return n}function sb(i,e,t){const n=i.parent,o=n.parent,r=n.index,s=e-r,a={},c=parseInt(i.getAttribute("rowspan"))-s;c>1&&(a.rowspan=c);const l=parseInt(i.getAttribute("colspan")||"1");l>1&&(a.colspan=l);const d=r+s,u=[...new Me(o,{startRow:r,endRow:d,includeAllSlots:!0})];let h,m=null;for(const k of u){const{row:A,column:E,cell:S}=k;S===i&&h===void 0&&(h=E),h!==void 0&&h===E&&A===d&&(m=oi(t,k.getPositionBefore(),a))}return Ye("rowspan",s,i,t),m}function ab(i,e){const t=[],n=new Me(i);for(const o of n){const{column:r,cellWidth:s}=o;r<e&&e<=r+s-1&&t.push(o)}return t}function cb(i,e,t,n){const o=t-e,r={},s=parseInt(i.getAttribute("colspan"))-o;s>1&&(r.colspan=s);const a=parseInt(i.getAttribute("rowspan")||"1");a>1&&(r.rowspan=a);const c=oi(n,n.createPositionAfter(i),r);return Ye("colspan",o,i,n),c}function lb(i,e,t,n,o,r){const s=parseInt(i.getAttribute("colspan")||"1"),a=parseInt(i.getAttribute("rowspan")||"1");t+s-1>o&&Ye("colspan",o-t+1,i,r,1),e+a-1>n&&Ye("rowspan",n-e+1,i,r,1)}function Mc(i,e){const t=e.getColumns(i),n=new Array(t).fill(0);for(const{column:r}of new Me(i))n[r]++;const o=n.reduce((r,s,a)=>s?r:[...r,a],[]);if(o.length>0){const r=o[o.length-1];return e.removeColumns(i,{at:r}),!0}return!1}function Ic(i,e){const t=[],n=e.getRows(i);for(let o=0;o<n;o++)i.getChild(o).isEmpty&&t.push(o);if(t.length>0){const o=t[t.length-1];return e.removeRows(i,{at:o}),!0}return!1}function Sc(i,e){Mc(i,e)||Ic(i,e)}function db(i,e){const t=Array.from(new Me(i,{startColumn:e.firstColumn,endColumn:e.lastColumn,row:e.lastRow}));if(t.every(({cellHeight:o})=>o===1))return e.lastRow;const n=t[0].cellHeight-1;return e.lastRow+n}function ub(i,e){const t=Array.from(new Me(i,{startRow:e.firstRow,endRow:e.lastRow,column:e.lastColumn}));if(t.every(({cellWidth:o})=>o===1))return e.lastColumn;const n=t[0].cellWidth-1;return e.lastColumn+n}class _s extends de{constructor(e,t){super(e),this.direction=t.direction,this.isHorizontal=this.direction=="right"||this.direction=="left"}refresh(){const e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}execute(){const e=this.editor.model,t=e.document,n=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(t.selection)[0],o=this.value,r=this.direction;e.change(s=>{const a=r=="right"||r=="down",c=a?n:o,l=a?o:n,d=l.parent;(function(A,E,S){hb(A)||(hb(E)&&S.remove(S.createRangeIn(E)),S.move(S.createRangeIn(A),S.createPositionAt(E,"end"))),S.remove(A)})(l,c,s);const u=this.isHorizontal?"colspan":"rowspan",h=parseInt(n.getAttribute(u)||"1"),m=parseInt(o.getAttribute(u)||"1");s.setAttribute(u,h+m,c),s.setSelection(s.createRangeIn(c));const k=this.editor.plugins.get("TableUtils");Sc(d.findAncestor("table"),k)})}_getMergeableCell(){const e=this.editor.model.document,t=this.editor.plugins.get("TableUtils"),n=t.getTableCellsContainingSelection(e.selection)[0];if(!n)return;const o=this.isHorizontal?function(a,c,l){const d=a.parent,u=d.parent,h=c=="right"?a.nextSibling:a.previousSibling,m=(u.getAttribute("headingColumns")||0)>0;if(!h)return;const k=c=="right"?a:h,A=c=="right"?h:a,{column:E}=l.getCellLocation(k),{column:S}=l.getCellLocation(A),O=parseInt(k.getAttribute("colspan")||"1"),z=Tc(l,k),H=Tc(l,A);if(!(m&&z!=H))return E+O===S?h:void 0}(n,this.direction,t):function(a,c,l){const d=a.parent,u=d.parent,h=u.getChildIndex(d);if(c=="down"&&h===l.getRows(u)-1||c=="up"&&h===0)return null;const m=parseInt(a.getAttribute("rowspan")||"1"),k=u.getAttribute("headingRows")||0,A=c=="down"&&h+m===k,E=c=="up"&&h===k;if(k&&(A||E))return null;const S=parseInt(a.getAttribute("rowspan")||"1"),O=c=="down"?h+S:h,z=[...new Me(u,{endRow:O})],H=z.find(se=>se.cell===a),Q=H.column,ne=z.find(({row:se,cellHeight:Pe,column:st})=>st===Q&&(c=="down"?se===O:O===se+Pe));return ne&&ne.cell?ne.cell:null}(n,this.direction,t);if(!o)return;const r=this.isHorizontal?"rowspan":"colspan",s=parseInt(n.getAttribute(r)||"1");return parseInt(o.getAttribute(r)||"1")===s?o:void 0}}function hb(i){const e=i.getChild(0);return i.childCount==1&&e.is("element","paragraph")&&e.isEmpty}class R5 extends de{refresh(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),n=t[0];if(n){const o=n.findAncestor("table"),r=e.getRows(o)-1,s=e.getRowIndexes(t),a=s.first===0&&s.last===r;this.isEnabled=!a}else this.isEnabled=!1}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),n=t.getSelectionAffectedTableCells(e.document.selection),o=t.getRowIndexes(n),r=n[0],s=r.findAncestor("table"),a=t.getCellLocation(r).column;e.change(c=>{const l=o.last-o.first+1;t.removeRows(s,{at:o.first,rows:l});const d=function(u,h,m,k){const A=u.getChild(Math.min(h,k-1));let E=A.getChild(0),S=0;for(const O of A.getChildren()){if(S>m)return E;E=O,S+=parseInt(O.getAttribute("colspan")||"1")}return E}(s,o.first,a,t.getRows(s));c.setSelection(c.createPositionAt(d,0))})}}class j5 extends de{refresh(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),n=t[0];if(n){const o=n.findAncestor("table"),r=e.getColumns(o),{first:s,last:a}=e.getColumnIndexes(t);this.isEnabled=a-s<r-1}else this.isEnabled=!1}execute(){const e=this.editor.plugins.get("TableUtils"),[t,n]=function(c,l){const d=l.getSelectionAffectedTableCells(c),u=d[0],h=d.pop(),m=[u,h];return u.isBefore(h)?m:m.reverse()}(this.editor.model.document.selection,e),o=t.parent.parent,r=[...new Me(o)],s={first:r.find(c=>c.cell===t).column,last:r.find(c=>c.cell===n).column},a=function(c,l,d,u){return parseInt(d.getAttribute("colspan")||"1")>1?d:l.previousSibling||d.nextSibling?d.nextSibling||l.previousSibling:u.first?c.reverse().find(({column:m})=>m<u.first).cell:c.reverse().find(({column:m})=>m>u.last).cell}(r,t,n,s);this.editor.model.change(c=>{const l=s.last-s.first+1;e.removeColumns(o,{at:s.first,columns:l}),c.setSelection(c.createPositionAt(a,0))})}}class F5 extends de{refresh(){const e=this.editor.plugins.get("TableUtils"),t=this.editor.model,n=e.getSelectionAffectedTableCells(t.document.selection),o=n.length>0;this.isEnabled=o,this.value=o&&n.every(r=>this._isInHeading(r,r.parent.parent))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.plugins.get("TableUtils"),n=this.editor.model,o=t.getSelectionAffectedTableCells(n.document.selection),r=o[0].findAncestor("table"),{first:s,last:a}=t.getRowIndexes(o),c=this.value?s:a+1,l=r.getAttribute("headingRows")||0;n.change(d=>{if(c){const u=rb(r,c,c>l?l:0);for(const{cell:h}of u)sb(h,c,d)}Ye("headingRows",c,r,d,0)})}_isInHeading(e,t){const n=parseInt(t.getAttribute("headingRows")||"0");return!!n&&e.parent.index<n}}class V5 extends de{refresh(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),n=t.getSelectionAffectedTableCells(e.document.selection),o=n.length>0;this.isEnabled=o,this.value=o&&n.every(r=>Tc(t,r))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.plugins.get("TableUtils"),n=this.editor.model,o=t.getSelectionAffectedTableCells(n.document.selection),r=o[0].findAncestor("table"),{first:s,last:a}=t.getColumnIndexes(o),c=this.value?s:a+1;n.change(l=>{if(c){const d=ab(r,c);for(const{cell:u,column:h}of d)cb(u,h,c,l)}Ye("headingColumns",c,r,l,0)})}}function H5(i){if(i.is("element","tableColumnGroup"))return i;const e=i.getChildren();return Array.from(e).find(t=>t.is("element","tableColumnGroup"))}function U5(i){const e=H5(i);return e?Array.from(e.getChildren()):[]}class gt extends G{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(e){const t=e.parent,n=t.parent,o=n.getChildIndex(t),r=new Me(n,{row:o});for(const{cell:s,row:a,column:c}of r)if(s===e)return{row:a,column:c}}createTable(e,t){const n=e.createElement("table"),o=t.rows||2,r=t.columns||2;return Bc(e,n,0,o,r),t.headingRows&&Ye("headingRows",Math.min(t.headingRows,o),n,e,0),t.headingColumns&&Ye("headingColumns",Math.min(t.headingColumns,r),n,e,0),n}insertRows(e,t={}){const n=this.editor.model,o=t.at||0,r=t.rows||1,s=t.copyStructureFromAbove!==void 0,a=t.copyStructureFromAbove?o-1:o,c=this.getRows(e),l=this.getColumns(e);if(o>c)throw new B("tableutils-insertrows-insert-out-of-range",this,{options:t});n.change(d=>{const u=e.getAttribute("headingRows")||0;if(u>o&&Ye("headingRows",u+r,e,d,0),!s&&(o===0||o===c))return void Bc(d,e,o,r,l);const h=s?Math.max(o,a):o,m=new Me(e,{endRow:h}),k=new Array(l).fill(1);for(const{row:A,column:E,cellHeight:S,cellWidth:O,cell:z}of m){const H=A+S-1,Q=A<=a&&a<=H;A<o&&o<=H?(d.setAttribute("rowspan",S+r,z),k[E]=-O):s&&Q&&(k[E]=O)}for(let A=0;A<r;A++){const E=d.createElement("tableRow");d.insert(E,e,o);for(let S=0;S<k.length;S++){const O=k[S],z=d.createPositionAt(E,"end");O>0&&oi(d,z,O>1?{colspan:O}:void 0),S+=Math.abs(O)-1}}})}insertColumns(e,t={}){const n=this.editor.model,o=t.at||0,r=t.columns||1;n.change(s=>{const a=e.getAttribute("headingColumns");o<a&&s.setAttribute("headingColumns",a+r,e);const c=this.getColumns(e);if(o===0||c===o){for(const d of e.getChildren())d.is("element","tableRow")&&qi(r,s,s.createPositionAt(d,o?"end":0));return}const l=new Me(e,{column:o,includeAllSlots:!0});for(const d of l){const{row:u,cell:h,cellAnchorColumn:m,cellAnchorRow:k,cellWidth:A,cellHeight:E}=d;if(m<o){s.setAttribute("colspan",A+r,h);const S=k+E-1;for(let O=u;O<=S;O++)l.skipRow(O)}else qi(r,s,d.getPositionBefore())}})}removeRows(e,t){const n=this.editor.model,o=t.rows||1,r=this.getRows(e),s=t.at,a=s+o-1;if(a>r-1)throw new B("tableutils-removerows-row-index-out-of-range",this,{table:e,options:t});n.change(c=>{const l={first:s,last:a},{cellsToMove:d,cellsToTrim:u}=function(h,{first:m,last:k}){const A=new Map,E=[];for(const{row:S,column:O,cellHeight:z,cell:H}of new Me(h,{endRow:k})){const Q=S+z-1;if(S>=m&&S<=k&&Q>k){const ne=z-(k-S+1);A.set(O,{cell:H,rowspan:ne})}if(S<m&&Q>=m){let ne;ne=Q>=k?k-m+1:Q-m+1,E.push({cell:H,rowspan:z-ne})}}return{cellsToMove:A,cellsToTrim:E}}(e,l);d.size&&function(h,m,k,A){const E=new Me(h,{includeAllSlots:!0,row:m}),S=[...E],O=h.getChild(m);let z;for(const{column:H,cell:Q,isAnchor:ne}of S)if(k.has(H)){const{cell:se,rowspan:Pe}=k.get(H),st=z?A.createPositionAfter(z):A.createPositionAt(O,0);A.move(A.createRangeOn(se),st),Ye("rowspan",Pe,se,A),z=se}else ne&&(z=Q)}(e,a+1,d,c);for(let h=a;h>=s;h--)c.remove(e.getChild(h));for(const{rowspan:h,cell:m}of u)Ye("rowspan",h,m,c);(function(h,{first:m,last:k},A){const E=h.getAttribute("headingRows")||0;m<E&&Ye("headingRows",k<E?E-(k-m+1):m,h,A,0)})(e,l,c),Mc(e,this)||Ic(e,this)})}removeColumns(e,t){const n=this.editor.model,o=t.at,r=t.columns||1,s=t.at+r-1;n.change(a=>{(function(l,d,u){const h=l.getAttribute("headingColumns")||0;if(h&&d.first<h){const m=Math.min(h-1,d.last)-d.first+1;u.setAttribute("headingColumns",h-m,l)}})(e,{first:o,last:s},a);const c=U5(e);for(let l=s;l>=o;l--){for(const{cell:d,column:u,cellWidth:h}of[...new Me(e)])u<=l&&h>1&&u+h>l?Ye("colspan",h-1,d,a):u===l&&a.remove(d);if(c[l]){const d=l===0?c[1]:c[l-1],u=parseFloat(c[l].getAttribute("columnWidth")),h=parseFloat(d.getAttribute("columnWidth"));a.remove(c[l]),a.setAttribute("columnWidth",u+h+"%",d)}}Ic(e,this)||Mc(e,this)})}splitCellVertically(e,t=2){const n=this.editor.model,o=e.parent.parent,r=parseInt(e.getAttribute("rowspan")||"1"),s=parseInt(e.getAttribute("colspan")||"1");n.change(a=>{if(s>1){const{newCellsSpan:c,updatedSpan:l}=gb(s,t);Ye("colspan",l,e,a);const d={};c>1&&(d.colspan=c),r>1&&(d.rowspan=r),qi(s>t?t-1:s-1,a,a.createPositionAfter(e),d)}if(s<t){const c=t-s,l=[...new Me(o)],{column:d}=l.find(({cell:k})=>k===e),u=l.filter(({cell:k,cellWidth:A,column:E})=>k!==e&&E===d||E<d&&E+A>d);for(const{cell:k,cellWidth:A}of u)a.setAttribute("colspan",A+c,k);const h={};r>1&&(h.rowspan=r),qi(c,a,a.createPositionAfter(e),h);const m=o.getAttribute("headingColumns")||0;m>d&&Ye("headingColumns",m+c,o,a)}})}splitCellHorizontally(e,t=2){const n=this.editor.model,o=e.parent,r=o.parent,s=r.getChildIndex(o),a=parseInt(e.getAttribute("rowspan")||"1"),c=parseInt(e.getAttribute("colspan")||"1");n.change(l=>{if(a>1){const d=[...new Me(r,{startRow:s,endRow:s+a-1,includeAllSlots:!0})],{newCellsSpan:u,updatedSpan:h}=gb(a,t);Ye("rowspan",h,e,l);const{column:m}=d.find(({cell:A})=>A===e),k={};u>1&&(k.rowspan=u),c>1&&(k.colspan=c);for(const A of d){const{column:E,row:S}=A;S>=s+h&&E===m&&(S+s+h)%u==0&&qi(1,l,A.getPositionBefore(),k)}}if(a<t){const d=t-a,u=[...new Me(r,{startRow:0,endRow:s})];for(const{cell:k,cellHeight:A,row:E}of u)if(k!==e&&E+A>s){const S=A+d;l.setAttribute("rowspan",S,k)}const h={};c>1&&(h.colspan=c),Bc(l,r,s+1,d,1,h);const m=r.getAttribute("headingRows")||0;m>s&&Ye("headingRows",m+d,r,l)}})}getColumns(e){return[...e.getChild(0).getChildren()].filter(t=>t.is("element","tableCell")).reduce((t,n)=>t+parseInt(n.getAttribute("colspan")||"1"),0)}getRows(e){return Array.from(e.getChildren()).reduce((t,n)=>n.is("element","tableRow")?t+1:t,0)}createTableWalker(e,t={}){return new Me(e,t)}getSelectedTableCells(e){const t=[];for(const n of this.sortRanges(e.getRanges())){const o=n.getContainedElement();o&&o.is("element","tableCell")&&t.push(o)}return t}getTableCellsContainingSelection(e){const t=[];for(const n of e.getRanges()){const o=n.start.findAncestor("tableCell");o&&t.push(o)}return t}getSelectionAffectedTableCells(e){const t=this.getSelectedTableCells(e);return t.length?t:this.getTableCellsContainingSelection(e)}getRowIndexes(e){const t=e.map(n=>n.parent.index);return this._getFirstLastIndexesObject(t)}getColumnIndexes(e){const t=e[0].findAncestor("table"),n=[...new Me(t)].filter(o=>e.includes(o.cell)).map(o=>o.column);return this._getFirstLastIndexesObject(n)}isSelectionRectangular(e){if(e.length<2||!this._areCellInTheSameTableSection(e))return!1;const t=new Set,n=new Set;let o=0;for(const s of e){const{row:a,column:c}=this.getCellLocation(s),l=parseInt(s.getAttribute("rowspan"))||1,d=parseInt(s.getAttribute("colspan"))||1;t.add(a),n.add(c),l>1&&t.add(a+l-1),d>1&&n.add(c+d-1),o+=l*d}return function(s,a){const c=Array.from(s.values()),l=Array.from(a.values()),d=Math.max(...c),u=Math.min(...c),h=Math.max(...l),m=Math.min(...l);return(d-u+1)*(h-m+1)}(t,n)==o}sortRanges(e){return Array.from(e).sort(W5)}_getFirstLastIndexesObject(e){const t=e.sort((n,o)=>n-o);return{first:t[0],last:t[t.length-1]}}_areCellInTheSameTableSection(e){const t=e[0].findAncestor("table"),n=this.getRowIndexes(e),o=parseInt(t.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,o))return!1;const r=this.getColumnIndexes(e),s=parseInt(t.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(r,s)}_areIndexesInSameSection({first:e,last:t},n){return e<n==t<n}}function Bc(i,e,t,n,o,r={}){for(let s=0;s<n;s++){const a=i.createElement("tableRow");i.insert(a,e,t),qi(o,i,i.createPositionAt(a,"end"),r)}}function qi(i,e,t,n={}){for(let o=0;o<i;o++)oi(e,t,n)}function gb(i,e){if(i<e)return{newCellsSpan:1,updatedSpan:1};const t=Math.floor(i/e);return{newCellsSpan:t,updatedSpan:i-t*e+t}}function W5(i,e){const t=i.start,n=e.start;return t.isBefore(n)?-1:1}class q5 extends de{refresh(){const e=this.editor.plugins.get(gt),t=e.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=e.isSelectionRectangular(t)}execute(){const e=this.editor.model,t=this.editor.plugins.get(gt);e.change(n=>{const o=t.getSelectedTableCells(e.document.selection),r=o.shift(),{mergeWidth:s,mergeHeight:a}=function(c,l,d){let u=0,h=0;for(const S of l){const{row:O,column:z}=d.getCellLocation(S);u=pb(S,z,u,"colspan"),h=pb(S,O,h,"rowspan")}const{row:m,column:k}=d.getCellLocation(c),A=u-k,E=h-m;return{mergeWidth:A,mergeHeight:E}}(r,o,t);Ye("colspan",s,r,n),Ye("rowspan",a,r,n);for(const c of o)G5(c,r,n);Sc(r.findAncestor("table"),t),n.setSelection(r,"in")})}}function G5(i,e,t){mb(i)||(mb(e)&&t.remove(t.createRangeIn(e)),t.move(t.createRangeIn(i),t.createPositionAt(e,"end"))),t.remove(i)}function mb(i){const e=i.getChild(0);return i.childCount==1&&e.is("element","paragraph")&&e.isEmpty}function pb(i,e,t,n){const o=parseInt(i.getAttribute(n)||"1");return Math.max(t,e+o)}class $5 extends de{constructor(e){super(e),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),n=t.getSelectionAffectedTableCells(e.document.selection),o=t.getRowIndexes(n),r=n[0].findAncestor("table"),s=[];for(let a=o.first;a<=o.last;a++)for(const c of r.getChild(a).getChildren())s.push(e.createRangeOn(c));e.change(a=>{a.setSelection(s)})}}class K5 extends de{constructor(e){super(e),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.plugins.get("TableUtils"),t=this.editor.model,n=e.getSelectionAffectedTableCells(t.document.selection),o=n[0],r=n.pop(),s=o.findAncestor("table"),a=e.getCellLocation(o),c=e.getCellLocation(r),l=Math.min(a.column,c.column),d=Math.max(a.column,c.column),u=[];for(const h of new Me(s,{startColumn:l,endColumn:d}))u.push(t.createRangeOn(h.cell));t.change(h=>{h.setSelection(u)})}}function Y5(i){i.document.registerPostFixer(e=>function(t,n){const o=n.document.differ.getChanges();let r=!1;const s=new Set;for(const a of o){let c=null;a.type=="insert"&&a.name=="table"&&(c=a.position.nodeAfter),a.type!="insert"&&a.type!="remove"||a.name!="tableRow"&&a.name!="tableCell"||(c=a.position.findAncestor("table")),J5(a)&&(c=a.range.start.findAncestor("table")),c&&!s.has(c)&&(r=Q5(c,t)||r,r=Z5(c,t)||r,s.add(c))}return r}(e,i))}function Q5(i,e){let t=!1;const n=function(o){const r=parseInt(o.getAttribute("headingRows")||"0"),s=Array.from(o.getChildren()).reduce((c,l)=>l.is("element","tableRow")?c+1:c,0),a=[];for(const{row:c,cell:l,cellHeight:d}of new Me(o)){if(d<2)continue;const u=c<r?r:s;if(c+d>u){const h=u-c;a.push({cell:l,rowspan:h})}}return a}(i);if(n.length){t=!0;for(const o of n)Ye("rowspan",o.rowspan,o.cell,e,1)}return t}function Z5(i,e){let t=!1;const n=function(a){const c=new Array(a.childCount).fill(0);for(const{rowIndex:l}of new Me(a,{includeAllSlots:!0}))c[l]++;return c}(i),o=[];for(const[a,c]of n.entries())!c&&i.getChild(a).is("element","tableRow")&&o.push(a);if(o.length){t=!0;for(const a of o.reverse())e.remove(i.getChild(a)),n.splice(a,1)}const r=n.filter((a,c)=>i.getChild(c).is("element","tableRow")),s=r[0];if(!r.every(a=>a===s)){const a=r.reduce((c,l)=>l>c?l:c,0);for(const[c,l]of r.entries()){const d=a-l;if(d){for(let u=0;u<d;u++)oi(e,e.createPositionAt(i.getChild(c),"end"));t=!0}}}return t}function J5(i){if(i.type!=="attribute")return!1;const e=i.attributeKey;return e==="headingRows"||e==="colspan"||e==="rowspan"}function X5(i){i.document.registerPostFixer(e=>function(t,n){const o=n.document.differ.getChanges();let r=!1;for(const s of o)s.type=="insert"&&s.name=="table"&&(r=eT(s.position.nodeAfter,t)||r),s.type=="insert"&&s.name=="tableRow"&&(r=fb(s.position.nodeAfter,t)||r),s.type=="insert"&&s.name=="tableCell"&&(r=Nc(s.position.nodeAfter,t)||r),s.type!="remove"&&s.type!="insert"||!tT(s)||(r=Nc(s.position.parent,t)||r);return r}(e,i))}function eT(i,e){let t=!1;for(const n of i.getChildren())n.is("element","tableRow")&&(t=fb(n,e)||t);return t}function fb(i,e){let t=!1;for(const n of i.getChildren())t=Nc(n,e)||t;return t}function Nc(i,e){if(i.childCount==0)return e.insertElement("paragraph",i),!0;const t=Array.from(i.getChildren()).filter(n=>n.is("$text"));for(const n of t)e.wrap(e.createRangeOn(n),"paragraph");return!!t.length}function tT(i){return!!i.position.parent.is("element","tableCell")&&(i.type=="insert"&&i.name=="$text"||i.type=="remove")}function nT(i,e){if(!i.is("element","paragraph"))return!1;const t=e.toViewElement(i);return!!t&&eb(i)!==t.is("element","span")}var kb=I(8137),iT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(kb.A,iT),kb.A.locals;class oT extends G{constructor(e){super(e),this._additionalSlots=[]}static get pluginName(){return"TableEditing"}static get requires(){return[gt]}init(){const e=this.editor,t=e.model,n=t.schema,o=e.conversion,r=e.plugins.get(gt);n.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),o.for("upcast").add(s=>{s.on("element:figure",(a,c,l)=>{if(!l.consumable.test(c.viewItem,{name:!0,classes:"table"}))return;const d=function(h){for(const m of h.getChildren())if(m.is("element","table"))return m}(c.viewItem);if(!d||!l.consumable.test(d,{name:!0}))return;l.consumable.consume(c.viewItem,{name:!0,classes:"table"});const u=at(l.convertItem(d,c.modelCursor).modelRange.getItems());u?(l.convertChildren(c.viewItem,l.writer.createPositionAt(u,"end")),l.updateConversionResult(u,c)):l.consumable.revert(c.viewItem,{name:!0,classes:"table"})})}),o.for("upcast").add(O5()),o.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Zk(r,{asWidget:!0,additionalSlots:this._additionalSlots})}),o.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Zk(r,{additionalSlots:this._additionalSlots})}),o.for("upcast").elementToElement({model:"tableRow",view:"tr"}),o.for("upcast").add(s=>{s.on("element:tr",(a,c)=>{c.viewItem.isEmpty&&c.modelCursor.index==0&&a.stop()},{priority:"high"})}),o.for("downcast").elementToElement({model:"tableRow",view:(s,{writer:a})=>s.isEmpty?a.createEmptyElement("tr"):a.createContainerElement("tr")}),o.for("upcast").elementToElement({model:"tableCell",view:"td"}),o.for("upcast").elementToElement({model:"tableCell",view:"th"}),o.for("upcast").add(Qk("td")),o.for("upcast").add(Qk("th")),o.for("editingDowncast").elementToElement({model:"tableCell",view:Jk({asWidget:!0})}),o.for("dataDowncast").elementToElement({model:"tableCell",view:Jk()}),o.for("editingDowncast").elementToElement({model:"paragraph",view:Xk({asWidget:!0}),converterPriority:"high"}),o.for("dataDowncast").elementToElement({model:"paragraph",view:Xk(),converterPriority:"high"}),o.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),o.for("upcast").attributeToAttribute({model:{key:"colspan",value:bb("colspan")},view:"colspan"}),o.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),o.for("upcast").attributeToAttribute({model:{key:"rowspan",value:bb("rowspan")},view:"rowspan"}),e.config.define("table.defaultHeadings.rows",0),e.config.define("table.defaultHeadings.columns",0),e.commands.add("insertTable",new z5(e)),e.commands.add("insertTableRowAbove",new tb(e,{order:"above"})),e.commands.add("insertTableRowBelow",new tb(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new nb(e,{order:"left"})),e.commands.add("insertTableColumnRight",new nb(e,{order:"right"})),e.commands.add("removeTableRow",new R5(e)),e.commands.add("removeTableColumn",new j5(e)),e.commands.add("splitTableCellVertically",new ib(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new ib(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new q5(e)),e.commands.add("mergeTableCellRight",new _s(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new _s(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new _s(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new _s(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new V5(e)),e.commands.add("setTableRowHeader",new F5(e)),e.commands.add("selectTableRow",new $5(e)),e.commands.add("selectTableColumn",new K5(e)),Y5(t),X5(t),this.listenTo(t.document,"change:data",()=>{(function(s,a){const c=s.document.differ;for(const l of c.getChanges()){let d,u=!1;if(l.type=="attribute"){const A=l.range.start.nodeAfter;if(!A||!A.is("element","table")||l.attributeKey!="headingRows"&&l.attributeKey!="headingColumns")continue;d=A,u=l.attributeKey=="headingRows"}else l.name!="tableRow"&&l.name!="tableCell"||(d=l.position.findAncestor("table"),u=l.name=="tableRow");if(!d)continue;const h=d.getAttribute("headingRows")||0,m=d.getAttribute("headingColumns")||0,k=new Me(d);for(const A of k){const E=A.row<h||A.column<m?"th":"td",S=a.mapper.toViewElement(A.cell);S&&S.is("element")&&S.name!=E&&a.reconvertItem(u?A.cell.parent:A.cell)}}})(t,e.editing),function(s,a){const c=s.document.differ,l=new Set;for(const d of c.getChanges()){const u=d.type=="attribute"?d.range.start.parent:d.position.parent;u.is("element","tableCell")&&l.add(u)}for(const d of l.values()){const u=Array.from(d.getChildren()).filter(h=>nT(h,a.mapper));for(const h of u)a.reconvertItem(h)}}(t,e.editing)})}registerAdditionalSlot(e){this._additionalSlots.push(e)}}function bb(i){return e=>{const t=parseInt(e.getAttribute(i));return Number.isNaN(t)||t<=0?null:t}}var wb=I(5032),rT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(wb.A,rT),wb.A.locals;class _b extends te{constructor(e){super(e);const t=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new ft,this.focusTracker=new ct,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(n,o)=>`${o} × ${n}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":t.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:t.to("label")}]}],on:{mousedown:t.to(n=>{n.preventDefault()}),click:t.to(()=>{this.fire("execute")})}}),this.on("boxover",(n,o)=>{const{row:r,column:s}=o.target.dataset;this.items.get(10*(parseInt(r,10)-1)+(parseInt(s,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(n,o,r)=>{if(!r)return;const{row:s,column:a}=r.dataset;this.set({rows:parseInt(s),columns:parseInt(a)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),p0({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const e of this.items)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element)}reset(){this.set({rows:1,columns:1})}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const e=this.rows,t=this.columns;this.items.map((n,o)=>{const r=Math.floor(o/10)<e&&o%10<t;n.set("isOn",r)})}_createGridButton(e,t,n,o){const r=new Ae(e);return r.set({label:o,class:"ck-insert-table-dropdown-grid-box"}),r.extendTemplate({attributes:{"data-row":t,"data-column":n}}),r}_createGridCollection(){const e=[];for(let t=0;t<100;t++){const n=Math.floor(t/10),o=t%10,r=`${n+1} × ${o+1}`;e.push(this._createGridButton(this.locale,n+1,o+1,r))}return this.createCollection(e)}}class sT extends G{static get pluginName(){return"TableUI"}init(){const e=this.editor,t=this.editor.t,n=e.locale.contentLanguageDirection==="ltr";e.ui.componentFactory.add("insertTable",o=>{const r=e.commands.get("insertTable"),s=bn(o);let a;return s.bind("isEnabled").to(r),s.buttonView.set({icon:oe.table,label:t("Insert table"),tooltip:!0}),s.on("change:isOpen",()=>{a||(a=new _b(o),s.panelView.children.add(a),a.delegate("execute").to(s),s.on("execute",()=>{e.execute("insertTable",{rows:a.rows,columns:a.columns}),e.editing.view.focus()}))}),s}),e.ui.componentFactory.add("menuBar:insertTable",o=>{const r=e.commands.get("insertTable"),s=new zi(o),a=new _b(o);return a.delegate("execute").to(s),s.on("change:isOpen",(c,l,d)=>{d||a.reset()}),a.on("execute",()=>{e.execute("insertTable",{rows:a.rows,columns:a.columns}),e.editing.view.focus()}),s.buttonView.set({label:t("Table"),icon:oe.table}),s.panelView.children.add(a),s.bind("isEnabled").to(r),s}),e.ui.componentFactory.add("tableColumn",o=>{const r=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:t("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:t("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:t("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:t("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:t("Select column")}}];return this._prepareDropdown(t("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',r,o)}),e.ui.componentFactory.add("tableRow",o=>{const r=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:t("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:t("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:t("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:t("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:t("Select row")}}];return this._prepareDropdown(t("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',r,o)}),e.ui.componentFactory.add("mergeTableCells",o=>{const r=[{type:"button",model:{commandName:"mergeTableCellUp",label:t("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:t("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:t("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:t("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:t("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:t("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(t("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',r,o)})}_prepareDropdown(e,t,n,o){const r=this.editor,s=bn(o),a=this._fillDropdownWithListOptions(s,n);return s.buttonView.set({label:e,icon:t,tooltip:!0}),s.bind("isEnabled").toMany(a,"isEnabled",(...c)=>c.some(l=>l)),this.listenTo(s,"execute",c=>{r.execute(c.source.commandName),c.source instanceof Rr||r.editing.view.focus()}),s}_prepareMergeSplitButtonDropdown(e,t,n,o){const r=this.editor,s=bn(o,Hr),a="mergeTableCells",c=r.commands.get(a),l=this._fillDropdownWithListOptions(s,n);return s.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),s.bind("isEnabled").toMany([c,...l],"isEnabled",(...d)=>d.some(u=>u)),this.listenTo(s.buttonView,"execute",()=>{r.execute(a),r.editing.view.focus()}),this.listenTo(s,"execute",d=>{r.execute(d.source.commandName),r.editing.view.focus()}),s}_fillDropdownWithListOptions(e,t){const n=this.editor,o=[],r=new qt;for(const s of t)aT(s,n,o,r);return Zh(e,r),o}}function aT(i,e,t,n){if(i.type==="button"||i.type==="switchbutton"){const o=i.model=new Tg(i.model),{commandName:r,bindIsOn:s}=i.model,a=e.commands.get(r);t.push(a),o.set({commandName:r}),o.bind("isEnabled").to(a),s&&o.bind("isOn").to(a,"value"),o.set({withText:!0})}n.add(i)}var Ab=I(8423),cT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Ab.A,cT),Ab.A.locals;class ri extends G{static get pluginName(){return"TableSelection"}static get requires(){return[gt,gt]}init(){const e=this.editor,t=e.model,n=e.editing.view;this.listenTo(t,"deleteContent",(o,r)=>this._handleDeleteContent(o,r),{priority:"high"}),this.listenTo(n.document,"insertText",(o,r)=>this._handleInsertTextEvent(o,r),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const e=this.editor.plugins.get(gt),t=this.editor.model.document.selection,n=e.getSelectedTableCells(t);return n.length==0?null:n}getSelectionAsFragment(){const e=this.editor.plugins.get(gt),t=this.getSelectedTableCells();return t?this.editor.model.change(n=>{const o=n.createDocumentFragment(),{first:r,last:s}=e.getColumnIndexes(t),{first:a,last:c}=e.getRowIndexes(t),l=t[0].findAncestor("table");let d=c,u=s;if(e.isSelectionRectangular(t)){const m={firstColumn:r,lastColumn:s,firstRow:a,lastRow:c};d=db(l,m),u=ub(l,m)}const h=ob(l,{startRow:a,startColumn:r,endRow:d,endColumn:u},n);return n.insert(h,o,0),o}):null}setCellSelection(e,t){const n=this._getCellsToSelect(e,t);this.editor.model.change(o=>{o.setSelection(n.cells.map(r=>o.createRangeOn(r)),{backward:n.backward})})}getFocusCell(){const e=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}getAnchorCell(){const e=at(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}_defineSelectionConverter(){const e=this.editor,t=new Set;e.conversion.for("editingDowncast").add(n=>n.on("selection",(o,r,s)=>{const a=s.writer;(function(d){for(const u of t)d.removeClass("ck-editor__editable_selected",u);t.clear()})(a);const c=this.getSelectedTableCells();if(!c)return;for(const d of c){const u=s.mapper.toViewElement(d);a.addClass("ck-editor__editable_selected",u),t.add(u)}const l=s.mapper.toViewElement(c[c.length-1]);a.setSelection(l,0)},{priority:"lowest"}))}_enablePluginDisabling(){const e=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const t=this.getSelectedTableCells();if(!t)return;e.model.change(n=>{const o=n.createPositionAt(t[0],0),r=e.model.schema.getNearestSelectionRange(o);n.setSelection(r)})}})}_handleDeleteContent(e,t){const n=this.editor.plugins.get(gt),o=t[0],r=t[1],s=this.editor.model,a=!r||r.direction=="backward",c=n.getSelectedTableCells(o);c.length&&(e.stop(),s.change(l=>{const d=c[a?c.length-1:0];s.change(h=>{for(const m of c)s.deleteContent(h.createSelection(m,"in"))});const u=s.schema.getNearestSelectionRange(l.createPositionAt(d,0));o.is("documentSelection")?l.setSelection(u):o.setTo(u)}))}_handleInsertTextEvent(e,t){const n=this.editor,o=this.getSelectedTableCells();if(!o)return;const r=n.editing.view,s=n.editing.mapper,a=o.map(c=>r.createRangeOn(s.toViewElement(c)));t.selection=r.createSelection(a)}_getCellsToSelect(e,t){const n=this.editor.plugins.get("TableUtils"),o=n.getCellLocation(e),r=n.getCellLocation(t),s=Math.min(o.row,r.row),a=Math.max(o.row,r.row),c=Math.min(o.column,r.column),l=Math.max(o.column,r.column),d=new Array(a-s+1).fill(null).map(()=>[]),u={startRow:s,endRow:a,startColumn:c,endColumn:l};for(const{row:k,cell:A}of new Me(e.findAncestor("table"),u))d[k-s].push(A);const h=r.row<o.row,m=r.column<o.column;return h&&d.reverse(),m&&d.forEach(k=>k.reverse()),{cells:d.flat(),backward:h||m}}}class lT extends G{static get pluginName(){return"TableClipboard"}static get requires(){return[No,Ft,ri,gt]}init(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"copy",(n,o)=>this._onCopyCut(n,o)),this.listenTo(t,"cut",(n,o)=>this._onCopyCut(n,o)),this.listenTo(e.model,"insertContent",(n,[o,r])=>this._onInsertContent(n,o,r),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(e,t){const n=this.editor.editing.view,o=this.editor.plugins.get(ri),r=this.editor.plugins.get(No);o.getSelectedTableCells()&&(e.name!="cut"||this.editor.model.canEditAt(this.editor.model.document.selection))&&(t.preventDefault(),e.stop(),this.editor.model.enqueueChange({isUndoable:e.name==="cut"},()=>{const s=r._copySelectedFragmentWithMarkers(e.name,this.editor.model.document.selection,()=>o.getSelectionAsFragment());n.document.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:this.editor.data.toView(s),method:e.name})}))}_onInsertContent(e,t,n){if(n&&!n.is("documentSelection"))return;const o=this.editor.model,r=this.editor.plugins.get(gt),s=this.editor.plugins.get(No),a=this.getTableIfOnlyTableInContent(t,o);if(!a)return;const c=r.getSelectionAffectedTableCells(o.document.selection);c.length?(e.stop(),t.is("documentFragment")?s._pasteMarkersIntoTransformedElement(t.markers,l=>this._replaceSelectedCells(a,c,l)):this.editor.model.change(l=>{this._replaceSelectedCells(a,c,l)})):Sc(a,r)}_replaceSelectedCells(e,t,n){const o=this.editor.plugins.get(gt),r={width:o.getColumns(e),height:o.getRows(e)},s=function(u,h,m,k){const A=u[0].findAncestor("table"),E=k.getColumnIndexes(u),S=k.getRowIndexes(u),O={firstColumn:E.first,lastColumn:E.last,firstRow:S.first,lastRow:S.last},z=u.length===1;return z&&(O.lastRow+=h.height-1,O.lastColumn+=h.width-1,function(H,Q,ne,se){const Pe=se.getColumns(H),st=se.getRows(H);ne>Pe&&se.insertColumns(H,{at:Pe,columns:ne-Pe}),Q>st&&se.insertRows(H,{at:st,rows:Q-st})}(A,O.lastRow+1,O.lastColumn+1,k)),z||!k.isSelectionRectangular(u)?function(H,Q,ne){const{firstRow:se,lastRow:Pe,firstColumn:st,lastColumn:jb}=Q,Fb={first:se,last:Pe},Vb={first:st,last:jb};Pc(H,st,Fb,ne),Pc(H,jb+1,Fb,ne),Oc(H,se,Vb,ne),Oc(H,Pe+1,Vb,ne,se)}(A,O,m):(O.lastRow=db(A,O),O.lastColumn=ub(A,O)),O}(t,r,n,o),a=s.lastRow-s.firstRow+1,c=s.lastColumn-s.firstColumn+1;e=ob(e,{startRow:0,startColumn:0,endRow:Math.min(a,r.height)-1,endColumn:Math.min(c,r.width)-1},n);const l=t[0].findAncestor("table"),d=this._replaceSelectedCellsWithPasted(e,r,l,s,n);if(this.editor.plugins.get("TableSelection").isEnabled){const u=o.sortRanges(d.map(h=>n.createRangeOn(h)));n.setSelection(u)}else n.setSelection(d[0],0);return l}_replaceSelectedCellsWithPasted(e,t,n,o,r){const{width:s,height:a}=t,c=function(E,S,O){const z=new Array(O).fill(null).map(()=>new Array(S).fill(null));for(const{column:H,row:Q,cell:ne}of new Me(E))z[Q][H]=ne;return z}(e,s,a),l=[...new Me(n,{startRow:o.firstRow,endRow:o.lastRow,startColumn:o.firstColumn,endColumn:o.lastColumn,includeAllSlots:!0})],d=[];let u;for(const E of l){const{row:S,column:O}=E;O===o.firstColumn&&(u=E.getPositionBefore());const z=S-o.firstRow,H=O-o.firstColumn,Q=c[z%a][H%s],ne=Q?r.cloneElement(Q):null,se=this._replaceTableSlotCell(E,ne,u,r);se&&(lb(se,S,O,o.lastRow,o.lastColumn,r),d.push(se),u=r.createPositionAfter(se))}const h=parseInt(n.getAttribute("headingRows")||"0"),m=parseInt(n.getAttribute("headingColumns")||"0"),k=o.firstRow<h&&h<=o.lastRow,A=o.firstColumn<m&&m<=o.lastColumn;if(k){const E=Oc(n,h,{first:o.firstColumn,last:o.lastColumn},r,o.firstRow);d.push(...E)}if(A){const E=Pc(n,m,{first:o.firstRow,last:o.lastRow},r);d.push(...E)}return d}_replaceTableSlotCell(e,t,n,o){const{cell:r,isAnchor:s}=e;return s&&o.remove(r),t?(o.insert(t,n),t):null}getTableIfOnlyTableInContent(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(e.childCount==1&&e.getChild(0).is("element","table"))return e.getChild(0);const n=t.createRangeIn(e);for(const o of n.getItems())if(o.is("element","table")){const r=t.createRange(n.start,t.createPositionBefore(o));if(t.hasContent(r,{ignoreWhitespaces:!0}))return null;const s=t.createRange(t.createPositionAfter(o),n.end);return t.hasContent(s,{ignoreWhitespaces:!0})?null:o}return null}}function Oc(i,e,t,n,o=0){if(!(e<1))return rb(i,e,o).filter(({column:r,cellWidth:s})=>Cb(r,s,t)).map(({cell:r})=>sb(r,e,n))}function Pc(i,e,t,n){if(!(e<1))return ab(i,e).filter(({row:o,cellHeight:r})=>Cb(o,r,t)).map(({cell:o,column:r})=>cb(o,r,e,n))}function Cb(i,e,t){const n=i+e-1,{first:o,last:r}=t;return i>=o&&i<=r||i<o&&n>=o}class dT extends G{static get pluginName(){return"TableKeyboard"}static get requires(){return[ri,gt]}init(){const e=this.editor,t=e.editing.view.document,n=e.t;this.listenTo(t,"arrowKey",(...o)=>this._onArrowKey(...o),{context:"table"}),this.listenTo(t,"tab",(...o)=>this._handleTabOnSelectedTable(...o),{context:"figure"}),this.listenTo(t,"tab",(...o)=>this._handleTab(...o),{context:["th","td"]}),e.accessibility.addKeystrokeInfoGroup({id:"table",label:n("Keystrokes that can be used in a table cell"),keystrokes:[{label:n("Move the selection to the next cell"),keystroke:"Tab"},{label:n("Move the selection to the previous cell"),keystroke:"Shift+Tab"},{label:n("Insert a new table row (when in the last cell of a table)"),keystroke:"Tab"},{label:n("Navigate through the table"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]}]})}_handleTabOnSelectedTable(e,t){const n=this.editor,o=n.model.document.selection.getSelectedElement();o&&o.is("element","table")&&(t.preventDefault(),t.stopPropagation(),e.stop(),n.model.change(r=>{r.setSelection(r.createRangeIn(o.getChild(0).getChild(0)))}))}_handleTab(e,t){const n=this.editor,o=this.editor.plugins.get(gt),r=this.editor.plugins.get("TableSelection"),s=n.model.document.selection,a=!t.shiftKey;let c=o.getTableCellsContainingSelection(s)[0];if(c||(c=r.getFocusCell()),!c)return;t.preventDefault(),t.stopPropagation(),e.stop();const l=c.parent,d=l.parent,u=d.getChildIndex(l),h=l.getChildIndex(c),m=h===0;if(!a&&m&&u===0)return void n.model.change(S=>{S.setSelection(S.createRangeOn(d))});const k=h===l.childCount-1,A=u===o.getRows(d)-1;if(a&&A&&k&&(n.execute("insertTableRowBelow"),u===o.getRows(d)-1))return void n.model.change(S=>{S.setSelection(S.createRangeOn(d))});let E;if(a&&k)E=d.getChild(u+1).getChild(0);else if(!a&&m){const S=d.getChild(u-1);E=S.getChild(S.childCount-1)}else E=l.getChild(h+(a?1:-1));n.model.change(S=>{S.setSelection(S.createRangeIn(E))})}_onArrowKey(e,t){const n=this.editor,o=qs(t.keyCode,n.locale.contentLanguageDirection);this._handleArrowKeys(o,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){const n=this.editor.plugins.get(gt),o=this.editor.plugins.get("TableSelection"),r=this.editor.model,s=r.document.selection,a=["right","down"].includes(e),c=n.getSelectedTableCells(s);if(c.length){let d;return d=t?o.getFocusCell():a?c[c.length-1]:c[0],this._navigateFromCellInDirection(d,e,t),!0}const l=s.focus.findAncestor("tableCell");if(!l)return!1;if(!s.isCollapsed)if(t){if(s.isBackward==a&&!s.containsEntireContent(l))return!1}else{const d=s.getSelectedElement();if(!d||!r.schema.isObject(d))return!1}return!!this._isSelectionAtCellEdge(s,l,a)&&(this._navigateFromCellInDirection(l,e,t),!0)}_isSelectionAtCellEdge(e,t,n){const o=this.editor.model,r=this.editor.model.schema,s=n?e.getLastPosition():e.getFirstPosition();if(!r.getLimitElement(s).is("element","tableCell"))return o.createPositionAt(t,n?"end":0).isTouching(s);const a=o.createSelection(s);return o.modifySelection(a,{direction:n?"forward":"backward"}),s.isEqual(a.focus)}_navigateFromCellInDirection(e,t,n=!1){const o=this.editor.model,r=e.findAncestor("table"),s=[...new Me(r,{includeAllSlots:!0})],{row:a,column:c}=s[s.length-1],l=s.find(({cell:A})=>A==e);let{row:d,column:u}=l;switch(t){case"left":u--;break;case"up":d--;break;case"right":u+=l.cellWidth;break;case"down":d+=l.cellHeight}if(d<0||d>a||u<0&&d<=0||u>c&&d>=a)return void o.change(A=>{A.setSelection(A.createRangeOn(r))});u<0?(u=n?0:c,d--):u>c&&(u=n?c:0,d++);const h=s.find(A=>A.row==d&&A.column==u).cell,m=["right","down"].includes(t),k=this.editor.plugins.get("TableSelection");if(n&&k.isEnabled){const A=k.getAnchorCell()||e;k.setCellSelection(A,h)}else{const A=o.createPositionAt(h,m?0:"end");o.change(E=>{E.setSelection(A)})}}}class uT extends Sn{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(e){this.fire(e.type,e)}}class hT extends G{static get pluginName(){return"TableMouse"}static get requires(){return[ri,gt]}init(){this.editor.editing.view.addObserver(uT),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const e=this.editor,t=e.plugins.get(gt);let n=!1;const o=e.plugins.get(ri);this.listenTo(e.editing.view.document,"mousedown",(r,s)=>{const a=e.model.document.selection;if(!this.isEnabled||!o.isEnabled||!s.domEvent.shiftKey)return;const c=o.getAnchorCell()||t.getTableCellsContainingSelection(a)[0];if(!c)return;const l=this._getModelTableCellFromDomEvent(s);l&&vb(c,l)&&(n=!0,o.setCellSelection(c,l),s.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{n=!1}),this.listenTo(e.editing.view.document,"selectionChange",r=>{n&&r.stop()},{priority:"highest"})}_enableMouseDragSelection(){const e=this.editor;let t,n,o=!1,r=!1;const s=e.plugins.get(ri);this.listenTo(e.editing.view.document,"mousedown",(a,c)=>{this.isEnabled&&s.isEnabled&&(c.domEvent.shiftKey||c.domEvent.ctrlKey||c.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(c)))}),this.listenTo(e.editing.view.document,"mousemove",(a,c)=>{if(!c.domEvent.buttons||!t)return;const l=this._getModelTableCellFromDomEvent(c);l&&vb(t,l)&&(n=l,o||n==t||(o=!0)),o&&(r=!0,s.setCellSelection(t,n),c.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{o=!1,r=!1,t=null,n=null}),this.listenTo(e.editing.view.document,"selectionChange",a=>{r&&a.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(e){const t=e.target,n=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function vb(i,e){return i.parent.parent==e.parent.parent}var yb=I(2329),gT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(yb.A,gT),yb.A.locals;function mT(i){const e=i.getSelectedElement();return e&&xb(e)?e:null}function pT(i){const e=i.getFirstPosition();if(!e)return null;let t=e.parent;for(;t;){if(t.is("element")&&xb(t))return t;t=t.parent}return null}function xb(i){return!!i.getCustomProperty("table")&&et(i)}var Db=I(5506),fT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Db.A,fT),Db.A.locals;var Eb=I(2655),kT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Eb.A,kT),Eb.A.locals;var Tb=I(4043),bT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Tb.A,bT),Tb.A.locals;var Mb=I(1623),wT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Mb.A,wT),Mb.A.locals;var Ib=I(8986),_T={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Ib.A,_T),Ib.A.locals;const si=wt.defaultPositions;si.northArrowSouth,si.northArrowSouthWest,si.northArrowSouthEast,si.southArrowNorth,si.southArrowNorthWest,si.southArrowNorthEast,si.viewportStickyNorth;var Sb=I(5562),AT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Sb.A,AT),Sb.A.locals;var Bb=I(4143),CT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Bb.A,CT),Bb.A.locals;var Nb=I(8795),vT={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};K()(Nb.A,vT),Nb.A.locals;var yT=Object.defineProperty,Ob=Object.getOwnPropertySymbols,xT=Object.prototype.hasOwnProperty,DT=Object.prototype.propertyIsEnumerable,Pb=(i,e,t)=>e in i?yT(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Lb=(i,e)=>{for(var t in e||(e={}))xT.call(e,t)&&Pb(i,t,e[t]);if(Ob)for(var t of Ob(e))DT.call(e,t)&&Pb(i,t,e[t]);return i};const ET={autoRefresh:!0},zb=36e5;class Lc extends xe(){constructor(e,t={}){if(super(),!e)throw new B("token-missing-token-url",this);t.initValue&&this._validateTokenValue(t.initValue),this.set("value",t.initValue),this._refresh=typeof e=="function"?e:()=>{return n=e,new Promise((o,r)=>{const s=new XMLHttpRequest;s.open("GET",n),s.addEventListener("load",()=>{const a=s.status,c=s.response;return a<200||a>299?r(new B("token-cannot-download-new-token",null)):o(c)}),s.addEventListener("error",()=>r(new Error("Network Error"))),s.addEventListener("abort",()=>r(new Error("Abort"))),s.send()});var n},this._options=Lb(Lb({},ET),t)}init(){return new Promise((e,t)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),e(this)):this.refreshToken().then(e).catch(t)})}refreshToken(){return this._refresh().then(e=>(this._validateTokenValue(e),this.set("value",e),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(e){const t=typeof e=="string",n=!/^".*"$/.test(e),o=t&&e.split(".").length===3;if(!n||!o)throw new B("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const e=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},e)}_getTokenRefreshTimeoutTime(){try{const[,e]=this.value.split("."),{exp:t}=JSON.parse(atob(e));return t?Math.floor((1e3*t-Date.now())/2):zb}catch{return zb}}static create(e,t={}){return new Lc(e,t).init()}}const zc=/^data:(\S*?);base64,/;class TT extends ye(){constructor(e,t,n){if(super(),!e)throw new B("fileuploader-missing-file",null);if(!t)throw new B("fileuploader-missing-token",null);if(!n)throw new B("fileuploader-missing-api-address",null);this.file=function(o){if(typeof o!="string")return!1;const r=o.match(zc);return!(!r||!r.length)}(e)?function(o,r=512){try{const s=o.match(zc)[1],a=atob(o.replace(zc,"")),c=[];for(let l=0;l<a.length;l+=r){const d=a.slice(l,l+r),u=new Array(d.length);for(let h=0;h<d.length;h++)u[h]=d.charCodeAt(h);c.push(new Uint8Array(u))}return new Blob(c,{type:s})}catch{throw new B("fileuploader-decoding-image-data-error",null)}}(e):e,this._token=t,this._apiAddress=n}onProgress(e){return this.on("progress",(t,n)=>e(n)),this}onError(e){return this.once("error",(t,n)=>e(n)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}_attachXHRListeners(){const e=this.xhr,t=n=>()=>this.fire("error",n);e.addEventListener("error",t("Network Error")),e.addEventListener("abort",t("Abort")),e.upload&&e.upload.addEventListener("progress",n=>{n.lengthComputable&&this.fire("progress",{total:n.total,uploaded:n.loaded})}),e.addEventListener("load",()=>{const n=e.status,o=e.response;if(n<200||n>299)return this.fire("error",o.message||o.error)})}_sendRequest(){const e=new FormData,t=this.xhr;return e.append("file",this.file),new Promise((n,o)=>{t.addEventListener("load",()=>{const r=t.status,s=t.response;return r<200||r>299?s.message?o(new B("fileuploader-uploading-data-failed",this,{message:s.message})):o(s.error):n(s)}),t.addEventListener("error",()=>o(new Error("Network Error"))),t.addEventListener("abort",()=>o(new Error("Abort"))),t.send(e)})}}class MT{constructor(e,t){if(!e)throw new B("uploadgateway-missing-token",null);if(!t)throw new B("uploadgateway-missing-api-address",null);this._token=e,this._apiAddress=t}upload(e){return new TT(e,this._token,this._apiAddress)}}class IT extends wr{static get pluginName(){return"CloudServicesCore"}createToken(e,t){return new Lc(e,t)}createUploadGateway(e,t){return new MT(e,t)}}var Rb=(i,e,t)=>new Promise((n,o)=>{var r=c=>{try{a(t.next(c))}catch(l){o(l)}},s=c=>{try{a(t.throw(c))}catch(l){o(l)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(r,s);a((t=t.apply(i,e)).next())});class Rc extends Zr{}Rc.builtinPlugins=[class extends G{static get requires(){return[Iv,rp,ts,Qx,_x,hx,dp]}static get pluginName(){return"Essentials"}},class extends G{static get requires(){return[Jt]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const i=this.editor.config.get("ckfinder.uploadUrl");i&&(this.editor.plugins.get(Jt).createUploadAdapter=e=>new c2(e,i,this.editor.t))}},class extends G{static get requires(){return[_n]}static get pluginName(){return"Autoformat"}afterInit(){const i=this.editor,e=this.editor.t;this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats(),i.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Revert autoformatting action"),keystroke:"Backspace"}]})}_addListAutoformats(){const i=this.editor.commands;i.get("bulletedList")&&Pn(this.editor,this,/^[*-]\s$/,"bulletedList"),i.get("numberedList")&&Pn(this.editor,this,/^1[.|)]\s$/,"numberedList"),i.get("todoList")&&Pn(this.editor,this,/^\[\s?\]\s$/,"todoList"),i.get("checkTodoList")&&Pn(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const i=this.editor.commands;if(i.get("bold")){const e=ss(this.editor,"bold");Fi(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),Fi(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(i.get("italic")){const e=ss(this.editor,"italic");Fi(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,e),Fi(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,e)}if(i.get("code")){const e=ss(this.editor,"code");Fi(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(i.get("strikethrough")){const e=ss(this.editor,"strikethrough");Fi(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){const i=this.editor.commands.get("heading");i&&i.modelElements.filter(e=>e.match(/^heading[1-6]$/)).forEach(e=>{const t=e[7],n=new RegExp(`^(#{${t}})\\s$`);Pn(this.editor,this,n,()=>{if(!i.isEnabled||i.value===e)return!1;this.editor.execute("heading",{value:e})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Pn(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const i=this.editor,e=i.model.document.selection;i.commands.get("codeBlock")&&Pn(i,this,/^```$/,()=>{if(e.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Pn(this.editor,this,/^---$/,"horizontalLine")}},class extends G{static get requires(){return[l2,d2]}static get pluginName(){return"Bold"}},class extends G{static get requires(){return[h2,g2]}static get pluginName(){return"Italic"}},class extends G{static get requires(){return[p2,k2]}static get pluginName(){return"BlockQuote"}},class extends G{static get pluginName(){return"CKBox"}static get requires(){return[Ip,b2]}},class extends G{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",U2,V2]}},class extends wr{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[IT]}init(){return Rb(this,null,function*(){const i=this.context.config.get("cloudServices")||{};for(const[t,n]of Object.entries(i))this[t]=n;if(!this.tokenUrl)return void(this.token=null);const e=this.context.plugins.get("CloudServicesCore");this.token=yield e.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(i){return Rb(this,null,function*(){if(this._tokens.has(i))return this.getTokenFor(i);const e=this.context.plugins.get("CloudServicesCore"),t=yield e.createToken(i).init();return this._tokens.set(i,t),t})}getTokenFor(i){const e=this._tokens.get(i);if(!e)throw new B("cloudservices-token-not-registered",this);return e}destroy(){super.destroy();for(const i of this._tokens.values())i.destroy()}},class extends G{static get pluginName(){return"EasyImage"}static get requires(){return[W2,"ImageUpload"]}init(){const i=this.editor;i.plugins.has("ImageBlockEditing")||i.plugins.has("ImageInlineEditing")||X("easy-image-image-feature-missing",i)}},class extends G{static get requires(){return[Y2,Z2]}static get pluginName(){return"Heading"}},class extends G{static get requires(){return[bD,_D]}static get pluginName(){return"Image"}},class extends G{static get requires(){return[CD,vD]}static get pluginName(){return"ImageCaption"}},class extends G{static get requires(){return[zf,$D]}static get pluginName(){return"ImageStyle"}},class extends G{static get requires(){return[is,At]}static get pluginName(){return"ImageToolbar"}afterInit(){const i=this.editor,e=i.t,t=i.plugins.get(is),n=i.plugins.get("ImageUtils");var o;t.register("image",{ariaLabel:e("Image toolbar"),items:(o=i.config.get("image.toolbar")||[],o.map(r=>he(r)?r.name:r)),getRelatedElement:r=>n.getClosestSelectedImageWidget(r)})}},class extends G{static get pluginName(){return"ImageUpload"}static get requires(){return[zD,DD,ID]}},class extends G{static get pluginName(){return"Indent"}static get requires(){return[KD,YD]}},class extends G{static get requires(){return[ok,yE,xE]}static get pluginName(){return"Link"}},YE,class extends G{static get requires(){return[ws,a5,o5,zo]}static get pluginName(){return"MediaEmbed"}},lc,class extends G{static get pluginName(){return"PasteFromOffice"}static get requires(){return[Ft]}init(){const i=this.editor,e=i.plugins.get("ClipboardPipeline"),t=i.editing.view.document,n=[],o=this.editor.plugins.has("MultiLevelList");n.push(new T5(t,o)),n.push(new I5(t)),n.push(new B5(t)),e.on("inputTransformation",(r,s)=>{if(s._isTransformedWithPasteFromOffice||i.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const a=s.dataTransfer.getData("text/html"),c=n.find(l=>l.isActive(a));c&&(s._parsedData||(s._parsedData=N5(a,t.stylesProcessor)),c.execute(s),s._isTransformedWithPasteFromOffice=!0)},{priority:"high"})}},class extends G{static get requires(){return[uc,At]}static get pluginName(){return"PictureEditing"}afterInit(){const i=this.editor;i.plugins.has("ImageBlockEditing")&&i.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),i.plugins.has("ImageInlineEditing")&&i.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration()}_setupConversion(){const i=this.editor,e=i.conversion,t=i.plugins.get("ImageUtils");e.for("upcast").add(function(n){const o=["srcset","media","type","sizes"],r=(s,a,c)=>{const l=a.viewItem;if(!c.consumable.test(l,{name:!0}))return;const d=new Map;for(const m of l.getChildren())if(m.is("element","source")){const k={};for(const A of o)m.hasAttribute(A)&&c.consumable.test(m,{attributes:A})&&(k[A]=m.getAttribute(A));Object.keys(k).length&&d.set(m,k)}const u=n.findViewImgElement(l);if(!u)return;let h=a.modelCursor.parent;if(!h.is("element","imageBlock")){const m=c.convertItem(u,a.modelCursor);a.modelRange=m.modelRange,a.modelCursor=m.modelCursor,h=at(m.modelRange.getItems())}c.consumable.consume(l,{name:!0});for(const[m,k]of d)c.consumable.consume(m,{attributes:Object.keys(k)});d.size&&c.writer.setAttribute("sources",Array.from(d.values()),h),c.convertChildren(l,h)};return s=>{s.on("element:picture",r)}}(t)),e.for("downcast").add(function(n){const o=(r,s,a)=>{if(!a.consumable.consume(s.item,r.name))return;const c=a.writer,l=a.mapper.toViewElement(s.item),d=n.findViewImgElement(l),u=s.attributeNewValue;if(u&&u.length){const h=c.createContainerElement("picture",null,u.map(A=>c.createEmptyElement("source",A))),m=[];let k=d.parent;for(;k&&k.is("attributeElement");){const A=k.parent;c.unwrap(c.createRangeOn(d),k),m.unshift(k),k=A}c.insert(c.createPositionBefore(d),h),c.move(c.createRangeOn(d),c.createPositionAt(h,"end"));for(const A of m)c.wrap(c.createRangeOn(h),A)}else if(d.parent.is("element","picture")){const h=d.parent;c.move(c.createRangeOn(d),c.createPositionBefore(h)),c.remove(h)}};return r=>{r.on("attribute:sources:imageBlock",o),r.on("attribute:sources:imageInline",o)}}(t))}_setupImageUploadEditingIntegration(){const i=this.editor;if(!i.plugins.has("ImageUploadEditing"))return;const e=i.plugins.get("ImageUploadEditing");this.listenTo(e,"uploadComplete",(t,{imageElement:n,data:o})=>{const r=o.sources;r&&i.model.change(s=>{s.setAttributes({sources:r},n)})})}},class extends G{static get requires(){return[oT,sT,ri,hT,dT,lT,zo]}static get pluginName(){return"Table"}},class extends G{static get requires(){return[is]}static get pluginName(){return"TableToolbar"}afterInit(){const i=this.editor,e=i.t,t=i.plugins.get(is),n=i.config.get("table.contentToolbar"),o=i.config.get("table.tableToolbar");n&&t.register("tableContent",{ariaLabel:e("Table toolbar"),items:n,getRelatedElement:pT}),o&&t.register("table",{ariaLabel:e("Table toolbar"),items:o,getRelatedElement:mT})}},class extends G{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(i){super(i),i.config.define("typing",{transformations:{include:gx}})}init(){const i=this.editor.model.document.selection;i.on("change:range",()=>{this.isEnabled=!i.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const i=this.editor,e=i.model,t=i.plugins.get("Delete"),n=function(r){const s=r.extra||[],a=r.remove||[],c=l=>!a.includes(l);return function(l){const d=new Set;for(const u of l)if(typeof u=="string"&&Sm[u])for(const h of Sm[u])d.add(h);else d.add(u);return Array.from(d)}(r.include.concat(s).filter(c)).filter(c).map(l=>typeof l=="string"&&Im[l]?Im[l]:l).filter(l=>typeof l=="object").map(l=>({from:mx(l.from),to:px(l.to)}))}(i.config.get("typing.transformations")),o=new Em(i.model,r=>{for(const s of n)if(s.from.test(r))return{normalizedTransformation:s}});o.on("matched:data",(r,s)=>{if(!s.batch.isTyping)return;const{from:a,to:c}=s.normalizedTransformation,l=a.exec(s.text),d=c(l.slice(1)),u=s.range;let h=l.index;e.enqueueChange(m=>{for(let k=1;k<l.length;k++){const A=l[k],E=d[k-1];if(E==null){h+=A.length;continue}const S=u.start.getShiftedBy(h),O=e.createRange(S,S.getShiftedBy(A.length)),z=fx(S);e.insertContent(m.createText(E,z),O),h+=E.length}e.enqueueChange(()=>{t.requestUndoOnBackspace()})})}),o.bind("isEnabled").to(this)}}],Rc.defaultConfig={toolbar:{items:["undo","redo","|","heading","|","bold","italic","|","link","uploadImage","insertTable","blockQuote","mediaEmbed","|","bulletedList","numberedList","outdent","indent"]},image:{toolbar:["imageStyle:inline","imageStyle:block","imageStyle:side","|","toggleImageCaption","imageTextAlternative"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},language:"en"}})(),v=v.default})())})(Cs,Cs.exports);var eB=Cs.exports;const tB=ew(eB);(function(f){const p=f.ru=f.ru||{};p.dictionary=Object.assign(p.dictionary||{},{"(may require <kbd>Fn</kbd>)":"(может требовать <kbd>Fn</kbd>)","%0 of %1":"%0 из %1",Accept:"Принять",Accessibility:"Доступность","Accessibility help":"Помощь по специальным возможностям","Align cell text to the bottom":"Выровнять текст ячейки по нижнему краю","Align cell text to the center":"Выровнять текст по центру","Align cell text to the left":"Выровнять текст по левому краю","Align cell text to the middle":"Выровнять текст ячейки по центру","Align cell text to the right":"Выровнять текст по правому краю","Align cell text to the top":"Выровнять текст ячейки по верхнему краю","Align table to the left":"Выровнять таблицу по левому краю","Align table to the right":"Выровнять таблицу по правому краю",Alignment:"Выравнивание",Aquamarine:"Аквамариновый",Background:"Фон","Below, you can find a list of keyboard shortcuts that can be used in the editor.":"Ниже вы можете найти список сочетаний клавиш, которые можно использовать в редакторе.",Black:"Чёрный","Block quote":"Цитата",Blue:"Синий",Bold:"Жирный","Bold text":"Жирный текст",Border:"Граница","Break text":"Разрывать текст","Bulleted List":"Маркированный список","Bulleted list styles toolbar":"Стили маркированного списка",Cancel:"Отмена","Cannot access default workspace.":"Не удается получить доступ к рабочему пространству по умолчанию.","Cannot determine a category for the uploaded file.":"Не удаётся определить категорию для загруженного файла.","Cannot upload file:":"Невозможно загрузить файл","Caption for image: %0":"Подпись к изображению: %0","Caption for the image":"Подпись к изображению","Cell properties":"Свойства ячейки","Center table":"Выровнять таблицу по центру","Centered image":"Выравнивание по центру","Change image text alternative":"Редактировать альтернативный текст","Choose heading":"Выбор стиля",Circle:"Окружность",Clear:"Очистить","Click to edit block":"Нажмите, чтобы редактировать блок",Close:"Закрыть","Close contextual balloons, dropdowns, and dialogs":"Закрыть контекстные всплывающие окна, раскрывающиеся списки и диалоговые окна.",Code:"Исходный код",Color:"Цвет","Color picker":"Выбор цвета",Column:"Столбец","Content editing keystrokes":"Клавиши для редактирования контента","Copy selected content":"Копировать выбранное содержание","Could not insert image at the current position.":"Нельзя вставить изображение на текущую позицию.","Could not obtain resized image URL.":"Не удалось получить URL с измененным размером изображения.","Create link":"Создать ссылку",Custom:"Другое","Custom image size":"Пользовательский размер изображения",Dashed:"Пунктирная",Decimal:"Десятичный","Decimal with leading zero":"Десятичный с ведущим нулем","Decrease indent":"Уменьшить отступ","Decrease list item indent":"Уменьшить отступ элемента списка","Delete column":"Удалить столбец","Delete row":"Удалить строку","Dim grey":"Тёмно-серый",Dimensions:"Размеры",Disc:"Диск",Dotted:"Точечная",Double:"Двойная",Downloadable:"Загружаемые","Drag to move":"Перетащить","Dropdown toolbar":"Выпадающая панель инструментов","Edit block":"Редактировать блок","Edit image":"Редактировать изображение","Edit link":"Редактировать ссылку","Editor block content toolbar":"Панель инструментов редактора","Editor contextual toolbar":"Контекстуальная панель инструментов редактора","Editor dialog":"Диалоговое окно редактора","Editor editing area: %0":"Область редактирования редактора: %0","Editor menu bar":"Панель меню редактора","Editor toolbar":"Панель инструментов редактора","Enter image caption":"Подпись к изображению","Enter table caption":"Подпись таблицы","Entering a to-do list":"Ввод списка текущих дел","Error during image upload":"Ошибка при загрузке изображения","Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.":"Активировать кнопку, находящуюся в фокусе. Активирование кнопок, которые взаимодействуют с содержимым редактора, перемещает фокус обратно на содержимое.","Failed to determine category of edited image.":"Не удалось определить категорию отредактированного изображения.","Full size image":"Оригинальный размер изображения",Green:"Зелёный",Grey:"Серый",Groove:"Желобчатая","Header column":"Столбец заголовков","Header row":"Строка заголовков",Heading:"Стиль","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4","Heading 5":"Заголовок 5","Heading 6":"Заголовок 6",Height:"Высота","Help Contents. To close this dialog press ESC.":"Содержание справки. Чтобы закрыть это диалоговое окно, нажмите ESC.",HEX:"HEX","Horizontal text alignment toolbar":"Панель инструментов горизонтального выравнивания текста","Image from computer":"Изображение с компьютера","Image resize list":"Список размеров","Image toolbar":"Панель инструментов изображения","Image upload complete":"Загрузка изображения завершена","image widget":"Виджет изображений","In line":"В тексте","Increase indent":"Увеличить отступ","Increase list item indent":"Увеличить отступ элемента списка",Insert:"Вставить","Insert a hard break (a new paragraph)":"Вставить жесткий разрыв (новый абзац)","Insert a new paragraph directly after a widget":"Вставить новый абзац непосредственно после виджета.","Insert a new paragraph directly before a widget":"Вставить новый абзац непосредственно перед виджетом.","Insert a new table row (when in the last cell of a table)":"Вставить новую строку таблицы (в последней ячейке таблицы)","Insert a soft break (a <code><br></code> element)":"Вставить мягкий разрыв (элемент <code><br></code>)","Insert column left":"Вставить столбец слева","Insert column right":"Вставить столбец справа","Insert image":"Вставить изображение","Insert image via URL":"Вставить изображение по URL","Insert image with file manager":"Вставить изображение с помощью файлового менеджера","Insert media":"Вставить медиа","Insert paragraph after block":"Вставить параграф после блока","Insert paragraph before block":"Вставить параграф перед блоком","Insert row above":"Вставить строку выше","Insert row below":"Вставить строку ниже","Insert table":"Вставить таблицу","Insert with file manager":"Вставка с помощью файлового менеджера","Inserting image failed":"Вставка изображения не удалась",Inset:"Вдавленная","Invalid start index value.":"Недопустимое значение начального индекса.",Italic:"Курсив","Italic text":"Текст курсивом","Justify cell text":"Выровнять текст по ширине","Keystrokes that can be used in a list":"Нажатия клавиш, которые можно использовать в списке","Keystrokes that can be used in a table cell":"Нажатия клавиш, которые можно использовать в ячейке таблицы","Keystrokes that can be used when a widget is selected (for example: image, table, etc.)":"Нажатия клавиш, которые можно использовать при выборе виджета (например: изображение, таблица и т. д.)","Leaving a to-do list":"Оставляем список текущих дел","Left aligned image":"Выравнивание по левому краю","Light blue":"Голубой","Light green":"Салатовый","Light grey":"Светло-серый",Link:"Ссылка","Link image":"Ссылка на изображение","Link URL":"Ссылка URL","Link URL must not be empty.":"URL-адрес ссылки не должен быть пустым.","List properties":"Свойства списка","Lower-latin":"Малые латинские","Lower–roman":"Малые римские","Media toolbar":"Панель инструментов медиа","Media URL":"URL медиа","media widget":"медиа-виджет",MENU_BAR_MENU_EDIT:"Редактировать",MENU_BAR_MENU_FILE:"Файл",MENU_BAR_MENU_FONT:"Шрифт",MENU_BAR_MENU_FORMAT:"Формат",MENU_BAR_MENU_HELP:"Помощь",MENU_BAR_MENU_INSERT:"Вставить",MENU_BAR_MENU_TEXT:"Текст",MENU_BAR_MENU_TOOLS:"Инструменты",MENU_BAR_MENU_VIEW:"Посмотреть","Merge cell down":"Объединить с ячейкой снизу","Merge cell left":"Объединить с ячейкой слева","Merge cell right":"Объединить с ячейкой справа","Merge cell up":"Объединить с ячейкой сверху","Merge cells":"Объединить ячейки","Move focus between form fields (inputs, buttons, etc.)":"Переместить фокус между полями формы (вводы, кнопки и т. д.)","Move focus in and out of an active dialog window":"Переместить фокус в активное диалоговое окно и обратно.","Move focus to the menu bar, navigate between menu bars":"Переместить фокус на панель меню, перемещаться между панелями меню","Move focus to the toolbar, navigate between toolbars":"Переместить фокус на панель инструментов, перемещаться между панелями инструментов","Move out of a link":"Выйти из ссылки","Move out of an inline code style":"Выйти из встроенного стиля кода","Move the caret to allow typing directly after a widget":"Переместить курсор, чтобы можно было вводить текст сразу после виджета.","Move the caret to allow typing directly before a widget":"Переместите курсор, чтобы можно было вводить текст непосредственно перед виджетом.","Move the selection to the next cell":"Переместить выделение в следующую ячейку","Move the selection to the previous cell":"Переместить выделение на предыдущую ячейку","Navigate through the table":"Навигация по таблице","Navigate through the toolbar or menu bar":"Перемещение по панели инструментов или панели меню",Next:"Следующий","No results found":"Результаты не найдены","No searchable items":"Нет элементов для поиска",None:"Нет","Numbered List":"Нумерованный список","Numbered list styles toolbar":"Стили нумерованного списка","Open file manager":"Открыть менеджер файлов","Open in a new tab":"Открыть в новой вкладке","Open link in new tab":"Открыть ссылку в новой вкладке","Open media in new tab":"Откройте медиа в новой вкладке","Open the accessibility help dialog":"Открыть диалоговое окно справки по специальным возможностям",Orange:"Оранжевый",Original:"Оригинальный",Outset:"Выпуклая",Padding:"Отступ",Paragraph:"Параграф","Paste content":"Вставить содержание","Paste content as plain text":"Вставить содержанрие в виде обычного текста","Paste the media URL in the input.":"Вставьте URL медиа в поле ввода.",'Please enter a valid color (e.g. "ff0000").':'Введите действительный цвет (например, "ff0000").',"Press %0 for help.":"Нажмите %0 для получения помощи.","Press Enter to type after or press Shift + Enter to type before the widget":"Нажмите Enter для ввода текста после виджета или нажмите Shift + Enter для ввода текста перед виджетом",Previous:"Предыдущий","Processing the edited image.":"Обработка отредактированного изображения.",Purple:"Фиолетовый",Red:"Красный",Redo:"Повторить","Remove color":"Убрать цвет","Replace from computer":"Заменить с компьютера","Replace image":"Заменить изображение","Replace image from computer":"Заменить изображение с компьютера","Replace image with file manager":"Заменить изображение с помощью файлового менеджера","Replace with file manager":"Заменить с помощью файлового менеджера","Resize image":"Изменить размер изображения","Resize image (in %0)":"Изменить размер изображения (в %0)","Resize image to %0":"Изменить размер изображения до %0","Resize image to the original size":"Вернуть размер изображения к оригинальному","Restore default":"По умолчанию","Reversed order":"Обратный порядок","Revert autoformatting action":"Отменить действие автоформатирования","Rich Text Editor":"Редактор",Ridge:"Ребристая","Right aligned image":"Выравнивание по правому краю",Row:"Строка",Save:"Сохранить","Select all":"Выбрать все","Select column":"Выбрать столбец","Select row":"Выбрать строку","Selecting resized image failed":"Выбор изображения с измененным размером не удался","Server failed to process the image.":"Серверу не удалось обработать изображение.","Show more items":"Другие инструменты","Side image":"Боковое изображение",Solid:"Сплошная","Split cell horizontally":"Разделить ячейку горизонтально","Split cell vertically":"Разделить ячейку вертикально",Square:"Квадрат","Start at":"Начать с","Start index must be greater than 0.":"Начальный индекс должен быть больше 0.",Strikethrough:"Зачеркнутый","Strikethrough text":"Зачеркнутый текст",Style:"Стиль",Subscript:"Подстрочный",Superscript:"Надстрочный",Table:"Таблица","Table alignment toolbar":"Панель инструментов выравнивания таблицы","Table cell text alignment":"Выравнивание текста в ячейке таблицы","Table properties":"Свойства таблицы","Table toolbar":"Панель инструментов таблицы","Text alternative":"Альтернативный текст",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'Неверный цвет. Попробуйте "#FF0000" или "rgb(255,0,0)" или "red".',"The URL must not be empty.":"URL не должен быть пустым.",'The value is invalid. Try "10px" or "2em" or simply "2".':'Неверное значение. Попробуйте "10px" или "2em" или просто "2".',"The value must not be empty.":"Значение не должно быть пустым.","The value should be a plain number.":"Значение должно быть простым числом.","These keyboard shortcuts allow for quick access to content editing features.":"Эти сочетания клавиш обеспечивают быстрый доступ к функциям редактирования контента.","This link has no URL":"Для этой ссылки не установлен адрес URL","This media URL is not supported.":"Этот URL медиа не поддерживается.","Tip: Paste the URL into the content to embed faster.":"Подсказка: Вставьте URL в контент для быстрого включения.","To-do List":"Список задач","Toggle caption off":"Выключить описание","Toggle caption on":"Включить описание","Toggle the circle list style":"Переключить на стиль списка с маркерами в виде незакрашенного кружка","Toggle the decimal list style":"Переключить на стиль списка с цифровыми маркерами","Toggle the decimal with leading zero list style":"Переключить на стиль списка с маркерами в виде цифр с нулем в начале","Toggle the disc list style":"Переключить на стиль списка с маркерами в виде закрашенного кружка","Toggle the lower–latin list style":"Переключить на стиль списка с маркерами в виде строчных латинских букв","Toggle the lower–roman list style":"Переключить на стиль списка с маркерами в виде строчных римских цифр","Toggle the square list style":"Переключить на стиль списка с квадратными маркерами","Toggle the upper–latin list style":"Переключить на стиль списка с маркерами в виде заглавных латинских букв","Toggle the upper–roman list style":"Переключить на стиль списка с маркерами в виде заглавных римских цифр",Turquoise:"Бирюзовый","Type or paste your content here.":"Введите или вставьте сюда ваш текст","Type your title":"Введите заголовок",Underline:"Подчеркнутый","Underline text":"Подчеркнутый текст",Undo:"Отменить",Unlink:"Убрать ссылку",Update:"Изменить","Update image URL":"Изменить URL изображения","Upload failed":"Загрузка не выполнена","Upload from computer":"Загрузить с компьютера","Upload image from computer":"Загрузить изображение с компьютера","Upload in progress":"Идёт загрузка","Uploading image":"Загрузка изображения","Upper-latin":"Большие латинские","Upper-roman":"Большие римские","Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.":"Использовать следующие сочетания клавиш для более эффективной навигации в пользовательском интерфейсе CKEditor 5.","User interface and content navigation keystrokes":"Пользовательский интерфейс и клавиши навигации по контенту","Vertical text alignment toolbar":"Панель инструментов вертикального выравнивания текста",White:"Белый","Widget toolbar":"Панель инструментов виджета",Width:"Ширина","Wrap text":"Обтекать текст",Yellow:"Жёлтый"}),p.getPluralForm=function(_){return _%10==1&&_%100!=11?0:_%10>=2&&_%10<=4&&(_%100<12||_%100>14)?1:_%10==0||_%10>=5&&_%10<=9||_%100>=11&&_%100<=14?2:3}})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));const nB={props:{opendialog:{type:Boolean,default:!1}},setup(f,{emit:p}){const _=Zo({get:()=>f.opendialog,set:M=>p("update:opendialog",M)});return srcs[1],srcs[2],srcs[3],srcs[2],srcs[4],srcs[5],srcs[1],srcs[3],{mydialog:_}}},iB={class:"text-h5"},oB={class:"text-grey-lighten-1"};function rB(f,p,_,M,I,v){return W(),pe(xs,{modelValue:M.mydialog,"onUpdate:modelValue":p[6]||(p[6]=C=>M.mydialog=C),"max-width":"700"},{default:R(()=>[j(nt,{loading:f.isUpdating,class:"mx-auto",color:"blue-grey-darken-1","max-width":"420"},{loader:R(({isActive:C})=>[j(sS,{active:C,color:"green-lighten-3",height:"4",indeterminate:""},null,8,["active"])]),default:R(()=>[j(ys,{height:"200",src:"https://cdn.vuetifyjs.com/images/cards/dark-beach.jpg",cover:""},{default:R(()=>[j(Ve,{class:"pa-3"},{default:R(()=>[j(Ie,{cols:"12"},{default:R(()=>[j(tw,{location:"bottom start",origin:"overlap",transition:"slide-y-transition"},{activator:R(({props:C})=>[j(di,hn(C,{density:"comfortable",icon:"mdi-dots-vertical",variant:"tonal"}),null,16)]),default:R(()=>[j($c,{lines:!1},{default:R(()=>[j(Hc,{title:"Update",onClick:p[0]||(p[0]=C=>f.isUpdating=!0)})]),_:1})]),_:1})]),_:1}),j(Ve,null,{default:R(()=>[j(Ie,{class:"text-center"},{default:R(()=>[we("h3",iB,ue(f.name),1),we("span",oB,ue(f.title),1)]),_:1})]),_:1})]),_:1})]),_:1}),j(wS,null,{default:R(()=>[j(Gc,null,{default:R(()=>[j(Ve,{dense:""},{default:R(()=>[j(Ie,{cols:"12",md:"6"},{default:R(()=>[j(Qo,{modelValue:f.name,"onUpdate:modelValue":p[1]||(p[1]=C=>f.name=C),disabled:f.isUpdating,color:"blue-grey-lighten-2",label:"Name"},null,8,["modelValue","disabled"])]),_:1}),j(Ie,{cols:"12",md:"6"},{default:R(()=>[j(Qo,{modelValue:f.title,"onUpdate:modelValue":p[2]||(p[2]=C=>f.title=C),disabled:f.isUpdating,color:"blue-grey-lighten-2",label:"Title"},null,8,["modelValue","disabled"])]),_:1}),j(Ie,{cols:"12"},{default:R(()=>[j(_S,{modelValue:f.friends,"onUpdate:modelValue":p[3]||(p[3]=C=>f.friends=C),disabled:f.isUpdating,items:f.people,color:"blue-grey-lighten-2","item-title":"name","item-value":"name",label:"Select",chips:"","closable-chips":"",multiple:""},{chip:R(({props:C,item:w})=>[j(aS,hn(C,{"prepend-avatar":w.raw.avatar,text:w.raw.name}),null,16,["prepend-avatar","text"])]),item:R(({props:C,item:w})=>[j(Hc,hn(C,{"prepend-avatar":w.raw.avatar,subtitle:w.raw.group,title:w.raw.name}),null,16,["prepend-avatar","subtitle","title"])]),_:1},8,["modelValue","disabled","items"])]),_:1})]),_:1})]),_:1})]),_:1}),j(Yo),j(qc,null,{default:R(()=>[j(ow,{modelValue:f.autoUpdate,"onUpdate:modelValue":p[4]||(p[4]=C=>f.autoUpdate=C),disabled:f.isUpdating,class:"mt-0 ms-2",color:"green-lighten-2",density:"compact",label:"Auto Update","hide-details":""},null,8,["modelValue","disabled"]),j(AS),j(di,{disabled:f.autoUpdate,loading:f.isUpdating,variant:f.isUpdating?"tonal":void 0,color:"blue-grey-lighten-3","prepend-icon":"mdi-update",onClick:p[5]||(p[5]=C=>f.isUpdating=!0)},{default:R(()=>[ze(" Update Now ")]),_:1},8,["disabled","loading","variant"])]),_:1})]),_:1},8,["loading"])]),_:1},8,["modelValue"])}const sB=en(nB,[["render",rB]]),aB={props:{event:{type:Object,default:()=>{}}},components:{ckeditor:X4.component,EventDialogEditParticipant:sB},setup(f,{emit:p}){const _=me([]),M=me(!1),I=me({...f.event,description:""}),v=me(!1),C=me(`${I.value.start.getHours()}:${String(I.value.start.getMinutes()).padStart(2,"0")}`);return{editor:tB,menudate:M,formatComa:cS,startTime:C,updateDateTime:()=>{if(C.value){const x=C.value.split(":");I.value.start.setHours(parseInt(x[0],10)),I.value.start.setMinutes(parseInt(x[1],10))}},dataToEdit:I,confirmation:()=>{const x=new FormData;x.append("file",_.value[0]),x.append("calendar",JSON.stringify(I.value)),x.append("participants",JSON.stringify(I.value.bigname)),yn.post("api/calendar_of_events/calendarEvents/",x).then(T=>{p("returnUpdateData")})},openDialog:()=>{v.value=!0},showDialog:v,eventFiles:_}}},cB=we("strong",null,"Время:",-1),lB={class:"pl-5"};function dB(f,p,_,M,I,v){return W(),pe(nt,null,{default:R(()=>[j(Rn,null,{default:R(()=>[j(Qo,{modelValue:M.dataToEdit.name,"onUpdate:modelValue":p[0]||(p[0]=C=>M.dataToEdit.name=C),placeholder:"Заголовок"},null,8,["modelValue"])]),_:1}),j(nw,null,{default:R(()=>[j(tw,{modelValue:M.menudate,"onUpdate:modelValue":p[3]||(p[3]=C=>M.menudate=C),"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":""},{activator:R(({props:C})=>[j(Uc,hn({modelValue:M.dataToEdit.start,"onUpdate:modelValue":p[1]||(p[1]=w=>M.dataToEdit.start=w),value:M.formatComa(M.dataToEdit.start),"no-resize":"",class:"my-textarea",rows:"1","hide-details":"",style:{width:"119px"},variant:"plain",density:"compact"},C),{"prepend-inner":R(()=>[j(li,hn(C,{icon:"mdi-calendar-today",color:"cyan-darken-3",size:"x-small"}),null,16)]),_:2},1040,["modelValue","value"])]),default:R(()=>[j(CS,{locale:"ru"},{default:R(()=>[j(vS,{modelValue:M.dataToEdit.start,"onUpdate:modelValue":[p[2]||(p[2]=C=>M.dataToEdit.start=C),M.updateDateTime],"show-adjacent-months":"","hide-header":"",border:"","no-time":""},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["modelValue"])]),_:1}),j(ci,{class:"pt-2"},{default:R(()=>[ze(ue(M.dataToEdit)+" ",1),j(Uc,{modelValue:M.dataToEdit.place,"onUpdate:modelValue":p[4]||(p[4]=C=>M.dataToEdit.place=C),placeholder:"Местопроведение события"},null,8,["modelValue"]),j(rw,{label:"File input w/ chips",chips:"",multiple:"",modelValue:M.eventFiles,"onUpdate:modelValue":p[5]||(p[5]=C=>M.eventFiles=C)},null,8,["modelValue"]),cB,we("ul",lB,[j(Ve,null,{default:R(()=>[j(Ie,null,{default:R(()=>[j(Qo,{label:"Начало события",modelValue:M.startTime,"onUpdate:modelValue":[p[6]||(p[6]=C=>M.startTime=C),M.updateDateTime],suffix:"PST",type:"time"},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1})])]),_:1}),j(qc,null,{default:R(()=>[j(li,{icon:"mdi-check",color:"green",class:"pb-1",onClick:M.confirmation},null,8,["onClick"])]),_:1})]),_:1})}const uB=en(aB,[["render",dB]]),hB={props:{event:{type:Object,default:()=>{}}},setup(){return{formatText:p=>p!==null?p.replaceAll('src="/media/uploads',`src="${$i}media/uploads`):""}}},gB={class:"pl-3"},mB=["innerHTML"],pB=we("strong",null,"Время:",-1),fB={class:"pl-5"};function kB(f,p,_,M,I,v){return W(),pe(nt,null,{default:R(()=>[j(Rn,null,{default:R(()=>[j(li,{color:"indigo-darken-3",class:"pb-1"},{default:R(()=>[ze(ue(_.event.icon),1)]),_:1}),we("span",gB,ue(_.event.name),1)]),_:1}),j(nw,null,{default:R(()=>[we("strong",null,ue(_.event.start&&_.event.start.format("DD.MM.YYYY")),1)]),_:1}),j(ci,{class:"pt-2"},{default:R(()=>[we("p",{class:"pb-3",innerHTML:M.formatText(_.event.content)},null,8,mB),pB,we("ul",fB,[we("li",null," Начало: "+ue(_.event.start&&_.event.start.formatTime()),1),we("li",null," Окончание: "+ue(_.event.end&&_.event.end.formatTime()),1)])]),_:1})]),_:1})}const bB=en(hB,[["render",kB]]),wB={components:{eventDialogEdit:uB,eventDialogInfo:bB},props:{opendialog:{type:Boolean,default:!1},event:{type:Object,default:()=>{}}},setup(f,{emit:p}){const _=me(!1),M=Zo({get:()=>f.opendialog,set:w=>p("update:opendialog",w)});return{mydialog:M,editEvent:_,chekEvent:()=>{},modeEvent:()=>{_.value=!_.value},returnUpdateData:()=>{M.value=!1,p("returnUpdateData")}}}};function _B(f,p,_,M,I,v){return W(),pe(xs,{modelValue:M.mydialog,"onUpdate:modelValue":p[0]||(p[0]=C=>M.mydialog=C),"max-width":"700"},{default:R(()=>[j(nt,null,{default:R(()=>[j(Rn,null,{default:R(()=>[j(li,{icon:M.editEvent?"mdi-book-open-variant":"mdi-pencil",color:"indigo-darken-3",class:"pb-1",onClick:M.modeEvent},null,8,["icon","onClick"])]),_:1})]),_:1}),(W(),pe(Wc(M.editEvent?"eventDialogEdit":"eventDialogInfo"),{event:_.event,onReturnUpdateData:M.returnUpdateData},null,40,["event","onReturnUpdateData"]))]),_:1},8,["modelValue"])}const AB=en(wB,[["render",_B]]);const CB={components:{VueCal:Q4,EventDialog:AB},setup(){const f=me({}),p=["bg-red","bg-blue","bg-green"],_=me(!1),M=$i.slice(0,-1),I=me([]),v=x=>{f.value=x,_.value=!0};function C(){yn.get("api/calendar_of_events/calendarEvents/").then(x=>{x.data.forEach(T=>{T.start=lS(T.start),T.end=T.start}),I.value=x.data})}const w=()=>{C()};C();const g=me(null),D=Zo({get:()=>{const x=new Date(g.value);let T="сегодня";return x.getFullYear()!="1970"&&(T=`${x.getDate()} число`),T}});return{selectedEvent:f,events:I,selectedDate:g,f_generalvacation:C,showDialog:_,onEventClick:v,eventsCssClasses:p,burl:M,returnUpdateData:w,selData:D}}};function vB(f,p,_,M,I,v){const C=ut("vue-cal"),w=ut("event-dialog");return W(),pe(Ve,null,{default:R(()=>[j(Ie,{class:"flex-column pr-0"},{default:R(()=>[j(nt,{class:"h-100"},{default:R(()=>[j(C,{locale:"ru",xsmall:"","selected-date":new Date,"hide-view-selector":"",todayButton:"",events:M.events,"active-view":"month","disable-views":["years","year","week","day"],onCellFocus:p[1]||(p[1]=g=>M.selectedDate=g)},{"arrow-prev":R(()=>[j(li,{icon:"mdi-menu-left"})]),"arrow-next":R(()=>[j(li,{icon:"mdi-menu-right"})]),"today-button":R(()=>[j(iw,{text:"Сегодня",location:"bottom"},{activator:R(({props:g})=>[j(li,hn({onClick:p[0]||(p[0]=D=>M.selectedDate=new Date)},g,{icon:"mdi-crosshairs-gps",size:"x-small",class:"pr-3",color:"more_details_btn"}),null,16)]),_:1})]),_:1},8,["selected-date","events"]),j(w,{event:M.selectedEvent,opendialog:M.showDialog,onReturnUpdateData:M.returnUpdateData,"onUpdate:opendialog":p[2]||(p[2]=g=>M.showDialog=g)},null,8,["event","opendialog","onReturnUpdateData"])]),_:1})]),_:1}),j(Ie,null,{default:R(()=>[j(nt,{class:"h-100"},{default:R(()=>[j(Rn,{class:"text-center"},{default:R(()=>[ze("События на "+ue(M.selData),1)]),_:1}),j(C,{locale:"ru",hideTitleBar:"","active-view":"day","disable-views":["years","year","month","week"],"selected-date":M.selectedDate,xsmall:"","hide-view-selector":"",time:!1,events:M.events},{"cell-content":R(({view:g,events:D})=>[["week","day"].includes(g.id)&&!D.length?(W(),pe(ys,{key:0,class:"align-end text-white cursor-default",height:"200",src:`${M.burl}/media/newsimage/calendar_stub.jpg`,cover:""},null,8,["src"])):(W(),pe(nt,{key:1},{default:R(()=>[j($c,{lines:"one"},{default:R(()=>[(W(!0),J(He,null,Qe(D,x=>(W(),pe(Hc,{onClick:T=>M.onEventClick(x),key:x.pk,title:x.name,subtitle:x.description},null,8,["onClick","title","subtitle"]))),128))]),_:2},1024)]),_:2},1024))]),_:1},8,["selected-date","events"])]),_:1})]),_:1})]),_:1})}const yB=en(CB,[["render",vB]]);const xB={components:{CarouselList:TS,CarouselNumbers:SS,LoadRound:fS,DigitalLetna:HS,EventCalendar:yB,NewsHome:OS},setup(){const f=dS(),p=me([]),_=me(null),M=Xb();uS(),vs(()=>{I()});const I=()=>{yn.get("api/watcher/selectedlinks/").then(v=>{p.value=v.data})};return{accountStore:M,appStore:f,favoritLinks:I,favorit:p,toggle:_}}};function DB(f,p,_,M,I,v){const C=ut("Carousel-list"),w=ut("digital-letna"),g=ut("news-home");return W(),pe(Gc,{fluid:"",class:"d-flex mx-0 pa-0"},{default:R(()=>[j(Ve,{class:"ma-2"},{default:R(()=>[j(Ie,{class:"d-flex flex-column",lg:"7",md:"12",cols:"12"},{default:R(()=>[j(Ve,{class:"flex-grow-0"},{default:R(()=>[j(Ie,{class:"pa-1"},{default:R(()=>[j(C)]),_:1})]),_:1}),j(Ve,{style:{height:"250px"}},{default:R(()=>[j(Ie,{class:"d-flex flex-column pa-1"})]),_:1})]),_:1}),j(Ie,{class:"d-flex flex-column",lg:"5",md:"12",cols:"12"},{default:R(()=>[j(Ve,null,{default:R(()=>[j(Ie,{class:"d-flex flex-column"},{default:R(()=>[j(Ve,null,{default:R(()=>[j(Ie,{lg:"4",md:"2",cols:"12",class:"pa-1",style:{"min-height":"250px"}},{default:R(()=>[j(w)]),_:1}),j(Ie,{class:"d-flex flex-column pa-1",lg:"8",md:"10",cols:"12",style:{"min-height":"550px"}},{default:R(()=>[j(nt,{class:"h-100 d-flex flex-column"},{default:R(()=>[j(Ve,{class:"d-flex justify-md-center"},{default:R(()=>[j(Ie,{class:"flex-column d-flex"},{default:R(()=>[j(g)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),j(Ve,{class:"flex-grow-0"},{default:R(()=>[j(Ie,{class:"pa-1"},{default:R(()=>[j(nt,{class:"flex-colmn"},{default:R(()=>[j(Qb,{class:dt(["mx-auto",M.favorit.length>10?"mx-n3":""]),"max-width":"800"},{default:R(()=>[j(Yb,{"show-arrows":""},{default:R(()=>[(W(!0),J(He,null,Qe(M.favorit,D=>(W(),pe(sw,{key:D},{default:R(()=>[j(hS,{modelValue:M.toggle,"onUpdate:modelValue":p[0]||(p[0]=x=>M.toggle=x),divided:"",variant:"outlined"},{default:R(()=>[j(iw,{text:D.pages__page,location:"top"},{activator:R(({props:x})=>[j(di,hn({ref_for:!0},x,{icon:D.pages__ico,to:D.pages__fullPath}),null,16,["icon","to"])]),_:2},1032,["text"])]),_:2},1032,["modelValue"])]),_:2},1024))),128))]),_:1})]),_:1},8,["class"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const XB=en(xB,[["render",DB]]);export{XB as default};
|