@ckeditor/ckeditor5-pagination 48.1.0-alpha.3 → 48.1.0-alpha.4

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -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 _0xc35d05}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x720d57,InputNumberView as _0x23b34e,ButtonView as _0x15a43a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x5b3792,global as _0x36c641,Rect as _0x3c380b,uid as _0x300f41,toUnit as _0x3809c7,first as _0x5616df,env as _0x1458f4,ResizeObserver as _0x347f1f,keyCodes as _0x2a01a5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x2de048}from'es-toolkit/compat';import{IconArrowDown as _0xc9e25e,IconArrowUp as _0x4baa32}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0xc35d05{['_recalculatePageBreaksDebounced']=_0x2de048(()=>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 _0x5b3792('pagination-config-not-found',this['editor']['config']);const _0x1b7dc6=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x1b7dc6),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x49f3ae,_0x2d24f6,_0x3d2395)=>{_0x3d2395&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x351f5c){const _0x89d0d8=_0x4dd44e([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]),_0x660d51=0xc82cb1e,_0x4cdd41=0xc8542b6^_0x660d51,_0x1f3367=window[_0x4dd44e([0x44,0x61,0x74,0x65])][_0x4dd44e([0x6e,0x6f,0x77])](),_0x22e9c8=_0x351f5c[_0x4dd44e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5f35d4=new window[(_0x4dd44e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x136833=>{_0x22e9c8[_0x4dd44e([0x6f,0x6e,0x63,0x65])](_0x4dd44e([0x72,0x65,0x61,0x64,0x79]),_0x136833);}),_0x33c5b7={[_0x4dd44e([0x6b,0x74,0x79])]:_0x4dd44e([0x45,0x43]),[_0x4dd44e([0x75,0x73,0x65])]:_0x4dd44e([0x73,0x69,0x67]),[_0x4dd44e([0x63,0x72,0x76])]:_0x4dd44e([0x50,0x2d,0x32,0x35,0x36]),[_0x4dd44e([0x78])]:_0x4dd44e([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]),[_0x4dd44e([0x79])]:_0x4dd44e([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]),[_0x4dd44e([0x61,0x6c,0x67])]:_0x4dd44e([0x45,0x53,0x32,0x35,0x36])},_0x5e4e2c=_0x22e9c8[_0x4dd44e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4dd44e([0x67,0x65,0x74])](_0x4dd44e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x13604c(){let _0x229a8c,_0x2db3f6=null,_0x6102a6=null;try{if(_0x5e4e2c==_0x4dd44e([0x47,0x50,0x4c]))return _0x4dd44e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x229a8c=_0x21a28e(),!_0x229a8c)return _0x4dd44e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x229a8c[_0x4dd44e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6102a6=_0x21b2be(_0x229a8c[_0x4dd44e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x229a8c[_0x4dd44e([0x6a,0x74,0x69])])),await _0x260f9b()?_0x3d0933()?_0x10bcb5()?_0x4dd44e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a6a93()?(_0x229a8c[_0x4dd44e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4dd44e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2db3f6=_0x1bb486(_0x4dd44e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33a7ba()):_0x4dd44e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4dd44e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4dd44e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4dd44e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10bcb5(){const _0x558e0a=[_0x4dd44e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4dd44e([0x74,0x72,0x69,0x61,0x6c])][_0x4dd44e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x229a8c[_0x4dd44e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f3367/0x3e8:0xe10*_0x4cdd41;return _0x229a8c[_0x4dd44e([0x65,0x78,0x70])]<_0x558e0a;}function _0x3d0933(){const _0x27fbfa=_0x229a8c[_0x4dd44e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x27fbfa&&(!!_0x27fbfa[_0x4dd44e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dd44e([0x2a]))||!!_0x27fbfa[_0x4dd44e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dd44e([0x50,0x41,0x47])));}function _0x4a6a93(){const _0x1d8c83=_0x229a8c[_0x4dd44e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d8c83||0x0==_0x1d8c83[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e5706}=new URL(window[_0x4dd44e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d8c83[_0x4dd44e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e5706))return!0x0;const _0x365ee5=_0x4e5706[_0x4dd44e([0x73,0x70,0x6c,0x69,0x74])](_0x4dd44e([0x2e]));return _0x1d8c83[_0x4dd44e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ad754=>_0x4ad754[_0x4dd44e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dd44e([0x2a])))[_0x4dd44e([0x6d,0x61,0x70])](_0x491a33=>_0x491a33[_0x4dd44e([0x73,0x70,0x6c,0x69,0x74])](_0x4dd44e([0x2e])))[_0x4dd44e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4dd96e=>_0x4dd96e[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x365ee5[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4dd44e([0x6d,0x61,0x70])](_0x3ef3b2=>Array(_0x365ee5[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3ef3b2[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4dd44e([0x66,0x69,0x6c,0x6c])](_0x3ef3b2[0x0]===_0x4dd44e([0x2a])?_0x4dd44e([0x2a]):'')[_0x4dd44e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3ef3b2))[_0x4dd44e([0x73,0x6f,0x6d,0x65])](_0xc8bea8=>_0x365ee5[_0x4dd44e([0x65,0x76,0x65,0x72,0x79])]((_0x212f6c,_0x5700b8)=>_0xc8bea8[_0x5700b8]===_0x212f6c||_0xc8bea8[_0x5700b8]===_0x4dd44e([0x2a])));}function _0x33a7ba(){return _0x2db3f6&&_0x6102a6?new window[(_0x4dd44e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e87f4,_0x37be21)=>{_0x2db3f6[_0x4dd44e([0x74,0x68,0x65,0x6e])](_0x1e87f4,_0x37be21),_0x6102a6[_0x4dd44e([0x74,0x68,0x65,0x6e])](_0x590ee8=>{_0x590ee8!=_0x4dd44e([0x56,0x61,0x6c,0x69,0x64])&&_0x1e87f4(_0x590ee8);},_0x37be21);}):_0x2db3f6||_0x6102a6||_0x4dd44e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21b2be(_0x405718,_0x1bc1df){return new window[(_0x4dd44e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1426c2=>{if(_0x8288b3())return _0x1426c2(_0x4dd44e([0x56,0x61,0x6c,0x69,0x64]));_0x453a3c(),_0x22e9c8[_0x4dd44e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4dd44e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d36be=!0x1;const _0x4def2b=_0x300f41();function _0x32c94b(_0x1df636){return!!_0x1df636&&(typeof _0x1df636===_0x4dd44e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1df636===_0x4dd44e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1df636[_0x4dd44e([0x74,0x68,0x65,0x6e])]===_0x4dd44e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1df636[_0x4dd44e([0x63,0x61,0x74,0x63,0x68])]===_0x4dd44e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20bef9(_0x22ac99){_0x9514bb(_0x22ac99)[_0x4dd44e([0x74,0x68,0x65,0x6e])](_0x31b1a9=>{if(!_0x31b1a9||_0x31b1a9[_0x4dd44e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4dd44e([0x6f,0x6b]))return _0x4dd44e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xaa11f7(_0x3a462e(_0x4def2b+_0x1bc1df))!=_0x31b1a9[_0x4dd44e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4dd44e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4dd44e([0x56,0x61,0x6c,0x69,0x64]);})[_0x4dd44e([0x74,0x68,0x65,0x6e])](_0x108428=>(_0x265d7a(),_0x108428),()=>{const _0x55793b=_0x3a8107();return null==_0x55793b?(_0x265d7a(),_0x4dd44e([0x56,0x61,0x6c,0x69,0x64])):_0x4dd44e(_0x1f3367-_0x55793b>(0x288e4f1e^_0x660d51)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4dd44e([0x74,0x68,0x65,0x6e])](_0x1426c2)[_0x4dd44e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1426c2(_0x4dd44e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x136873=0xcb4259e^_0x660d51;function _0x265d7a(){const _0x3f1ccd=_0x4dd44e([0x6c,0x6c,0x63,0x74,0x2d])+_0xaa11f7(_0x3a462e(_0x405718)),_0x33b477=_0x5b61d3(_0xaa11f7(window[_0x4dd44e([0x4d,0x61,0x74,0x68])][_0x4dd44e([0x63,0x65,0x69,0x6c])](_0x1f3367/_0x136873)));window[_0x4dd44e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4dd44e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f1ccd,_0x33b477);}function _0x3a8107(){const _0x550ae5=_0x4dd44e([0x6c,0x6c,0x63,0x74,0x2d])+_0xaa11f7(_0x3a462e(_0x405718)),_0x2b86eb=window[_0x4dd44e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4dd44e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x550ae5);return _0x2b86eb?window[_0x4dd44e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b61d3(_0x2b86eb),0x10)*_0x136873:null;}function _0x9514bb(_0x11bbec){return new window[(_0x4dd44e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15cef1,_0x42bd42)=>{_0x11bbec[_0x4dd44e([0x74,0x68,0x65,0x6e])](_0x15cef1,_0x42bd42),window[_0x4dd44e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42bd42,0xc831fde^_0x660d51);});}}_0x22e9c8[_0x4dd44e([0x6f,0x6e])](_0x4dd44e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4dce48,_0x1b02a7)=>{if(_0x1b02a7[0x0]!=_0x405718)return _0x1426c2(_0x4dd44e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b02a7[0x1]={..._0x1b02a7[0x1],[_0x4dd44e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4def2b};},{[_0x4dd44e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4dd44e([0x68,0x69,0x67,0x68])}),_0x22e9c8[_0x4dd44e([0x6f,0x6e])](_0x4dd44e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b9d94=>{_0x32c94b(_0x2b9d94[_0x4dd44e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d36be=!0x0,_0x20bef9(_0x2b9d94[_0x4dd44e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4dd44e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4dd44e([0x6c,0x6f,0x77])}),_0x5f35d4[_0x4dd44e([0x74,0x68,0x65,0x6e])](()=>{_0x3d36be||_0x1426c2(_0x4dd44e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8288b3(){return _0x22e9c8[_0x4dd44e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4dd44e([0x76,0x69,0x65,0x77])][_0x4dd44e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4dd44e([0x61,0x75,0x74,0x6f]);}function _0x453a3c(){_0x22e9c8[_0x4dd44e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4dd44e([0x76,0x69,0x65,0x77])][_0x4dd44e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4dd44e([0x61,0x75,0x74,0x6f]);}}function _0x1bb486(_0x4c3b8f){const _0x4954aa=[new window[(_0x4dd44e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d35f5=>setTimeout(_0x5d35f5,0xc8bf5d2^_0x660d51)),_0x5f35d4[_0x4dd44e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4dd44e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x278dac=>{let _0xc0f85f=0x0;_0x22e9c8[_0x4dd44e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dd44e([0x6f,0x6e])](_0x4dd44e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2351d7,_0x2fbb38)=>{_0x2fbb38[0x0][_0x4dd44e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc0f85f++,_0xc0f85f==(0xc82cef6^_0x660d51)&&(_0x278dac(),_0x2351d7[_0x4dd44e([0x6f,0x66,0x66])]());});}))];return window[_0x4dd44e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4dd44e([0x72,0x61,0x63,0x65])](_0x4954aa)[_0x4dd44e([0x74,0x68,0x65,0x6e])](()=>_0x4c3b8f);}async function _0xa47c62(){await _0x5f35d4,_0x22e9c8[_0x4dd44e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dd44e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x228ea8,_0x22e9c8[_0x4dd44e([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dd44e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x228ea8,_0x22e9c8[_0x4dd44e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4dd44e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7f48b1(_0x4c9e02){const _0x34ee5b=_0x474866();_0x22e9c8[_0x34ee5b]=_0x4dd44e([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c9e02,_0x4c9e02!=_0x4dd44e([0x56,0x61,0x6c,0x69,0x64])&&_0xa47c62();}function _0x474866(){const _0x3e5298=window[_0x4dd44e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4dd44e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4dd44e([0x6e,0x6f,0x77])]())[_0x4dd44e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4dd44e([0x2e]),'');let _0x104373=_0x4dd44e([0x49]);for(let _0x1e1e86=0x0;_0x1e1e86<_0x3e5298[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e1e86+=0x2){let _0x37ba17=window[_0x4dd44e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e5298[_0x4dd44e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e1e86,_0x1e1e86+0x2));_0x37ba17>=_0x89d0d8[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37ba17-=_0x89d0d8[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x104373+=_0x89d0d8[_0x37ba17];}return _0x104373;}function _0x21a28e(){const _0x4d708d=_0x5e4e2c[_0x4dd44e([0x73,0x70,0x6c,0x69,0x74])](_0x4dd44e([0x2e]));if(0x3!=_0x4d708d[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x323a22(_0x4d708d[0x1]);function _0x323a22(_0x1df228){const _0x2ff542=_0x1baedf(_0x1df228);return _0x2ff542&&_0x571017()?_0x2ff542:null;function _0x571017(){const _0x3a578f=_0x2ff542[_0x4dd44e([0x6a,0x74,0x69])],_0x2c546b=window[_0x4dd44e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a578f[_0x4dd44e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a578f[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c2425={..._0x2ff542,[_0x4dd44e([0x6a,0x74,0x69])]:_0x3a578f[_0x4dd44e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a578f[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c2425[_0x4dd44e([0x76,0x63])],_0x3a462e(_0x1c2425)==_0x2c546b;}}}async function _0x260f9b(){let _0x350271=!0x0;try{const _0x19d0b1=_0x5e4e2c[_0x4dd44e([0x73,0x70,0x6c,0x69,0x74])](_0x4dd44e([0x2e])),[_0x1fd2b7,_0x1153a9,_0xc61d9a]=_0x19d0b1;return _0x4680bc(_0x1fd2b7),await _0x489017(_0x1fd2b7,_0x1153a9,_0xc61d9a),_0x350271;}catch{return!0x1;}function _0x4680bc(_0x4760f0){const _0x2d044a=_0x1baedf(_0x4760f0);_0x2d044a&&_0x2d044a[_0x4dd44e([0x61,0x6c,0x67])]==_0x4dd44e([0x45,0x53,0x32,0x35,0x36])||(_0x350271=!0x1);}async function _0x489017(_0x3b6a35,_0xb9ae0f,_0x51a980){const _0x1dec2e=window[_0x4dd44e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4dd44e([0x66,0x72,0x6f,0x6d])](_0x988ce4(_0x51a980),_0x123d66=>_0x123d66[_0x4dd44e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4138b6=new window[(_0x4dd44e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4dd44e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b6a35+_0x4dd44e([0x2e])+_0xb9ae0f),_0x5f48fb=window[_0x4dd44e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4dd44e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5f48fb)return;const _0x4e6e39=await _0x5f48fb[_0x4dd44e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4dd44e([0x6a,0x77,0x6b]),_0x33c5b7,{[_0x4dd44e([0x6e,0x61,0x6d,0x65])]:_0x4dd44e([0x45,0x43,0x44,0x53,0x41]),[_0x4dd44e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4dd44e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4dd44e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5f48fb[_0x4dd44e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4dd44e([0x6e,0x61,0x6d,0x65])]:_0x4dd44e([0x45,0x43,0x44,0x53,0x41]),[_0x4dd44e([0x68,0x61,0x73,0x68])]:{[_0x4dd44e([0x6e,0x61,0x6d,0x65])]:_0x4dd44e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e6e39,_0x1dec2e,_0x4138b6)||(_0x350271=!0x1);}}function _0x1baedf(_0x1fd7e0){return _0x1fd7e0[_0x4dd44e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4dd44e([0x65,0x79]))?JSON[_0x4dd44e([0x70,0x61,0x72,0x73,0x65])](_0x988ce4(_0x1fd7e0)):null;}function _0x988ce4(_0x476509){return window[_0x4dd44e([0x61,0x74,0x6f,0x62])](_0x476509[_0x4dd44e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4dd44e([0x2b]))[_0x4dd44e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4dd44e([0x2f])));}function _0x3a462e(_0x1b5e9f){let _0x192e47=0x1505;function _0x51b949(_0x88a609){for(let _0xcbec47=0x0;_0xcbec47<_0x88a609[_0x4dd44e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcbec47++){const _0x5412db=_0x88a609[_0x4dd44e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xcbec47);_0x192e47=(_0x192e47<<0x5)+_0x192e47+_0x5412db,_0x192e47&=_0x192e47;}}function _0x210396(_0x1df666){Array[_0x4dd44e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1df666)?_0x1df666[_0x4dd44e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x210396):_0x1df666&&typeof _0x1df666==_0x4dd44e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4dd44e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1df666)[_0x4dd44e([0x73,0x6f,0x72,0x74])]()[_0x4dd44e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35b90e,_0x2d770d])=>{_0x51b949(_0x35b90e),_0x210396(_0x2d770d);}):_0x51b949(window[_0x4dd44e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1df666));}return _0x210396(_0x1b5e9f),_0x192e47>>>0x0;}function _0xaa11f7(_0x10431a){return _0x10431a[_0x4dd44e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4dd44e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4dd44e([0x30]));}function _0x5b61d3(_0x3d7dd5){return _0x3d7dd5[_0x4dd44e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4dd44e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4dd44e([0x6a,0x6f,0x69,0x6e])]('');}function _0x228ea8(){}function _0x4dd44e(_0x205888){return _0x205888['map'](_0x141320=>String['fromCharCode'](_0x141320))['join']('');}_0x7f48b1(await _0x13604c());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x38eea7=this['editor'],_0x18c2e0=_0x38eea7['editing']['view'],_0x553915=this['_getAttachedDomRoot']();if(!_0x553915||0x0===_0x553915['childElementCount'])return void _0x38eea7['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x45a305,pageHeight:_0x31fe85}=_0x38eea7['config']['get']('pagination'),{top:_0x1a7bb9,left:_0x555ce0,bottom:_0x3ce2d8,right:_0x458f77}=this['_configuredPaddings'];this['_pagesContainer']=new _0x720d57(_0x38eea7['locale']);const _0x171b25=this['_pagesContainer'];_0x171b25['set']('class',''),_0x171b25['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x45a305,'width':_0x45a305,'height':'calc(\x20'+_0x31fe85+'\x20-\x20'+_0x1a7bb9+'\x20-\x20'+_0x3ce2d8+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x458f77+'\x200\x20'+_0x555ce0,'columnGap':'calc('+_0x555ce0+'\x20+\x20'+_0x458f77+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x171b25['bindTemplate']['to']('class')}}),_0x171b25['render'](),_0x553915['parentNode']['insertBefore'](_0x171b25['element'],_0x553915['nextSibling']),this['listenTo'](_0x18c2e0,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x882021 of this['editor']['editing']['view']['domRoots']['values']())if(_0x882021['ownerDocument']['body']['contains'](_0x882021))return _0x882021;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0xf386d3=this['editor']['editing']['view'],_0x1fedcb=this['_pagesContainer'],_0x2374ba=this['_getAttachedDomRoot']();if(!_0x2374ba)return Promise['resolve']();for(_0x1fedcb['class']=['ck-reset','ck-pagination-view',..._0x2374ba['classList']]['join']('\x20');_0x1fedcb['element']['firstChild'];)_0x1fedcb['element']['firstChild']['remove']();const _0x36cb97=Array['from'](_0xf386d3['domRoots']);_0x36cb97['sort'](([,_0x2f771b],[,_0x21ed0a])=>_0x2f771b['compareDocumentPosition'](_0x21ed0a)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x11cea1,_0x50822e]of _0x36cb97){const _0x13ada2=_0x50822e['cloneNode'](!0x0);'attributeStyleMap'in _0x13ada2&&_0x13ada2['attributeStyleMap']['clear'](),_0x13ada2['dataset']['rootName']=_0x11cea1,_0x13ada2['className']='ck-content\x20ck-pagination_enabled',_0x13ada2['removeAttribute']('id'),_0x13ada2['tabIndex']=-0x1,_0x1fedcb['element']['append'](_0x13ada2);}const _0x2cac68=Array['from'](_0x1fedcb['element']['querySelectorAll']('img'));return function(_0x426a97){return Promise['all'](_0x426a97['map'](_0x3467dd=>Promise['race']([k(_0x3467dd),v(0x3e8)])));}(_0x2cac68)['then'](()=>{for(const _0xb2866 of _0x2cac68['filter'](_0x5745c1=>!_0x5745c1['closest']('table')))if(_0xb2866['offsetParent']){const _0x150900=_0x36c641['window']['getComputedStyle'](_0xb2866),_0x3f2a49=_0x36c641['document']['createElement']('span');for(const _0x18be57 of _0x150900)_0x3f2a49['style']['setProperty'](_0x18be57,_0x150900[_0x18be57]);_0x3f2a49['style']['backgroundImage']='url(\x20'+_0xb2866['src']+'\x20)',_0x3f2a49['style']['breakInside']='avoid','PICTURE'==_0xb2866['parentElement']?.['tagName']?_0xb2866['parentElement']['replaceWith'](_0x3f2a49):_0xb2866['replaceWith'](_0x3f2a49);}return new Promise(_0x3f9cc1=>_0x36c641['window']['requestAnimationFrame'](()=>_0x3f9cc1()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0xf87cb5=this['_pagesContainer']['element'];if(!_0xf87cb5['ownerDocument']['body']['contains'](_0xf87cb5))return;const _0xec6545=new _0x3c380b(_0xf87cb5)['excludeScrollbarsAndBorders'](),_0x412586=Math['floor'](_0xec6545['width']+0x64),_0x3a6f37=_(_0xf87cb5,Math['floor'](_0xec6545['left']-_0xf87cb5['scrollLeft']),_0x412586,_0xec6545['height'])['map'](_0xb0129d=>this['_mapPageStarterInfoToPageBreakInfo'](_0xb0129d))['filter'](_0xc8898d=>!0x1!==_0xc8898d);_0x3a6f37['every'](_0x229fe8=>!!_0x229fe8)&&(this['pageBreaks']=_0x3a6f37);}['_mapPageStarterInfoToPageBreakInfo'](_0x16bd33){const _0x5e6430=this['editor']['editing']['view'],_0x548c68=this['editor']['editing']['mapper'],_0x375b2f=_0x5e6430['domConverter'],_0x442d45=_0x16bd33['path']['shift'](),_0x24c7a2=this['_pagesContainer']['element']['childNodes'][_0x442d45]['dataset']['rootName'],_0x516f5e=_0x5e6430['getDomRoot'](_0x24c7a2);if(!_0x516f5e)return null;const _0x2c35f3=function(_0x34b712,_0x475b52){let _0x1c8455=_0x34b712;for(const _0x5f0076 of _0x475b52['path']){if(!_0x1c8455)return null;_0x1c8455=_0x1c8455['childNodes'][_0x5f0076];}return _0x1c8455;}(_0x516f5e,_0x16bd33);if(!_0x2c35f3)return null;const _0x458cf4=_0x375b2f['domPositionToView'](_0x2c35f3,_0x16bd33['textOffset']||0x0);return _0x458cf4?'manual'==_0x16bd33['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x458cf4,_0x2c35f3):'text'==_0x16bd33['type']&&_0x548c68['toModelPosition'](_0x458cf4)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x458cf4,_0x2c35f3,_0x16bd33['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x458cf4,_0x2c35f3,_0x16bd33['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x4f88f0,_0x117ca1){const _0x274763=this['editor']['model'],_0x47e3fe=this['editor']['editing']['mapper']['toModelElement'](_0x4f88f0['parent']),_0x323b7b=_0x274763['createRangeOn'](_0x47e3fe);return new b({'type':'manual','modelRange':_0x323b7b,'domNode':_0x117ca1,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x3ce1fe,_0x5b5bd0,_0x305a14){const _0x5c07c4=this['editor']['model'],_0x420473=this['editor']['editing']['mapper'],_0x113742=this['editor']['editing']['view']['domConverter'];if(_0x305a14>=_0x5b5bd0['length'])return null;const _0x1c2ada=_0x420473['toModelPosition'](_0x3ce1fe),_0x1c3ed4=_0x5c07c4['createRange'](_0x1c2ada),_0x2da94b=_0x420473['findMappedViewAncestor'](_0x3ce1fe),_0x48b1ef=_0x113742['mapViewToDom'](_0x2da94b);return new b({'type':'text','modelRange':_0x1c3ed4,'domNode':_0x5b5bd0,'offset':P(_0x5b5bd0,_0x305a14,_0x48b1ef)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x4a59a9,_0x58e01b,_0x24feb5){const _0x50ab62=this['editor']['model'],_0x3422c9=this['editor']['editing'],_0x1b84d4=_0x3422c9['mapper'],_0x7e405=_0x3422c9['view']['domConverter'],_0x1a4a90=_0x1b84d4['findMappedViewAncestor'](_0x4a59a9),_0x4e456a=_0x1b84d4['toModelElement'](_0x1a4a90);if(!_0x4e456a||_0x4e456a['is']('element','$root'))return!0x1;const _0x584bd1=function(_0x82111f){const _0x36ac7d=_0x82111f['parent'],_0x5f3ae2=_0x36ac7d['root']['document']['model'],_0x4035bb=_0x36ac7d['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x1520d6=null;for(const _0x3afb80 of _0x4035bb){if(_0x3afb80['is']('rootElement'))return _0x1520d6;if(!_0x5f3ae2['createPositionBefore'](_0x3afb80)['isTouching'](_0x82111f))return _0x1520d6;_0x1520d6=_0x3afb80;}}(_0x50ab62['createPositionBefore'](_0x4e456a)),_0x549ff2=_0x584bd1||_0x4e456a;let _0x56d8f3=_0x1b84d4['toViewElement'](_0x549ff2),_0x58ab07=_0x50ab62['createRangeOn'](_0x549ff2);const _0x3ddcf7=_0x50ab62['createPositionBefore'](_0x549ff2)['nodeBefore'];if(_0x3ddcf7&&_0x3ddcf7['is']('element','imageBlock')){const _0x4b4c7d=_0x1b84d4['toViewElement'](_0x3ddcf7),_0x12bf12=_0x7e405['mapViewToDom'](_0x4b4c7d),_0x3bbad9=_0x36c641['window']['getComputedStyle'](_0x12bf12)['float'];'left'!=_0x3bbad9&&'right'!=_0x3bbad9||(_0x58ab07=_0x50ab62['createRangeOn'](_0x3ddcf7));}for(;_0x56d8f3['parent']!==_0x56d8f3['root']&&0x0===_0x56d8f3['index'];)_0x56d8f3=_0x56d8f3['parent'];const _0x52774c=new _0x3c380b(I(_0x58e01b)?_0x58e01b:x(_0x58e01b)),_0x5b6dd6=_0x24feb5?_0x52774c['height']-_0x24feb5:0x0,_0x2a6496=_0x7e405['mapViewToDom'](_0x56d8f3),_0x3b3490=new _0x3c380b(_0x2a6496);return new b({'type':'element','modelRange':_0x58ab07,'domNode':_0x2a6496,'offset':Math['round'](_0x5b6dd6)||_0x1a4a90!=y(_0x4a59a9)?_0x5b6dd6+_0x52774c['top']-_0x3b3490['top']:0x0});}get['_configuredPaddings'](){const _0x22d7b5=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x22d7b5);}static['_findPageStarterInfos'](_0xebf9c8,_0xf3d44e,_0x42657d,_0x13e0f5,_0x4296ff){return _(_0xebf9c8,_0xf3d44e,_0x42657d,_0x13e0f5,_0x4296ff);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x6e20a5,modelRange:_0x2788c8,domNode:_0x2e3850,offset:_0x45e7ee}){this['type']=_0x6e20a5,this['modelRange']=_0x2788c8,this['_domNode']=_0x2e3850,this['_offset']=_0x45e7ee;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0xb08848=new _0x3c380b(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0xb08848['top']+_0xb08848['height']/0x2:_0xb08848['top']+this['_offset'];}}function P(_0x16cc79,_0x81092a,_0x2cf6fd){const _0x558168=x(_0x16cc79),_0x174094=function(_0x355d1c){const _0x5822c0=_0x36c641['document']['createRange']();return _0x5822c0['selectNodeContents'](_0x355d1c),_0x5822c0;}(_0x2cf6fd);let _0x1930b7;_0x1930b7=0x0==_0x81092a?L(_0x174094['startContainer'],_0x174094['startOffset'],_0x16cc79['parentNode'],Array['from'](_0x16cc79['parentNode']['childNodes'])['indexOf'](_0x16cc79)):L(_0x174094['startContainer'],_0x174094['startOffset'],_0x16cc79,_0x81092a);const _0x2d3e52=L(_0x16cc79,_0x81092a,_0x174094['endContainer'],_0x174094['endOffset']),_0x4da715=new _0x3c380b(_0x1930b7)['bottom'];return(new _0x3c380b(_0x2d3e52)['top']+_0x4da715)/0x2-new _0x3c380b(_0x558168)['top'];}function y(_0x329d79){let _0x4021a7=_0x329d79['parent'];for(;_0x4021a7['is']('$text')||_0x4021a7['is']('attributeElement');)_0x4021a7=_0x4021a7['parent'];return _0x4021a7;}function k(_0x1f55e7){return _0x1f55e7['hasAttribute']('width')&&_0x1f55e7['hasAttribute']('height')?Promise['resolve']():new Promise(_0x4629b1=>{function _0x853363(){_0x1f55e7['removeEventListener']('load',_0x853363),_0x1f55e7['removeEventListener']('error',_0x853363),_0x4629b1();}_0x1f55e7['complete']?_0x4629b1():(_0x1f55e7['addEventListener']('load',_0x853363),_0x1f55e7['addEventListener']('error',_0x853363));});}function v(_0x52bba2){return new Promise(_0x387624=>setTimeout(_0x387624,_0x52bba2));}function x(_0x5c3c7b){const _0x5247ad=_0x36c641['document']['createRange']();return _0x5247ad['selectNode'](_0x5c3c7b),_0x5247ad;}function N(_0x29d24f,_0x3be589,_0x4ae618){const _0x54c4ed=_0x36c641['document']['createRange']();return _0x54c4ed['setStart'](_0x29d24f,_0x3be589),_0x54c4ed['setEnd'](_0x29d24f,_0x4ae618),_0x54c4ed;}function L(_0x748ac0,_0x3d1f36,_0x10b6e9,_0x249d6a){const _0xa3458c=_0x36c641['document']['createRange']();return _0xa3458c['setStart'](_0x748ac0,_0x3d1f36),_0xa3458c['setEnd'](_0x10b6e9,_0x249d6a),_0xa3458c;}function _(_0x15d9d9,_0x307350,_0x5a05d1,_0x22d8e4,_0x5aa0b9){const _0x321743=[];for(const [_0xc3141b,_0x5b8129]of _0x15d9d9['childNodes']['entries']()){let _0x3b9a23=[];I(_0x5b8129)&&_0x5b8129['offsetParent']&&['static','relative']['includes'](_0x36c641['window']['getComputedStyle'](_0x5b8129)['position'])?_0x3b9a23=S(_0x5b8129,_0xc3141b,_0x307350,_0x5a05d1,_0x22d8e4,_0x5aa0b9):O(_0x5b8129)&&(_0x3b9a23=E(_0x5b8129,_0xc3141b,_0x307350,_0x5a05d1,_0x5aa0b9)),_0x3b9a23['length']&&(_0x321743['push'](..._0x3b9a23),_0x307350+=_0x3b9a23['length']*_0x5a05d1,_0x5aa0b9=!0x1);}return _0x321743;}function S(_0x5af77c,_0x4d7031,_0x3822c8,_0x3c2464,_0x483e88,_0x1f8ba6){const _0x3f2c00=[];var _0x295791;if((_0x295791=_0x5af77c['previousSibling'])&&I(_0x295791)&&Boolean(_0x295791['classList']['contains']('page-break')||_0x295791['closest']('.page-break'))&&(_0x3f2c00['push']({'type':'manual','offset':0x0,'path':[_0x4d7031-0x1]}),_0x1f8ba6=!0x0),'table-row'==_0x36c641['window']['getComputedStyle'](_0x5af77c)['display']){let _0x4dffd6=0x0,_0x59c9f9=!0x1;for(const _0x139801 of _0x5af77c['getClientRects']())_0x4dffd6+=_0x139801['height'],_0x139801['left']>=_0x3822c8&&(_0x59c9f9=!0x0);if(_0x4dffd6<_0x483e88&&_0x59c9f9)return _0x1f8ba6||_0x3f2c00['push']({'type':'element','offset':0x0,'path':[_0x4d7031]}),_0x3f2c00;}const _0x46420f=_0x5af77c['closest']('figure.image');if(_0x46420f&&function(_0x452423){let _0x450279=!0x1;const _0x3cd1d2=_0x452423['parentElement'],_0x2248e5=_0x3cd1d2['dataset']['rootName'],_0x3b843c=_0x452423['nextElementSibling'],_0x54269b=_0x452423['previousElementSibling'],_0x2f24a0=_0x3b843c&&_0x36c641['window']['getComputedStyle'](_0x3b843c)['float'],_0x414370=_0x3b843c&&'ck-fake-selection-container'===_0x3b843c['className'];!_0x2248e5||_0x3b843c||_0x54269b||(_0x450279=!0x0),_0x2248e5&&!_0x54269b&&_0x414370&&(_0x450279=!0x0),_0x2248e5&&!_0x54269b&&'none'!==_0x2f24a0&&(_0x450279=!0x0);if(_0x450279)return!0x1;return!0x0;}(_0x46420f)){const _0x4cec41=_0x36c641['window']['getComputedStyle'](_0x46420f)['float'];if('left'==_0x4cec41||'right'==_0x4cec41)return _0x3f2c00;}const _0x3fb674=_(_0x5af77c,_0x3822c8,_0x3c2464,_0x483e88,_0x1f8ba6);if(_0x3fb674['length']){for(const _0x1c2f75 of _0x3fb674)_0x3f2c00['push']({'type':_0x1c2f75['type'],'offset':_0x1c2f75['offset'],'textOffset':_0x1c2f75['textOffset'],'path':[_0x4d7031,..._0x1c2f75['path']]}),_0x3822c8+=_0x3c2464,_0x1f8ba6=!0x1;return _0x3f2c00;}return _0x3f2c00['push'](...function(_0x36c2f5,_0x210ad7,_0x1b1963,_0x343a0e,_0xda3e24){const _0x3524a5=[];if('table-cell'==_0x36c641['window']['getComputedStyle'](_0x36c2f5)['display'])return[];const _0x5db8bd=[];for(const _0x2126cd of _0x36c2f5['getClientRects']())if(_0x2126cd['left']>=_0x1b1963){for(const _0x1ae3ec of _0x5db8bd)_0x1ae3ec['height']+=_0x2126cd['height'];_0x5db8bd['push']({'height':_0x2126cd['height']}),_0x1b1963+=_0x343a0e;}for(const _0x561dba of _0x5db8bd)_0xda3e24||_0x3524a5['push']({'type':'element','offset':_0x561dba['height'],'textOffset':0x0,'path':[_0x210ad7]}),_0xda3e24=!0x1;return _0x3524a5;}(_0x5af77c,_0x4d7031,_0x3822c8,_0x3c2464,_0x1f8ba6)),_0x3f2c00;}function E(_0x497584,_0x116a47,_0x12005f,_0x4628bd,_0x3b08e3){const _0x5c7bc9=x(_0x497584),_0x248e6b=[];let _0x210503=0x0;for(const _0x1009b1 of _0x5c7bc9['getClientRects']())if(_0x1009b1['left']>=_0x12005f){const _0x431d97=R(_0x497584,_0x210503,_0x12005f,_0x4628bd);_0x3b08e3||_0x248e6b['push']({'type':'text','path':[_0x116a47],'textOffset':_0x431d97}),_0x210503=_0x431d97,_0x12005f+=_0x4628bd,_0x3b08e3=!0x1;}return _0x248e6b;}function R(_0x593a7d,_0x13eb59,_0xa76a0c,_0x305517){let _0x1572e9=_0x13eb59,_0x2cd146=_0x593a7d['length'];for(;_0x2cd146-_0x1572e9>0x1;){const _0x4b33e6=Math['ceil']((_0x1572e9+_0x2cd146)/0x2);K(N(_0x593a7d,_0x1572e9,_0x4b33e6),_0xa76a0c,_0x305517)?_0x2cd146=_0x4b33e6:_0x1572e9=_0x4b33e6;}return _0x1572e9;}function K(_0x41d945,_0x55d52b,_0x4561a3){for(const _0x4213d9 of _0x41d945['getClientRects']())if(_0x4213d9['left']>=_0x55d52b&&_0x4213d9['left']<_0x55d52b+_0x4561a3)return!0x0;return!0x1;}function I(_0x495c63){return _0x495c63['nodeType']==Node['ELEMENT_NODE'];}function O(_0x4ae891){return _0x4ae891['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
24
+ _0x3809c7('px');class T extends _0x720d57{constructor(){super();const _0x336afa=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x336afa['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x336afa['if']('isVisible','ck-hidden',_0x51144b=>!_0x51144b)],'style':{'left':_0x336afa['to']('left',_0x5af711=>B(_0x5af711)),'top':_0x336afa['to']('top',_0xe9e89c=>B(_0xe9e89c)),'width':_0x336afa['to']('width',_0x240acc=>B(_0x240acc))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x5e60c1){this['_viewCollection']=_0x5e60c1['ui']['view']['body'];}['destroy'](){for(const _0xd988d2 of this['_hiddenLines'])_0xd988d2['destroy']();}['cleanLines'](){for(const _0x16d79b of this['_visibleLines'])_0x16d79b['isVisible']=!0x1,this['_hiddenLines']['add'](_0x16d79b);this['_visibleLines']['clear']();}['showLine'](_0x2434fc,_0x18de49,_0x4d5791,_0x82b211){let _0x348ef8;this['_hiddenLines']['size']?(_0x348ef8=_0x5616df(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x348ef8)):_0x348ef8=new T(),_0x348ef8['set']({'pageNumber':_0x82b211,'left':_0x2434fc,'top':_0x18de49,'width':_0x4d5791}),_0x348ef8['isVisible']=!0x0,this['_viewCollection']['has'](_0x348ef8)||this['_viewCollection']['add'](_0x348ef8),this['_visibleLines']['add'](_0x348ef8);}['setViewCollection'](_0x455ab1){for(const _0x818eb1 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x818eb1)&&this['_viewCollection']['remove'](_0x818eb1);this['_viewCollection']=_0x455ab1;}}const D='ck-pagination_enabled';class $ extends _0xc35d05{['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',(_0x4ab172,_0x47b0e8,_0x354123)=>{_0x354123||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x354123);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x1baa17){if(!this['isEnabled'])return;const _0x4b186b=_0x1baa17>0x1?this['_getPageBreakLineOffset'](_0x1baa17-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x4b186b-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x1458f4['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x47a159=this['editor'],_0x3a8ea9=this['_getAttachedDomRoot']();_0x3a8ea9?(this['_scrollableEditingRootDomAncestor']&&_0x47a159['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x481363){let _0x17d433=_0x481363;do{_0x17d433=_0x17d433['parentElement'];const _0x244a5a=_0x36c641['window']['getComputedStyle'](_0x17d433)['overflowY'];if('auto'==_0x244a5a||'scroll'==_0x244a5a)break;}while('BODY'!=_0x17d433['tagName']);return _0x17d433;}(_0x3a8ea9),_0x47a159['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x347f1f(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x47a159['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x4e5b16=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x4e5b16['ui']['view']['listenTo'](_0x36c641['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x4e5b16['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x22657e of this['editor']['editing']['view']['domRoots']['values']())if(_0x22657e['ownerDocument']['body']['contains'](_0x22657e))return _0x22657e;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x53aa42=this['_getAttachedDomRoot'](),_0x57e31f=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x53aa42||0x1==_0x57e31f['length'])return void(this['pageNumber']=0x1);const _0x48ef0c=new _0x3c380b(_0x53aa42)['excludeScrollbarsAndBorders'](),_0x186b7e=new _0x3c380b(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x95493b=_0x186b7e['top']+_0x186b7e['height']/0x3;let _0xe7e3a1=!0x1;const _0x3dc5c3=[];for(let _0x30b7f7=0x1;_0x30b7f7<_0x57e31f['length'];_0x30b7f7++){const _0x259bb0=this['_getPageBreakLineOffset'](_0x30b7f7,_0x186b7e);if(!_0x259bb0)continue;const _0x296433=_0x186b7e['top']+_0x259bb0-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x3dc5c3['push']({'pageOffsetTop':_0x296433,'domRootRect':_0x48ef0c,'domScrollableRect':_0x186b7e,'pageNumber':_0x30b7f7}),_0x296433>_0x95493b&&!_0xe7e3a1&&(this['pageNumber']=_0x30b7f7,_0xe7e3a1=!0x0);}this['_renderPageBreakLines'](_0x3dc5c3),_0xe7e3a1||(this['pageNumber']=_0x57e31f['length']);}['_renderPageBreakLines'](_0x47cf46){const {scrollX:_0x58eb9e,scrollY:_0x35e714}=_0x36c641['window'];if(_0x47cf46['length']){for(const {domScrollableRect:_0x10c277,pageOffsetTop:_0x42ed62,domRootRect:_0x126a90,pageNumber:_0x572799}of _0x47cf46)_0x10c277['top']<_0x42ed62&&_0x42ed62<_0x10c277['bottom']&&this['linesRepository']['showLine'](_0x126a90['left']+_0x58eb9e,_0x42ed62+_0x35e714,_0x126a90['width'],_0x572799+0x1);}}['_getPageBreakLineOffset'](_0x20ecbf,_0x1f0b8e=null){const _0x441ded=this['_paginationLookupPlugin']['pageBreaks'][_0x20ecbf]['offset'];return _0x441ded?(_0x1f0b8e||(_0x1f0b8e=new _0x3c380b(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x441ded-_0x1f0b8e['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x18380c,_0x2db17c=!0x0){const _0x127747=this['editor']['editing']['view'];_0x127747['change'](_0x30e824=>{for(const _0x50cba8 of _0x127747['document']['roots'])_0x2db17c?_0x30e824['addClass'](_0x18380c,_0x50cba8):_0x30e824['removeClass'](_0x18380c,_0x50cba8);});}}function G(_0x51d587,_0x445e15,..._0x26a2f1){const t=_0x51d587['t'];switch(_0x445e15){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)',..._0x26a2f1);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 _0x445e15;}}class C extends _0xc35d05{['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 _0x2fe7ab=this['editor']['plugins']['get']('Pagination'),_0x2df149=this['editor']['plugins']['get'](w),_0xdec689=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x2fe7ab),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0xdec689),this['listenTo'](_0x2df149,'change:pageBreaks',(_0x2b968b,_0x212a97,_0x104aa6,_0x190659)=>{this['totalPages']=_0x104aa6['length'],this['_updatePageBreakMarkers'](_0x104aa6,_0x190659);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1bb07e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6aa900;for(const _0x5003f7 in _0x1bb07e){const _0x41bad4=_0x5003f7,_0x3d5b4b=_0x1bb07e[_0x41bad4];if('paginationLicenseKeyValid'==_0x3d5b4b||'paginationLicenseKeyInvalid'==_0x3d5b4b||'paginationLicenseKeyExpired'==_0x3d5b4b||'paginationLicenseKeyDomainLimit'==_0x3d5b4b||'paginationLicenseKeyNotAllowed'==_0x3d5b4b||'paginationLicenseKeyEvaluationLimit'==_0x3d5b4b||'paginationLicenseKeyUsageLimit'==_0x3d5b4b){delete _0x1bb07e[_0x41bad4],_0x6aa900=_0x3d5b4b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x6aa900&&_0x1bb07e['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x6aa900&&_0x1bb07e['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x6aa900&&_0x1bb07e['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x6aa900&&_0x1bb07e['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x6aa900&&_0x1bb07e['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x6aa900&&_0x1bb07e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x1b63eb){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x1b63eb));}['moveSelectionToPage'](_0x1a23d8){if(!this['isEnabled'])return;const _0x40b4f2=this['editor'],_0x1e6a77=this['editor']['plugins']['get'](w)['pageBreaks'][_0x1a23d8-0x1];_0x1e6a77&&_0x40b4f2['model']['change'](_0x187ef0=>{switch(_0x1e6a77['type']){case'manual':{const _0x17a6b6=_0x40b4f2['model']['schema']['getNearestSelectionRange'](_0x1e6a77['modelRange']['end'],'forward');_0x187ef0['setSelection'](_0x17a6b6);break;}case'element':{const _0xb37f84=_0x40b4f2['model']['schema']['getNearestSelectionRange'](_0x1e6a77['modelRange']['start'],'forward');_0x187ef0['setSelection'](_0xb37f84);break;}case'text':{const _0x5d2483=_0x1e6a77['modelRange']['start'];if(_0x5d2483['textNode']&&'\x20'===_0x5d2483['textNode']['data'][_0x5d2483['offset']]){const _0x529041=_0x187ef0['createPositionAt'](_0x5d2483['parent'],_0x5d2483['offset']+0x1);_0x187ef0['setSelection'](_0x529041);}else _0x187ef0['setSelection'](_0x1e6a77['modelRange']);}}_0x40b4f2['editing']['view']['focus']();});}['goToNextPage'](){const _0x3d4f27=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x3d4f27),this['scrollToPage'](_0x3d4f27);}['goToPreviousPage'](){const _0x47a31a=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x47a31a),this['scrollToPage'](_0x47a31a);}['_updatePageBreakMarkers'](_0x469e22,_0x34a635){const _0x1f0fa1=this['editor']['model'];this['isEnabled']&&_0x1f0fa1['change'](_0x45ccc9=>{for(let _0x11854a=0x1;_0x11854a<_0x469e22['length'];_0x11854a++){const _0x444b29=_0x469e22[_0x11854a]['modelRange'],_0xcd54af='pagination:'+(_0x11854a+0x1);_0x1f0fa1['markers']['has'](_0xcd54af)?_0x45ccc9['updateMarker'](_0xcd54af,{'range':_0x444b29}):_0x45ccc9['addMarker'](_0xcd54af,{'range':_0x444b29,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x4935f8=_0x469e22['length'];_0x4935f8<_0x34a635['length'];_0x4935f8++){const _0x111393='pagination:'+(_0x4935f8+0x1);_0x1f0fa1['markers']['has'](_0x111393)&&_0x45ccc9['removeMarker'](_0x111393);}});}['_setUpDataDowncastConversion'](){const _0x3bcb16='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x1fcb19=>{_0x1fcb19['on']('addMarker:'+_0x3bcb16,(_0x3153b2,{markerRange:_0x5a47d2,markerName:_0x10ff9e},_0xb783f3)=>{if(!_0xb783f3['options']['pagination'])return;if(!_0xb783f3['consumable']['consume'](_0x5a47d2,_0x3153b2['name']))return;const _0x428c91=_0x5a47d2['getContainedElement']();let _0x50039c=_0x428c91?_0xb783f3['mapper']['toViewElement'](_0x428c91):null;if(!_0x50039c){const _0x2c87a4=_0x5a47d2['start'];if(_0xb783f3['schema']['checkChild'](_0x2c87a4,'$text')){const _0x2dd18b=_0xb783f3['mapper']['toViewPosition'](_0x2c87a4);_0x50039c=_0xb783f3['writer']['createContainerElement']('span'),_0x50039c['getFillerOffset']=()=>null,_0xb783f3['writer']['insert'](_0x2dd18b,_0x50039c);}else{const _0x4a4027=_0x2c87a4['nodeAfter'];_0x50039c=_0xb783f3['mapper']['toViewElement'](_0x4a4027);}}for(;_0x50039c['parent']!==_0x50039c['root']&&0x0===_0x50039c['index'];)_0x50039c=_0x50039c['parent'];const _0x3b21d5=_0x10ff9e['substring'](0xb);_0x50039c['hasClass']('page-break')||(_0xb783f3['writer']['setStyle']('page-break-before','always',_0x50039c),_0xb783f3['writer']['setAttribute']('data-pagination-page',_0x3b21d5,_0x50039c),_0xb783f3['mapper']['bindElementToMarker'](_0x50039c,_0x10ff9e)),_0x3153b2['stop']();});});}['_setupKeystrokes'](){const _0x2dbc33=this['editor'];_0x2dbc33['keystrokes']['set']('Shift+Pageup',(_0x4161b2,_0x2092a9)=>{this['goToPreviousPage'](),_0x2092a9();}),_0x2dbc33['keystrokes']['set']('Shift+Pagedown',(_0x325502,_0x4eb3f3)=>{this['goToNextPage'](),_0x4eb3f3();}),_0x2dbc33['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x2dbc33['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x2dbc33['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x2dbc33['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x31191e){return _0x31191e<0x1&&(_0x31191e=0x1),_0x31191e>this['totalPages']&&(_0x31191e=this['totalPages']),_0x31191e;}}class U extends _0x720d57{['pageNumberView'];constructor(_0x37a5a4){super(_0x37a5a4);const _0x4adff9=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x23b34e(_0x37a5a4,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x29ce09=>G(_0x37a5a4,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x29ce09)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x11c6f8=>!_0x11c6f8),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x4adff9['if']('isEnabled','ck-disabled',_0x52cce3=>!_0x52cce3)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x4adff9['to']('totalPages')}]}]});}['render'](){super['render']();const _0x323a69=this['pageNumberView']['element'],_0x42650c=_0x177c45=>{this['pageNumberView']['element']['value']=String(_0x177c45);};_0x42650c(this['pageNumber']),this['on']('change:pageNumber',(_0x258dad,_0x5e202c,_0xd1cdb0)=>{_0x42650c(_0xd1cdb0);}),this['listenTo'](_0x323a69,'keydown',(_0x53e2fb,_0x24eaac)=>{if('ArrowUp'===_0x24eaac['key']||'ArrowDown'===_0x24eaac['key'])return void _0x24eaac['stopPropagation']();if(_0x24eaac['keyCode']!==_0x2a01a5['enter'])return;_0x24eaac['preventDefault']();const _0x3a806b=_0x323a69['valueAsNumber'];Number['isNaN'](_0x3a806b)?_0x323a69['value']=String(this['pageNumber']):(_0x323a69['checkValidity']()?this['pageNumber']=_0x3a806b:_0x3a806b>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x323a69['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x323a69['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x323a69,'blur',()=>{_0x323a69['value']=String(this['pageNumber']);}),this['listenTo'](_0x323a69,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0xc35d05{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1088ce=this['editor'],_0x72988b=_0x1088ce['plugins']['get']('PaginationEditing');_0x1088ce['ui']['componentFactory']['add']('pageNavigation',_0x7a4a96=>{const _0x39d390=new U(_0x7a4a96);return _0x39d390['bind']('pageNumber')['to'](_0x72988b),_0x39d390['bind']('totalPages')['to'](_0x72988b),_0x39d390['bind']('isEnabled')['to'](_0x72988b),_0x39d390['on']('navigation',(_0x3c664f,_0x4b5d93)=>{_0x72988b['moveSelectionToPage'](_0x4b5d93),_0x72988b['scrollToPage'](_0x4b5d93);}),_0x39d390;}),_0x1088ce['ui']['componentFactory']['add']('nextPage',_0x4e7da5=>{const _0x17a8a2=new _0x15a43a(_0x4e7da5);return _0x17a8a2['isEnabled']=!0x0,_0x17a8a2['label']=G(_0x1088ce['locale'],'Go\x20to\x20next\x20page'),_0x17a8a2['icon']=_0xc9e25e,_0x17a8a2['tooltip']=!0x0,_0x17a8a2['keystroke']='Shift+PageDown',_0x17a8a2['bind']('isEnabled')['to'](_0x72988b),this['listenTo'](_0x17a8a2,'execute',()=>{_0x72988b['goToNextPage']();}),_0x17a8a2;}),_0x1088ce['ui']['componentFactory']['add']('previousPage',_0x29bdf3=>{const _0x3063aa=new _0x15a43a(_0x29bdf3);return _0x3063aa['isEnabled']=!0x0,_0x3063aa['label']=G(_0x1088ce['locale'],'Go\x20to\x20previous\x20page'),_0x3063aa['icon']=_0x4baa32,_0x3063aa['tooltip']=!0x0,_0x3063aa['keystroke']='Shift+PageUp',_0x3063aa['bind']('isEnabled')['to'](_0x72988b),this['listenTo'](_0x3063aa,'execute',()=>{_0x72988b['goToPreviousPage']();}),_0x3063aa;});}}class j extends _0xc35d05{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x2b0435){super(_0x2b0435),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x50f498=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x50f498),this['bind']('totalPages')['to'](_0x50f498),_0x1458f4['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x273f0d){this['editor']['plugins']['get'](C)['scrollToPage'](_0x273f0d);}}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",
3
+ "version": "48.1.0-alpha.4",
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.3",
25
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.3",
26
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.3",
27
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.3",
28
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.3",
24
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.4",
25
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.4",
26
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.4",
27
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.4",
28
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.4",
29
29
  "es-toolkit": "1.45.1"
30
30
  },
31
31
  "files": [