/**
 * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
 */let h;try{h={window,document}}catch{/* istanbul ignore next -- @preserve */h={window:{},document:{}}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Et(){try{return navigator.userAgent.toLowerCase()}catch{return""}}const T=Et(),S={isMac:Q(T),isWindows:xt(T),isGecko:At(T),isSafari:Tt(T),isiOS:St(T),isAndroid:It(T),isBlink:Lt(T),get isMediaForcedColors(){return Rt()},get isMotionReduced(){return Ft()},features:{isRegExpUnicodePropertySupported:Mt()}};function Q(t){return t.indexOf("macintosh")>-1}function xt(t){return t.indexOf("windows")>-1}function At(t){return!!t.match(/gecko\/\d+/)}function Tt(t){return t.indexOf(" applewebkit/")>-1&&t.indexOf("chrome")===-1}function St(t){return!!t.match(/iphone|ipad/i)||Q(t)&&navigator.maxTouchPoints>0}function It(t){return t.indexOf("android")>-1}function Lt(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}function Mt(){let t=!1;try{t="\u0107".search(new RegExp("[\\p{L}]","u"))===0}catch{}return t}function Rt(){return h.window.matchMedia?h.window.matchMedia("(forced-colors: active)").matches:!1}function Ft(){return h.window.matchMedia?h.window.matchMedia("(prefers-reduced-motion)").matches:!1}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Ot(t,e,n,i){n=n||function(l,a){return l===a};const r=Array.isArray(t)?t:Array.prototype.slice.call(t),s=Array.isArray(e)?e:Array.prototype.slice.call(e),o=Ne(r,s,n);return i?Be(o,s.length):Ve(s,o)}function Ne(t,e,n){const i=kt(t,e,n);if(i===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const r=Pt(t,i),s=Pt(e,i),o=kt(r,s,n),c=t.length-o,l=e.length-o;return{firstIndex:i,lastIndexOld:c,lastIndexNew:l}}function kt(t,e,n){for(let i=0;i<Math.max(t.length,e.length);i++)if(t[i]===void 0||e[i]===void 0||!n(t[i],e[i]))return i;return-1}function Pt(t,e){return t.slice(e).reverse()}function Ve(t,e){const n=[],{firstIndex:i,lastIndexOld:r,lastIndexNew:s}=e;return s-i>0&&n.push({index:i,type:"insert",values:t.slice(i,s)}),r-i>0&&n.push({index:i+(s-i),type:"delete",howMany:r-i}),n}function Be(t,e){const{firstIndex:n,lastIndexOld:i,lastIndexNew:r}=t;if(n===-1)return Array(e).fill("equal");let s=[];return n>0&&(s=s.concat(Array(n).fill("equal"))),r-n>0&&(s=s.concat(Array(r-n).fill("insert"))),i-n>0&&(s=s.concat(Array(i-n).fill("delete"))),r<e&&(s=s.concat(Array(e-r).fill("equal"))),s}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Z(t,e,n){n=n||function(y,O){return y===O};const i=t.length,r=e.length;if(i>200||r>200||i+r>300)return Z.fastDiff(t,e,n,!0);let s,o;if(r<i){const y=t;t=e,e=y,s="delete",o="insert"}else s="insert",o="delete";const c=t.length,l=e.length,a=l-c,f={},u={};function b(y){const O=(u[y-1]!==void 0?u[y-1]:-1)+1,X=u[y+1]!==void 0?u[y+1]:-1,_t=O>X?-1:1;f[y+_t]&&(f[y]=f[y+_t].slice(0)),f[y]||(f[y]=[]),f[y].push(O>X?s:o);let k=Math.max(O,X),J=k-y;for(;J<c&&k<l&&n(t[J],e[k]);)J++,k++,f[y].push("equal");return k}let x=0,_;do{for(_=-x;_<a;_++)u[_]=b(_);for(_=a+x;_>a;_--)u[_]=b(_);u[a]=b(a),x++}while(u[a]!==l);return f[a].slice(1)}Z.fastDiff=Ot;/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function De(t,e){const n=[];let i=0,r=null;return t.forEach(o=>{o=="equal"?(s(),i++):o=="insert"?(r&&r.type=="insert"?r.values.push(e[i]):(s(),r={type:"insert",index:i,values:[e[i]]}),i++):r&&r.type=="delete"?r.howMany++:(s(),r={type:"delete",index:i,howMany:1})}),s(),n;function s(){r&&(n.push(r),r=null)}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function je(t,e){if(t===e&&We(t))return!0;const n=Nt(t),i=Nt(e);for(const r of n)if(i.has(r))return!0;return!1}function Nt(t){const e=[t],n=new Set;for(;e.length>0;){const i=e.shift();if(!(n.has(i)||Ce(i)))if(n.add(i),i[Symbol.iterator])try{e.push(...i)}catch{}else e.push(...Object.values(i))}return n}function Ce(t){const e=Object.prototype.toString.call(t);return e==="[object Number]"||e==="[object Boolean]"||e==="[object String]"||e==="[object Symbol]"||e==="[object Function]"||e==="[object Date]"||e==="[object RegExp]"||t===void 0||t===null||t instanceof EventTarget||t instanceof Event}function We(t){return typeof t=="object"&&t!==null}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function z(){return function t(){t.called=!0}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/class j{source;name;path;stop;off;return;constructor(e,n){this.source=e,this.name=n,this.path=[],this.stop=z(),this.off=z()}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/const w=new Array(256).fill("").map((t,e)=>("0"+e.toString(16)).slice(-2));function C(){const[t,e,n,i]=crypto.getRandomValues(new Uint32Array(4));return"e"+w[t>>0&255]+w[t>>8&255]+w[t>>16&255]+w[t>>24&255]+w[e>>0&255]+w[e>>8&255]+w[e>>16&255]+w[e>>24&255]+w[n>>0&255]+w[n>>8&255]+w[n>>16&255]+w[n>>24&255]+w[i>>0&255]+w[i>>8&255]+w[i>>16&255]+w[i>>24&255]}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/const W={get(t="normal"){return typeof t!="number"?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Vt(t,e){const n=W.get(e.priority);let i=0,r=t.length;for(;i<r;){const s=i+r>>1;W.get(t[s].priority)<n?r=s:i=s+1}t.splice(i,0,e)}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/const Bt="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class d extends Error{context;data;constructor(e,n,i,r){super($e(e,i,r)),this.name="CKEditorError",this.context=n,this.data=i,r&&(this.stack=r.stack)}is(e){return e==="CKEditorError"}static rethrowUnexpectedError(e,n){throw e.is&&e.is("CKEditorError")?e:new d("unexpected-error",n,void 0,e)}}function Ke(t,e){console.warn(...jt(t,e))}function Ue(t,e){console.error(...jt(t,e))}function Dt(t){return`
Read more: ${Bt}#error-${t}`}function $e(t,e,n){const i=new WeakSet,s=e?` ${JSON.stringify(e,(l,a)=>{if(typeof a=="object"&&a!==null){if(i.has(a))return`[object ${a.constructor.name}]`;i.add(a)}return a})}`:"",o=Dt(t),c=n?`
Original error: ${n.name}: ${n.message}`:"";return t+s+o+c}function jt(t,e){const n=Dt(t);return e?[t,e,n]:[t,n]}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/const Ct="47.6.0",He=new Date(2026,2,4);/* istanbul ignore next -- @preserve */if(globalThis.CKEDITOR_VERSION)throw new d("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=Ct;/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/const R=Symbol("listeningTo"),tt=Symbol("emitterId"),E=Symbol("delegations"),ve=A(Object);function A(t){if(!t)return ve;class e extends t{on(i,r,s){this.listenTo(this,i,r,s)}once(i,r,s){let o=!1;const c=(l,...a)=>{o||(o=!0,l.off(),r.call(this,l,...a))};this.listenTo(this,i,c,s)}off(i,r){this.stopListening(this,i,r)}listenTo(i,r,s,o={}){let c,l;this[R]||(this[R]={});const a=this[R];K(i)||et(i);const f=K(i);(c=a[f])||(c=a[f]={emitter:i,callbacks:{}}),(l=c.callbacks[r])||(l=c.callbacks[r]=[]),l.push(s),Xe(this,i,r,s,o)}stopListening(i,r,s){const o=this[R];let c=i&&K(i);const l=o&&c?o[c]:void 0,a=l&&r?l.callbacks[r]:void 0;if(!(!o||i&&!l||r&&!a))if(s)it(this,i,r,s),a.indexOf(s)!==-1&&(a.length===1?delete l.callbacks[r]:it(this,i,r,s));else if(a){for(;s=a.pop();)it(this,i,r,s);delete l.callbacks[r]}else if(l){for(r in l.callbacks)this.stopListening(i,r);delete o[c]}else{for(c in o)this.stopListening(o[c].emitter);delete this[R]}}fire(i,...r){try{const s=i instanceof j?i:new j(this,i),o=s.name;let c=qe(this,o);if(s.path.push(this),c){c=c.slice();for(let a=0;a<c.length;a++){const f=c[a].callback;if(f.call(this,s,...r),s.off.called&&(delete s.off.called,this._removeEventListener(o,f)),s.stop.called)break}}const l=this[E];if(l){const a=l.get(o),f=l.get("*");a&&Ut(a,s,r),f&&Ut(f,s,r)}return s.return}catch(s){/* istanbul ignore next -- @preserve */d.rethrowUnexpectedError(s,this)}}delegate(...i){return{to:(r,s)=>{this[E]||(this[E]=new Map),i.forEach(o=>{const c=this[E].get(o);c?c.set(r,s):this[E].set(o,new Map([[r,s]]))})}}}stopDelegating(i,r){if(this[E])if(!i)this[E].clear();else if(!r)this[E].delete(i);else{const s=this[E].get(i);s&&s.delete(r)}}_addEventListener(i,r,s){Ye(this,i);const o=nt(this,i),c=W.get(s.priority),l={callback:r,priority:c};for(const a of o)Vt(a,l)}_removeEventListener(i,r){const s=nt(this,i);for(const o of s)for(let c=0;c<o.length;c++)o[c].callback==r&&(o.splice(c,1),c--)}}return e}function Wt(t,e){const n=t[R];return n&&n[e]?n[e].emitter:null}function et(t,e){t[tt]||(t[tt]=e||C())}function K(t){return t[tt]}function Kt(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function Ge(){return{callbacks:[],childEvents:[]}}function Ye(t,e){const n=Kt(t);if(n[e])return;let i=e,r=null;const s=[];for(;i!==""&&!n[i];)n[i]=Ge(),s.push(n[i]),r&&n[i].childEvents.push(r),r=i,i=i.substr(0,i.lastIndexOf(":"));if(i!==""){for(const o of s)o.callbacks=n[i].callbacks.slice();n[i].childEvents.push(r)}}function nt(t,e){const n=Kt(t)[e];if(!n)return[];let i=[n.callbacks];for(let r=0;r<n.childEvents.length;r++){const s=nt(t,n.childEvents[r]);i=i.concat(s)}return i}function qe(t,e){if(!t._events)return null;let n=e;do{const i=t._events[n];if(i&&i.callbacks&&i.callbacks.length)return i.callbacks;const r=n.lastIndexOf(":");n=r>-1?n.substring(0,r):""}while(n);return null}function Ut(t,e,n){for(let[i,r]of t){r?typeof r=="function"&&(r=r(e.name)):r=e.name;const s=new j(e.source,r);s.path=[...e.path],i.fire(s,...n)}}function Xe(t,e,n,i,r){e._addEventListener?e._addEventListener(n,i,r):t._addEventListener.call(e,n,i,r)}function it(t,e,n,i){e._removeEventListener?e._removeEventListener(n,i):t._removeEventListener.call(e,n,i)}function Je(t){return t==="__proto__"}function Qe(t){return t!==null&&(typeof t=="object"||typeof t=="function")}function rt(t){return t==null||typeof t!="object"&&typeof t!="function"}function $t(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}function Ht(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Ze="[object RegExp]",vt="[object String]",Gt="[object Number]",Yt="[object Boolean]",qt="[object Arguments]",ze="[object Symbol]",tn="[object Date]",en="[object Map]",nn="[object Set]",rn="[object Array]",sn="[object ArrayBuffer]",on="[object Object]",cn="[object DataView]",ln="[object Uint8Array]",an="[object Uint8ClampedArray]",fn="[object Uint16Array]",un="[object Uint32Array]",dn="[object Int8Array]",hn="[object Int16Array]",pn="[object Int32Array]",gn="[object Float32Array]",mn="[object Float64Array]";function st(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function bn(t,e){return F(t,void 0,t,new Map,e)}function F(t,e,n,i=new Map,r=void 0){const s=r?.(t,e,n,i);if(s!=null)return s;if(rt(t))return t;if(i.has(t))return i.get(t);if(Array.isArray(t)){const o=new Array(t.length);i.set(t,o);for(let c=0;c<t.length;c++)o[c]=F(t[c],c,n,i,r);return Object.hasOwn(t,"index")&&(o.index=t.index),Object.hasOwn(t,"input")&&(o.input=t.input),o}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const o=new RegExp(t.source,t.flags);return o.lastIndex=t.lastIndex,o}if(t instanceof Map){const o=new Map;i.set(t,o);for(const[c,l]of t)o.set(c,F(l,c,n,i,r));return o}if(t instanceof Set){const o=new Set;i.set(t,o);for(const c of t)o.add(F(c,void 0,n,i,r));return o}if(typeof Buffer<"u"&&Buffer.isBuffer(t))return t.subarray();if(st(t)){const o=new(Object.getPrototypeOf(t)).constructor(t.length);i.set(t,o);for(let c=0;c<t.length;c++)o[c]=F(t[c],c,n,i,r);return o}if(t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){const o=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return i.set(t,o),I(o,t,n,i,r),o}if(typeof File<"u"&&t instanceof File){const o=new File([t],t.name,{type:t.type});return i.set(t,o),I(o,t,n,i,r),o}if(t instanceof Blob){const o=new Blob([t],{type:t.type});return i.set(t,o),I(o,t,n,i,r),o}if(t instanceof Error){const o=new t.constructor;return i.set(t,o),o.message=t.message,o.name=t.name,o.stack=t.stack,o.cause=t.cause,I(o,t,n,i,r),o}if(typeof t=="object"&&yn(t)){const o=Object.create(Object.getPrototypeOf(t));return i.set(t,o),I(o,t,n,i,r),o}return t}function I(t,e,n=t,i,r){const s=[...Object.keys(e),...$t(e)];for(let o=0;o<s.length;o++){const c=s[o],l=Object.getOwnPropertyDescriptor(t,c);(l==null||l.writable)&&(t[c]=F(e[c],c,n,i,r))}}function yn(t){switch(Ht(t)){case qt:case rn:case sn:case cn:case Yt:case tn:case gn:case mn:case dn:case hn:case pn:case en:case Gt:case on:case Ze:case nn:case vt:case ze:case ln:case an:case fn:case un:return!0;default:return!1}}function Xt(t,e){return bn(t,(n,i,r,s)=>{const o=e?.(n,i,r,s);if(o!=null)return o;if(typeof t=="object")switch(Object.prototype.toString.call(t)){case Gt:case vt:case Yt:{const c=new t.constructor(t?.valueOf());return I(c,t),c}case qt:{const c={};return I(c,t),c.length=t.length,c[Symbol.iterator]=t[Symbol.iterator],c}default:return}})}function Jt(t){return Xt(t)}function Qt(t){return t!==null&&typeof t=="object"&&Ht(t)==="[object Arguments]"}function ot(t){return typeof t=="object"&&t!==null}function Zt(t){return typeof t=="string"||t instanceof String}function wn(){}function _n(t){return st(t)}function L(t){if(typeof t!="object"||t==null)return!1;if(Object.getPrototypeOf(t)===null)return!0;if(Object.prototype.toString.call(t)!=="[object Object]"){const n=t[Symbol.toStringTag];return n==null||!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable?!1:t.toString()===`[object ${n}]`}let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function En(t){if(rt(t))return t;if(Array.isArray(t)||st(t)||t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);const e=Object.getPrototypeOf(t),n=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new n(t);if(t instanceof RegExp){const i=new n(t);return i.lastIndex=t.lastIndex,i}if(t instanceof DataView)return new n(t.buffer.slice(0));if(t instanceof Error){const i=new n(t.message);return i.stack=t.stack,i.name=t.name,i.cause=t.cause,i}if(typeof File<"u"&&t instanceof File)return new n([t],t.name,{type:t.type,lastModified:t.lastModified});if(typeof t=="object"){const i=Object.create(e);return Object.assign(i,t)}return t}function xn(t,...e){const n=e.slice(0,-1),i=e[e.length-1];let r=t;for(let s=0;s<n.length;s++){const o=n[s];r=U(r,o,i,new Map)}return r}function U(t,e,n,i){if(rt(t)&&(t=Object(t)),e==null||typeof e!="object")return t;if(i.has(e))return En(i.get(e));if(i.set(e,t),Array.isArray(e)){e=e.slice();for(let s=0;s<e.length;s++)e[s]=e[s]??void 0}const r=[...Object.keys(e),...$t(e)];for(let s=0;s<r.length;s++){const o=r[s];if(Je(o))continue;let c=e[o],l=t[o];if(Qt(c)&&(c={...c}),Qt(l)&&(l={...l}),typeof Buffer<"u"&&Buffer.isBuffer(c)&&(c=Jt(c)),Array.isArray(c))if(typeof l=="object"&&l!=null){const f=[],u=Reflect.ownKeys(l);for(let b=0;b<u.length;b++){const x=u[b];f[x]=l[x]}l=f}else l=[];const a=n(l,c,o,t,e,i);a!=null?t[o]=a:Array.isArray(c)||ot(l)&&ot(c)?t[o]=U(l,c,n,i):l==null&&L(c)?t[o]=U({},c,n,i):l==null&&_n(c)?t[o]=Jt(c):(l===void 0||c!==void 0)&&(t[o]=c)}return t}function An(t,...e){return xn(t,...e,wn)}function zt(t){return typeof t=="function"}function te(t){return ot(t)&&t.nodeType===1&&!L(t)}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/const P=Symbol("observableProperties"),N=Symbol("boundObservables"),V=Symbol("boundProperties"),M=Symbol("decoratedMethods"),ee=Symbol("decoratedOriginal"),Tn=ct(A());function ct(t){if(!t)return Tn;class e extends t{set(i,r){if(Qe(i)){Object.keys(i).forEach(o=>{this.set(o,i[o])},this);return}lt(this);const s=this[P];if(i in this&&!s.has(i))throw new d("observable-set-cannot-override",this);Object.defineProperty(this,i,{enumerable:!0,configurable:!0,get(){return s.get(i)},set(o){const c=s.get(i);let l=this.fire(`set:${i}`,i,o,c);l===void 0&&(l=o),(c!==l||!s.has(i))&&(s.set(i,l),this.fire(`change:${i}`,i,l,c))}}),this[i]=r}bind(...i){if(!i.length||!ne(i))throw new d("observable-bind-wrong-properties",this);if(new Set(i).size!==i.length)throw new d("observable-bind-duplicate-properties",this);lt(this);const r=this[V];i.forEach(o=>{if(r.has(o))throw new d("observable-bind-rebind",this)});const s=new Map;return i.forEach(o=>{const c={property:o,to:[]};r.set(o,c),s.set(o,c)}),{to:Sn,toMany:In,_observable:this,_bindProperties:i,_to:[],_bindings:s}}unbind(...i){if(!this[P])return;const r=this[V],s=this[N];if(i.length){if(!ne(i))throw new d("observable-unbind-wrong-properties",this);i.forEach(o=>{const c=r.get(o);c&&(c.to.forEach(([l,a])=>{const f=s.get(l),u=f[a];u.delete(c),u.size||delete f[a],Object.keys(f).length||(s.delete(l),this.stopListening(l,"change"))}),r.delete(o))})}else s.forEach((o,c)=>{this.stopListening(c,"change")}),s.clear(),r.clear()}decorate(i){lt(this);const r=this[i];if(!r)throw new d("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:i});this.on(i,(s,o)=>{s.return=r.apply(this,o)}),this[i]=function(...s){return this.fire(i,s)},this[i][ee]=r,this[M]||(this[M]=[]),this[M].push(i)}stopListening(i,r,s){if(!i&&this[M]){for(const o of this[M])this[o]=this[o][ee];delete this[M]}super.stopListening(i,r,s)}[P];[M];[V];[N]}return e}function lt(t){t[P]||(Object.defineProperty(t,P,{value:new Map}),Object.defineProperty(t,N,{value:new Map}),Object.defineProperty(t,V,{value:new Map}))}function Sn(...t){const e=Mn(...t),n=Array.from(this._bindings.keys()),i=n.length;if(!e.callback&&e.to.length>1)throw new d("observable-bind-to-no-callback",this);if(i>1&&e.callback)throw new d("observable-bind-to-extra-callback",this);e.to.forEach(r=>{if(r.properties.length&&r.properties.length!==i)throw new d("observable-bind-to-properties-length",this);r.properties.length||(r.properties=this._bindProperties)}),this._to=e.to,e.callback&&(this._bindings.get(n[0]).callback=e.callback),On(this._observable,this._to),Fn(this),this._bindProperties.forEach(r=>{ie(this._observable,r)})}function In(t,e,n){if(this._bindings.size>1)throw new d("observable-bind-to-many-not-one-binding",this);this.to(...Ln(t,e),n)}function Ln(t,e){const n=t.map(i=>[i,e]);return Array.prototype.concat.apply([],n)}function ne(t){return t.every(e=>typeof e=="string")}function Mn(...t){if(!t.length)throw new d("observable-bind-to-parse-error",null);const e={to:[]};let n;return typeof t[t.length-1]=="function"&&(e.callback=t.pop()),t.forEach(i=>{if(typeof i=="string")n.properties.push(i);else if(typeof i=="object")n={observable:i,properties:[]},e.to.push(n);else throw new d("observable-bind-to-parse-error",null)}),e}function Rn(t,e,n,i){const r=t[N],s=r.get(n),o=s||{};o[i]||(o[i]=new Set),o[i].add(e),s||r.set(n,o)}function Fn(t){let e;t._bindings.forEach((n,i)=>{t._to.forEach(r=>{e=r.properties[n.callback?0:t._bindProperties.indexOf(i)],n.to.push([r.observable,e]),Rn(t._observable,n,r.observable,e)})})}function ie(t,e){const i=t[V].get(e);let r;i.callback?r=i.callback.apply(t,i.to.map(s=>s[0][s[1]])):(r=i.to[0],r=r[0][r[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=r:t.set(e,r)}function On(t,e){e.forEach(n=>{const i=t[N];let r;i.get(n.observable)||t.listenTo(n.observable,"change",(s,o)=>{r=i.get(n.observable)[o],r&&r.forEach(c=>{ie(t,c.property)})})})}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/class kn{_replacedElements;constructor(){this._replacedElements=[]}replace(e,n){this._replacedElements.push({element:e,newElement:n}),e.style.display="none",n&&e.parentNode.insertBefore(n,e.nextSibling)}restore(){this._replacedElements.forEach(({element:e,newElement:n})=>{e.style.display="",n&&n.remove()}),this._replacedElements=[]}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Pn(t){let e=new AbortController;function n(...i){return e.abort(),e=new AbortController,t(e.signal,...i)}return n.abort=()=>e.abort(),n}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Nn(t){let e=0;for(const n of t)e++;return e}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Vn(t,e){const n=Math.min(t.length,e.length);for(let i=0;i<n;i++)if(t[i]!=e[i])return i;return t.length==e.length?"same":t.length<e.length?"prefix":"extension"}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function $(t){return!!(t&&t[Symbol.iterator])}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Bn(t,e,n={},i=[]){const r=n&&n.xmlns,s=r?t.createElementNS(r,e):t.createElement(e);for(const o in n)s.setAttribute(o,n[o]);(Zt(i)||!$(i))&&(i=[i]);for(let o of i)Zt(o)&&(o=t.createTextNode(o)),s.appendChild(o);return s}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/class Dn{_config;constructor(e,n){this._config=Object.create(null),n&&this.define(re(n)),e&&this._setObjectToTarget(this._config,e)}set(e,n){this._setToTarget(this._config,e,n)}define(e,n){this._setToTarget(this._config,e,n,!0)}get(e){return this._getFromSource(this._config,e)}*names(){for(const e of Object.keys(this._config))yield e}_setToTarget(e,n,i,r=!1){if(L(n)){this._setObjectToTarget(e,n,r);return}const s=n.split(".");n=s.pop();for(const o of s)L(e[o])||(e[o]=Object.create(null)),e=e[o];if(L(i)){L(e[n])||(e[n]=Object.create(null)),e=e[n],this._setObjectToTarget(e,i,r);return}r&&typeof e[n]<"u"||(e[n]=i)}_getFromSource(e,n){const i=n.split(".");n=i.pop();for(const r of i){if(!L(e[r])){e=null;break}e=e[r]}return e?re(e[n]):void 0}_setObjectToTarget(e,n,i){Object.keys(n).forEach(r=>{this._setToTarget(e,r,n[r],i)})}}function re(t){return Xt(t,jn)}function jn(t){return te(t)||typeof t=="function"?t:void 0}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function at(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function B(t){const e=Object.prototype.toString.apply(t);return e=="[object Window]"||e=="[object global]"}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/const Cn=H(A());function H(t){if(!t)return Cn;class e extends t{listenTo(i,r,s,o={}){if(at(i)||B(i)||i instanceof h.window.EventTarget){const c={capture:!!o.useCapture,passive:!!o.usePassive},l=this._getProxyEmitter(i,c)||new Wn(i,c);this.listenTo(l,r,s,o)}else super.listenTo(i,r,s,o)}stopListening(i,r,s){if(at(i)||B(i)||i instanceof h.window.EventTarget){const o=this._getAllProxyEmitters(i);for(const c of o)this.stopListening(c,r,s)}else super.stopListening(i,r,s)}_getProxyEmitter(i,r){return Wt(this,se(i,r))}_getAllProxyEmitters(i){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(r=>this._getProxyEmitter(i,r)).filter(r=>!!r)}}return e}class Wn extends A(){_domNode;_options;constructor(e,n){super(),et(this,se(e,n)),this._domNode=e,this._options=n}_domListeners;attach(e){if(this._domListeners&&this._domListeners[e])return;const n=this._createDomListener(e);this._domNode.addEventListener(e,n,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=n}detach(e){let n;this._domListeners[e]&&(!(n=this._events[e])||!n.callbacks.length)&&this._domListeners[e].removeListener()}_addEventListener(e,n,i){this.attach(e),A().prototype._addEventListener.call(this,e,n,i)}_removeEventListener(e,n){A().prototype._removeEventListener.call(this,e,n),this.detach(e)}_createDomListener(e){const n=i=>{this.fire(e,i)};return n.removeListener=()=>{this._domNode.removeEventListener(e,n,this._options),delete this._domListeners[e]},n}}function Kn(t){return t["data-ck-expando"]||(t["data-ck-expando"]=C())}function se(t,e){let n=Kn(t);for(const i of Object.keys(e).sort())e[i]&&(n+="-"+i);return n}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Un(t){let e=t.parentElement;if(!e)return null;for(;e.tagName!="BODY";){const n=e.style.overflowY||h.window.getComputedStyle(e).overflowY;if(n==="auto"||n==="scroll")break;if(e=e.parentElement,!e)return null}return e}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function ft(t){const e=[];let n=t;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)e.unshift(n),n=n.parentNode;return e}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function $n(t){return t instanceof HTMLTextAreaElement?t.value:t.innerHTML}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function ut(t){const e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Hn(t){if(!t.target)return null;const e=t.target.ownerDocument,n=t.clientX,i=t.clientY;let r=null;return e.caretRangeFromPoint&&e.caretRangeFromPoint(n,i)?r=e.caretRangeFromPoint(n,i):t.rangeParent&&(r=e.createRange(),r.setStart(t.rangeParent,t.rangeOffset),r.collapse(!0)),r}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function vn(t,e){const n=ft(t),i=ft(e);let r=0;for(;n[r]==i[r]&&n[r];)r++;return r===0?null:n[r-1]}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function dt(t){return!t||!t.parentNode||t.offsetParent===h.document.body?null:t.offsetParent}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function v(t){return Object.prototype.toString.call(t)=="[object Text]"}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function G(t){return Object.prototype.toString.apply(t)=="[object Range]"}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/const oe=["top","right","bottom","left","width","height"],Gn=new Set(["relative","absolute","fixed","sticky"]);class m{top;right;bottom;left;width;height;_source;constructor(e){const n=G(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),ht(e)||n)if(n){const i=m.getDomRangeRects(e);Y(this,m.getBoundingRect(i))}else Y(this,e.getBoundingClientRect());else if(B(e)){const{innerWidth:i,innerHeight:r}=e;Y(this,{top:0,right:i,bottom:r,left:0,width:i,height:r})}else Y(this,e)}clone(){return new m(this)}moveTo(e,n){return this.top=n,this.right=e+this.width,this.bottom=n+this.height,this.left=e,this}moveBy(e,n){return this.top+=n,this.right+=e,this.left+=e,this.bottom+=n,this}getIntersection(e){const n={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(n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0)return null;{const i=new m(n);return i._source=this._source,i}}getIntersectionArea(e){const n=this.getIntersection(e);return n?n.getArea():0}getArea(){return this.width*this.height}getVisible(){const e=this._source;let n=this.clone();if(ce(e))return n;let i=e,r=e.parentNode||e.commonAncestorContainer,s;for(;r&&!ce(r);){const o=Yn(r)==="visible";if(ae(i)&&(s=i),o||s&&le(s)==="absolute"&&!ae(r)){i=r,r=r.parentNode;continue}const c=new m(r),l=n.getIntersection(c);if(l)l.getArea()<n.getArea()&&(n=l);else return null;i=r,r=r.parentNode}return n}isEqual(e){for(const n of oe)if(this[n]!==e[n])return!1;return!0}contains(e){const n=this.getIntersection(e);return!!(n&&n.isEqual(e))}toAbsoluteRect(){const{scrollX:e,scrollY:n}=h.window,i=this.clone().moveBy(e,n);if(ht(i._source)){const r=dt(i._source);r&&qn(i,r)}return i}excludeScrollbarsAndBorders(){const e=this._source;let n,i,r;if(B(e))n=e.innerWidth-e.document.documentElement.clientWidth,i=e.innerHeight-e.document.documentElement.clientHeight,r=e.getComputedStyle(e.document.documentElement).direction;else{const s=ut(e);n=e.offsetWidth-e.clientWidth-s.left-s.right,i=e.offsetHeight-e.clientHeight-s.top-s.bottom,r=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=s.left,this.top+=s.top,this.right-=s.right,this.bottom-=s.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=n,r==="ltr"?this.right-=n:this.left+=n,this.height-=i,this.bottom-=i,this}static getDomRangeRects(e){const n=[],i=Array.from(e.getClientRects());if(i.length)for(const r of i){const s=new m(r);s._source=e,n.push(s)}else{let r=e.startContainer;v(r)&&(r=r.parentNode);const s=new m(r.getBoundingClientRect());s.right=s.left,s.width=0,n.push(s)}return n}static getBoundingRect(e){const n={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let i=0;for(const r of e)i++,n.left=Math.min(n.left,r.left),n.top=Math.min(n.top,r.top),n.right=Math.max(n.right,r.right),n.bottom=Math.max(n.bottom,r.bottom);return i==0?null:(n.width=n.right-n.left,n.height=n.bottom-n.top,new m(n))}}function Y(t,e){for(const n of oe)t[n]=e[n]}function ce(t){return ht(t)?t===t.ownerDocument.body:!1}function ht(t){return t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.getBoundingClientRect=="function"}function le(t){return t.ownerDocument.defaultView.getComputedStyle(t).position}function Yn(t){return t instanceof HTMLElement?t.ownerDocument.defaultView.getComputedStyle(t).overflow:"visible"}function ae(t){return t instanceof HTMLElement&&Gn.has(le(t))}function qn(t,e){const n=new m(e),i=ut(e);let r=0,s=0;r-=n.left,s-=n.top,r+=e.scrollLeft,s+=e.scrollTop,r-=i.left,s-=i.top,t.moveBy(r,s)}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/class p{_element;_callback;static _observerInstance=null;static _elementCallbacks=null;constructor(e,n){p._observerInstance||p._createObserver(),this._element=e,this._callback=n,p._addElementCallback(e,n),p._observerInstance.observe(e)}get element(){return this._element}destroy(){p._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,n){p._elementCallbacks||(p._elementCallbacks=new Map);let i=p._elementCallbacks.get(e);i||(i=new Set,p._elementCallbacks.set(e,i)),i.add(n)}static _deleteElementCallback(e,n){const i=p._getElementCallbacks(e);i&&(i.delete(n),i.size||(p._elementCallbacks.delete(e),p._observerInstance.unobserve(e))),p._elementCallbacks&&!p._elementCallbacks.size&&(p._observerInstance=null,p._elementCallbacks=null)}static _getElementCallbacks(e){return p._elementCallbacks?p._elementCallbacks.get(e):null}static _createObserver(){p._observerInstance=new h.window.ResizeObserver(e=>{for(const n of e){const i=p._getElementCallbacks(n.target);if(i)for(const r of i)r(n)}})}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Xn(t,e){t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Jn(t){return e=>e+t}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Qn(t){let e=0;for(;t.previousSibling;)t=t.previousSibling,e++;return e}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Zn(t,e,n){t.insertBefore(n,t.childNodes[e]||null)}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function zn(t){return t&&t.nodeType===Node.COMMENT_NODE}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function ti(t){try{h.document.createAttribute(t)}catch{return!1}return!0}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function fe(t){return t?v(t)?fe(t.parentElement):t.getClientRects?!!t.getClientRects().length:!1:!1}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function ei({element:t,target:e,positions:n,limiter:i,fitInViewport:r,viewportOffsetConfig:s}){zt(e)&&(e=e()),zt(i)&&(i=i());const o=dt(t),c=de(s),l=new m(t),a=ue(e,c);let f;if(!a||!c.getIntersection(a))return null;const u={targetRect:a,elementRect:l,positionedElementAncestor:o,viewportRect:c};if(!i&&!r)f=new he(n[0],u);else{if(i){const b=ue(i,c);b&&(u.limiterRect=b)}f=ni(n,u)}return f}function ue(t,e){const n=new m(t).getVisible();return n?n.getIntersection(e):null}function de(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);const e=new m(h.window);return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e.left+=t.left,e.right-=t.right,e.width-=t.left+t.right,e}function ni(t,e){const{elementRect:n}=e,i=n.getArea(),r=t.map(c=>new he(c,e)).filter(c=>!!c.name);let s=0,o=null;for(const c of r){const{limiterIntersectionArea:l,viewportIntersectionArea:a}=c;if(l===i)return c;const f=a**2+l**2;f>s&&(s=f,o=c)}return o}class he{name;config;_positioningFunctionCoordinates;_options;_cachedRect;_cachedAbsoluteRect;constructor(e,n){const i=e(n.targetRect,n.elementRect,n.viewportRect,n.limiterRect);if(!i)return;const{left:r,top:s,name:o,config:c}=i;this.name=o,this.config=c,this._positioningFunctionCoordinates={left:r,top:s},this._options=n}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._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top),this._cachedRect)}get _absoluteRect(){return this._cachedAbsoluteRect?this._cachedAbsoluteRect:(this._cachedAbsoluteRect=this._rect.toAbsoluteRect(),this._cachedAbsoluteRect)}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function ii(t){const e=t.parentNode;e&&e.removeChild(t)}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function ri(){const t=h.window.visualViewport;if(!t||!(S.isiOS||S.isSafari))return{left:0,top:0};const e=Math.max(Math.round(t.offsetLeft),0),n=Math.max(Math.round(t.offsetTop),0);return{left:e,top:n}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function si({target:t,viewportOffset:e=0,ancestorOffset:n=0,alignToTop:i,forceScroll:r}){const s=pt(t);let o=s,c=null;for(e=li(e);o;){let l;o==s?l=gt(t):l=gt(c),pe({parent:l,getRect:()=>mt(t,o),alignToTop:i,ancestorOffset:n,forceScroll:r});let a=mt(t,o);const f=mt(l,o);if(a.height>f.height){const u=a.getIntersection(f);u&&(a=u)}if(ci({window:o,rect:a,viewportOffset:e,alignToTop:i,forceScroll:r}),o.parent!=o){if(c=o.frameElement,o=o.parent,!c)return}else o=null}}function oi(t,e,n,i,r){const s=gt(t);pe({parent:s,getRect:()=>new m(t),ancestorOffset:e,limiterElement:n,alignToTop:i,forceScroll:r})}function ci({window:t,rect:e,alignToTop:n,forceScroll:i,viewportOffset:r}){const s=e.clone().moveBy(0,r.bottom),o=e.clone().moveBy(0,-r.top),c=new m(t).excludeScrollbarsAndBorders(),l=[o,s],a=n&&i,f=l.every(y=>c.contains(y));let{scrollX:u,scrollY:b}=t;const x=u,_=b;a?b-=c.top-e.top+r.top:f||(me(o,c)?b-=c.top-e.top+r.top:ge(s,c)&&(n?b+=e.top-c.top-r.top:b+=e.bottom-c.bottom+r.bottom)),f||(be(e,c)?u-=c.left-e.left+r.left:ye(e,c)&&(u+=e.right-c.right+r.right)),(u!=x||b!==_)&&t.scrollTo(u,b)}function pe({parent:t,getRect:e,alignToTop:n,forceScroll:i,ancestorOffset:r=0,limiterElement:s}){const o=pt(t),c=n&&i;let l,a,f;const u=s||o.document.body;for(;t!=u;)a=e(),l=new m(t).excludeScrollbarsAndBorders(),f=l.contains(a),c?t.scrollTop-=l.top-a.top+r:f||(me(a,l)?t.scrollTop-=l.top-a.top+r:ge(a,l)&&(n?t.scrollTop+=a.top-l.top-r:t.scrollTop+=a.bottom-l.bottom+r)),f||(be(a,l)?t.scrollLeft-=l.left-a.left+r:ye(a,l)&&(t.scrollLeft+=a.right-l.right+r)),t=t.parentNode}function ge(t,e){return t.bottom>e.bottom}function me(t,e){return t.top<e.top}function be(t,e){return t.left<e.left}function ye(t,e){return t.right>e.right}function pt(t){return G(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function gt(t){if(G(t)){let e=t.commonAncestorContainer;return v(e)&&(e=e.parentNode),e}else return t.parentNode}function mt(t,e){const n=pt(t),i=new m(t);if(n===e)return i;{let r=n;for(;r!=e;){const s=r.frameElement,o=new m(s).excludeScrollbarsAndBorders();i.moveBy(o.left,o.top),r=r.parent}}return i}function li(t){return typeof t=="number"?{top:t,bottom:t,left:t,right:t}:t}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/const ai={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21E7"},fi={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},we={37:"\u2190",38:"\u2191",39:"\u2192",40:"\u2193",9:"\u21E5",33:"Page Up",34:"Page Down"},g=mi(),ui=Object.fromEntries(Object.entries(g).map(([t,e])=>{let n;return e in we?n=we[e]:n=t.charAt(0).toUpperCase()+t.slice(1),[e,n]}));function D(t){let e;if(typeof t=="string"){if(e=g[t.toLowerCase()],!e)throw new d("keyboard-unknown-key",null,{key:t})}else e=t.keyCode+(t.altKey?g.alt:0)+(t.ctrlKey?g.ctrl:0)+(t.shiftKey?g.shift:0)+(t.metaKey?g.cmd:0);return e}function bt(t){return typeof t=="string"&&(t=bi(t)),t.map(e=>typeof e=="string"?pi(e):e).reduce((e,n)=>n+e,0)}function di(t,e){let n=bt(t);const i=e?e==="Mac":S.isMac||S.isiOS;return Object.entries(i?ai:fi).reduce((o,[c,l])=>((n&g[c])!=0&&(n&=~g[c],o+=l),o),"")+(n?ui[n]:"")}function hi(t){return t==g.arrowright||t==g.arrowleft||t==g.arrowup||t==g.arrowdown}function _e(t,e){const n=e==="ltr";switch(t){case g.arrowleft:return n?"left":"right";case g.arrowright:return n?"right":"left";case g.arrowup:return"up";case g.arrowdown:return"down"}}function pi(t){if(t.endsWith("!"))return D(t.slice(0,-1));const e=D(t);return(S.isMac||S.isiOS)&&e==g.ctrl?g.cmd:e}function gi(t,e){const n=_e(t,e);return n==="down"||n==="right"}function mi(){const t={pageup:33,pagedown:34,end:35,home:36,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++){const n=String.fromCharCode(e);t[n.toLowerCase()]=e}for(let e=48;e<=57;e++)t[e-48]=e;for(let e=112;e<=123;e++)t["f"+(e-111)]=e;return Object.assign(t,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),t}function bi(t){return t.split("+").map(e=>e.trim())}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/const yi=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig","ur","urd"];function yt(t){return yi.includes(t)?"rtl":"ltr"}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Ee(t){return Array.isArray(t)?t:[t]}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*//* istanbul ignore else -- @preserve */h.window.CKEDITOR_TRANSLATIONS||(h.window.CKEDITOR_TRANSLATIONS={});function wi(t,e,n){h.window.CKEDITOR_TRANSLATIONS[t]||(h.window.CKEDITOR_TRANSLATIONS[t]={});const i=h.window.CKEDITOR_TRANSLATIONS[t];i.dictionary=i.dictionary||{},i.getPluralForm=n||i.getPluralForm,Object.assign(i.dictionary,e)}function xe(t,e,n=1,i){if(typeof n!="number")throw new d("translation-service-quantity-not-a-number",null,{quantity:n});const r=i||h.window.CKEDITOR_TRANSLATIONS,s=xi(r);s===1&&(t=Object.keys(r)[0]);const o=e.id||e.string;if(s===0||!Ei(t,o,r))return n!==1?e.plural:e.string;const c=r[t].dictionary,l=r[t].getPluralForm||(u=>u===1?0:1),a=c[o];if(typeof a=="string")return a;const f=Number(l(n));return a[f]}function _i(){h.window.CKEDITOR_TRANSLATIONS&&(h.window.CKEDITOR_TRANSLATIONS={})}function Ae(t){return Array.isArray(t)?t.reduce((e,n)=>An(e,n)):t}function Ei(t,e,n){return!!n[t]&&!!n[t].dictionary[e]}function xi(t){return Object.keys(t).length}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/class Ai{uiLanguage;uiLanguageDirection;contentLanguage;contentLanguageDirection;t;translations;constructor({uiLanguage:e="en",contentLanguage:n,translations:i}={}){this.uiLanguage=e,this.contentLanguage=n||this.uiLanguage,this.uiLanguageDirection=yt(this.uiLanguage),this.contentLanguageDirection=yt(this.contentLanguage),this.translations=Ae(i),this.t=(r,s)=>this._t(r,s)}_t(e,n=[]){n=Ee(n),typeof e=="string"&&(e={string:e});const r=!!e.plural?n[0]:1,s=xe(this.uiLanguage,e,r,this.translations);return Ti(s,n)}}function Ti(t,e){return t.replace(/%(\d+)/g,(n,i)=>i<e.length?e[i]:n)}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/class Si extends A(){_items;_itemMap;_idProperty;_bindToCollection;_bindToExternalToInternalMap;_bindToInternalToExternalMap;_skippedIndexesFromExternal;constructor(e={},n={}){super();const i=$(e);if(i||(n=e),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],i)for(const r of e)this._items.push(r),this._itemMap.set(this._getItemIdBeforeAdding(r),r)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,n){return this.addMany([e],n)}addMany(e,n){if(n===void 0)n=this._items.length;else if(n>this._items.length||n<0)throw new d("collection-add-item-invalid-index",this);let i=0;for(const r of e){const s=this._getItemIdBeforeAdding(r),o=n+i;this._items.splice(o,0,r),this._itemMap.set(s,r),this.fire("add",r,o),i++}return this.fire("change",{added:e,removed:[],index:n}),this}get(e){let n;if(typeof e=="string")n=this._itemMap.get(e);else if(typeof e=="number")n=this._items[e];else throw new d("collection-get-invalid-arg",this);return n||null}has(e){if(typeof e=="string")return this._itemMap.has(e);{const n=this._idProperty,i=e[n];return i&&this._itemMap.has(i)}}getIndex(e){let n;return typeof e=="string"?n=this._itemMap.get(e):n=e,n?this._items.indexOf(n):-1}remove(e){const[n,i]=this._remove(e);return this.fire("change",{added:[],removed:[n],index:i}),n}map(e,n){return this._items.map(e,n)}forEach(e,n){this._items.forEach(e,n)}find(e,n){return this._items.find(e,n)}filter(e,n){return this._items.filter(e,n)}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 d("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:n=>{this._setUpBindToBinding(i=>new n(i))},using:n=>{typeof n=="function"?this._setUpBindToBinding(n):this._setUpBindToBinding(i=>i[n])}}}_setUpBindToBinding(e){const n=this._bindToCollection,i=(r,s,o)=>{const c=n._bindToCollection==this,l=n._bindToInternalToExternalMap.get(s);if(c&&l)this._bindToExternalToInternalMap.set(s,l),this._bindToInternalToExternalMap.set(l,s);else{const a=e(s);if(!a){this._skippedIndexesFromExternal.push(o);return}let f=o;for(const u of this._skippedIndexesFromExternal)o>u&&f--;for(const u of n._skippedIndexesFromExternal)f>=u&&f++;this._bindToExternalToInternalMap.set(s,a),this._bindToInternalToExternalMap.set(a,s),this.add(a,f);for(let u=0;u<n._skippedIndexesFromExternal.length;u++)f<=n._skippedIndexesFromExternal[u]&&n._skippedIndexesFromExternal[u]++}};for(const r of n)i(null,r,n.getIndex(r));this.listenTo(n,"add",i),this.listenTo(n,"remove",(r,s,o)=>{const c=this._bindToExternalToInternalMap.get(s);c&&this.remove(c),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((l,a)=>(o<a&&l.push(a-1),o>a&&l.push(a),l),[])})}_getItemIdBeforeAdding(e){const n=this._idProperty;let i;if(n in e){if(i=e[n],typeof i!="string")throw new d("collection-add-invalid-id",this);if(this.get(i))throw new d("collection-add-item-already-exists",this)}else e[n]=i=C();return i}_remove(e){let n,i,r,s=!1;const o=this._idProperty;if(typeof e=="string"?(i=e,r=this._itemMap.get(i),s=!r,r&&(n=this._items.indexOf(r))):typeof e=="number"?(n=e,r=this._items[n],s=!r,r&&(i=r[o])):(r=e,i=r[o],n=this._items.indexOf(r),s=n==-1||!this._itemMap.get(i)),s)throw new d("collection-remove-404",this);this._items.splice(n,1),this._itemMap.delete(i);const c=this._bindToInternalToExternalMap.get(r);return this._bindToInternalToExternalMap.delete(r),this._bindToExternalToInternalMap.delete(c),this.fire("remove",r,n),[r,n]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Ii(t){const e=t.next();return e.done?null:e.value}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Li(t,e){for(const n of e){if(t===0)return n;t-=1}return null}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/class Te extends H(ct()){_elements=new Set;_externalViews=new Set;_blurTimeout=null;constructor(){super(),this.set("isFocused",!1),this.set("focusedElement",null)}get elements(){return Array.from(this._elements.values())}get externalViews(){return Array.from(this._externalViews.values())}add(e){if(Se(e))this._addElement(e);else if(wt(e))this._addView(e);else{if(!e.element)throw new d("focustracker-add-view-missing-element",{focusTracker:this,view:e});this._addElement(e.element)}}remove(e){Se(e)?this._removeElement(e):wt(e)?this._removeView(e):this._removeElement(e.element)}_addElement(e){if(this._elements.has(e))throw new d("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",()=>{const n=this.externalViews.find(i=>Mi(e,i));n?this._focus(n.element):this._focus(e)},{useCapture:!0}),this.listenTo(e,"blur",()=>{this._blur()},{useCapture:!0}),this._elements.add(e)}_removeElement(e){this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e)),e===this.focusedElement&&this._blur()}_addView(e){e.element&&this._addElement(e.element),this.listenTo(e.focusTracker,"change:focusedElement",()=>{e.focusTracker.focusedElement?e.element&&this._focus(e.element):this._blur()}),this._externalViews.add(e)}_removeView(e){e.element&&this._removeElement(e.element),this.stopListening(e.focusTracker),this._externalViews.delete(e)}destroy(){this.stopListening(),this._elements.clear(),this._externalViews.clear(),this.isFocused=!1,this.focusedElement=null}_focus(e){this._clearBlurTimeout(),this.focusedElement=e,this.isFocused=!0}_blur(){this.elements.find(i=>i.contains(document.activeElement))||this.externalViews.find(i=>i.focusTracker.isFocused&&!i.focusTracker._blurTimeout)||(this._clearBlurTimeout(),this._blurTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0))}_clearBlurTimeout(){clearTimeout(this._blurTimeout),this._blurTimeout=null}}function wt(t){return"focusTracker"in t&&t.focusTracker instanceof Te}function Se(t){return te(t)}function Mi(t,e){return Ie(t,e)?!0:!!e.focusTracker.externalViews.find(n=>Ie(t,n))}function Ie(t,e){return!!e.element&&e.element.contains(document.activeElement)&&t.contains(e.element)}/**
 * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
 */class Ri{_listener;constructor(){this._listener=new(H())}listenTo(e){this._listener.listenTo(e,"keydown",(n,i)=>{this._listener.fire("_keydown:"+D(i),i)})}set(e,n,i={}){const r=bt(e),s=i.priority;this._listener.listenTo(this._listener,"_keydown:"+r,(o,c)=>{i.filter&&!i.filter(c)||(n(c,()=>{c.preventDefault(),c.stopPropagation(),o.stop()}),o.return=!0)},{priority:s})}press(e){return!!this._listener.fire("_keydown:"+D(e),e)}stopListening(e){this._listener.stopListening(e)}destroy(){this.stopListening()}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Le(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Fi(t){return $(t)?new Map(t):Le(t)}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Oi(t,e){if(t.size!=e.size)return!1;for(const n of t.entries()){const i=JSON.stringify(n[1]),r=JSON.stringify(e.get(n[0]));if(i!==r)return!1}return!0}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Me(t,e={}){return new Promise((n,i)=>{const r=e.signal||new AbortController().signal;r.throwIfAborted();const s=setTimeout(o,t);r.addEventListener("abort",c,{once:!0});function o(){r.removeEventListener("abort",c),n()}function c(){clearTimeout(s),i(r.reason)}})}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/async function ki(t,e={}){const{maxAttempts:n=4,retryDelay:i=Re(),signal:r=new AbortController().signal}=e;r.throwIfAborted();for(let s=0;;s++){try{return await t()}catch(o){if(s+1>=n)throw o}await Me(i(s),{signal:r})}}function Re(t={}){const{delay:e=1e3,factor:n=2,maxDelay:i=1e4}=t;return r=>Math.min(n**r*e,i)}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Pi(t,e,n){const i=t.length,r=e.length;for(let s=i-1;s>=n;s--)t[s+r]=t[s];for(let s=0;s<r;s++)t[n+s]=e[s]}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Ni(t,e){let n;function i(...r){i.cancel(),n=setTimeout(()=>t(...r),e)}return i.cancel=()=>{clearTimeout(n)},i}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Fe(t){try{if(!t.startsWith("ey"))return null;const e=atob(t.replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(e)}catch{return null}}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Vi(){const t=[];for(let e=0;e<256;e++){let n=e;for(let i=0;i<8;i++)n&1?n=3988292384^n>>>1:n=n>>>1;t[e]=n}return t}function Bi(t){const e=Array.isArray(t)?t:[t],n=Vi();let i=-1;const r=e.map(s=>Array.isArray(s)?s.join(""):String(s)).join("");for(let s=0;s<r.length;s++){const o=r.charCodeAt(s);i=i>>>8^n[(i^o)&255]}return i=(i^-1)>>>0,i.toString(16).padStart(8,"0")}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/async function Di(t){return t?(await Promise.all(t.map(async n=>n==="EDITOR_STYLES"?ji():(await window.fetch(n)).text()))).join(" ").trim():""}function ji(){const t=[],e=[];for(const n of Array.from(document.styleSheets))if(n.ownerNode.hasAttribute("data-cke"))for(const r of Array.from(n.cssRules))r.cssText.indexOf(".ck-content")!==-1?t.push(r.cssText):r.cssText.indexOf(":root")!==-1&&e.push(r.cssText);return t.length||console.warn("The editor stylesheet could not be found in the document. Check your webpack config - style-loader should use data-cke=true attribute for the editor stylesheet."),[...e,...t].join(" ").trim()}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Ci(t){const e=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],n=e.map(o=>o.name).join("|"),i=t.replace(new RegExp(`</?(${n})( .*?)?>`,"g"),`
$&
`).replace(/<br[^>]*>/g,`$&
`).split(`
`);let r=0,s=!1;return i.map(o=>(s=Ui(o,s),!o.length&&!s?"":Wi(o,e)?q(o,r++):Ki(o,e)?q(o,--r):s==="middle"||s==="last"?q(o,0):q(o,r))).join("").trimEnd()}function Wi(t,e){return e.some(n=>!(n.isVoid||!new RegExp(`<${n.name}( .*?)?>`).test(t)))}function Ki(t,e){return e.some(n=>new RegExp(`</${n.name}>`).test(t))}function q(t,e,n="    "){return`${n.repeat(Math.max(0,e))}${t}
`}function Ui(t,e){const n=/<pre( .*?)?>/.test(t),i=/<\/pre>/.test(t);return n&&i?!1:n?"first":i?"last":e==="first"||e==="middle"?"middle":!1}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Oe(t){return!!t&&t.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(t)}function ke(t){return!!t&&t.length==1&&/[\ud800-\udbff]/.test(t)}function Pe(t){return!!t&&t.length==1&&/[\udc00-\udfff]/.test(t)}function $i(t,e){return ke(t.charAt(e-1))&&Pe(t.charAt(e))}function Hi(t,e){return Oe(t.charAt(e))}const vi=Yi();function Gi(t,e){const n=String(t).matchAll(vi);return Array.from(n).some(i=>i.index<e&&e<i.index+i[0].length)}function Yi(){const t=[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u],e=/\p{Regional_Indicator}{2}/u.source,n="(?:"+t.map(r=>r.source).join("|")+")",i=`${e}|${n}(?:\u200D${n})*`;return new RegExp(i,"ug")}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function qi(t){if(!t)return null;const e=Xi(t);return e?Fe(e):null}function Xi(t){const e=t.split(".");return e.length!=3?null:e[1]}/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/function Ji(t,e){return(t.removeFeatures||[]).includes(e)}export{d as CKEditorError,Si as Collection,Dn as Config,Bt as DOCUMENTATION_URL,H as DomEmitterMixin,kn as ElementReplacer,A as EmitterMixin,j as EventInfo,Te as FocusTracker,Ri as KeystrokeHandler,Ai as Locale,ct as ObservableMixin,m as Rect,p as ResizeObserver,_i as _clearTranslations,K as _getEmitterId,Wt as _getEmitterListenedTo,Et as _getUserAgent,It as _isAndroid,Lt as _isBlink,At as _isGecko,Q as _isMac,Rt as _isMediaForcedColors,Ft as _isMotionReduced,Mt as _isRegExpUnicodePropertySupported,Tt as _isSafari,xt as _isWindows,St as _isiOS,et as _setEmitterId,xe as _translate,Ae as _unifyTranslations,Pn as abortableDebounce,wi as add,je as areConnectedThroughProperties,Di as collectStylesheets,Vn as compareArrays,Nn as count,Bi as crc32,Bn as createElement,qi as decodeLicenseKey,Ni as delay,Z as diff,De as diffToChanges,S as env,Re as exponentialDelay,Ot as fastDiff,Un as findClosestScrollableAncestor,Ii as first,Ci as formatHtml,ft as getAncestors,ut as getBorderWidths,D as getCode,vn as getCommonAncestor,de as getConstrainedViewportRect,$n as getDataFromElement,di as getEnvKeystrokeText,yt as getLanguageDirection,_e as getLocalizedArrowKeyCodeDirection,ei as getOptimalPosition,dt as getPositionedAncestor,Hn as getRangeFromMouseEvent,ri as getVisualViewportOffset,h as global,Qn as indexOf,Zn as insertAt,Vt as insertToPriorityArray,hi as isArrowKeyCode,Oe as isCombiningMark,zn as isComment,Ji as isFeatureBlockedByLicenseKey,gi as isForwardArrowKeyCode,ke as isHighSurrogateHalf,Hi as isInsideCombinedSymbol,Gi as isInsideEmojiSequence,$i as isInsideSurrogatePair,$ as isIterable,Pe as isLowSurrogateHalf,at as isNode,G as isRange,v as isText,ti as isValidAttributeName,wt as isViewWithFocusTracker,fe as isVisible,B as isWindow,g as keyCodes,Ue as logError,Ke as logWarning,Oi as mapsEqual,Li as nth,Le as objectToMap,Fe as parseBase64EncodedObject,bt as parseKeystroke,W as priorities,He as releaseDate,ii as remove,ki as retry,oi as scrollAncestorsToShowTarget,si as scrollViewportToShowTarget,Xn as setDataInElement,Pi as spliceArray,z as spy,Ee as toArray,Fi as toMap,Jn as toUnit,C as uid,Ct as version,Me as wait};
