@ckeditor/ckeditor5-uploadcare 47.3.0-alpha.7 → 47.4.0-alpha.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/LICENSE.md +2 -2
- package/README.md +1 -1
- package/build/uploadcare.js +3 -3
- package/dist/index-content.css +1 -1
- package/dist/index-editor.css +41 -79
- package/dist/index.css +95 -85
- package/dist/index.js +4 -4
- package/dist/translations/af.d.ts +1 -1
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +1 -1
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +1 -1
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +1 -1
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/be.d.ts +1 -1
- package/dist/translations/be.js +2 -2
- package/dist/translations/be.umd.js +2 -2
- package/dist/translations/bg.d.ts +1 -1
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +1 -1
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +1 -1
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +1 -1
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +1 -1
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +1 -1
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +1 -1
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +1 -1
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +1 -1
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +1 -1
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +1 -1
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +1 -1
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +1 -1
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +1 -1
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +1 -1
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +1 -1
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +1 -1
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +1 -1
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +1 -1
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +1 -1
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +1 -1
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +1 -1
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +1 -1
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +1 -1
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +1 -1
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +1 -1
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +1 -1
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +1 -1
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +1 -1
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +1 -1
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +1 -1
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +1 -1
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +1 -1
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +1 -1
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +1 -1
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +1 -1
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +1 -1
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +1 -1
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +1 -1
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +1 -1
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +1 -1
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +1 -1
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +1 -1
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +1 -1
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +1 -1
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +1 -1
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +1 -1
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +1 -1
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +1 -1
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +1 -1
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +1 -1
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +1 -1
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +1 -1
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +1 -1
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +1 -1
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +1 -1
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +1 -1
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +1 -1
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +1 -1
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +1 -1
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +1 -1
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +1 -1
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +1 -1
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +1 -1
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +1 -1
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +1 -1
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +1 -1
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +1 -1
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/be.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/gu.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/hy.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/kk.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/oc.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sl.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/ti.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +11 -11
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +2 -2
- package/src/ui/uploadcarecontroller.d.ts +1 -1
- package/src/ui/uploadcarecontroller.js +3 -3
- package/src/ui/uploadcareformview.d.ts +1 -1
- package/src/ui/uploadcareformview.js +2 -2
- package/src/uploadcare.d.ts +1 -1
- package/src/uploadcare.js +2 -2
- package/src/uploadcarecommand.d.ts +1 -1
- package/src/uploadcarecommand.js +2 -2
- package/src/uploadcareconfig.d.ts +1 -1
- package/src/uploadcareconfig.js +2 -2
- package/src/uploadcareediting.d.ts +1 -1
- package/src/uploadcareediting.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +3 -3
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +2 -2
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +2 -2
- package/src/uploadcareimageedit.d.ts +1 -1
- package/src/uploadcareimageedit.js +2 -2
- package/src/uploadcareui.d.ts +1 -1
- package/src/uploadcareui.js +2 -2
- package/src/uploadcareuploadadapter.d.ts +1 -1
- package/src/uploadcareuploadadapter.js +2 -2
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/dialogfocusmanagerview.d.ts +1 -1
- package/src/utils/dialogfocusmanagerview.js +2 -2
- package/src/utils/editingutils.d.ts +1 -1
- package/src/utils/editingutils.js +2 -2
- package/src/utils/isancestor.d.ts +1 -1
- package/src/utils/isancestor.js +2 -2
- package/src/utils/uploadutils.d.ts +1 -1
- package/src/utils/uploadutils.js +2 -2
- package/theme/uploadcare-form.css +5 -2
- package/theme/uploadcare-theme.css +1 -1
- package/theme/uploadcareimageedit.css +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4779cf,Command as _0x13eeb9}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x313f56,IconGooglePhotos as _0x3179b6,IconGoogleDrive as _0x45b839,IconFacebook as _0x1b8a7f,IconDropbox as _0x59b998,IconUploadcareLink as _0x38ea51,IconUploadcareImageUpload as _0x3dfce2,IconError as _0xbd048f,IconUploadcareImageEdit as _0x3ae70f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1008af,MenuBarMenuListItemButtonView as _0x25b7de,View as _0x203cfa,FocusCycler as _0x575577,Dialog as _0x423b6,DialogViewPosition as _0x598f47,SpinnerView as _0x549009,IconView as _0x17b942,Notification as _0x5c3b23}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x25c7cc,DomEmitterMixin as _0x545af5,global as _0x3ab659,getAncestors as _0x328469,ObservableMixin as _0x2a8919,uid as _0xc112e2,createElement as _0x41585f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x34fd7a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x45c7da,info as _0x2d58b8}from'@uploadcare/upload-client';import*as _0x3b84a6 from'@uploadcare/file-uploader';var i=function(_0x262e3f){return _0x262e3f['Local']='local',_0x262e3f['URL']='url',_0x262e3f['Dropbox']='dropbox',_0x262e3f['GDrive']='gdrive',_0x262e3f['Facebook']='facebook',_0x262e3f['GPhotos']='gphotos',_0x262e3f['OneDrive']='onedrive',_0x262e3f;}({});function _(_0x188508,_0x4fbe27,_0x526e24){const t=_0x188508['t'],_0x345fb3=_0x188508['t'];switch(_0x4fbe27){case i['Local']:return{'text':_0x345fb3('Insert'===_0x526e24?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x345fb3('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x526e24?_0x345fb3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x345fb3('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x526e24?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x526e24?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x526e24?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x526e24?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x526e24?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4fbe27;}}class e extends _0x4779cf{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5dba8d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f7b17;for(const _0x55de3f in _0x5dba8d){const _0x135e6d=_0x55de3f,_0x3b5c41=_0x5dba8d[_0x135e6d];if('uploadcareLicenseKeyValid'==_0x3b5c41||'uploadcareLicenseKeyInvalid'==_0x3b5c41||'uploadcareLicenseKeyExpired'==_0x3b5c41||'uploadcareLicenseKeyDomainLimit'==_0x3b5c41||'uploadcareLicenseKeyNotAllowed'==_0x3b5c41||'uploadcareLicenseKeyEvaluationLimit'==_0x3b5c41||'uploadcareLicenseKeyTrialLimit'==_0x3b5c41||'uploadcareLicenseKeyUsageLimit'==_0x3b5c41){delete _0x5dba8d[_0x135e6d],_0x2f7b17=_0x3b5c41,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x484043}=this,_0x25f271=_0x484043['commands']['get']('uploadcare');if(!_0x25f271)return;const _0x5c68b5=this['_normalizeConfigSourceList'](_0x484043['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x20a07f,_0x4846df)=>{const _0x1b85dd=this['_getIntegrationKey'](_0x4846df['type']);return _0x20a07f[_0x1b85dd]||(_0x20a07f[_0x1b85dd]=[]),_0x20a07f[_0x1b85dd]['push'](_0x4846df),_0x20a07f;},{});_0x484043['plugins']['has']('ImageInsertUI')&&_0x484043['commands']['get']('uploadcare')&&Object['entries'](_0x5c68b5)['forEach'](([_0x16cbc0,_0x11e2d1])=>{_0x484043['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x16cbc0,'observable':()=>_0x25f271,'buttonViewCreator':()=>this['_createToolbarButton'](_0x11e2d1),'formViewCreator':()=>this['_createDropdownButtons'](_0x11e2d1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x11e2d1),'override':'assetManager'!==_0x16cbc0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x116eb6){const {locale:_0x2613d3}=this['editor'];return _0x116eb6['map'](_0x346c52=>{const _0x3161d5=_(_0x2613d3,_0x346c52,'Insert');switch(_0x346c52){case i['Local']:return{'icon':_0x3dfce2,'type':i['Local'],..._0x3161d5};case i['URL']:return{'icon':_0x38ea51,'type':i['URL'],..._0x3161d5};case i['Dropbox']:return{'icon':_0x59b998,'type':i['Dropbox'],..._0x3161d5};case i['Facebook']:return{'icon':_0x1b8a7f,'type':i['Facebook'],..._0x3161d5};case i['GDrive']:return{'icon':_0x45b839,'type':i['GDrive'],..._0x3161d5};case i['GPhotos']:return{'icon':_0x3179b6,'type':i['GPhotos'],..._0x3161d5};case i['OneDrive']:return{'icon':_0x313f56,'type':i['OneDrive'],..._0x3161d5};}});}['_getIntegrationKey'](_0x525e5f){switch(_0x525e5f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x431d49,_0x1c823f){const _0x15bdca=this['editor'],_0x24039c=new _0x431d49(_0x15bdca['locale']),_0x234ad9=_0x15bdca['commands']['get']('uploadcare');return _0x24039c['bind']('isEnabled')['to'](_0x234ad9),_0x24039c['on']('execute',()=>{_0x234ad9['execute'](_0x1c823f);}),_0x24039c;}['_createToolbarButton'](_0x5dd78b){const {locale:_0x893465}=this['editor'],_0x7a45c2=this['editor']['plugins']['get']('ImageInsertUI'),_0x3e36a6=_0x5dd78b[0x0],_0x3b9ab0=this['_createButton'](_0x1008af,_0x3e36a6['type']);return _0x3b9ab0['icon']=_0x3e36a6['icon'],_0x3b9ab0['bind']('label')['to'](_0x7a45c2,'isImageSelected',_0x2cbc3c=>_(_0x893465,_0x3e36a6['type'],_0x2cbc3c?'Replace':'Insert')['text']),_0x3b9ab0['tooltip']=!0x0,_0x3b9ab0;}['_createDropdownButtons'](_0x57fa99){const {locale:_0x450e39}=this['editor'],_0x459c50=this['editor']['plugins']['get']('ImageInsertUI');return _0x57fa99['map'](_0x16503f=>{const _0x1aa832=this['_createButton'](_0x1008af,_0x16503f['type']);return _0x1aa832['withText']=!0x0,_0x1aa832['icon']=_0x16503f['icon'],_0x1aa832['bind']('label')['to'](_0x459c50,'isImageSelected',_0x2bd495=>_(_0x450e39,_0x16503f['type'],_0x2bd495?'Replace':'Insert')['text']),_0x1aa832;});}['_createMenuBarButtons'](_0x505eab){return _0x505eab['map'](_0x368e5b=>{const _0x102567=this['_createButton'](_0x25b7de,_0x368e5b['type']);return _0x102567['icon']=_0x368e5b['icon'],_0x102567['label']=_0x368e5b['shortText'],_0x102567;});}}class F extends _0x203cfa{['focusTracker'];['focusCycler'];constructor(_0xe2f3e9){super(_0xe2f3e9),this['focusTracker']=new _0x25c7cc(),this['focusCycler']=new _0x575577({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x35b8cd,_0x34e177){super(_0x35b8cd),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x34e177}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x39d9fc,_0x237097){const _0xf97a13=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1ad5a8=>_0x1ad5a8<=_0x237097)['map'](_0x1a4803=>_0x39d9fc['replace'](/\/$/,'')+'/-/resize/'+_0x1a4803+'x/\x20'+_0x1a4803+'w');return{'imageFallbackUrl':_0x39d9fc,'imageSources':[{'srcset':_0xf97a13['join'](',\x20'),'sizes':'(max-width:\x20'+_0x237097+'px)\x20100vw,\x20'+_0x237097+'px','type':'image/webp'}]};}function S(_0x4d48dc,_0x4a5e8d,_0x232bb5){const _0x19bcd5=_0x4d48dc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x19bcd5?parseInt(_0x19bcd5[0x1],0xa):_0x4a5e8d,'height':_0x19bcd5?parseInt(_0x19bcd5[0x2],0xa):_0x232bb5};}function p(_0x33102b,_0x1aa296){const _0x262d8d=new(_0x545af5())(),_0x200802=_0x33102b['plugins']['get']('ImageUtils'),_0x536743=_0x33102b['editing']['mapper']['toViewElement'](_0x1aa296),_0x47b0bb=_0x200802['findViewImgElement'](_0x536743),_0x65b5e0=_0x33102b['editing']['view']['domConverter']['viewToDom'](_0x47b0bb),_0x31c76a=_0x1aa296['getAttribute']('width'),_0x39515b=_0x1aa296['getAttribute']('height'),_0x2a6550='image-processing';_0x33102b['editing']['view']['change'](_0x7e047a=>{_0x7e047a['addClass'](_0x2a6550,_0x536743),_0x7e047a['setStyle']('aspect-ratio',_0x31c76a+'/'+_0x39515b,_0x47b0bb);}),_0x262d8d['listenTo'](_0x65b5e0,'load',()=>{_0x262d8d['stopListening'](_0x65b5e0,'load'),_0x33102b['editing']['view']['change'](_0x4a89a8=>{_0x4a89a8['removeClass'](_0x2a6550,_0x536743),_0x4a89a8['removeStyle']('aspect-ratio',_0x47b0bb);});});}function G(_0x1f5af1){if(Array['isArray'](_0x1f5af1)){const _0x3ca5b8=_0x1f5af1['map'](G);return _0x136d30=>_0x3ca5b8['some'](_0x37bc0d=>_0x37bc0d(_0x136d30));}if('origin'==_0x1f5af1){const _0x33fb66=_0x3ab659['window']['location']['origin'];return _0x1fb096=>new URL(_0x1fb096,_0x3ab659['document']['baseURI'])['origin']==_0x33fb66;}return'function'==typeof _0x1f5af1?_0x1f5af1:_0x1f5af1 instanceof RegExp?_0x4879b9=>!(!_0x4879b9['match'](_0x1f5af1)&&!_0x4879b9['replace'](/^https?:\/\//,'')['match'](_0x1f5af1)):()=>!0x1;}function A(_0x62c0a1,_0x57219d){return _0x328469(_0x62c0a1['target'])['includes'](_0x57219d);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2a8919(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b0caf,_0x514dd9,_0x288b78){super(),this['_editor']=_0x4b0caf,this['_editing']=_0x514dd9,this['_dialog']=_0x4b0caf['plugins']['get'](_0x423b6),this['_api']=_0x514dd9['ctxElement']['getAPI'](),this['_type']=_0x288b78,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x3e8bc9,model:_0x3489c4}=this['_editor'],_0x9333a8=_0x3489c4['document']['selection']['getSelectedElement'](),_0x54e82b=_0x9333a8&&(_0x9333a8['is']('element','imageBlock')||_0x9333a8['is']('element','imageInline'));this['_formView']=new x(_0x3e8bc9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3dfce2,'title':_(_0x3e8bc9,this['_type'],_0x54e82b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x598f47['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1709db=>!A(_0x1709db,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3c24df}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xbb3ad6=>{const _0x5598b4=_0x3c24df['length'];for(const _0x52dedd of _0x3c24df){const _0x33c0ea=_0x52dedd===_0x3c24df[_0x5598b4-0x1],{cdnUrl:_0x9fc219,fileInfo:_0x886563}=_0x52dedd;if(!_0x9fc219||!_0x886563)continue;const {width:_0x585e8c,height:_0x23f062}=_0x886563['imageInfo'],_0x57aedc=S(_0x9fc219,_0x585e8c,_0x23f062),_0x534099=C(_0x9fc219,_0x57aedc['width']),_0x4bedea={'id':_0x886563['uuid'],'type':'image','attributes':{'imageDimension':_0x57aedc,..._0x534099}};this['_insertAsset'](_0x4bedea,_0x33c0ea,_0xbb3ad6);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1c7528=>{'idle'===_0x1c7528['detail']['status']&&!_0x1c7528['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x91f568,_0x4c1a7e,_0x45dba8){const _0x3f82b9=this['_editor']['model']['document']['selection'],_0x4d12e3=_0x3f82b9['getSelectedElement'](),_0x286bf4=!(!_0x4d12e3||!_0x4d12e3['is']('element','imageInline'));_0x45dba8['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x91f568,_0x286bf4),_0x4c1a7e||_0x45dba8['setSelection'](_0x3f82b9['getLastPosition']());}['_insertImage'](_0x42938e,_0x230e90){const _0x18c85b=this['_editor'],{imageDimension:_0x549ede,imageFallbackUrl:_0x3d1fe4,imageSources:_0x2a2d80}=_0x42938e['attributes'];_0x18c85b['execute']('insertImage',{'imageType':_0x230e90?'imageInline':null,'source':{'uploadcareImageId':_0x42938e['id'],'src':_0x3d1fe4,'sources':_0x2a2d80,..._0x549ede}});}}class w extends _0x13eeb9{['_editing'];['_controller']=null;static get['requires'](){return[_0x423b6,o];}constructor(_0x4057ea){super(_0x4057ea),this['_editing']=_0x4057ea['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xdabe6b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xdabe6b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4ab657,..._0x408c9d}){return _0x45c7da(_0x4ab657,_0x408c9d);}static['getInfo'](_0x48c167,_0x206df6){return _0x2d58b8(_0x48c167,_0x206df6);}}class f extends _0x4779cf{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x34fd7a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x409cb4=this['editor'];if(!!!_0x409cb4['config']['get']('uploadcare'))return;_0x409cb4['plugins']['get'](_0x34fd7a)['createUploadAdapter']=_0x49821d=>new k(_0x49821d,_0x409cb4),_0x409cb4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2cfa33,{imageElement:_0x56b17,data:_0x10da74})=>{_0x409cb4['model']['change'](_0x80de73=>{_0x80de73['setAttribute']('uploadcareImageId',_0x10da74['uploadcareImageId'],_0x56b17);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2dd8d4,_0x30a48a){this['loader']=_0x2dd8d4,this['editor']=_0x30a48a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4ac33e=await this['loader']['file'];return j['upload']({'file':_0x4ac33e,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x55207e=>{_0x55207e&&_0x55207e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x55207e['value']);}})['then'](async _0x298d2b=>{const {imageFallbackUrl:_0x34bc98,imageSources:_0x20a962}=C(_0x298d2b['cdnUrl'],_0x298d2b['imageInfo']['width']);return{'uploadcareImageId':_0x298d2b['uuid'],'default':_0x34bc98,'sources':_0x20a962};})['catch'](()=>{const _0x45a88f=t('Cannot\x20upload\x20file:')+('\x20'+_0x4ac33e['name']+'.');return Promise['reject'](_0x45a88f);});}['abort'](){this['controller']['abort']();}}class o extends _0x4779cf{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x423b6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x291a7c){super(_0x291a7c),this['ucContextId']=_0xc112e2();}['init'](){const _0x3bf18f=this['editor'];_0x3bf18f['commands']['add']('uploadcare',new w(_0x3bf18f));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x5d116b=_0x3ab659['document']['querySelector']('input[uploadcare-file-input]');_0x5d116b&&_0x5d116b['remove']();}),async function(_0x5c8a0c){const _0x43f899=_0x409dd3([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4f7eaf=0x535f8c3a,_0x501c30=0x5358f6e2^_0x4f7eaf,_0x273743=window[_0x409dd3([0x44,0x61,0x74,0x65])][_0x409dd3([0x6e,0x6f,0x77])](),_0x50b88e=_0x5c8a0c[_0x409dd3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37bd85=new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58de04=>{_0x50b88e[_0x409dd3([0x6f,0x6e,0x63,0x65])](_0x409dd3([0x72,0x65,0x61,0x64,0x79]),_0x58de04);}),_0x2670e5={[_0x409dd3([0x6b,0x74,0x79])]:_0x409dd3([0x45,0x43]),[_0x409dd3([0x75,0x73,0x65])]:_0x409dd3([0x73,0x69,0x67]),[_0x409dd3([0x63,0x72,0x76])]:_0x409dd3([0x50,0x2d,0x32,0x35,0x36]),[_0x409dd3([0x78])]:_0x409dd3([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]),[_0x409dd3([0x79])]:_0x409dd3([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]),[_0x409dd3([0x61,0x6c,0x67])]:_0x409dd3([0x45,0x53,0x32,0x35,0x36])},_0x450f12=_0x50b88e[_0x409dd3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x409dd3([0x67,0x65,0x74])](_0x409dd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9b7f93(){let _0x3e8640,_0x5e9e3e=null,_0x16459f=null;try{if(_0x450f12==_0x409dd3([0x47,0x50,0x4c]))return _0x409dd3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e8640=_0x14f135(),!_0x3e8640)return _0x409dd3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e8640[_0x409dd3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16459f=_0x400096(_0x3e8640[_0x409dd3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e8640[_0x409dd3([0x6a,0x74,0x69])])),await _0x2d4476()?_0x5ad6c4()?_0x512eb8()?_0x409dd3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b0451()?(_0x3e8640[_0x409dd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x409dd3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e9e3e=_0x44f9c5(_0x409dd3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e8640[_0x409dd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x409dd3([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e9e3e=_0x44f9c5(_0x409dd3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36322c()):_0x409dd3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x409dd3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x409dd3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x409dd3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x512eb8(){const _0x2febbd=[_0x409dd3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x409dd3([0x74,0x72,0x69,0x61,0x6c])][_0x409dd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e8640[_0x409dd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x273743/0x3e8:0xe10*_0x501c30;return _0x3e8640[_0x409dd3([0x65,0x78,0x70])]<_0x2febbd;}function _0x5ad6c4(){const _0x3b2cd4=_0x3e8640[_0x409dd3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b2cd4&&(!!_0x3b2cd4[_0x409dd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x409dd3([0x2a]))||!!_0x3b2cd4[_0x409dd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x409dd3([0x55,0x50,0x4c,0x43])));}function _0x4b0451(){const _0x3ec143=_0x3e8640[_0x409dd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ec143||0x0==_0x3ec143[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48d0bb}=new URL(window[_0x409dd3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ec143[_0x409dd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d0bb))return!0x0;const _0x125b4e=_0x48d0bb[_0x409dd3([0x73,0x70,0x6c,0x69,0x74])](_0x409dd3([0x2e]));return _0x3ec143[_0x409dd3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42d3a3=>_0x42d3a3[_0x409dd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x409dd3([0x2a])))[_0x409dd3([0x6d,0x61,0x70])](_0x5866c0=>_0x5866c0[_0x409dd3([0x73,0x70,0x6c,0x69,0x74])](_0x409dd3([0x2e])))[_0x409dd3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cea6e=>_0x3cea6e[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x125b4e[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x409dd3([0x6d,0x61,0x70])](_0x1b109d=>Array(_0x125b4e[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b109d[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x409dd3([0x66,0x69,0x6c,0x6c])](_0x1b109d[0x0]===_0x409dd3([0x2a])?_0x409dd3([0x2a]):'')[_0x409dd3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b109d))[_0x409dd3([0x73,0x6f,0x6d,0x65])](_0x47c1b2=>_0x125b4e[_0x409dd3([0x65,0x76,0x65,0x72,0x79])]((_0x334b72,_0x17799e)=>_0x47c1b2[_0x17799e]===_0x334b72||_0x47c1b2[_0x17799e]===_0x409dd3([0x2a])));}function _0x36322c(){return _0x5e9e3e&&_0x16459f?new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd34cc4,_0x509bf2)=>{_0x5e9e3e[_0x409dd3([0x74,0x68,0x65,0x6e])](_0xd34cc4,_0x509bf2),_0x16459f[_0x409dd3([0x74,0x68,0x65,0x6e])](_0x2ca64f=>{_0x2ca64f!=_0x409dd3([0x56,0x61,0x6c,0x69,0x64])&&_0xd34cc4(_0x2ca64f);},_0x509bf2);}):_0x5e9e3e||_0x16459f||_0x409dd3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x400096(_0x554c97,_0x3d04eb){return new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xadfe6e=>{if(_0xe2d8c1())return _0xadfe6e(_0x409dd3([0x56,0x61,0x6c,0x69,0x64]));_0x52ccdb(),_0x50b88e[_0x409dd3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x409dd3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x389ab4=!0x1;const _0x1b3911=_0xc112e2();function _0x1579bc(_0x477eb3){return!!_0x477eb3&&(typeof _0x477eb3===_0x409dd3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x477eb3===_0x409dd3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x477eb3[_0x409dd3([0x74,0x68,0x65,0x6e])]===_0x409dd3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x477eb3[_0x409dd3([0x63,0x61,0x74,0x63,0x68])]===_0x409dd3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b0a2a(_0x9ac8b2){_0x17de20(_0x9ac8b2)[_0x409dd3([0x74,0x68,0x65,0x6e])](_0x3f7d0a=>{if(!_0x3f7d0a||_0x3f7d0a[_0x409dd3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x409dd3([0x6f,0x6b]))return _0x409dd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x293047(_0xc6c6a4(_0x1b3911+_0x3d04eb))!=_0x3f7d0a[_0x409dd3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x409dd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x409dd3([0x56,0x61,0x6c,0x69,0x64]);})[_0x409dd3([0x74,0x68,0x65,0x6e])](_0x392980=>(_0x21fd3f(),_0x392980),()=>{const _0x406c2c=_0x31692f();return null==_0x406c2c?(_0x21fd3f(),_0x409dd3([0x56,0x61,0x6c,0x69,0x64])):_0x409dd3(_0x273743-_0x406c2c>(0x7753083a^_0x4f7eaf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x409dd3([0x74,0x68,0x65,0x6e])](_0xadfe6e)[_0x409dd3([0x63,0x61,0x74,0x63,0x68])](()=>{_0xadfe6e(_0x409dd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4865d0=0x536962ba^_0x4f7eaf;function _0x21fd3f(){const _0x142617=_0x409dd3([0x6c,0x6c,0x63,0x74,0x2d])+_0x293047(_0xc6c6a4(_0x554c97)),_0x4f4d53=_0x4cbbc7(_0x293047(window[_0x409dd3([0x4d,0x61,0x74,0x68])][_0x409dd3([0x63,0x65,0x69,0x6c])](_0x273743/_0x4865d0)));window[_0x409dd3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x409dd3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x142617,_0x4f4d53);}function _0x31692f(){const _0x1652e5=_0x409dd3([0x6c,0x6c,0x63,0x74,0x2d])+_0x293047(_0xc6c6a4(_0x554c97)),_0x5eba8e=window[_0x409dd3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x409dd3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1652e5);return _0x5eba8e?window[_0x409dd3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cbbc7(_0x5eba8e),0x10)*_0x4865d0:null;}function _0x17de20(_0x19ea4e){return new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1984b0,_0x3533bb)=>{_0x19ea4e[_0x409dd3([0x74,0x68,0x65,0x6e])](_0x1984b0,_0x3533bb),window[_0x409dd3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3533bb,0x535e58fa^_0x4f7eaf);});}}_0x50b88e[_0x409dd3([0x6f,0x6e])](_0x409dd3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4458c8,_0x1cdcad)=>{if(_0x1cdcad[0x0]!=_0x554c97)return _0xadfe6e(_0x409dd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cdcad[0x1]={..._0x1cdcad[0x1],[_0x409dd3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b3911};},{[_0x409dd3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x409dd3([0x68,0x69,0x67,0x68])}),_0x50b88e[_0x409dd3([0x6f,0x6e])](_0x409dd3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e3de4=>{_0x1579bc(_0x4e3de4[_0x409dd3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x389ab4=!0x0,_0x3b0a2a(_0x4e3de4[_0x409dd3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x409dd3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x409dd3([0x6c,0x6f,0x77])}),_0x37bd85[_0x409dd3([0x74,0x68,0x65,0x6e])](()=>{_0x389ab4||_0xadfe6e(_0x409dd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe2d8c1(){return _0x50b88e[_0x409dd3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x409dd3([0x76,0x69,0x65,0x77])][_0x409dd3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x409dd3([0x61,0x75,0x74,0x6f]);}function _0x52ccdb(){_0x50b88e[_0x409dd3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x409dd3([0x76,0x69,0x65,0x77])][_0x409dd3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x409dd3([0x61,0x75,0x74,0x6f]);}}function _0x44f9c5(_0xcd131b){const _0x33f4bb=[new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55fe22=>setTimeout(_0x55fe22,0x5356b2f6^_0x4f7eaf)),_0x37bd85[_0x409dd3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x308136=>{let _0x41a65a=0x0;_0x50b88e[_0x409dd3([0x6d,0x6f,0x64,0x65,0x6c])][_0x409dd3([0x6f,0x6e])](_0x409dd3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1baf1c,_0x10c482)=>{_0x10c482[0x0][_0x409dd3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x41a65a++,_0x41a65a==(0x535f8dc2^_0x4f7eaf)&&(_0x308136(),_0x1baf1c[_0x409dd3([0x6f,0x66,0x66])]());});}))];return window[_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x409dd3([0x72,0x61,0x63,0x65])](_0x33f4bb)[_0x409dd3([0x74,0x68,0x65,0x6e])](()=>_0xcd131b);}async function _0x567cc7(){await _0x37bd85,_0x50b88e[_0x409dd3([0x6d,0x6f,0x64,0x65,0x6c])][_0x409dd3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x423944,_0x50b88e[_0x409dd3([0x6d,0x6f,0x64,0x65,0x6c])][_0x409dd3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x423944,_0x50b88e[_0x409dd3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x409dd3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x274f5d(_0x289f96){const _0x349f34=_0x4fd09d();_0x50b88e[_0x349f34]=_0x409dd3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x289f96,_0x289f96!=_0x409dd3([0x56,0x61,0x6c,0x69,0x64])&&_0x567cc7();}function _0x4fd09d(){const _0x72ec2c=window[_0x409dd3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x409dd3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x409dd3([0x6e,0x6f,0x77])]())[_0x409dd3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x409dd3([0x2e]),'');let _0x10e854=_0x409dd3([0x68]);for(let _0x34a86f=0x0;_0x34a86f<_0x72ec2c[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34a86f+=0x2){let _0x2973b1=window[_0x409dd3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x72ec2c[_0x409dd3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34a86f,_0x34a86f+0x2));_0x2973b1>=_0x43f899[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2973b1-=_0x43f899[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10e854+=_0x43f899[_0x2973b1];}return _0x10e854;}function _0x14f135(){const _0x146080=_0x450f12[_0x409dd3([0x73,0x70,0x6c,0x69,0x74])](_0x409dd3([0x2e]));if(0x3!=_0x146080[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x508372(_0x146080[0x1]);function _0x508372(_0x5787fc){const _0x58c957=_0x1b5313(_0x5787fc);return _0x58c957&&_0x47abfa()?_0x58c957:null;function _0x47abfa(){const _0x4a7008=_0x58c957[_0x409dd3([0x6a,0x74,0x69])],_0x2f753a=window[_0x409dd3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a7008[_0x409dd3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a7008[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x325623={..._0x58c957,[_0x409dd3([0x6a,0x74,0x69])]:_0x4a7008[_0x409dd3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a7008[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x325623[_0x409dd3([0x76,0x63])],_0xc6c6a4(_0x325623)==_0x2f753a;}}}async function _0x2d4476(){let _0x2b6ad1=!0x0;try{const _0xa1fc05=_0x450f12[_0x409dd3([0x73,0x70,0x6c,0x69,0x74])](_0x409dd3([0x2e])),[_0x4a30d6,_0x58bc33,_0x1d3bac]=_0xa1fc05;return _0x52e0df(_0x4a30d6),await _0x2babd8(_0x4a30d6,_0x58bc33,_0x1d3bac),_0x2b6ad1;}catch{return!0x1;}function _0x52e0df(_0x2bbbe9){const _0x35478a=_0x1b5313(_0x2bbbe9);_0x35478a&&_0x35478a[_0x409dd3([0x61,0x6c,0x67])]==_0x409dd3([0x45,0x53,0x32,0x35,0x36])||(_0x2b6ad1=!0x1);}async function _0x2babd8(_0x456645,_0x12a8db,_0x57ddf2){const _0x2d2b75=window[_0x409dd3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x409dd3([0x66,0x72,0x6f,0x6d])](_0x3bfad5(_0x57ddf2),_0x2e3da9=>_0x2e3da9[_0x409dd3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x85f34f=new window[(_0x409dd3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x409dd3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x456645+_0x409dd3([0x2e])+_0x12a8db),_0x176b53=window[_0x409dd3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x409dd3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x176b53)return;const _0x521b63=await _0x176b53[_0x409dd3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x409dd3([0x6a,0x77,0x6b]),_0x2670e5,{[_0x409dd3([0x6e,0x61,0x6d,0x65])]:_0x409dd3([0x45,0x43,0x44,0x53,0x41]),[_0x409dd3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x409dd3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x409dd3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x176b53[_0x409dd3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x409dd3([0x6e,0x61,0x6d,0x65])]:_0x409dd3([0x45,0x43,0x44,0x53,0x41]),[_0x409dd3([0x68,0x61,0x73,0x68])]:{[_0x409dd3([0x6e,0x61,0x6d,0x65])]:_0x409dd3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x521b63,_0x2d2b75,_0x85f34f)||(_0x2b6ad1=!0x1);}}function _0x1b5313(_0x15e670){return _0x15e670[_0x409dd3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x409dd3([0x65,0x79]))?JSON[_0x409dd3([0x70,0x61,0x72,0x73,0x65])](_0x3bfad5(_0x15e670)):null;}function _0x3bfad5(_0x3d2b34){return window[_0x409dd3([0x61,0x74,0x6f,0x62])](_0x3d2b34[_0x409dd3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x409dd3([0x2b]))[_0x409dd3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x409dd3([0x2f])));}function _0xc6c6a4(_0x1366be){let _0x57783f=0x1505;function _0x3b175e(_0x56efd1){for(let _0x57faf2=0x0;_0x57faf2<_0x56efd1[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57faf2++){const _0x178b32=_0x56efd1[_0x409dd3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57faf2);_0x57783f=(_0x57783f<<0x5)+_0x57783f+_0x178b32,_0x57783f&=_0x57783f;}}function _0xd72cf8(_0x3226d7){Array[_0x409dd3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3226d7)?_0x3226d7[_0x409dd3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd72cf8):_0x3226d7&&typeof _0x3226d7==_0x409dd3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x409dd3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3226d7)[_0x409dd3([0x73,0x6f,0x72,0x74])]()[_0x409dd3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x579900,_0x1ad65f])=>{_0x3b175e(_0x579900),_0xd72cf8(_0x1ad65f);}):_0x3b175e(window[_0x409dd3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3226d7));}return _0xd72cf8(_0x1366be),_0x57783f>>>0x0;}function _0x293047(_0x1f7981){return _0x1f7981[_0x409dd3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x409dd3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x409dd3([0x30]));}function _0x4cbbc7(_0x572d78){return _0x572d78[_0x409dd3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x409dd3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x409dd3([0x6a,0x6f,0x69,0x6e])]('');}function _0x423944(){}function _0x409dd3(_0x26bacc){return _0x26bacc['map'](_0x298511=>String['fromCharCode'](_0x298511))['join']('');}_0x274f5d(await _0x9b7f93());}(this);}['_initSchema'](){const _0x4b2b23=this['editor']['model']['schema'];_0x4b2b23['isRegistered']('imageBlock')&&_0x4b2b23['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4b2b23['isRegistered']('imageInline')&&_0x4b2b23['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x30f7ae=this['editor'];_0x30f7ae['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x30f7ae['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x50a1df=>_0x50a1df['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4835e7=_0x30f7ae['commands']['get']('replaceImageSource');_0x4835e7&&this['listenTo'](_0x4835e7,'cleanupImage',(_0x300c9c,[_0x5e5d34,_0x52836e])=>{_0x5e5d34['removeAttribute']('uploadcareImageId',_0x52836e);});}['_initConfig'](){const _0x3ea9ad=this['editor']['config']['get']('uploadcare.uploader')||{},_0xb93971=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x41585f(_0x3ab659['document'],'uc-config',{..._0x3ea9ad,'pubkey':_0xb93971,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\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'}),this['_configElement']['iconHrefResolver']=_0x5ae00e=>{if('closeMax'==_0x5ae00e)return'#uc-icon-arrow-down';},_0x3ab659['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x41585f(_0x3ab659['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3ab659['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1a5439=this['editor']['commands']['get']('insertImage');_0x1a5439&&this['listenTo'](_0x1a5439,'execute',()=>{const _0x5941f7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5941f7&&_0x5941f7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5941f7);});});const _0x43a836=this['editor']['commands']['get']('uploadcareImageReplace');_0x43a836&&this['listenTo'](_0x43a836,'execute',()=>{const _0x577918=this['editor']['model']['document']['selection']['getSelectedElement']();_0x577918&&_0x577918['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x577918);});});}}class tt extends _0x4779cf{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3290d7){super(_0x3290d7),_0x3290d7['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3b84a6['defineComponents'](_0x3b84a6),this['_defineLocale']();}['_defineLocale'](){const _0x2630db=this['editor']['config']['get']('uploadcare.locale'),_0x1c0057=this['editor']['locale']['contentLanguage'];_0x2630db&&_0x3b84a6['defineLocale'](_0x1c0057,_0x2630db);}}class ii extends _0x203cfa{constructor(_0xa48efe){super(_0xa48efe);const t=_0xa48efe['t'],_0x56c914=this['bindTemplate'],_0x1836b4=new _0x549009();_0x1836b4['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':[_0x1836b4,{'text':_0x56c914['to']('imageUploadProgress',_0x4a0f11=>t('Loading\x20image...')+'\x20('+(_0x4a0f11||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'}]}]}]});}}class ti extends _0x203cfa{constructor(_0x229d20){super(_0x229d20);const t=_0x229d20['t'];this['set']('errorType',null);const _0x420000=new _0x1008af(_0x229d20);_0x420000['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x420000['withText']=!0x0,_0x420000['class']='ck-button-action',_0x420000['on']('execute',()=>{this['fire']('retry');}),_0x420000['bind']('isVisible')['to'](this,'errorType',_0x4bfd00=>'NotFound'!==_0x4bfd00);const _0x2eb7d6=new _0x17b942();_0x2eb7d6['content']=_0xbd048f,_0x2eb7d6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3e1208=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':[_0x2eb7d6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3e1208['to']('errorType',_0x127e2a=>t('NotFound'!==_0x127e2a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x420000]},{'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'}]}]}]});}}class ei extends _0x203cfa{constructor(_0x56a8bb,_0x573e39){super(_0x56a8bb);const _0x58cb00=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x573e39,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x58cb00['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4aa803,_0x3fc885,_0x1f47d7){super(_0x4aa803),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4aa803),this['_errorView']=new ti(_0x4aa803),this['_editingView']=new ei(_0x4aa803,_0x1f47d7),this['_focusableView']=new _0x203cfa(_0x4aa803),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3fc885),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x1266de=>{this['_addUploadcareImageEditorListeners'](_0x1266de);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x50a3cc,_0x54cb68){const _0x1bd520='uc-cloud-image-editor',_0x5b10dc=_0x50a3cc['querySelector'](_0x1bd520);if(_0x5b10dc)return _0x54cb68(_0x5b10dc);const _0x5898bb=new MutationObserver(_0xffa657=>{const _0x51623c=_0xffa657['filter'](_0x41ed5f=>_0x41ed5f['target']===_0x50a3cc&&_0x41ed5f['addedNodes']['length']>0x0&&_0x41ed5f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1bd520);_0x51623c['length']&&(_0x5898bb['disconnect'](),_0x54cb68(_0x51623c[0x0]['addedNodes'][0x0]));});_0x5898bb['observe'](_0x50a3cc,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1d4cc8){_0x1d4cc8['addEventListener']('apply',_0xfe6963=>{this['fire']('apply',{'imageSrc':_0xfe6963['detail']['cdnUrl']});}),_0x1d4cc8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2a8919(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x24a829,_0x54734d,_0x339893){super(),this['_editor']=_0x24a829,this['_dialog']=_0x54734d,this['_imageElement']=_0x339893,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 _0x1302a9=this['_imageElement'],_0x25a562=_0x1302a9['getAttribute']('uploadcareImageId'),_0x548fc2=_0x1302a9['getAttribute']('src');if(_0x25a562)await this['_loadImageInfo'](_0x25a562,_0x548fc2);else{if(this['_imageCache']['has'](_0x548fc2)){const _0x383b71=this['_imageCache']['get'](_0x548fc2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x383b71['url'],this['imageDimension']=_0x383b71['dimension'],this['imageId']=_0x383b71['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x409e71}=this['_editor'],t=_0x409e71['t'],_0x4257fd=new X(_0x409e71,this['imageStatus'],this['_attributes']);_0x4257fd['bind']('status')['to'](this,'imageStatus'),_0x4257fd['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4257fd['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4257fd['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4257fd,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3ae70f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4257fd,'position':_0x598f47['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4257fd['focus']();},'onHide':()=>{_0x4257fd['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x382d42=>!A(_0x382d42,_0x4257fd['element'])}});}['_loadImageInfo'](_0x50b2f8,_0x2ef9de){return j['getInfo'](_0x50b2f8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1a9e43=>{const {width:_0xf7780e,height:_0xe643bf}=_0x1a9e43['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ef9de,this['imageDimension']={'width':_0xf7780e,'height':_0xe643bf},this['imageId']=_0x50b2f8;})['catch'](_0x31ea59=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x31ea59['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3aee8e,_0x2acdf1){return this['_getImageAsFile'](_0x3aee8e)['then'](_0x1599ff=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2acdf1['signal'],'file':_0x1599ff,'onProgress':_0x32f0af=>{_0x32f0af&&_0x32f0af['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x32f0af['value']));}}))['then'](_0x56f80e=>{const {width:_0x372ae0,height:_0x45ee2c}=_0x56f80e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56f80e['cdnUrl'],this['imageDimension']={'width':_0x372ae0,'height':_0x45ee2c},this['imageId']=_0x56f80e['uuid'],this['imageUploadProgress']=null;const _0x4693af=_0x3aee8e['getAttribute']('src');this['_imageCache']['set'](_0x4693af,{'id':_0x56f80e['uuid'],'url':_0x56f80e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5dfb8f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5dfb8f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3391b,_0x29e408){_0x3391b['on']('apply',(_0xd6a83c,_0x54bc3f)=>{this['_replaceImage'](_0x29e408,_0x54bc3f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3391b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3391b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1193af,_0x4060c2,_0x3adac4){const _0x109e59=this['_editor'],{width:_0x282e7c,height:_0x4983a9}=S(_0x4060c2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1a8615,imageSources:_0x4484e4}=C(_0x4060c2,_0x282e7c);_0x109e59['model']['change'](_0x810476=>{if('$graveyard'===_0x1193af['root']['rootName']){_0x109e59['execute']('insertImage',{'imageType':_0x1193af['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1193af['getAttributes']()),'uploadcareImageId':_0x3adac4,'src':_0x1a8615,'sources':_0x4484e4,'width':_0x282e7c,'height':_0x4983a9}});const _0x5558e5=_0x1193af['getChildren']();_0x1193af=_0x109e59['model']['document']['selection']['getSelectedElement']();for(const _0x1e25c4 of _0x5558e5)_0x810476['append'](_0x810476['cloneElement'](_0x1e25c4),_0x1193af);}else _0x810476['setSelection'](_0x1193af,'on'),_0x109e59['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1193af['getAttributes']()),'uploadcareImageId':_0x3adac4,'src':_0x1a8615,'sources':_0x4484e4,'width':_0x282e7c,'height':_0x4983a9},_0x1193af);_0x810476['setSelection'](_0x1193af,'on');});}async['_getImageAsFile'](_0x3e4ae2){const _0x499865=_0x3ab659['window'],_0x292da0=_0x3ab659['document']['location']['href'],_0x11e0b2=new _0x499865['URL'](_0x3e4ae2['getAttribute']('src'),_0x292da0);if('data:'===_0x11e0b2['protocol']){const _0x187c6a=_0x11e0b2['href']['split'](','),_0x218733=_0x187c6a[0x0]['match'](/:(.*?);/)[0x1],_0xb8f843=_0x218733['split']('/')[0x1],_0x20059e=_0x499865['atob'](_0x187c6a[_0x187c6a['length']-0x1]);let _0x46d202=_0x20059e['length'];const _0x4f6f04=new _0x499865['Uint8Array'](_0x46d202);for(;_0x46d202--;)_0x4f6f04[_0x46d202]=_0x20059e['charCodeAt'](_0x46d202);return new _0x499865['File']([_0x4f6f04],'image.'+_0xb8f843,{'type':_0x218733});}const _0x247a17=_0x11e0b2['href']['split']('/'),_0xcf003c=_0x247a17[_0x247a17['length']-0x1],_0x5caf3b=_0xcf003c['split']('.')[0x1];return _0x499865['fetch'](_0x11e0b2['href'])['then'](_0x5c3fe6=>_0x5c3fe6['clone']()['blob']())['then'](_0x3d8553=>new _0x499865['File']([_0x3d8553],_0xcf003c,{'type':'image/'+_0x5caf3b}));}}class O extends _0x13eeb9{['imageEditController'];static get['requires'](){return[_0x423b6];}['_isEditable'];constructor(_0x5622f3){super(_0x5622f3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x35959a){const _0x4684a8=G(_0x35959a);return _0x19c0d8=>!(!_0x19c0d8||!_0x19c0d8['is']('element','imageBlock')&&!_0x19c0d8['is']('element','imageInline'))&&(!!_0x19c0d8['hasAttribute']('uploadcareImageId')||!!_0x19c0d8['hasAttribute']('src')&&_0x4684a8(_0x19c0d8['getAttribute']('src')));}(_0x5622f3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3a0d80=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3a0d80);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x348a37=this['editor']['model']['document']['selection']['getSelectedElement']();_0x348a37&&(_0x348a37['is']('element','imageBlock')||_0x348a37['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x423b6),_0x348a37),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x13eeb9{['refresh'](){const _0x551afe=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x551afe&&(_0x551afe['is']('element','imageBlock')||_0x551afe['is']('element','imageInline')));}['execute'](_0x351c16){const _0x4e3536=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4dd3fb=>{_0x4dd3fb['setAttributes'](_0x351c16,_0x4e3536),_0x4dd3fb['removeAttribute']('srcset',_0x4e3536),_0x4dd3fb['removeAttribute']('sizes',_0x4e3536);});}}class m extends _0x4779cf{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5c3b23,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a8ca4}=this;_0x1a8ca4['commands']['add']('uploadcareImageEdit',new O(_0x1a8ca4)),_0x1a8ca4['commands']['add']('uploadcareImageReplace',new R(_0x1a8ca4));}}class g extends _0x4779cf{['_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 _0x1330fb=this['editor'];_0x1330fb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x9798=>{const _0x35b655=_0x1330fb['commands']['get']('uploadcareImageEdit'),_0x508640=new _0x1008af(_0x9798),t=_0x9798['t'];return _0x508640['set']({'icon':_0x3ae70f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x508640['bind']('isEnabled')['to'](_0x35b655),_0x508640['bind']('isOn')['to'](_0x35b655,'isActive'),this['listenTo'](_0x508640,'execute',()=>{_0x1330fb['execute']('uploadcareImageEdit'),_0x1330fb['editing']['view']['focus']();}),_0x508640;}),this['_initConfig']();}['_initConfig'](){const _0x50d3bc=_0x41585f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x50d3bc),this['listenTo'](this['editor'],'destroy',()=>{_0x50d3bc['remove']();});}}class et extends _0x4779cf{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x57f734,Command as _0x299966}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x59154c,IconGooglePhotos as _0x452593,IconGoogleDrive as _0x62a441,IconFacebook as _0x2844ac,IconDropbox as _0x545df9,IconUploadcareLink as _0x10fef5,IconUploadcareImageUpload as _0x2447f5,IconError as _0x9b358b,IconUploadcareImageEdit as _0x10ce09}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x483c24,MenuBarMenuListItemButtonView as _0x50fa87,View as _0x57f55b,FocusCycler as _0x513394,Dialog as _0x1cd250,DialogViewPosition as _0x578bde,SpinnerView as _0x27bad2,IconView as _0x196399,Notification as _0x4813e8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5a8f67,DomEmitterMixin as _0x1af71d,global as _0x5a3218,getAncestors as _0x2eb877,ObservableMixin as _0x603685,uid as _0xbf0ac1,createElement as _0x379042}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x22f14f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1f8aa2,info as _0x336f99}from'@uploadcare/upload-client';import*as _0xb41320 from'@uploadcare/file-uploader';var i=function(_0x3f2f74){return _0x3f2f74['Local']='local',_0x3f2f74['URL']='url',_0x3f2f74['Dropbox']='dropbox',_0x3f2f74['GDrive']='gdrive',_0x3f2f74['Facebook']='facebook',_0x3f2f74['GPhotos']='gphotos',_0x3f2f74['OneDrive']='onedrive',_0x3f2f74;}({});function _(_0x5e50c4,_0xe4ac22,_0x10d5bc){const t=_0x5e50c4['t'],_0x1bda40=_0x5e50c4['t'];switch(_0xe4ac22){case i['Local']:return{'text':_0x1bda40('Insert'===_0x10d5bc?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1bda40('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x10d5bc?_0x1bda40('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1bda40('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x10d5bc?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x10d5bc?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x10d5bc?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x10d5bc?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x10d5bc?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xe4ac22;}}class e extends _0x57f734{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xdc0578=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe9b661;for(const _0x585665 in _0xdc0578){const _0x2f4e5a=_0x585665,_0x2ee705=_0xdc0578[_0x2f4e5a];if('uploadcareLicenseKeyValid'==_0x2ee705||'uploadcareLicenseKeyInvalid'==_0x2ee705||'uploadcareLicenseKeyExpired'==_0x2ee705||'uploadcareLicenseKeyDomainLimit'==_0x2ee705||'uploadcareLicenseKeyNotAllowed'==_0x2ee705||'uploadcareLicenseKeyEvaluationLimit'==_0x2ee705||'uploadcareLicenseKeyUsageLimit'==_0x2ee705){delete _0xdc0578[_0x2f4e5a],_0xe9b661=_0x2ee705,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xe9b661&&_0xdc0578['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xe9b661&&_0xdc0578['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xe9b661&&_0xdc0578['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xe9b661&&_0xdc0578['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xe9b661&&_0xdc0578['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0xe9b661&&_0xdc0578['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x24aaa4}=this,_0xab2cd8=_0x24aaa4['commands']['get']('uploadcare');if(!_0xab2cd8)return;const _0x4f8dbf=this['_normalizeConfigSourceList'](_0x24aaa4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2b7e9c,_0xd57335)=>{const _0x58f75a=this['_getIntegrationKey'](_0xd57335['type']);return _0x2b7e9c[_0x58f75a]||(_0x2b7e9c[_0x58f75a]=[]),_0x2b7e9c[_0x58f75a]['push'](_0xd57335),_0x2b7e9c;},{});_0x24aaa4['plugins']['has']('ImageInsertUI')&&_0x24aaa4['commands']['get']('uploadcare')&&Object['entries'](_0x4f8dbf)['forEach'](([_0x59b3b7,_0x2f6d6e])=>{_0x24aaa4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x59b3b7,'observable':()=>_0xab2cd8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2f6d6e),'formViewCreator':()=>this['_createDropdownButtons'](_0x2f6d6e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2f6d6e),'override':'assetManager'!==_0x59b3b7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x36a968){const {locale:_0x4835f1}=this['editor'];return _0x36a968['map'](_0x4c914a=>{const _0x57e5c2=_(_0x4835f1,_0x4c914a,'Insert');switch(_0x4c914a){case i['Local']:return{'icon':_0x2447f5,'type':i['Local'],..._0x57e5c2};case i['URL']:return{'icon':_0x10fef5,'type':i['URL'],..._0x57e5c2};case i['Dropbox']:return{'icon':_0x545df9,'type':i['Dropbox'],..._0x57e5c2};case i['Facebook']:return{'icon':_0x2844ac,'type':i['Facebook'],..._0x57e5c2};case i['GDrive']:return{'icon':_0x62a441,'type':i['GDrive'],..._0x57e5c2};case i['GPhotos']:return{'icon':_0x452593,'type':i['GPhotos'],..._0x57e5c2};case i['OneDrive']:return{'icon':_0x59154c,'type':i['OneDrive'],..._0x57e5c2};}});}['_getIntegrationKey'](_0xbb430e){switch(_0xbb430e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x36e876,_0x39e2a4){const _0x7a824e=this['editor'],_0x407f0f=new _0x36e876(_0x7a824e['locale']),_0x2c47cd=_0x7a824e['commands']['get']('uploadcare');return _0x407f0f['bind']('isEnabled')['to'](_0x2c47cd),_0x407f0f['on']('execute',()=>{_0x2c47cd['execute'](_0x39e2a4);}),_0x407f0f;}['_createToolbarButton'](_0x1ff553){const {locale:_0x1d10cb}=this['editor'],_0x448a46=this['editor']['plugins']['get']('ImageInsertUI'),_0x51cd1f=_0x1ff553[0x0],_0x130935=this['_createButton'](_0x483c24,_0x51cd1f['type']);return _0x130935['icon']=_0x51cd1f['icon'],_0x130935['bind']('label')['to'](_0x448a46,'isImageSelected',_0x39cec2=>_(_0x1d10cb,_0x51cd1f['type'],_0x39cec2?'Replace':'Insert')['text']),_0x130935['tooltip']=!0x0,_0x130935;}['_createDropdownButtons'](_0x4a6e9e){const {locale:_0x2c7ab2}=this['editor'],_0x3c2c0c=this['editor']['plugins']['get']('ImageInsertUI');return _0x4a6e9e['map'](_0x58b221=>{const _0x252c6b=this['_createButton'](_0x483c24,_0x58b221['type']);return _0x252c6b['withText']=!0x0,_0x252c6b['icon']=_0x58b221['icon'],_0x252c6b['bind']('label')['to'](_0x3c2c0c,'isImageSelected',_0x2e85cc=>_(_0x2c7ab2,_0x58b221['type'],_0x2e85cc?'Replace':'Insert')['text']),_0x252c6b;});}['_createMenuBarButtons'](_0x3a3ca1){return _0x3a3ca1['map'](_0x25e6b2=>{const _0x5c04ca=this['_createButton'](_0x50fa87,_0x25e6b2['type']);return _0x5c04ca['icon']=_0x25e6b2['icon'],_0x5c04ca['label']=_0x25e6b2['shortText'],_0x5c04ca;});}}class F extends _0x57f55b{['focusTracker'];['focusCycler'];constructor(_0x1c320e){super(_0x1c320e),this['focusTracker']=new _0x5a8f67(),this['focusCycler']=new _0x513394({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x5d0c1f,_0x5a7639){super(_0x5d0c1f),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x5a7639}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5216a5,_0x1e3520){const _0xcecd0f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x58ae3a=>_0x58ae3a<=_0x1e3520)['map'](_0x16a021=>_0x5216a5['replace'](/\/$/,'')+'/-/resize/'+_0x16a021+'x/\x20'+_0x16a021+'w');return{'imageFallbackUrl':_0x5216a5,'imageSources':[{'srcset':_0xcecd0f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1e3520+'px)\x20100vw,\x20'+_0x1e3520+'px','type':'image/webp'}]};}function S(_0xad3fec,_0x38d606,_0x1f67d7){const _0x9b55aa=_0xad3fec['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x9b55aa?parseInt(_0x9b55aa[0x1],0xa):_0x38d606,'height':_0x9b55aa?parseInt(_0x9b55aa[0x2],0xa):_0x1f67d7};}function p(_0x2d5efa,_0x1f4d85){const _0x4ce602=new(_0x1af71d())(),_0x18614f=_0x2d5efa['plugins']['get']('ImageUtils'),_0x1b5e85=_0x2d5efa['editing']['mapper']['toViewElement'](_0x1f4d85),_0x211d8e=_0x18614f['findViewImgElement'](_0x1b5e85),_0x38f569=_0x2d5efa['editing']['view']['domConverter']['viewToDom'](_0x211d8e),_0xa65fc7=_0x1f4d85['getAttribute']('width'),_0x5079a7=_0x1f4d85['getAttribute']('height'),_0x32d768='image-processing';_0x2d5efa['editing']['view']['change'](_0xda95a7=>{_0xda95a7['addClass'](_0x32d768,_0x1b5e85),_0xda95a7['setStyle']('aspect-ratio',_0xa65fc7+'/'+_0x5079a7,_0x211d8e);}),_0x4ce602['listenTo'](_0x38f569,'load',()=>{_0x4ce602['stopListening'](_0x38f569,'load'),_0x2d5efa['editing']['view']['change'](_0xe5b018=>{_0xe5b018['removeClass'](_0x32d768,_0x1b5e85),_0xe5b018['removeStyle']('aspect-ratio',_0x211d8e);});});}function z(_0x21fe78){if(Array['isArray'](_0x21fe78)){const _0xc688e3=_0x21fe78['map'](z);return _0x2f12b3=>_0xc688e3['some'](_0x7ff5b=>_0x7ff5b(_0x2f12b3));}if('origin'==_0x21fe78){const _0x4c1a61=_0x5a3218['window']['location']['origin'];return _0x48ba80=>new URL(_0x48ba80,_0x5a3218['document']['baseURI'])['origin']==_0x4c1a61;}return'function'==typeof _0x21fe78?_0x21fe78:_0x21fe78 instanceof RegExp?_0x17cdfa=>!(!_0x17cdfa['match'](_0x21fe78)&&!_0x17cdfa['replace'](/^https?:\/\//,'')['match'](_0x21fe78)):()=>!0x1;}function A(_0x34fbc0,_0x151526){return _0x2eb877(_0x34fbc0['target'])['includes'](_0x151526);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x603685(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5548d7,_0x377ebe,_0x2704eb){super(),this['_editor']=_0x5548d7,this['_editing']=_0x377ebe,this['_dialog']=_0x5548d7['plugins']['get'](_0x1cd250),this['_api']=_0x377ebe['ctxElement']['getAPI'](),this['_type']=_0x2704eb,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x311b64,model:_0x2ad431}=this['_editor'],_0x49a82d=_0x2ad431['document']['selection']['getSelectedElement'](),_0x33c821=_0x49a82d&&(_0x49a82d['is']('element','imageBlock')||_0x49a82d['is']('element','imageInline'));this['_formView']=new x(_0x311b64,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2447f5,'title':_(_0x311b64,this['_type'],_0x33c821?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x578bde['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x502092=>!A(_0x502092,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x30635a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xcfcc74=>{const _0x19293a=_0x30635a['length'];for(const _0x4c94e2 of _0x30635a){const _0x401d9b=_0x4c94e2===_0x30635a[_0x19293a-0x1],{cdnUrl:_0x47565c,fileInfo:_0x18e7a7}=_0x4c94e2;if(!_0x47565c||!_0x18e7a7)continue;const {width:_0x24efa1,height:_0x276ee7}=_0x18e7a7['imageInfo'],_0x36ca71=S(_0x47565c,_0x24efa1,_0x276ee7),_0xaa2182=C(_0x47565c,_0x36ca71['width']),_0x9fb294={'id':_0x18e7a7['uuid'],'type':'image','attributes':{'imageDimension':_0x36ca71,..._0xaa2182}};this['_insertAsset'](_0x9fb294,_0x401d9b,_0xcfcc74);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x234567=>{'idle'===_0x234567['detail']['status']&&!_0x234567['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x322eac,_0x17df47,_0x5e1d19){const _0x508719=this['_editor']['model']['document']['selection'],_0x20cd7a=_0x508719['getSelectedElement'](),_0x1a232e=!(!_0x20cd7a||!_0x20cd7a['is']('element','imageInline'));_0x5e1d19['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x322eac,_0x1a232e),_0x17df47||_0x5e1d19['setSelection'](_0x508719['getLastPosition']());}['_insertImage'](_0x56cb4e,_0x3ef6f9){const _0x1fed0b=this['_editor'],{imageDimension:_0x2e6162,imageFallbackUrl:_0x42ed7a,imageSources:_0x4e2cb4}=_0x56cb4e['attributes'];_0x1fed0b['execute']('insertImage',{'imageType':_0x3ef6f9?'imageInline':null,'source':{'uploadcareImageId':_0x56cb4e['id'],'src':_0x42ed7a,'sources':_0x4e2cb4,..._0x2e6162}});}}class w extends _0x299966{['_editing'];['_controller']=null;static get['requires'](){return[_0x1cd250,o];}constructor(_0x1e90e5){super(_0x1e90e5),this['_editing']=_0x1e90e5['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x227b56){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x227b56);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x189d38,..._0x12d24b}){return _0x1f8aa2(_0x189d38,_0x12d24b);}static['getInfo'](_0x32abcc,_0x3e68d6){return _0x336f99(_0x32abcc,_0x3e68d6);}}class f extends _0x57f734{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x22f14f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x13e246=this['editor'];if(!!!_0x13e246['config']['get']('uploadcare'))return;_0x13e246['plugins']['get'](_0x22f14f)['createUploadAdapter']=_0x3e5fdb=>new k(_0x3e5fdb,_0x13e246),_0x13e246['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x16e910,{imageElement:_0x4babdd,data:_0x3af787})=>{_0x13e246['model']['change'](_0x10f8b0=>{_0x10f8b0['setAttribute']('uploadcareImageId',_0x3af787['uploadcareImageId'],_0x4babdd);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5ca72a,_0x1fbd44){this['loader']=_0x5ca72a,this['editor']=_0x1fbd44,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xeb7971=await this['loader']['file'];return j['upload']({'file':_0xeb7971,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1945a1=>{_0x1945a1&&_0x1945a1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1945a1['value']);}})['then'](async _0x4f2a1c=>{const {imageFallbackUrl:_0x5d59bd,imageSources:_0x576bc4}=C(_0x4f2a1c['cdnUrl'],_0x4f2a1c['imageInfo']['width']);return{'uploadcareImageId':_0x4f2a1c['uuid'],'default':_0x5d59bd,'sources':_0x576bc4};})['catch'](()=>{const _0x4e874e=t('Cannot\x20upload\x20file:')+('\x20'+_0xeb7971['name']+'.');return Promise['reject'](_0x4e874e);});}['abort'](){this['controller']['abort']();}}class o extends _0x57f734{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1cd250];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x85486f){super(_0x85486f),this['ucContextId']=_0xbf0ac1();}['init'](){const _0x436a52=this['editor'];_0x436a52['commands']['add']('uploadcare',new w(_0x436a52));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x5e9f4e=_0x5a3218['document']['querySelector']('input[uploadcare-file-input]');_0x5e9f4e&&_0x5e9f4e['remove']();}),async function(_0x461613){const _0x47feed=_0x3edf9a([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4d9b1a=0x535f8c3a,_0x24cdf4=0x5358f202^_0x4d9b1a,_0x2a0e64=window[_0x3edf9a([0x44,0x61,0x74,0x65])][_0x3edf9a([0x6e,0x6f,0x77])](),_0x48e8a4=_0x461613[_0x3edf9a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e8eab=new window[(_0x3edf9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16cae6=>{_0x48e8a4[_0x3edf9a([0x6f,0x6e,0x63,0x65])](_0x3edf9a([0x72,0x65,0x61,0x64,0x79]),_0x16cae6);}),_0x3c77ad={[_0x3edf9a([0x6b,0x74,0x79])]:_0x3edf9a([0x45,0x43]),[_0x3edf9a([0x75,0x73,0x65])]:_0x3edf9a([0x73,0x69,0x67]),[_0x3edf9a([0x63,0x72,0x76])]:_0x3edf9a([0x50,0x2d,0x32,0x35,0x36]),[_0x3edf9a([0x78])]:_0x3edf9a([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]),[_0x3edf9a([0x79])]:_0x3edf9a([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]),[_0x3edf9a([0x61,0x6c,0x67])]:_0x3edf9a([0x45,0x53,0x32,0x35,0x36])},_0x3b0837=_0x48e8a4[_0x3edf9a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3edf9a([0x67,0x65,0x74])](_0x3edf9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f47e0(){let _0x26e485,_0x450bea=null,_0x25af66=null;try{if(_0x3b0837==_0x3edf9a([0x47,0x50,0x4c]))return _0x3edf9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26e485=_0xee7c77(),!_0x26e485)return _0x3edf9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26e485[_0x3edf9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25af66=_0x81b75f(_0x26e485[_0x3edf9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26e485[_0x3edf9a([0x6a,0x74,0x69])])),await _0x172a8c()?_0x990d4e()?_0x4ac3a1()?_0x3edf9a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x117520()?(_0x26e485[_0x3edf9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3edf9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x450bea=_0x213b59(_0x3edf9a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x47a4dc()):_0x3edf9a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3edf9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3edf9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3edf9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4ac3a1(){const _0x37e779=[_0x3edf9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3edf9a([0x74,0x72,0x69,0x61,0x6c])][_0x3edf9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26e485[_0x3edf9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2a0e64/0x3e8:0xe10*_0x24cdf4;return _0x26e485[_0x3edf9a([0x65,0x78,0x70])]<_0x37e779;}function _0x990d4e(){const _0x3c8976=_0x26e485[_0x3edf9a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c8976&&(!!_0x3c8976[_0x3edf9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3edf9a([0x2a]))||!!_0x3c8976[_0x3edf9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3edf9a([0x55,0x50,0x4c,0x43])));}function _0x117520(){const _0xbc87b6=_0x26e485[_0x3edf9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xbc87b6||0x0==_0xbc87b6[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c1504}=new URL(window[_0x3edf9a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xbc87b6[_0x3edf9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c1504))return!0x0;const _0x558c9a=_0x3c1504[_0x3edf9a([0x73,0x70,0x6c,0x69,0x74])](_0x3edf9a([0x2e]));return _0xbc87b6[_0x3edf9a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5551ff=>_0x5551ff[_0x3edf9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3edf9a([0x2a])))[_0x3edf9a([0x6d,0x61,0x70])](_0x304571=>_0x304571[_0x3edf9a([0x73,0x70,0x6c,0x69,0x74])](_0x3edf9a([0x2e])))[_0x3edf9a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34d51b=>_0x34d51b[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x558c9a[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3edf9a([0x6d,0x61,0x70])](_0x966a86=>Array(_0x558c9a[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x966a86[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3edf9a([0x66,0x69,0x6c,0x6c])](_0x966a86[0x0]===_0x3edf9a([0x2a])?_0x3edf9a([0x2a]):'')[_0x3edf9a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x966a86))[_0x3edf9a([0x73,0x6f,0x6d,0x65])](_0x5a7f8a=>_0x558c9a[_0x3edf9a([0x65,0x76,0x65,0x72,0x79])]((_0xcc7a6c,_0x212724)=>_0x5a7f8a[_0x212724]===_0xcc7a6c||_0x5a7f8a[_0x212724]===_0x3edf9a([0x2a])));}function _0x47a4dc(){return _0x450bea&&_0x25af66?new window[(_0x3edf9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b4876,_0x123f31)=>{_0x450bea[_0x3edf9a([0x74,0x68,0x65,0x6e])](_0x3b4876,_0x123f31),_0x25af66[_0x3edf9a([0x74,0x68,0x65,0x6e])](_0x391400=>{_0x391400!=_0x3edf9a([0x56,0x61,0x6c,0x69,0x64])&&_0x3b4876(_0x391400);},_0x123f31);}):_0x450bea||_0x25af66||_0x3edf9a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x81b75f(_0x4aa9bc,_0x539ed7){return new window[(_0x3edf9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3be991=>{if(_0x147df1())return _0x3be991(_0x3edf9a([0x56,0x61,0x6c,0x69,0x64]));_0x5a22ff(),_0x48e8a4[_0x3edf9a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3edf9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20069c=!0x1;const _0xab995=_0xbf0ac1();function _0x43e528(_0x49e67f){return!!_0x49e67f&&(typeof _0x49e67f===_0x3edf9a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49e67f===_0x3edf9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49e67f[_0x3edf9a([0x74,0x68,0x65,0x6e])]===_0x3edf9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49e67f[_0x3edf9a([0x63,0x61,0x74,0x63,0x68])]===_0x3edf9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f4f21(_0x458384){_0x361d3f(_0x458384)[_0x3edf9a([0x74,0x68,0x65,0x6e])](_0x4cec98=>{if(!_0x4cec98||_0x4cec98[_0x3edf9a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3edf9a([0x6f,0x6b]))return _0x3edf9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6a2d00(_0x286fdb(_0xab995+_0x539ed7))!=_0x4cec98[_0x3edf9a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3edf9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3edf9a([0x56,0x61,0x6c,0x69,0x64]);})[_0x3edf9a([0x74,0x68,0x65,0x6e])](_0x27bd3b=>(_0x5a09d9(),_0x27bd3b),()=>{const _0x14e45f=_0x520d0e();return null==_0x14e45f?(_0x5a09d9(),_0x3edf9a([0x56,0x61,0x6c,0x69,0x64])):_0x3edf9a(_0x2a0e64-_0x14e45f>(0x7753083a^_0x4d9b1a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3edf9a([0x74,0x68,0x65,0x6e])](_0x3be991)[_0x3edf9a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3be991(_0x3edf9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32c19e=0x536962ba^_0x4d9b1a;function _0x5a09d9(){const _0x53665c=_0x3edf9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x6a2d00(_0x286fdb(_0x4aa9bc)),_0x3ce505=_0x51e90e(_0x6a2d00(window[_0x3edf9a([0x4d,0x61,0x74,0x68])][_0x3edf9a([0x63,0x65,0x69,0x6c])](_0x2a0e64/_0x32c19e)));window[_0x3edf9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3edf9a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53665c,_0x3ce505);}function _0x520d0e(){const _0x240924=_0x3edf9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x6a2d00(_0x286fdb(_0x4aa9bc)),_0x2004c2=window[_0x3edf9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3edf9a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x240924);return _0x2004c2?window[_0x3edf9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51e90e(_0x2004c2),0x10)*_0x32c19e:null;}function _0x361d3f(_0x968991){return new window[(_0x3edf9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57fd51,_0x23319b)=>{_0x968991[_0x3edf9a([0x74,0x68,0x65,0x6e])](_0x57fd51,_0x23319b),window[_0x3edf9a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23319b,0x535e58fa^_0x4d9b1a);});}}_0x48e8a4[_0x3edf9a([0x6f,0x6e])](_0x3edf9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13840b,_0xb9cb7c)=>{if(_0xb9cb7c[0x0]!=_0x4aa9bc)return _0x3be991(_0x3edf9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb9cb7c[0x1]={..._0xb9cb7c[0x1],[_0x3edf9a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xab995};},{[_0x3edf9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3edf9a([0x68,0x69,0x67,0x68])}),_0x48e8a4[_0x3edf9a([0x6f,0x6e])](_0x3edf9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3058b8=>{_0x43e528(_0x3058b8[_0x3edf9a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20069c=!0x0,_0x3f4f21(_0x3058b8[_0x3edf9a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3edf9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3edf9a([0x6c,0x6f,0x77])}),_0x2e8eab[_0x3edf9a([0x74,0x68,0x65,0x6e])](()=>{_0x20069c||_0x3be991(_0x3edf9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x147df1(){return _0x48e8a4[_0x3edf9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3edf9a([0x76,0x69,0x65,0x77])][_0x3edf9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3edf9a([0x61,0x75,0x74,0x6f]);}function _0x5a22ff(){_0x48e8a4[_0x3edf9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3edf9a([0x76,0x69,0x65,0x77])][_0x3edf9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3edf9a([0x61,0x75,0x74,0x6f]);}}function _0x213b59(_0x12767c){const _0x4e0cf9=[new window[(_0x3edf9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23df9c=>setTimeout(_0x23df9c,0x5356b2f6^_0x4d9b1a)),_0x2e8eab[_0x3edf9a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3edf9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34d9f1=>{let _0x47e494=0x0;_0x48e8a4[_0x3edf9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3edf9a([0x6f,0x6e])](_0x3edf9a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x53d9b8,_0x3c943f)=>{_0x3c943f[0x0][_0x3edf9a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47e494++,_0x47e494==(0x535f89d2^_0x4d9b1a)&&(_0x34d9f1(),_0x53d9b8[_0x3edf9a([0x6f,0x66,0x66])]());});}))];return window[_0x3edf9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3edf9a([0x72,0x61,0x63,0x65])](_0x4e0cf9)[_0x3edf9a([0x74,0x68,0x65,0x6e])](()=>_0x12767c);}async function _0x264959(){await _0x2e8eab,_0x48e8a4[_0x3edf9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3edf9a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d6244,_0x48e8a4[_0x3edf9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3edf9a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d6244,_0x48e8a4[_0x3edf9a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3edf9a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29d75b(_0x4a29ec){const _0x38dd1e=_0x5a0ee3();_0x48e8a4[_0x38dd1e]=_0x3edf9a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a29ec,_0x4a29ec!=_0x3edf9a([0x56,0x61,0x6c,0x69,0x64])&&_0x264959();}function _0x5a0ee3(){const _0x5c6ab1=window[_0x3edf9a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3edf9a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3edf9a([0x6e,0x6f,0x77])]())[_0x3edf9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3edf9a([0x2e]),'');let _0x2bb44d=_0x3edf9a([0x68]);for(let _0x3ceca8=0x0;_0x3ceca8<_0x5c6ab1[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ceca8+=0x2){let _0x4ff3b7=window[_0x3edf9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c6ab1[_0x3edf9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ceca8,_0x3ceca8+0x2));_0x4ff3b7>=_0x47feed[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ff3b7-=_0x47feed[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bb44d+=_0x47feed[_0x4ff3b7];}return _0x2bb44d;}function _0xee7c77(){const _0x192a63=_0x3b0837[_0x3edf9a([0x73,0x70,0x6c,0x69,0x74])](_0x3edf9a([0x2e]));if(0x3!=_0x192a63[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4a328d(_0x192a63[0x1]);function _0x4a328d(_0x2408ed){const _0x1a527d=_0x16dc26(_0x2408ed);return _0x1a527d&&_0x366acf()?_0x1a527d:null;function _0x366acf(){const _0x59f834=_0x1a527d[_0x3edf9a([0x6a,0x74,0x69])],_0x57e790=window[_0x3edf9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59f834[_0x3edf9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59f834[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a0f2a={..._0x1a527d,[_0x3edf9a([0x6a,0x74,0x69])]:_0x59f834[_0x3edf9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59f834[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a0f2a[_0x3edf9a([0x76,0x63])],_0x286fdb(_0x4a0f2a)==_0x57e790;}}}async function _0x172a8c(){let _0x21aeca=!0x0;try{const _0x414335=_0x3b0837[_0x3edf9a([0x73,0x70,0x6c,0x69,0x74])](_0x3edf9a([0x2e])),[_0x3eedcb,_0x387692,_0x2ba812]=_0x414335;return _0x1f15e8(_0x3eedcb),await _0x564451(_0x3eedcb,_0x387692,_0x2ba812),_0x21aeca;}catch{return!0x1;}function _0x1f15e8(_0xededd0){const _0x349676=_0x16dc26(_0xededd0);_0x349676&&_0x349676[_0x3edf9a([0x61,0x6c,0x67])]==_0x3edf9a([0x45,0x53,0x32,0x35,0x36])||(_0x21aeca=!0x1);}async function _0x564451(_0x2326f7,_0x586c8b,_0x5ca713){const _0x44a9e1=window[_0x3edf9a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3edf9a([0x66,0x72,0x6f,0x6d])](_0x4e73b4(_0x5ca713),_0xbd7cf1=>_0xbd7cf1[_0x3edf9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1fcbcc=new window[(_0x3edf9a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3edf9a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2326f7+_0x3edf9a([0x2e])+_0x586c8b),_0x24e497=window[_0x3edf9a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3edf9a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24e497)return;const _0x14f552=await _0x24e497[_0x3edf9a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3edf9a([0x6a,0x77,0x6b]),_0x3c77ad,{[_0x3edf9a([0x6e,0x61,0x6d,0x65])]:_0x3edf9a([0x45,0x43,0x44,0x53,0x41]),[_0x3edf9a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3edf9a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3edf9a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24e497[_0x3edf9a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3edf9a([0x6e,0x61,0x6d,0x65])]:_0x3edf9a([0x45,0x43,0x44,0x53,0x41]),[_0x3edf9a([0x68,0x61,0x73,0x68])]:{[_0x3edf9a([0x6e,0x61,0x6d,0x65])]:_0x3edf9a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14f552,_0x44a9e1,_0x1fcbcc)||(_0x21aeca=!0x1);}}function _0x16dc26(_0x1ca0cd){return _0x1ca0cd[_0x3edf9a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3edf9a([0x65,0x79]))?JSON[_0x3edf9a([0x70,0x61,0x72,0x73,0x65])](_0x4e73b4(_0x1ca0cd)):null;}function _0x4e73b4(_0x1c6f3f){return window[_0x3edf9a([0x61,0x74,0x6f,0x62])](_0x1c6f3f[_0x3edf9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3edf9a([0x2b]))[_0x3edf9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3edf9a([0x2f])));}function _0x286fdb(_0x35ab07){let _0x5adc20=0x1505;function _0x42353d(_0x241ffa){for(let _0x5499c7=0x0;_0x5499c7<_0x241ffa[_0x3edf9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5499c7++){const _0x58f994=_0x241ffa[_0x3edf9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5499c7);_0x5adc20=(_0x5adc20<<0x5)+_0x5adc20+_0x58f994,_0x5adc20&=_0x5adc20;}}function _0x20e40d(_0x56184a){Array[_0x3edf9a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56184a)?_0x56184a[_0x3edf9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20e40d):_0x56184a&&typeof _0x56184a==_0x3edf9a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3edf9a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56184a)[_0x3edf9a([0x73,0x6f,0x72,0x74])]()[_0x3edf9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x426a4d,_0x7d2296])=>{_0x42353d(_0x426a4d),_0x20e40d(_0x7d2296);}):_0x42353d(window[_0x3edf9a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56184a));}return _0x20e40d(_0x35ab07),_0x5adc20>>>0x0;}function _0x6a2d00(_0x3acf7e){return _0x3acf7e[_0x3edf9a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3edf9a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3edf9a([0x30]));}function _0x51e90e(_0x2bc74b){return _0x2bc74b[_0x3edf9a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3edf9a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3edf9a([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d6244(){}function _0x3edf9a(_0x38d0dc){return _0x38d0dc['map'](_0x424682=>String['fromCharCode'](_0x424682))['join']('');}_0x29d75b(await _0x3f47e0());}(this);}['_initSchema'](){const _0xa90614=this['editor']['model']['schema'];_0xa90614['isRegistered']('imageBlock')&&_0xa90614['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xa90614['isRegistered']('imageInline')&&_0xa90614['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x473e79=this['editor'];_0x473e79['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x473e79['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4c907d=>_0x4c907d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x59c29=_0x473e79['commands']['get']('replaceImageSource');_0x59c29&&this['listenTo'](_0x59c29,'cleanupImage',(_0x518d2a,[_0x53219e,_0x136043])=>{_0x53219e['removeAttribute']('uploadcareImageId',_0x136043);});}['_initConfig'](){const _0x56f46e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x14b891=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x379042(_0x5a3218['document'],'uc-config',{..._0x56f46e,'pubkey':_0x14b891,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\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'}),this['_configElement']['iconHrefResolver']=_0x259fc1=>{if('closeMax'==_0x259fc1)return'#uc-icon-arrow-down';},_0x5a3218['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x379042(_0x5a3218['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5a3218['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1c9ffa=this['editor']['commands']['get']('insertImage');_0x1c9ffa&&this['listenTo'](_0x1c9ffa,'execute',()=>{const _0x8b3d07=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8b3d07&&_0x8b3d07['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8b3d07);});});const _0x3d5725=this['editor']['commands']['get']('uploadcareImageReplace');_0x3d5725&&this['listenTo'](_0x3d5725,'execute',()=>{const _0x6c8d32=this['editor']['model']['document']['selection']['getSelectedElement']();_0x6c8d32&&_0x6c8d32['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x6c8d32);});});}}class tt extends _0x57f734{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x177d80){super(_0x177d80),_0x177d80['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xb41320['defineComponents'](_0xb41320),this['_defineLocale']();}['_defineLocale'](){const _0x812166=this['editor']['config']['get']('uploadcare.locale'),_0x87788f=this['editor']['locale']['contentLanguage'];_0x812166&&_0xb41320['defineLocale'](_0x87788f,_0x812166);}}class ii extends _0x57f55b{constructor(_0x23219d){super(_0x23219d);const t=_0x23219d['t'],_0x2a9e0d=this['bindTemplate'],_0x2a4050=new _0x27bad2();_0x2a4050['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':[_0x2a4050,{'text':_0x2a9e0d['to']('imageUploadProgress',_0x389c8d=>t('Loading\x20image...')+'\x20('+(_0x389c8d||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'}]}]}]});}}class ti extends _0x57f55b{constructor(_0x3412c0){super(_0x3412c0);const t=_0x3412c0['t'];this['set']('errorType',null);const _0x361bee=new _0x483c24(_0x3412c0);_0x361bee['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x361bee['withText']=!0x0,_0x361bee['class']='ck-button-action',_0x361bee['on']('execute',()=>{this['fire']('retry');}),_0x361bee['bind']('isVisible')['to'](this,'errorType',_0x31c2cd=>'NotFound'!==_0x31c2cd);const _0x322af2=new _0x196399();_0x322af2['content']=_0x9b358b,_0x322af2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x33c6b=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':[_0x322af2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x33c6b['to']('errorType',_0x1f08ff=>t('NotFound'!==_0x1f08ff?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x361bee]},{'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'}]}]}]});}}class ei extends _0x57f55b{constructor(_0x598636,_0x3e796e){super(_0x598636);const _0x4588d8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3e796e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4588d8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x359d25,_0x3080d7,_0x49c6c9){super(_0x359d25),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x359d25),this['_errorView']=new ti(_0x359d25),this['_editingView']=new ei(_0x359d25,_0x49c6c9),this['_focusableView']=new _0x57f55b(_0x359d25),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3080d7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x49cfab=>{this['_addUploadcareImageEditorListeners'](_0x49cfab);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x4904f5,_0x286cab){const _0x145c77='uc-cloud-image-editor',_0x35d979=_0x4904f5['querySelector'](_0x145c77);if(_0x35d979)return _0x286cab(_0x35d979);const _0x3dc0b7=new MutationObserver(_0x1f32b1=>{const _0x296cde=_0x1f32b1['filter'](_0x4a667e=>_0x4a667e['target']===_0x4904f5&&_0x4a667e['addedNodes']['length']>0x0&&_0x4a667e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x145c77);_0x296cde['length']&&(_0x3dc0b7['disconnect'](),_0x286cab(_0x296cde[0x0]['addedNodes'][0x0]));});_0x3dc0b7['observe'](_0x4904f5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x18fdbf){_0x18fdbf['addEventListener']('apply',_0x4d71ac=>{this['fire']('apply',{'imageSrc':_0x4d71ac['detail']['cdnUrl']});}),_0x18fdbf['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x603685(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x608cee,_0x5524d3,_0x4113f7){super(),this['_editor']=_0x608cee,this['_dialog']=_0x5524d3,this['_imageElement']=_0x4113f7,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 _0x912dfb=this['_imageElement'],_0x1464b=_0x912dfb['getAttribute']('uploadcareImageId'),_0x5ac715=_0x912dfb['getAttribute']('src');if(_0x1464b)await this['_loadImageInfo'](_0x1464b,_0x5ac715);else{if(this['_imageCache']['has'](_0x5ac715)){const _0x526fe7=this['_imageCache']['get'](_0x5ac715);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x526fe7['url'],this['imageDimension']=_0x526fe7['dimension'],this['imageId']=_0x526fe7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x13436c}=this['_editor'],t=_0x13436c['t'],_0x82f9b8=new X(_0x13436c,this['imageStatus'],this['_attributes']);_0x82f9b8['bind']('status')['to'](this,'imageStatus'),_0x82f9b8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x82f9b8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x82f9b8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x82f9b8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x10ce09,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x82f9b8,'position':_0x578bde['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x82f9b8['focus']();},'onHide':()=>{_0x82f9b8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xc8c263=>!A(_0xc8c263,_0x82f9b8['element'])}});}['_loadImageInfo'](_0x275f0c,_0x535ecf){return j['getInfo'](_0x275f0c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5edeef=>{const {width:_0x2ab97a,height:_0x22b1a8}=_0x5edeef['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x535ecf,this['imageDimension']={'width':_0x2ab97a,'height':_0x22b1a8},this['imageId']=_0x275f0c;})['catch'](_0x270680=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x270680['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c1308,_0x2f10c7){return this['_getImageAsFile'](_0x2c1308)['then'](_0x2f3653=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2f10c7['signal'],'file':_0x2f3653,'onProgress':_0x37938a=>{_0x37938a&&_0x37938a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x37938a['value']));}}))['then'](_0x50afde=>{const {width:_0x3dd713,height:_0x554d15}=_0x50afde['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50afde['cdnUrl'],this['imageDimension']={'width':_0x3dd713,'height':_0x554d15},this['imageId']=_0x50afde['uuid'],this['imageUploadProgress']=null;const _0xf9ce9d=_0x2c1308['getAttribute']('src');this['_imageCache']['set'](_0xf9ce9d,{'id':_0x50afde['uuid'],'url':_0x50afde['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xee4776=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xee4776['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x324d8e,_0x18874d){_0x324d8e['on']('apply',(_0x48d85f,_0x353db8)=>{this['_replaceImage'](_0x18874d,_0x353db8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x324d8e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x324d8e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1a52a9,_0x2e343e,_0x370f25){const _0x3f9cce=this['_editor'],{width:_0x2d12f3,height:_0x3ade2a}=S(_0x2e343e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xbd327c,imageSources:_0x32418b}=C(_0x2e343e,_0x2d12f3);_0x3f9cce['model']['change'](_0x151712=>{if('$graveyard'===_0x1a52a9['root']['rootName']){_0x3f9cce['execute']('insertImage',{'imageType':_0x1a52a9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1a52a9['getAttributes']()),'uploadcareImageId':_0x370f25,'src':_0xbd327c,'sources':_0x32418b,'width':_0x2d12f3,'height':_0x3ade2a}});const _0x4af648=_0x1a52a9['getChildren']();_0x1a52a9=_0x3f9cce['model']['document']['selection']['getSelectedElement']();for(const _0x5ec54c of _0x4af648)_0x151712['append'](_0x151712['cloneElement'](_0x5ec54c),_0x1a52a9);}else _0x151712['setSelection'](_0x1a52a9,'on'),_0x3f9cce['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1a52a9['getAttributes']()),'uploadcareImageId':_0x370f25,'src':_0xbd327c,'sources':_0x32418b,'width':_0x2d12f3,'height':_0x3ade2a},_0x1a52a9);_0x151712['setSelection'](_0x1a52a9,'on');});}async['_getImageAsFile'](_0x414a10){const _0xec7c4b=_0x5a3218['window'],_0x802361=_0x5a3218['document']['location']['href'],_0x313040=new _0xec7c4b['URL'](_0x414a10['getAttribute']('src'),_0x802361);if('data:'===_0x313040['protocol']){const _0x5ea3a9=_0x313040['href']['split'](','),_0x1eefde=_0x5ea3a9[0x0]['match'](/:(.*?);/)[0x1],_0x505873=_0x1eefde['split']('/')[0x1],_0x2f315e=_0xec7c4b['atob'](_0x5ea3a9[_0x5ea3a9['length']-0x1]);let _0x5b3b75=_0x2f315e['length'];const _0xc35554=new _0xec7c4b['Uint8Array'](_0x5b3b75);for(;_0x5b3b75--;)_0xc35554[_0x5b3b75]=_0x2f315e['charCodeAt'](_0x5b3b75);return new _0xec7c4b['File']([_0xc35554],'image.'+_0x505873,{'type':_0x1eefde});}const _0x9a40bc=_0x313040['href']['split']('/'),_0x2291ef=_0x9a40bc[_0x9a40bc['length']-0x1],_0x50288a=_0x2291ef['split']('.')[0x1];return _0xec7c4b['fetch'](_0x313040['href'])['then'](_0x264faf=>_0x264faf['clone']()['blob']())['then'](_0x4eef72=>new _0xec7c4b['File']([_0x4eef72],_0x2291ef,{'type':'image/'+_0x50288a}));}}class Q extends _0x299966{['imageEditController'];static get['requires'](){return[_0x1cd250];}['_isEditable'];constructor(_0x2120ce){super(_0x2120ce),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x254320){const _0x28f447=z(_0x254320);return _0xc96164=>!(!_0xc96164||!_0xc96164['is']('element','imageBlock')&&!_0xc96164['is']('element','imageInline'))&&(!!_0xc96164['hasAttribute']('uploadcareImageId')||!!_0xc96164['hasAttribute']('src')&&_0x28f447(_0xc96164['getAttribute']('src')));}(_0x2120ce['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1dcc2f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1dcc2f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4241f2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4241f2&&(_0x4241f2['is']('element','imageBlock')||_0x4241f2['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x1cd250),_0x4241f2),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x299966{['refresh'](){const _0x3b6182=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3b6182&&(_0x3b6182['is']('element','imageBlock')||_0x3b6182['is']('element','imageInline')));}['execute'](_0xaad40f){const _0xa274c0=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x243838=>{_0x243838['setAttributes'](_0xaad40f,_0xa274c0),_0x243838['removeAttribute']('srcset',_0xa274c0),_0x243838['removeAttribute']('sizes',_0xa274c0);});}}class m extends _0x57f734{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4813e8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1e6236}=this;_0x1e6236['commands']['add']('uploadcareImageEdit',new Q(_0x1e6236)),_0x1e6236['commands']['add']('uploadcareImageReplace',new V(_0x1e6236));}}class g extends _0x57f734{['_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 _0x43c911=this['editor'];_0x43c911['ui']['componentFactory']['add']('uploadcareImageEdit',_0x496150=>{const _0x33d360=_0x43c911['commands']['get']('uploadcareImageEdit'),_0x947d5f=new _0x483c24(_0x496150),t=_0x496150['t'];return _0x947d5f['set']({'icon':_0x10ce09,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x947d5f['bind']('isEnabled')['to'](_0x33d360),_0x947d5f['bind']('isOn')['to'](_0x33d360,'isActive'),this['listenTo'](_0x947d5f,'execute',()=>{_0x43c911['execute']('uploadcareImageEdit'),_0x43c911['editing']['view']['focus']();}),_0x947d5f;}),this['_initConfig']();}['_initConfig'](){const _0x553182=_0x379042(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x553182),this['listenTo'](this['editor'],'destroy',()=>{_0x553182['remove']();});}}class et extends _0x57f734{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, 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
5
|
|
package/dist/translations/af.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x192c47=>0x1!=_0x192c47}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x368583=>{const {af:{dictionary:_0x203681,getPluralForm:_0x192b1f}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4a33fa=>0x1!=_0x4a33fa}};_0x368583['af']||={'dictionary':{},'getPluralForm':null},_0x368583['af']['dictionary']=Object['assign'](_0x368583['af']['dictionary'],_0x203681),_0x368583['af']['getPluralForm']=_0x192b1f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, 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
5
|
|
package/dist/translations/ar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x4b3efd=>0x0==_0x4b3efd?0x0:0x1==_0x4b3efd?0x1:0x2==_0x4b3efd?0x2:_0x4b3efd%0x64>=0x3&&_0x4b3efd%0x64<=0xa?0x3:_0x4b3efd%0x64>=0xb?0x4:0x5}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xe3972e=>{const {ar:{dictionary:_0x2c8d33,getPluralForm:_0x1f4037}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x185ed6=>0x0==_0x185ed6?0x0:0x1==_0x185ed6?0x1:0x2==_0x185ed6?0x2:_0x185ed6%0x64>=0x3&&_0x185ed6%0x64<=0xa?0x3:_0x185ed6%0x64>=0xb?0x4:0x5}};_0xe3972e['ar']||={'dictionary':{},'getPluralForm':null},_0xe3972e['ar']['dictionary']=Object['assign'](_0xe3972e['ar']['dictionary'],_0x2c8d33),_0xe3972e['ar']['getPluralForm']=_0x1f4037;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, 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
5
|
|
package/dist/translations/ast.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x549c8e=>0x1!=_0x549c8e}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf57cef=>{const {ast:{dictionary:_0x1c4994,getPluralForm:_0x18ff71}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1e3448=>0x1!=_0x1e3448}};_0xf57cef['ast']||={'dictionary':{},'getPluralForm':null},_0xf57cef['ast']['dictionary']=Object['assign'](_0xf57cef['ast']['dictionary'],_0x1c4994),_0xf57cef['ast']['getPluralForm']=_0x18ff71;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, 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
5
|
|
package/dist/translations/az.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x55f3bb=>0x1!=_0x55f3bb}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xa6517e=>{const {az:{dictionary:_0x160c0d,getPluralForm:_0x1b4f9c}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x46e091=>0x1!=_0x46e091}};_0xa6517e['az']||={'dictionary':{},'getPluralForm':null},_0xa6517e['az']['dictionary']=Object['assign'](_0xa6517e['az']['dictionary'],_0x160c0d),_0xa6517e['az']['getPluralForm']=_0x1b4f9c;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, 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
5
|
|
package/dist/translations/be.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1331ef=>_0x1331ef%0xa==0x1&&_0x1331ef%0x64!=0xb?0x0:_0x1331ef%0xa>=0x2&&_0x1331ef%0xa<=0x4&&(_0x1331ef%0x64<0xa||_0x1331ef%0x64>=0x14)?0x1:0x2}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2ac798=>{const {be:{dictionary:_0x5973d8,getPluralForm:_0x19e7ad}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3f6935=>_0x3f6935%0xa==0x1&&_0x3f6935%0x64!=0xb?0x0:_0x3f6935%0xa>=0x2&&_0x3f6935%0xa<=0x4&&(_0x3f6935%0x64<0xa||_0x3f6935%0x64>=0x14)?0x1:0x2}};_0x2ac798['be']||={'dictionary':{},'getPluralForm':null},_0x2ac798['be']['dictionary']=Object['assign'](_0x2ac798['be']['dictionary'],_0x5973d8),_0x2ac798['be']['getPluralForm']=_0x19e7ad;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, 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
5
|
|