@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250212.0 → 0.0.0-nightly-20250212.0
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/build/uploadcare.js +1 -1
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +3 -3
- package/package.json +8 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +6 -2
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +4 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
- package/theme/icons/dropbox.svg +11 -0
- package/theme/icons/error.svg +1 -0
- package/theme/icons/facebook.svg +11 -0
- package/theme/icons/google-drive.svg +11 -0
- package/theme/icons/google-photos.svg +11 -0
- package/theme/icons/image-upload.svg +11 -0
- package/theme/icons/instagram.svg +11 -0
- package/theme/icons/link.svg +11 -0
- package/theme/icons/local.svg +11 -0
- package/theme/icons/onedrive.svg +11 -0
- package/theme/icons/uploadcare-image-edit.svg +11 -0
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x508c(){const _0x2be388=['querySelector','destroy','6iDXKvR','href','render','input[uploadcare-file-input]','pluginName','afterInit','downcast','body','attributeToAttribute','imageInline','270BxpnNR','requires','getAttribute','remove','cleanupImage','uploadcareImageReplace','once','4102272JwXIeV','810331kGMGwF','_configElement','commands','config','364299DMAyxO','add','8239532fFjrQy','ctxElement','document','isPremiumPlugin','schema','extend','20AmTpjT','editor','uc-upload-ctx-provider','conversion','uploadcare.uploader','true','model','fromCharCode','upcast','editing','_initSchema','_initImageProcessingIndicator','view','listenTo','init','get','_initConfig','uc-config','selection','2691460AsHsJL','uploadcareImageId','8371040FodZdV','data-uc-image-id','isRegistered','307917bKzKWt','#uc-icon-arrow-down','for','map','closeMax','elementToAttribute','join','_initCtx','uploadcare','replaceImageSource','insertImage','locale','_initConversion','execute','imageBlock','UploadcareEditing','appendChild','contentLanguage','getSelectedElement','removeAttribute','_ctxElement','iconHrefResolver','configElement','isOfficialPlugin','uploader','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','PictureEditing','uploadcare.pubkey'];_0x508c=function(){return _0x2be388;};return _0x508c();}const _0x324a93=_0x1848;(function(_0x4e5efb,_0x39b758){const _0x1cd6cd=_0x1848,_0x10aa9e=_0x4e5efb();while(!![]){try{const _0x327d76=-parseInt(_0x1cd6cd(0x16b))/0x1+parseInt(_0x1cd6cd(0x177))/0x2*(-parseInt(_0x1cd6cd(0x16f))/0x3)+-parseInt(_0x1cd6cd(0x16a))/0x4+parseInt(_0x1cd6cd(0x18a))/0x5+-parseInt(_0x1cd6cd(0x1ad))/0x6*(-parseInt(_0x1cd6cd(0x171))/0x7)+parseInt(_0x1cd6cd(0x18c))/0x8+-parseInt(_0x1cd6cd(0x18f))/0x9*(-parseInt(_0x1cd6cd(0x163))/0xa);if(_0x327d76===_0x39b758)break;else _0x10aa9e['push'](_0x10aa9e['shift']());}catch(_0x50c2b0){_0x10aa9e['push'](_0x10aa9e['shift']());}}}(_0x508c,0x9b186));import{Plugin as _0x5e8f12}from'ckeditor5/src/core.js';import{Dialog as _0x3c6fe8}from'ckeditor5/src/ui.js';import{createElement as _0x48c5f4,global as _0x3b804d,uid as _0x295b5d}from'ckeditor5/src/utils.js';import _0x38698e from'./uploadcarecommand.js';function _0x1848(_0x1d94be,_0x5a7ff0){const _0x508ce8=_0x508c();return _0x1848=function(_0x18487b,_0x3f1c86){_0x18487b=_0x18487b-0x160;let _0x261084=_0x508ce8[_0x18487b];return _0x261084;},_0x1848(_0x1d94be,_0x5a7ff0);}import _0x230c64 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3776bc}from'./utils/editingutils.js';export default class i extends _0x5e8f12{[_0x324a93(0x16c)]=null;[_0x324a93(0x1a3)]=null;static get[_0x324a93(0x1b1)](){const _0x116423=_0x324a93;return _0x116423(0x19e);}static get[_0x324a93(0x164)](){const _0x4cdbd5=_0x324a93;return[_0x4cdbd5(0x1a9),_0x230c64,_0x3c6fe8];}static get[_0x324a93(0x1a6)](){return!0x0;}static get[_0x324a93(0x174)](){return!0x0;}get[_0x324a93(0x1a5)](){const _0x1d9716=_0x324a93;return this[_0x1d9716(0x16c)];}get[_0x324a93(0x172)](){const _0xf9896d=_0x324a93;return this[_0xf9896d(0x1a3)];}[_0x324a93(0x185)](){const _0x370f3e=_0x324a93,_0x192e39=this[_0x370f3e(0x178)];_0x192e39[_0x370f3e(0x16d)][_0x370f3e(0x170)](_0x370f3e(0x197),new _0x38698e(_0x192e39));}[_0x324a93(0x1b2)](){const _0x25cb27=_0x324a93;this[_0x25cb27(0x181)](),this[_0x25cb27(0x19b)](),this[_0x25cb27(0x187)](),this[_0x25cb27(0x196)](),this[_0x25cb27(0x182)](),this[_0x25cb27(0x184)](this[_0x25cb27(0x178)],_0x25cb27(0x1ac),()=>{const _0x3b4110=_0x25cb27;this[_0x3b4110(0x16c)]&&(this[_0x3b4110(0x16c)][_0x3b4110(0x166)](),this[_0x3b4110(0x16c)]=null),this[_0x3b4110(0x1a3)]&&(this[_0x3b4110(0x1a3)][_0x3b4110(0x166)](),this[_0x3b4110(0x1a3)]=null);const _0xf53d5f=_0x3b804d[_0x3b4110(0x173)][_0x3b4110(0x1ab)](_0x3b4110(0x1b0));_0xf53d5f&&_0xf53d5f[_0x3b4110(0x166)]();}),async function(_0x58f95c){const _0xa2d73a=_0x12f294([0x51,0x47,0x38,0x57,0x4f,0x46,0x6e,0x36,0x77,0x7a,0x56,0x55,0x6d,0x42,0x48,0x70,0x75,0x6f,0x41,0x44,0x76,0x37,0x67,0x4d,0x73,0x64,0x63,0x4a,0x4b,0x61,0x49,0x58,0x5a,0x39,0x50,0x71,0x68,0x69,0x74,0x6a,0x6c,0x45,0x32,0x78,0x65,0x35,0x4c,0x52,0x54,0x72,0x33,0x66,0x59,0x6b,0x30,0x43,0x79,0x4e,0x34,0x53,0x31,0x62]),_0x4955f2=0x114ca2e9,_0xbaa55f=0x114bfda1^_0x4955f2,_0x4d9b3d=window[_0x12f294([0x44,0x61,0x74,0x65])][_0x12f294([0x6e,0x6f,0x77])](),_0x1f6035=_0x58f95c[_0x12f294([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x262ed3=new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5c3d=>{_0x1f6035[_0x12f294([0x6f,0x6e,0x63,0x65])](_0x12f294([0x72,0x65,0x61,0x64,0x79]),_0x5c5c3d);}),_0x3f5054={[_0x12f294([0x6b,0x74,0x79])]:_0x12f294([0x45,0x43]),[_0x12f294([0x75,0x73,0x65])]:_0x12f294([0x73,0x69,0x67]),[_0x12f294([0x63,0x72,0x76])]:_0x12f294([0x50,0x2d,0x32,0x35,0x36]),[_0x12f294([0x78])]:_0x12f294([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]),[_0x12f294([0x79])]:_0x12f294([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]),[_0x12f294([0x61,0x6c,0x67])]:_0x12f294([0x45,0x53,0x32,0x35,0x36])},_0xbfcdbb=_0x1f6035[_0x12f294([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12f294([0x67,0x65,0x74])](_0x12f294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x369246(){let _0x43a255,_0x1fc417=null,_0x1a7c11=null;try{if(_0xbfcdbb==_0x12f294([0x47,0x50,0x4c]))return _0x12f294([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43a255=_0x4a9920(),!_0x43a255)return _0x12f294([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43a255[_0x12f294([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a7c11=_0x43aaa3(_0x43a255[_0x12f294([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43a255[_0x12f294([0x6a,0x74,0x69])])),await _0x892798()?_0x15956a()?_0xb99d66()?_0x12f294([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3045de()?(_0x43a255[_0x12f294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12f294([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fc417=_0x19f3ff(_0x12f294([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43a255[_0x12f294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12f294([0x74,0x72,0x69,0x61,0x6c])&&(_0x1fc417=_0x19f3ff(_0x12f294([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x561fb0()):_0x12f294([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12f294([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12f294([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x332259){return _0x12f294([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb99d66(){const _0xf58787=[_0x12f294([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12f294([0x74,0x72,0x69,0x61,0x6c])][_0x12f294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43a255[_0x12f294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d9b3d/0x3e8:0xe10*_0xbaa55f;return _0x43a255[_0x12f294([0x65,0x78,0x70])]<_0xf58787;}function _0x15956a(){const _0x1fc29e=_0x43a255[_0x12f294([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1fc29e&&(!!_0x1fc29e[_0x12f294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f294([0x2a]))||!!_0x1fc29e[_0x12f294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f294([0x55,0x50,0x4c,0x43])));}function _0x3045de(){const _0x26bd0f=_0x1848,_0xfc14c5=_0x43a255[_0x12f294([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfc14c5||0x0==_0xfc14c5[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x285f16}=new URL(window[_0x12f294([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x26bd0f(0x1ae)]);if(_0xfc14c5[_0x12f294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x285f16))return!0x0;const _0x126b33=_0x285f16[_0x12f294([0x73,0x70,0x6c,0x69,0x74])](_0x12f294([0x2e]));return _0xfc14c5[_0x12f294([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9adcaa=>_0x9adcaa[_0x12f294([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f294([0x2a])))[_0x12f294([0x6d,0x61,0x70])](_0x375e71=>_0x375e71[_0x12f294([0x73,0x70,0x6c,0x69,0x74])](_0x12f294([0x2e])))[_0x12f294([0x73,0x6f,0x6d,0x65])](_0x5d2787=>_0x126b33[_0x12f294([0x65,0x76,0x65,0x72,0x79])]((_0x21a2eb,_0x29f545)=>_0x5d2787[_0x29f545]===_0x21a2eb||_0x5d2787[_0x29f545]===_0x12f294([0x2a])));}function _0x561fb0(){return _0x1fc417&&_0x1a7c11?new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x429d14,_0x3809e6)=>{_0x1fc417[_0x12f294([0x74,0x68,0x65,0x6e])](_0x429d14,_0x3809e6),_0x1a7c11[_0x12f294([0x74,0x68,0x65,0x6e])](_0x19ee07=>{_0x19ee07!=_0x12f294([0x56,0x61,0x6c,0x69,0x64])&&_0x429d14(_0x19ee07);},_0x3809e6);}):_0x1fc417||_0x1a7c11||_0x12f294([0x56,0x61,0x6c,0x69,0x64]);}}function _0x43aaa3(_0x19d2c5,_0x4a3c78){return new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32c7de=>{if(_0x8d2cd6())return _0x32c7de(_0x12f294([0x56,0x61,0x6c,0x69,0x64]));_0x42da94(),_0x1f6035[_0x12f294([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12f294([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x468333=!0x1;const _0xfb9990=_0x295b5d();function _0x3a352f(_0x3026c9){return!!_0x3026c9&&(typeof _0x3026c9===_0x12f294([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3026c9===_0x12f294([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3026c9[_0x12f294([0x74,0x68,0x65,0x6e])]===_0x12f294([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3026c9[_0x12f294([0x63,0x61,0x74,0x63,0x68])]===_0x12f294([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25af0a(_0x10f506){_0x547c23(_0x10f506)[_0x12f294([0x74,0x68,0x65,0x6e])](_0x2c58b5=>{if(!_0x2c58b5||_0x2c58b5[_0x12f294([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12f294([0x6f,0x6b]))return _0x12f294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x81ef8a(_0x32d804(_0xfb9990+_0x4a3c78))!=_0x2c58b5[_0x12f294([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12f294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12f294([0x56,0x61,0x6c,0x69,0x64]);})[_0x12f294([0x74,0x68,0x65,0x6e])](_0x513843=>(_0xf6f913(),_0x513843),()=>{const _0x35e68c=_0x29d835();return null==_0x35e68c?(_0xf6f913(),_0x12f294([0x56,0x61,0x6c,0x69,0x64])):_0x12f294(_0x4d9b3d-_0x35e68c>(0x354026e9^_0x4955f2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12f294([0x74,0x68,0x65,0x6e])](_0x32c7de)[_0x12f294([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32c7de(_0x12f294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4709f2=0x117a4c69^_0x4955f2;function _0xf6f913(){const _0x183316=_0x12f294([0x6c,0x6c,0x63,0x74,0x2d])+_0x81ef8a(_0x32d804(_0x19d2c5)),_0x29a579=_0x441dba(_0x81ef8a(window[_0x12f294([0x4d,0x61,0x74,0x68])][_0x12f294([0x63,0x65,0x69,0x6c])](_0x4d9b3d/_0x4709f2)));window[_0x12f294([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12f294([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x183316,_0x29a579);}function _0x29d835(){const _0x215e24=_0x12f294([0x6c,0x6c,0x63,0x74,0x2d])+_0x81ef8a(_0x32d804(_0x19d2c5)),_0x346d8d=window[_0x12f294([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12f294([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x215e24);return _0x346d8d?window[_0x12f294([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x441dba(_0x346d8d),0x10)*_0x4709f2:null;}function _0x547c23(_0x3b342b){return new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37a286,_0x2d81a3)=>{_0x3b342b[_0x12f294([0x74,0x68,0x65,0x6e])](_0x37a286,_0x2d81a3),window[_0x12f294([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d81a3,0x114d7629^_0x4955f2);});}}_0x1f6035[_0x12f294([0x6f,0x6e])](_0x12f294([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c2bff,_0x5d2543)=>{if(_0x5d2543[0x0]!=_0x19d2c5)return _0x32c7de(_0x12f294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d2543[0x1]={..._0x5d2543[0x1],[_0x12f294([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfb9990};},{[_0x12f294([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12f294([0x68,0x69,0x67,0x68])}),_0x1f6035[_0x12f294([0x6f,0x6e])](_0x12f294([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x519a4e=>{_0x3a352f(_0x519a4e[_0x12f294([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x468333=!0x0,_0x25af0a(_0x519a4e[_0x12f294([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12f294([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12f294([0x6c,0x6f,0x77])}),_0x262ed3[_0x12f294([0x74,0x68,0x65,0x6e])](()=>{_0x468333||_0x32c7de(_0x12f294([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8d2cd6(){return _0x1f6035[_0x12f294([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12f294([0x76,0x69,0x65,0x77])][_0x12f294([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12f294([0x61,0x75,0x74,0x6f]);}function _0x42da94(){_0x1f6035[_0x12f294([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12f294([0x76,0x69,0x65,0x77])][_0x12f294([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12f294([0x61,0x75,0x74,0x6f]);}}function _0x19f3ff(_0x3d1477){const _0x3bed8d=[new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37273e=>setTimeout(_0x37273e,0x11459c25^_0x4955f2)),_0x262ed3[_0x12f294([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd2a0=>{let _0x2ab5e3=0x0;_0x1f6035[_0x12f294([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f294([0x6f,0x6e])](_0x12f294([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32c33e,_0xfebf33)=>{_0xfebf33[0x0][_0x12f294([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ab5e3++,_0x2ab5e3==(0x114ca311^_0x4955f2)&&(_0x4dd2a0(),_0x32c33e[_0x12f294([0x6f,0x66,0x66])]());});}))];return window[_0x12f294([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12f294([0x72,0x61,0x63,0x65])](_0x3bed8d)[_0x12f294([0x74,0x68,0x65,0x6e])](()=>_0x3d1477);}async function _0x2c95e2(){await _0x262ed3,_0x1f6035[_0x12f294([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f294([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a8bff,_0x1f6035[_0x12f294([0x6d,0x6f,0x64,0x65,0x6c])][_0x12f294([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a8bff,_0x1f6035[_0x12f294([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12f294([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34dd5f(_0x1f91dd){const _0x27a7c6=_0x7c5129();_0x1f6035[_0x27a7c6]=_0x12f294([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f91dd,_0x1f91dd!=_0x12f294([0x56,0x61,0x6c,0x69,0x64])&&_0x2c95e2();}function _0x7c5129(){const _0x3f6d19=window[_0x12f294([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12f294([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12f294([0x6e,0x6f,0x77])]())[_0x12f294([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12f294([0x2e]),'');let _0x29115b=_0x12f294([0x51]);for(let _0x1831e7=0x0;_0x1831e7<_0x3f6d19[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1831e7+=0x2){let _0x3845ff=window[_0x12f294([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f6d19[_0x12f294([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1831e7,_0x1831e7+0x2));_0x3845ff>=_0xa2d73a[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3845ff-=_0xa2d73a[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29115b+=_0xa2d73a[_0x3845ff];}return _0x29115b;}function _0x4a9920(){const _0x323325=_0xbfcdbb[_0x12f294([0x73,0x70,0x6c,0x69,0x74])](_0x12f294([0x2e]));if(0x3!=_0x323325[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1613a9(_0x323325[0x1]);function _0x1613a9(_0x3524d8){const _0x4e9240=_0x42f16b(_0x3524d8);return _0x4e9240&&_0x3083ee()?_0x4e9240:null;function _0x3083ee(){const _0x2c4fed=_0x4e9240[_0x12f294([0x6a,0x74,0x69])],_0x5c9f21=window[_0x12f294([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c4fed[_0x12f294([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c4fed[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f1e51={..._0x4e9240,[_0x12f294([0x6a,0x74,0x69])]:_0x2c4fed[_0x12f294([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c4fed[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f1e51[_0x12f294([0x76,0x63])],_0x32d804(_0x4f1e51)==_0x5c9f21;}}}async function _0x892798(){let _0x2d4631=!0x0;try{const _0x11c242=_0xbfcdbb[_0x12f294([0x73,0x70,0x6c,0x69,0x74])](_0x12f294([0x2e])),[_0x31e698,_0x92f366,_0x1477ce]=_0x11c242;return _0x3916d4(_0x31e698),await _0x34a0f5(_0x31e698,_0x92f366,_0x1477ce),_0x2d4631;}catch(_0x4c70e1){return!0x1;}function _0x3916d4(_0x1f4303){const _0x3b88c8=_0x42f16b(_0x1f4303);_0x3b88c8&&_0x3b88c8[_0x12f294([0x61,0x6c,0x67])]==_0x12f294([0x45,0x53,0x32,0x35,0x36])||(_0x2d4631=!0x1);}async function _0x34a0f5(_0x18a568,_0x196fcd,_0x3c2e7a){const _0xb10a2f=window[_0x12f294([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12f294([0x66,0x72,0x6f,0x6d])](_0x323542(_0x3c2e7a),_0x31a363=>_0x31a363[_0x12f294([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x301823=new window[(_0x12f294([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12f294([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18a568+_0x12f294([0x2e])+_0x196fcd),_0x4b1c6d=window[_0x12f294([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12f294([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b1c6d)return;const _0x5aa759=await _0x4b1c6d[_0x12f294([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12f294([0x6a,0x77,0x6b]),_0x3f5054,{[_0x12f294([0x6e,0x61,0x6d,0x65])]:_0x12f294([0x45,0x43,0x44,0x53,0x41]),[_0x12f294([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12f294([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12f294([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b1c6d[_0x12f294([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12f294([0x6e,0x61,0x6d,0x65])]:_0x12f294([0x45,0x43,0x44,0x53,0x41]),[_0x12f294([0x68,0x61,0x73,0x68])]:{[_0x12f294([0x6e,0x61,0x6d,0x65])]:_0x12f294([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5aa759,_0xb10a2f,_0x301823)||(_0x2d4631=!0x1);}}function _0x42f16b(_0x3cbec5){return _0x3cbec5[_0x12f294([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12f294([0x65,0x79]))?JSON[_0x12f294([0x70,0x61,0x72,0x73,0x65])](_0x323542(_0x3cbec5)):null;}function _0x323542(_0x19e85e){return window[_0x12f294([0x61,0x74,0x6f,0x62])](_0x19e85e[_0x12f294([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12f294([0x2b]))[_0x12f294([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12f294([0x2f])));}function _0x32d804(_0x25d974){let _0xd97859=0x1505;function _0x4d9071(_0x238b82){for(let _0x250b90=0x0;_0x250b90<_0x238b82[_0x12f294([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x250b90++){const _0x4794dd=_0x238b82[_0x12f294([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x250b90);_0xd97859=(_0xd97859<<0x5)+_0xd97859+_0x4794dd,_0xd97859&=_0xd97859;}}function _0x1d1fc2(_0x591581){Array[_0x12f294([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x591581)?_0x591581[_0x12f294([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d1fc2):_0x591581&&typeof _0x591581==_0x12f294([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12f294([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x591581)[_0x12f294([0x73,0x6f,0x72,0x74])]()[_0x12f294([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32f9eb,_0x310cfc])=>{_0x4d9071(_0x32f9eb),_0x1d1fc2(_0x310cfc);}):_0x4d9071(window[_0x12f294([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x591581));}return _0x1d1fc2(_0x25d974),_0xd97859>>>0x0;}function _0x81ef8a(_0x166fe8){return _0x166fe8[_0x12f294([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12f294([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12f294([0x30]));}function _0x441dba(_0x3e1f96){return _0x3e1f96[_0x12f294([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12f294([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12f294([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a8bff(){}function _0x12f294(_0x52cf90){const _0x1eb1cf=_0x1848;return _0x52cf90[_0x1eb1cf(0x192)](_0x334b40=>String[_0x1eb1cf(0x17e)](_0x334b40))[_0x1eb1cf(0x195)]('');}_0x34dd5f(await _0x369246());}(this);}[_0x324a93(0x181)](){const _0x1ab3a8=_0x324a93,_0x1baa51=this[_0x1ab3a8(0x178)][_0x1ab3a8(0x17d)][_0x1ab3a8(0x175)];_0x1baa51[_0x1ab3a8(0x18e)](_0x1ab3a8(0x19d))&&_0x1baa51[_0x1ab3a8(0x176)](_0x1ab3a8(0x19d),{'allowAttributes':[_0x1ab3a8(0x18b)]}),_0x1baa51[_0x1ab3a8(0x18e)](_0x1ab3a8(0x162))&&_0x1baa51[_0x1ab3a8(0x176)](_0x1ab3a8(0x162),{'allowAttributes':[_0x1ab3a8(0x18b)]});}[_0x324a93(0x19b)](){const _0x315526=_0x324a93,_0x3e92b7=this[_0x315526(0x178)];_0x3e92b7[_0x315526(0x17a)][_0x315526(0x191)](_0x315526(0x1b3))[_0x315526(0x161)]({'model':_0x315526(0x18b),'view':_0x315526(0x18d)}),_0x3e92b7[_0x315526(0x17a)][_0x315526(0x191)](_0x315526(0x17f))[_0x315526(0x194)]({'model':{'key':_0x315526(0x18b),'value':_0x1600bf=>_0x1600bf[_0x315526(0x165)](_0x315526(0x18d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57c7f5=_0x3e92b7[_0x315526(0x16d)][_0x315526(0x186)](_0x315526(0x198));_0x57c7f5&&this[_0x315526(0x184)](_0x57c7f5,_0x315526(0x167),(_0x223bb1,[_0x13f2a9,_0x4b954c])=>{const _0x586150=_0x315526;_0x13f2a9[_0x586150(0x1a2)](_0x586150(0x18b),_0x4b954c);});}[_0x324a93(0x187)](){const _0x5a3a57=_0x324a93,_0x5a48f1=this[_0x5a3a57(0x178)][_0x5a3a57(0x16e)][_0x5a3a57(0x186)](_0x5a3a57(0x17b))||{},_0x44921d=this[_0x5a3a57(0x178)][_0x5a3a57(0x16e)][_0x5a3a57(0x186)](_0x5a3a57(0x1aa))||'';this[_0x5a3a57(0x16c)]=_0x48c5f4(_0x3b804d[_0x5a3a57(0x173)],_0x5a3a57(0x188),{..._0x5a48f1,'pubkey':_0x44921d,'ctx-name':_0x5a3a57(0x1a7),'sourceList':'','imgOnly':_0x5a3a57(0x17c),'removeCopyright':_0x5a3a57(0x17c),'localeName':this[_0x5a3a57(0x178)][_0x5a3a57(0x19a)][_0x5a3a57(0x1a0)],'externalSourcesEmbedCss':_0x5a3a57(0x1a8)}),this[_0x5a3a57(0x16c)][_0x5a3a57(0x1a4)]=_0x45a97e=>{const _0x562e4b=_0x5a3a57;if(_0x562e4b(0x193)==_0x45a97e)return _0x562e4b(0x190);},_0x3b804d[_0x5a3a57(0x173)][_0x5a3a57(0x160)][_0x5a3a57(0x19f)](this[_0x5a3a57(0x16c)]);}[_0x324a93(0x196)](){const _0xf73b61=_0x324a93;this[_0xf73b61(0x1a3)]=_0x48c5f4(_0x3b804d[_0xf73b61(0x173)],_0xf73b61(0x179),{'ctx-name':_0xf73b61(0x1a7)}),_0x3b804d[_0xf73b61(0x173)][_0xf73b61(0x160)][_0xf73b61(0x19f)](this[_0xf73b61(0x1a3)]);}[_0x324a93(0x182)](){const _0x1c453f=_0x324a93,_0x51d2eb=this[_0x1c453f(0x178)][_0x1c453f(0x16d)][_0x1c453f(0x186)](_0x1c453f(0x199));_0x51d2eb&&this[_0x1c453f(0x184)](_0x51d2eb,_0x1c453f(0x19c),()=>{const _0x5021db=_0x1c453f,_0x332a14=this[_0x5021db(0x178)][_0x5021db(0x17d)][_0x5021db(0x173)][_0x5021db(0x189)][_0x5021db(0x1a1)]();_0x332a14&&_0x332a14[_0x5021db(0x165)](_0x5021db(0x18b))&&this[_0x5021db(0x178)][_0x5021db(0x180)][_0x5021db(0x183)][_0x5021db(0x169)](_0x5021db(0x1af),()=>{const _0x18bd1e=_0x5021db;_0x3776bc(this[_0x18bd1e(0x178)],_0x332a14);});});const _0x29d682=this[_0x1c453f(0x178)][_0x1c453f(0x16d)][_0x1c453f(0x186)](_0x1c453f(0x168));_0x29d682&&this[_0x1c453f(0x184)](_0x29d682,_0x1c453f(0x19c),()=>{const _0x260a30=_0x1c453f,_0x36c74e=this[_0x260a30(0x178)][_0x260a30(0x17d)][_0x260a30(0x173)][_0x260a30(0x189)][_0x260a30(0x1a1)]();_0x36c74e&&_0x36c74e[_0x260a30(0x165)](_0x260a30(0x18b))&&this[_0x260a30(0x178)][_0x260a30(0x180)][_0x260a30(0x183)][_0x260a30(0x169)](_0x260a30(0x1af),()=>{const _0x4b030d=_0x260a30;_0x3776bc(this[_0x4b030d(0x178)],_0x36c74e);});});}}
|
|
23
|
+
const _0x346cbb=_0x5013;(function(_0x35d560,_0x566cce){const _0x4350e7=_0x5013,_0x1d696b=_0x35d560();while(!![]){try{const _0x5d6b76=parseInt(_0x4350e7(0x1c7))/0x1*(-parseInt(_0x4350e7(0x1c3))/0x2)+-parseInt(_0x4350e7(0x19a))/0x3*(-parseInt(_0x4350e7(0x1a7))/0x4)+-parseInt(_0x4350e7(0x1bc))/0x5+-parseInt(_0x4350e7(0x19d))/0x6+parseInt(_0x4350e7(0x1a3))/0x7*(-parseInt(_0x4350e7(0x1c6))/0x8)+parseInt(_0x4350e7(0x1cb))/0x9*(parseInt(_0x4350e7(0x1b2))/0xa)+parseInt(_0x4350e7(0x195))/0xb;if(_0x5d6b76===_0x566cce)break;else _0x1d696b['push'](_0x1d696b['shift']());}catch(_0x1012f7){_0x1d696b['push'](_0x1d696b['shift']());}}}(_0x50e7,0x1e837));import{Plugin as _0xe1692}from'ckeditor5/src/core.js';import{Dialog as _0x7e5f98}from'ckeditor5/src/ui.js';import{createElement as _0x7dbbdc,global as _0x50b6a6,uid as _0x4dfc16}from'ckeditor5/src/utils.js';import _0xd74b81 from'./uploadcarecommand.js';function _0x5013(_0x5ca966,_0x52d2ff){const _0x50e79c=_0x50e7();return _0x5013=function(_0x5013e2,_0x48c6a7){_0x5013e2=_0x5013e2-0x17d;let _0xc65d21=_0x50e79c[_0x5013e2];return _0xc65d21;},_0x5013(_0x5ca966,_0x52d2ff);}function _0x50e7(){const _0x7bf66a=['init','_configElement','#uc-icon-arrow-down','UploadcareEditing','selection','locale','_initImageProcessingIndicator','uploadcare','href','uc-config','10870qXrgUu','_initCtx','requires','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','remove','once','_initConfig','iconHrefResolver','imageInline','removeAttribute','767160GUCoFB','true','body','data-uc-image-id','appendChild','closeMax','commands','8YCwkjt','conversion','listenTo','718784TMlEER','61633dBhLZD','PictureEditing','input[uploadcare-file-input]','isPremiumPlugin','1179hSbJkY','upcast','extend','uploadcare.uploader','for','attributeToAttribute','uploadcareImageId','get','getSelectedElement','model','editing','config','add','render','uploadcareImageReplace','contentLanguage','downcast','pluginName','view','imageBlock','insertImage','join','_initSchema','getAttribute','isRegistered','editor','destroy','querySelector','_ctxElement','_initConversion','configElement','4484898bJSJwI','uc-upload-ctx-provider','schema','map','execute','27AZBqNO','replaceImageSource','uploadcare.pubkey','302634QbCQNl','document','isOfficialPlugin','elementToAttribute','afterInit','ctxElement','7CXazEt','uploader','fromCharCode','cleanupImage','51164XQWYkM'];_0x50e7=function(){return _0x7bf66a;};return _0x50e7();}import _0x238623 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x39c014}from'./utils/editingutils.js';export default class i extends _0xe1692{constructor(){const _0x3506b4=_0x5013;super(...arguments),this[_0x3506b4(0x1a9)]=null,this[_0x3506b4(0x192)]=null;}static get[_0x346cbb(0x187)](){const _0x12d8d2=_0x346cbb;return _0x12d8d2(0x1ab);}static get[_0x346cbb(0x1b4)](){const _0x623755=_0x346cbb;return[_0x623755(0x1c8),_0x238623,_0x7e5f98];}static get[_0x346cbb(0x19f)](){return!0x0;}static get[_0x346cbb(0x1ca)](){return!0x0;}get[_0x346cbb(0x194)](){const _0x289286=_0x346cbb;return this[_0x289286(0x1a9)];}get[_0x346cbb(0x1a2)](){const _0x12bf96=_0x346cbb;return this[_0x12bf96(0x192)];}[_0x346cbb(0x1a8)](){const _0x9ced17=_0x346cbb,_0x555d29=this[_0x9ced17(0x18f)];_0x555d29[_0x9ced17(0x1c2)][_0x9ced17(0x182)](_0x9ced17(0x1af),new _0xd74b81(_0x555d29));}[_0x346cbb(0x1a1)](){const _0xcc6909=_0x346cbb;this[_0xcc6909(0x18c)](),this[_0xcc6909(0x193)](),this[_0xcc6909(0x1b8)](),this[_0xcc6909(0x1b3)](),this[_0xcc6909(0x1ae)](),this[_0xcc6909(0x1c5)](this[_0xcc6909(0x18f)],_0xcc6909(0x190),()=>{const _0x2257c8=_0xcc6909;this[_0x2257c8(0x1a9)]&&(this[_0x2257c8(0x1a9)][_0x2257c8(0x1b6)](),this[_0x2257c8(0x1a9)]=null),this[_0x2257c8(0x192)]&&(this[_0x2257c8(0x192)][_0x2257c8(0x1b6)](),this[_0x2257c8(0x192)]=null);const _0x2e244c=_0x50b6a6[_0x2257c8(0x19e)][_0x2257c8(0x191)](_0x2257c8(0x1c9));_0x2e244c&&_0x2e244c[_0x2257c8(0x1b6)]();}),async function(_0xd35935){const _0x717a88=_0x55ae2f([0x50,0x77,0x73,0x33,0x52,0x4f,0x53,0x45,0x42,0x4e,0x56,0x35,0x37,0x67,0x36,0x74,0x76,0x79,0x69,0x59,0x6a,0x31,0x7a,0x75,0x6f,0x61,0x6b,0x6c,0x5a,0x48,0x46,0x38,0x63,0x70,0x65,0x62,0x4b,0x49,0x72,0x6e,0x43,0x71,0x4a,0x39,0x34,0x47,0x30,0x68,0x4d,0x32,0x55,0x4c,0x41,0x57,0x58,0x6d,0x66,0x54,0x51,0x44,0x64,0x78]),_0x507f84=0x31ba59ee,_0x28f65c=0x31bd06a6^_0x507f84,_0x6f736c=window[_0x55ae2f([0x44,0x61,0x74,0x65])][_0x55ae2f([0x6e,0x6f,0x77])](),_0x380243=_0xd35935[_0x55ae2f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x584d79=new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149d9e=>{_0x380243[_0x55ae2f([0x6f,0x6e,0x63,0x65])](_0x55ae2f([0x72,0x65,0x61,0x64,0x79]),_0x149d9e);}),_0x44052c={[_0x55ae2f([0x6b,0x74,0x79])]:_0x55ae2f([0x45,0x43]),[_0x55ae2f([0x75,0x73,0x65])]:_0x55ae2f([0x73,0x69,0x67]),[_0x55ae2f([0x63,0x72,0x76])]:_0x55ae2f([0x50,0x2d,0x32,0x35,0x36]),[_0x55ae2f([0x78])]:_0x55ae2f([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]),[_0x55ae2f([0x79])]:_0x55ae2f([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]),[_0x55ae2f([0x61,0x6c,0x67])]:_0x55ae2f([0x45,0x53,0x32,0x35,0x36])},_0x2696de=_0x380243[_0x55ae2f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55ae2f([0x67,0x65,0x74])](_0x55ae2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2b2342(){let _0xcafb4b,_0x48f9a0=null,_0x3dc2d8=null;try{if(_0x2696de==_0x55ae2f([0x47,0x50,0x4c]))return _0x55ae2f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xcafb4b=_0x2797a7(),!_0xcafb4b)return _0x55ae2f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xcafb4b[_0x55ae2f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3dc2d8=_0x106fe7(_0xcafb4b[_0x55ae2f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xcafb4b[_0x55ae2f([0x6a,0x74,0x69])])),await _0x300755()?_0x59dc3c()?_0x239790()?_0x55ae2f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x83e91f()?(_0xcafb4b[_0x55ae2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55ae2f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48f9a0=_0x9daaee(_0x55ae2f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xcafb4b[_0x55ae2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55ae2f([0x74,0x72,0x69,0x61,0x6c])&&(_0x48f9a0=_0x9daaee(_0x55ae2f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x206b58()):_0x55ae2f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55ae2f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55ae2f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x822989){return _0x55ae2f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x239790(){const _0x423f51=[_0x55ae2f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55ae2f([0x74,0x72,0x69,0x61,0x6c])][_0x55ae2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcafb4b[_0x55ae2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6f736c/0x3e8:0xe10*_0x28f65c;return _0xcafb4b[_0x55ae2f([0x65,0x78,0x70])]<_0x423f51;}function _0x59dc3c(){const _0x47bab0=_0xcafb4b[_0x55ae2f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x47bab0&&(!!_0x47bab0[_0x55ae2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ae2f([0x2a]))||!!_0x47bab0[_0x55ae2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ae2f([0x55,0x50,0x4c,0x43])));}function _0x83e91f(){const _0x96479=_0x5013,_0x22e696=_0xcafb4b[_0x55ae2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22e696||0x0==_0x22e696[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42d4ab}=new URL(window[_0x55ae2f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x96479(0x1b0)]);if(_0x22e696[_0x55ae2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d4ab))return!0x0;const _0x32e1d7=_0x42d4ab[_0x55ae2f([0x73,0x70,0x6c,0x69,0x74])](_0x55ae2f([0x2e]));return _0x22e696[_0x55ae2f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x445e27=>_0x445e27[_0x55ae2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ae2f([0x2a])))[_0x55ae2f([0x6d,0x61,0x70])](_0x4ed931=>_0x4ed931[_0x55ae2f([0x73,0x70,0x6c,0x69,0x74])](_0x55ae2f([0x2e])))[_0x55ae2f([0x73,0x6f,0x6d,0x65])](_0x126ebf=>_0x32e1d7[_0x55ae2f([0x65,0x76,0x65,0x72,0x79])]((_0x2841da,_0x38fe40)=>_0x126ebf[_0x38fe40]===_0x2841da||_0x126ebf[_0x38fe40]===_0x55ae2f([0x2a])));}function _0x206b58(){return _0x48f9a0&&_0x3dc2d8?new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35658d,_0x859453)=>{_0x48f9a0[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x35658d,_0x859453),_0x3dc2d8[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x5a6a04=>{_0x5a6a04!=_0x55ae2f([0x56,0x61,0x6c,0x69,0x64])&&_0x35658d(_0x5a6a04);},_0x859453);}):_0x48f9a0||_0x3dc2d8||_0x55ae2f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x106fe7(_0x54d6e6,_0x538fb9){return new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1d20=>{if(_0x3edd60())return _0x5f1d20(_0x55ae2f([0x56,0x61,0x6c,0x69,0x64]));_0x32ad37(),_0x380243[_0x55ae2f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55ae2f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bf46f=!0x1;const _0x5802ee=_0x4dfc16();function _0x1d0c57(_0x520333){return!!_0x520333&&(typeof _0x520333===_0x55ae2f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x520333===_0x55ae2f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x520333[_0x55ae2f([0x74,0x68,0x65,0x6e])]===_0x55ae2f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x520333[_0x55ae2f([0x63,0x61,0x74,0x63,0x68])]===_0x55ae2f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x87fd26(_0x53159d){_0xb0add3(_0x53159d)[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x25d078=>{if(!_0x25d078||_0x25d078[_0x55ae2f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55ae2f([0x6f,0x6b]))return _0x55ae2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ccde1(_0x48e315(_0x5802ee+_0x538fb9))!=_0x25d078[_0x55ae2f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55ae2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55ae2f([0x56,0x61,0x6c,0x69,0x64]);})[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x4e88a6=>(_0x23ba6a(),_0x4e88a6),()=>{const _0x18514c=_0x4c7e55();return null==_0x18514c?(_0x23ba6a(),_0x55ae2f([0x56,0x61,0x6c,0x69,0x64])):_0x55ae2f(_0x6f736c-_0x18514c>(0x15b6ddee^_0x507f84)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x5f1d20)[_0x55ae2f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f1d20(_0x55ae2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x201213=0x318cb76e^_0x507f84;function _0x23ba6a(){const _0xe7c6be=_0x55ae2f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ccde1(_0x48e315(_0x54d6e6)),_0x77d506=_0x2de62e(_0x4ccde1(window[_0x55ae2f([0x4d,0x61,0x74,0x68])][_0x55ae2f([0x63,0x65,0x69,0x6c])](_0x6f736c/_0x201213)));window[_0x55ae2f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55ae2f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe7c6be,_0x77d506);}function _0x4c7e55(){const _0x4ebae2=_0x55ae2f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ccde1(_0x48e315(_0x54d6e6)),_0x5cfc76=window[_0x55ae2f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55ae2f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ebae2);return _0x5cfc76?window[_0x55ae2f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2de62e(_0x5cfc76),0x10)*_0x201213:null;}function _0xb0add3(_0x5e45f9){return new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c1b0d,_0x380851)=>{_0x5e45f9[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x2c1b0d,_0x380851),window[_0x55ae2f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x380851,0x31bb8d2e^_0x507f84);});}}_0x380243[_0x55ae2f([0x6f,0x6e])](_0x55ae2f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1500f7,_0x4cd43d)=>{if(_0x4cd43d[0x0]!=_0x54d6e6)return _0x5f1d20(_0x55ae2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4cd43d[0x1]={..._0x4cd43d[0x1],[_0x55ae2f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5802ee};},{[_0x55ae2f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55ae2f([0x68,0x69,0x67,0x68])}),_0x380243[_0x55ae2f([0x6f,0x6e])](_0x55ae2f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1884ab=>{_0x1d0c57(_0x1884ab[_0x55ae2f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bf46f=!0x0,_0x87fd26(_0x1884ab[_0x55ae2f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55ae2f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55ae2f([0x6c,0x6f,0x77])}),_0x584d79[_0x55ae2f([0x74,0x68,0x65,0x6e])](()=>{_0x4bf46f||_0x5f1d20(_0x55ae2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3edd60(){return _0x380243[_0x55ae2f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55ae2f([0x76,0x69,0x65,0x77])][_0x55ae2f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55ae2f([0x61,0x75,0x74,0x6f]);}function _0x32ad37(){_0x380243[_0x55ae2f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55ae2f([0x76,0x69,0x65,0x77])][_0x55ae2f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55ae2f([0x61,0x75,0x74,0x6f]);}}function _0x9daaee(_0x137164){const _0xa6b5e0=[new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e9427=>setTimeout(_0x2e9427,0x31b36722^_0x507f84)),_0x584d79[_0x55ae2f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6b2720=>{let _0x16765a=0x0;_0x380243[_0x55ae2f([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ae2f([0x6f,0x6e])](_0x55ae2f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x477a84,_0x1b66a7)=>{_0x1b66a7[0x0][_0x55ae2f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16765a++,_0x16765a==(0x31ba5816^_0x507f84)&&(_0x6b2720(),_0x477a84[_0x55ae2f([0x6f,0x66,0x66])]());});}))];return window[_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55ae2f([0x72,0x61,0x63,0x65])](_0xa6b5e0)[_0x55ae2f([0x74,0x68,0x65,0x6e])](()=>_0x137164);}async function _0x1b4988(){await _0x584d79,_0x380243[_0x55ae2f([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ae2f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x656d20,_0x380243[_0x55ae2f([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ae2f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x656d20,_0x380243[_0x55ae2f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55ae2f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a8225(_0x46e9f9){const _0x16fcad=_0x4a87ef();_0x380243[_0x16fcad]=_0x55ae2f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x46e9f9,_0x46e9f9!=_0x55ae2f([0x56,0x61,0x6c,0x69,0x64])&&_0x1b4988();}function _0x4a87ef(){const _0x2c48ea=window[_0x55ae2f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55ae2f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55ae2f([0x6e,0x6f,0x77])]())[_0x55ae2f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55ae2f([0x2e]),'');let _0x2cb3b1=_0x55ae2f([0x50]);for(let _0xa02ead=0x0;_0xa02ead<_0x2c48ea[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa02ead+=0x2){let _0x1b534f=window[_0x55ae2f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c48ea[_0x55ae2f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa02ead,_0xa02ead+0x2));_0x1b534f>=_0x717a88[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b534f-=_0x717a88[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2cb3b1+=_0x717a88[_0x1b534f];}return _0x2cb3b1;}function _0x2797a7(){const _0x1b789d=_0x2696de[_0x55ae2f([0x73,0x70,0x6c,0x69,0x74])](_0x55ae2f([0x2e]));if(0x3!=_0x1b789d[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x410b64(_0x1b789d[0x1]);function _0x410b64(_0x38c7d0){const _0x18f327=_0x5f8289(_0x38c7d0);return _0x18f327&&_0x31ddca()?_0x18f327:null;function _0x31ddca(){const _0x17b2d9=_0x18f327[_0x55ae2f([0x6a,0x74,0x69])],_0x35344b=window[_0x55ae2f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17b2d9[_0x55ae2f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17b2d9[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ac7c6={..._0x18f327,[_0x55ae2f([0x6a,0x74,0x69])]:_0x17b2d9[_0x55ae2f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17b2d9[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ac7c6[_0x55ae2f([0x76,0x63])],_0x48e315(_0x1ac7c6)==_0x35344b;}}}async function _0x300755(){let _0x4c0ecd=!0x0;try{const _0x4404ea=_0x2696de[_0x55ae2f([0x73,0x70,0x6c,0x69,0x74])](_0x55ae2f([0x2e])),[_0x28165c,_0x3682c2,_0x411919]=_0x4404ea;return _0x48d2c4(_0x28165c),await _0x5bbba6(_0x28165c,_0x3682c2,_0x411919),_0x4c0ecd;}catch(_0x3d860a){return!0x1;}function _0x48d2c4(_0x507b0f){const _0x37908f=_0x5f8289(_0x507b0f);_0x37908f&&_0x37908f[_0x55ae2f([0x61,0x6c,0x67])]==_0x55ae2f([0x45,0x53,0x32,0x35,0x36])||(_0x4c0ecd=!0x1);}async function _0x5bbba6(_0x115ad6,_0x223f5d,_0x56221d){const _0x2f8745=window[_0x55ae2f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55ae2f([0x66,0x72,0x6f,0x6d])](_0x56d5fa(_0x56221d),_0x45d8b4=>_0x45d8b4[_0x55ae2f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43454c=new window[(_0x55ae2f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55ae2f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x115ad6+_0x55ae2f([0x2e])+_0x223f5d),_0x33df93=window[_0x55ae2f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55ae2f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33df93)return;const _0x2d2531=await _0x33df93[_0x55ae2f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55ae2f([0x6a,0x77,0x6b]),_0x44052c,{[_0x55ae2f([0x6e,0x61,0x6d,0x65])]:_0x55ae2f([0x45,0x43,0x44,0x53,0x41]),[_0x55ae2f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55ae2f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55ae2f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33df93[_0x55ae2f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55ae2f([0x6e,0x61,0x6d,0x65])]:_0x55ae2f([0x45,0x43,0x44,0x53,0x41]),[_0x55ae2f([0x68,0x61,0x73,0x68])]:{[_0x55ae2f([0x6e,0x61,0x6d,0x65])]:_0x55ae2f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d2531,_0x2f8745,_0x43454c)||(_0x4c0ecd=!0x1);}}function _0x5f8289(_0x4687e7){return _0x4687e7[_0x55ae2f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55ae2f([0x65,0x79]))?JSON[_0x55ae2f([0x70,0x61,0x72,0x73,0x65])](_0x56d5fa(_0x4687e7)):null;}function _0x56d5fa(_0x5d709a){return window[_0x55ae2f([0x61,0x74,0x6f,0x62])](_0x5d709a[_0x55ae2f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55ae2f([0x2b]))[_0x55ae2f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55ae2f([0x2f])));}function _0x48e315(_0x10fa8b){let _0x29dd7f=0x1505;function _0x2739cc(_0x4df155){for(let _0x5ac618=0x0;_0x5ac618<_0x4df155[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ac618++){const _0x2c74b8=_0x4df155[_0x55ae2f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ac618);_0x29dd7f=(_0x29dd7f<<0x5)+_0x29dd7f+_0x2c74b8,_0x29dd7f&=_0x29dd7f;}}function _0x11fe47(_0x191690){Array[_0x55ae2f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x191690)?_0x191690[_0x55ae2f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x11fe47):_0x191690&&typeof _0x191690==_0x55ae2f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55ae2f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x191690)[_0x55ae2f([0x73,0x6f,0x72,0x74])]()[_0x55ae2f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23fb6d,_0x188564])=>{_0x2739cc(_0x23fb6d),_0x11fe47(_0x188564);}):_0x2739cc(window[_0x55ae2f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x191690));}return _0x11fe47(_0x10fa8b),_0x29dd7f>>>0x0;}function _0x4ccde1(_0x425234){return _0x425234[_0x55ae2f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55ae2f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55ae2f([0x30]));}function _0x2de62e(_0x132607){return _0x132607[_0x55ae2f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55ae2f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55ae2f([0x6a,0x6f,0x69,0x6e])]('');}function _0x656d20(){}function _0x55ae2f(_0x1303d4){const _0x13002f=_0x5013;return _0x1303d4[_0x13002f(0x198)](_0x210dd8=>String[_0x13002f(0x1a5)](_0x210dd8))[_0x13002f(0x18b)]('');}_0x4a8225(await _0x2b2342());}(this);}[_0x346cbb(0x18c)](){const _0x4eb6f0=_0x346cbb,_0x1d6f8e=this[_0x4eb6f0(0x18f)][_0x4eb6f0(0x17f)][_0x4eb6f0(0x197)];_0x1d6f8e[_0x4eb6f0(0x18e)](_0x4eb6f0(0x189))&&_0x1d6f8e[_0x4eb6f0(0x1cd)](_0x4eb6f0(0x189),{'allowAttributes':[_0x4eb6f0(0x1d1)]}),_0x1d6f8e[_0x4eb6f0(0x18e)](_0x4eb6f0(0x1ba))&&_0x1d6f8e[_0x4eb6f0(0x1cd)](_0x4eb6f0(0x1ba),{'allowAttributes':[_0x4eb6f0(0x1d1)]});}[_0x346cbb(0x193)](){const _0x5f2d2e=_0x346cbb,_0x257dc1=this[_0x5f2d2e(0x18f)];_0x257dc1[_0x5f2d2e(0x1c4)][_0x5f2d2e(0x1cf)](_0x5f2d2e(0x186))[_0x5f2d2e(0x1d0)]({'model':_0x5f2d2e(0x1d1),'view':_0x5f2d2e(0x1bf)}),_0x257dc1[_0x5f2d2e(0x1c4)][_0x5f2d2e(0x1cf)](_0x5f2d2e(0x1cc))[_0x5f2d2e(0x1a0)]({'model':{'key':_0x5f2d2e(0x1d1),'value':_0x4210f8=>_0x4210f8[_0x5f2d2e(0x18d)](_0x5f2d2e(0x1bf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2a20fb=_0x257dc1[_0x5f2d2e(0x1c2)][_0x5f2d2e(0x17d)](_0x5f2d2e(0x19b));_0x2a20fb&&this[_0x5f2d2e(0x1c5)](_0x2a20fb,_0x5f2d2e(0x1a6),(_0x59b3ab,[_0x368dc5,_0x56f930])=>{const _0x4e6ff5=_0x5f2d2e;_0x368dc5[_0x4e6ff5(0x1bb)](_0x4e6ff5(0x1d1),_0x56f930);});}[_0x346cbb(0x1b8)](){const _0x1fb42f=_0x346cbb,_0x70cf73=this[_0x1fb42f(0x18f)][_0x1fb42f(0x181)][_0x1fb42f(0x17d)](_0x1fb42f(0x1ce))||{},_0x468c20=this[_0x1fb42f(0x18f)][_0x1fb42f(0x181)][_0x1fb42f(0x17d)](_0x1fb42f(0x19c))||'';this[_0x1fb42f(0x1a9)]=_0x7dbbdc(_0x50b6a6[_0x1fb42f(0x19e)],_0x1fb42f(0x1b1),{..._0x70cf73,'pubkey':_0x468c20,'ctx-name':_0x1fb42f(0x1a4),'sourceList':'','imgOnly':_0x1fb42f(0x1bd),'removeCopyright':_0x1fb42f(0x1bd),'localeName':this[_0x1fb42f(0x18f)][_0x1fb42f(0x1ad)][_0x1fb42f(0x185)],'externalSourcesEmbedCss':_0x1fb42f(0x1b5)}),this[_0x1fb42f(0x1a9)][_0x1fb42f(0x1b9)]=_0x773447=>{const _0x4557d1=_0x1fb42f;if(_0x4557d1(0x1c1)==_0x773447)return _0x4557d1(0x1aa);},_0x50b6a6[_0x1fb42f(0x19e)][_0x1fb42f(0x1be)][_0x1fb42f(0x1c0)](this[_0x1fb42f(0x1a9)]);}[_0x346cbb(0x1b3)](){const _0x592954=_0x346cbb;this[_0x592954(0x192)]=_0x7dbbdc(_0x50b6a6[_0x592954(0x19e)],_0x592954(0x196),{'ctx-name':_0x592954(0x1a4)}),_0x50b6a6[_0x592954(0x19e)][_0x592954(0x1be)][_0x592954(0x1c0)](this[_0x592954(0x192)]);}[_0x346cbb(0x1ae)](){const _0x2d386f=_0x346cbb,_0x426d13=this[_0x2d386f(0x18f)][_0x2d386f(0x1c2)][_0x2d386f(0x17d)](_0x2d386f(0x18a));_0x426d13&&this[_0x2d386f(0x1c5)](_0x426d13,_0x2d386f(0x199),()=>{const _0x5892b7=_0x2d386f,_0x255f1a=this[_0x5892b7(0x18f)][_0x5892b7(0x17f)][_0x5892b7(0x19e)][_0x5892b7(0x1ac)][_0x5892b7(0x17e)]();_0x255f1a&&_0x255f1a[_0x5892b7(0x18d)](_0x5892b7(0x1d1))&&this[_0x5892b7(0x18f)][_0x5892b7(0x180)][_0x5892b7(0x188)][_0x5892b7(0x1b7)](_0x5892b7(0x183),()=>{const _0x3f4b2c=_0x5892b7;_0x39c014(this[_0x3f4b2c(0x18f)],_0x255f1a);});});const _0x394a5a=this[_0x2d386f(0x18f)][_0x2d386f(0x1c2)][_0x2d386f(0x17d)](_0x2d386f(0x184));_0x394a5a&&this[_0x2d386f(0x1c5)](_0x394a5a,_0x2d386f(0x199),()=>{const _0x56795d=_0x2d386f,_0x4328e0=this[_0x56795d(0x18f)][_0x56795d(0x17f)][_0x56795d(0x19e)][_0x56795d(0x1ac)][_0x56795d(0x17e)]();_0x4328e0&&_0x4328e0[_0x56795d(0x18d)](_0x56795d(0x1d1))&&this[_0x56795d(0x18f)][_0x56795d(0x180)][_0x56795d(0x188)][_0x56795d(0x1b7)](_0x56795d(0x183),()=>{const _0x240690=_0x56795d;_0x39c014(this[_0x240690(0x18f)],_0x4328e0);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x45cfc6,ObservableMixin as _0x4899c1}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1c1459}from'ckeditor5/src/ui.js';import _0x5b4892 from'./uploadcareimageeditformview.js';import _0x1ca975 from'../../utils/uploadutils.js';import _0x227907 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x4de356,getImageDimension as _0x5d7195}from'../../utils/editingutils.js';import{isAncestor as _0x2a0073}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4899c1(){constructor(_0x4cbe6c,_0x1cf40c,_0x2acf8a){super(),this['_editor']=_0x4cbe6c,this['_dialog']=_0x1cf40c,this['_imageElement']=_0x2acf8a,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0xbdb705=this['_imageElement'],_0x4382c4=_0xbdb705['getAttribute']('uploadcareImageId'),_0x4201df=_0xbdb705['getAttribute']('src');if(_0x4382c4)await this['_loadImageInfo'](_0x4382c4,_0x4201df);else{if(this['_imageCache']['has'](_0x4201df)){const _0x6166=this['_imageCache']['get'](_0x4201df);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6166['url'],this['imageDimension']=_0x6166['dimension'],this['imageId']=_0x6166['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x183e6a}=this['_editor'],t=_0x183e6a['t'],_0xd45327=new _0x5b4892(_0x183e6a,this['imageStatus'],this['_attributes']);_0xd45327['bind']('status')['to'](this,'imageStatus'),_0xd45327['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xd45327['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xd45327['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xd45327,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x227907,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xd45327,'position':_0x1c1459['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xd45327['focus']();},'onHide':()=>{_0xd45327['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x478746=>!_0x2a0073(_0x478746,_0xd45327['element'])}});}['_loadImageInfo'](_0x54753e,_0x3b360d){return _0x1ca975['getInfo'](_0x54753e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x153663=>{const {width:_0x479915,height:_0x20e1f1}=_0x153663['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b360d,this['imageDimension']={'width':_0x479915,'height':_0x20e1f1},this['imageId']=_0x54753e;})['catch'](_0x5e9418=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e9418['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4c2eda,_0x4466a7){return this['_getImageAsFile'](_0x4c2eda)['then'](_0x4e8be0=>_0x1ca975['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4466a7['signal'],'file':_0x4e8be0,'onProgress':_0x4c7ec2=>{_0x4c7ec2&&_0x4c7ec2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4c7ec2['value']));}}))['then'](_0x2e2948=>{const {width:_0x164e78,height:_0x3f3ea5}=_0x2e2948['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2e2948['cdnUrl'],this['imageDimension']={'width':_0x164e78,'height':_0x3f3ea5},this['imageId']=_0x2e2948['uuid'],this['imageUploadProgress']=null;const _0xf04e5a=_0x4c2eda['getAttribute']('src');this['_imageCache']['set'](_0xf04e5a,{'id':_0x2e2948['uuid'],'url':_0x2e2948['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x56a766=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x56a766['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5542fe,_0x3ff54d){_0x5542fe['on']('apply',(_0x5c80d2,_0x16b3d5)=>{this['_replaceImage'](_0x3ff54d,_0x16b3d5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5542fe['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5542fe['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x238624,_0x13a212,_0x4ec472){const _0x596d65=this['_editor'],{width:_0x4b692d,height:_0x25179c}=_0x5d7195(_0x13a212,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4ce599,imageSources:_0x4c3282}=_0x4de356(_0x13a212,_0x4b692d);_0x596d65['model']['change'](_0x3cc3da=>{if('$graveyard'===_0x238624['root']['rootName']){_0x596d65['execute']('insertImage',{'imageType':_0x238624['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x238624['getAttributes']()),'uploadcareImageId':_0x4ec472,'src':_0x4ce599,'sources':_0x4c3282,'width':_0x4b692d,'height':_0x25179c}});const _0x2b7626=_0x238624['getChildren']();_0x238624=_0x596d65['model']['document']['selection']['getSelectedElement']();for(const _0x138c70 of _0x2b7626)_0x3cc3da['append'](_0x3cc3da['cloneElement'](_0x138c70),_0x238624);}else _0x3cc3da['setSelection'](_0x238624,'on'),_0x596d65['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x238624['getAttributes']()),'uploadcareImageId':_0x4ec472,'src':_0x4ce599,'sources':_0x4c3282,'width':_0x4b692d,'height':_0x25179c},_0x238624);_0x3cc3da['setSelection'](_0x238624,'on');});}async['_getImageAsFile'](_0x3ba74c){const _0x4b8b35=_0x45cfc6['window'],_0x4cb03e=_0x45cfc6['document']['location']['href'],_0x1d1aed=new _0x4b8b35['URL'](_0x3ba74c['getAttribute']('src'),_0x4cb03e);if('data:'===_0x1d1aed['protocol']){const _0x1c52ac=_0x1d1aed['href']['split'](','),_0x40c87c=_0x1c52ac[0x0]['match'](/:(.*?);/)[0x1],_0x42cbdc=_0x40c87c['split']('/')[0x1],_0x4f595f=_0x4b8b35['atob'](_0x1c52ac[_0x1c52ac['length']-0x1]);let _0x1d4848=_0x4f595f['length'];const _0x24e471=new _0x4b8b35['Uint8Array'](_0x1d4848);for(;_0x1d4848--;)_0x24e471[_0x1d4848]=_0x4f595f['charCodeAt'](_0x1d4848);return new _0x4b8b35['File']([_0x24e471],'image.'+_0x42cbdc,{'type':_0x40c87c});}const _0xf499c7=_0x1d1aed['href']['split']('/'),_0x4eb821=_0xf499c7[_0xf499c7['length']-0x1],_0x10b64a=_0x4eb821['split']('.')[0x1];return _0x4b8b35['fetch'](_0x1d1aed['href'])['then'](_0xf0ba68=>_0xf0ba68['clone']()['blob']())['then'](_0x31945e=>new _0x4b8b35['File']([_0x31945e],_0x4eb821,{'type':'image/'+_0x10b64a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x41b2c4,_0x278204){const _0x3ef824=_0x152e,_0x18efa1=_0x41b2c4();while(!![]){try{const _0x47e2ce=-parseInt(_0x3ef824(0x7c))/0x1+-parseInt(_0x3ef824(0x6d))/0x2*(parseInt(_0x3ef824(0x6e))/0x3)+-parseInt(_0x3ef824(0x75))/0x4*(parseInt(_0x3ef824(0x74))/0x5)+parseInt(_0x3ef824(0x71))/0x6*(-parseInt(_0x3ef824(0x76))/0x7)+-parseInt(_0x3ef824(0x6f))/0x8+-parseInt(_0x3ef824(0x7b))/0x9*(parseInt(_0x3ef824(0x78))/0xa)+parseInt(_0x3ef824(0x77))/0xb;if(_0x47e2ce===_0x278204)break;else _0x18efa1['push'](_0x18efa1['shift']());}catch(_0x213917){_0x18efa1['push'](_0x18efa1['shift']());}}}(_0x53ff,0x66ee3));import{View as _0x18abef}from'ckeditor5/src/ui.js';function _0x53ff(){const _0x336e82=['6ubRNtq','4673512kAsUmR','setTemplate','3198450rHXEXd','uc-cloud-image-editor','image-edit','33085PMnKmS','328KdMvGF','7dxPUey','38196092HFInCQ','410uoaTmx','ck-uploadcare-theme','imageSrc','177795CvLLkz','550578buiJcH','set','bindTemplate','uc-light','30378TTAtHq'];_0x53ff=function(){return _0x336e82;};return _0x53ff();}function _0x152e(_0x2a9b45,_0x12b188){const _0x53ffc5=_0x53ff();return _0x152e=function(_0x152eb0,_0x2694ac){_0x152eb0=_0x152eb0-0x6c;let _0xee5c45=_0x53ffc5[_0x152eb0];return _0xee5c45;},_0x152e(_0x2a9b45,_0x12b188);}export default class tt extends _0x18abef{constructor(_0x4bc8da,_0x47b23f){const _0x4fb4e9=_0x152e;super(_0x4bc8da);const _0x246088=this[_0x4fb4e9(0x7e)];this[_0x4fb4e9(0x7d)](_0x4fb4e9(0x7a),''),this[_0x4fb4e9(0x70)]({'tag':_0x4fb4e9(0x72),'attributes':{..._0x47b23f,'class':[_0x4fb4e9(0x6c),_0x4fb4e9(0x79)],'ctx-name':_0x4fb4e9(0x73),'cdn-url':_0x246088['to'](_0x4fb4e9(0x7a))}});}}
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
5
9
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
-
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
7
10
|
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
8
11
|
/**
|
|
9
12
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{
|
|
23
|
+
import{ButtonView as _0x4653e8,IconView as et,View as _0x3f9c69}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x3f9c69{constructor(_0x104748){super(_0x104748);const t=_0x104748['t'];this['set']('errorType',null);const _0x4b391a=new _0x4653e8(_0x104748);_0x4b391a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4b391a['withText']=!0x0,_0x4b391a['class']='ck-button-action',_0x4b391a['on']('execute',()=>{this['fire']('retry');}),_0x4b391a['bind']('isVisible')['to'](this,'errorType',_0x5d9c3e=>'NotFound'!==_0x5d9c3e);const _0x4a778e=new et();_0x4a778e['content']=at,_0x4a778e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x23326e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x4a778e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x23326e['to']('errorType',_0x3320e9=>t('NotFound'!==_0x3320e9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4b391a]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x420cc0,View as _0x369181}from'ckeditor5/src/ui.js';export default class ta extends _0x369181{constructor(_0x1fa934){super(_0x1fa934);const t=_0x1fa934['t'],_0x4d3949=this['bindTemplate'],_0xbbc436=new _0x420cc0();_0xbbc436['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0xbbc436,{'text':_0x4d3949['to']('imageUploadProgress',_0x395187=>t('Loading\x20image...')+'\x20('+(_0x395187||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4be530=_0xf0d6;(function(_0x52c258,_0x2398e2){const _0x3a9121=_0xf0d6,_0xea52a2=_0x52c258();while(!![]){try{const _0x71cbb4=parseInt(_0x3a9121(0xa1))/0x1*(parseInt(_0x3a9121(0x9d))/0x2)+-parseInt(_0x3a9121(0x87))/0x3*(parseInt(_0x3a9121(0x91))/0x4)+-parseInt(_0x3a9121(0xac))/0x5*(parseInt(_0x3a9121(0x9b))/0x6)+-parseInt(_0x3a9121(0xa5))/0x7+-parseInt(_0x3a9121(0xb2))/0x8+-parseInt(_0x3a9121(0xa8))/0x9*(-parseInt(_0x3a9121(0x9c))/0xa)+parseInt(_0x3a9121(0x94))/0xb*(parseInt(_0x3a9121(0xb3))/0xc);if(_0x71cbb4===_0x2398e2)break;else _0xea52a2['push'](_0xea52a2['shift']());}catch(_0x2d5980){_0xea52a2['push'](_0xea52a2['shift']());}}}(_0x30a8,0x419dc));import{View as _0x134adf}from'ckeditor5/src/ui.js';import _0x11bc95 from'./uploadcareimageeditformloadingview.js';import _0xe1e336 from'./uploadcareimageeditformerrorview.js';function _0xf0d6(_0x18467d,_0x92085f){const _0x30a899=_0x30a8();return _0xf0d6=function(_0xf0d621,_0x231388){_0xf0d621=_0xf0d621-0x7d;let _0xa44542=_0x30a899[_0xf0d621];return _0xa44542;},_0xf0d6(_0x18467d,_0x92085f);}function _0x30a8(){const _0x509017=['div','element','1926obQNeM','addMany','_items','_errorView','460meViHR','detail','length','toLowerCase','_addErrorViewListeners','ready','2000024dZNhVf','5796ktoesa','createCollection','target','setTemplate','ck-reset_all-excluded','add','addEventListener','getFocusableElement','addedNodes','_focusableView','error','ck-uploadcare-form','_waitForImageEditorComponent','75UjzyTe','observe','once','status','uploading','_editingView','filter','_setView','fire','retry','35092wUVdXA','render','disconnect','15169UfjvGe','_addUploadcareImageEditorListeners','querySelector','clear','change:status','_loadingView','cdnUrl','27696tSEFvK','18350qlIAfe','2dGyAvU','uc-cloud-image-editor','set','apply','104557xbuLqP','cancel','nodeName','focus','3780olNbCN'];_0x30a8=function(){return _0x509017;};return _0x30a8();}import _0x2f66d0 from'./uploadcareimageeditformeditingview.js';import _0x42eba6 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x42eba6{constructor(_0x17657f,_0x3a96e9,_0x5e364b){const _0x6cab4=_0xf0d6;super(_0x17657f),this[_0x6cab4(0xaa)]=this[_0x6cab4(0xb4)](),this[_0x6cab4(0x99)]=new _0x11bc95(_0x17657f),this[_0x6cab4(0xab)]=new _0xe1e336(_0x17657f),this[_0x6cab4(0x8c)]=new _0x2f66d0(_0x17657f,_0x5e364b),this[_0x6cab4(0x83)]=new _0x134adf(_0x17657f),this[_0x6cab4(0x83)][_0x6cab4(0x7d)](this[_0x6cab4(0x81)]()),this[_0x6cab4(0x9f)](_0x6cab4(0x8a),_0x3a96e9),this[_0x6cab4(0x7d)]({'tag':_0x6cab4(0xa6),'attributes':{'class':['ck',_0x6cab4(0x7e),_0x6cab4(0x85)],'tabindex':'-1'},'children':this[_0x6cab4(0xaa)]}),this[_0x6cab4(0x8e)](),this[_0x6cab4(0x89)](_0x6cab4(0x92),()=>{const _0x406086=_0x6cab4;this[_0x406086(0x86)](this[_0x406086(0xa7)],_0x331f5e=>{const _0x154f75=_0x406086;this[_0x154f75(0x95)](_0x331f5e);});}),this['on'](_0x6cab4(0x98),()=>{const _0x4a4781=_0x6cab4;this[_0x4a4781(0x8e)]();}),this[_0x6cab4(0xb0)]();}[_0x4be530(0xa4)](){const _0x166b16=_0x4be530;this[_0x166b16(0xa7)][_0x166b16(0xa4)]();}[_0x4be530(0x8e)](){const _0x37ea4d=_0x4be530;switch(this[_0x37ea4d(0xaa)][_0x37ea4d(0x97)](),this[_0x37ea4d(0x8a)]){case _0x37ea4d(0x8b):this[_0x37ea4d(0xaa)][_0x37ea4d(0x7f)](this[_0x37ea4d(0x99)]);break;case _0x37ea4d(0x84):this[_0x37ea4d(0xaa)][_0x37ea4d(0x7f)](this[_0x37ea4d(0xab)]);break;case _0x37ea4d(0xb1):this[_0x37ea4d(0xaa)][_0x37ea4d(0xa9)]([this[_0x37ea4d(0x8c)],this[_0x37ea4d(0x83)]]);}}[_0x4be530(0x86)](_0x30a426,_0x5ff05c){const _0x5c870b=_0x4be530,_0x229672=_0x5c870b(0x9e),_0x176498=_0x30a426[_0x5c870b(0x96)](_0x229672);if(_0x176498)return _0x5ff05c(_0x176498);const _0x512fe2=new MutationObserver(_0xc2b905=>{const _0x5a517b=_0x5c870b,_0x103fa9=_0xc2b905[_0x5a517b(0x8d)](_0x2fb99a=>_0x2fb99a[_0x5a517b(0xb5)]===_0x30a426&&_0x2fb99a[_0x5a517b(0x82)][_0x5a517b(0xae)]>0x0&&_0x2fb99a[_0x5a517b(0x82)][0x0][_0x5a517b(0xa3)][_0x5a517b(0xaf)]()===_0x229672);_0x103fa9[_0x5a517b(0xae)]&&(_0x512fe2[_0x5a517b(0x93)](),_0x5ff05c(_0x103fa9[0x0][_0x5a517b(0x82)][0x0]));});_0x512fe2[_0x5c870b(0x88)](_0x30a426,{'childList':!0x0,'subtree':!0x0});}[_0x4be530(0x95)](_0x7e2f50){const _0x2acccc=_0x4be530;_0x7e2f50[_0x2acccc(0x80)](_0x2acccc(0xa0),_0x4bde55=>{const _0x25f718=_0x2acccc;this[_0x25f718(0x8f)](_0x25f718(0xa0),{'imageSrc':_0x4bde55[_0x25f718(0xad)][_0x25f718(0x9a)]});}),_0x7e2f50[_0x2acccc(0x80)](_0x2acccc(0xa2),()=>{const _0x2d6c7b=_0x2acccc;this[_0x2d6c7b(0x8f)](_0x2d6c7b(0xa2));});}[_0x4be530(0xb0)](){const _0x3cb71a=_0x4be530;this[_0x3cb71a(0xab)]['on'](_0x3cb71a(0x90),()=>{const _0x157e06=_0x3cb71a;this[_0x157e06(0x8f)](_0x157e06(0x90));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x152fcd=_0x1f9b;(function(_0x43d7a7,_0x255c73){const _0x29da28=_0x1f9b,_0x2f990b=_0x43d7a7();while(!![]){try{const _0x2eeef4=parseInt(_0x29da28(0x7a))/0x1+parseInt(_0x29da28(0x79))/0x2+-parseInt(_0x29da28(0x8c))/0x3*(-parseInt(_0x29da28(0x87))/0x4)+parseInt(_0x29da28(0x84))/0x5*(-parseInt(_0x29da28(0x8b))/0x6)+-parseInt(_0x29da28(0x8f))/0x7+-parseInt(_0x29da28(0x82))/0x8*(-parseInt(_0x29da28(0x81))/0x9)+-parseInt(_0x29da28(0x77))/0xa*(-parseInt(_0x29da28(0x85))/0xb);if(_0x2eeef4===_0x255c73)break;else _0x2f990b['push'](_0x2f990b['shift']());}catch(_0x54daef){_0x2f990b['push'](_0x2f990b['shift']());}}}(_0x517b,0xd5c8d));import{Command as _0x19fcb4}from'ckeditor5/src/core.js';function _0x517b(){const _0x4d9272=['set','plugins','imageEditController','6FjABgi','2362017lGztlG','refresh','element','1557332bsjrsw','isEnabled','isActive','bind','editor','getSelectedElement','selection','execute','document','10nfSLQm','imageBlock','1401992vtpIYC','600985EwlzHj','model','imageInline','uploadcare.allowExternalImagesEditing','get','unbind','_isEditable','1575YGVffB','3896bLVNxP','requires','5468185HokxUP','189519FtjpHv','config','4nIywHo'];_0x517b=function(){return _0x4d9272;};return _0x517b();}import{Dialog as _0x36498e}from'ckeditor5/src/ui.js';import _0xed577f from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2e97cc}from'../utils/editingutils.js';function _0x1f9b(_0x271846,_0x3597ab){const _0x517b83=_0x517b();return _0x1f9b=function(_0x1f9bbe,_0x420469){_0x1f9bbe=_0x1f9bbe-0x76;let _0x5660ea=_0x517b83[_0x1f9bbe];return _0x5660ea;},_0x1f9b(_0x271846,_0x3597ab);}export default class J extends _0x19fcb4{static get[_0x152fcd(0x83)](){return[_0x36498e];}constructor(_0x14ae7a){const _0x25e70d=_0x152fcd;super(_0x14ae7a),this[_0x25e70d(0x8a)]=void 0x0,this[_0x25e70d(0x80)]=_0x2e97cc(_0x14ae7a[_0x25e70d(0x86)][_0x25e70d(0x7e)](_0x25e70d(0x7d))||[]),this[_0x25e70d(0x88)]({'isActive':!0x1});}[_0x152fcd(0x8d)](){const _0x2a501e=_0x152fcd,_0x4688d0=this[_0x2a501e(0x93)][_0x2a501e(0x7b)][_0x2a501e(0x76)][_0x2a501e(0x95)][_0x2a501e(0x94)]();this[_0x2a501e(0x90)]=this[_0x2a501e(0x80)](_0x4688d0);}[_0x152fcd(0x96)](){const _0x8e0c9=_0x152fcd;this[_0x8e0c9(0x8a)]&&(this[_0x8e0c9(0x7f)](_0x8e0c9(0x91)),this[_0x8e0c9(0x8a)]=void 0x0);const _0x1c9dd4=this[_0x8e0c9(0x93)][_0x8e0c9(0x7b)][_0x8e0c9(0x76)][_0x8e0c9(0x95)][_0x8e0c9(0x94)]();_0x1c9dd4&&(_0x1c9dd4['is'](_0x8e0c9(0x8e),_0x8e0c9(0x78))||_0x1c9dd4['is'](_0x8e0c9(0x8e),_0x8e0c9(0x7c)))&&(this[_0x8e0c9(0x8a)]=new _0xed577f(this[_0x8e0c9(0x93)],this[_0x8e0c9(0x93)][_0x8e0c9(0x89)][_0x8e0c9(0x7e)](_0x36498e),_0x1c9dd4),this[_0x8e0c9(0x92)](_0x8e0c9(0x91))['to'](this[_0x8e0c9(0x8a)],_0x8e0c9(0x91)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x425935=_0x5ba4;function _0x55d2(){const _0x4f4aa5=['22890RihTRk','1851264IVunlI','uploadcareImageEdit','commands','20tYgpBQ','1kRPauy','UploadcareImageEditEditing','isOfficialPlugin','add','7gFXVAt','isPremiumPlugin','ImageEditing','606672VThtCj','476757DJKsLs','ImageUtils','2020lgAoXc','pluginName','171648RaXesY','736172PhoBfB','init','requires','452Xxsytz','uploadcareImageReplace'];_0x55d2=function(){return _0x4f4aa5;};return _0x55d2();}(function(_0x3348e3,_0x221c37){const _0x3d0fa3=_0x5ba4,_0x38256d=_0x3348e3();while(!![]){try{const _0x538e43=-parseInt(_0x3d0fa3(0x128))/0x1*(-parseInt(_0x3d0fa3(0x11e))/0x2)+parseInt(_0x3d0fa3(0x11d))/0x3+parseInt(_0x3d0fa3(0x121))/0x4*(parseInt(_0x3d0fa3(0x11b))/0x5)+parseInt(_0x3d0fa3(0x123))/0x6+parseInt(_0x3d0fa3(0x115))/0x7*(-parseInt(_0x3d0fa3(0x124))/0x8)+-parseInt(_0x3d0fa3(0x119))/0x9*(parseInt(_0x3d0fa3(0x127))/0xa)+parseInt(_0x3d0fa3(0x118))/0xb;if(_0x538e43===_0x221c37)break;else _0x38256d['push'](_0x38256d['shift']());}catch(_0x15f400){_0x38256d['push'](_0x38256d['shift']());}}}(_0x55d2,0x2f037));import{Plugin as _0x1e6488}from'ckeditor5/src/core.js';import{Notification as _0x51971f}from'ckeditor5/src/ui.js';import _0x10a9b8 from'./uploadcareimageeditcommand.js';import _0x1f9f3b from'./uploadcareimagereplacecommand.js';function _0x5ba4(_0x5857bf,_0x471670){const _0x55d2bc=_0x55d2();return _0x5ba4=function(_0x5ba4b8,_0x12537f){_0x5ba4b8=_0x5ba4b8-0x114;let _0x459429=_0x55d2bc[_0x5ba4b8];return _0x459429;},_0x5ba4(_0x5857bf,_0x471670);}import _0x487e1c from'../uploadcareediting.js';export default class m extends _0x1e6488{static get[_0x425935(0x11c)](){const _0x45cf2c=_0x425935;return _0x45cf2c(0x129);}static get[_0x425935(0x120)](){const _0x40328b=_0x425935;return[_0x487e1c,_0x51971f,_0x40328b(0x11a),_0x40328b(0x117)];}static get[_0x425935(0x12a)](){return!0x0;}static get[_0x425935(0x116)](){return!0x0;}[_0x425935(0x11f)](){const _0x1aec08=_0x425935,{editor:_0x295fc3}=this;_0x295fc3[_0x1aec08(0x126)][_0x1aec08(0x114)](_0x1aec08(0x125),new _0x10a9b8(_0x295fc3)),_0x295fc3[_0x1aec08(0x126)][_0x1aec08(0x114)](_0x1aec08(0x122),new _0x1f9f3b(_0x295fc3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5357ea}from'ckeditor5/src/core.js';import{ButtonView as _0x118fa2}from'ckeditor5/src/ui.js';import{createElement as _0x2b0688}from'ckeditor5/src/utils.js';import _0x5ce51e from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x5357ea{constructor(){super(...arguments),this['_imageCache']=new Map();}static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x1868ef=this['editor'];_0x1868ef['ui']['componentFactory']['add']('uploadcareImageEdit',_0x110e3f=>{const _0x35258d=_0x1868ef['commands']['get']('uploadcareImageEdit'),_0x4ea090=new _0x118fa2(_0x110e3f),t=_0x110e3f['t'];return _0x4ea090['set']({'icon':_0x5ce51e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4ea090['bind']('isEnabled')['to'](_0x35258d),_0x4ea090['bind']('isOn')['to'](_0x35258d,'isActive'),this['listenTo'](_0x4ea090,'execute',()=>{_0x1868ef['execute']('uploadcareImageEdit'),_0x1868ef['editing']['view']['focus']();}),_0x4ea090;}),this['_initConfig']();}['_initConfig'](){const _0x15c83f=_0x2b0688(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x15c83f),this['listenTo'](this['editor'],'destroy',()=>{_0x15c83f['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3b0014=_0x5d4f;(function(_0x1afb48,_0x355371){const _0x17f771=_0x5d4f,_0x16dd5e=_0x1afb48();while(!![]){try{const _0x4ebe09=-parseInt(_0x17f771(0x79))/0x1+parseInt(_0x17f771(0x78))/0x2*(-parseInt(_0x17f771(0x84))/0x3)+parseInt(_0x17f771(0x8a))/0x4*(-parseInt(_0x17f771(0x7e))/0x5)+parseInt(_0x17f771(0x89))/0x6*(parseInt(_0x17f771(0x7f))/0x7)+parseInt(_0x17f771(0x8d))/0x8*(parseInt(_0x17f771(0x80))/0x9)+parseInt(_0x17f771(0x83))/0xa+parseInt(_0x17f771(0x7b))/0xb;if(_0x4ebe09===_0x355371)break;else _0x16dd5e['push'](_0x16dd5e['shift']());}catch(_0x21f9a2){_0x16dd5e['push'](_0x16dd5e['shift']());}}}(_0x430e,0xcb1aa));import{Command as _0x565816}from'ckeditor5/src/core.js';function _0x430e(){const _0x50bfe1=['change','5OvWpap','7QYyNrj','522mKuUUN','refresh','imageBlock','2539850cvFZDK','3CuxWrc','selection','getSelectedElement','sizes','model','5224482seWLPz','5277168fHxidq','document','setAttributes','169592zoVxRW','imageInline','srcset','element','execute','removeAttribute','189034LgUwBl','1623906VaZkxa','editor','16668905rrPGXM','isEnabled'];_0x430e=function(){return _0x50bfe1;};return _0x430e();}function _0x5d4f(_0x139dda,_0x27b896){const _0x430e24=_0x430e();return _0x5d4f=function(_0x5d4f00,_0xb296c7){_0x5d4f00=_0x5d4f00-0x78;let _0x515bc2=_0x430e24[_0x5d4f00];return _0x515bc2;},_0x5d4f(_0x139dda,_0x27b896);}export default class O extends _0x565816{[_0x3b0014(0x81)](){const _0x55b346=_0x3b0014,_0x3bfa0e=this[_0x55b346(0x7a)][_0x55b346(0x88)][_0x55b346(0x8b)][_0x55b346(0x85)][_0x55b346(0x86)]();this[_0x55b346(0x7c)]=Boolean(_0x3bfa0e&&(_0x3bfa0e['is'](_0x55b346(0x90),_0x55b346(0x82))||_0x3bfa0e['is'](_0x55b346(0x90),_0x55b346(0x8e))));}[_0x3b0014(0x91)](_0x4470df){const _0x38cd5b=_0x3b0014,_0x57f0ef=this[_0x38cd5b(0x7a)][_0x38cd5b(0x88)][_0x38cd5b(0x8b)][_0x38cd5b(0x85)][_0x38cd5b(0x86)]();this[_0x38cd5b(0x7a)][_0x38cd5b(0x88)][_0x38cd5b(0x7d)](_0x53f202=>{const _0x2d97ab=_0x38cd5b;_0x53f202[_0x2d97ab(0x8c)](_0x4470df,_0x57f0ef),_0x53f202[_0x2d97ab(0x92)](_0x2d97ab(0x8f),_0x57f0ef),_0x53f202[_0x2d97ab(0x92)](_0x2d97ab(0x87),_0x57f0ef);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x10f530=_0x373e;function _0x373e(_0x868e2d,_0x35b056){var _0x372c9f=_0x372c();return _0x373e=function(_0x373efe,_0x4aeb59){_0x373efe=_0x373efe-0x1b6;var _0x500db9=_0x372c9f[_0x373efe];return _0x500db9;},_0x373e(_0x868e2d,_0x35b056);}(function(_0x12f8ab,_0x30236c){var _0x18d69c=_0x373e,_0x2640f2=_0x12f8ab();while(!![]){try{var _0xbe6c9c=parseInt(_0x18d69c(0x1b8))/0x1*(parseInt(_0x18d69c(0x1b6))/0x2)+parseInt(_0x18d69c(0x1c4))/0x3+parseInt(_0x18d69c(0x1bd))/0x4*(-parseInt(_0x18d69c(0x1bc))/0x5)+-parseInt(_0x18d69c(0x1c1))/0x6*(-parseInt(_0x18d69c(0x1b9))/0x7)+-parseInt(_0x18d69c(0x1c0))/0x8+parseInt(_0x18d69c(0x1ba))/0x9+parseInt(_0x18d69c(0x1bf))/0xa;if(_0xbe6c9c===_0x30236c)break;else _0x2640f2['push'](_0x2640f2['shift']());}catch(_0x188736){_0x2640f2['push'](_0x2640f2['shift']());}}}(_0x372c,0xf1af3));function _0x372c(){var _0x3fb3f6=['206196lAQVjX','isPremiumPlugin','requires','740847tMZHIl','2VZAubz','isOfficialPlugin','1423417OjwQQQ','161izoarH','3110238jPnmBl','pluginName','1130hsWtlR','544THfuqj','UploadcareImageEdit','1085680ntwwdg','15154072weoyCo'];_0x372c=function(){return _0x3fb3f6;};return _0x372c();}import{Plugin as _0x5e594e}from'ckeditor5/src/core.js';import _0x5342fb from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x32860f from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x5e594e{static get[_0x10f530(0x1bb)](){var _0x2a60d3=_0x10f530;return _0x2a60d3(0x1be);}static get[_0x10f530(0x1c3)](){return[_0x5342fb,_0x32860f];}static get[_0x10f530(0x1b7)](){return!0x0;}static get[_0x10f530(0x1c2)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x536bed=_0xf69f;function _0xf69f(_0x33f6c0,_0x45dc09){const _0x595ec7=_0x595e();return _0xf69f=function(_0xf69fd5,_0x35f1a6){_0xf69fd5=_0xf69fd5-0x16b;let _0x1e6f4d=_0x595ec7[_0xf69fd5];return _0x1e6f4d;},_0xf69f(_0x33f6c0,_0x45dc09);}(function(_0x4af379,_0x1b2fc9){const _0x360a3d=_0xf69f,_0x18a2af=_0x4af379();while(!![]){try{const _0x317be3=parseInt(_0x360a3d(0x1ba))/0x1+-parseInt(_0x360a3d(0x1a5))/0x2+-parseInt(_0x360a3d(0x18b))/0x3*(parseInt(_0x360a3d(0x1af))/0x4)+parseInt(_0x360a3d(0x1b5))/0x5+-parseInt(_0x360a3d(0x16e))/0x6*(-parseInt(_0x360a3d(0x17c))/0x7)+parseInt(_0x360a3d(0x179))/0x8+parseInt(_0x360a3d(0x1a3))/0x9*(-parseInt(_0x360a3d(0x16c))/0xa);if(_0x317be3===_0x1b2fc9)break;else _0x18a2af['push'](_0x18a2af['shift']());}catch(_0x501b9d){_0x18a2af['push'](_0x18a2af['shift']());}}}(_0x595e,0xa1b46));import{Plugin as _0x12ebe5,icons as _0x28fa84}from'ckeditor5/src/core.js';import{ButtonView as _0x4de0d3,MenuBarMenuListItemButtonView as _0x512d50}from'ckeditor5/src/ui.js';import _0x1637f4 from'../theme/icons/dropbox.svg';import _0x3cf98a from'../theme/icons/facebook.svg';import _0x4c784f from'../theme/icons/google-drive.svg';import _0xc276cc from'../theme/icons/google-photos.svg';import _0x510502 from'../theme/icons/instagram.svg';import _0x17e4e7 from'../theme/icons/link.svg';function _0x595e(){const _0x24cb44=['tooltip','Uploadcare','domainLimit','uploadcareLicenseKeyUsageLimit','pluginName','commands','_licenseKeyCheckInterval','shortText','1772hdklVJ','isImageSelected','uploadcareLicenseKeyExpired','plugins','ImageInsertUI','Insert','5806935ueNgkK','isOfficialPlugin','GDrive','config','isEnabled','367531IRdFkd','locale','Instagram','assetManager','uploadcareLicenseKeyValid','20qcdESq','_normalizeConfigSourceList','6481278TkQNTf','invalid','expired','Replace','Dropbox','map','_showLicenseError','destroy','licenseKey','usageLimit','_createMenuBarButtons','8375224kKTfPl','type','OneDrive','7WIcTmE','uploadcareLicenseKeyEvaluationLimit','featureNotAllowed','evaluationLimit','withText','uploadcareLicenseKeyTrialLimit','get','bind','execute','_createButton','entries','icon','text','URL','registerIntegration','2469DDMVmQ','uploadcare.uploader.sourceList','editor','Facebook','afterInit','uploadcare','Local','_createDropdownButtons','_createToolbarButton','push','isPremiumPlugin','_getIntegrationKey','upload','has','reduce','url','GPhotos','uploadcareLicenseKeyInvalid','init','uploadcareLicenseKeyNotAllowed','imageUpload','uploadcareLicenseKeyDomainLimit','trialLimit','forEach','11351907QLsWLy','UploadcareUI','212914XTzTRV','label'];_0x595e=function(){return _0x24cb44;};return _0x595e();}import _0x70a037 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x3bb000}from'./uploadcareconfig.js';import{getTranslation as _0x2087dc}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x12ebe5{static get[_0x536bed(0x1ab)](){const _0x35bf91=_0x536bed;return _0x35bf91(0x1a4);}static get[_0x536bed(0x1b6)](){return!0x0;}static get[_0x536bed(0x195)](){return!0x0;}[_0x536bed(0x19d)](){const _0x252ae6=_0x536bed;this[_0x252ae6(0x176)]=this[_0x252ae6(0x18d)][_0x252ae6(0x1b8)][_0x252ae6(0x182)](_0x252ae6(0x176));const _0x24a65f=this[_0x252ae6(0x18d)];this[_0x252ae6(0x1ad)]=setInterval(()=>{const _0x485725=_0x252ae6;let _0x401061;for(const _0x1aafac in _0x24a65f){const _0x573c21=_0x1aafac,_0x4a7f5e=_0x24a65f[_0x573c21];if(_0x485725(0x16b)==_0x4a7f5e||_0x485725(0x19c)==_0x4a7f5e||_0x485725(0x1b1)==_0x4a7f5e||_0x485725(0x1a0)==_0x4a7f5e||_0x485725(0x19e)==_0x4a7f5e||_0x485725(0x17d)==_0x4a7f5e||_0x485725(0x181)==_0x4a7f5e||_0x485725(0x1aa)==_0x4a7f5e){delete _0x24a65f[_0x573c21],_0x401061=_0x4a7f5e,clearInterval(this[_0x485725(0x1ad)]),this[_0x485725(0x1ad)]=void 0x0;break;}}_0x485725(0x19c)==_0x401061&&_0x24a65f[_0x485725(0x174)](_0x485725(0x16f)),_0x485725(0x1b1)==_0x401061&&_0x24a65f[_0x485725(0x174)](_0x485725(0x170)),_0x485725(0x1a0)==_0x401061&&_0x24a65f[_0x485725(0x174)](_0x485725(0x1a9)),_0x485725(0x19e)==_0x401061&&_0x24a65f[_0x485725(0x174)](_0x485725(0x17e),_0x485725(0x1a8)),_0x485725(0x17d)==_0x401061&&_0x24a65f[_0x485725(0x174)](_0x485725(0x17f)),_0x485725(0x181)==_0x401061&&_0x24a65f[_0x485725(0x174)](_0x485725(0x1a1)),_0x485725(0x1aa)==_0x401061&&_0x24a65f[_0x485725(0x174)](_0x485725(0x177));},0x3e8);}[_0x536bed(0x18f)](){const _0x57abee=_0x536bed,{editor:_0x5d0332}=this,_0x214e08=_0x5d0332[_0x57abee(0x1ac)][_0x57abee(0x182)](_0x57abee(0x190));if(!_0x214e08)return;const _0xdb18c=this[_0x57abee(0x16d)](_0x5d0332[_0x57abee(0x1b8)][_0x57abee(0x182)](_0x57abee(0x18c)))[_0x57abee(0x199)]((_0x5dbf27,_0x588df3)=>{const _0x417a95=_0x57abee,_0x482cdc=this[_0x417a95(0x196)](_0x588df3[_0x417a95(0x17a)]);return _0x5dbf27[_0x482cdc]||(_0x5dbf27[_0x482cdc]=[]),_0x5dbf27[_0x482cdc][_0x417a95(0x194)](_0x588df3),_0x5dbf27;},{});_0x5d0332[_0x57abee(0x1b2)][_0x57abee(0x198)](_0x57abee(0x1b3))&&_0x5d0332[_0x57abee(0x1ac)][_0x57abee(0x182)](_0x57abee(0x190))&&Object[_0x57abee(0x186)](_0xdb18c)[_0x57abee(0x1a2)](([_0x19d996,_0x3d2545])=>{const _0x3490c7=_0x57abee;_0x5d0332[_0x3490c7(0x1b2)][_0x3490c7(0x182)](_0x3490c7(0x1b3))[_0x3490c7(0x18a)]({'name':_0x19d996,'observable':()=>_0x214e08,'buttonViewCreator':()=>this[_0x3490c7(0x193)](_0x3d2545),'formViewCreator':()=>this[_0x3490c7(0x192)](_0x3d2545),'menuBarButtonViewCreator':()=>this[_0x3490c7(0x178)](_0x3d2545),'override':_0x3490c7(0x1bd)!==_0x19d996});});}[_0x536bed(0x175)](){const _0x2824b3=_0x536bed;super[_0x2824b3(0x175)](),this[_0x2824b3(0x1ad)]&&clearInterval(this[_0x2824b3(0x1ad)]);}[_0x536bed(0x16d)](_0x3ca800){const _0x2b8021=_0x536bed,{locale:_0x91c67c}=this[_0x2b8021(0x18d)];return _0x3ca800[_0x2b8021(0x173)](_0x22089b=>{const _0x5ce2fa=_0x2b8021,_0x18f06f=_0x2087dc(_0x91c67c,_0x22089b,_0x5ce2fa(0x1b4));switch(_0x22089b){case _0x3bb000[_0x5ce2fa(0x191)]:return{'icon':_0x28fa84[_0x5ce2fa(0x19f)],'type':_0x3bb000[_0x5ce2fa(0x191)],..._0x18f06f};case _0x3bb000[_0x5ce2fa(0x189)]:return{'icon':_0x17e4e7,'type':_0x3bb000[_0x5ce2fa(0x189)],..._0x18f06f};case _0x3bb000[_0x5ce2fa(0x172)]:return{'icon':_0x1637f4,'type':_0x3bb000[_0x5ce2fa(0x172)],..._0x18f06f};case _0x3bb000[_0x5ce2fa(0x18e)]:return{'icon':_0x3cf98a,'type':_0x3bb000[_0x5ce2fa(0x18e)],..._0x18f06f};case _0x3bb000[_0x5ce2fa(0x1b7)]:return{'icon':_0x4c784f,'type':_0x3bb000[_0x5ce2fa(0x1b7)],..._0x18f06f};case _0x3bb000[_0x5ce2fa(0x19b)]:return{'icon':_0xc276cc,'type':_0x3bb000[_0x5ce2fa(0x19b)],..._0x18f06f};case _0x3bb000[_0x5ce2fa(0x1bc)]:return{'icon':_0x510502,'type':_0x3bb000[_0x5ce2fa(0x1bc)],..._0x18f06f};case _0x3bb000[_0x5ce2fa(0x17b)]:return{'icon':_0x70a037,'type':_0x3bb000[_0x5ce2fa(0x17b)],..._0x18f06f};}});}[_0x536bed(0x196)](_0x24776f){const _0x87702c=_0x536bed;switch(_0x24776f){case _0x3bb000[_0x87702c(0x191)]:return _0x87702c(0x197);case _0x3bb000[_0x87702c(0x189)]:return _0x87702c(0x19a);default:return _0x87702c(0x1bd);}}[_0x536bed(0x185)](_0x35e2dc,_0x16f027){const _0x22c347=_0x536bed,_0x24bb81=this[_0x22c347(0x18d)],_0x53c992=new _0x35e2dc(_0x24bb81[_0x22c347(0x1bb)]),_0x361f91=_0x24bb81[_0x22c347(0x1ac)][_0x22c347(0x182)](_0x22c347(0x190));return _0x53c992[_0x22c347(0x183)](_0x22c347(0x1b9))['to'](_0x361f91),_0x53c992['on'](_0x22c347(0x184),()=>{const _0x5b9106=_0x22c347;_0x361f91[_0x5b9106(0x184)](_0x16f027);}),_0x53c992;}[_0x536bed(0x193)](_0x2387d9){const _0x2b21f0=_0x536bed,{locale:_0x34dd68}=this[_0x2b21f0(0x18d)],_0x2becb0=this[_0x2b21f0(0x18d)][_0x2b21f0(0x1b2)][_0x2b21f0(0x182)](_0x2b21f0(0x1b3)),_0x2dab99=_0x2387d9[0x0],_0x436c71=this[_0x2b21f0(0x185)](_0x4de0d3,_0x2dab99[_0x2b21f0(0x17a)]);return _0x436c71[_0x2b21f0(0x187)]=_0x2dab99[_0x2b21f0(0x187)],_0x436c71[_0x2b21f0(0x183)](_0x2b21f0(0x1a6))['to'](_0x2becb0,_0x2b21f0(0x1b0),_0x4c20ff=>_0x2087dc(_0x34dd68,_0x2dab99[_0x2b21f0(0x17a)],_0x4c20ff?_0x2b21f0(0x171):_0x2b21f0(0x1b4))[_0x2b21f0(0x188)]),_0x436c71[_0x2b21f0(0x1a7)]=!0x0,_0x436c71;}[_0x536bed(0x192)](_0x337537){const _0x46805c=_0x536bed,{locale:_0x153ecf}=this[_0x46805c(0x18d)],_0x2ebe17=this[_0x46805c(0x18d)][_0x46805c(0x1b2)][_0x46805c(0x182)](_0x46805c(0x1b3));return _0x337537[_0x46805c(0x173)](_0x4aaa13=>{const _0xc7fbb0=_0x46805c,_0x308633=this[_0xc7fbb0(0x185)](_0x4de0d3,_0x4aaa13[_0xc7fbb0(0x17a)]);return _0x308633[_0xc7fbb0(0x180)]=!0x0,_0x308633[_0xc7fbb0(0x187)]=_0x4aaa13[_0xc7fbb0(0x187)],_0x308633[_0xc7fbb0(0x183)](_0xc7fbb0(0x1a6))['to'](_0x2ebe17,_0xc7fbb0(0x1b0),_0x408394=>_0x2087dc(_0x153ecf,_0x4aaa13[_0xc7fbb0(0x17a)],_0x408394?_0xc7fbb0(0x171):_0xc7fbb0(0x1b4))[_0xc7fbb0(0x188)]),_0x308633;});}[_0x536bed(0x178)](_0x50a3ad){const _0x29c435=_0x536bed;return _0x50a3ad[_0x29c435(0x173)](_0x56c619=>{const _0x2f29ed=_0x29c435,_0x134816=this[_0x2f29ed(0x185)](_0x512d50,_0x56c619[_0x2f29ed(0x17a)]);return _0x134816[_0x2f29ed(0x187)]=_0x56c619[_0x2f29ed(0x187)],_0x134816[_0x2f29ed(0x1a6)]=_0x56c619[_0x2f29ed(0x1ae)],_0x134816;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3b39b8}from'ckeditor5/src/core.js';import{FileRepository as _0x553ee8}from'ckeditor5/src/upload.js';import _0xedca81 from'./uploadcareediting.js';import _0x33704f from'./utils/uploadutils.js';import{getImageUrls as _0x39db66}from'./utils/editingutils.js';export default class f extends _0x3b39b8{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x553ee8,_0xedca81];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x40861f=this['editor'];if(!!!_0x40861f['config']['get']('uploadcare'))return;_0x40861f['plugins']['get'](_0x553ee8)['createUploadAdapter']=_0x2e11a0=>new A(_0x2e11a0,_0x40861f),_0x40861f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x490513,{imageElement:_0x3e958c,data:_0x1d9383})=>{_0x40861f['model']['change'](_0x136a06=>{_0x136a06['setAttribute']('uploadcareImageId',_0x1d9383['uploadcareImageId'],_0x3e958c);});});}}class A{constructor(_0x30e01d,_0x721a8a){this['loader']=_0x30e01d,this['editor']=_0x721a8a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1d7b44=this['editor']['config']['get']('uploadcare.pubkey'),_0x5bfda6=await this['loader']['file'];return _0x33704f['upload']({'file':_0x5bfda6,'publicKey':_0x1d7b44,'signal':this['controller']['signal'],'onProgress':_0x221f2d=>{_0x221f2d&&_0x221f2d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x221f2d['value']);}})['then'](async _0x3ed6be=>{const {imageFallbackUrl:_0x350cd5,imageSources:_0x4eb54b}=_0x39db66(_0x3ed6be['cdnUrl'],_0x3ed6be['imageInfo']['width']);return{'uploadcareImageId':_0x3ed6be['uuid'],'default':_0x350cd5,'sources':_0x4eb54b};})['catch'](()=>{const _0x32da29=t('Cannot\x20upload\x20file:')+('\x20'+_0x5bfda6['name']+'.');return Promise['reject'](_0x32da29);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x1d068f}from'../uploadcareconfig.js';export function getTranslation(_0x190050,_0x225bf2,_0x4e8407){const t=_0x190050['t'],_0x189345=_0x190050['t'];switch(_0x225bf2){case _0x1d068f['Local']:return{'text':_0x189345('Insert'===_0x4e8407?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x189345('From\x20computer')};case _0x1d068f['URL']:return{'text':'Insert'===_0x4e8407?_0x189345('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x189345('Via\x20URL')};case _0x1d068f['Dropbox']:return{'text':t('Insert'===_0x4e8407?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x1d068f['Facebook']:return{'text':t('Insert'===_0x4e8407?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x1d068f['GDrive']:return{'text':t('Insert'===_0x4e8407?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x1d068f['GPhotos']:return{'text':t('Insert'===_0x4e8407?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x1d068f['Instagram']:return{'text':t('Insert'===_0x4e8407?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case _0x1d068f['OneDrive']:return{'text':t('Insert'===_0x4e8407?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x225bf2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x18fa(){var _0x1c4477=['230109zIozUp','2572760tGjWpW','createCollection','8025120weqnlD','fire','getFocusableElement','785262yMudoo','26449566KppjVF','5nsCWjT','div','146241GukoYK','bindTemplate','580ovqEzP','5495erqDMT','forwardCycle','focusTracker','2586ynBwgq','focusCycler','14FUXOZC','true'];_0x18fa=function(){return _0x1c4477;};return _0x18fa();}var _0x217e6b=_0x31db;function _0x31db(_0xb27ba0,_0xd17fc2){var _0x18fac6=_0x18fa();return _0x31db=function(_0x31dba0,_0x444b84){_0x31dba0=_0x31dba0-0x19f;var _0x5a192f=_0x18fac6[_0x31dba0];return _0x5a192f;},_0x31db(_0xb27ba0,_0xd17fc2);}(function(_0x13366e,_0x55f81c){var _0x2d2eb4=_0x31db,_0x547158=_0x13366e();while(!![]){try{var _0x32d92b=-parseInt(_0x2d2eb4(0x1b0))/0x1+-parseInt(_0x2d2eb4(0x1a8))/0x2*(parseInt(_0x2d2eb4(0x1aa))/0x3)+parseInt(_0x2d2eb4(0x1ab))/0x4*(-parseInt(_0x2d2eb4(0x1b2))/0x5)+-parseInt(_0x2d2eb4(0x1a6))/0x6*(-parseInt(_0x2d2eb4(0x1a3))/0x7)+-parseInt(_0x2d2eb4(0x1ad))/0x8+parseInt(_0x2d2eb4(0x1a0))/0x9*(parseInt(_0x2d2eb4(0x1a2))/0xa)+parseInt(_0x2d2eb4(0x1b1))/0xb;if(_0x32d92b===_0x55f81c)break;else _0x547158['push'](_0x547158['shift']());}catch(_0x499076){_0x547158['push'](_0x547158['shift']());}}}(_0x18fa,0xaefe2));import{FocusTracker as _0x2d47cd}from'ckeditor5/src/utils.js';import{View as _0x146353,FocusCycler as _0x4d0e53}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x146353{constructor(_0x3a2a46){var _0x239226=_0x31db;super(_0x3a2a46),this[_0x239226(0x1a5)]=new _0x2d47cd(),this[_0x239226(0x1a7)]=new _0x4d0e53({'focusables':this[_0x239226(0x1ac)](),'focusTracker':this[_0x239226(0x1a5)]});}[_0x217e6b(0x1af)](){var _0x1bc0af=_0x217e6b;return{'tag':_0x1bc0af(0x19f),'attributes':{'aria-hidden':_0x1bc0af(0x1a9),'tabindex':'0'},'on':{'focus':this[_0x1bc0af(0x1a1)]['to'](()=>{var _0x41119f=_0x1bc0af;this[_0x41119f(0x1a7)][_0x41119f(0x1ae)](_0x41119f(0x1a4));})}};}}
|