@ckeditor/ckeditor5-pagination 48.1.0-alpha.3 → 48.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x57550a}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x4e4104,InputNumberView as _0x789a08,ButtonView as _0x4c6e8b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x18e115,global as _0x164b92,Rect as _0x292346,uid as _0x5bf63c,toUnit as _0x8cccc3,first as _0x393c9d,env as _0x4c6fa8,ResizeObserver as _0x474e74,keyCodes as _0x23e35e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0xc1f974}from'es-toolkit/compat';import{IconArrowDown as _0x47bd24,IconArrowUp as _0x4e34f1}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0x57550a{['_recalculatePageBreaksDebounced']=_0xc1f974(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x18e115('pagination-config-not-found',this['editor']['config']);const _0x8907c6=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x8907c6),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x2be9d2,_0x4a0180,_0x5d9450)=>{_0x5d9450&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x383ede){const _0xdf0b7a=_0x395dce([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x6645e2=0xc82cb1e,_0x49dfba=0xc85428e^_0x6645e2,_0x38ccc0=window[_0x395dce([0x44,0x61,0x74,0x65])][_0x395dce([0x6e,0x6f,0x77])](),_0x153570=_0x383ede[_0x395dce([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4577fd=new window[(_0x395dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31dc7a=>{_0x153570[_0x395dce([0x6f,0x6e,0x63,0x65])](_0x395dce([0x72,0x65,0x61,0x64,0x79]),_0x31dc7a);}),_0x1aa7cc={[_0x395dce([0x6b,0x74,0x79])]:_0x395dce([0x45,0x43]),[_0x395dce([0x75,0x73,0x65])]:_0x395dce([0x73,0x69,0x67]),[_0x395dce([0x63,0x72,0x76])]:_0x395dce([0x50,0x2d,0x32,0x35,0x36]),[_0x395dce([0x78])]:_0x395dce([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x395dce([0x79])]:_0x395dce([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x395dce([0x61,0x6c,0x67])]:_0x395dce([0x45,0x53,0x32,0x35,0x36])},_0x1e3377=_0x153570[_0x395dce([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x395dce([0x67,0x65,0x74])](_0x395dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x302bc1(){let _0x2fbb04,_0x347f18=null,_0x227c2a=null;try{if(_0x1e3377==_0x395dce([0x47,0x50,0x4c]))return _0x395dce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fbb04=_0x287729(),!_0x2fbb04)return _0x395dce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2fbb04[_0x395dce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x227c2a=_0x2797c5(_0x2fbb04[_0x395dce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fbb04[_0x395dce([0x6a,0x74,0x69])])),await _0x5cf426()?_0x9d8e66()?_0x281f44()?_0x395dce([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x442744()?(_0x2fbb04[_0x395dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x395dce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x347f18=_0x263e37(_0x395dce([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4574a2()):_0x395dce([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x395dce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x395dce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x395dce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x281f44(){const _0x4556f9=[_0x395dce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x395dce([0x74,0x72,0x69,0x61,0x6c])][_0x395dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fbb04[_0x395dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38ccc0/0x3e8:0xe10*_0x49dfba;return _0x2fbb04[_0x395dce([0x65,0x78,0x70])]<_0x4556f9;}function _0x9d8e66(){const _0x2befb2=_0x2fbb04[_0x395dce([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2befb2&&(!!_0x2befb2[_0x395dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395dce([0x2a]))||!!_0x2befb2[_0x395dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395dce([0x50,0x41,0x47])));}function _0x442744(){const _0x18bcea=_0x2fbb04[_0x395dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18bcea||0x0==_0x18bcea[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4fd4c8}=new URL(window[_0x395dce([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18bcea[_0x395dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fd4c8))return!0x0;const _0x59f2da=_0x4fd4c8[_0x395dce([0x73,0x70,0x6c,0x69,0x74])](_0x395dce([0x2e]));return _0x18bcea[_0x395dce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55b65b=>_0x55b65b[_0x395dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395dce([0x2a])))[_0x395dce([0x6d,0x61,0x70])](_0x534854=>_0x534854[_0x395dce([0x73,0x70,0x6c,0x69,0x74])](_0x395dce([0x2e])))[_0x395dce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf83c47=>_0xf83c47[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x59f2da[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x395dce([0x6d,0x61,0x70])](_0x267e52=>Array(_0x59f2da[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x267e52[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x395dce([0x66,0x69,0x6c,0x6c])](_0x267e52[0x0]===_0x395dce([0x2a])?_0x395dce([0x2a]):'')[_0x395dce([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x267e52))[_0x395dce([0x73,0x6f,0x6d,0x65])](_0x667e5a=>_0x59f2da[_0x395dce([0x65,0x76,0x65,0x72,0x79])]((_0x4a9b11,_0x3eadd5)=>_0x667e5a[_0x3eadd5]===_0x4a9b11||_0x667e5a[_0x3eadd5]===_0x395dce([0x2a])));}function _0x4574a2(){return _0x347f18&&_0x227c2a?new window[(_0x395dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x352b96,_0xb57a44)=>{_0x347f18[_0x395dce([0x74,0x68,0x65,0x6e])](_0x352b96,_0xb57a44),_0x227c2a[_0x395dce([0x74,0x68,0x65,0x6e])](_0x2ce0ab=>{_0x2ce0ab!=_0x395dce([0x56,0x61,0x6c,0x69,0x64])&&_0x352b96(_0x2ce0ab);},_0xb57a44);}):_0x347f18||_0x227c2a||_0x395dce([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2797c5(_0x23e6e4,_0x1c56d7){return new window[(_0x395dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x416381=>{if(_0x44f29a())return _0x416381(_0x395dce([0x56,0x61,0x6c,0x69,0x64]));_0x2f1f6d(),_0x153570[_0x395dce([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x395dce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd3fef=!0x1;const _0x2702f0=_0x5bf63c();function _0x492ba3(_0x3956f4){return!!_0x3956f4&&(typeof _0x3956f4===_0x395dce([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3956f4===_0x395dce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3956f4[_0x395dce([0x74,0x68,0x65,0x6e])]===_0x395dce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3956f4[_0x395dce([0x63,0x61,0x74,0x63,0x68])]===_0x395dce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a2142(_0x1cf2c7){_0x166711(_0x1cf2c7)[_0x395dce([0x74,0x68,0x65,0x6e])](_0x4c9e0e=>{if(!_0x4c9e0e||_0x4c9e0e[_0x395dce([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x395dce([0x6f,0x6b]))return _0x395dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x591739(_0x448a52(_0x2702f0+_0x1c56d7))!=_0x4c9e0e[_0x395dce([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x395dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x395dce([0x56,0x61,0x6c,0x69,0x64]);})[_0x395dce([0x74,0x68,0x65,0x6e])](_0x541188=>(_0x5eb522(),_0x541188),()=>{const _0x10aa09=_0x221c78();return null==_0x10aa09?(_0x5eb522(),_0x395dce([0x56,0x61,0x6c,0x69,0x64])):_0x395dce(_0x38ccc0-_0x10aa09>(0x288e4f1e^_0x6645e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x395dce([0x74,0x68,0x65,0x6e])](_0x416381)[_0x395dce([0x63,0x61,0x74,0x63,0x68])](()=>{_0x416381(_0x395dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ac529=0xcb4259e^_0x6645e2;function _0x5eb522(){const _0x1bb7de=_0x395dce([0x6c,0x6c,0x63,0x74,0x2d])+_0x591739(_0x448a52(_0x23e6e4)),_0x68a23a=_0x46fea0(_0x591739(window[_0x395dce([0x4d,0x61,0x74,0x68])][_0x395dce([0x63,0x65,0x69,0x6c])](_0x38ccc0/_0x4ac529)));window[_0x395dce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395dce([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bb7de,_0x68a23a);}function _0x221c78(){const _0x46435a=_0x395dce([0x6c,0x6c,0x63,0x74,0x2d])+_0x591739(_0x448a52(_0x23e6e4)),_0x142d8c=window[_0x395dce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395dce([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46435a);return _0x142d8c?window[_0x395dce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46fea0(_0x142d8c),0x10)*_0x4ac529:null;}function _0x166711(_0x3eaf8e){return new window[(_0x395dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5980e4,_0x130110)=>{_0x3eaf8e[_0x395dce([0x74,0x68,0x65,0x6e])](_0x5980e4,_0x130110),window[_0x395dce([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x130110,0xc831fde^_0x6645e2);});}}_0x153570[_0x395dce([0x6f,0x6e])](_0x395dce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd45e65,_0x32576d)=>{if(_0x32576d[0x0]!=_0x23e6e4)return _0x416381(_0x395dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32576d[0x1]={..._0x32576d[0x1],[_0x395dce([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2702f0};},{[_0x395dce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395dce([0x68,0x69,0x67,0x68])}),_0x153570[_0x395dce([0x6f,0x6e])](_0x395dce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x18c4bd=>{_0x492ba3(_0x18c4bd[_0x395dce([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd3fef=!0x0,_0x5a2142(_0x18c4bd[_0x395dce([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x395dce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395dce([0x6c,0x6f,0x77])}),_0x4577fd[_0x395dce([0x74,0x68,0x65,0x6e])](()=>{_0xd3fef||_0x416381(_0x395dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44f29a(){return _0x153570[_0x395dce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395dce([0x76,0x69,0x65,0x77])][_0x395dce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x395dce([0x61,0x75,0x74,0x6f]);}function _0x2f1f6d(){_0x153570[_0x395dce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395dce([0x76,0x69,0x65,0x77])][_0x395dce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x395dce([0x61,0x75,0x74,0x6f]);}}function _0x263e37(_0x502038){const _0x530e22=[new window[(_0x395dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c401a=>setTimeout(_0x2c401a,0xc8bf5d2^_0x6645e2)),_0x4577fd[_0x395dce([0x74,0x68,0x65,0x6e])](()=>new window[(_0x395dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd093=>{let _0x47cf18=0x0;_0x153570[_0x395dce([0x6d,0x6f,0x64,0x65,0x6c])][_0x395dce([0x6f,0x6e])](_0x395dce([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1529e5,_0x1bf428)=>{_0x1bf428[0x0][_0x395dce([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47cf18++,_0x47cf18==(0xc82cef6^_0x6645e2)&&(_0x4dd093(),_0x1529e5[_0x395dce([0x6f,0x66,0x66])]());});}))];return window[_0x395dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x395dce([0x72,0x61,0x63,0x65])](_0x530e22)[_0x395dce([0x74,0x68,0x65,0x6e])](()=>_0x502038);}async function _0x30b9df(){await _0x4577fd,_0x153570[_0x395dce([0x6d,0x6f,0x64,0x65,0x6c])][_0x395dce([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29fb08,_0x153570[_0x395dce([0x6d,0x6f,0x64,0x65,0x6c])][_0x395dce([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29fb08,_0x153570[_0x395dce([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x395dce([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ec9f7(_0x6cef20){const _0x18e1af=_0x585955();_0x153570[_0x18e1af]=_0x395dce([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6cef20,_0x6cef20!=_0x395dce([0x56,0x61,0x6c,0x69,0x64])&&_0x30b9df();}function _0x585955(){const _0x4791b2=window[_0x395dce([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x395dce([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x395dce([0x6e,0x6f,0x77])]())[_0x395dce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x395dce([0x2e]),'');let _0x3c6e76=_0x395dce([0x49]);for(let _0x5cf304=0x0;_0x5cf304<_0x4791b2[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cf304+=0x2){let _0x54ea37=window[_0x395dce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4791b2[_0x395dce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cf304,_0x5cf304+0x2));_0x54ea37>=_0xdf0b7a[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54ea37-=_0xdf0b7a[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c6e76+=_0xdf0b7a[_0x54ea37];}return _0x3c6e76;}function _0x287729(){const _0x57fd34=_0x1e3377[_0x395dce([0x73,0x70,0x6c,0x69,0x74])](_0x395dce([0x2e]));if(0x3!=_0x57fd34[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18d86b(_0x57fd34[0x1]);function _0x18d86b(_0x57b3a5){const _0x123436=_0x5d1afc(_0x57b3a5);return _0x123436&&_0x44d3b9()?_0x123436:null;function _0x44d3b9(){const _0x2d51b1=_0x123436[_0x395dce([0x6a,0x74,0x69])],_0x26ef98=window[_0x395dce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d51b1[_0x395dce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d51b1[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe208e7={..._0x123436,[_0x395dce([0x6a,0x74,0x69])]:_0x2d51b1[_0x395dce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d51b1[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe208e7[_0x395dce([0x76,0x63])],_0x448a52(_0xe208e7)==_0x26ef98;}}}async function _0x5cf426(){let _0x25a9a7=!0x0;try{const _0x3ec2ec=_0x1e3377[_0x395dce([0x73,0x70,0x6c,0x69,0x74])](_0x395dce([0x2e])),[_0x184911,_0x5e4a11,_0x1bc66c]=_0x3ec2ec;return _0x4a68f9(_0x184911),await _0x3477d1(_0x184911,_0x5e4a11,_0x1bc66c),_0x25a9a7;}catch{return!0x1;}function _0x4a68f9(_0x452a28){const _0x1795b7=_0x5d1afc(_0x452a28);_0x1795b7&&_0x1795b7[_0x395dce([0x61,0x6c,0x67])]==_0x395dce([0x45,0x53,0x32,0x35,0x36])||(_0x25a9a7=!0x1);}async function _0x3477d1(_0x32c498,_0x4f29d4,_0xa8073f){const _0x717036=window[_0x395dce([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x395dce([0x66,0x72,0x6f,0x6d])](_0x181a0e(_0xa8073f),_0x316d16=>_0x316d16[_0x395dce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c9b84=new window[(_0x395dce([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x395dce([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32c498+_0x395dce([0x2e])+_0x4f29d4),_0x475b80=window[_0x395dce([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x395dce([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x475b80)return;const _0x33f351=await _0x475b80[_0x395dce([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x395dce([0x6a,0x77,0x6b]),_0x1aa7cc,{[_0x395dce([0x6e,0x61,0x6d,0x65])]:_0x395dce([0x45,0x43,0x44,0x53,0x41]),[_0x395dce([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x395dce([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x395dce([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x475b80[_0x395dce([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x395dce([0x6e,0x61,0x6d,0x65])]:_0x395dce([0x45,0x43,0x44,0x53,0x41]),[_0x395dce([0x68,0x61,0x73,0x68])]:{[_0x395dce([0x6e,0x61,0x6d,0x65])]:_0x395dce([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x33f351,_0x717036,_0x1c9b84)||(_0x25a9a7=!0x1);}}function _0x5d1afc(_0x3b3d45){return _0x3b3d45[_0x395dce([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x395dce([0x65,0x79]))?JSON[_0x395dce([0x70,0x61,0x72,0x73,0x65])](_0x181a0e(_0x3b3d45)):null;}function _0x181a0e(_0x29840a){return window[_0x395dce([0x61,0x74,0x6f,0x62])](_0x29840a[_0x395dce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x395dce([0x2b]))[_0x395dce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x395dce([0x2f])));}function _0x448a52(_0x516145){let _0x2823cd=0x1505;function _0x5ac211(_0x388043){for(let _0x246b86=0x0;_0x246b86<_0x388043[_0x395dce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x246b86++){const _0x1f15f5=_0x388043[_0x395dce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x246b86);_0x2823cd=(_0x2823cd<<0x5)+_0x2823cd+_0x1f15f5,_0x2823cd&=_0x2823cd;}}function _0x5de44e(_0x5d28ea){Array[_0x395dce([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d28ea)?_0x5d28ea[_0x395dce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5de44e):_0x5d28ea&&typeof _0x5d28ea==_0x395dce([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x395dce([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d28ea)[_0x395dce([0x73,0x6f,0x72,0x74])]()[_0x395dce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x213d19,_0x16779f])=>{_0x5ac211(_0x213d19),_0x5de44e(_0x16779f);}):_0x5ac211(window[_0x395dce([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d28ea));}return _0x5de44e(_0x516145),_0x2823cd>>>0x0;}function _0x591739(_0x163d38){return _0x163d38[_0x395dce([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x395dce([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x395dce([0x30]));}function _0x46fea0(_0x19c93c){return _0x19c93c[_0x395dce([0x73,0x70,0x6c,0x69,0x74])]('')[_0x395dce([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x395dce([0x6a,0x6f,0x69,0x6e])]('');}function _0x29fb08(){}function _0x395dce(_0x26aa8d){return _0x26aa8d['map'](_0x230d81=>String['fromCharCode'](_0x230d81))['join']('');}_0x5ec9f7(await _0x302bc1());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0xb03379=this['editor'],_0x4ab6dc=_0xb03379['editing']['view'],_0x1ec34f=this['_getAttachedDomRoot']();if(!_0x1ec34f||0x0===_0x1ec34f['childElementCount'])return void _0xb03379['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x362bf3,pageHeight:_0x446793}=_0xb03379['config']['get']('pagination'),{top:_0x4c8bd1,left:_0xd7948c,bottom:_0x3d4623,right:_0x55a69a}=this['_configuredPaddings'];this['_pagesContainer']=new _0x4e4104(_0xb03379['locale']);const _0x2e0be4=this['_pagesContainer'];_0x2e0be4['set']('class',''),_0x2e0be4['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x362bf3,'width':_0x362bf3,'height':'calc(\x20'+_0x446793+'\x20-\x20'+_0x4c8bd1+'\x20-\x20'+_0x3d4623+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x55a69a+'\x200\x20'+_0xd7948c,'columnGap':'calc('+_0xd7948c+'\x20+\x20'+_0x55a69a+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x2e0be4['bindTemplate']['to']('class')}}),_0x2e0be4['render'](),_0x1ec34f['parentNode']['insertBefore'](_0x2e0be4['element'],_0x1ec34f['nextSibling']),this['listenTo'](_0x4ab6dc,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x4257a2 of this['editor']['editing']['view']['domRoots']['values']())if(_0x4257a2['ownerDocument']['body']['contains'](_0x4257a2))return _0x4257a2;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x5b04d1=this['editor']['editing']['view'],_0x312f49=this['_pagesContainer'],_0x2e2869=this['_getAttachedDomRoot']();if(!_0x2e2869)return Promise['resolve']();for(_0x312f49['class']=['ck-reset','ck-pagination-view',..._0x2e2869['classList']]['join']('\x20');_0x312f49['element']['firstChild'];)_0x312f49['element']['firstChild']['remove']();const _0x1f0129=Array['from'](_0x5b04d1['domRoots']);_0x1f0129['sort'](([,_0x61754c],[,_0x46cc0b])=>_0x61754c['compareDocumentPosition'](_0x46cc0b)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x26e088,_0x1a7f2a]of _0x1f0129){const _0x1d4ca7=_0x1a7f2a['cloneNode'](!0x0);'attributeStyleMap'in _0x1d4ca7&&_0x1d4ca7['attributeStyleMap']['clear'](),_0x1d4ca7['dataset']['rootName']=_0x26e088,_0x1d4ca7['className']='ck-content\x20ck-pagination_enabled',_0x1d4ca7['removeAttribute']('id'),_0x1d4ca7['tabIndex']=-0x1,_0x312f49['element']['append'](_0x1d4ca7);}const _0x586718=Array['from'](_0x312f49['element']['querySelectorAll']('img'));return function(_0x12bb55){return Promise['all'](_0x12bb55['map'](_0x30ce05=>Promise['race']([k(_0x30ce05),v(0x3e8)])));}(_0x586718)['then'](()=>{for(const _0x186445 of _0x586718['filter'](_0x831b87=>!_0x831b87['closest']('table')))if(_0x186445['offsetParent']){const _0x32e880=_0x164b92['window']['getComputedStyle'](_0x186445),_0x579b40=_0x164b92['document']['createElement']('span');for(const _0x56b0d2 of _0x32e880)_0x579b40['style']['setProperty'](_0x56b0d2,_0x32e880[_0x56b0d2]);_0x579b40['style']['backgroundImage']='url(\x20'+_0x186445['src']+'\x20)',_0x579b40['style']['breakInside']='avoid','PICTURE'==_0x186445['parentElement']?.['tagName']?_0x186445['parentElement']['replaceWith'](_0x579b40):_0x186445['replaceWith'](_0x579b40);}return new Promise(_0x6253e8=>_0x164b92['window']['requestAnimationFrame'](()=>_0x6253e8()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x28255f=this['_pagesContainer']['element'];if(!_0x28255f['ownerDocument']['body']['contains'](_0x28255f))return;const _0x535dfe=new _0x292346(_0x28255f)['excludeScrollbarsAndBorders'](),_0x143fb4=Math['floor'](_0x535dfe['width']+0x64),_0x47138f=_(_0x28255f,Math['floor'](_0x535dfe['left']-_0x28255f['scrollLeft']),_0x143fb4,_0x535dfe['height'])['map'](_0x1bda9e=>this['_mapPageStarterInfoToPageBreakInfo'](_0x1bda9e))['filter'](_0x170b7e=>!0x1!==_0x170b7e);_0x47138f['every'](_0x5346e5=>!!_0x5346e5)&&(this['pageBreaks']=_0x47138f);}['_mapPageStarterInfoToPageBreakInfo'](_0x2739d2){const _0x2b32fb=this['editor']['editing']['view'],_0x2a621d=this['editor']['editing']['mapper'],_0x5badb9=_0x2b32fb['domConverter'],_0x4b2fd8=_0x2739d2['path']['shift'](),_0x46d9cd=this['_pagesContainer']['element']['childNodes'][_0x4b2fd8]['dataset']['rootName'],_0xbddb0e=_0x2b32fb['getDomRoot'](_0x46d9cd);if(!_0xbddb0e)return null;const _0x10ab0b=function(_0xf14ade,_0x19a928){let _0x173180=_0xf14ade;for(const _0x471c8a of _0x19a928['path']){if(!_0x173180)return null;_0x173180=_0x173180['childNodes'][_0x471c8a];}return _0x173180;}(_0xbddb0e,_0x2739d2);if(!_0x10ab0b)return null;const _0x44ebc3=_0x5badb9['domPositionToView'](_0x10ab0b,_0x2739d2['textOffset']||0x0);return _0x44ebc3?'manual'==_0x2739d2['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x44ebc3,_0x10ab0b):'text'==_0x2739d2['type']&&_0x2a621d['toModelPosition'](_0x44ebc3)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x44ebc3,_0x10ab0b,_0x2739d2['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x44ebc3,_0x10ab0b,_0x2739d2['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x4810be,_0x1269cc){const _0x56f1a8=this['editor']['model'],_0x15f6e8=this['editor']['editing']['mapper']['toModelElement'](_0x4810be['parent']),_0x63ff75=_0x56f1a8['createRangeOn'](_0x15f6e8);return new b({'type':'manual','modelRange':_0x63ff75,'domNode':_0x1269cc,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x48e5fe,_0x104be7,_0x4b5bf9){const _0x5b30de=this['editor']['model'],_0x271f65=this['editor']['editing']['mapper'],_0x5a95fd=this['editor']['editing']['view']['domConverter'];if(_0x4b5bf9>=_0x104be7['length'])return null;const _0x4c6bdc=_0x271f65['toModelPosition'](_0x48e5fe),_0x3a7bf1=_0x5b30de['createRange'](_0x4c6bdc),_0x57ce56=_0x271f65['findMappedViewAncestor'](_0x48e5fe),_0x443768=_0x5a95fd['mapViewToDom'](_0x57ce56);return new b({'type':'text','modelRange':_0x3a7bf1,'domNode':_0x104be7,'offset':P(_0x104be7,_0x4b5bf9,_0x443768)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x33e1c0,_0x1c93af,_0x45ba28){const _0x357246=this['editor']['model'],_0x3c88ab=this['editor']['editing'],_0x342710=_0x3c88ab['mapper'],_0x11b636=_0x3c88ab['view']['domConverter'],_0x40b813=_0x342710['findMappedViewAncestor'](_0x33e1c0),_0x30b8b6=_0x342710['toModelElement'](_0x40b813);if(!_0x30b8b6||_0x30b8b6['is']('element','$root'))return!0x1;const _0x107f1e=function(_0x29cea9){const _0x593fc5=_0x29cea9['parent'],_0x4c2f27=_0x593fc5['root']['document']['model'],_0x4b6c2d=_0x593fc5['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x8376e0=null;for(const _0x3179a1 of _0x4b6c2d){if(_0x3179a1['is']('rootElement'))return _0x8376e0;if(!_0x4c2f27['createPositionBefore'](_0x3179a1)['isTouching'](_0x29cea9))return _0x8376e0;_0x8376e0=_0x3179a1;}}(_0x357246['createPositionBefore'](_0x30b8b6)),_0x5745b2=_0x107f1e||_0x30b8b6;let _0x416daa=_0x342710['toViewElement'](_0x5745b2),_0xe7fced=_0x357246['createRangeOn'](_0x5745b2);const _0x1db6b7=_0x357246['createPositionBefore'](_0x5745b2)['nodeBefore'];if(_0x1db6b7&&_0x1db6b7['is']('element','imageBlock')){const _0x199eb3=_0x342710['toViewElement'](_0x1db6b7),_0x762d2e=_0x11b636['mapViewToDom'](_0x199eb3),_0x22db8d=_0x164b92['window']['getComputedStyle'](_0x762d2e)['float'];'left'!=_0x22db8d&&'right'!=_0x22db8d||(_0xe7fced=_0x357246['createRangeOn'](_0x1db6b7));}for(;_0x416daa['parent']!==_0x416daa['root']&&0x0===_0x416daa['index'];)_0x416daa=_0x416daa['parent'];const _0x3a44f8=new _0x292346(I(_0x1c93af)?_0x1c93af:x(_0x1c93af)),_0x26ba1a=_0x45ba28?_0x3a44f8['height']-_0x45ba28:0x0,_0x2357f3=_0x11b636['mapViewToDom'](_0x416daa),_0x11f1b5=new _0x292346(_0x2357f3);return new b({'type':'element','modelRange':_0xe7fced,'domNode':_0x2357f3,'offset':Math['round'](_0x26ba1a)||_0x40b813!=y(_0x33e1c0)?_0x26ba1a+_0x3a44f8['top']-_0x11f1b5['top']:0x0});}get['_configuredPaddings'](){const _0x4f018a=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x4f018a);}static['_findPageStarterInfos'](_0x3f9d7b,_0x48bd3a,_0x1ae07e,_0x190cca,_0x5c5268){return _(_0x3f9d7b,_0x48bd3a,_0x1ae07e,_0x190cca,_0x5c5268);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x171b86,modelRange:_0x56c807,domNode:_0x34e3f2,offset:_0x43733c}){this['type']=_0x171b86,this['modelRange']=_0x56c807,this['_domNode']=_0x34e3f2,this['_offset']=_0x43733c;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x4b834f=new _0x292346(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0x4b834f['top']+_0x4b834f['height']/0x2:_0x4b834f['top']+this['_offset'];}}function P(_0x38821c,_0x4f6c8c,_0x5d9de7){const _0x1bafb0=x(_0x38821c),_0x532634=function(_0x2c1587){const _0x23534c=_0x164b92['document']['createRange']();return _0x23534c['selectNodeContents'](_0x2c1587),_0x23534c;}(_0x5d9de7);let _0x481e95;_0x481e95=0x0==_0x4f6c8c?L(_0x532634['startContainer'],_0x532634['startOffset'],_0x38821c['parentNode'],Array['from'](_0x38821c['parentNode']['childNodes'])['indexOf'](_0x38821c)):L(_0x532634['startContainer'],_0x532634['startOffset'],_0x38821c,_0x4f6c8c);const _0x4e2697=L(_0x38821c,_0x4f6c8c,_0x532634['endContainer'],_0x532634['endOffset']),_0x7b8ba0=new _0x292346(_0x481e95)['bottom'];return(new _0x292346(_0x4e2697)['top']+_0x7b8ba0)/0x2-new _0x292346(_0x1bafb0)['top'];}function y(_0x2c2008){let _0x47dffd=_0x2c2008['parent'];for(;_0x47dffd['is']('$text')||_0x47dffd['is']('attributeElement');)_0x47dffd=_0x47dffd['parent'];return _0x47dffd;}function k(_0x3546cb){return _0x3546cb['hasAttribute']('width')&&_0x3546cb['hasAttribute']('height')?Promise['resolve']():new Promise(_0x255b26=>{function _0x1ac1e0(){_0x3546cb['removeEventListener']('load',_0x1ac1e0),_0x3546cb['removeEventListener']('error',_0x1ac1e0),_0x255b26();}_0x3546cb['complete']?_0x255b26():(_0x3546cb['addEventListener']('load',_0x1ac1e0),_0x3546cb['addEventListener']('error',_0x1ac1e0));});}function v(_0x12468b){return new Promise(_0x1daf18=>setTimeout(_0x1daf18,_0x12468b));}function x(_0x317ad0){const _0x4d65ef=_0x164b92['document']['createRange']();return _0x4d65ef['selectNode'](_0x317ad0),_0x4d65ef;}function N(_0x167dfd,_0xaa3401,_0x1e8f34){const _0x497df7=_0x164b92['document']['createRange']();return _0x497df7['setStart'](_0x167dfd,_0xaa3401),_0x497df7['setEnd'](_0x167dfd,_0x1e8f34),_0x497df7;}function L(_0x4ce165,_0x207bc2,_0x7b4c06,_0xa9d59b){const _0x5882f8=_0x164b92['document']['createRange']();return _0x5882f8['setStart'](_0x4ce165,_0x207bc2),_0x5882f8['setEnd'](_0x7b4c06,_0xa9d59b),_0x5882f8;}function _(_0x2ec9d3,_0x2754a6,_0x491737,_0x5dc982,_0x1837d1){const _0xb52e84=[];for(const [_0x38755c,_0x483027]of _0x2ec9d3['childNodes']['entries']()){let _0x4e232a=[];I(_0x483027)&&_0x483027['offsetParent']&&['static','relative']['includes'](_0x164b92['window']['getComputedStyle'](_0x483027)['position'])?_0x4e232a=S(_0x483027,_0x38755c,_0x2754a6,_0x491737,_0x5dc982,_0x1837d1):O(_0x483027)&&(_0x4e232a=E(_0x483027,_0x38755c,_0x2754a6,_0x491737,_0x1837d1)),_0x4e232a['length']&&(_0xb52e84['push'](..._0x4e232a),_0x2754a6+=_0x4e232a['length']*_0x491737,_0x1837d1=!0x1);}return _0xb52e84;}function S(_0xd286d9,_0x456680,_0x50e744,_0x414052,_0x51ca87,_0x29b598){const _0x49258d=[];var _0x4a8195;if((_0x4a8195=_0xd286d9['previousSibling'])&&I(_0x4a8195)&&Boolean(_0x4a8195['classList']['contains']('page-break')||_0x4a8195['closest']('.page-break'))&&(_0x49258d['push']({'type':'manual','offset':0x0,'path':[_0x456680-0x1]}),_0x29b598=!0x0),'table-row'==_0x164b92['window']['getComputedStyle'](_0xd286d9)['display']){let _0x474735=0x0,_0x40dc0c=!0x1;for(const _0x1abb92 of _0xd286d9['getClientRects']())_0x474735+=_0x1abb92['height'],_0x1abb92['left']>=_0x50e744&&(_0x40dc0c=!0x0);if(_0x474735<_0x51ca87&&_0x40dc0c)return _0x29b598||_0x49258d['push']({'type':'element','offset':0x0,'path':[_0x456680]}),_0x49258d;}const _0x1f2c0b=_0xd286d9['closest']('figure.image');if(_0x1f2c0b&&function(_0x3eba85){let _0x166325=!0x1;const _0x301878=_0x3eba85['parentElement'],_0xdc5613=_0x301878['dataset']['rootName'],_0x36837c=_0x3eba85['nextElementSibling'],_0x427863=_0x3eba85['previousElementSibling'],_0x3a273c=_0x36837c&&_0x164b92['window']['getComputedStyle'](_0x36837c)['float'],_0x4af730=_0x36837c&&'ck-fake-selection-container'===_0x36837c['className'];!_0xdc5613||_0x36837c||_0x427863||(_0x166325=!0x0),_0xdc5613&&!_0x427863&&_0x4af730&&(_0x166325=!0x0),_0xdc5613&&!_0x427863&&'none'!==_0x3a273c&&(_0x166325=!0x0);if(_0x166325)return!0x1;return!0x0;}(_0x1f2c0b)){const _0x1d30c5=_0x164b92['window']['getComputedStyle'](_0x1f2c0b)['float'];if('left'==_0x1d30c5||'right'==_0x1d30c5)return _0x49258d;}const _0x548563=_(_0xd286d9,_0x50e744,_0x414052,_0x51ca87,_0x29b598);if(_0x548563['length']){for(const _0x3adb35 of _0x548563)_0x49258d['push']({'type':_0x3adb35['type'],'offset':_0x3adb35['offset'],'textOffset':_0x3adb35['textOffset'],'path':[_0x456680,..._0x3adb35['path']]}),_0x50e744+=_0x414052,_0x29b598=!0x1;return _0x49258d;}return _0x49258d['push'](...function(_0x2127fa,_0x3205b5,_0x4c459f,_0x17d037,_0x480eb1){const _0x2d67ab=[];if('table-cell'==_0x164b92['window']['getComputedStyle'](_0x2127fa)['display'])return[];const _0x4e84b4=[];for(const _0x5baefc of _0x2127fa['getClientRects']())if(_0x5baefc['left']>=_0x4c459f){for(const _0x26cef6 of _0x4e84b4)_0x26cef6['height']+=_0x5baefc['height'];_0x4e84b4['push']({'height':_0x5baefc['height']}),_0x4c459f+=_0x17d037;}for(const _0x1d7764 of _0x4e84b4)_0x480eb1||_0x2d67ab['push']({'type':'element','offset':_0x1d7764['height'],'textOffset':0x0,'path':[_0x3205b5]}),_0x480eb1=!0x1;return _0x2d67ab;}(_0xd286d9,_0x456680,_0x50e744,_0x414052,_0x29b598)),_0x49258d;}function E(_0x1642f2,_0xa9c48b,_0x3fc9e4,_0x547b0f,_0x5400f7){const _0x251ab2=x(_0x1642f2),_0xcefefd=[];let _0x47cebf=0x0;for(const _0x26faf7 of _0x251ab2['getClientRects']())if(_0x26faf7['left']>=_0x3fc9e4){const _0x5ceee9=R(_0x1642f2,_0x47cebf,_0x3fc9e4,_0x547b0f);_0x5400f7||_0xcefefd['push']({'type':'text','path':[_0xa9c48b],'textOffset':_0x5ceee9}),_0x47cebf=_0x5ceee9,_0x3fc9e4+=_0x547b0f,_0x5400f7=!0x1;}return _0xcefefd;}function R(_0x173cc1,_0x2da461,_0x38e0de,_0x441428){let _0xc9b2c=_0x2da461,_0x3237cd=_0x173cc1['length'];for(;_0x3237cd-_0xc9b2c>0x1;){const _0x39a223=Math['ceil']((_0xc9b2c+_0x3237cd)/0x2);K(N(_0x173cc1,_0xc9b2c,_0x39a223),_0x38e0de,_0x441428)?_0x3237cd=_0x39a223:_0xc9b2c=_0x39a223;}return _0xc9b2c;}function K(_0x2c091c,_0x5f0e1b,_0xa4292){for(const _0x2c8f0b of _0x2c091c['getClientRects']())if(_0x2c8f0b['left']>=_0x5f0e1b&&_0x2c8f0b['left']<_0x5f0e1b+_0xa4292)return!0x0;return!0x1;}function I(_0x59599b){return _0x59599b['nodeType']==Node['ELEMENT_NODE'];}function O(_0x58cf9a){return _0x58cf9a['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x8cccc3('px');class T extends _0x4e4104{constructor(){super();const _0x1db949=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x1db949['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x1db949['if']('isVisible','ck-hidden',_0x304f2f=>!_0x304f2f)],'style':{'left':_0x1db949['to']('left',_0x341dd6=>B(_0x341dd6)),'top':_0x1db949['to']('top',_0x5b7fe1=>B(_0x5b7fe1)),'width':_0x1db949['to']('width',_0x12982b=>B(_0x12982b))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x5d6c40){this['_viewCollection']=_0x5d6c40['ui']['view']['body'];}['destroy'](){for(const _0x38bcdb of this['_hiddenLines'])_0x38bcdb['destroy']();}['cleanLines'](){for(const _0x3c433a of this['_visibleLines'])_0x3c433a['isVisible']=!0x1,this['_hiddenLines']['add'](_0x3c433a);this['_visibleLines']['clear']();}['showLine'](_0x17cd2d,_0x1f9af9,_0x45caae,_0x2d1ce6){let _0x20af83;this['_hiddenLines']['size']?(_0x20af83=_0x393c9d(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x20af83)):_0x20af83=new T(),_0x20af83['set']({'pageNumber':_0x2d1ce6,'left':_0x17cd2d,'top':_0x1f9af9,'width':_0x45caae}),_0x20af83['isVisible']=!0x0,this['_viewCollection']['has'](_0x20af83)||this['_viewCollection']['add'](_0x20af83),this['_visibleLines']['add'](_0x20af83);}['setViewCollection'](_0x5b4b25){for(const _0x1863e9 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x1863e9)&&this['_viewCollection']['remove'](_0x1863e9);this['_viewCollection']=_0x5b4b25;}}const D='ck-pagination_enabled';class $ extends _0x57550a{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new A(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](D),this['on']('change:isEnabled',(_0x53e1d0,_0x145d0b,_0x527927)=>{_0x527927||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x527927);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x1f2293){if(!this['isEnabled'])return;const _0x5c3d5d=_0x1f2293>0x1?this['_getPageBreakLineOffset'](_0x1f2293-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x5c3d5d-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x4c6fa8['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x42e33d=this['editor'],_0x23a1fd=this['_getAttachedDomRoot']();_0x23a1fd?(this['_scrollableEditingRootDomAncestor']&&_0x42e33d['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x39faf8){let _0x42e376=_0x39faf8;do{_0x42e376=_0x42e376['parentElement'];const _0x4e8612=_0x164b92['window']['getComputedStyle'](_0x42e376)['overflowY'];if('auto'==_0x4e8612||'scroll'==_0x4e8612)break;}while('BODY'!=_0x42e376['tagName']);return _0x42e376;}(_0x23a1fd),_0x42e33d['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x474e74(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x42e33d['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x2d9085=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x2d9085['ui']['view']['listenTo'](_0x164b92['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x2d9085['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x55e14f of this['editor']['editing']['view']['domRoots']['values']())if(_0x55e14f['ownerDocument']['body']['contains'](_0x55e14f))return _0x55e14f;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x2b2308=this['_getAttachedDomRoot'](),_0x1dbe25=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x2b2308||0x1==_0x1dbe25['length'])return void(this['pageNumber']=0x1);const _0xf2962f=new _0x292346(_0x2b2308)['excludeScrollbarsAndBorders'](),_0x4a3d1d=new _0x292346(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x3586bd=_0x4a3d1d['top']+_0x4a3d1d['height']/0x3;let _0x1a965f=!0x1;const _0xb8ba34=[];for(let _0x3f561a=0x1;_0x3f561a<_0x1dbe25['length'];_0x3f561a++){const _0x9c1556=this['_getPageBreakLineOffset'](_0x3f561a,_0x4a3d1d);if(!_0x9c1556)continue;const _0x36d34e=_0x4a3d1d['top']+_0x9c1556-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0xb8ba34['push']({'pageOffsetTop':_0x36d34e,'domRootRect':_0xf2962f,'domScrollableRect':_0x4a3d1d,'pageNumber':_0x3f561a}),_0x36d34e>_0x3586bd&&!_0x1a965f&&(this['pageNumber']=_0x3f561a,_0x1a965f=!0x0);}this['_renderPageBreakLines'](_0xb8ba34),_0x1a965f||(this['pageNumber']=_0x1dbe25['length']);}['_renderPageBreakLines'](_0xf5abf3){const {scrollX:_0x383e55,scrollY:_0x3ff7c7}=_0x164b92['window'];if(_0xf5abf3['length']){for(const {domScrollableRect:_0x4f4196,pageOffsetTop:_0x3160ed,domRootRect:_0x3a6b8d,pageNumber:_0x132dd0}of _0xf5abf3)_0x4f4196['top']<_0x3160ed&&_0x3160ed<_0x4f4196['bottom']&&this['linesRepository']['showLine'](_0x3a6b8d['left']+_0x383e55,_0x3160ed+_0x3ff7c7,_0x3a6b8d['width'],_0x132dd0+0x1);}}['_getPageBreakLineOffset'](_0x28eb1b,_0x177938=null){const _0x2a377f=this['_paginationLookupPlugin']['pageBreaks'][_0x28eb1b]['offset'];return _0x2a377f?(_0x177938||(_0x177938=new _0x292346(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x2a377f-_0x177938['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x33e120,_0x31bb98=!0x0){const _0x5ac5be=this['editor']['editing']['view'];_0x5ac5be['change'](_0x437948=>{for(const _0x3560ac of _0x5ac5be['document']['roots'])_0x31bb98?_0x437948['addClass'](_0x33e120,_0x3560ac):_0x437948['removeClass'](_0x33e120,_0x3560ac);});}}function G(_0x254988,_0x5f3d06,..._0x66e135){const t=_0x254988['t'];switch(_0x5f3d06){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x66e135);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x5f3d06;}}class C extends _0x57550a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,$];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0xac58ad=this['editor']['plugins']['get']('Pagination'),_0x3eab82=this['editor']['plugins']['get'](w),_0x21ffb3=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0xac58ad),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x21ffb3),this['listenTo'](_0x3eab82,'change:pageBreaks',(_0x4d6273,_0xf42493,_0x15a15a,_0x4ff624)=>{this['totalPages']=_0x15a15a['length'],this['_updatePageBreakMarkers'](_0x15a15a,_0x4ff624);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1a83d1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x230db5;for(const _0x107e80 in _0x1a83d1){const _0x5e2209=_0x107e80,_0x2b089e=_0x1a83d1[_0x5e2209];if('paginationLicenseKeyValid'==_0x2b089e||'paginationLicenseKeyInvalid'==_0x2b089e||'paginationLicenseKeyExpired'==_0x2b089e||'paginationLicenseKeyDomainLimit'==_0x2b089e||'paginationLicenseKeyNotAllowed'==_0x2b089e||'paginationLicenseKeyEvaluationLimit'==_0x2b089e||'paginationLicenseKeyUsageLimit'==_0x2b089e){delete _0x1a83d1[_0x5e2209],_0x230db5=_0x2b089e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x230db5&&_0x1a83d1['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x230db5&&_0x1a83d1['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x230db5&&_0x1a83d1['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x230db5&&_0x1a83d1['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x230db5&&_0x1a83d1['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x230db5&&_0x1a83d1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x170050){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x170050));}['moveSelectionToPage'](_0x26eca9){if(!this['isEnabled'])return;const _0x403a78=this['editor'],_0x3258cf=this['editor']['plugins']['get'](w)['pageBreaks'][_0x26eca9-0x1];_0x3258cf&&_0x403a78['model']['change'](_0x36d899=>{switch(_0x3258cf['type']){case'manual':{const _0x1587cb=_0x403a78['model']['schema']['getNearestSelectionRange'](_0x3258cf['modelRange']['end'],'forward');_0x36d899['setSelection'](_0x1587cb);break;}case'element':{const _0xe3f4aa=_0x403a78['model']['schema']['getNearestSelectionRange'](_0x3258cf['modelRange']['start'],'forward');_0x36d899['setSelection'](_0xe3f4aa);break;}case'text':{const _0xbf407a=_0x3258cf['modelRange']['start'];if(_0xbf407a['textNode']&&'\x20'===_0xbf407a['textNode']['data'][_0xbf407a['offset']]){const _0x36af7c=_0x36d899['createPositionAt'](_0xbf407a['parent'],_0xbf407a['offset']+0x1);_0x36d899['setSelection'](_0x36af7c);}else _0x36d899['setSelection'](_0x3258cf['modelRange']);}}_0x403a78['editing']['view']['focus']();});}['goToNextPage'](){const _0x1f8738=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x1f8738),this['scrollToPage'](_0x1f8738);}['goToPreviousPage'](){const _0x5de7c7=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x5de7c7),this['scrollToPage'](_0x5de7c7);}['_updatePageBreakMarkers'](_0x35da2f,_0xe0a9e4){const _0x5c5f87=this['editor']['model'];this['isEnabled']&&_0x5c5f87['change'](_0x59c763=>{for(let _0x3216af=0x1;_0x3216af<_0x35da2f['length'];_0x3216af++){const _0x50cc70=_0x35da2f[_0x3216af]['modelRange'],_0x1b64cb='pagination:'+(_0x3216af+0x1);_0x5c5f87['markers']['has'](_0x1b64cb)?_0x59c763['updateMarker'](_0x1b64cb,{'range':_0x50cc70}):_0x59c763['addMarker'](_0x1b64cb,{'range':_0x50cc70,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x380e66=_0x35da2f['length'];_0x380e66<_0xe0a9e4['length'];_0x380e66++){const _0x296d16='pagination:'+(_0x380e66+0x1);_0x5c5f87['markers']['has'](_0x296d16)&&_0x59c763['removeMarker'](_0x296d16);}});}['_setUpDataDowncastConversion'](){const _0x3ee2a9='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x5bc114=>{_0x5bc114['on']('addMarker:'+_0x3ee2a9,(_0x4ab735,{markerRange:_0x291037,markerName:_0x5679f9},_0x5d6585)=>{if(!_0x5d6585['options']['pagination'])return;if(!_0x5d6585['consumable']['consume'](_0x291037,_0x4ab735['name']))return;const _0x15280f=_0x291037['getContainedElement']();let _0x2ac6c7=_0x15280f?_0x5d6585['mapper']['toViewElement'](_0x15280f):null;if(!_0x2ac6c7){const _0x43a883=_0x291037['start'];if(_0x5d6585['schema']['checkChild'](_0x43a883,'$text')){const _0x554c34=_0x5d6585['mapper']['toViewPosition'](_0x43a883);_0x2ac6c7=_0x5d6585['writer']['createContainerElement']('span'),_0x2ac6c7['getFillerOffset']=()=>null,_0x5d6585['writer']['insert'](_0x554c34,_0x2ac6c7);}else{const _0x42428c=_0x43a883['nodeAfter'];_0x2ac6c7=_0x5d6585['mapper']['toViewElement'](_0x42428c);}}for(;_0x2ac6c7['parent']!==_0x2ac6c7['root']&&0x0===_0x2ac6c7['index'];)_0x2ac6c7=_0x2ac6c7['parent'];const _0x2c4a9a=_0x5679f9['substring'](0xb);_0x2ac6c7['hasClass']('page-break')||(_0x5d6585['writer']['setStyle']('page-break-before','always',_0x2ac6c7),_0x5d6585['writer']['setAttribute']('data-pagination-page',_0x2c4a9a,_0x2ac6c7),_0x5d6585['mapper']['bindElementToMarker'](_0x2ac6c7,_0x5679f9)),_0x4ab735['stop']();});});}['_setupKeystrokes'](){const _0x56f006=this['editor'];_0x56f006['keystrokes']['set']('Shift+Pageup',(_0x9db44,_0x1d7015)=>{this['goToPreviousPage'](),_0x1d7015();}),_0x56f006['keystrokes']['set']('Shift+Pagedown',(_0x1115ca,_0x5435bf)=>{this['goToNextPage'](),_0x5435bf();}),_0x56f006['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x56f006['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x56f006['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x56f006['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x5be757){return _0x5be757<0x1&&(_0x5be757=0x1),_0x5be757>this['totalPages']&&(_0x5be757=this['totalPages']),_0x5be757;}}class U extends _0x4e4104{['pageNumberView'];constructor(_0x172e57){super(_0x172e57);const _0x3b3acd=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x789a08(_0x172e57,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x288afb=>G(_0x172e57,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x288afb)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x5d3af3=>!_0x5d3af3),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x3b3acd['if']('isEnabled','ck-disabled',_0x463395=>!_0x463395)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x3b3acd['to']('totalPages')}]}]});}['render'](){super['render']();const _0x25a29b=this['pageNumberView']['element'],_0x123ee6=_0x14e5af=>{this['pageNumberView']['element']['value']=String(_0x14e5af);};_0x123ee6(this['pageNumber']),this['on']('change:pageNumber',(_0x382495,_0x4a8c19,_0x4f5149)=>{_0x123ee6(_0x4f5149);}),this['listenTo'](_0x25a29b,'keydown',(_0x57c658,_0x1eb05c)=>{if('ArrowUp'===_0x1eb05c['key']||'ArrowDown'===_0x1eb05c['key'])return void _0x1eb05c['stopPropagation']();if(_0x1eb05c['keyCode']!==_0x23e35e['enter'])return;_0x1eb05c['preventDefault']();const _0x15124e=_0x25a29b['valueAsNumber'];Number['isNaN'](_0x15124e)?_0x25a29b['value']=String(this['pageNumber']):(_0x25a29b['checkValidity']()?this['pageNumber']=_0x15124e:_0x15124e>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x25a29b['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x25a29b['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x25a29b,'blur',()=>{_0x25a29b['value']=String(this['pageNumber']);}),this['listenTo'](_0x25a29b,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0x57550a{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xdec4a4=this['editor'],_0x1b583c=_0xdec4a4['plugins']['get']('PaginationEditing');_0xdec4a4['ui']['componentFactory']['add']('pageNavigation',_0x26773f=>{const _0x57a218=new U(_0x26773f);return _0x57a218['bind']('pageNumber')['to'](_0x1b583c),_0x57a218['bind']('totalPages')['to'](_0x1b583c),_0x57a218['bind']('isEnabled')['to'](_0x1b583c),_0x57a218['on']('navigation',(_0x202191,_0x28cef4)=>{_0x1b583c['moveSelectionToPage'](_0x28cef4),_0x1b583c['scrollToPage'](_0x28cef4);}),_0x57a218;}),_0xdec4a4['ui']['componentFactory']['add']('nextPage',_0x520bf2=>{const _0x34df43=new _0x4c6e8b(_0x520bf2);return _0x34df43['isEnabled']=!0x0,_0x34df43['label']=G(_0xdec4a4['locale'],'Go\x20to\x20next\x20page'),_0x34df43['icon']=_0x47bd24,_0x34df43['tooltip']=!0x0,_0x34df43['keystroke']='Shift+PageDown',_0x34df43['bind']('isEnabled')['to'](_0x1b583c),this['listenTo'](_0x34df43,'execute',()=>{_0x1b583c['goToNextPage']();}),_0x34df43;}),_0xdec4a4['ui']['componentFactory']['add']('previousPage',_0x2574da=>{const _0x24c657=new _0x4c6e8b(_0x2574da);return _0x24c657['isEnabled']=!0x0,_0x24c657['label']=G(_0xdec4a4['locale'],'Go\x20to\x20previous\x20page'),_0x24c657['icon']=_0x4e34f1,_0x24c657['tooltip']=!0x0,_0x24c657['keystroke']='Shift+PageUp',_0x24c657['bind']('isEnabled')['to'](_0x1b583c),this['listenTo'](_0x24c657,'execute',()=>{_0x1b583c['goToPreviousPage']();}),_0x24c657;});}}class j extends _0x57550a{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x494414){super(_0x494414),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x4febca=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x4febca),this['bind']('totalPages')['to'](_0x4febca),_0x4c6fa8['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x31fb44){this['editor']['plugins']['get'](C)['scrollToPage'](_0x31fb44);}}export{j as Pagination,$ as PaginationRenderer};
|
|
23
|
+
import{Plugin as _0x526e0a}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x16070c,InputNumberView as _0x3f41cc,ButtonView as _0x1f3cd6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x469e9b,global as _0x4f801b,Rect as _0x27e4a2,uid as _0x1fbe8a,toUnit as _0x17dc79,first as _0x75b315,env as _0x45a398,ResizeObserver as _0x43b2bf,keyCodes as _0x1c89d6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x4f79aa}from'es-toolkit/compat';import{IconArrowDown as _0x343159,IconArrowUp as _0x2418c9}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0x526e0a{['_recalculatePageBreaksDebounced']=_0x4f79aa(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x469e9b('pagination-config-not-found',this['editor']['config']);const _0x2e22f5=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x2e22f5),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x3e5e0f,_0x188606,_0x5dff47)=>{_0x5dff47&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x10ab24){const _0x5c79c7=_0x389470([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x2d6287=0xc82cb1e,_0x229307=0xc8542de^_0x2d6287,_0x1d4d8b=window[_0x389470([0x44,0x61,0x74,0x65])][_0x389470([0x6e,0x6f,0x77])](),_0x3791d5=_0x10ab24[_0x389470([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2be62b=new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26605d=>{_0x3791d5[_0x389470([0x6f,0x6e,0x63,0x65])](_0x389470([0x72,0x65,0x61,0x64,0x79]),_0x26605d);}),_0x4750f5={[_0x389470([0x6b,0x74,0x79])]:_0x389470([0x45,0x43]),[_0x389470([0x75,0x73,0x65])]:_0x389470([0x73,0x69,0x67]),[_0x389470([0x63,0x72,0x76])]:_0x389470([0x50,0x2d,0x32,0x35,0x36]),[_0x389470([0x78])]:_0x389470([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x389470([0x79])]:_0x389470([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x389470([0x61,0x6c,0x67])]:_0x389470([0x45,0x53,0x32,0x35,0x36])},_0x1c35df=_0x3791d5[_0x389470([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x389470([0x67,0x65,0x74])](_0x389470([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14b5f2(){let _0x2249a3,_0x302da0=null,_0x4acc3c=null;try{if(_0x1c35df==_0x389470([0x47,0x50,0x4c]))return _0x389470([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2249a3=_0x5a312d(),!_0x2249a3)return _0x389470([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2249a3[_0x389470([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4acc3c=_0x30da54(_0x2249a3[_0x389470([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2249a3[_0x389470([0x6a,0x74,0x69])])),await _0x23458a()?_0x268ca3()?_0x5a8b28()?_0x389470([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a245e()?(_0x2249a3[_0x389470([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x389470([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x302da0=_0x1eee09(_0x389470([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x493c0e()):_0x389470([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x389470([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x389470([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x389470([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a8b28(){const _0x301676=[_0x389470([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x389470([0x74,0x72,0x69,0x61,0x6c])][_0x389470([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2249a3[_0x389470([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d4d8b/0x3e8:0xe10*_0x229307;return _0x2249a3[_0x389470([0x65,0x78,0x70])]<_0x301676;}function _0x268ca3(){const _0x76304a=_0x2249a3[_0x389470([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x76304a&&(!!_0x76304a[_0x389470([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389470([0x2a]))||!!_0x76304a[_0x389470([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389470([0x50,0x41,0x47])));}function _0x4a245e(){const _0x3535d6=_0x2249a3[_0x389470([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3535d6||0x0==_0x3535d6[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55a8cd}=new URL(window[_0x389470([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3535d6[_0x389470([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a8cd))return!0x0;const _0x188156=_0x55a8cd[_0x389470([0x73,0x70,0x6c,0x69,0x74])](_0x389470([0x2e]));return _0x3535d6[_0x389470([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3de82b=>_0x3de82b[_0x389470([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389470([0x2a])))[_0x389470([0x6d,0x61,0x70])](_0xab6a2=>_0xab6a2[_0x389470([0x73,0x70,0x6c,0x69,0x74])](_0x389470([0x2e])))[_0x389470([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13c8d8=>_0x13c8d8[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x188156[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389470([0x6d,0x61,0x70])](_0x1b502d=>Array(_0x188156[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b502d[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389470([0x66,0x69,0x6c,0x6c])](_0x1b502d[0x0]===_0x389470([0x2a])?_0x389470([0x2a]):'')[_0x389470([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b502d))[_0x389470([0x73,0x6f,0x6d,0x65])](_0x5b3df5=>_0x188156[_0x389470([0x65,0x76,0x65,0x72,0x79])]((_0x1d34ab,_0x41c180)=>_0x5b3df5[_0x41c180]===_0x1d34ab||_0x5b3df5[_0x41c180]===_0x389470([0x2a])));}function _0x493c0e(){return _0x302da0&&_0x4acc3c?new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b4387,_0x10d34d)=>{_0x302da0[_0x389470([0x74,0x68,0x65,0x6e])](_0x5b4387,_0x10d34d),_0x4acc3c[_0x389470([0x74,0x68,0x65,0x6e])](_0x2a4ad6=>{_0x2a4ad6!=_0x389470([0x56,0x61,0x6c,0x69,0x64])&&_0x5b4387(_0x2a4ad6);},_0x10d34d);}):_0x302da0||_0x4acc3c||_0x389470([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30da54(_0x42114f,_0xcd9a96){return new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4706b0=>{if(_0x50415c())return _0x4706b0(_0x389470([0x56,0x61,0x6c,0x69,0x64]));_0x2528b3(),_0x3791d5[_0x389470([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x389470([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20b3d6=!0x1;const _0x202a3e=_0x1fbe8a();function _0x54d815(_0x1415bb){return!!_0x1415bb&&(typeof _0x1415bb===_0x389470([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1415bb===_0x389470([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1415bb[_0x389470([0x74,0x68,0x65,0x6e])]===_0x389470([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1415bb[_0x389470([0x63,0x61,0x74,0x63,0x68])]===_0x389470([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x83b438(_0x314d69){_0x487458(_0x314d69)[_0x389470([0x74,0x68,0x65,0x6e])](_0xac3d61=>{if(!_0xac3d61||_0xac3d61[_0x389470([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x389470([0x6f,0x6b]))return _0x389470([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc7caf4(_0x73216f(_0x202a3e+_0xcd9a96))!=_0xac3d61[_0x389470([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x389470([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x389470([0x56,0x61,0x6c,0x69,0x64]);})[_0x389470([0x74,0x68,0x65,0x6e])](_0x13daf8=>(_0x4d9c9f(),_0x13daf8),()=>{const _0xda2155=_0x40c610();return null==_0xda2155?(_0x4d9c9f(),_0x389470([0x56,0x61,0x6c,0x69,0x64])):_0x389470(_0x1d4d8b-_0xda2155>(0x288e4f1e^_0x2d6287)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x389470([0x74,0x68,0x65,0x6e])](_0x4706b0)[_0x389470([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4706b0(_0x389470([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x187c2c=0xcb4259e^_0x2d6287;function _0x4d9c9f(){const _0x7dba18=_0x389470([0x6c,0x6c,0x63,0x74,0x2d])+_0xc7caf4(_0x73216f(_0x42114f)),_0x1c15f1=_0xc5ecb4(_0xc7caf4(window[_0x389470([0x4d,0x61,0x74,0x68])][_0x389470([0x63,0x65,0x69,0x6c])](_0x1d4d8b/_0x187c2c)));window[_0x389470([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389470([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7dba18,_0x1c15f1);}function _0x40c610(){const _0x3a3436=_0x389470([0x6c,0x6c,0x63,0x74,0x2d])+_0xc7caf4(_0x73216f(_0x42114f)),_0x437050=window[_0x389470([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389470([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a3436);return _0x437050?window[_0x389470([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc5ecb4(_0x437050),0x10)*_0x187c2c:null;}function _0x487458(_0x11e827){return new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5955a8,_0x162d0b)=>{_0x11e827[_0x389470([0x74,0x68,0x65,0x6e])](_0x5955a8,_0x162d0b),window[_0x389470([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x162d0b,0xc831fde^_0x2d6287);});}}_0x3791d5[_0x389470([0x6f,0x6e])](_0x389470([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x478d22,_0x42ec92)=>{if(_0x42ec92[0x0]!=_0x42114f)return _0x4706b0(_0x389470([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x42ec92[0x1]={..._0x42ec92[0x1],[_0x389470([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x202a3e};},{[_0x389470([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389470([0x68,0x69,0x67,0x68])}),_0x3791d5[_0x389470([0x6f,0x6e])](_0x389470([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d5a2f=>{_0x54d815(_0x3d5a2f[_0x389470([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20b3d6=!0x0,_0x83b438(_0x3d5a2f[_0x389470([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x389470([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389470([0x6c,0x6f,0x77])}),_0x2be62b[_0x389470([0x74,0x68,0x65,0x6e])](()=>{_0x20b3d6||_0x4706b0(_0x389470([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50415c(){return _0x3791d5[_0x389470([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389470([0x76,0x69,0x65,0x77])][_0x389470([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x389470([0x61,0x75,0x74,0x6f]);}function _0x2528b3(){_0x3791d5[_0x389470([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389470([0x76,0x69,0x65,0x77])][_0x389470([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x389470([0x61,0x75,0x74,0x6f]);}}function _0x1eee09(_0x419649){const _0x181f56=[new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5969e5=>setTimeout(_0x5969e5,0xc8bf5d2^_0x2d6287)),_0x2be62b[_0x389470([0x74,0x68,0x65,0x6e])](()=>new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7f6106=>{let _0x2a02f2=0x0;_0x3791d5[_0x389470([0x6d,0x6f,0x64,0x65,0x6c])][_0x389470([0x6f,0x6e])](_0x389470([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23b3e9,_0x1a8841)=>{_0x1a8841[0x0][_0x389470([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a02f2++,_0x2a02f2==(0xc82cef6^_0x2d6287)&&(_0x7f6106(),_0x23b3e9[_0x389470([0x6f,0x66,0x66])]());});}))];return window[_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x389470([0x72,0x61,0x63,0x65])](_0x181f56)[_0x389470([0x74,0x68,0x65,0x6e])](()=>_0x419649);}async function _0x16c07d(){await _0x2be62b,_0x3791d5[_0x389470([0x6d,0x6f,0x64,0x65,0x6c])][_0x389470([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f06bd,_0x3791d5[_0x389470([0x6d,0x6f,0x64,0x65,0x6c])][_0x389470([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f06bd,_0x3791d5[_0x389470([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x389470([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x415d5f(_0x3c2a89){const _0x45a877=_0x16613e();_0x3791d5[_0x45a877]=_0x389470([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c2a89,_0x3c2a89!=_0x389470([0x56,0x61,0x6c,0x69,0x64])&&_0x16c07d();}function _0x16613e(){const _0x4a9060=window[_0x389470([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x389470([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x389470([0x6e,0x6f,0x77])]())[_0x389470([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x389470([0x2e]),'');let _0x264e3c=_0x389470([0x49]);for(let _0x4d924d=0x0;_0x4d924d<_0x4a9060[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d924d+=0x2){let _0x51dc3c=window[_0x389470([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a9060[_0x389470([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d924d,_0x4d924d+0x2));_0x51dc3c>=_0x5c79c7[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51dc3c-=_0x5c79c7[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x264e3c+=_0x5c79c7[_0x51dc3c];}return _0x264e3c;}function _0x5a312d(){const _0x8b2ae0=_0x1c35df[_0x389470([0x73,0x70,0x6c,0x69,0x74])](_0x389470([0x2e]));if(0x3!=_0x8b2ae0[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x23b2d3(_0x8b2ae0[0x1]);function _0x23b2d3(_0x2e3fc1){const _0x17a61c=_0x15df58(_0x2e3fc1);return _0x17a61c&&_0x59a9ba()?_0x17a61c:null;function _0x59a9ba(){const _0x42c44b=_0x17a61c[_0x389470([0x6a,0x74,0x69])],_0x1bed1a=window[_0x389470([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42c44b[_0x389470([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42c44b[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x482ce7={..._0x17a61c,[_0x389470([0x6a,0x74,0x69])]:_0x42c44b[_0x389470([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42c44b[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x482ce7[_0x389470([0x76,0x63])],_0x73216f(_0x482ce7)==_0x1bed1a;}}}async function _0x23458a(){let _0x29415f=!0x0;try{const _0x4ebbfc=_0x1c35df[_0x389470([0x73,0x70,0x6c,0x69,0x74])](_0x389470([0x2e])),[_0x134e40,_0x1b68a0,_0xf3bef4]=_0x4ebbfc;return _0x34d65d(_0x134e40),await _0x1e2ca4(_0x134e40,_0x1b68a0,_0xf3bef4),_0x29415f;}catch{return!0x1;}function _0x34d65d(_0x5b7f2a){const _0x4362d7=_0x15df58(_0x5b7f2a);_0x4362d7&&_0x4362d7[_0x389470([0x61,0x6c,0x67])]==_0x389470([0x45,0x53,0x32,0x35,0x36])||(_0x29415f=!0x1);}async function _0x1e2ca4(_0x36b591,_0x4f7e9e,_0x4199aa){const _0x4ffb70=window[_0x389470([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x389470([0x66,0x72,0x6f,0x6d])](_0x26bff0(_0x4199aa),_0x1a6e5f=>_0x1a6e5f[_0x389470([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3bf749=new window[(_0x389470([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x389470([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36b591+_0x389470([0x2e])+_0x4f7e9e),_0x22b7f0=window[_0x389470([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x389470([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22b7f0)return;const _0x433062=await _0x22b7f0[_0x389470([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x389470([0x6a,0x77,0x6b]),_0x4750f5,{[_0x389470([0x6e,0x61,0x6d,0x65])]:_0x389470([0x45,0x43,0x44,0x53,0x41]),[_0x389470([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x389470([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x389470([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22b7f0[_0x389470([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x389470([0x6e,0x61,0x6d,0x65])]:_0x389470([0x45,0x43,0x44,0x53,0x41]),[_0x389470([0x68,0x61,0x73,0x68])]:{[_0x389470([0x6e,0x61,0x6d,0x65])]:_0x389470([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x433062,_0x4ffb70,_0x3bf749)||(_0x29415f=!0x1);}}function _0x15df58(_0x5db6fc){return _0x5db6fc[_0x389470([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x389470([0x65,0x79]))?JSON[_0x389470([0x70,0x61,0x72,0x73,0x65])](_0x26bff0(_0x5db6fc)):null;}function _0x26bff0(_0x35013b){return window[_0x389470([0x61,0x74,0x6f,0x62])](_0x35013b[_0x389470([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x389470([0x2b]))[_0x389470([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x389470([0x2f])));}function _0x73216f(_0x1baf48){let _0x5b64e3=0x1505;function _0x5350de(_0x2ba712){for(let _0x4fb355=0x0;_0x4fb355<_0x2ba712[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fb355++){const _0x2f7d50=_0x2ba712[_0x389470([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4fb355);_0x5b64e3=(_0x5b64e3<<0x5)+_0x5b64e3+_0x2f7d50,_0x5b64e3&=_0x5b64e3;}}function _0x2790b3(_0x1b981a){Array[_0x389470([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b981a)?_0x1b981a[_0x389470([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2790b3):_0x1b981a&&typeof _0x1b981a==_0x389470([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x389470([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b981a)[_0x389470([0x73,0x6f,0x72,0x74])]()[_0x389470([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e6656,_0x10d041])=>{_0x5350de(_0x1e6656),_0x2790b3(_0x10d041);}):_0x5350de(window[_0x389470([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b981a));}return _0x2790b3(_0x1baf48),_0x5b64e3>>>0x0;}function _0xc7caf4(_0x4d3a40){return _0x4d3a40[_0x389470([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x389470([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x389470([0x30]));}function _0xc5ecb4(_0x58052){return _0x58052[_0x389470([0x73,0x70,0x6c,0x69,0x74])]('')[_0x389470([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x389470([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f06bd(){}function _0x389470(_0x2fd3bc){return _0x2fd3bc['map'](_0x1742f5=>String['fromCharCode'](_0x1742f5))['join']('');}_0x415d5f(await _0x14b5f2());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x3f1790=this['editor'],_0x2904c9=_0x3f1790['editing']['view'],_0x3f6176=this['_getAttachedDomRoot']();if(!_0x3f6176||0x0===_0x3f6176['childElementCount'])return void _0x3f1790['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x53feb4,pageHeight:_0x49414c}=_0x3f1790['config']['get']('pagination'),{top:_0x1daaa4,left:_0x68de5d,bottom:_0x4caf1c,right:_0x349434}=this['_configuredPaddings'];this['_pagesContainer']=new _0x16070c(_0x3f1790['locale']);const _0xb219b4=this['_pagesContainer'];_0xb219b4['set']('class',''),_0xb219b4['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x53feb4,'width':_0x53feb4,'height':'calc(\x20'+_0x49414c+'\x20-\x20'+_0x1daaa4+'\x20-\x20'+_0x4caf1c+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x349434+'\x200\x20'+_0x68de5d,'columnGap':'calc('+_0x68de5d+'\x20+\x20'+_0x349434+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0xb219b4['bindTemplate']['to']('class')}}),_0xb219b4['render'](),_0x3f6176['parentNode']['insertBefore'](_0xb219b4['element'],_0x3f6176['nextSibling']),this['listenTo'](_0x2904c9,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x2ea664 of this['editor']['editing']['view']['domRoots']['values']())if(_0x2ea664['ownerDocument']['body']['contains'](_0x2ea664))return _0x2ea664;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x2a53f2=this['editor']['editing']['view'],_0x4e19e4=this['_pagesContainer'],_0x4a09db=this['_getAttachedDomRoot']();if(!_0x4a09db)return Promise['resolve']();for(_0x4e19e4['class']=['ck-reset','ck-pagination-view',..._0x4a09db['classList']]['join']('\x20');_0x4e19e4['element']['firstChild'];)_0x4e19e4['element']['firstChild']['remove']();const _0x20b91a=Array['from'](_0x2a53f2['domRoots']);_0x20b91a['sort'](([,_0x24a8d8],[,_0x24c280])=>_0x24a8d8['compareDocumentPosition'](_0x24c280)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x19cc46,_0x52693c]of _0x20b91a){const _0x31d4a0=_0x52693c['cloneNode'](!0x0);'attributeStyleMap'in _0x31d4a0&&_0x31d4a0['attributeStyleMap']['clear'](),_0x31d4a0['dataset']['rootName']=_0x19cc46,_0x31d4a0['className']='ck-content\x20ck-pagination_enabled',_0x31d4a0['removeAttribute']('id'),_0x31d4a0['tabIndex']=-0x1,_0x4e19e4['element']['append'](_0x31d4a0);}const _0x25a2c0=Array['from'](_0x4e19e4['element']['querySelectorAll']('img'));return function(_0x14d0ce){return Promise['all'](_0x14d0ce['map'](_0xabfe50=>Promise['race']([k(_0xabfe50),v(0x3e8)])));}(_0x25a2c0)['then'](()=>{for(const _0x3d10a3 of _0x25a2c0['filter'](_0x14bd6b=>!_0x14bd6b['closest']('table')))if(_0x3d10a3['offsetParent']){const _0x3b0183=_0x4f801b['window']['getComputedStyle'](_0x3d10a3),_0x163660=_0x4f801b['document']['createElement']('span');for(const _0x3794a6 of _0x3b0183)_0x163660['style']['setProperty'](_0x3794a6,_0x3b0183[_0x3794a6]);_0x163660['style']['backgroundImage']='url(\x20'+_0x3d10a3['src']+'\x20)',_0x163660['style']['breakInside']='avoid','PICTURE'==_0x3d10a3['parentElement']?.['tagName']?_0x3d10a3['parentElement']['replaceWith'](_0x163660):_0x3d10a3['replaceWith'](_0x163660);}return new Promise(_0x42ee1d=>_0x4f801b['window']['requestAnimationFrame'](()=>_0x42ee1d()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x438878=this['_pagesContainer']['element'];if(!_0x438878['ownerDocument']['body']['contains'](_0x438878))return;const _0x1a01b2=new _0x27e4a2(_0x438878)['excludeScrollbarsAndBorders'](),_0x3d1af9=Math['floor'](_0x1a01b2['width']+0x64),_0x3aeee8=_(_0x438878,Math['floor'](_0x1a01b2['left']-_0x438878['scrollLeft']),_0x3d1af9,_0x1a01b2['height'])['map'](_0x4b09a0=>this['_mapPageStarterInfoToPageBreakInfo'](_0x4b09a0))['filter'](_0x4fdbdc=>!0x1!==_0x4fdbdc);_0x3aeee8['every'](_0x2ac00a=>!!_0x2ac00a)&&(this['pageBreaks']=_0x3aeee8);}['_mapPageStarterInfoToPageBreakInfo'](_0x2d4c04){const _0x3de33e=this['editor']['editing']['view'],_0xcdff59=this['editor']['editing']['mapper'],_0x29d4f2=_0x3de33e['domConverter'],_0x40cfd5=_0x2d4c04['path']['shift'](),_0x1d1ed2=this['_pagesContainer']['element']['childNodes'][_0x40cfd5]['dataset']['rootName'],_0x43ffe4=_0x3de33e['getDomRoot'](_0x1d1ed2);if(!_0x43ffe4)return null;const _0xe46b6b=function(_0x118257,_0x176e58){let _0x1304e4=_0x118257;for(const _0x41b68c of _0x176e58['path']){if(!_0x1304e4)return null;_0x1304e4=_0x1304e4['childNodes'][_0x41b68c];}return _0x1304e4;}(_0x43ffe4,_0x2d4c04);if(!_0xe46b6b)return null;const _0x1cfb48=_0x29d4f2['domPositionToView'](_0xe46b6b,_0x2d4c04['textOffset']||0x0);return _0x1cfb48?'manual'==_0x2d4c04['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x1cfb48,_0xe46b6b):'text'==_0x2d4c04['type']&&_0xcdff59['toModelPosition'](_0x1cfb48)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x1cfb48,_0xe46b6b,_0x2d4c04['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x1cfb48,_0xe46b6b,_0x2d4c04['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x3fbe6d,_0x1a8c06){const _0x1818e2=this['editor']['model'],_0x479630=this['editor']['editing']['mapper']['toModelElement'](_0x3fbe6d['parent']),_0x2536f7=_0x1818e2['createRangeOn'](_0x479630);return new b({'type':'manual','modelRange':_0x2536f7,'domNode':_0x1a8c06,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x41c3c9,_0x3f220d,_0x419074){const _0x2f07b5=this['editor']['model'],_0x302436=this['editor']['editing']['mapper'],_0x2b624d=this['editor']['editing']['view']['domConverter'];if(_0x419074>=_0x3f220d['length'])return null;const _0x23123b=_0x302436['toModelPosition'](_0x41c3c9),_0x5cfd84=_0x2f07b5['createRange'](_0x23123b),_0x15b2b2=_0x302436['findMappedViewAncestor'](_0x41c3c9),_0x31a3cb=_0x2b624d['mapViewToDom'](_0x15b2b2);return new b({'type':'text','modelRange':_0x5cfd84,'domNode':_0x3f220d,'offset':P(_0x3f220d,_0x419074,_0x31a3cb)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x540225,_0x5c28c8,_0x272f54){const _0x1bb1a1=this['editor']['model'],_0x56cbde=this['editor']['editing'],_0x53dc9b=_0x56cbde['mapper'],_0x3f53a7=_0x56cbde['view']['domConverter'],_0x28eadd=_0x53dc9b['findMappedViewAncestor'](_0x540225),_0x444044=_0x53dc9b['toModelElement'](_0x28eadd);if(!_0x444044||_0x444044['is']('element','$root'))return!0x1;const _0x12f28e=function(_0x26bf50){const _0x4d8812=_0x26bf50['parent'],_0x172e25=_0x4d8812['root']['document']['model'],_0x893fe8=_0x4d8812['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x2e53d3=null;for(const _0x4b5f66 of _0x893fe8){if(_0x4b5f66['is']('rootElement'))return _0x2e53d3;if(!_0x172e25['createPositionBefore'](_0x4b5f66)['isTouching'](_0x26bf50))return _0x2e53d3;_0x2e53d3=_0x4b5f66;}}(_0x1bb1a1['createPositionBefore'](_0x444044)),_0x3fdb2c=_0x12f28e||_0x444044;let _0x46269b=_0x53dc9b['toViewElement'](_0x3fdb2c),_0x1196a7=_0x1bb1a1['createRangeOn'](_0x3fdb2c);const _0xcab1a1=_0x1bb1a1['createPositionBefore'](_0x3fdb2c)['nodeBefore'];if(_0xcab1a1&&_0xcab1a1['is']('element','imageBlock')){const _0x291652=_0x53dc9b['toViewElement'](_0xcab1a1),_0xf3706b=_0x3f53a7['mapViewToDom'](_0x291652),_0x2abb42=_0x4f801b['window']['getComputedStyle'](_0xf3706b)['float'];'left'!=_0x2abb42&&'right'!=_0x2abb42||(_0x1196a7=_0x1bb1a1['createRangeOn'](_0xcab1a1));}for(;_0x46269b['parent']!==_0x46269b['root']&&0x0===_0x46269b['index'];)_0x46269b=_0x46269b['parent'];const _0x237722=new _0x27e4a2(I(_0x5c28c8)?_0x5c28c8:x(_0x5c28c8)),_0x5f136d=_0x272f54?_0x237722['height']-_0x272f54:0x0,_0x2102be=_0x3f53a7['mapViewToDom'](_0x46269b),_0x44cb51=new _0x27e4a2(_0x2102be);return new b({'type':'element','modelRange':_0x1196a7,'domNode':_0x2102be,'offset':Math['round'](_0x5f136d)||_0x28eadd!=y(_0x540225)?_0x5f136d+_0x237722['top']-_0x44cb51['top']:0x0});}get['_configuredPaddings'](){const _0x25babe=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x25babe);}static['_findPageStarterInfos'](_0xbc5987,_0x47841a,_0x34ed10,_0xa9c066,_0x492923){return _(_0xbc5987,_0x47841a,_0x34ed10,_0xa9c066,_0x492923);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x3653cd,modelRange:_0x37c23b,domNode:_0x524b16,offset:_0x4c9b91}){this['type']=_0x3653cd,this['modelRange']=_0x37c23b,this['_domNode']=_0x524b16,this['_offset']=_0x4c9b91;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x51f157=new _0x27e4a2(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0x51f157['top']+_0x51f157['height']/0x2:_0x51f157['top']+this['_offset'];}}function P(_0x4c0af4,_0x267aa3,_0x5d7e84){const _0x73a7f1=x(_0x4c0af4),_0x180904=function(_0x2ec727){const _0x44d41a=_0x4f801b['document']['createRange']();return _0x44d41a['selectNodeContents'](_0x2ec727),_0x44d41a;}(_0x5d7e84);let _0x44d237;_0x44d237=0x0==_0x267aa3?L(_0x180904['startContainer'],_0x180904['startOffset'],_0x4c0af4['parentNode'],Array['from'](_0x4c0af4['parentNode']['childNodes'])['indexOf'](_0x4c0af4)):L(_0x180904['startContainer'],_0x180904['startOffset'],_0x4c0af4,_0x267aa3);const _0x26716b=L(_0x4c0af4,_0x267aa3,_0x180904['endContainer'],_0x180904['endOffset']),_0x267c4b=new _0x27e4a2(_0x44d237)['bottom'];return(new _0x27e4a2(_0x26716b)['top']+_0x267c4b)/0x2-new _0x27e4a2(_0x73a7f1)['top'];}function y(_0x21aec9){let _0x2bcb6a=_0x21aec9['parent'];for(;_0x2bcb6a['is']('$text')||_0x2bcb6a['is']('attributeElement');)_0x2bcb6a=_0x2bcb6a['parent'];return _0x2bcb6a;}function k(_0x3ab66e){return _0x3ab66e['hasAttribute']('width')&&_0x3ab66e['hasAttribute']('height')?Promise['resolve']():new Promise(_0x444c53=>{function _0xbd10b5(){_0x3ab66e['removeEventListener']('load',_0xbd10b5),_0x3ab66e['removeEventListener']('error',_0xbd10b5),_0x444c53();}_0x3ab66e['complete']?_0x444c53():(_0x3ab66e['addEventListener']('load',_0xbd10b5),_0x3ab66e['addEventListener']('error',_0xbd10b5));});}function v(_0x577dbe){return new Promise(_0x250faf=>setTimeout(_0x250faf,_0x577dbe));}function x(_0x82caab){const _0x94b06b=_0x4f801b['document']['createRange']();return _0x94b06b['selectNode'](_0x82caab),_0x94b06b;}function N(_0x2da9e0,_0x53e46e,_0x6cfaa5){const _0x4d61b7=_0x4f801b['document']['createRange']();return _0x4d61b7['setStart'](_0x2da9e0,_0x53e46e),_0x4d61b7['setEnd'](_0x2da9e0,_0x6cfaa5),_0x4d61b7;}function L(_0x3c7692,_0x4172d,_0x2a6e15,_0x169a0b){const _0x499b5b=_0x4f801b['document']['createRange']();return _0x499b5b['setStart'](_0x3c7692,_0x4172d),_0x499b5b['setEnd'](_0x2a6e15,_0x169a0b),_0x499b5b;}function _(_0x10c390,_0x2c913a,_0xf128bd,_0x2801a9,_0x248719){const _0x4f7054=[];for(const [_0x4c6f7a,_0x5df8fe]of _0x10c390['childNodes']['entries']()){let _0x4017b4=[];I(_0x5df8fe)&&_0x5df8fe['offsetParent']&&['static','relative']['includes'](_0x4f801b['window']['getComputedStyle'](_0x5df8fe)['position'])?_0x4017b4=S(_0x5df8fe,_0x4c6f7a,_0x2c913a,_0xf128bd,_0x2801a9,_0x248719):O(_0x5df8fe)&&(_0x4017b4=E(_0x5df8fe,_0x4c6f7a,_0x2c913a,_0xf128bd,_0x248719)),_0x4017b4['length']&&(_0x4f7054['push'](..._0x4017b4),_0x2c913a+=_0x4017b4['length']*_0xf128bd,_0x248719=!0x1);}return _0x4f7054;}function S(_0x1d2bf8,_0x43f438,_0xadd40a,_0x418b30,_0x64e2a,_0x1b1e16){const _0x146163=[];var _0x4d3eaa;if((_0x4d3eaa=_0x1d2bf8['previousSibling'])&&I(_0x4d3eaa)&&Boolean(_0x4d3eaa['classList']['contains']('page-break')||_0x4d3eaa['closest']('.page-break'))&&(_0x146163['push']({'type':'manual','offset':0x0,'path':[_0x43f438-0x1]}),_0x1b1e16=!0x0),'table-row'==_0x4f801b['window']['getComputedStyle'](_0x1d2bf8)['display']){let _0x44ab81=0x0,_0x41108a=!0x1;for(const _0x4e2d05 of _0x1d2bf8['getClientRects']())_0x44ab81+=_0x4e2d05['height'],_0x4e2d05['left']>=_0xadd40a&&(_0x41108a=!0x0);if(_0x44ab81<_0x64e2a&&_0x41108a)return _0x1b1e16||_0x146163['push']({'type':'element','offset':0x0,'path':[_0x43f438]}),_0x146163;}const _0x48a9bd=_0x1d2bf8['closest']('figure.image');if(_0x48a9bd&&function(_0x4b7fc8){let _0x157699=!0x1;const _0x106a39=_0x4b7fc8['parentElement'],_0x2c935c=_0x106a39['dataset']['rootName'],_0x39d243=_0x4b7fc8['nextElementSibling'],_0x1183d9=_0x4b7fc8['previousElementSibling'],_0x46ada5=_0x39d243&&_0x4f801b['window']['getComputedStyle'](_0x39d243)['float'],_0x1701ba=_0x39d243&&'ck-fake-selection-container'===_0x39d243['className'];!_0x2c935c||_0x39d243||_0x1183d9||(_0x157699=!0x0),_0x2c935c&&!_0x1183d9&&_0x1701ba&&(_0x157699=!0x0),_0x2c935c&&!_0x1183d9&&'none'!==_0x46ada5&&(_0x157699=!0x0);if(_0x157699)return!0x1;return!0x0;}(_0x48a9bd)){const _0x261484=_0x4f801b['window']['getComputedStyle'](_0x48a9bd)['float'];if('left'==_0x261484||'right'==_0x261484)return _0x146163;}const _0x350749=_(_0x1d2bf8,_0xadd40a,_0x418b30,_0x64e2a,_0x1b1e16);if(_0x350749['length']){for(const _0xe11b1e of _0x350749)_0x146163['push']({'type':_0xe11b1e['type'],'offset':_0xe11b1e['offset'],'textOffset':_0xe11b1e['textOffset'],'path':[_0x43f438,..._0xe11b1e['path']]}),_0xadd40a+=_0x418b30,_0x1b1e16=!0x1;return _0x146163;}return _0x146163['push'](...function(_0x525c60,_0x23c938,_0x288614,_0x17ea0f,_0x2de348){const _0x12d344=[];if('table-cell'==_0x4f801b['window']['getComputedStyle'](_0x525c60)['display'])return[];const _0x42f5ae=[];for(const _0x2069c9 of _0x525c60['getClientRects']())if(_0x2069c9['left']>=_0x288614){for(const _0x20331b of _0x42f5ae)_0x20331b['height']+=_0x2069c9['height'];_0x42f5ae['push']({'height':_0x2069c9['height']}),_0x288614+=_0x17ea0f;}for(const _0x49694f of _0x42f5ae)_0x2de348||_0x12d344['push']({'type':'element','offset':_0x49694f['height'],'textOffset':0x0,'path':[_0x23c938]}),_0x2de348=!0x1;return _0x12d344;}(_0x1d2bf8,_0x43f438,_0xadd40a,_0x418b30,_0x1b1e16)),_0x146163;}function E(_0x25fffb,_0x601127,_0x463080,_0x57e16d,_0x5deee1){const _0x115eb8=x(_0x25fffb),_0x2e3c5a=[];let _0x537914=0x0;for(const _0x44cf62 of _0x115eb8['getClientRects']())if(_0x44cf62['left']>=_0x463080){const _0x1184bd=R(_0x25fffb,_0x537914,_0x463080,_0x57e16d);_0x5deee1||_0x2e3c5a['push']({'type':'text','path':[_0x601127],'textOffset':_0x1184bd}),_0x537914=_0x1184bd,_0x463080+=_0x57e16d,_0x5deee1=!0x1;}return _0x2e3c5a;}function R(_0x763271,_0x5a2a46,_0x44f056,_0x18005a){let _0x5b8faf=_0x5a2a46,_0x288352=_0x763271['length'];for(;_0x288352-_0x5b8faf>0x1;){const _0xa55427=Math['ceil']((_0x5b8faf+_0x288352)/0x2);K(N(_0x763271,_0x5b8faf,_0xa55427),_0x44f056,_0x18005a)?_0x288352=_0xa55427:_0x5b8faf=_0xa55427;}return _0x5b8faf;}function K(_0x321470,_0x3cd654,_0x4c8e02){for(const _0x160928 of _0x321470['getClientRects']())if(_0x160928['left']>=_0x3cd654&&_0x160928['left']<_0x3cd654+_0x4c8e02)return!0x0;return!0x1;}function I(_0x3b4e5e){return _0x3b4e5e['nodeType']==Node['ELEMENT_NODE'];}function O(_0x135c18){return _0x135c18['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x17dc79('px');class T extends _0x16070c{constructor(){super();const _0x1662de=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x1662de['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x1662de['if']('isVisible','ck-hidden',_0x3292eb=>!_0x3292eb)],'style':{'left':_0x1662de['to']('left',_0x56cbc2=>B(_0x56cbc2)),'top':_0x1662de['to']('top',_0x36a217=>B(_0x36a217)),'width':_0x1662de['to']('width',_0x459e6f=>B(_0x459e6f))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x18b98a){this['_viewCollection']=_0x18b98a['ui']['view']['body'];}['destroy'](){for(const _0x3a323c of this['_hiddenLines'])_0x3a323c['destroy']();}['cleanLines'](){for(const _0x29b912 of this['_visibleLines'])_0x29b912['isVisible']=!0x1,this['_hiddenLines']['add'](_0x29b912);this['_visibleLines']['clear']();}['showLine'](_0xa1449f,_0x450975,_0x5a6df4,_0x23163e){let _0x25fe9e;this['_hiddenLines']['size']?(_0x25fe9e=_0x75b315(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x25fe9e)):_0x25fe9e=new T(),_0x25fe9e['set']({'pageNumber':_0x23163e,'left':_0xa1449f,'top':_0x450975,'width':_0x5a6df4}),_0x25fe9e['isVisible']=!0x0,this['_viewCollection']['has'](_0x25fe9e)||this['_viewCollection']['add'](_0x25fe9e),this['_visibleLines']['add'](_0x25fe9e);}['setViewCollection'](_0x6fa27f){for(const _0xa4f7 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0xa4f7)&&this['_viewCollection']['remove'](_0xa4f7);this['_viewCollection']=_0x6fa27f;}}const D='ck-pagination_enabled';class $ extends _0x526e0a{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new A(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](D),this['on']('change:isEnabled',(_0x4ef08d,_0x4c455c,_0x48a582)=>{_0x48a582||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x48a582);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x20da6a){if(!this['isEnabled'])return;const _0x4a11bc=_0x20da6a>0x1?this['_getPageBreakLineOffset'](_0x20da6a-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x4a11bc-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x45a398['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x26fa1c=this['editor'],_0x6e96cf=this['_getAttachedDomRoot']();_0x6e96cf?(this['_scrollableEditingRootDomAncestor']&&_0x26fa1c['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x14ee4e){let _0x1adfbc=_0x14ee4e;do{_0x1adfbc=_0x1adfbc['parentElement'];const _0x391d26=_0x4f801b['window']['getComputedStyle'](_0x1adfbc)['overflowY'];if('auto'==_0x391d26||'scroll'==_0x391d26)break;}while('BODY'!=_0x1adfbc['tagName']);return _0x1adfbc;}(_0x6e96cf),_0x26fa1c['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x43b2bf(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x26fa1c['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x592254=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x592254['ui']['view']['listenTo'](_0x4f801b['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x592254['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x172569 of this['editor']['editing']['view']['domRoots']['values']())if(_0x172569['ownerDocument']['body']['contains'](_0x172569))return _0x172569;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x55e8a3=this['_getAttachedDomRoot'](),_0x1c8210=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x55e8a3||0x1==_0x1c8210['length'])return void(this['pageNumber']=0x1);const _0x43a3d2=new _0x27e4a2(_0x55e8a3)['excludeScrollbarsAndBorders'](),_0x512c3f=new _0x27e4a2(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0xa3696a=_0x512c3f['top']+_0x512c3f['height']/0x3;let _0x2dfa66=!0x1;const _0x1ce216=[];for(let _0x2e625d=0x1;_0x2e625d<_0x1c8210['length'];_0x2e625d++){const _0x4dea1f=this['_getPageBreakLineOffset'](_0x2e625d,_0x512c3f);if(!_0x4dea1f)continue;const _0x2add9c=_0x512c3f['top']+_0x4dea1f-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x1ce216['push']({'pageOffsetTop':_0x2add9c,'domRootRect':_0x43a3d2,'domScrollableRect':_0x512c3f,'pageNumber':_0x2e625d}),_0x2add9c>_0xa3696a&&!_0x2dfa66&&(this['pageNumber']=_0x2e625d,_0x2dfa66=!0x0);}this['_renderPageBreakLines'](_0x1ce216),_0x2dfa66||(this['pageNumber']=_0x1c8210['length']);}['_renderPageBreakLines'](_0x195a6f){const {scrollX:_0x297028,scrollY:_0x281505}=_0x4f801b['window'];if(_0x195a6f['length']){for(const {domScrollableRect:_0xc78176,pageOffsetTop:_0x4ae738,domRootRect:_0x3bb452,pageNumber:_0x40040f}of _0x195a6f)_0xc78176['top']<_0x4ae738&&_0x4ae738<_0xc78176['bottom']&&this['linesRepository']['showLine'](_0x3bb452['left']+_0x297028,_0x4ae738+_0x281505,_0x3bb452['width'],_0x40040f+0x1);}}['_getPageBreakLineOffset'](_0xd635f1,_0x3373a8=null){const _0x5eff4b=this['_paginationLookupPlugin']['pageBreaks'][_0xd635f1]['offset'];return _0x5eff4b?(_0x3373a8||(_0x3373a8=new _0x27e4a2(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x5eff4b-_0x3373a8['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x272e67,_0x2cc29a=!0x0){const _0x4cdb80=this['editor']['editing']['view'];_0x4cdb80['change'](_0x178316=>{for(const _0x3e749b of _0x4cdb80['document']['roots'])_0x2cc29a?_0x178316['addClass'](_0x272e67,_0x3e749b):_0x178316['removeClass'](_0x272e67,_0x3e749b);});}}function G(_0x5d9a24,_0x291b6e,..._0x4e5c55){const t=_0x5d9a24['t'];switch(_0x291b6e){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x4e5c55);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x291b6e;}}class C extends _0x526e0a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,$];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x547d80=this['editor']['plugins']['get']('Pagination'),_0x47c8ac=this['editor']['plugins']['get'](w),_0x29f106=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x547d80),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x29f106),this['listenTo'](_0x47c8ac,'change:pageBreaks',(_0x4ebd2d,_0x22240d,_0x5d183b,_0x304fc0)=>{this['totalPages']=_0x5d183b['length'],this['_updatePageBreakMarkers'](_0x5d183b,_0x304fc0);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x38b2b6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b0329;for(const _0x4cb87e in _0x38b2b6){const _0x215df0=_0x4cb87e,_0x490849=_0x38b2b6[_0x215df0];if('paginationLicenseKeyValid'==_0x490849||'paginationLicenseKeyInvalid'==_0x490849||'paginationLicenseKeyExpired'==_0x490849||'paginationLicenseKeyDomainLimit'==_0x490849||'paginationLicenseKeyNotAllowed'==_0x490849||'paginationLicenseKeyEvaluationLimit'==_0x490849||'paginationLicenseKeyUsageLimit'==_0x490849){delete _0x38b2b6[_0x215df0],_0x1b0329=_0x490849,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x1b0329&&_0x38b2b6['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x1b0329&&_0x38b2b6['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x1b0329&&_0x38b2b6['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x1b0329&&_0x38b2b6['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x1b0329&&_0x38b2b6['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x1b0329&&_0x38b2b6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x531305){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x531305));}['moveSelectionToPage'](_0xcfe779){if(!this['isEnabled'])return;const _0x29111b=this['editor'],_0x37ef75=this['editor']['plugins']['get'](w)['pageBreaks'][_0xcfe779-0x1];_0x37ef75&&_0x29111b['model']['change'](_0x1b2a49=>{switch(_0x37ef75['type']){case'manual':{const _0x4b043b=_0x29111b['model']['schema']['getNearestSelectionRange'](_0x37ef75['modelRange']['end'],'forward');_0x1b2a49['setSelection'](_0x4b043b);break;}case'element':{const _0x5bbe04=_0x29111b['model']['schema']['getNearestSelectionRange'](_0x37ef75['modelRange']['start'],'forward');_0x1b2a49['setSelection'](_0x5bbe04);break;}case'text':{const _0x2b4dfa=_0x37ef75['modelRange']['start'];if(_0x2b4dfa['textNode']&&'\x20'===_0x2b4dfa['textNode']['data'][_0x2b4dfa['offset']]){const _0x77113a=_0x1b2a49['createPositionAt'](_0x2b4dfa['parent'],_0x2b4dfa['offset']+0x1);_0x1b2a49['setSelection'](_0x77113a);}else _0x1b2a49['setSelection'](_0x37ef75['modelRange']);}}_0x29111b['editing']['view']['focus']();});}['goToNextPage'](){const _0x53569a=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x53569a),this['scrollToPage'](_0x53569a);}['goToPreviousPage'](){const _0x5a815e=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x5a815e),this['scrollToPage'](_0x5a815e);}['_updatePageBreakMarkers'](_0x3f80c3,_0x10cea7){const _0x41db89=this['editor']['model'];this['isEnabled']&&_0x41db89['change'](_0x1618e4=>{for(let _0x47efb5=0x1;_0x47efb5<_0x3f80c3['length'];_0x47efb5++){const _0x400539=_0x3f80c3[_0x47efb5]['modelRange'],_0x4fd9cd='pagination:'+(_0x47efb5+0x1);_0x41db89['markers']['has'](_0x4fd9cd)?_0x1618e4['updateMarker'](_0x4fd9cd,{'range':_0x400539}):_0x1618e4['addMarker'](_0x4fd9cd,{'range':_0x400539,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x21f4ac=_0x3f80c3['length'];_0x21f4ac<_0x10cea7['length'];_0x21f4ac++){const _0x120128='pagination:'+(_0x21f4ac+0x1);_0x41db89['markers']['has'](_0x120128)&&_0x1618e4['removeMarker'](_0x120128);}});}['_setUpDataDowncastConversion'](){const _0x2a92ff='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x11d118=>{_0x11d118['on']('addMarker:'+_0x2a92ff,(_0x1c3425,{markerRange:_0xb947bf,markerName:_0xcaf7b6},_0x2fb274)=>{if(!_0x2fb274['options']['pagination'])return;if(!_0x2fb274['consumable']['consume'](_0xb947bf,_0x1c3425['name']))return;const _0x5de5c9=_0xb947bf['getContainedElement']();let _0x19fbd6=_0x5de5c9?_0x2fb274['mapper']['toViewElement'](_0x5de5c9):null;if(!_0x19fbd6){const _0x274858=_0xb947bf['start'];if(_0x2fb274['schema']['checkChild'](_0x274858,'$text')){const _0x207b0f=_0x2fb274['mapper']['toViewPosition'](_0x274858);_0x19fbd6=_0x2fb274['writer']['createContainerElement']('span'),_0x19fbd6['getFillerOffset']=()=>null,_0x2fb274['writer']['insert'](_0x207b0f,_0x19fbd6);}else{const _0x529199=_0x274858['nodeAfter'];_0x19fbd6=_0x2fb274['mapper']['toViewElement'](_0x529199);}}for(;_0x19fbd6['parent']!==_0x19fbd6['root']&&0x0===_0x19fbd6['index'];)_0x19fbd6=_0x19fbd6['parent'];const _0x4fce3f=_0xcaf7b6['substring'](0xb);_0x19fbd6['hasClass']('page-break')||(_0x2fb274['writer']['setStyle']('page-break-before','always',_0x19fbd6),_0x2fb274['writer']['setAttribute']('data-pagination-page',_0x4fce3f,_0x19fbd6),_0x2fb274['mapper']['bindElementToMarker'](_0x19fbd6,_0xcaf7b6)),_0x1c3425['stop']();});});}['_setupKeystrokes'](){const _0x382b45=this['editor'];_0x382b45['keystrokes']['set']('Shift+Pageup',(_0x158908,_0x2e99b1)=>{this['goToPreviousPage'](),_0x2e99b1();}),_0x382b45['keystrokes']['set']('Shift+Pagedown',(_0x2f3b3a,_0x340db6)=>{this['goToNextPage'](),_0x340db6();}),_0x382b45['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x382b45['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x382b45['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x382b45['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x4edf21){return _0x4edf21<0x1&&(_0x4edf21=0x1),_0x4edf21>this['totalPages']&&(_0x4edf21=this['totalPages']),_0x4edf21;}}class U extends _0x16070c{['pageNumberView'];constructor(_0x3b7722){super(_0x3b7722);const _0xbd880d=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x3f41cc(_0x3b7722,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x1015f0=>G(_0x3b7722,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x1015f0)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x4aa1d5=>!_0x4aa1d5),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0xbd880d['if']('isEnabled','ck-disabled',_0x23187a=>!_0x23187a)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0xbd880d['to']('totalPages')}]}]});}['render'](){super['render']();const _0x414a83=this['pageNumberView']['element'],_0xd47233=_0x10186a=>{this['pageNumberView']['element']['value']=String(_0x10186a);};_0xd47233(this['pageNumber']),this['on']('change:pageNumber',(_0x2b8600,_0x41fd1b,_0x43d357)=>{_0xd47233(_0x43d357);}),this['listenTo'](_0x414a83,'keydown',(_0x1f8ea7,_0x33cd27)=>{if('ArrowUp'===_0x33cd27['key']||'ArrowDown'===_0x33cd27['key'])return void _0x33cd27['stopPropagation']();if(_0x33cd27['keyCode']!==_0x1c89d6['enter'])return;_0x33cd27['preventDefault']();const _0xa7fe2=_0x414a83['valueAsNumber'];Number['isNaN'](_0xa7fe2)?_0x414a83['value']=String(this['pageNumber']):(_0x414a83['checkValidity']()?this['pageNumber']=_0xa7fe2:_0xa7fe2>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x414a83['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x414a83['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x414a83,'blur',()=>{_0x414a83['value']=String(this['pageNumber']);}),this['listenTo'](_0x414a83,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0x526e0a{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x161c92=this['editor'],_0x45ca3c=_0x161c92['plugins']['get']('PaginationEditing');_0x161c92['ui']['componentFactory']['add']('pageNavigation',_0x5a9a73=>{const _0x30d3b9=new U(_0x5a9a73);return _0x30d3b9['bind']('pageNumber')['to'](_0x45ca3c),_0x30d3b9['bind']('totalPages')['to'](_0x45ca3c),_0x30d3b9['bind']('isEnabled')['to'](_0x45ca3c),_0x30d3b9['on']('navigation',(_0x396068,_0x39f550)=>{_0x45ca3c['moveSelectionToPage'](_0x39f550),_0x45ca3c['scrollToPage'](_0x39f550);}),_0x30d3b9;}),_0x161c92['ui']['componentFactory']['add']('nextPage',_0x5ab848=>{const _0x459f91=new _0x1f3cd6(_0x5ab848);return _0x459f91['isEnabled']=!0x0,_0x459f91['label']=G(_0x161c92['locale'],'Go\x20to\x20next\x20page'),_0x459f91['icon']=_0x343159,_0x459f91['tooltip']=!0x0,_0x459f91['keystroke']='Shift+PageDown',_0x459f91['bind']('isEnabled')['to'](_0x45ca3c),this['listenTo'](_0x459f91,'execute',()=>{_0x45ca3c['goToNextPage']();}),_0x459f91;}),_0x161c92['ui']['componentFactory']['add']('previousPage',_0xaeabd6=>{const _0x25a8aa=new _0x1f3cd6(_0xaeabd6);return _0x25a8aa['isEnabled']=!0x0,_0x25a8aa['label']=G(_0x161c92['locale'],'Go\x20to\x20previous\x20page'),_0x25a8aa['icon']=_0x2418c9,_0x25a8aa['tooltip']=!0x0,_0x25a8aa['keystroke']='Shift+PageUp',_0x25a8aa['bind']('isEnabled')['to'](_0x45ca3c),this['listenTo'](_0x25a8aa,'execute',()=>{_0x45ca3c['goToPreviousPage']();}),_0x25a8aa;});}}class j extends _0x526e0a{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x3bd559){super(_0x3bd559),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x59724b=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x59724b),this['bind']('totalPages')['to'](_0x59724b),_0x45a398['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0xebf5c6){this['editor']['plugins']['get'](C)['scrollToPage'](_0xebf5c6);}}export{j as Pagination,$ as PaginationRenderer};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-pagination",
|
|
3
|
-
"version": "48.1.0-alpha.
|
|
3
|
+
"version": "48.1.0-alpha.5",
|
|
4
4
|
"description": "Pagination feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ckeditor/ckeditor5-core": "48.1.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.5",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.5",
|
|
29
29
|
"es-toolkit": "1.45.1"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|