PageSourceSearch

https://www.avisonyoung.co.kr/o/frontend-editor-ckeditor-web/__lif…/@ckeditor$ckeditor5-core$dist$index.js.js

js avisonyoung.co.kr collected 2026-09-26 21:37:33 UTC 30,014 bytes, 11 lines download raw bytes

1import{CKEditorError as c,Collection as H,Config as j,DOCUMENTATION_URL as Ye,DomEmitterMixin as Xe,ElementReplacer as Je,EmitterMixin as ne,EventInfo as Qe,FocusTracker as Ze,KeystrokeHandler as se,Locale as ae,ObservableMixin as S,Rect as et,ResizeObserver as tt,_clearTranslations as ot,_getEmitterId as rt,_getEmitterListenedTo as it,_getUserAgent as nt,_isAndroid as st,_isBlink as at,_isGecko as lt,_isMac as ct,_isMediaForcedColors as ft,_isMotionReduced as ut,_isRegExpUnicodePropertySupported as mt,_isSafari as dt,_isWindows as pt,_isiOS as ht,_setEmitterId as gt,_translate as xt,_unifyTranslations as yt,abortableDebounce as wt,add as _t,areConnectedThroughProperties as bt,collectStylesheets as Et,compareArrays as St,count as Pt,crc32 as le,createElement as kt,delay as It,diff as Ot,diffToChanges as vt,env as b,exponentialDelay as Dt,fastDiff as Ct,findClosestScrollableAncestor as Rt,first as Mt,formatHtml as Tt,getAncestors as Lt,getBorderWidths as At,getCode as Nt,getCommonAncestor as Vt,getDataFromElement as Wt,getEnvKeystrokeText as Ft,getLanguageDirection as Bt,getLocalizedArrowKeyCodeDirection as Kt,getOptimalPosition as Ut,getPositionedAncestor as qt,getRangeFromMouseEvent as zt,getVisualViewportOffset as Gt,global as C,indexOf as Ht,insertAt as jt,insertToPriorityArray as ce,isArrowKeyCode as $t,isCombiningMark as Yt,isComment as Xt,isForwardArrowKeyCode as Jt,isHighSurrogateHalf as Qt,isInsideCombinedSymbol as Zt,isInsideEmojiSequence as eo,isInsideSurrogatePair as to,isIterable as oo,isLowSurrogateHalf as ro,isNode as io,isRange as no,isText as so,isValidAttributeName as ao,isViewWithFocusTracker as lo,isVisible as co,isWindow as fo,keyCodes as uo,logError as fe,logWarning as mo,mapsEqual as po,nth as ho,objectToMap as go,parseBase64EncodedObject as ue,parseKeystroke as xo,priorities as yo,releaseDate as me,remove as wo,retry as _o,scrollAncestorsToShowTarget as bo,scrollViewportToShowTarget as Eo,setDataInElement as $,spliceArray as So,spy as Po,toArray as de,toMap as ko,toUnit as Io,uid as R,version as Oo,wait as vo}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-utils$dist$index.js.js";function P(t){return t==="__proto__"}function pe(t){switch(typeof t){case"number":case"symbol":return!1;case"string":return t.includes(".")||t.includes("[")||t.includes("]")}}function M(t){return typeof t=="string"||typeof t=="symbol"?t:Object.is(t?.valueOf?.(),-0)?"-0":String(t)}function T(t){let e=[],o=t.length;if(o===0)return e;let r=0,i="",l="",m=!1;for(t.charCodeAt(0)===46&&(e.push(""),r++);r<o;){let u=t[r];l?u==="\\"&&r+1<o?(r++,i+=t[r]):u===l?l="":i+=u:m?u==='"'||u==="'"?l=u:u==="]"?(m=!1,e.push(i),i=""):i+=u:u==="["?(m=!0,i&&(e.push(i),i="")):u==="."?i&&(e.push(i),i=""):i+=u,r++}return i&&e.push(i),e}
1function L(t,e,o){if(t==null)return o;switch(typeof e){case"string":{if(P(e))return o;let r=t[e];return r===void 0?pe(e)?L(t,T(e),o):o:r}case"number":case"symbol":{typeof e=="number"&&(e=M(e));let r=t[e];return r===void 0?o:r}default:{if(Array.isArray(e))return Me(t,e,o);if(Object.is(e?.valueOf(),-0)?e="-0":e=String(e),P(e))return o;let r=t[e];return r===void 0?o:r}}}function Me(t,e,o){if(e.length===0)return o;let r=t;for(let i=0;i<e.length;i++){if(r==null||P(e[i]))return o;r=r[e[i]]}return r===void 0?o:r}function Y(t){return t!==null&&(typeof t=="object"||typeof t=="function")}function he(t,e){return t===e||Number.isNaN(t)&&Number.isNaN(e)}var Te=/^(?:0|[1-9]\d*)$/;function ge(t,e=Number.MAX_SAFE_INTEGER){switch(typeof t){case"number":return Number.isInteger(t)&&t>=0&&t<e;case"symbol":return!1;case"string":return Te.test(t)}}function xe(t){return typeof t=="symbol"||t instanceof Symbol}var Le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ae=/^\w*$/;function ye(t,e){return Array.isArray(t)?!1:typeof t=="number"||typeof t=="boolean"||t==null||xe(t)?!0:typeof t=="string"&&(Ae.test(t)||!Le.test(t))||e!=null&&Object.hasOwn(e,t)}var we=(t,e,o)=>{let r=t[e];(!(Object.hasOwn(t,e)&&he(r,o))||o===void 0&&!(e in t))&&(t[e]=o)};function _e(t,e,o,r){if(t==null&&!Y(t))return t;let i=ye(e,t)?[e]:Array.isArray(e)?e:typeof e=="string"?T(e):[e],l=t;for(let m=0;m<i.length&&l!=null;m++){let u=M(i[m]);if(P(u))continue;let _;if(m===i.length-1)_=o(l[u]);else{let x=l[u],E=r?.(x,u,t);_=E!==void 0?E:Y(x)?x:ge(i[m+1])?[]:{}}we(l,u,_),l=l[u]}return t}function X(t,e,o){return _e(t,e,()=>
1o,()=>{})}function A(t){return typeof t=="function"}import{AttributeOperation as cr,Batch as fr,BubblingEmitterMixin as ur,BubblingEventInfo as mr,ClickObserver as dr,CompositionObserver as pr,Conversion as be,ConversionHelpers as hr,DataController as Ee,Differ as gr,DomEventObserver as xr,DowncastHelpers as yr,EditingController as Se,EditingView as wr,FakeSelectionObserver as _r,FocusObserver as br,History as Er,HtmlDataProcessor as Sr,InputObserver as Pr,InsertOperation as kr,KeyObserver as Ir,MarkerCollection as Or,MarkerOperation as vr,Matcher as Dr,MergeOperation as Cr,Model as Pe,ModelDocument as Rr,ModelDocumentFragment as Mr,ModelDocumentSelection as Tr,ModelElement as Lr,ModelLivePosition as Ar,ModelLiveRange as Nr,ModelNode as Vr,ModelNodeList as Wr,ModelPosition as Fr,ModelRange as Br,ModelRootElement as Kr,ModelSchemaContext as Ur,ModelSelection as qr,ModelText as zr,ModelTextProxy as Gr,ModelTreeWalker as Hr,ModelTypeCheckable as jr,ModelWriter as $r,MouseObserver as Yr,MoveOperation as Xr,MutationObserver as Jr,NoOperation as Qr,Observer as Zr,OperationFactory as ei,RenameOperation as ti,RootAttributeOperation as oi,RootOperation as ri,SelectionObserver as ii,SplitOperation as ni,StylesMap as si,StylesProcessor as ke,TabObserver as ai,TouchObserver as li,UpcastHelpers as ci,UpcastWriter as fi,ViewAttributeElement as ui,ViewContainerElement as mi,ViewDataTransfer as di,ViewDocument as pi,ViewDocumentDomEventData as hi,
vendor: 11,158 bytes, line 1
1ViewDocumentFragment as gi,ViewDocumentSelection as xi,ViewDomConverter as yi,ViewDowncastWriter as wi,ViewEditableElement as _i,ViewElement as bi,ViewEmptyElement as Ei,ViewNode as Si,ViewPosition as Pi,ViewRange as ki,ViewRawElement as Ii,ViewRenderer as Oi,ViewRootEditableElement as vi,ViewSelection as Di,ViewText as Ci,ViewTextProxy as Ri,ViewTokenList as Mi,ViewTreeWalker as Ti,ViewTypeCheckable as Li,ViewUIElement as Ai,ViewUpcastWriter as Ni,XmlDataProcessor as Vi,_DataProcessorBasicHtmlWriter as Wi,_DetachOperation as Fi,_MapperCache as Bi,_OperationReplayer as Ki,_VIEW_BR_FILLER as Ui,_VIEW_INLINE_FILLER as qi,_VIEW_INLINE_FILLER_LENGTH as zi,_VIEW_MARKED_NBSP_FILLER as Gi,_VIEW_NBSP_FILLER as Hi,_ViewElementConversionConsumables as ji,_autoParagraphEmptyModelRoots as $i,_convertMapToStringifiedObject as Yi,_convertMapToTags as Xi,_deleteModelContent as Ji,_downcastCleanSelection as Qi,_downcastConvertCollapsedSelection as Zi,_downcastConvertRangeSelection as en,_downcastCreateViewElementFromDowncastHighlightDescriptor as tn,_downcastInsertAttributesAndChildren as on,_downcastInsertElement as rn,_downcastInsertStructure as nn,_downcastInsertText as sn,_downcastInsertUIElement as an,_downcastRemove as ln,_downcastWrap as cn,_dumpTrees as fn,_getDataWithoutViewFiller as un,_getModelData as mn,_getModelNodeAfterPosition as dn,_getModelNodeBeforePosition as pn,_getModelTextNodeAtPosition as hn,_getSelectedModelContent as gn,_getViewData as xn,_initDocumentDumping as yn,_injectModelSelectionPostFixer as wn,_injectViewQuirksHandling as _n,_injectViewUIElementHandling as bn,_insertIntoModelNodeList as En,_insertModelContent as Sn,_insertModelObject as Pn,_isInlineViewFiller as kn,_isParagraphableModelNode as In,_isViewPatternMatched as On,_logDocument as vn,_mergeIntersectingModelRanges as Dn,_modifyModelSelection as Cn,_moveInModelNodeList as Rn,_normalizeConversionConsumables as Mn,_normalizeInModelNodeList as Tn,_operationTransform as Ln,_parseModel as An,_parseView as Nn,_removeFromModelNodeList as Vn,_setAttributeInModelNodeList as Wn,_setModelData as Fn,_setViewData as Bn,_startsWithViewFiller as Kn,_stringifyModel as Un,_stringifyView as qn,_tryFixingModelRange as zn,_upcastConvertSelectionChange as Gn,_upcastConvertText as Hn,_upcastConvertToModelFragment as jn,_wrapInModelParagraph as $n,addBackgroundStylesRules as Yn,addBorderStylesRules as Xn,addMarginStylesRules as Jn,addPaddingStylesRules as Qn,autoParagraphEmptyRoots as Zn,disableViewPlaceholder as es,enableViewPlaceholder as ts,getBoxSidesStyleShorthandValue as os,getBoxSidesStyleValueReducer as rs,getBoxSidesStyleValues as is,getPositionStyleShorthandNormalizer as ns,getShorthandStylesValues as ss,getViewFillerOffset as as,hideViewPlaceholder as ls,isAttachmentStyleValue as cs,isColorStyleValue as fs,isLengthStyleValue as us,isLineStyleValue as ms,isParagraphable as ds,isPercentageStyleValue as ps,isPositionStyleValue as hs,isRepeatStyleValue as gs,isURLStyleValue as xs,needsViewPlaceholder as ys,showViewPlaceholder as ws,transformOperationSets as _s,wrapInParagraph as bs}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-engine$dist$index.js.js";import{ContextWatchdog as Ie,EditorWatchdog as Oe,Watchdog as Ps}from"../../../frontend-editor-ckeditor-web/__liferay__/exports/@ckeditor$ckeditor5-watchdog$dist$index.js.js";var Z=class extends S(){editor;_disableStack=new Set;constructor(e){super(),this.editor=e,this.set("isEnabled",!0)}forceDisabled(e){this._disableStack.add(e),this._disableStack.size==1&&(this.on("set:isEnabled",ve,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),this._disableStack.size==0&&(this.off("set:isEnabled",ve),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}static get isOfficialPlugin(){return!1}static get isPremiumPlugin(){return!1}};function ve(t){t.return=!1,t.stop()}var N=class extends S(){editor;_isEnabledBasedOnSelection;_affectsData;_disableStack;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",o=>{if(!this.affectsData)return;let r=e.model.document.selection,l=!(r.getFirstPosition().root.rootName=="$graveyard")&&e.model.canEditAt(r);(e.isReadOnly||this._isEnabledBasedOnSelection&&!l)&&(o.return=!1,o.stop())},{priority:"highest"}),this.on("execute",o=>{this.isEnabled||o.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",De,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),this._disableStack.size==0&&(this.off("set:isEnabled",De),this.refresh())}execute(...e){}destroy(){this.stopListening()}};function De(t){t.return=!1,t.stop()}var ee=class extends N{_childCommandsDefinitions=[];refresh(){}execute(...e){let o=this._getFirstEnabledCommand();return!!o&&o.execute(e)}registerChildCommand(e,o={}){ce(this._childCommandsDefinitions,{command:e,priority:o.priority||"normal"}),e.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){let e=this._childCommandsDefinitions.find(({command:o})=>o.isEnabled);return e&&e.command}},V=class{_commands;constructor(){this._commands=new Map}add(e,o){this._commands.set(e,o)}get(e){return this._commands.get(e)}execute(e,...o){let r=this.get(e);if(!r)throw new c("commandcollection-command-not-found",this,{commandName:e});return r.execute(...o)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(let e of this.commands())e.destroy()}},W=class extends ne(){_context;_plugins=new Map;_availablePlugins;_contextPlugins;constructor(e,o=[],r=[]){super(),this._context=e,this._availablePlugins=new Map;for(let i of o)i.pluginName&&this._availablePlugins.set(i.pluginName,i);this._contextPlugins=new Map;for(let[i,l]of r)this._contextPlugins.set(i,l),this._contextPlugins.set(l,i),i.pluginName&&this._availablePlugins.set(i.pluginName,i)}*[Symbol.iterator](){for(let e of this._plugins)typeof e[0]=="function"&&(yield e)}get(e){let o=this._plugins.get(e);if(!o){let r=e;throw typeof e=="function"&&(r=e.pluginName||e.name),new c("plugincollection-plugin-not-loaded",this._context,{plugin:r})}return o}has(e){return this._plugins.has(e)}init(e,o=[],r=[]){let i=this,l=this._context;w(e),g(e);let m=e.filter(n=>!O(n,o)),u=[...k(m)];D(u,r);let _=G(u);return v(_,"init").then(()=>v(_,"afterInit")).then(()=>_);function x(n){return typeof n=="function"}function E(n){return x(n)&&!!n.isContextPlugin}function O(n,f){return f.some(s=>s===n||h(n)===s||h(s)===n)}function h(n){return x(n)?n.pluginName||n.name:n}function w(n,f=new Set){n.forEach(s=>{x(s)&&(f.has(s)||(f.add(s),s.pluginName&&!i._availablePlugins.has(s.pluginName)&&i._availablePlugins.set(s.pluginName,s),s.requires&&w(s.requires,f)))})}function k(n,f=new Set){return n.map(s=>x(s)?s:i._availablePlugins.get(s)).reduce((s,a)=>f.has(a)?s:(f.add(a),a.requires&&(g(a.requires,a),k(a.requires,f).forEach(d=>s.add(d))),s.add(a)),new Set)}function g(n,f=null){n.map(s=>x(s)?s:i._availablePlugins.get(s)||s).forEach(s=>{U(s,f),q(s,f),z(s,f)})}function U(n,f){if(!x(n))throw f?new c("plugincollection-soft-required",l,{missingPlugin:n,requiredBy:h(f)}):new c("plugincollection-plugin-not-found",l,{plugin:n})}function q(n,f){if(E(f)&&!E(n))throw new c("plugincollection-context-required",l,{plugin:h(n),requiredBy:h(f)})}function z(n,f){if(f&&O(n,o))throw new c("plugincollection-required",l,{plugin:h(n),requiredBy:h(f)})}function G(n){return n.map(f=>{let s=i._contextPlugins.get(f);return s=s||new f(l),i._add(f,s),s})}function v(n,f){return n.reduce((s,a)=>!a[f]||i._contextPlugins.has(a)?s:s.then(a[f].bind(a)),Promise.resolve())}function D(n,f){for(let s of f){if(typeof s!="function")throw new c("plugincollection-replace-plugin-invalid-type",null,{pluginItem:s});let a=s.pluginName;if(!a)throw new c("plugincollection-replace-plugin-missing-name",null,{pluginItem:s});if(s.requires&&s.requires.length)throw new c("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:a});let d=i._availablePlugins.get(a);if(!d)throw new c("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:a});let y=n.indexOf(d);if(y===-1){if(i._contextPlugins.has(d))return;throw new c("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:a})}if(d.requires&&d.requires.length)throw new c("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:a});n.splice(y,1,s),i._availablePlugins.set(a,s)}}}destroy(){let e=[];for(let[,o]of this)typeof o.destroy=="function"&&!this._contextPlugins.has(o)&&e.push(o.destroy());return Promise.all(e)}_add(e,o){this._plugins.set(e,o);let r=e.pluginName;if(r){if(this._plugins.has(r))throw new c("plugincollection-plugin-name-conflict",null,{pluginName:r,plugin1:this._plugins.get(r).constructor,plugin2:e});this._plugins.set(r,o)}}},I=class{config;plugins;locale;t;editors;static defaultConfig;static builtinPlugins;_contextOwner=null;constructor(e){let{translations:o,...r}=e||{};this.config=new j(r,this.constructor.defaultConfig);let i=this.constructor.builtinPlugins;this.config.define("plugins",i),this.plugins=new W(this,i);let l=this.config.get("language")||{};this.locale=new ae({uiLanguage:typeof l=="string"?l:l.ui,contentLanguage:this.config.get("language.content"),translations:o}),this.t=this.locale.t,this.editors=new H}initPlugins(){let e=this.config.get("plugins")||[],o=this.config.get("substitutePlugins")||[];for(let r of e.concat(o)){if(typeof r!="function")throw new c("context-initplugins-constructor-only",null,{Plugin:r});if(r.isContextPlugin!==!0)throw new c("context-initplugins-invalid-plugin",null,{Plugin:r})}return this.plugins.init(e,[],o)}destroy(){return Promise.all(Array.from(this.editors,e=>e.destroy())).then(()=>this.plugins.destroy())}_addEditor(e,o){if(this._contextOwner)throw new c("context-addeditor-private-context");this.editors.add(e),o&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){let e={};for(let o of this.config.names())["plugins","removePlugins","extraPlugins"].includes(o)||(e[o]=this.config.get(o));return e}static create(e){return new Promise(o=>{let r=new this(e);o(r.initPlugins().then(()=>r))})}},F=class extends S(){context;constructor(e){super(),this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}static get isOfficialPlugin(){return!1}static get isPremiumPlugin(){return!1}},B=class extends se{editor;constructor(e){super(),this.editor=e}set(e,o,r={}
1){if(typeof o=="string"){let i=o;o=(l,m)=>{this.editor.execute(i),m()}}super.set(e,o,r)}},J="contentEditing",te="common",K=class{keystrokeInfos=new Map;_editor;constructor(e){this._editor=e;let o=e.config.get("menuBar.isVisible"),r=e.locale.t;this.addKeystrokeInfoCategory({id:J,label:r("Content editing keystrokes"),description:r("These keyboard shortcuts allow for quick access to content editing features.")});let i=[{label:r("Close contextual balloons, dropdowns, and dialogs"),keystroke:"Esc"},{label:r("Open the accessibility help dialog"),keystroke:"Alt+0"},{label:r("Move focus between form fields (inputs, buttons, etc.)"),keystroke:[["Tab"],["Shift+Tab"]]},{label:r("Move focus to the toolbar, navigate between toolbars"),keystroke:"Alt+F10",mayRequireFn:!0},{label:r("Navigate through the toolbar or menu bar"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]},{label:r("Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content."),keystroke:[["Enter"],["Space"]]}];o&&i.push({label:r("Move focus to the menu bar, navigate between menu bars"),keystroke:"Alt+F9",mayRequireFn:!0}),this.addKeystrokeInfoCategory({id:"navigation",label:r("User interface and content navigation keystrokes"),description:r("Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface."),groups:[{id:"common",keystrokes:i}]})}addKeystrokeInfoCategory({id:e,label:o,description:r,groups:i}){this.keystrokeInfos.set(e,{id:e,label:o,description:r,groups:new Map}),this.addKeystrokeInfoGroup({categoryId:e,id:te}),i&&i.forEach(l=>{this.addKeystrokeInfoGroup({categoryId:e,...l})})}addKeystrokeInfoGroup({categoryId:e=J,id:o,label:r,keystrokes:i}){let l=this.keystrokeInfos.get(e);if(!l)throw new c("accessibility-unknown-keystroke-info-category",this._editor,{groupId:o,categoryId:e});l.groups.set(o,{id:o,label:r,keystrokes:i||[]})}addKeystrokeInfos({categoryId:e=J,groupId:o=te,keystrokes:r}){if(!this.keystrokeInfos.has(e))throw new c("accessibility-unknown-keystroke-info-category",this._editor,{categoryId:e,keystrokes:r});let i=this.keystrokeInfos.get(e);if(!i.groups.has(o))throw new c("accessibility-unknown-keystroke-info-group",this._editor,{groupId:o,categoryId:e,keystrokes:r});i.groups.get(o).keystrokes.push(...r)}};function Ce(t){return{sessionId:Be(),pageSessionId:Ke(),hostname:window.location.hostname,version:globalThis.CKEDITOR_VERSION,type:Ne(t),plugins:Ve(t.plugins),distribution:We(),env:Fe(),integration:Object.create(null),menuBar:{isVisible:!!t.config.get("menuBar.isVisible")},language:{ui:t.locale.uiLanguage,content:t.locale.contentLanguage},toolbar:{main:Q(t.config.get("toolbar")),block:Q(t.config.get("blockToolbar")),balloon:Q(t.config.get("balloonToolbar"))}}}function Ne(t){return Object.getPrototypeOf(t).constructor.editorName}function Ve(t){return Array.from(t).filter(([e])=>!!e.pluginName).map(([e])=>{let{pluginName:o,isContextPlugin:r,isOfficialPlugin:i,isPremiumPlugin:l}=e;return{isContext:!!r,isOfficial:!!i,isPremium:!!l,name:o}})}function Q(t){if(!t)return;let e=Array.isArray(t)?{items:t}:t,o=l(e.items||[]);return{isMultiline:o.includes("-"),shouldNotGroupWhenFull:!!e.shouldNotGroupWhenFull,items:i(o)};function i(m){return m.filter(u=>u!=="|"&&u!=="-")}function l(m){return m.flatMap(u=>typeof u=="string"?[u]:l(u.items))}}function We(){return{channel:window[Symbol.for("cke distribution")]||"sh"}}function Fe(){let t="unknown",e="unknown";return b.isMac?t="mac":b.isWindows?t="windows":b.isiOS?t="ios":b.isAndroid&&(t="android"),b.isGecko?e="gecko":b.isBlink?e="blink":b.isSafari&&(e="safari"),{os:t,browser:e}}function Be(){return localStorage.getItem("__ckeditor-session-id")||localStorage.setItem("__ckeditor-session-id",R()),localStorage.getItem("__ckeditor-session-id")}function Ke(){return C.window.CKEDITOR_PAGE_SESSION_ID=C.window.CKEDITOR_PAGE_SESSION_ID||R(),C.window.CKEDITOR_PAGE_SESSION_ID}var oe=class extends S(){static get editorName(){return"Editor"}accessibility;commands;config;conversion;data;editing;locale;model;plugins;keystrokes;t;static defaultConfig;static builtinPlugins;_context;_readOnlyLocks;constructor(e={}){if(super(),"sanitizeHtml"in e)throw new c("editor-config-sanitizehtml-not-supported");let o=this.constructor,{translations:r,...i}=o.defaultConfig||{},{translations:l=r,...m}=e,u=e.language||i.language;this._context=e.context||new I({language:u,translations:l}),this._context._addEditor(this,!e.context);let _=Array.from(o.builtinPlugins||[]);this.config=new j(m,i),this.config.define("plugins",_),this.config.define(this._context._getEditorConfig()),E(this.config),this.plugins=new W(this,_,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new V,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new Pe,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});let x=new ke;this.data=new Ee(this.model,x),this.editing=new Se(this.model,x),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new be([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 B(this),this.keystrokes.listenTo(this.editing.view.document),this.accessibility=new K(this),O(this);function E(h){let w=h.get("licenseKey");if(!w&&window.CKEDITOR_GLOBAL_LICENSE_KEY&&(w=window.CKEDITOR_GLOBAL_LICENSE_KEY,h.set("licenseKey",w)),!w)throw new c("license-key-missing")}function O(h){let w=h.config.get("licenseKey"),k=window[Symbol.for("cke distribution")]||"sh";
1function g(a){h.enableReadOnlyMode(Symbol("invalidLicense")),h._showLicenseError(a)}function U(a){let d=a.split(".");return d.length!=3?null:d[1]}function q(a){return["exp","jti","vc"].every(y=>y in a)}function z(a){return Object.getOwnPropertyNames(a).sort().filter(p=>p!="vc"&&a[p]!=null).map(p=>a[p])}function G(a){let{hostname:d}=new URL(window.location.href);if(a.includes(d))return!0;let y=d.split(".");return a.filter(p=>p.includes("*")).map(p=>p.split(".")).filter(p=>p.length<=y.length).map(p=>Array(y.length-p.length).fill(p[0]==="*"?"*":"").concat(p)).some(p=>y.every((Re,ie)=>p[ie]===Re||p[ie]==="*"))}function v(a){let d=a[0].toUpperCase()+a.slice(1),y=a==="evaluation"?"an":"a";console.info(`%cCKEditor 5 ${d} License`,"color: #ffffff; background: #743CCD; font-size: 14px; padding: 4px 8px; border-radius: 4px;"),console.warn(`\u26A0\uFE0F You are using ${y} ${a} license of CKEditor 5${a==="trial"?" which is for evaluation purposes only":""}. For production usage, please obtain a production license at https://portal.ckeditor.com/`)}if(w=="GPL"){k=="cloud"&&g("distributionChannel");return}let D=U(w);if(!D){g("invalid");return}let n=ue(D);if(!n){g("invalid");return}if(!q(n)){g("invalid");return}if(n.distributionChannel&&!de(n.distributionChannel).includes(k)){g("distributionChannel");return}if(le(z(n))!=n.vc.toLowerCase()){g("invalid");return}if(new Date(n.exp*1e3)<me){g("expired");return}let s=n.licensedHosts;if(s&&s.length>0&&!G(s)){g("domainLimit");return}if(["evaluation","trial"].includes(n.licenseType)&&n.exp*1e3<Date.now()){g("expired");return}if(["development","evaluation","trial"].includes(n.licenseType)){let{licenseType:a}=n;window.CKEDITOR_WARNING_SUPPRESSIONS=window.CKEDITOR_WARNING_SUPPRESSIONS||{},window.CKEDITOR_WARNING_SUPPRESSIONS[a]||(v(a),window.CKEDITOR_WARNING_SUPPRESSIONS[a]=!0)}if(["evaluation","trial"].includes(n.licenseType)){let a=n.licenseType,d=setTimeout(()=>{g(`${a}Limit`)},6e5);h.on("destroy",()=>{clearTimeout(d)})}n.usageEndpoint&&h.once("ready",()=>{let a={requestId:R(),requestTime:Math.round(Date.now()/1e3),license:w,editor:Ue(h)};h._sendUsageRequest(n.usageEndpoint,a).then(d=>{let{status:y,message:p}=d;p&&console.warn(p),y!="ok"&&g("usageLimit")},()=>{fe("license-key-validation-endpoint-not-reachable",{url:n.usageEndpoint})})},{priority:"high"})}}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(e){throw new c("editor-isreadonly-has-no-setter")}enableReadOnlyMode(e){if(typeof e!="string"&&typeof e!="symbol")throw new c("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 c("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(){let e=this.config,o=e.get("plugins"),r=e.get("removePlugins")||[],i=e.get("extraPlugins")||[],l=e.get("substitutePlugins")||[];return this.plugins.init(o.concat(i),r,l)}destroy(){let e=Promise.resolve();return this.state=="initializing"&&(e=new Promise(o=>this.once("ready",o))),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,...o){try{return this.commands.execute(e,...o)}catch(r){c.rethrowUnexpectedError(r,this)}}focus(){this.editing.view.focus()}static create(...e){throw new Error("This is an abstract method.")}static Context=I;static EditorWatchdog=Oe;static ContextWatchdog=Ie;_showLicenseError(e,o){setTimeout(()=>{if(e=="invalid")throw new c("invalid-license-key");if(e=="expired")throw new c("license-key-expired");if(e=="domainLimit")throw new c("license-key-domain-limit");if(e=="featureNotAllowed")throw new c("license-key-plugin-not-allowed",null,{pluginName:o});if(e=="evaluationLimit")throw new c("license-key-evaluation-limit");if(e=="trialLimit")throw new c("license-key-trial-limit");if(e=="developmentLimit")throw new c("license-key-development-limit");if(e=="usageLimit")throw new c("license-key-usage-limit");if(e=="distributionChannel")throw new c("license-key-invalid-distribution-channel")},0),this._showLicenseError=()=>{}}async _sendUsageRequest(e,o){let r=new Headers({"Content-Type":"application/json"}),i=await fetch(new URL(e),{method:"POST",headers:r,body:JSON.stringify(o)});if(!i.ok)throw new Error(`HTTP Response: ${i.status}`);return i.json()}};function Ue(t){let e=Ce(t);
1function o(r,i){if(L(e,r)!==void 0)throw new c("editor-usage-data-path-already-set",{path:r});X(e,r,i)}return t.fire("collectUsageData",{setUsageData:o}),e}function qe(t){if(!A(t.updateSourceElement))throw new c("attachtoform-missing-elementapi-interface",t);let e=t.sourceElement;if(ze(e)&&e.form){let o,r=e.form,i=()=>t.updateSourceElement();A(r.submit)&&(o=r.submit,r.submit=()=>{i(),o.apply(r)}),r.addEventListener("submit",i),t.on("destroy",()=>{r.removeEventListener("submit",i),o&&(r.submit=o)})}}function ze(t){return!!t&&t.tagName.toLowerCase()==="textarea"}function Ge(t){class e extends t{sourceElement;updateSourceElement(r){if(!this.sourceElement)throw new c("editor-missing-sourceelement",this);let i=this.config.get("updateSourceElementOnDestroy"),l=this.sourceElement instanceof HTMLTextAreaElement;if(!i&&!l){$(this.sourceElement,"");return}let m=typeof r=="string"?r:this.data.get();$(this.sourceElement,m)}}return e}function He(t,e){if(e.ckeditorInstance)throw new c("editor-source-element-already-used",t);e.ckeditorInstance=t,t.once("destroy",()=>{delete e.ckeditorInstance})}var re=class extends F{_actions;static get pluginName(){return"PendingActions"}static get isOfficialPlugin(){return!0}init(){this.set("hasAny",!1),this._actions=new H({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if(typeof e!="string")throw new c("pendingactions-add-invalid-message",this);let o=new(S());return o.set("message",e),this._actions.add(o),this.hasAny=!0,o}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]()}};export{K as Accessibility,N as Command,V as CommandCollection,I as Context,F as ContextPlugin,B as EditingKeystrokeHandler,oe as Editor,Ge as ElementApiMixin,ee as MultiCommand,re as PendingActions,Z as Plugin,te as _DEFAULT_ACCESSIBILITY_GROUP_ID,Ce as _getEditorUsageData,qe as attachToForm,He as secureSourceElement};
2/*! Bundled license information:
3
4@ckeditor/ckeditor5-core/dist/index.js:
5  (**
6   * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
7   * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8   *)
9  (* istanbul ignore next -- @preserve *)
10*/
11//# sourceMappingURL=@ckeditor$ckeditor5-core$dist$index.js.(GQ7JIZKA).js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.