@ckeditor/ckeditor5-pagination 48.1.0-alpha.4 → 48.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _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};
|
|
23
|
+
import{Plugin as _0x526e0a}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x16070c,InputNumberView as _0x3f41cc,ButtonView as _0x1f3cd6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x469e9b,global as _0x4f801b,Rect as _0x27e4a2,uid as _0x1fbe8a,toUnit as _0x17dc79,first as _0x75b315,env as _0x45a398,ResizeObserver as _0x43b2bf,keyCodes as _0x1c89d6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x4f79aa}from'es-toolkit/compat';import{IconArrowDown as _0x343159,IconArrowUp as _0x2418c9}from'@ckeditor/ckeditor5-icons/dist/index.js';class w extends _0x526e0a{['_recalculatePageBreaksDebounced']=_0x4f79aa(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x469e9b('pagination-config-not-found',this['editor']['config']);const _0x2e22f5=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x2e22f5),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x3e5e0f,_0x188606,_0x5dff47)=>{_0x5dff47&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x10ab24){const _0x5c79c7=_0x389470([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x2d6287=0xc82cb1e,_0x229307=0xc8542de^_0x2d6287,_0x1d4d8b=window[_0x389470([0x44,0x61,0x74,0x65])][_0x389470([0x6e,0x6f,0x77])](),_0x3791d5=_0x10ab24[_0x389470([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2be62b=new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26605d=>{_0x3791d5[_0x389470([0x6f,0x6e,0x63,0x65])](_0x389470([0x72,0x65,0x61,0x64,0x79]),_0x26605d);}),_0x4750f5={[_0x389470([0x6b,0x74,0x79])]:_0x389470([0x45,0x43]),[_0x389470([0x75,0x73,0x65])]:_0x389470([0x73,0x69,0x67]),[_0x389470([0x63,0x72,0x76])]:_0x389470([0x50,0x2d,0x32,0x35,0x36]),[_0x389470([0x78])]:_0x389470([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x389470([0x79])]:_0x389470([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x389470([0x61,0x6c,0x67])]:_0x389470([0x45,0x53,0x32,0x35,0x36])},_0x1c35df=_0x3791d5[_0x389470([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x389470([0x67,0x65,0x74])](_0x389470([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14b5f2(){let _0x2249a3,_0x302da0=null,_0x4acc3c=null;try{if(_0x1c35df==_0x389470([0x47,0x50,0x4c]))return _0x389470([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2249a3=_0x5a312d(),!_0x2249a3)return _0x389470([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2249a3[_0x389470([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4acc3c=_0x30da54(_0x2249a3[_0x389470([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2249a3[_0x389470([0x6a,0x74,0x69])])),await _0x23458a()?_0x268ca3()?_0x5a8b28()?_0x389470([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a245e()?(_0x2249a3[_0x389470([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x389470([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x302da0=_0x1eee09(_0x389470([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x493c0e()):_0x389470([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x389470([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x389470([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x389470([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a8b28(){const _0x301676=[_0x389470([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x389470([0x74,0x72,0x69,0x61,0x6c])][_0x389470([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2249a3[_0x389470([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d4d8b/0x3e8:0xe10*_0x229307;return _0x2249a3[_0x389470([0x65,0x78,0x70])]<_0x301676;}function _0x268ca3(){const _0x76304a=_0x2249a3[_0x389470([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x76304a&&(!!_0x76304a[_0x389470([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389470([0x2a]))||!!_0x76304a[_0x389470([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389470([0x50,0x41,0x47])));}function _0x4a245e(){const _0x3535d6=_0x2249a3[_0x389470([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3535d6||0x0==_0x3535d6[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55a8cd}=new URL(window[_0x389470([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3535d6[_0x389470([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a8cd))return!0x0;const _0x188156=_0x55a8cd[_0x389470([0x73,0x70,0x6c,0x69,0x74])](_0x389470([0x2e]));return _0x3535d6[_0x389470([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3de82b=>_0x3de82b[_0x389470([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389470([0x2a])))[_0x389470([0x6d,0x61,0x70])](_0xab6a2=>_0xab6a2[_0x389470([0x73,0x70,0x6c,0x69,0x74])](_0x389470([0x2e])))[_0x389470([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13c8d8=>_0x13c8d8[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x188156[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389470([0x6d,0x61,0x70])](_0x1b502d=>Array(_0x188156[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b502d[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389470([0x66,0x69,0x6c,0x6c])](_0x1b502d[0x0]===_0x389470([0x2a])?_0x389470([0x2a]):'')[_0x389470([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b502d))[_0x389470([0x73,0x6f,0x6d,0x65])](_0x5b3df5=>_0x188156[_0x389470([0x65,0x76,0x65,0x72,0x79])]((_0x1d34ab,_0x41c180)=>_0x5b3df5[_0x41c180]===_0x1d34ab||_0x5b3df5[_0x41c180]===_0x389470([0x2a])));}function _0x493c0e(){return _0x302da0&&_0x4acc3c?new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b4387,_0x10d34d)=>{_0x302da0[_0x389470([0x74,0x68,0x65,0x6e])](_0x5b4387,_0x10d34d),_0x4acc3c[_0x389470([0x74,0x68,0x65,0x6e])](_0x2a4ad6=>{_0x2a4ad6!=_0x389470([0x56,0x61,0x6c,0x69,0x64])&&_0x5b4387(_0x2a4ad6);},_0x10d34d);}):_0x302da0||_0x4acc3c||_0x389470([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30da54(_0x42114f,_0xcd9a96){return new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4706b0=>{if(_0x50415c())return _0x4706b0(_0x389470([0x56,0x61,0x6c,0x69,0x64]));_0x2528b3(),_0x3791d5[_0x389470([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x389470([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20b3d6=!0x1;const _0x202a3e=_0x1fbe8a();function _0x54d815(_0x1415bb){return!!_0x1415bb&&(typeof _0x1415bb===_0x389470([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1415bb===_0x389470([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1415bb[_0x389470([0x74,0x68,0x65,0x6e])]===_0x389470([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1415bb[_0x389470([0x63,0x61,0x74,0x63,0x68])]===_0x389470([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x83b438(_0x314d69){_0x487458(_0x314d69)[_0x389470([0x74,0x68,0x65,0x6e])](_0xac3d61=>{if(!_0xac3d61||_0xac3d61[_0x389470([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x389470([0x6f,0x6b]))return _0x389470([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc7caf4(_0x73216f(_0x202a3e+_0xcd9a96))!=_0xac3d61[_0x389470([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x389470([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x389470([0x56,0x61,0x6c,0x69,0x64]);})[_0x389470([0x74,0x68,0x65,0x6e])](_0x13daf8=>(_0x4d9c9f(),_0x13daf8),()=>{const _0xda2155=_0x40c610();return null==_0xda2155?(_0x4d9c9f(),_0x389470([0x56,0x61,0x6c,0x69,0x64])):_0x389470(_0x1d4d8b-_0xda2155>(0x288e4f1e^_0x2d6287)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x389470([0x74,0x68,0x65,0x6e])](_0x4706b0)[_0x389470([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4706b0(_0x389470([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x187c2c=0xcb4259e^_0x2d6287;function _0x4d9c9f(){const _0x7dba18=_0x389470([0x6c,0x6c,0x63,0x74,0x2d])+_0xc7caf4(_0x73216f(_0x42114f)),_0x1c15f1=_0xc5ecb4(_0xc7caf4(window[_0x389470([0x4d,0x61,0x74,0x68])][_0x389470([0x63,0x65,0x69,0x6c])](_0x1d4d8b/_0x187c2c)));window[_0x389470([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389470([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7dba18,_0x1c15f1);}function _0x40c610(){const _0x3a3436=_0x389470([0x6c,0x6c,0x63,0x74,0x2d])+_0xc7caf4(_0x73216f(_0x42114f)),_0x437050=window[_0x389470([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389470([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a3436);return _0x437050?window[_0x389470([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc5ecb4(_0x437050),0x10)*_0x187c2c:null;}function _0x487458(_0x11e827){return new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5955a8,_0x162d0b)=>{_0x11e827[_0x389470([0x74,0x68,0x65,0x6e])](_0x5955a8,_0x162d0b),window[_0x389470([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x162d0b,0xc831fde^_0x2d6287);});}}_0x3791d5[_0x389470([0x6f,0x6e])](_0x389470([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x478d22,_0x42ec92)=>{if(_0x42ec92[0x0]!=_0x42114f)return _0x4706b0(_0x389470([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x42ec92[0x1]={..._0x42ec92[0x1],[_0x389470([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x202a3e};},{[_0x389470([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389470([0x68,0x69,0x67,0x68])}),_0x3791d5[_0x389470([0x6f,0x6e])](_0x389470([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d5a2f=>{_0x54d815(_0x3d5a2f[_0x389470([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20b3d6=!0x0,_0x83b438(_0x3d5a2f[_0x389470([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x389470([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389470([0x6c,0x6f,0x77])}),_0x2be62b[_0x389470([0x74,0x68,0x65,0x6e])](()=>{_0x20b3d6||_0x4706b0(_0x389470([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50415c(){return _0x3791d5[_0x389470([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389470([0x76,0x69,0x65,0x77])][_0x389470([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x389470([0x61,0x75,0x74,0x6f]);}function _0x2528b3(){_0x3791d5[_0x389470([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389470([0x76,0x69,0x65,0x77])][_0x389470([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x389470([0x61,0x75,0x74,0x6f]);}}function _0x1eee09(_0x419649){const _0x181f56=[new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5969e5=>setTimeout(_0x5969e5,0xc8bf5d2^_0x2d6287)),_0x2be62b[_0x389470([0x74,0x68,0x65,0x6e])](()=>new window[(_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7f6106=>{let _0x2a02f2=0x0;_0x3791d5[_0x389470([0x6d,0x6f,0x64,0x65,0x6c])][_0x389470([0x6f,0x6e])](_0x389470([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23b3e9,_0x1a8841)=>{_0x1a8841[0x0][_0x389470([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a02f2++,_0x2a02f2==(0xc82cef6^_0x2d6287)&&(_0x7f6106(),_0x23b3e9[_0x389470([0x6f,0x66,0x66])]());});}))];return window[_0x389470([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x389470([0x72,0x61,0x63,0x65])](_0x181f56)[_0x389470([0x74,0x68,0x65,0x6e])](()=>_0x419649);}async function _0x16c07d(){await _0x2be62b,_0x3791d5[_0x389470([0x6d,0x6f,0x64,0x65,0x6c])][_0x389470([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f06bd,_0x3791d5[_0x389470([0x6d,0x6f,0x64,0x65,0x6c])][_0x389470([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f06bd,_0x3791d5[_0x389470([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x389470([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x415d5f(_0x3c2a89){const _0x45a877=_0x16613e();_0x3791d5[_0x45a877]=_0x389470([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c2a89,_0x3c2a89!=_0x389470([0x56,0x61,0x6c,0x69,0x64])&&_0x16c07d();}function _0x16613e(){const _0x4a9060=window[_0x389470([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x389470([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x389470([0x6e,0x6f,0x77])]())[_0x389470([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x389470([0x2e]),'');let _0x264e3c=_0x389470([0x49]);for(let _0x4d924d=0x0;_0x4d924d<_0x4a9060[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d924d+=0x2){let _0x51dc3c=window[_0x389470([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a9060[_0x389470([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d924d,_0x4d924d+0x2));_0x51dc3c>=_0x5c79c7[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51dc3c-=_0x5c79c7[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x264e3c+=_0x5c79c7[_0x51dc3c];}return _0x264e3c;}function _0x5a312d(){const _0x8b2ae0=_0x1c35df[_0x389470([0x73,0x70,0x6c,0x69,0x74])](_0x389470([0x2e]));if(0x3!=_0x8b2ae0[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x23b2d3(_0x8b2ae0[0x1]);function _0x23b2d3(_0x2e3fc1){const _0x17a61c=_0x15df58(_0x2e3fc1);return _0x17a61c&&_0x59a9ba()?_0x17a61c:null;function _0x59a9ba(){const _0x42c44b=_0x17a61c[_0x389470([0x6a,0x74,0x69])],_0x1bed1a=window[_0x389470([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42c44b[_0x389470([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42c44b[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x482ce7={..._0x17a61c,[_0x389470([0x6a,0x74,0x69])]:_0x42c44b[_0x389470([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42c44b[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x482ce7[_0x389470([0x76,0x63])],_0x73216f(_0x482ce7)==_0x1bed1a;}}}async function _0x23458a(){let _0x29415f=!0x0;try{const _0x4ebbfc=_0x1c35df[_0x389470([0x73,0x70,0x6c,0x69,0x74])](_0x389470([0x2e])),[_0x134e40,_0x1b68a0,_0xf3bef4]=_0x4ebbfc;return _0x34d65d(_0x134e40),await _0x1e2ca4(_0x134e40,_0x1b68a0,_0xf3bef4),_0x29415f;}catch{return!0x1;}function _0x34d65d(_0x5b7f2a){const _0x4362d7=_0x15df58(_0x5b7f2a);_0x4362d7&&_0x4362d7[_0x389470([0x61,0x6c,0x67])]==_0x389470([0x45,0x53,0x32,0x35,0x36])||(_0x29415f=!0x1);}async function _0x1e2ca4(_0x36b591,_0x4f7e9e,_0x4199aa){const _0x4ffb70=window[_0x389470([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x389470([0x66,0x72,0x6f,0x6d])](_0x26bff0(_0x4199aa),_0x1a6e5f=>_0x1a6e5f[_0x389470([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3bf749=new window[(_0x389470([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x389470([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36b591+_0x389470([0x2e])+_0x4f7e9e),_0x22b7f0=window[_0x389470([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x389470([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22b7f0)return;const _0x433062=await _0x22b7f0[_0x389470([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x389470([0x6a,0x77,0x6b]),_0x4750f5,{[_0x389470([0x6e,0x61,0x6d,0x65])]:_0x389470([0x45,0x43,0x44,0x53,0x41]),[_0x389470([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x389470([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x389470([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22b7f0[_0x389470([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x389470([0x6e,0x61,0x6d,0x65])]:_0x389470([0x45,0x43,0x44,0x53,0x41]),[_0x389470([0x68,0x61,0x73,0x68])]:{[_0x389470([0x6e,0x61,0x6d,0x65])]:_0x389470([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x433062,_0x4ffb70,_0x3bf749)||(_0x29415f=!0x1);}}function _0x15df58(_0x5db6fc){return _0x5db6fc[_0x389470([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x389470([0x65,0x79]))?JSON[_0x389470([0x70,0x61,0x72,0x73,0x65])](_0x26bff0(_0x5db6fc)):null;}function _0x26bff0(_0x35013b){return window[_0x389470([0x61,0x74,0x6f,0x62])](_0x35013b[_0x389470([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x389470([0x2b]))[_0x389470([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x389470([0x2f])));}function _0x73216f(_0x1baf48){let _0x5b64e3=0x1505;function _0x5350de(_0x2ba712){for(let _0x4fb355=0x0;_0x4fb355<_0x2ba712[_0x389470([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fb355++){const _0x2f7d50=_0x2ba712[_0x389470([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4fb355);_0x5b64e3=(_0x5b64e3<<0x5)+_0x5b64e3+_0x2f7d50,_0x5b64e3&=_0x5b64e3;}}function _0x2790b3(_0x1b981a){Array[_0x389470([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b981a)?_0x1b981a[_0x389470([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2790b3):_0x1b981a&&typeof _0x1b981a==_0x389470([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x389470([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b981a)[_0x389470([0x73,0x6f,0x72,0x74])]()[_0x389470([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e6656,_0x10d041])=>{_0x5350de(_0x1e6656),_0x2790b3(_0x10d041);}):_0x5350de(window[_0x389470([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b981a));}return _0x2790b3(_0x1baf48),_0x5b64e3>>>0x0;}function _0xc7caf4(_0x4d3a40){return _0x4d3a40[_0x389470([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x389470([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x389470([0x30]));}function _0xc5ecb4(_0x58052){return _0x58052[_0x389470([0x73,0x70,0x6c,0x69,0x74])]('')[_0x389470([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x389470([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f06bd(){}function _0x389470(_0x2fd3bc){return _0x2fd3bc['map'](_0x1742f5=>String['fromCharCode'](_0x1742f5))['join']('');}_0x415d5f(await _0x14b5f2());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x3f1790=this['editor'],_0x2904c9=_0x3f1790['editing']['view'],_0x3f6176=this['_getAttachedDomRoot']();if(!_0x3f6176||0x0===_0x3f6176['childElementCount'])return void _0x3f1790['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x53feb4,pageHeight:_0x49414c}=_0x3f1790['config']['get']('pagination'),{top:_0x1daaa4,left:_0x68de5d,bottom:_0x4caf1c,right:_0x349434}=this['_configuredPaddings'];this['_pagesContainer']=new _0x16070c(_0x3f1790['locale']);const _0xb219b4=this['_pagesContainer'];_0xb219b4['set']('class',''),_0xb219b4['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x53feb4,'width':_0x53feb4,'height':'calc(\x20'+_0x49414c+'\x20-\x20'+_0x1daaa4+'\x20-\x20'+_0x4caf1c+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x349434+'\x200\x20'+_0x68de5d,'columnGap':'calc('+_0x68de5d+'\x20+\x20'+_0x349434+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0xb219b4['bindTemplate']['to']('class')}}),_0xb219b4['render'](),_0x3f6176['parentNode']['insertBefore'](_0xb219b4['element'],_0x3f6176['nextSibling']),this['listenTo'](_0x2904c9,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x2ea664 of this['editor']['editing']['view']['domRoots']['values']())if(_0x2ea664['ownerDocument']['body']['contains'](_0x2ea664))return _0x2ea664;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x2a53f2=this['editor']['editing']['view'],_0x4e19e4=this['_pagesContainer'],_0x4a09db=this['_getAttachedDomRoot']();if(!_0x4a09db)return Promise['resolve']();for(_0x4e19e4['class']=['ck-reset','ck-pagination-view',..._0x4a09db['classList']]['join']('\x20');_0x4e19e4['element']['firstChild'];)_0x4e19e4['element']['firstChild']['remove']();const _0x20b91a=Array['from'](_0x2a53f2['domRoots']);_0x20b91a['sort'](([,_0x24a8d8],[,_0x24c280])=>_0x24a8d8['compareDocumentPosition'](_0x24c280)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x19cc46,_0x52693c]of _0x20b91a){const _0x31d4a0=_0x52693c['cloneNode'](!0x0);'attributeStyleMap'in _0x31d4a0&&_0x31d4a0['attributeStyleMap']['clear'](),_0x31d4a0['dataset']['rootName']=_0x19cc46,_0x31d4a0['className']='ck-content\x20ck-pagination_enabled',_0x31d4a0['removeAttribute']('id'),_0x31d4a0['tabIndex']=-0x1,_0x4e19e4['element']['append'](_0x31d4a0);}const _0x25a2c0=Array['from'](_0x4e19e4['element']['querySelectorAll']('img'));return function(_0x14d0ce){return Promise['all'](_0x14d0ce['map'](_0xabfe50=>Promise['race']([k(_0xabfe50),v(0x3e8)])));}(_0x25a2c0)['then'](()=>{for(const _0x3d10a3 of _0x25a2c0['filter'](_0x14bd6b=>!_0x14bd6b['closest']('table')))if(_0x3d10a3['offsetParent']){const _0x3b0183=_0x4f801b['window']['getComputedStyle'](_0x3d10a3),_0x163660=_0x4f801b['document']['createElement']('span');for(const _0x3794a6 of _0x3b0183)_0x163660['style']['setProperty'](_0x3794a6,_0x3b0183[_0x3794a6]);_0x163660['style']['backgroundImage']='url(\x20'+_0x3d10a3['src']+'\x20)',_0x163660['style']['breakInside']='avoid','PICTURE'==_0x3d10a3['parentElement']?.['tagName']?_0x3d10a3['parentElement']['replaceWith'](_0x163660):_0x3d10a3['replaceWith'](_0x163660);}return new Promise(_0x42ee1d=>_0x4f801b['window']['requestAnimationFrame'](()=>_0x42ee1d()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x438878=this['_pagesContainer']['element'];if(!_0x438878['ownerDocument']['body']['contains'](_0x438878))return;const _0x1a01b2=new _0x27e4a2(_0x438878)['excludeScrollbarsAndBorders'](),_0x3d1af9=Math['floor'](_0x1a01b2['width']+0x64),_0x3aeee8=_(_0x438878,Math['floor'](_0x1a01b2['left']-_0x438878['scrollLeft']),_0x3d1af9,_0x1a01b2['height'])['map'](_0x4b09a0=>this['_mapPageStarterInfoToPageBreakInfo'](_0x4b09a0))['filter'](_0x4fdbdc=>!0x1!==_0x4fdbdc);_0x3aeee8['every'](_0x2ac00a=>!!_0x2ac00a)&&(this['pageBreaks']=_0x3aeee8);}['_mapPageStarterInfoToPageBreakInfo'](_0x2d4c04){const _0x3de33e=this['editor']['editing']['view'],_0xcdff59=this['editor']['editing']['mapper'],_0x29d4f2=_0x3de33e['domConverter'],_0x40cfd5=_0x2d4c04['path']['shift'](),_0x1d1ed2=this['_pagesContainer']['element']['childNodes'][_0x40cfd5]['dataset']['rootName'],_0x43ffe4=_0x3de33e['getDomRoot'](_0x1d1ed2);if(!_0x43ffe4)return null;const _0xe46b6b=function(_0x118257,_0x176e58){let _0x1304e4=_0x118257;for(const _0x41b68c of _0x176e58['path']){if(!_0x1304e4)return null;_0x1304e4=_0x1304e4['childNodes'][_0x41b68c];}return _0x1304e4;}(_0x43ffe4,_0x2d4c04);if(!_0xe46b6b)return null;const _0x1cfb48=_0x29d4f2['domPositionToView'](_0xe46b6b,_0x2d4c04['textOffset']||0x0);return _0x1cfb48?'manual'==_0x2d4c04['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x1cfb48,_0xe46b6b):'text'==_0x2d4c04['type']&&_0xcdff59['toModelPosition'](_0x1cfb48)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x1cfb48,_0xe46b6b,_0x2d4c04['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x1cfb48,_0xe46b6b,_0x2d4c04['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x3fbe6d,_0x1a8c06){const _0x1818e2=this['editor']['model'],_0x479630=this['editor']['editing']['mapper']['toModelElement'](_0x3fbe6d['parent']),_0x2536f7=_0x1818e2['createRangeOn'](_0x479630);return new b({'type':'manual','modelRange':_0x2536f7,'domNode':_0x1a8c06,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x41c3c9,_0x3f220d,_0x419074){const _0x2f07b5=this['editor']['model'],_0x302436=this['editor']['editing']['mapper'],_0x2b624d=this['editor']['editing']['view']['domConverter'];if(_0x419074>=_0x3f220d['length'])return null;const _0x23123b=_0x302436['toModelPosition'](_0x41c3c9),_0x5cfd84=_0x2f07b5['createRange'](_0x23123b),_0x15b2b2=_0x302436['findMappedViewAncestor'](_0x41c3c9),_0x31a3cb=_0x2b624d['mapViewToDom'](_0x15b2b2);return new b({'type':'text','modelRange':_0x5cfd84,'domNode':_0x3f220d,'offset':P(_0x3f220d,_0x419074,_0x31a3cb)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x540225,_0x5c28c8,_0x272f54){const _0x1bb1a1=this['editor']['model'],_0x56cbde=this['editor']['editing'],_0x53dc9b=_0x56cbde['mapper'],_0x3f53a7=_0x56cbde['view']['domConverter'],_0x28eadd=_0x53dc9b['findMappedViewAncestor'](_0x540225),_0x444044=_0x53dc9b['toModelElement'](_0x28eadd);if(!_0x444044||_0x444044['is']('element','$root'))return!0x1;const _0x12f28e=function(_0x26bf50){const _0x4d8812=_0x26bf50['parent'],_0x172e25=_0x4d8812['root']['document']['model'],_0x893fe8=_0x4d8812['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x2e53d3=null;for(const _0x4b5f66 of _0x893fe8){if(_0x4b5f66['is']('rootElement'))return _0x2e53d3;if(!_0x172e25['createPositionBefore'](_0x4b5f66)['isTouching'](_0x26bf50))return _0x2e53d3;_0x2e53d3=_0x4b5f66;}}(_0x1bb1a1['createPositionBefore'](_0x444044)),_0x3fdb2c=_0x12f28e||_0x444044;let _0x46269b=_0x53dc9b['toViewElement'](_0x3fdb2c),_0x1196a7=_0x1bb1a1['createRangeOn'](_0x3fdb2c);const _0xcab1a1=_0x1bb1a1['createPositionBefore'](_0x3fdb2c)['nodeBefore'];if(_0xcab1a1&&_0xcab1a1['is']('element','imageBlock')){const _0x291652=_0x53dc9b['toViewElement'](_0xcab1a1),_0xf3706b=_0x3f53a7['mapViewToDom'](_0x291652),_0x2abb42=_0x4f801b['window']['getComputedStyle'](_0xf3706b)['float'];'left'!=_0x2abb42&&'right'!=_0x2abb42||(_0x1196a7=_0x1bb1a1['createRangeOn'](_0xcab1a1));}for(;_0x46269b['parent']!==_0x46269b['root']&&0x0===_0x46269b['index'];)_0x46269b=_0x46269b['parent'];const _0x237722=new _0x27e4a2(I(_0x5c28c8)?_0x5c28c8:x(_0x5c28c8)),_0x5f136d=_0x272f54?_0x237722['height']-_0x272f54:0x0,_0x2102be=_0x3f53a7['mapViewToDom'](_0x46269b),_0x44cb51=new _0x27e4a2(_0x2102be);return new b({'type':'element','modelRange':_0x1196a7,'domNode':_0x2102be,'offset':Math['round'](_0x5f136d)||_0x28eadd!=y(_0x540225)?_0x5f136d+_0x237722['top']-_0x44cb51['top']:0x0});}get['_configuredPaddings'](){const _0x25babe=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x25babe);}static['_findPageStarterInfos'](_0xbc5987,_0x47841a,_0x34ed10,_0xa9c066,_0x492923){return _(_0xbc5987,_0x47841a,_0x34ed10,_0xa9c066,_0x492923);}}class b{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x3653cd,modelRange:_0x37c23b,domNode:_0x524b16,offset:_0x4c9b91}){this['type']=_0x3653cd,this['modelRange']=_0x37c23b,this['_domNode']=_0x524b16,this['_offset']=_0x4c9b91;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x51f157=new _0x27e4a2(I(this['_domNode'])?this['_domNode']:x(this['_domNode']));return'manual'==this['type']?_0x51f157['top']+_0x51f157['height']/0x2:_0x51f157['top']+this['_offset'];}}function P(_0x4c0af4,_0x267aa3,_0x5d7e84){const _0x73a7f1=x(_0x4c0af4),_0x180904=function(_0x2ec727){const _0x44d41a=_0x4f801b['document']['createRange']();return _0x44d41a['selectNodeContents'](_0x2ec727),_0x44d41a;}(_0x5d7e84);let _0x44d237;_0x44d237=0x0==_0x267aa3?L(_0x180904['startContainer'],_0x180904['startOffset'],_0x4c0af4['parentNode'],Array['from'](_0x4c0af4['parentNode']['childNodes'])['indexOf'](_0x4c0af4)):L(_0x180904['startContainer'],_0x180904['startOffset'],_0x4c0af4,_0x267aa3);const _0x26716b=L(_0x4c0af4,_0x267aa3,_0x180904['endContainer'],_0x180904['endOffset']),_0x267c4b=new _0x27e4a2(_0x44d237)['bottom'];return(new _0x27e4a2(_0x26716b)['top']+_0x267c4b)/0x2-new _0x27e4a2(_0x73a7f1)['top'];}function y(_0x21aec9){let _0x2bcb6a=_0x21aec9['parent'];for(;_0x2bcb6a['is']('$text')||_0x2bcb6a['is']('attributeElement');)_0x2bcb6a=_0x2bcb6a['parent'];return _0x2bcb6a;}function k(_0x3ab66e){return _0x3ab66e['hasAttribute']('width')&&_0x3ab66e['hasAttribute']('height')?Promise['resolve']():new Promise(_0x444c53=>{function _0xbd10b5(){_0x3ab66e['removeEventListener']('load',_0xbd10b5),_0x3ab66e['removeEventListener']('error',_0xbd10b5),_0x444c53();}_0x3ab66e['complete']?_0x444c53():(_0x3ab66e['addEventListener']('load',_0xbd10b5),_0x3ab66e['addEventListener']('error',_0xbd10b5));});}function v(_0x577dbe){return new Promise(_0x250faf=>setTimeout(_0x250faf,_0x577dbe));}function x(_0x82caab){const _0x94b06b=_0x4f801b['document']['createRange']();return _0x94b06b['selectNode'](_0x82caab),_0x94b06b;}function N(_0x2da9e0,_0x53e46e,_0x6cfaa5){const _0x4d61b7=_0x4f801b['document']['createRange']();return _0x4d61b7['setStart'](_0x2da9e0,_0x53e46e),_0x4d61b7['setEnd'](_0x2da9e0,_0x6cfaa5),_0x4d61b7;}function L(_0x3c7692,_0x4172d,_0x2a6e15,_0x169a0b){const _0x499b5b=_0x4f801b['document']['createRange']();return _0x499b5b['setStart'](_0x3c7692,_0x4172d),_0x499b5b['setEnd'](_0x2a6e15,_0x169a0b),_0x499b5b;}function _(_0x10c390,_0x2c913a,_0xf128bd,_0x2801a9,_0x248719){const _0x4f7054=[];for(const [_0x4c6f7a,_0x5df8fe]of _0x10c390['childNodes']['entries']()){let _0x4017b4=[];I(_0x5df8fe)&&_0x5df8fe['offsetParent']&&['static','relative']['includes'](_0x4f801b['window']['getComputedStyle'](_0x5df8fe)['position'])?_0x4017b4=S(_0x5df8fe,_0x4c6f7a,_0x2c913a,_0xf128bd,_0x2801a9,_0x248719):O(_0x5df8fe)&&(_0x4017b4=E(_0x5df8fe,_0x4c6f7a,_0x2c913a,_0xf128bd,_0x248719)),_0x4017b4['length']&&(_0x4f7054['push'](..._0x4017b4),_0x2c913a+=_0x4017b4['length']*_0xf128bd,_0x248719=!0x1);}return _0x4f7054;}function S(_0x1d2bf8,_0x43f438,_0xadd40a,_0x418b30,_0x64e2a,_0x1b1e16){const _0x146163=[];var _0x4d3eaa;if((_0x4d3eaa=_0x1d2bf8['previousSibling'])&&I(_0x4d3eaa)&&Boolean(_0x4d3eaa['classList']['contains']('page-break')||_0x4d3eaa['closest']('.page-break'))&&(_0x146163['push']({'type':'manual','offset':0x0,'path':[_0x43f438-0x1]}),_0x1b1e16=!0x0),'table-row'==_0x4f801b['window']['getComputedStyle'](_0x1d2bf8)['display']){let _0x44ab81=0x0,_0x41108a=!0x1;for(const _0x4e2d05 of _0x1d2bf8['getClientRects']())_0x44ab81+=_0x4e2d05['height'],_0x4e2d05['left']>=_0xadd40a&&(_0x41108a=!0x0);if(_0x44ab81<_0x64e2a&&_0x41108a)return _0x1b1e16||_0x146163['push']({'type':'element','offset':0x0,'path':[_0x43f438]}),_0x146163;}const _0x48a9bd=_0x1d2bf8['closest']('figure.image');if(_0x48a9bd&&function(_0x4b7fc8){let _0x157699=!0x1;const _0x106a39=_0x4b7fc8['parentElement'],_0x2c935c=_0x106a39['dataset']['rootName'],_0x39d243=_0x4b7fc8['nextElementSibling'],_0x1183d9=_0x4b7fc8['previousElementSibling'],_0x46ada5=_0x39d243&&_0x4f801b['window']['getComputedStyle'](_0x39d243)['float'],_0x1701ba=_0x39d243&&'ck-fake-selection-container'===_0x39d243['className'];!_0x2c935c||_0x39d243||_0x1183d9||(_0x157699=!0x0),_0x2c935c&&!_0x1183d9&&_0x1701ba&&(_0x157699=!0x0),_0x2c935c&&!_0x1183d9&&'none'!==_0x46ada5&&(_0x157699=!0x0);if(_0x157699)return!0x1;return!0x0;}(_0x48a9bd)){const _0x261484=_0x4f801b['window']['getComputedStyle'](_0x48a9bd)['float'];if('left'==_0x261484||'right'==_0x261484)return _0x146163;}const _0x350749=_(_0x1d2bf8,_0xadd40a,_0x418b30,_0x64e2a,_0x1b1e16);if(_0x350749['length']){for(const _0xe11b1e of _0x350749)_0x146163['push']({'type':_0xe11b1e['type'],'offset':_0xe11b1e['offset'],'textOffset':_0xe11b1e['textOffset'],'path':[_0x43f438,..._0xe11b1e['path']]}),_0xadd40a+=_0x418b30,_0x1b1e16=!0x1;return _0x146163;}return _0x146163['push'](...function(_0x525c60,_0x23c938,_0x288614,_0x17ea0f,_0x2de348){const _0x12d344=[];if('table-cell'==_0x4f801b['window']['getComputedStyle'](_0x525c60)['display'])return[];const _0x42f5ae=[];for(const _0x2069c9 of _0x525c60['getClientRects']())if(_0x2069c9['left']>=_0x288614){for(const _0x20331b of _0x42f5ae)_0x20331b['height']+=_0x2069c9['height'];_0x42f5ae['push']({'height':_0x2069c9['height']}),_0x288614+=_0x17ea0f;}for(const _0x49694f of _0x42f5ae)_0x2de348||_0x12d344['push']({'type':'element','offset':_0x49694f['height'],'textOffset':0x0,'path':[_0x23c938]}),_0x2de348=!0x1;return _0x12d344;}(_0x1d2bf8,_0x43f438,_0xadd40a,_0x418b30,_0x1b1e16)),_0x146163;}function E(_0x25fffb,_0x601127,_0x463080,_0x57e16d,_0x5deee1){const _0x115eb8=x(_0x25fffb),_0x2e3c5a=[];let _0x537914=0x0;for(const _0x44cf62 of _0x115eb8['getClientRects']())if(_0x44cf62['left']>=_0x463080){const _0x1184bd=R(_0x25fffb,_0x537914,_0x463080,_0x57e16d);_0x5deee1||_0x2e3c5a['push']({'type':'text','path':[_0x601127],'textOffset':_0x1184bd}),_0x537914=_0x1184bd,_0x463080+=_0x57e16d,_0x5deee1=!0x1;}return _0x2e3c5a;}function R(_0x763271,_0x5a2a46,_0x44f056,_0x18005a){let _0x5b8faf=_0x5a2a46,_0x288352=_0x763271['length'];for(;_0x288352-_0x5b8faf>0x1;){const _0xa55427=Math['ceil']((_0x5b8faf+_0x288352)/0x2);K(N(_0x763271,_0x5b8faf,_0xa55427),_0x44f056,_0x18005a)?_0x288352=_0xa55427:_0x5b8faf=_0xa55427;}return _0x5b8faf;}function K(_0x321470,_0x3cd654,_0x4c8e02){for(const _0x160928 of _0x321470['getClientRects']())if(_0x160928['left']>=_0x3cd654&&_0x160928['left']<_0x3cd654+_0x4c8e02)return!0x0;return!0x1;}function I(_0x3b4e5e){return _0x3b4e5e['nodeType']==Node['ELEMENT_NODE'];}function O(_0x135c18){return _0x135c18['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x17dc79('px');class T extends _0x16070c{constructor(){super();const _0x1662de=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x1662de['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x1662de['if']('isVisible','ck-hidden',_0x3292eb=>!_0x3292eb)],'style':{'left':_0x1662de['to']('left',_0x56cbc2=>B(_0x56cbc2)),'top':_0x1662de['to']('top',_0x36a217=>B(_0x36a217)),'width':_0x1662de['to']('width',_0x459e6f=>B(_0x459e6f))}}});}}class A{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x18b98a){this['_viewCollection']=_0x18b98a['ui']['view']['body'];}['destroy'](){for(const _0x3a323c of this['_hiddenLines'])_0x3a323c['destroy']();}['cleanLines'](){for(const _0x29b912 of this['_visibleLines'])_0x29b912['isVisible']=!0x1,this['_hiddenLines']['add'](_0x29b912);this['_visibleLines']['clear']();}['showLine'](_0xa1449f,_0x450975,_0x5a6df4,_0x23163e){let _0x25fe9e;this['_hiddenLines']['size']?(_0x25fe9e=_0x75b315(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x25fe9e)):_0x25fe9e=new T(),_0x25fe9e['set']({'pageNumber':_0x23163e,'left':_0xa1449f,'top':_0x450975,'width':_0x5a6df4}),_0x25fe9e['isVisible']=!0x0,this['_viewCollection']['has'](_0x25fe9e)||this['_viewCollection']['add'](_0x25fe9e),this['_visibleLines']['add'](_0x25fe9e);}['setViewCollection'](_0x6fa27f){for(const _0xa4f7 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0xa4f7)&&this['_viewCollection']['remove'](_0xa4f7);this['_viewCollection']=_0x6fa27f;}}const D='ck-pagination_enabled';class $ extends _0x526e0a{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new A(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](D),this['on']('change:isEnabled',(_0x4ef08d,_0x4c455c,_0x48a582)=>{_0x48a582||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](D,_0x48a582);});}['destroy'](){this['_toggleEditingRootsClass'](D,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x20da6a){if(!this['isEnabled'])return;const _0x4a11bc=_0x20da6a>0x1?this['_getPageBreakLineOffset'](_0x20da6a-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x4a11bc-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x45a398['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x26fa1c=this['editor'],_0x6e96cf=this['_getAttachedDomRoot']();_0x6e96cf?(this['_scrollableEditingRootDomAncestor']&&_0x26fa1c['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x14ee4e){let _0x1adfbc=_0x14ee4e;do{_0x1adfbc=_0x1adfbc['parentElement'];const _0x391d26=_0x4f801b['window']['getComputedStyle'](_0x1adfbc)['overflowY'];if('auto'==_0x391d26||'scroll'==_0x391d26)break;}while('BODY'!=_0x1adfbc['tagName']);return _0x1adfbc;}(_0x6e96cf),_0x26fa1c['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x43b2bf(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x26fa1c['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x592254=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x592254['ui']['view']['listenTo'](_0x4f801b['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x592254['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x172569 of this['editor']['editing']['view']['domRoots']['values']())if(_0x172569['ownerDocument']['body']['contains'](_0x172569))return _0x172569;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x55e8a3=this['_getAttachedDomRoot'](),_0x1c8210=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x55e8a3||0x1==_0x1c8210['length'])return void(this['pageNumber']=0x1);const _0x43a3d2=new _0x27e4a2(_0x55e8a3)['excludeScrollbarsAndBorders'](),_0x512c3f=new _0x27e4a2(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0xa3696a=_0x512c3f['top']+_0x512c3f['height']/0x3;let _0x2dfa66=!0x1;const _0x1ce216=[];for(let _0x2e625d=0x1;_0x2e625d<_0x1c8210['length'];_0x2e625d++){const _0x4dea1f=this['_getPageBreakLineOffset'](_0x2e625d,_0x512c3f);if(!_0x4dea1f)continue;const _0x2add9c=_0x512c3f['top']+_0x4dea1f-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x1ce216['push']({'pageOffsetTop':_0x2add9c,'domRootRect':_0x43a3d2,'domScrollableRect':_0x512c3f,'pageNumber':_0x2e625d}),_0x2add9c>_0xa3696a&&!_0x2dfa66&&(this['pageNumber']=_0x2e625d,_0x2dfa66=!0x0);}this['_renderPageBreakLines'](_0x1ce216),_0x2dfa66||(this['pageNumber']=_0x1c8210['length']);}['_renderPageBreakLines'](_0x195a6f){const {scrollX:_0x297028,scrollY:_0x281505}=_0x4f801b['window'];if(_0x195a6f['length']){for(const {domScrollableRect:_0xc78176,pageOffsetTop:_0x4ae738,domRootRect:_0x3bb452,pageNumber:_0x40040f}of _0x195a6f)_0xc78176['top']<_0x4ae738&&_0x4ae738<_0xc78176['bottom']&&this['linesRepository']['showLine'](_0x3bb452['left']+_0x297028,_0x4ae738+_0x281505,_0x3bb452['width'],_0x40040f+0x1);}}['_getPageBreakLineOffset'](_0xd635f1,_0x3373a8=null){const _0x5eff4b=this['_paginationLookupPlugin']['pageBreaks'][_0xd635f1]['offset'];return _0x5eff4b?(_0x3373a8||(_0x3373a8=new _0x27e4a2(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x5eff4b-_0x3373a8['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x272e67,_0x2cc29a=!0x0){const _0x4cdb80=this['editor']['editing']['view'];_0x4cdb80['change'](_0x178316=>{for(const _0x3e749b of _0x4cdb80['document']['roots'])_0x2cc29a?_0x178316['addClass'](_0x272e67,_0x3e749b):_0x178316['removeClass'](_0x272e67,_0x3e749b);});}}function G(_0x5d9a24,_0x291b6e,..._0x4e5c55){const t=_0x5d9a24['t'];switch(_0x291b6e){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x4e5c55);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x291b6e;}}class C extends _0x526e0a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[w,$];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x547d80=this['editor']['plugins']['get']('Pagination'),_0x47c8ac=this['editor']['plugins']['get'](w),_0x29f106=this['editor']['plugins']['get']($);this['bind']('isEnabled')['to'](_0x547d80),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x29f106),this['listenTo'](_0x47c8ac,'change:pageBreaks',(_0x4ebd2d,_0x22240d,_0x5d183b,_0x304fc0)=>{this['totalPages']=_0x5d183b['length'],this['_updatePageBreakMarkers'](_0x5d183b,_0x304fc0);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x38b2b6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b0329;for(const _0x4cb87e in _0x38b2b6){const _0x215df0=_0x4cb87e,_0x490849=_0x38b2b6[_0x215df0];if('paginationLicenseKeyValid'==_0x490849||'paginationLicenseKeyInvalid'==_0x490849||'paginationLicenseKeyExpired'==_0x490849||'paginationLicenseKeyDomainLimit'==_0x490849||'paginationLicenseKeyNotAllowed'==_0x490849||'paginationLicenseKeyEvaluationLimit'==_0x490849||'paginationLicenseKeyUsageLimit'==_0x490849){delete _0x38b2b6[_0x215df0],_0x1b0329=_0x490849,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x1b0329&&_0x38b2b6['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x1b0329&&_0x38b2b6['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x1b0329&&_0x38b2b6['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x1b0329&&_0x38b2b6['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x1b0329&&_0x38b2b6['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x1b0329&&_0x38b2b6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x531305){if(!this['isEnabled'])return;this['editor']['plugins']['get']($)['scrollToPage'](this['_validatePageNumber'](_0x531305));}['moveSelectionToPage'](_0xcfe779){if(!this['isEnabled'])return;const _0x29111b=this['editor'],_0x37ef75=this['editor']['plugins']['get'](w)['pageBreaks'][_0xcfe779-0x1];_0x37ef75&&_0x29111b['model']['change'](_0x1b2a49=>{switch(_0x37ef75['type']){case'manual':{const _0x4b043b=_0x29111b['model']['schema']['getNearestSelectionRange'](_0x37ef75['modelRange']['end'],'forward');_0x1b2a49['setSelection'](_0x4b043b);break;}case'element':{const _0x5bbe04=_0x29111b['model']['schema']['getNearestSelectionRange'](_0x37ef75['modelRange']['start'],'forward');_0x1b2a49['setSelection'](_0x5bbe04);break;}case'text':{const _0x2b4dfa=_0x37ef75['modelRange']['start'];if(_0x2b4dfa['textNode']&&'\x20'===_0x2b4dfa['textNode']['data'][_0x2b4dfa['offset']]){const _0x77113a=_0x1b2a49['createPositionAt'](_0x2b4dfa['parent'],_0x2b4dfa['offset']+0x1);_0x1b2a49['setSelection'](_0x77113a);}else _0x1b2a49['setSelection'](_0x37ef75['modelRange']);}}_0x29111b['editing']['view']['focus']();});}['goToNextPage'](){const _0x53569a=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x53569a),this['scrollToPage'](_0x53569a);}['goToPreviousPage'](){const _0x5a815e=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x5a815e),this['scrollToPage'](_0x5a815e);}['_updatePageBreakMarkers'](_0x3f80c3,_0x10cea7){const _0x41db89=this['editor']['model'];this['isEnabled']&&_0x41db89['change'](_0x1618e4=>{for(let _0x47efb5=0x1;_0x47efb5<_0x3f80c3['length'];_0x47efb5++){const _0x400539=_0x3f80c3[_0x47efb5]['modelRange'],_0x4fd9cd='pagination:'+(_0x47efb5+0x1);_0x41db89['markers']['has'](_0x4fd9cd)?_0x1618e4['updateMarker'](_0x4fd9cd,{'range':_0x400539}):_0x1618e4['addMarker'](_0x4fd9cd,{'range':_0x400539,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x21f4ac=_0x3f80c3['length'];_0x21f4ac<_0x10cea7['length'];_0x21f4ac++){const _0x120128='pagination:'+(_0x21f4ac+0x1);_0x41db89['markers']['has'](_0x120128)&&_0x1618e4['removeMarker'](_0x120128);}});}['_setUpDataDowncastConversion'](){const _0x2a92ff='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x11d118=>{_0x11d118['on']('addMarker:'+_0x2a92ff,(_0x1c3425,{markerRange:_0xb947bf,markerName:_0xcaf7b6},_0x2fb274)=>{if(!_0x2fb274['options']['pagination'])return;if(!_0x2fb274['consumable']['consume'](_0xb947bf,_0x1c3425['name']))return;const _0x5de5c9=_0xb947bf['getContainedElement']();let _0x19fbd6=_0x5de5c9?_0x2fb274['mapper']['toViewElement'](_0x5de5c9):null;if(!_0x19fbd6){const _0x274858=_0xb947bf['start'];if(_0x2fb274['schema']['checkChild'](_0x274858,'$text')){const _0x207b0f=_0x2fb274['mapper']['toViewPosition'](_0x274858);_0x19fbd6=_0x2fb274['writer']['createContainerElement']('span'),_0x19fbd6['getFillerOffset']=()=>null,_0x2fb274['writer']['insert'](_0x207b0f,_0x19fbd6);}else{const _0x529199=_0x274858['nodeAfter'];_0x19fbd6=_0x2fb274['mapper']['toViewElement'](_0x529199);}}for(;_0x19fbd6['parent']!==_0x19fbd6['root']&&0x0===_0x19fbd6['index'];)_0x19fbd6=_0x19fbd6['parent'];const _0x4fce3f=_0xcaf7b6['substring'](0xb);_0x19fbd6['hasClass']('page-break')||(_0x2fb274['writer']['setStyle']('page-break-before','always',_0x19fbd6),_0x2fb274['writer']['setAttribute']('data-pagination-page',_0x4fce3f,_0x19fbd6),_0x2fb274['mapper']['bindElementToMarker'](_0x19fbd6,_0xcaf7b6)),_0x1c3425['stop']();});});}['_setupKeystrokes'](){const _0x382b45=this['editor'];_0x382b45['keystrokes']['set']('Shift+Pageup',(_0x158908,_0x2e99b1)=>{this['goToPreviousPage'](),_0x2e99b1();}),_0x382b45['keystrokes']['set']('Shift+Pagedown',(_0x2f3b3a,_0x340db6)=>{this['goToNextPage'](),_0x340db6();}),_0x382b45['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':G(_0x382b45['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':G(_0x382b45['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':G(_0x382b45['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x4edf21){return _0x4edf21<0x1&&(_0x4edf21=0x1),_0x4edf21>this['totalPages']&&(_0x4edf21=this['totalPages']),_0x4edf21;}}class U extends _0x16070c{['pageNumberView'];constructor(_0x3b7722){super(_0x3b7722);const _0xbd880d=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x3f41cc(_0x3b7722,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x1015f0=>G(_0x3b7722,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x1015f0)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x4aa1d5=>!_0x4aa1d5),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0xbd880d['if']('isEnabled','ck-disabled',_0x23187a=>!_0x23187a)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0xbd880d['to']('totalPages')}]}]});}['render'](){super['render']();const _0x414a83=this['pageNumberView']['element'],_0xd47233=_0x10186a=>{this['pageNumberView']['element']['value']=String(_0x10186a);};_0xd47233(this['pageNumber']),this['on']('change:pageNumber',(_0x2b8600,_0x41fd1b,_0x43d357)=>{_0xd47233(_0x43d357);}),this['listenTo'](_0x414a83,'keydown',(_0x1f8ea7,_0x33cd27)=>{if('ArrowUp'===_0x33cd27['key']||'ArrowDown'===_0x33cd27['key'])return void _0x33cd27['stopPropagation']();if(_0x33cd27['keyCode']!==_0x1c89d6['enter'])return;_0x33cd27['preventDefault']();const _0xa7fe2=_0x414a83['valueAsNumber'];Number['isNaN'](_0xa7fe2)?_0x414a83['value']=String(this['pageNumber']):(_0x414a83['checkValidity']()?this['pageNumber']=_0xa7fe2:_0xa7fe2>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x414a83['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x414a83['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x414a83,'blur',()=>{_0x414a83['value']=String(this['pageNumber']);}),this['listenTo'](_0x414a83,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class M extends _0x526e0a{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x161c92=this['editor'],_0x45ca3c=_0x161c92['plugins']['get']('PaginationEditing');_0x161c92['ui']['componentFactory']['add']('pageNavigation',_0x5a9a73=>{const _0x30d3b9=new U(_0x5a9a73);return _0x30d3b9['bind']('pageNumber')['to'](_0x45ca3c),_0x30d3b9['bind']('totalPages')['to'](_0x45ca3c),_0x30d3b9['bind']('isEnabled')['to'](_0x45ca3c),_0x30d3b9['on']('navigation',(_0x396068,_0x39f550)=>{_0x45ca3c['moveSelectionToPage'](_0x39f550),_0x45ca3c['scrollToPage'](_0x39f550);}),_0x30d3b9;}),_0x161c92['ui']['componentFactory']['add']('nextPage',_0x5ab848=>{const _0x459f91=new _0x1f3cd6(_0x5ab848);return _0x459f91['isEnabled']=!0x0,_0x459f91['label']=G(_0x161c92['locale'],'Go\x20to\x20next\x20page'),_0x459f91['icon']=_0x343159,_0x459f91['tooltip']=!0x0,_0x459f91['keystroke']='Shift+PageDown',_0x459f91['bind']('isEnabled')['to'](_0x45ca3c),this['listenTo'](_0x459f91,'execute',()=>{_0x45ca3c['goToNextPage']();}),_0x459f91;}),_0x161c92['ui']['componentFactory']['add']('previousPage',_0xaeabd6=>{const _0x25a8aa=new _0x1f3cd6(_0xaeabd6);return _0x25a8aa['isEnabled']=!0x0,_0x25a8aa['label']=G(_0x161c92['locale'],'Go\x20to\x20previous\x20page'),_0x25a8aa['icon']=_0x2418c9,_0x25a8aa['tooltip']=!0x0,_0x25a8aa['keystroke']='Shift+PageUp',_0x25a8aa['bind']('isEnabled')['to'](_0x45ca3c),this['listenTo'](_0x25a8aa,'execute',()=>{_0x45ca3c['goToPreviousPage']();}),_0x25a8aa;});}}class j extends _0x526e0a{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C,M];}constructor(_0x3bd559){super(_0x3bd559),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x59724b=this['editor']['plugins']['get'](C);this['bind']('pageNumber')['to'](_0x59724b),this['bind']('totalPages')['to'](_0x59724b),_0x45a398['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0xebf5c6){this['editor']['plugins']['get'](C)['scrollToPage'](_0xebf5c6);}}export{j as Pagination,$ as PaginationRenderer};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-pagination",
|
|
3
|
-
"version": "48.1.0-alpha.
|
|
3
|
+
"version": "48.1.0-alpha.5",
|
|
4
4
|
"description": "Pagination feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@ckeditor/ckeditor5-core": "48.1.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.
|
|
24
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.5",
|
|
26
|
+
"@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
|
|
28
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.5",
|
|
29
29
|
"es-toolkit": "1.45.1"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|