@ckeditor/ckeditor5-uploadcare 47.3.0 → 47.4.0-alpha.1
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 _0x4f265d,Command as _0x288d1e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2de081,IconGooglePhotos as _0x2b897f,IconGoogleDrive as _0x201bc3,IconFacebook as _0x39a4a3,IconDropbox as _0x50b0eb,IconUploadcareLink as _0x862ebd,IconUploadcareImageUpload as _0x4b6f2b,IconError as _0x633358,IconUploadcareImageEdit as _0x853a39}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x273d6d,MenuBarMenuListItemButtonView as _0x24b47f,View as _0x3ef4e6,FocusCycler as _0x4a6a65,Dialog as _0x4bbaa4,DialogViewPosition as _0x3640ee,SpinnerView as _0x5a34ec,IconView as _0x2f3a61,Notification as _0x35878d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x54d273,DomEmitterMixin as _0x20c6b5,global as _0x23c968,getAncestors as _0x4e69a1,ObservableMixin as _0x141f77,uid as _0x85afa9,createElement as _0x425fdc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xdb13fd}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x575745,info as _0x295253}from'@uploadcare/upload-client';import*as _0x409021 from'@uploadcare/file-uploader';var i=function(_0x32fb3e){return _0x32fb3e['Local']='local',_0x32fb3e['URL']='url',_0x32fb3e['Dropbox']='dropbox',_0x32fb3e['GDrive']='gdrive',_0x32fb3e['Facebook']='facebook',_0x32fb3e['GPhotos']='gphotos',_0x32fb3e['OneDrive']='onedrive',_0x32fb3e;}({});function _(_0x2a1e82,_0x912322,_0x718919){const t=_0x2a1e82['t'],_0x24a4e4=_0x2a1e82['t'];switch(_0x912322){case i['Local']:return{'text':_0x24a4e4('Insert'===_0x718919?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x24a4e4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x718919?_0x24a4e4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x24a4e4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x718919?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x718919?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x718919?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x718919?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x718919?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x912322;}}class e extends _0x4f265d{['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 _0x537f6e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43159d;for(const _0xa7d469 in _0x537f6e){const _0x5f139b=_0xa7d469,_0x31443c=_0x537f6e[_0x5f139b];if('uploadcareLicenseKeyValid'==_0x31443c||'uploadcareLicenseKeyInvalid'==_0x31443c||'uploadcareLicenseKeyExpired'==_0x31443c||'uploadcareLicenseKeyDomainLimit'==_0x31443c||'uploadcareLicenseKeyNotAllowed'==_0x31443c||'uploadcareLicenseKeyEvaluationLimit'==_0x31443c||'uploadcareLicenseKeyUsageLimit'==_0x31443c){delete _0x537f6e[_0x5f139b],_0x43159d=_0x31443c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x43159d&&_0x537f6e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x43159d&&_0x537f6e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x43159d&&_0x537f6e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x43159d&&_0x537f6e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x43159d&&_0x537f6e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x43159d&&_0x537f6e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5cb3bf}=this,_0x384c79=_0x5cb3bf['commands']['get']('uploadcare');if(!_0x384c79)return;const _0x2024a2=this['_normalizeConfigSourceList'](_0x5cb3bf['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4763ef,_0x44903e)=>{const _0x33d9d1=this['_getIntegrationKey'](_0x44903e['type']);return _0x4763ef[_0x33d9d1]||(_0x4763ef[_0x33d9d1]=[]),_0x4763ef[_0x33d9d1]['push'](_0x44903e),_0x4763ef;},{});_0x5cb3bf['plugins']['has']('ImageInsertUI')&&_0x5cb3bf['commands']['get']('uploadcare')&&Object['entries'](_0x2024a2)['forEach'](([_0x28068c,_0x130376])=>{_0x5cb3bf['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x28068c,'observable':()=>_0x384c79,'buttonViewCreator':()=>this['_createToolbarButton'](_0x130376),'formViewCreator':()=>this['_createDropdownButtons'](_0x130376),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x130376),'override':'assetManager'!==_0x28068c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x497c4f){const {locale:_0x524792}=this['editor'];return _0x497c4f['map'](_0xfc9e1=>{const _0x3b4f33=_(_0x524792,_0xfc9e1,'Insert');switch(_0xfc9e1){case i['Local']:return{'icon':_0x4b6f2b,'type':i['Local'],..._0x3b4f33};case i['URL']:return{'icon':_0x862ebd,'type':i['URL'],..._0x3b4f33};case i['Dropbox']:return{'icon':_0x50b0eb,'type':i['Dropbox'],..._0x3b4f33};case i['Facebook']:return{'icon':_0x39a4a3,'type':i['Facebook'],..._0x3b4f33};case i['GDrive']:return{'icon':_0x201bc3,'type':i['GDrive'],..._0x3b4f33};case i['GPhotos']:return{'icon':_0x2b897f,'type':i['GPhotos'],..._0x3b4f33};case i['OneDrive']:return{'icon':_0x2de081,'type':i['OneDrive'],..._0x3b4f33};}});}['_getIntegrationKey'](_0x58223a){switch(_0x58223a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2b2dde,_0x5c05e2){const _0x2d0622=this['editor'],_0x5b4428=new _0x2b2dde(_0x2d0622['locale']),_0x5c724f=_0x2d0622['commands']['get']('uploadcare');return _0x5b4428['bind']('isEnabled')['to'](_0x5c724f),_0x5b4428['on']('execute',()=>{_0x5c724f['execute'](_0x5c05e2);}),_0x5b4428;}['_createToolbarButton'](_0x92d81f){const {locale:_0x4cba67}=this['editor'],_0x5cbd98=this['editor']['plugins']['get']('ImageInsertUI'),_0x12d493=_0x92d81f[0x0],_0x25c145=this['_createButton'](_0x273d6d,_0x12d493['type']);return _0x25c145['icon']=_0x12d493['icon'],_0x25c145['bind']('label')['to'](_0x5cbd98,'isImageSelected',_0x320023=>_(_0x4cba67,_0x12d493['type'],_0x320023?'Replace':'Insert')['text']),_0x25c145['tooltip']=!0x0,_0x25c145;}['_createDropdownButtons'](_0x149e1c){const {locale:_0x200b91}=this['editor'],_0x3b0154=this['editor']['plugins']['get']('ImageInsertUI');return _0x149e1c['map'](_0x4922fb=>{const _0x2e1cae=this['_createButton'](_0x273d6d,_0x4922fb['type']);return _0x2e1cae['withText']=!0x0,_0x2e1cae['icon']=_0x4922fb['icon'],_0x2e1cae['bind']('label')['to'](_0x3b0154,'isImageSelected',_0x25b40f=>_(_0x200b91,_0x4922fb['type'],_0x25b40f?'Replace':'Insert')['text']),_0x2e1cae;});}['_createMenuBarButtons'](_0x5475fa){return _0x5475fa['map'](_0x3f33ea=>{const _0x5050ff=this['_createButton'](_0x24b47f,_0x3f33ea['type']);return _0x5050ff['icon']=_0x3f33ea['icon'],_0x5050ff['label']=_0x3f33ea['shortText'],_0x5050ff;});}}class F extends _0x3ef4e6{['focusTracker'];['focusCycler'];constructor(_0x12363e){super(_0x12363e),this['focusTracker']=new _0x54d273(),this['focusCycler']=new _0x4a6a65({'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(_0x4ef0d6,_0x41a1c9){super(_0x4ef0d6),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-'+_0x41a1c9}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x46630c,_0x24b5c9){const _0x23b520=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x23adb5=>_0x23adb5<=_0x24b5c9)['map'](_0x3b5a49=>_0x46630c['replace'](/\/$/,'')+'/-/resize/'+_0x3b5a49+'x/\x20'+_0x3b5a49+'w');return{'imageFallbackUrl':_0x46630c,'imageSources':[{'srcset':_0x23b520['join'](',\x20'),'sizes':'(max-width:\x20'+_0x24b5c9+'px)\x20100vw,\x20'+_0x24b5c9+'px','type':'image/webp'}]};}function S(_0x544b8a,_0x4252da,_0x4ada22){const _0x22533c=_0x544b8a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x22533c?parseInt(_0x22533c[0x1],0xa):_0x4252da,'height':_0x22533c?parseInt(_0x22533c[0x2],0xa):_0x4ada22};}function p(_0x851d1d,_0x4fe8c2){const _0x13b767=new(_0x20c6b5())(),_0x481ba6=_0x851d1d['plugins']['get']('ImageUtils'),_0x119225=_0x851d1d['editing']['mapper']['toViewElement'](_0x4fe8c2),_0x1e2c5b=_0x481ba6['findViewImgElement'](_0x119225),_0x50eb7a=_0x851d1d['editing']['view']['domConverter']['viewToDom'](_0x1e2c5b),_0x276da3=_0x4fe8c2['getAttribute']('width'),_0x15cadf=_0x4fe8c2['getAttribute']('height'),_0x5bf1af='image-processing';_0x851d1d['editing']['view']['change'](_0x9e1bff=>{_0x9e1bff['addClass'](_0x5bf1af,_0x119225),_0x9e1bff['setStyle']('aspect-ratio',_0x276da3+'/'+_0x15cadf,_0x1e2c5b);}),_0x13b767['listenTo'](_0x50eb7a,'load',()=>{_0x13b767['stopListening'](_0x50eb7a,'load'),_0x851d1d['editing']['view']['change'](_0xcfdca2=>{_0xcfdca2['removeClass'](_0x5bf1af,_0x119225),_0xcfdca2['removeStyle']('aspect-ratio',_0x1e2c5b);});});}function G(_0x426287){if(Array['isArray'](_0x426287)){const _0x5057ae=_0x426287['map'](G);return _0x2e8a01=>_0x5057ae['some'](_0x53718a=>_0x53718a(_0x2e8a01));}if('origin'==_0x426287){const _0x4f7c1f=_0x23c968['window']['location']['origin'];return _0x1c9bf8=>new URL(_0x1c9bf8,_0x23c968['document']['baseURI'])['origin']==_0x4f7c1f;}return'function'==typeof _0x426287?_0x426287:_0x426287 instanceof RegExp?_0x1c5653=>!(!_0x1c5653['match'](_0x426287)&&!_0x1c5653['replace'](/^https?:\/\//,'')['match'](_0x426287)):()=>!0x1;}function A(_0x17fd82,_0x519140){return _0x4e69a1(_0x17fd82['target'])['includes'](_0x519140);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x141f77(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x8c5ec0,_0x30e89d,_0xd48369){super(),this['_editor']=_0x8c5ec0,this['_editing']=_0x30e89d,this['_dialog']=_0x8c5ec0['plugins']['get'](_0x4bbaa4),this['_api']=_0x30e89d['ctxElement']['getAPI'](),this['_type']=_0xd48369,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:_0x2775ba,model:_0x39f5fe}=this['_editor'],_0x57afe7=_0x39f5fe['document']['selection']['getSelectedElement'](),_0x4c32d3=_0x57afe7&&(_0x57afe7['is']('element','imageBlock')||_0x57afe7['is']('element','imageInline'));this['_formView']=new x(_0x2775ba,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4b6f2b,'title':_(_0x2775ba,this['_type'],_0x4c32d3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3640ee['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2f5685=>!A(_0x2f5685,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1ee2c0}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x17c0a7=>{const _0x46b28c=_0x1ee2c0['length'];for(const _0x12fe61 of _0x1ee2c0){const _0x237637=_0x12fe61===_0x1ee2c0[_0x46b28c-0x1],{cdnUrl:_0x49f506,fileInfo:_0x4be0f7}=_0x12fe61;if(!_0x49f506||!_0x4be0f7)continue;const {width:_0x21ec68,height:_0x2440e1}=_0x4be0f7['imageInfo'],_0xcad2d8=S(_0x49f506,_0x21ec68,_0x2440e1),_0x5549ff=C(_0x49f506,_0xcad2d8['width']),_0x31293e={'id':_0x4be0f7['uuid'],'type':'image','attributes':{'imageDimension':_0xcad2d8,..._0x5549ff}};this['_insertAsset'](_0x31293e,_0x237637,_0x17c0a7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x232213=>{'idle'===_0x232213['detail']['status']&&!_0x232213['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x584029,_0x14c3ae,_0x445937){const _0x171efa=this['_editor']['model']['document']['selection'],_0x21d9f9=_0x171efa['getSelectedElement'](),_0xc72d2f=!(!_0x21d9f9||!_0x21d9f9['is']('element','imageInline'));_0x445937['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x584029,_0xc72d2f),_0x14c3ae||_0x445937['setSelection'](_0x171efa['getLastPosition']());}['_insertImage'](_0x25540c,_0x156a11){const _0x2d2d64=this['_editor'],{imageDimension:_0xb70539,imageFallbackUrl:_0x2b4c22,imageSources:_0x3b491b}=_0x25540c['attributes'];_0x2d2d64['execute']('insertImage',{'imageType':_0x156a11?'imageInline':null,'source':{'uploadcareImageId':_0x25540c['id'],'src':_0x2b4c22,'sources':_0x3b491b,..._0xb70539}});}}class w extends _0x288d1e{['_editing'];['_controller']=null;static get['requires'](){return[_0x4bbaa4,o];}constructor(_0xa3e155){super(_0xa3e155),this['_editing']=_0xa3e155['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x21a9d5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x21a9d5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x50900e,..._0x320f95}){return _0x575745(_0x50900e,_0x320f95);}static['getInfo'](_0x41d16b,_0x42e961){return _0x295253(_0x41d16b,_0x42e961);}}class f extends _0x4f265d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xdb13fd,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2296ed=this['editor'];if(!!!_0x2296ed['config']['get']('uploadcare'))return;_0x2296ed['plugins']['get'](_0xdb13fd)['createUploadAdapter']=_0x516f2b=>new k(_0x516f2b,_0x2296ed),_0x2296ed['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x22d9ea,{imageElement:_0x4fbbfc,data:_0x434fa0})=>{_0x2296ed['model']['change'](_0x4581a5=>{_0x4581a5['setAttribute']('uploadcareImageId',_0x434fa0['uploadcareImageId'],_0x4fbbfc);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x252f44,_0x17132c){this['loader']=_0x252f44,this['editor']=_0x17132c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x439316=await this['loader']['file'];return j['upload']({'file':_0x439316,'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':_0x244949=>{_0x244949&&_0x244949['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x244949['value']);}})['then'](async _0x281280=>{const {imageFallbackUrl:_0x114a4b,imageSources:_0x538a34}=C(_0x281280['cdnUrl'],_0x281280['imageInfo']['width']);return{'uploadcareImageId':_0x281280['uuid'],'default':_0x114a4b,'sources':_0x538a34};})['catch'](()=>{const _0x1f97b9=t('Cannot\x20upload\x20file:')+('\x20'+_0x439316['name']+'.');return Promise['reject'](_0x1f97b9);});}['abort'](){this['controller']['abort']();}}class o extends _0x4f265d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4bbaa4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1dd9b5){super(_0x1dd9b5),this['ucContextId']=_0x85afa9();}['init'](){const _0x514b0e=this['editor'];_0x514b0e['commands']['add']('uploadcare',new w(_0x514b0e));}['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 _0x149ac1=_0x23c968['document']['querySelector']('input[uploadcare-file-input]');_0x149ac1&&_0x149ac1['remove']();}),async function(_0x43d7e3){const _0x24f25b=_0x53a63e([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]),_0x272614=0x535f8c3a,_0x25138e=0x5358f26a^_0x272614,_0x394321=window[_0x53a63e([0x44,0x61,0x74,0x65])][_0x53a63e([0x6e,0x6f,0x77])](),_0x4b3ded=_0x43d7e3[_0x53a63e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x278613=new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x202e33=>{_0x4b3ded[_0x53a63e([0x6f,0x6e,0x63,0x65])](_0x53a63e([0x72,0x65,0x61,0x64,0x79]),_0x202e33);}),_0x598296={[_0x53a63e([0x6b,0x74,0x79])]:_0x53a63e([0x45,0x43]),[_0x53a63e([0x75,0x73,0x65])]:_0x53a63e([0x73,0x69,0x67]),[_0x53a63e([0x63,0x72,0x76])]:_0x53a63e([0x50,0x2d,0x32,0x35,0x36]),[_0x53a63e([0x78])]:_0x53a63e([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]),[_0x53a63e([0x79])]:_0x53a63e([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]),[_0x53a63e([0x61,0x6c,0x67])]:_0x53a63e([0x45,0x53,0x32,0x35,0x36])},_0x425d42=_0x4b3ded[_0x53a63e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53a63e([0x67,0x65,0x74])](_0x53a63e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4030d8(){let _0x36d90a,_0x3e5fcf=null,_0x10a16f=null;try{if(_0x425d42==_0x53a63e([0x47,0x50,0x4c]))return _0x53a63e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36d90a=_0x378e14(),!_0x36d90a)return _0x53a63e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36d90a[_0x53a63e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10a16f=_0xab99b(_0x36d90a[_0x53a63e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36d90a[_0x53a63e([0x6a,0x74,0x69])])),await _0x1f63d4()?_0x5669cb()?_0x406538()?_0x53a63e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d24af()?(_0x36d90a[_0x53a63e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53a63e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e5fcf=_0x1f9ff3(_0x53a63e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e52e5()):_0x53a63e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53a63e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53a63e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53a63e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x406538(){const _0x17f0ec=[_0x53a63e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53a63e([0x74,0x72,0x69,0x61,0x6c])][_0x53a63e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36d90a[_0x53a63e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x394321/0x3e8:0xe10*_0x25138e;return _0x36d90a[_0x53a63e([0x65,0x78,0x70])]<_0x17f0ec;}function _0x5669cb(){const _0x48730a=_0x36d90a[_0x53a63e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x48730a&&(!!_0x48730a[_0x53a63e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53a63e([0x2a]))||!!_0x48730a[_0x53a63e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53a63e([0x55,0x50,0x4c,0x43])));}function _0x5d24af(){const _0x468942=_0x36d90a[_0x53a63e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x468942||0x0==_0x468942[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b386d}=new URL(window[_0x53a63e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x468942[_0x53a63e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b386d))return!0x0;const _0x5e920c=_0x1b386d[_0x53a63e([0x73,0x70,0x6c,0x69,0x74])](_0x53a63e([0x2e]));return _0x468942[_0x53a63e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ecfb3=>_0x3ecfb3[_0x53a63e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53a63e([0x2a])))[_0x53a63e([0x6d,0x61,0x70])](_0x15c1d1=>_0x15c1d1[_0x53a63e([0x73,0x70,0x6c,0x69,0x74])](_0x53a63e([0x2e])))[_0x53a63e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4930f7=>_0x4930f7[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e920c[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53a63e([0x6d,0x61,0x70])](_0x577ca8=>Array(_0x5e920c[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x577ca8[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53a63e([0x66,0x69,0x6c,0x6c])](_0x577ca8[0x0]===_0x53a63e([0x2a])?_0x53a63e([0x2a]):'')[_0x53a63e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x577ca8))[_0x53a63e([0x73,0x6f,0x6d,0x65])](_0x3cb938=>_0x5e920c[_0x53a63e([0x65,0x76,0x65,0x72,0x79])]((_0x38d0f0,_0x2675a)=>_0x3cb938[_0x2675a]===_0x38d0f0||_0x3cb938[_0x2675a]===_0x53a63e([0x2a])));}function _0x5e52e5(){return _0x3e5fcf&&_0x10a16f?new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38f571,_0x27a97d)=>{_0x3e5fcf[_0x53a63e([0x74,0x68,0x65,0x6e])](_0x38f571,_0x27a97d),_0x10a16f[_0x53a63e([0x74,0x68,0x65,0x6e])](_0x3bf874=>{_0x3bf874!=_0x53a63e([0x56,0x61,0x6c,0x69,0x64])&&_0x38f571(_0x3bf874);},_0x27a97d);}):_0x3e5fcf||_0x10a16f||_0x53a63e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xab99b(_0x3d2afc,_0x3ff0a6){return new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf50058=>{if(_0x3442d0())return _0xf50058(_0x53a63e([0x56,0x61,0x6c,0x69,0x64]));_0x1fb630(),_0x4b3ded[_0x53a63e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53a63e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f159c=!0x1;const _0x1b8488=_0x85afa9();function _0x553bc0(_0x5ec23a){return!!_0x5ec23a&&(typeof _0x5ec23a===_0x53a63e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ec23a===_0x53a63e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ec23a[_0x53a63e([0x74,0x68,0x65,0x6e])]===_0x53a63e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ec23a[_0x53a63e([0x63,0x61,0x74,0x63,0x68])]===_0x53a63e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d67e8(_0x3a3fea){_0x2a2ca6(_0x3a3fea)[_0x53a63e([0x74,0x68,0x65,0x6e])](_0x353e67=>{if(!_0x353e67||_0x353e67[_0x53a63e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53a63e([0x6f,0x6b]))return _0x53a63e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5caff6(_0x18b465(_0x1b8488+_0x3ff0a6))!=_0x353e67[_0x53a63e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53a63e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53a63e([0x56,0x61,0x6c,0x69,0x64]);})[_0x53a63e([0x74,0x68,0x65,0x6e])](_0x1152ea=>(_0x2133e1(),_0x1152ea),()=>{const _0x3535c7=_0x429f00();return null==_0x3535c7?(_0x2133e1(),_0x53a63e([0x56,0x61,0x6c,0x69,0x64])):_0x53a63e(_0x394321-_0x3535c7>(0x7753083a^_0x272614)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53a63e([0x74,0x68,0x65,0x6e])](_0xf50058)[_0x53a63e([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf50058(_0x53a63e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e5355=0x536962ba^_0x272614;function _0x2133e1(){const _0x70750d=_0x53a63e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5caff6(_0x18b465(_0x3d2afc)),_0x5ccdd6=_0x4139de(_0x5caff6(window[_0x53a63e([0x4d,0x61,0x74,0x68])][_0x53a63e([0x63,0x65,0x69,0x6c])](_0x394321/_0x1e5355)));window[_0x53a63e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53a63e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x70750d,_0x5ccdd6);}function _0x429f00(){const _0xa85a31=_0x53a63e([0x6c,0x6c,0x63,0x74,0x2d])+_0x5caff6(_0x18b465(_0x3d2afc)),_0x213b5c=window[_0x53a63e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53a63e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa85a31);return _0x213b5c?window[_0x53a63e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4139de(_0x213b5c),0x10)*_0x1e5355:null;}function _0x2a2ca6(_0xfa4bb6){return new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f7380,_0x41b15e)=>{_0xfa4bb6[_0x53a63e([0x74,0x68,0x65,0x6e])](_0x1f7380,_0x41b15e),window[_0x53a63e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41b15e,0x535e58fa^_0x272614);});}}_0x4b3ded[_0x53a63e([0x6f,0x6e])](_0x53a63e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x544d18,_0x238267)=>{if(_0x238267[0x0]!=_0x3d2afc)return _0xf50058(_0x53a63e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x238267[0x1]={..._0x238267[0x1],[_0x53a63e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b8488};},{[_0x53a63e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53a63e([0x68,0x69,0x67,0x68])}),_0x4b3ded[_0x53a63e([0x6f,0x6e])](_0x53a63e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x577ff9=>{_0x553bc0(_0x577ff9[_0x53a63e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f159c=!0x0,_0x5d67e8(_0x577ff9[_0x53a63e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53a63e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53a63e([0x6c,0x6f,0x77])}),_0x278613[_0x53a63e([0x74,0x68,0x65,0x6e])](()=>{_0x2f159c||_0xf50058(_0x53a63e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3442d0(){return _0x4b3ded[_0x53a63e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53a63e([0x76,0x69,0x65,0x77])][_0x53a63e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53a63e([0x61,0x75,0x74,0x6f]);}function _0x1fb630(){_0x4b3ded[_0x53a63e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53a63e([0x76,0x69,0x65,0x77])][_0x53a63e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53a63e([0x61,0x75,0x74,0x6f]);}}function _0x1f9ff3(_0x27a86d){const _0x3eb405=[new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17ed17=>setTimeout(_0x17ed17,0x5356b2f6^_0x272614)),_0x278613[_0x53a63e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x111368=>{let _0x1c2ba2=0x0;_0x4b3ded[_0x53a63e([0x6d,0x6f,0x64,0x65,0x6c])][_0x53a63e([0x6f,0x6e])](_0x53a63e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x149784,_0x20e903)=>{_0x20e903[0x0][_0x53a63e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1c2ba2++,_0x1c2ba2==(0x535f89d2^_0x272614)&&(_0x111368(),_0x149784[_0x53a63e([0x6f,0x66,0x66])]());});}))];return window[_0x53a63e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53a63e([0x72,0x61,0x63,0x65])](_0x3eb405)[_0x53a63e([0x74,0x68,0x65,0x6e])](()=>_0x27a86d);}async function _0x730124(){await _0x278613,_0x4b3ded[_0x53a63e([0x6d,0x6f,0x64,0x65,0x6c])][_0x53a63e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x333eab,_0x4b3ded[_0x53a63e([0x6d,0x6f,0x64,0x65,0x6c])][_0x53a63e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x333eab,_0x4b3ded[_0x53a63e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53a63e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x100fb5(_0x2b9fba){const _0x2540f6=_0x9b1ad6();_0x4b3ded[_0x2540f6]=_0x53a63e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b9fba,_0x2b9fba!=_0x53a63e([0x56,0x61,0x6c,0x69,0x64])&&_0x730124();}function _0x9b1ad6(){const _0x3051aa=window[_0x53a63e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53a63e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53a63e([0x6e,0x6f,0x77])]())[_0x53a63e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53a63e([0x2e]),'');let _0x11268c=_0x53a63e([0x68]);for(let _0x29e44f=0x0;_0x29e44f<_0x3051aa[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29e44f+=0x2){let _0x1aad94=window[_0x53a63e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3051aa[_0x53a63e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29e44f,_0x29e44f+0x2));_0x1aad94>=_0x24f25b[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aad94-=_0x24f25b[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11268c+=_0x24f25b[_0x1aad94];}return _0x11268c;}function _0x378e14(){const _0x487f91=_0x425d42[_0x53a63e([0x73,0x70,0x6c,0x69,0x74])](_0x53a63e([0x2e]));if(0x3!=_0x487f91[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ba838(_0x487f91[0x1]);function _0x5ba838(_0x2bcb7b){const _0x5c2eb9=_0x1334c8(_0x2bcb7b);return _0x5c2eb9&&_0x22affd()?_0x5c2eb9:null;function _0x22affd(){const _0x42d6fa=_0x5c2eb9[_0x53a63e([0x6a,0x74,0x69])],_0x22b4e9=window[_0x53a63e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42d6fa[_0x53a63e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42d6fa[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b4c36={..._0x5c2eb9,[_0x53a63e([0x6a,0x74,0x69])]:_0x42d6fa[_0x53a63e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42d6fa[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b4c36[_0x53a63e([0x76,0x63])],_0x18b465(_0x3b4c36)==_0x22b4e9;}}}async function _0x1f63d4(){let _0x5078f5=!0x0;try{const _0x225e40=_0x425d42[_0x53a63e([0x73,0x70,0x6c,0x69,0x74])](_0x53a63e([0x2e])),[_0x58ed67,_0x5e6b4d,_0x32c343]=_0x225e40;return _0x3d5222(_0x58ed67),await _0xf060b9(_0x58ed67,_0x5e6b4d,_0x32c343),_0x5078f5;}catch{return!0x1;}function _0x3d5222(_0x2ddb2d){const _0x524495=_0x1334c8(_0x2ddb2d);_0x524495&&_0x524495[_0x53a63e([0x61,0x6c,0x67])]==_0x53a63e([0x45,0x53,0x32,0x35,0x36])||(_0x5078f5=!0x1);}async function _0xf060b9(_0x10441b,_0x15f6b3,_0x4f29dd){const _0x537bca=window[_0x53a63e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53a63e([0x66,0x72,0x6f,0x6d])](_0x4a14b8(_0x4f29dd),_0xac5dc3=>_0xac5dc3[_0x53a63e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3def08=new window[(_0x53a63e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53a63e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10441b+_0x53a63e([0x2e])+_0x15f6b3),_0x1b799e=window[_0x53a63e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53a63e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b799e)return;const _0x595647=await _0x1b799e[_0x53a63e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53a63e([0x6a,0x77,0x6b]),_0x598296,{[_0x53a63e([0x6e,0x61,0x6d,0x65])]:_0x53a63e([0x45,0x43,0x44,0x53,0x41]),[_0x53a63e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53a63e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53a63e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b799e[_0x53a63e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53a63e([0x6e,0x61,0x6d,0x65])]:_0x53a63e([0x45,0x43,0x44,0x53,0x41]),[_0x53a63e([0x68,0x61,0x73,0x68])]:{[_0x53a63e([0x6e,0x61,0x6d,0x65])]:_0x53a63e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x595647,_0x537bca,_0x3def08)||(_0x5078f5=!0x1);}}function _0x1334c8(_0x14227f){return _0x14227f[_0x53a63e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53a63e([0x65,0x79]))?JSON[_0x53a63e([0x70,0x61,0x72,0x73,0x65])](_0x4a14b8(_0x14227f)):null;}function _0x4a14b8(_0x236886){return window[_0x53a63e([0x61,0x74,0x6f,0x62])](_0x236886[_0x53a63e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53a63e([0x2b]))[_0x53a63e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53a63e([0x2f])));}function _0x18b465(_0x29c1d1){let _0x577344=0x1505;function _0x5c3540(_0x41eba0){for(let _0x5b26c0=0x0;_0x5b26c0<_0x41eba0[_0x53a63e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b26c0++){const _0x46fb7a=_0x41eba0[_0x53a63e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b26c0);_0x577344=(_0x577344<<0x5)+_0x577344+_0x46fb7a,_0x577344&=_0x577344;}}function _0x38fdcd(_0x527cfa){Array[_0x53a63e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x527cfa)?_0x527cfa[_0x53a63e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38fdcd):_0x527cfa&&typeof _0x527cfa==_0x53a63e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53a63e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x527cfa)[_0x53a63e([0x73,0x6f,0x72,0x74])]()[_0x53a63e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7cd56e,_0x284b9c])=>{_0x5c3540(_0x7cd56e),_0x38fdcd(_0x284b9c);}):_0x5c3540(window[_0x53a63e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x527cfa));}return _0x38fdcd(_0x29c1d1),_0x577344>>>0x0;}function _0x5caff6(_0x383410){return _0x383410[_0x53a63e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53a63e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53a63e([0x30]));}function _0x4139de(_0x2f6663){return _0x2f6663[_0x53a63e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53a63e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53a63e([0x6a,0x6f,0x69,0x6e])]('');}function _0x333eab(){}function _0x53a63e(_0x53c0ca){return _0x53c0ca['map'](_0x12a349=>String['fromCharCode'](_0x12a349))['join']('');}_0x100fb5(await _0x4030d8());}(this);}['_initSchema'](){const _0x2f2b10=this['editor']['model']['schema'];_0x2f2b10['isRegistered']('imageBlock')&&_0x2f2b10['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2f2b10['isRegistered']('imageInline')&&_0x2f2b10['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x46b77e=this['editor'];_0x46b77e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x46b77e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4cecd3=>_0x4cecd3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5c42be=_0x46b77e['commands']['get']('replaceImageSource');_0x5c42be&&this['listenTo'](_0x5c42be,'cleanupImage',(_0x295b2d,[_0x5962f7,_0x201c05])=>{_0x5962f7['removeAttribute']('uploadcareImageId',_0x201c05);});}['_initConfig'](){const _0x1a3e61=this['editor']['config']['get']('uploadcare.uploader')||{},_0x34ff70=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x425fdc(_0x23c968['document'],'uc-config',{..._0x1a3e61,'pubkey':_0x34ff70,'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']=_0xf2b0d2=>{if('closeMax'==_0xf2b0d2)return'#uc-icon-arrow-down';},_0x23c968['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x425fdc(_0x23c968['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x23c968['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1b684b=this['editor']['commands']['get']('insertImage');_0x1b684b&&this['listenTo'](_0x1b684b,'execute',()=>{const _0x568e6f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x568e6f&&_0x568e6f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x568e6f);});});const _0x205d26=this['editor']['commands']['get']('uploadcareImageReplace');_0x205d26&&this['listenTo'](_0x205d26,'execute',()=>{const _0xe697b7=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe697b7&&_0xe697b7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xe697b7);});});}}class tt extends _0x4f265d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb4cb23){super(_0xb4cb23),_0xb4cb23['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x409021['defineComponents'](_0x409021),this['_defineLocale']();}['_defineLocale'](){const _0x33364a=this['editor']['config']['get']('uploadcare.locale'),_0x3f88ab=this['editor']['locale']['contentLanguage'];_0x33364a&&_0x409021['defineLocale'](_0x3f88ab,_0x33364a);}}class ii extends _0x3ef4e6{constructor(_0x4391aa){super(_0x4391aa);const t=_0x4391aa['t'],_0x13c06a=this['bindTemplate'],_0x56cc26=new _0x5a34ec();_0x56cc26['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':[_0x56cc26,{'text':_0x13c06a['to']('imageUploadProgress',_0x30a6d7=>t('Loading\x20image...')+'\x20('+(_0x30a6d7||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 _0x3ef4e6{constructor(_0x37e61e){super(_0x37e61e);const t=_0x37e61e['t'];this['set']('errorType',null);const _0x4d8cf6=new _0x273d6d(_0x37e61e);_0x4d8cf6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4d8cf6['withText']=!0x0,_0x4d8cf6['class']='ck-button-action',_0x4d8cf6['on']('execute',()=>{this['fire']('retry');}),_0x4d8cf6['bind']('isVisible')['to'](this,'errorType',_0x416095=>'NotFound'!==_0x416095);const _0x391b49=new _0x2f3a61();_0x391b49['content']=_0x633358,_0x391b49['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4d6095=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':[_0x391b49,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4d6095['to']('errorType',_0x316927=>t('NotFound'!==_0x316927?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4d8cf6]},{'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 _0x3ef4e6{constructor(_0x36cf3f,_0x5d1408){super(_0x36cf3f);const _0x27d8d6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5d1408,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x27d8d6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x33e774,_0x41aa7a,_0x51f53d){super(_0x33e774),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x33e774),this['_errorView']=new ti(_0x33e774),this['_editingView']=new ei(_0x33e774,_0x51f53d),this['_focusableView']=new _0x3ef4e6(_0x33e774),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x41aa7a),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'],_0x57e176=>{this['_addUploadcareImageEditorListeners'](_0x57e176);});}),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'](_0x356f72,_0x597860){const _0x4ad031='uc-cloud-image-editor',_0x52e6eb=_0x356f72['querySelector'](_0x4ad031);if(_0x52e6eb)return _0x597860(_0x52e6eb);const _0x3beee5=new MutationObserver(_0x19d436=>{const _0x1111cf=_0x19d436['filter'](_0x46eb4c=>_0x46eb4c['target']===_0x356f72&&_0x46eb4c['addedNodes']['length']>0x0&&_0x46eb4c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4ad031);_0x1111cf['length']&&(_0x3beee5['disconnect'](),_0x597860(_0x1111cf[0x0]['addedNodes'][0x0]));});_0x3beee5['observe'](_0x356f72,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3edc71){_0x3edc71['addEventListener']('apply',_0x2ef1d8=>{this['fire']('apply',{'imageSrc':_0x2ef1d8['detail']['cdnUrl']});}),_0x3edc71['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x141f77(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x486572,_0x53f7c2,_0x5dbe40){super(),this['_editor']=_0x486572,this['_dialog']=_0x53f7c2,this['_imageElement']=_0x5dbe40,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 _0x33b2bd=this['_imageElement'],_0x174861=_0x33b2bd['getAttribute']('uploadcareImageId'),_0x4210f1=_0x33b2bd['getAttribute']('src');if(_0x174861)await this['_loadImageInfo'](_0x174861,_0x4210f1);else{if(this['_imageCache']['has'](_0x4210f1)){const _0x57fea6=this['_imageCache']['get'](_0x4210f1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57fea6['url'],this['imageDimension']=_0x57fea6['dimension'],this['imageId']=_0x57fea6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1e099f}=this['_editor'],t=_0x1e099f['t'],_0x29812c=new X(_0x1e099f,this['imageStatus'],this['_attributes']);_0x29812c['bind']('status')['to'](this,'imageStatus'),_0x29812c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x29812c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x29812c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x29812c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x853a39,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x29812c,'position':_0x3640ee['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x29812c['focus']();},'onHide':()=>{_0x29812c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x21dd47=>!A(_0x21dd47,_0x29812c['element'])}});}['_loadImageInfo'](_0xbad44a,_0x3a12c0){return j['getInfo'](_0xbad44a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1b2b3f=>{const {width:_0x1337f6,height:_0x2041c4}=_0x1b2b3f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a12c0,this['imageDimension']={'width':_0x1337f6,'height':_0x2041c4},this['imageId']=_0xbad44a;})['catch'](_0x3e3fdc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e3fdc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4143c6,_0x350583){return this['_getImageAsFile'](_0x4143c6)['then'](_0x2b99ad=>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':_0x350583['signal'],'file':_0x2b99ad,'onProgress':_0x442883=>{_0x442883&&_0x442883['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x442883['value']));}}))['then'](_0x5991f6=>{const {width:_0x4a1a4e,height:_0x5b78c8}=_0x5991f6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5991f6['cdnUrl'],this['imageDimension']={'width':_0x4a1a4e,'height':_0x5b78c8},this['imageId']=_0x5991f6['uuid'],this['imageUploadProgress']=null;const _0x32ce98=_0x4143c6['getAttribute']('src');this['_imageCache']['set'](_0x32ce98,{'id':_0x5991f6['uuid'],'url':_0x5991f6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x387356=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x387356['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3bc149,_0x19b635){_0x3bc149['on']('apply',(_0x39e3d4,_0x2dd78f)=>{this['_replaceImage'](_0x19b635,_0x2dd78f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3bc149['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3bc149['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x47b44d,_0x2b6b96,_0x4f0b2d){const _0x25d4d4=this['_editor'],{width:_0x415d42,height:_0x141748}=S(_0x2b6b96,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x551eb7,imageSources:_0xbeefd2}=C(_0x2b6b96,_0x415d42);_0x25d4d4['model']['change'](_0x5d51af=>{if('$graveyard'===_0x47b44d['root']['rootName']){_0x25d4d4['execute']('insertImage',{'imageType':_0x47b44d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x47b44d['getAttributes']()),'uploadcareImageId':_0x4f0b2d,'src':_0x551eb7,'sources':_0xbeefd2,'width':_0x415d42,'height':_0x141748}});const _0x296546=_0x47b44d['getChildren']();_0x47b44d=_0x25d4d4['model']['document']['selection']['getSelectedElement']();for(const _0x3cb162 of _0x296546)_0x5d51af['append'](_0x5d51af['cloneElement'](_0x3cb162),_0x47b44d);}else _0x5d51af['setSelection'](_0x47b44d,'on'),_0x25d4d4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x47b44d['getAttributes']()),'uploadcareImageId':_0x4f0b2d,'src':_0x551eb7,'sources':_0xbeefd2,'width':_0x415d42,'height':_0x141748},_0x47b44d);_0x5d51af['setSelection'](_0x47b44d,'on');});}async['_getImageAsFile'](_0x571519){const _0x5aade1=_0x23c968['window'],_0x3c7601=_0x23c968['document']['location']['href'],_0x2638d6=new _0x5aade1['URL'](_0x571519['getAttribute']('src'),_0x3c7601);if('data:'===_0x2638d6['protocol']){const _0x5dece4=_0x2638d6['href']['split'](','),_0xcc26e4=_0x5dece4[0x0]['match'](/:(.*?);/)[0x1],_0x51c8c2=_0xcc26e4['split']('/')[0x1],_0x12595d=_0x5aade1['atob'](_0x5dece4[_0x5dece4['length']-0x1]);let _0x567200=_0x12595d['length'];const _0x2bb289=new _0x5aade1['Uint8Array'](_0x567200);for(;_0x567200--;)_0x2bb289[_0x567200]=_0x12595d['charCodeAt'](_0x567200);return new _0x5aade1['File']([_0x2bb289],'image.'+_0x51c8c2,{'type':_0xcc26e4});}const _0xba54b3=_0x2638d6['href']['split']('/'),_0x5decde=_0xba54b3[_0xba54b3['length']-0x1],_0x581462=_0x5decde['split']('.')[0x1];return _0x5aade1['fetch'](_0x2638d6['href'])['then'](_0x4845a6=>_0x4845a6['clone']()['blob']())['then'](_0x372e38=>new _0x5aade1['File']([_0x372e38],_0x5decde,{'type':'image/'+_0x581462}));}}class O extends _0x288d1e{['imageEditController'];static get['requires'](){return[_0x4bbaa4];}['_isEditable'];constructor(_0x35a2c5){super(_0x35a2c5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1e6c31){const _0x320348=G(_0x1e6c31);return _0x1058de=>!(!_0x1058de||!_0x1058de['is']('element','imageBlock')&&!_0x1058de['is']('element','imageInline'))&&(!!_0x1058de['hasAttribute']('uploadcareImageId')||!!_0x1058de['hasAttribute']('src')&&_0x320348(_0x1058de['getAttribute']('src')));}(_0x35a2c5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5b8926=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5b8926);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4b1444=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b1444&&(_0x4b1444['is']('element','imageBlock')||_0x4b1444['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4bbaa4),_0x4b1444),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x288d1e{['refresh'](){const _0xcd2d5f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xcd2d5f&&(_0xcd2d5f['is']('element','imageBlock')||_0xcd2d5f['is']('element','imageInline')));}['execute'](_0xcd9d60){const _0x5388a2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1dfb8b=>{_0x1dfb8b['setAttributes'](_0xcd9d60,_0x5388a2),_0x1dfb8b['removeAttribute']('srcset',_0x5388a2),_0x1dfb8b['removeAttribute']('sizes',_0x5388a2);});}}class m extends _0x4f265d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x35878d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b6214}=this;_0x4b6214['commands']['add']('uploadcareImageEdit',new O(_0x4b6214)),_0x4b6214['commands']['add']('uploadcareImageReplace',new R(_0x4b6214));}}class g extends _0x4f265d{['_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 _0xb2149a=this['editor'];_0xb2149a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x151cf2=>{const _0x3ea2ae=_0xb2149a['commands']['get']('uploadcareImageEdit'),_0x1a3889=new _0x273d6d(_0x151cf2),t=_0x151cf2['t'];return _0x1a3889['set']({'icon':_0x853a39,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1a3889['bind']('isEnabled')['to'](_0x3ea2ae),_0x1a3889['bind']('isOn')['to'](_0x3ea2ae,'isActive'),this['listenTo'](_0x1a3889,'execute',()=>{_0xb2149a['execute']('uploadcareImageEdit'),_0xb2149a['editing']['view']['focus']();}),_0x1a3889;}),this['_initConfig']();}['_initConfig'](){const _0x44974e=_0x425fdc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x44974e),this['listenTo'](this['editor'],'destroy',()=>{_0x44974e['remove']();});}}class et extends _0x4f265d{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};
|
|
@@ -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
|
|