@ckeditor/ckeditor5-collaboration-core
Version:
Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.
23 lines • 5.04 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x3b417c=_0x3820;function _0x3820(_0x10d5a9,_0x57deaf){const _0x2eb858=_0x2eb8();return _0x3820=function(_0x382042,_0x69d13f){_0x382042=_0x382042-0x1a2;let _0x339d17=_0x2eb858[_0x382042];return _0x339d17;},_0x3820(_0x10d5a9,_0x57deaf);}function _0x2eb8(){const _0x5132ca=['2319176CDnEtG','config','Autosave','WebSocketGateway','1855671fvBbhS','get','removePlugins','toolbar','initialData','5973724qHJlkl','RevisionTracker','4838995utIDqh','has','36oJBlGo','10357944kPpeVg','WordCount','pluginName','from','includes','requires','string','builtinPlugins','rootsAttributes','_context','map','constructor','find','extraPlugins','prototype','DocumentOutline','context','length','filter','names','18042jqgDTw','set','every','1845165DsPFzN','plugins','WProofreader','concat','111wlVeTX'];_0x2eb8=function(){return _0x5132ca;};return _0x2eb8();}(function(_0xaaadfa,_0x3eac4a){const _0x4ddc54=_0x3820,_0x55d342=_0xaaadfa();while(!![]){try{const _0x3932e8=-parseInt(_0x4ddc54(0x1a7))/0x1*(-parseInt(_0x4ddc54(0x1ca))/0x2)+parseInt(_0x4ddc54(0x1ac))/0x3+parseInt(_0x4ddc54(0x1b1))/0x4+parseInt(_0x4ddc54(0x1b3))/0x5+-parseInt(_0x4ddc54(0x1b6))/0x6+-parseInt(_0x4ddc54(0x1a3))/0x7+parseInt(_0x4ddc54(0x1a8))/0x8*(-parseInt(_0x4ddc54(0x1b5))/0x9);if(_0x3932e8===_0x3eac4a)break;else _0x55d342['push'](_0x55d342['shift']());}catch(_0x2e57bd){_0x55d342['push'](_0x55d342['shift']());}}}(_0x2eb8,0xe371b));const nt=[_0x3b417c(0x1b0),_0x3b417c(0x1c6),_0x3b417c(0x1af),_0x3b417c(0x1be)],et=[_0x3b417c(0x1ab),_0x3b417c(0x1b2),_0x3b417c(0x1aa),_0x3b417c(0x1b7),_0x3b417c(0x1c5),_0x3b417c(0x1a5)];function ot(_0x1792ed,_0x1764c7,_0x3b508a,_0x2b38f7=[]){const _0x4bc453=_0x3b417c,_0x5aa196=_0x4bc453(0x1bc)==typeof _0x1792ed?_0x3b508a[_0x4bc453(0x1ad)](_0x1792ed)[_0x4bc453(0x1c1)]:_0x1792ed[_0x4bc453(0x1c4)][_0x4bc453(0x1c1)];if(_0x1764c7[_0x4bc453(0x1b4)](_0x5aa196))return _0x1764c7[_0x4bc453(0x1ad)](_0x5aa196);_0x1764c7[_0x4bc453(0x1cb)](_0x5aa196,!0x0);const _0x9d881b=[...et,..._0x2b38f7][_0x4bc453(0x1c0)](_0x218aa3=>{const _0x55c923=_0x4bc453;if(_0x3b508a[_0x55c923(0x1b4)](_0x218aa3))return _0x3b508a[_0x55c923(0x1ad)](_0x218aa3)[_0x55c923(0x1c1)];})[_0x4bc453(0x1c8)](_0x399bfb=>_0x399bfb);if(_0x5aa196&&_0x9d881b[_0x4bc453(0x1ba)](_0x5aa196))return _0x1764c7[_0x4bc453(0x1cb)](_0x5aa196,!0x1),!0x1;if(!_0x5aa196[_0x4bc453(0x1bb)])return _0x1764c7[_0x4bc453(0x1cb)](_0x5aa196,!0x0),!0x0;const _0x1e4591=_0x5aa196[_0x4bc453(0x1bb)][_0x4bc453(0x1a2)](_0xc6f56=>ot(_0xc6f56,_0x1764c7,_0x3b508a,_0x2b38f7));return _0x1764c7[_0x4bc453(0x1cb)](_0x5aa196,_0x1e4591),_0x1e4591;}export function sanitizeEditorConfig(_0x434cc4,_0x3889a2){const _0x4f4dda=_0x3b417c,_0x28d64e={};for(const _0x3946a5 of _0x434cc4[_0x4f4dda(0x1a9)][_0x4f4dda(0x1c9)]())nt[_0x4f4dda(0x1ba)](_0x3946a5)||(_0x28d64e[_0x3946a5]=_0x434cc4[_0x4f4dda(0x1a9)][_0x4f4dda(0x1ad)](_0x3946a5));const _0xfea75b=_0x28d64e[_0x4f4dda(0x1a4)]||[],_0x4d26cc=_0x434cc4[_0x4f4dda(0x1c1)][_0x4f4dda(0x1bd)]||[],_0x2b72ed=_0xfea75b[_0x4f4dda(0x1c7)]?_0xfea75b:_0x4d26cc,_0x37366c=_0x28d64e[_0x4f4dda(0x1c3)]||[];delete _0x28d64e[_0x4f4dda(0x1c3)];const _0x31245f=_0x28d64e[_0x4f4dda(0x1ae)]||[];delete _0x28d64e[_0x4f4dda(0x1ae)];const _0x5dd06c=_0x434cc4[_0x4f4dda(0x1bf)][_0x4f4dda(0x1a9)][_0x4f4dda(0x1ad)](_0x4f4dda(0x1a4))||[],_0x2a5d2c=_0x2b72ed[_0x4f4dda(0x1a6)](_0x37366c)[_0x4f4dda(0x1a6)](_0x5dd06c)[_0x4f4dda(0x1c0)](_0x5d9cad=>_0x4f4dda(0x1bc)==typeof _0x5d9cad?_0x4d26cc[_0x4f4dda(0x1c2)](_0x45667c=>_0x45667c[_0x4f4dda(0x1b8)]==_0x5d9cad):_0x5d9cad)[_0x4f4dda(0x1c8)](_0x39bbcd=>!_0x31245f[_0x4f4dda(0x1ba)](_0x39bbcd)&&!_0x31245f[_0x4f4dda(0x1ba)](_0x39bbcd[_0x4f4dda(0x1b8)])),_0x1f9795=Array[_0x4f4dda(0x1b9)](new Set(_0x2a5d2c)),_0x366613=new Map();return _0x28d64e[_0x4f4dda(0x1a4)]=_0x1f9795[_0x4f4dda(0x1c8)](_0x19ef02=>ot(_0x19ef02,_0x366613,_0x434cc4[_0x4f4dda(0x1a4)],_0x3889a2)),_0x28d64e;}