@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.9 → 46.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index-editor.css +2 -2
- package/dist/index.css +2 -2
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +11 -11
- package/src/augmentation.d.ts +4 -4
- package/src/index.d.ts +10 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +2 -2
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.d.ts +3 -3
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.d.ts +3 -3
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.d.ts +2 -2
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.d.ts +2 -3
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.d.ts +13 -3
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +3 -3
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +3 -4
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.d.ts +3 -3
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.d.ts +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.d.ts +2 -2
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.d.ts +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import UploadcareEditing from './uploadcareediting.js';
|
|
11
|
+
import { UploadcareEditing } from './uploadcareediting.js';
|
|
12
12
|
import type { UploadcareSource } from './uploadcareconfig.js';
|
|
13
13
|
/**
|
|
14
14
|
* The Uploadcare command. It is used by the {@link module:uploadcare/uploadcareediting~UploadcareEditing Uploadcare editing feature}
|
|
@@ -18,7 +18,7 @@ import type { UploadcareSource } from './uploadcareconfig.js';
|
|
|
18
18
|
* editor.execute( 'uploadcare' );
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export declare class UploadcareCommand extends Command {
|
|
22
22
|
/**
|
|
23
23
|
* @inheritDoc
|
|
24
24
|
*/
|
package/src/uploadcarecommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2ba6(_0xe760e0,_0x105d26){var _0x23ddc8=_0x23dd();return _0x2ba6=function(_0x2ba649,_0x2cf2a3){_0x2ba649=_0x2ba649-0x14f;var _0x32b06d=_0x23ddc8[_0x2ba649];return _0x32b06d;},_0x2ba6(_0xe760e0,_0x105d26);}var _0x1a8beb=_0x2ba6;(function(_0x57946f,_0x394a73){var _0x1d7ee3=_0x2ba6,_0x2b6126=_0x57946f();while(!![]){try{var _0x124621=parseInt(_0x1d7ee3(0x165))/0x1*(parseInt(_0x1d7ee3(0x156))/0x2)+parseInt(_0x1d7ee3(0x15c))/0x3+parseInt(_0x1d7ee3(0x153))/0x4*(parseInt(_0x1d7ee3(0x167))/0x5)+parseInt(_0x1d7ee3(0x15e))/0x6+parseInt(_0x1d7ee3(0x166))/0x7*(parseInt(_0x1d7ee3(0x152))/0x8)+parseInt(_0x1d7ee3(0x159))/0x9*(-parseInt(_0x1d7ee3(0x154))/0xa)+-parseInt(_0x1d7ee3(0x157))/0xb*(parseInt(_0x1d7ee3(0x151))/0xc);if(_0x124621===_0x394a73)break;else _0x2b6126['push'](_0x2b6126['shift']());}catch(_0x335e8a){_0x2b6126['push'](_0x2b6126['shift']());}}}(_0x23dd,0x6e636));import{Command as _0x4ded2a}from'ckeditor5/src/core.js';import{Dialog as _0x323ea7}from'ckeditor5/src/ui.js';function _0x23dd(){var _0x2c6a9a=['8037612CdnPwN','execute','isEnabled','1176471Lnuotk','insertImage','1524624luKpHM','commands','get','_checkEnabled','requires','refresh','editor','47675LpwwBz','344624gWiHOC','95qSdKrS','destroy','plugins','2436novbIZ','96gPAuNU','39496ajUQKR','10FIxkFU','_editing','4pZvzPO','9471jSuTnZ','_controller'];_0x23dd=function(){return _0x2c6a9a;};return _0x23dd();}import{UploadcareEditing as _0x3a8bea}from'./uploadcareediting.js';import{UploadcareController as _0x4d9b8a}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x4ded2a{[_0x1a8beb(0x155)];[_0x1a8beb(0x158)]=null;static get[_0x1a8beb(0x162)](){return[_0x323ea7,_0x3a8bea];}constructor(_0x534aa2){var _0x26d21a=_0x1a8beb;super(_0x534aa2),this[_0x26d21a(0x155)]=_0x534aa2[_0x26d21a(0x150)][_0x26d21a(0x160)](_0x3a8bea);}[_0x1a8beb(0x163)](){var _0x53a63e=_0x1a8beb;this[_0x53a63e(0x15b)]=this[_0x53a63e(0x161)]();}[_0x1a8beb(0x15a)](_0x42c6df){var _0xd923ac=_0x1a8beb;this[_0xd923ac(0x158)]&&(this[_0xd923ac(0x158)][_0xd923ac(0x14f)](),this[_0xd923ac(0x158)]=null),this[_0xd923ac(0x158)]=new _0x4d9b8a(this[_0xd923ac(0x164)],this[_0xd923ac(0x155)],_0x42c6df);}[_0x1a8beb(0x161)](){var _0x182b2a=_0x1a8beb;return this[_0x182b2a(0x164)][_0x182b2a(0x15f)][_0x182b2a(0x160)](_0x182b2a(0x15d))[_0x182b2a(0x15b)];}}
|
|
@@ -114,7 +114,7 @@ export interface UploadcareConfig {
|
|
|
114
114
|
*
|
|
115
115
|
* You can find detailed information in the [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/options/).
|
|
116
116
|
*/
|
|
117
|
-
export interface UploadcareUploaderConfig extends Partial<Omit<ConfigType,
|
|
117
|
+
export interface UploadcareUploaderConfig extends Partial<Omit<ConfigType, UploadcareExcludedKeys | 'sourceList'>> {
|
|
118
118
|
/**
|
|
119
119
|
* Comma-separated list of file sources.
|
|
120
120
|
*
|
|
@@ -135,7 +135,7 @@ export interface UploadcareEditorConfig {
|
|
|
135
135
|
/**
|
|
136
136
|
* All not supported config options.
|
|
137
137
|
*/
|
|
138
|
-
type
|
|
138
|
+
export type UploadcareExcludedKeys = 'imgOnly' | 'removeCopyright' | 'localeName' | 'confirmUpload' | 'cameraMirror' | 'cameraCapture' | 'showEmptyList';
|
|
139
139
|
/**
|
|
140
140
|
* Definition of all available upload sources.
|
|
141
141
|
*/
|
|
@@ -225,4 +225,3 @@ export interface UploadcareAssetImageAttributesDefinition {
|
|
|
225
225
|
height: number;
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
export {};
|
package/src/uploadcareconfig.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xd0f3(){var _0x1babc1=['1414399CthCwA','1074677qWKyyi','dropbox','URL','local','OneDrive','GDrive','GPhotos','gphotos','url','41772740AULZNq','239544TYHqUA','8176624GRbxZL','Local','7917798DnONXF','25aongxu','16868Tokxgy','561SNpfoC','onedrive','9ALUmZZ','Facebook','gdrive','facebook','Dropbox'];_0xd0f3=function(){return _0x1babc1;};return _0xd0f3();}(function(_0x47ce6a,_0x58981a){var _0x7a5d0f=_0x2d2d,_0x14255f=_0x47ce6a();while(!![]){try{var _0x1ad7b8=parseInt(_0x7a5d0f(0x119))/0x1+-parseInt(_0x7a5d0f(0x110))/0x2*(parseInt(_0x7a5d0f(0x111))/0x3)+-parseInt(_0x7a5d0f(0x123))/0x4*(parseInt(_0x7a5d0f(0x10f))/0x5)+-parseInt(_0x7a5d0f(0x126))/0x6+-parseInt(_0x7a5d0f(0x118))/0x7+-parseInt(_0x7a5d0f(0x124))/0x8*(parseInt(_0x7a5d0f(0x113))/0x9)+parseInt(_0x7a5d0f(0x122))/0xa;if(_0x1ad7b8===_0x58981a)break;else _0x14255f['push'](_0x14255f['shift']());}catch(_0x340512){_0x14255f['push'](_0x14255f['shift']());}}}(_0xd0f3,0xcb06b));export var UploadcareSource;function _0x2d2d(_0x31104a,_0x54a837){var _0xd0f344=_0xd0f3();return _0x2d2d=function(_0x2d2d16,_0x346f1c){_0x2d2d16=_0x2d2d16-0x10f;var _0x346761=_0xd0f344[_0x2d2d16];return _0x346761;},_0x2d2d(_0x31104a,_0x54a837);}!function(_0x5bc36d){var _0x345a70=_0x2d2d;_0x5bc36d[_0x345a70(0x125)]=_0x345a70(0x11c),_0x5bc36d[_0x345a70(0x11b)]=_0x345a70(0x121),_0x5bc36d[_0x345a70(0x117)]=_0x345a70(0x11a),_0x5bc36d[_0x345a70(0x11e)]=_0x345a70(0x115),_0x5bc36d[_0x345a70(0x114)]=_0x345a70(0x116),_0x5bc36d[_0x345a70(0x11f)]=_0x345a70(0x120),_0x5bc36d[_0x345a70(0x11d)]=_0x345a70(0x112);}(UploadcareSource||(UploadcareSource={}));
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareediting
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import UploadcareUploadAdapter from './uploadcareuploadadapter.js';
|
|
11
|
+
import { UploadcareUploadAdapter } from './uploadcareuploadadapter.js';
|
|
12
12
|
import type { UploaderBlock } from '@uploadcare/file-uploader';
|
|
13
13
|
/**
|
|
14
14
|
* The Uploadcare editing feature. It introduces the {@link module:uploadcare/uploadcarecommand~UploadcareCommand command}.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class UploadcareEditing extends Plugin {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
|
@@ -30,6 +30,12 @@ export default class UploadcareEditing extends Plugin {
|
|
|
30
30
|
* @inheritDoc
|
|
31
31
|
*/
|
|
32
32
|
static get isPremiumPlugin(): true;
|
|
33
|
+
/**
|
|
34
|
+
* A unique ID used to make the `ctx-name` property distinct.
|
|
35
|
+
*
|
|
36
|
+
* This ID ensures that each editor instance references to a different Uploadcare web components.
|
|
37
|
+
*/
|
|
38
|
+
ucContextId: string;
|
|
33
39
|
/**
|
|
34
40
|
* Returns the DOM element that represents the Uploadcare config web component.
|
|
35
41
|
*/
|
|
@@ -38,6 +44,10 @@ export default class UploadcareEditing extends Plugin {
|
|
|
38
44
|
* Returns the DOM element associated with the Uploadcare context web component.
|
|
39
45
|
*/
|
|
40
46
|
get ctxElement(): UploaderBlock | null;
|
|
47
|
+
/**
|
|
48
|
+
* @inheritDoc
|
|
49
|
+
*/
|
|
50
|
+
constructor(editor: Editor);
|
|
41
51
|
/**
|
|
42
52
|
* @inheritDoc
|
|
43
53
|
*/
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5c218b=_0x3876;(function(_0x1ca953,_0x3fde8d){const _0xeaafc5=_0x3876,_0x353fb9=_0x1ca953();while(!![]){try{const _0x55f39b=-parseInt(_0xeaafc5(0xd2))/0x1*(-parseInt(_0xeaafc5(0xf6))/0x2)+parseInt(_0xeaafc5(0xdd))/0x3*(-parseInt(_0xeaafc5(0xd7))/0x4)+parseInt(_0xeaafc5(0xe2))/0x5*(-parseInt(_0xeaafc5(0xd0))/0x6)+parseInt(_0xeaafc5(0xef))/0x7+-parseInt(_0xeaafc5(0xf3))/0x8*(parseInt(_0xeaafc5(0xd6))/0x9)+-parseInt(_0xeaafc5(0xd4))/0xa+parseInt(_0xeaafc5(0xb6))/0xb;if(_0x55f39b===_0x3fde8d)break;else _0x353fb9['push'](_0x353fb9['shift']());}catch(_0x273573){_0x353fb9['push'](_0x353fb9['shift']());}}}(_0x3f26,0x6b551));import{Plugin as _0x46bc52}from'ckeditor5/src/core.js';import{Dialog as _0x3e2561}from'ckeditor5/src/ui.js';function _0x3876(_0x16a2fb,_0xe4810b){const _0x3f2612=_0x3f26();return _0x3876=function(_0x38760b,_0x1a2aad){_0x38760b=_0x38760b-0xab;let _0x3603b0=_0x3f2612[_0x38760b];return _0x3603b0;},_0x3876(_0x16a2fb,_0xe4810b);}import{createElement as _0x6ffd63,global as _0x1f2948,uid as _0x5570cf}from'ckeditor5/src/utils.js';import _0xa9c9da from'./uploadcarecommand.js';function _0x3f26(){const _0x3d0316=['schema','remove','commands','model','execute','_ctxElement','_initCtx','PictureEditing','render','add','isOfficialPlugin','config','211841ruYiOF','uploadcareImageId','uc-upload-ctx-provider','closeMax','317648TzWtlM','destroy','pluginName','2AHFwxb','configElement','_configElement','removeAttribute','body','uploadcare.pubkey','selection','imageBlock','requires','true','get','_initConfig','iconHrefResolver','listenTo','_initConversion','uploader','downcast','uc-config','contentLanguage','getAttribute','getSelectedElement','27450489IYtzTO','init','cleanupImage','querySelector','href','conversion','isRegistered','afterInit','view','once','isPremiumPlugin','for','imageInline','uploadcare','appendChild','input[uploadcare-file-input]','_initImageProcessingIndicator','UploadcareEditing','attributeToAttribute','locale','\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','join','#uc-icon-arrow-down','uploadcareImageReplace','map','uploadcare.uploader','2994zkmskd','editing','68564OmqJyl','data-uc-image-id','771180bScpHF','elementToAttribute','198wjPRrL','48NXcuVq','editor','document','fromCharCode','upcast','insertImage','191106AYVcSp','replaceImageSource','ctxElement','_initSchema','extend','4405EIxTHE'];_0x3f26=function(){return _0x3d0316;};return _0x3f26();}import _0x13cc8f from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x9d1c68}from'./utils/editingutils.js';export default class i extends _0x46bc52{[_0x5c218b(0xf8)]=null;[_0x5c218b(0xe8)]=null;static get[_0x5c218b(0xf5)](){const _0x1c27c2=_0x5c218b;return _0x1c27c2(0xc7);}static get[_0x5c218b(0xfe)](){const _0x2a8229=_0x5c218b;return[_0x2a8229(0xea),_0x13cc8f,_0x3e2561];}static get[_0x5c218b(0xed)](){return!0x0;}static get[_0x5c218b(0xc0)](){return!0x0;}get[_0x5c218b(0xf7)](){const _0x2442cd=_0x5c218b;return this[_0x2442cd(0xf8)];}get[_0x5c218b(0xdf)](){const _0x10880e=_0x5c218b;return this[_0x10880e(0xe8)];}[_0x5c218b(0xb7)](){const _0x3c64c8=_0x5c218b,_0x19c2e3=this[_0x3c64c8(0xd8)];_0x19c2e3[_0x3c64c8(0xe5)][_0x3c64c8(0xec)](_0x3c64c8(0xc3),new _0xa9c9da(_0x19c2e3));}[_0x5c218b(0xbd)](){const _0x2b065a=_0x5c218b;this[_0x2b065a(0xe0)](),this[_0x2b065a(0xaf)](),this[_0x2b065a(0xac)](),this[_0x2b065a(0xe9)](),this[_0x2b065a(0xc6)](),this[_0x2b065a(0xae)](this[_0x2b065a(0xd8)],_0x2b065a(0xf4),()=>{const _0x4e33ec=_0x2b065a;this[_0x4e33ec(0xf8)]&&(this[_0x4e33ec(0xf8)][_0x4e33ec(0xe4)](),this[_0x4e33ec(0xf8)]=null),this[_0x4e33ec(0xe8)]&&(this[_0x4e33ec(0xe8)][_0x4e33ec(0xe4)](),this[_0x4e33ec(0xe8)]=null);const _0x4bbe2d=_0x1f2948[_0x4e33ec(0xd9)][_0x4e33ec(0xb9)](_0x4e33ec(0xc5));_0x4bbe2d&&_0x4bbe2d[_0x4e33ec(0xe4)]();}),async function(_0x36761a){const _0x99339e=_0x40ba17([0x53,0x65,0x38,0x43,0x4e,0x75,0x42,0x58,0x71,0x4a,0x31,0x77,0x66,0x70,0x78,0x72,0x6c,0x6e,0x52,0x45,0x48,0x35,0x6a,0x68,0x73,0x64,0x74,0x39,0x5a,0x69,0x59,0x61,0x4c,0x76,0x30,0x55,0x57,0x6b,0x4f,0x41,0x79,0x47,0x56,0x51,0x36,0x62,0x6d,0x4d,0x67,0x50,0x7a,0x32,0x54,0x44,0x37,0x49,0x46,0x6f,0x33,0x63,0x4b,0x34]),_0x26971f=0x59d118f7,_0x484d08=0x59d67367^_0x26971f,_0x10c3be=window[_0x40ba17([0x44,0x61,0x74,0x65])][_0x40ba17([0x6e,0x6f,0x77])](),_0x2ef73d=_0x36761a[_0x40ba17([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2756ac=new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1d4b=>{_0x2ef73d[_0x40ba17([0x6f,0x6e,0x63,0x65])](_0x40ba17([0x72,0x65,0x61,0x64,0x79]),_0x2a1d4b);}),_0x170b75={[_0x40ba17([0x6b,0x74,0x79])]:_0x40ba17([0x45,0x43]),[_0x40ba17([0x75,0x73,0x65])]:_0x40ba17([0x73,0x69,0x67]),[_0x40ba17([0x63,0x72,0x76])]:_0x40ba17([0x50,0x2d,0x32,0x35,0x36]),[_0x40ba17([0x78])]:_0x40ba17([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]),[_0x40ba17([0x79])]:_0x40ba17([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]),[_0x40ba17([0x61,0x6c,0x67])]:_0x40ba17([0x45,0x53,0x32,0x35,0x36])},_0x3829e0=_0x2ef73d[_0x40ba17([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40ba17([0x67,0x65,0x74])](_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4470d4(){let _0xd2149b,_0x3a918b=null,_0x198544=null;try{if(_0x3829e0==_0x40ba17([0x47,0x50,0x4c]))return _0x40ba17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd2149b=_0x49c763(),!_0xd2149b)return _0x40ba17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd2149b[_0x40ba17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x198544=_0x3b2038(_0xd2149b[_0x40ba17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd2149b[_0x40ba17([0x6a,0x74,0x69])])),await _0x44af14()?_0x3be89c()?_0x4a0aec()?_0x40ba17([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a4be4()?(_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ba17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a918b=_0x38adef(_0x40ba17([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ba17([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a918b=_0x38adef(_0x40ba17([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x506e15()):_0x40ba17([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40ba17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40ba17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40ba17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a0aec(){const _0x726df3=[_0x40ba17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40ba17([0x74,0x72,0x69,0x61,0x6c])][_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10c3be/0x3e8:0xe10*_0x484d08;return _0xd2149b[_0x40ba17([0x65,0x78,0x70])]<_0x726df3;}function _0x3be89c(){const _0x2529b0=_0xd2149b[_0x40ba17([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2529b0&&(!!_0x2529b0[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ba17([0x2a]))||!!_0x2529b0[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ba17([0x55,0x50,0x4c,0x43])));}function _0x2a4be4(){const _0x5ddd4f=_0x3876,_0x546941=_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x546941||0x0==_0x546941[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59cc71}=new URL(window[_0x40ba17([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5ddd4f(0xba)]);if(_0x546941[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59cc71))return!0x0;const _0x15de61=_0x59cc71[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e]));return _0x546941[_0x40ba17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x249e40=>_0x249e40[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ba17([0x2a])))[_0x40ba17([0x6d,0x61,0x70])](_0x274a45=>_0x274a45[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e])))[_0x40ba17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39dc23=>_0x39dc23[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x15de61[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ba17([0x6d,0x61,0x70])](_0x1cd062=>Array(_0x15de61[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cd062[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ba17([0x66,0x69,0x6c,0x6c])](_0x1cd062[0x0]===_0x40ba17([0x2a])?_0x40ba17([0x2a]):'')[_0x40ba17([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cd062))[_0x40ba17([0x73,0x6f,0x6d,0x65])](_0x31613e=>_0x15de61[_0x40ba17([0x65,0x76,0x65,0x72,0x79])]((_0x415bb2,_0x1d0079)=>_0x31613e[_0x1d0079]===_0x415bb2||_0x31613e[_0x1d0079]===_0x40ba17([0x2a])));}function _0x506e15(){return _0x3a918b&&_0x198544?new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4436d6,_0x57ef98)=>{_0x3a918b[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x4436d6,_0x57ef98),_0x198544[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x5d1d15=>{_0x5d1d15!=_0x40ba17([0x56,0x61,0x6c,0x69,0x64])&&_0x4436d6(_0x5d1d15);},_0x57ef98);}):_0x3a918b||_0x198544||_0x40ba17([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b2038(_0x4e1a26,_0x54ba1f){return new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f18e6=>{if(_0x559896())return _0x5f18e6(_0x40ba17([0x56,0x61,0x6c,0x69,0x64]));_0x163399(),_0x2ef73d[_0x40ba17([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40ba17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e9a90=!0x1;const _0x394877=_0x5570cf();function _0x400b28(_0x1b5674){return!!_0x1b5674&&(typeof _0x1b5674===_0x40ba17([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b5674===_0x40ba17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b5674[_0x40ba17([0x74,0x68,0x65,0x6e])]===_0x40ba17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b5674[_0x40ba17([0x63,0x61,0x74,0x63,0x68])]===_0x40ba17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4df129(_0x413d69){_0x1d7afb(_0x413d69)[_0x40ba17([0x74,0x68,0x65,0x6e])](_0xbd213f=>{if(!_0xbd213f||_0xbd213f[_0x40ba17([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40ba17([0x6f,0x6b]))return _0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7da9f0(_0x46f726(_0x394877+_0x54ba1f))!=_0xbd213f[_0x40ba17([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40ba17([0x56,0x61,0x6c,0x69,0x64]);})[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x25c1d8=>(_0x277236(),_0x25c1d8),()=>{const _0xff2bc2=_0x2c9c6a();return null==_0xff2bc2?(_0x277236(),_0x40ba17([0x56,0x61,0x6c,0x69,0x64])):_0x40ba17(_0x10c3be-_0xff2bc2>(0x7ddd9cf7^_0x26971f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x5f18e6)[_0x40ba17([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f18e6(_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x76d933=0x59e7f677^_0x26971f;function _0x277236(){const _0x22f6ad=_0x40ba17([0x6c,0x6c,0x63,0x74,0x2d])+_0x7da9f0(_0x46f726(_0x4e1a26)),_0x11f548=_0x9a9105(_0x7da9f0(window[_0x40ba17([0x4d,0x61,0x74,0x68])][_0x40ba17([0x63,0x65,0x69,0x6c])](_0x10c3be/_0x76d933)));window[_0x40ba17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ba17([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22f6ad,_0x11f548);}function _0x2c9c6a(){const _0x1e5d63=_0x40ba17([0x6c,0x6c,0x63,0x74,0x2d])+_0x7da9f0(_0x46f726(_0x4e1a26)),_0x17fcd4=window[_0x40ba17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ba17([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e5d63);return _0x17fcd4?window[_0x40ba17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9a9105(_0x17fcd4),0x10)*_0x76d933:null;}function _0x1d7afb(_0x49f7){return new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a6fa6,_0x21e9dd)=>{_0x49f7[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x4a6fa6,_0x21e9dd),window[_0x40ba17([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21e9dd,0x59d0cc37^_0x26971f);});}}_0x2ef73d[_0x40ba17([0x6f,0x6e])](_0x40ba17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b759d,_0x1c7942)=>{if(_0x1c7942[0x0]!=_0x4e1a26)return _0x5f18e6(_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c7942[0x1]={..._0x1c7942[0x1],[_0x40ba17([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x394877};},{[_0x40ba17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ba17([0x68,0x69,0x67,0x68])}),_0x2ef73d[_0x40ba17([0x6f,0x6e])](_0x40ba17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x641440=>{_0x400b28(_0x641440[_0x40ba17([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e9a90=!0x0,_0x4df129(_0x641440[_0x40ba17([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40ba17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ba17([0x6c,0x6f,0x77])}),_0x2756ac[_0x40ba17([0x74,0x68,0x65,0x6e])](()=>{_0x1e9a90||_0x5f18e6(_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x559896(){return _0x2ef73d[_0x40ba17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ba17([0x76,0x69,0x65,0x77])][_0x40ba17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40ba17([0x61,0x75,0x74,0x6f]);}function _0x163399(){_0x2ef73d[_0x40ba17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ba17([0x76,0x69,0x65,0x77])][_0x40ba17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40ba17([0x61,0x75,0x74,0x6f]);}}function _0x38adef(_0x2b956a){const _0x4413f9=[new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119e8f=>setTimeout(_0x119e8f,0x59d8263b^_0x26971f)),_0x2756ac[_0x40ba17([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2900c0=>{let _0x5c3cd1=0x0;_0x2ef73d[_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ba17([0x6f,0x6e])](_0x40ba17([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b2744,_0x2889aa)=>{_0x2889aa[0x0][_0x40ba17([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c3cd1++,_0x5c3cd1==(0x59d1190f^_0x26971f)&&(_0x2900c0(),_0x5b2744[_0x40ba17([0x6f,0x66,0x66])]());});}))];return window[_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40ba17([0x72,0x61,0x63,0x65])](_0x4413f9)[_0x40ba17([0x74,0x68,0x65,0x6e])](()=>_0x2b956a);}async function _0x383811(){await _0x2756ac,_0x2ef73d[_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ba17([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b437c,_0x2ef73d[_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ba17([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b437c,_0x2ef73d[_0x40ba17([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x483483(_0x25a3c0){const _0x1eb74d=_0x3d9781();_0x2ef73d[_0x1eb74d]=_0x40ba17([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25a3c0,_0x25a3c0!=_0x40ba17([0x56,0x61,0x6c,0x69,0x64])&&_0x383811();}function _0x3d9781(){const _0x5b6935=window[_0x40ba17([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40ba17([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40ba17([0x6e,0x6f,0x77])]())[_0x40ba17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40ba17([0x2e]),'');let _0xca49e3=_0x40ba17([0x53]);for(let _0x482dfd=0x0;_0x482dfd<_0x5b6935[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x482dfd+=0x2){let _0x453a81=window[_0x40ba17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b6935[_0x40ba17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x482dfd,_0x482dfd+0x2));_0x453a81>=_0x99339e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x453a81-=_0x99339e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xca49e3+=_0x99339e[_0x453a81];}return _0xca49e3;}function _0x49c763(){const _0x4f2777=_0x3829e0[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e]));if(0x3!=_0x4f2777[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x44fa7f(_0x4f2777[0x1]);function _0x44fa7f(_0x433b36){const _0x268a7c=_0x40a168(_0x433b36);return _0x268a7c&&_0x43ac64()?_0x268a7c:null;function _0x43ac64(){const _0x1ab63e=_0x268a7c[_0x40ba17([0x6a,0x74,0x69])],_0x5da9c2=window[_0x40ba17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ab63e[_0x40ba17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ab63e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5616cf={..._0x268a7c,[_0x40ba17([0x6a,0x74,0x69])]:_0x1ab63e[_0x40ba17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ab63e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5616cf[_0x40ba17([0x76,0x63])],_0x46f726(_0x5616cf)==_0x5da9c2;}}}async function _0x44af14(){let _0x4815f5=!0x0;try{const _0x1b89dd=_0x3829e0[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e])),[_0x431ca5,_0x2e87a5,_0x283314]=_0x1b89dd;return _0x50c810(_0x431ca5),await _0x4e06d0(_0x431ca5,_0x2e87a5,_0x283314),_0x4815f5;}catch{return!0x1;}function _0x50c810(_0x11f0f6){const _0x184529=_0x40a168(_0x11f0f6);_0x184529&&_0x184529[_0x40ba17([0x61,0x6c,0x67])]==_0x40ba17([0x45,0x53,0x32,0x35,0x36])||(_0x4815f5=!0x1);}async function _0x4e06d0(_0x1f5a06,_0x1e4226,_0x54d1da){const _0x48abf3=window[_0x40ba17([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40ba17([0x66,0x72,0x6f,0x6d])](_0x5de067(_0x54d1da),_0x16694a=>_0x16694a[_0x40ba17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ae8ed=new window[(_0x40ba17([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40ba17([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f5a06+_0x40ba17([0x2e])+_0x1e4226),_0x24564d=window[_0x40ba17([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40ba17([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24564d)return;const _0x82cf82=await _0x24564d[_0x40ba17([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40ba17([0x6a,0x77,0x6b]),_0x170b75,{[_0x40ba17([0x6e,0x61,0x6d,0x65])]:_0x40ba17([0x45,0x43,0x44,0x53,0x41]),[_0x40ba17([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40ba17([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40ba17([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24564d[_0x40ba17([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40ba17([0x6e,0x61,0x6d,0x65])]:_0x40ba17([0x45,0x43,0x44,0x53,0x41]),[_0x40ba17([0x68,0x61,0x73,0x68])]:{[_0x40ba17([0x6e,0x61,0x6d,0x65])]:_0x40ba17([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x82cf82,_0x48abf3,_0x1ae8ed)||(_0x4815f5=!0x1);}}function _0x40a168(_0x59093d){return _0x59093d[_0x40ba17([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40ba17([0x65,0x79]))?JSON[_0x40ba17([0x70,0x61,0x72,0x73,0x65])](_0x5de067(_0x59093d)):null;}function _0x5de067(_0x3f1c55){return window[_0x40ba17([0x61,0x74,0x6f,0x62])](_0x3f1c55[_0x40ba17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40ba17([0x2b]))[_0x40ba17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40ba17([0x2f])));}function _0x46f726(_0x157d06){let _0x1d246c=0x1505;function _0x5e3d6f(_0x44c94d){for(let _0x3e4f5f=0x0;_0x3e4f5f<_0x44c94d[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e4f5f++){const _0x140c67=_0x44c94d[_0x40ba17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e4f5f);_0x1d246c=(_0x1d246c<<0x5)+_0x1d246c+_0x140c67,_0x1d246c&=_0x1d246c;}}function _0x43dde3(_0x132103){Array[_0x40ba17([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x132103)?_0x132103[_0x40ba17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43dde3):_0x132103&&typeof _0x132103==_0x40ba17([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40ba17([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x132103)[_0x40ba17([0x73,0x6f,0x72,0x74])]()[_0x40ba17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc22775,_0x49d325])=>{_0x5e3d6f(_0xc22775),_0x43dde3(_0x49d325);}):_0x5e3d6f(window[_0x40ba17([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x132103));}return _0x43dde3(_0x157d06),_0x1d246c>>>0x0;}function _0x7da9f0(_0x226d06){return _0x226d06[_0x40ba17([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40ba17([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40ba17([0x30]));}function _0x9a9105(_0x276ad4){return _0x276ad4[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40ba17([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40ba17([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b437c(){}function _0x40ba17(_0x4760f7){const _0x172410=_0x3876;return _0x4760f7[_0x172410(0xce)](_0x36f5f2=>String[_0x172410(0xda)](_0x36f5f2))[_0x172410(0xcb)]('');}_0x483483(await _0x4470d4());}(this);}[_0x5c218b(0xe0)](){const _0x1c2233=_0x5c218b,_0x4589b7=this[_0x1c2233(0xd8)][_0x1c2233(0xe6)][_0x1c2233(0xe3)];_0x4589b7[_0x1c2233(0xbc)](_0x1c2233(0xfd))&&_0x4589b7[_0x1c2233(0xe1)](_0x1c2233(0xfd),{'allowAttributes':[_0x1c2233(0xf0)]}),_0x4589b7[_0x1c2233(0xbc)](_0x1c2233(0xc2))&&_0x4589b7[_0x1c2233(0xe1)](_0x1c2233(0xc2),{'allowAttributes':[_0x1c2233(0xf0)]});}[_0x5c218b(0xaf)](){const _0x1fa72d=_0x5c218b,_0x31d931=this[_0x1fa72d(0xd8)];_0x31d931[_0x1fa72d(0xbb)][_0x1fa72d(0xc1)](_0x1fa72d(0xb1))[_0x1fa72d(0xc8)]({'model':_0x1fa72d(0xf0),'view':_0x1fa72d(0xd3)}),_0x31d931[_0x1fa72d(0xbb)][_0x1fa72d(0xc1)](_0x1fa72d(0xdb))[_0x1fa72d(0xd5)]({'model':{'key':_0x1fa72d(0xf0),'value':_0x3bdc4c=>_0x3bdc4c[_0x1fa72d(0xb4)](_0x1fa72d(0xd3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x576c6f=_0x31d931[_0x1fa72d(0xe5)][_0x1fa72d(0xab)](_0x1fa72d(0xde));_0x576c6f&&this[_0x1fa72d(0xae)](_0x576c6f,_0x1fa72d(0xb8),(_0x23a3a3,[_0x5f3f04,_0x2e7689])=>{const _0x5897a6=_0x1fa72d;_0x5f3f04[_0x5897a6(0xf9)](_0x5897a6(0xf0),_0x2e7689);});}[_0x5c218b(0xac)](){const _0x28185e=_0x5c218b,_0x3c0b1d=this[_0x28185e(0xd8)][_0x28185e(0xee)][_0x28185e(0xab)](_0x28185e(0xcf))||{},_0x53a0a6=this[_0x28185e(0xd8)][_0x28185e(0xee)][_0x28185e(0xab)](_0x28185e(0xfb))||'';this[_0x28185e(0xf8)]=_0x6ffd63(_0x1f2948[_0x28185e(0xd9)],_0x28185e(0xb2),{..._0x3c0b1d,'pubkey':_0x53a0a6,'ctx-name':_0x28185e(0xb0),'sourceList':'','imgOnly':_0x28185e(0xff),'removeCopyright':_0x28185e(0xff),'localeName':this[_0x28185e(0xd8)][_0x28185e(0xc9)][_0x28185e(0xb3)],'externalSourcesEmbedCss':_0x28185e(0xca)}),this[_0x28185e(0xf8)][_0x28185e(0xad)]=_0x5c137c=>{const _0x306024=_0x28185e;if(_0x306024(0xf2)==_0x5c137c)return _0x306024(0xcc);},_0x1f2948[_0x28185e(0xd9)][_0x28185e(0xfa)][_0x28185e(0xc4)](this[_0x28185e(0xf8)]);}[_0x5c218b(0xe9)](){const _0xc07f92=_0x5c218b;this[_0xc07f92(0xe8)]=_0x6ffd63(_0x1f2948[_0xc07f92(0xd9)],_0xc07f92(0xf1),{'ctx-name':_0xc07f92(0xb0)}),_0x1f2948[_0xc07f92(0xd9)][_0xc07f92(0xfa)][_0xc07f92(0xc4)](this[_0xc07f92(0xe8)]);}[_0x5c218b(0xc6)](){const _0x5512df=_0x5c218b,_0x2d7e1e=this[_0x5512df(0xd8)][_0x5512df(0xe5)][_0x5512df(0xab)](_0x5512df(0xdc));_0x2d7e1e&&this[_0x5512df(0xae)](_0x2d7e1e,_0x5512df(0xe7),()=>{const _0x51d81e=_0x5512df,_0x3506d0=this[_0x51d81e(0xd8)][_0x51d81e(0xe6)][_0x51d81e(0xd9)][_0x51d81e(0xfc)][_0x51d81e(0xb5)]();_0x3506d0&&_0x3506d0[_0x51d81e(0xb4)](_0x51d81e(0xf0))&&this[_0x51d81e(0xd8)][_0x51d81e(0xd1)][_0x51d81e(0xbe)][_0x51d81e(0xbf)](_0x51d81e(0xeb),()=>{const _0x5fe06d=_0x51d81e;_0x9d1c68(this[_0x5fe06d(0xd8)],_0x3506d0);});});const _0x32182f=this[_0x5512df(0xd8)][_0x5512df(0xe5)][_0x5512df(0xab)](_0x5512df(0xcd));_0x32182f&&this[_0x5512df(0xae)](_0x32182f,_0x5512df(0xe7),()=>{const _0x5cd857=_0x5512df,_0x6fea49=this[_0x5cd857(0xd8)][_0x5cd857(0xe6)][_0x5cd857(0xd9)][_0x5cd857(0xfc)][_0x5cd857(0xb5)]();_0x6fea49&&_0x6fea49[_0x5cd857(0xb4)](_0x5cd857(0xf0))&&this[_0x5cd857(0xd8)][_0x5cd857(0xd1)][_0x5cd857(0xbe)][_0x5cd857(0xbf)](_0x5cd857(0xeb),()=>{const _0x3b9b0c=_0x5cd857;_0x9d1c68(this[_0x3b9b0c(0xd8)],_0x6fea49);});});}}
|
|
23
|
+
function _0x42ef(_0x5e3e25,_0x1bdf7b){const _0xcda9c4=_0xcda9();return _0x42ef=function(_0x42efb0,_0x40bf9d){_0x42efb0=_0x42efb0-0x1d2;let _0x268f68=_0xcda9c4[_0x42efb0];return _0x268f68;},_0x42ef(_0x5e3e25,_0x1bdf7b);}const _0x34c6ee=_0x42ef;(function(_0x342e42,_0x3fd57d){const _0x203b26=_0x42ef,_0x3cc6de=_0x342e42();while(!![]){try{const _0x2e093d=-parseInt(_0x203b26(0x1ed))/0x1+-parseInt(_0x203b26(0x1f6))/0x2*(parseInt(_0x203b26(0x225))/0x3)+parseInt(_0x203b26(0x1d3))/0x4*(parseInt(_0x203b26(0x1f4))/0x5)+-parseInt(_0x203b26(0x1fc))/0x6+-parseInt(_0x203b26(0x1fe))/0x7*(-parseInt(_0x203b26(0x211))/0x8)+-parseInt(_0x203b26(0x218))/0x9*(-parseInt(_0x203b26(0x1f7))/0xa)+-parseInt(_0x203b26(0x1f5))/0xb*(parseInt(_0x203b26(0x1dc))/0xc);if(_0x2e093d===_0x3fd57d)break;else _0x3cc6de['push'](_0x3cc6de['shift']());}catch(_0x200716){_0x3cc6de['push'](_0x3cc6de['shift']());}}}(_0xcda9,0x3feea));import{Plugin as _0x4b5d3e}from'ckeditor5/src/core.js';import{Dialog as _0x1817b5}from'ckeditor5/src/ui.js';function _0xcda9(){const _0x514a3d=['uploadcare.uploader','_ctxElement','input[uploadcare-file-input]','ctxElement','isPremiumPlugin','remove','insertImage','replaceImageSource','closeMax','add','_configElement','328527oSAcQW','init','config','iconHrefResolver','map','68auDTmV','destroy','view','body','getSelectedElement','editing','isRegistered','_initSchema','uploadcareImageReplace','139476sOgWdY','requires','imageInline','_initImageProcessingIndicator','querySelector','true','_initCtx','downcast','selection','attributeToAttribute','extend','for','UploadcareEditing','commands','removeAttribute','model','uc-config','192932GdhUYD','conversion','once','configElement','ucContextId','appendChild','editor','145085qBkXro','11BxkBZy','2XQjQtr','13570muCPoN','cleanupImage','schema','uploadcare.pubkey','get','2364732TFDgEg','render','3213854skMBUv','execute','join','isOfficialPlugin','contentLanguage','afterInit','upcast','getAttribute','uploader-','_initConversion','#uc-icon-arrow-down','document','imageBlock','_initConfig','uploadcare','listenTo','fromCharCode','PictureEditing','uploadcareImageId','8cquTag','uc-upload-ctx-provider','data-uc-image-id','pluginName','locale','href','\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','117fhgmdE','elementToAttribute'];_0xcda9=function(){return _0x514a3d;};return _0xcda9();}import{createElement as _0x57ab19,global as _0x178f14,uid as _0x1882b8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x48dd03}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x37b0c5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2ffb1}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4b5d3e{[_0x34c6ee(0x224)]=null;[_0x34c6ee(0x21b)]=null;static get[_0x34c6ee(0x214)](){const _0x27d2c5=_0x34c6ee;return _0x27d2c5(0x1e8);}static get[_0x34c6ee(0x1dd)](){const _0x407497=_0x34c6ee;return[_0x407497(0x20f),_0x37b0c5,_0x1817b5];}static get[_0x34c6ee(0x201)](){return!0x0;}static get[_0x34c6ee(0x21e)](){return!0x0;}[_0x34c6ee(0x1f1)];get[_0x34c6ee(0x1f0)](){const _0x2c213e=_0x34c6ee;return this[_0x2c213e(0x224)];}get[_0x34c6ee(0x21d)](){const _0x25c6fe=_0x34c6ee;return this[_0x25c6fe(0x21b)];}constructor(_0x3f0be9){const _0x4f0916=_0x34c6ee;super(_0x3f0be9),this[_0x4f0916(0x1f1)]=_0x1882b8();}[_0x34c6ee(0x226)](){const _0x5db240=_0x34c6ee,_0x57937e=this[_0x5db240(0x1f3)];_0x57937e[_0x5db240(0x1e9)][_0x5db240(0x223)](_0x5db240(0x20c),new _0x48dd03(_0x57937e));}[_0x34c6ee(0x203)](){const _0x3b9f57=_0x34c6ee;this[_0x3b9f57(0x1da)](),this[_0x3b9f57(0x207)](),this[_0x3b9f57(0x20b)](),this[_0x3b9f57(0x1e2)](),this[_0x3b9f57(0x1df)](),this[_0x3b9f57(0x20d)](this[_0x3b9f57(0x1f3)],_0x3b9f57(0x1d4),()=>{const _0x164909=_0x3b9f57;this[_0x164909(0x224)]&&(this[_0x164909(0x224)][_0x164909(0x21f)](),this[_0x164909(0x224)]=null),this[_0x164909(0x21b)]&&(this[_0x164909(0x21b)][_0x164909(0x21f)](),this[_0x164909(0x21b)]=null);const _0xdb6116=_0x178f14[_0x164909(0x209)][_0x164909(0x1e0)](_0x164909(0x21c));_0xdb6116&&_0xdb6116[_0x164909(0x21f)]();}),async function(_0x293b63){const _0x3710b6=_0x41a6a0([0x6a,0x68,0x62,0x52,0x4e,0x6f,0x58,0x39,0x42,0x6b,0x7a,0x78,0x6c,0x67,0x37,0x54,0x64,0x47,0x77,0x34,0x75,0x56,0x66,0x48,0x73,0x4a,0x6e,0x53,0x31,0x46,0x45,0x38,0x51,0x36,0x70,0x6d,0x59,0x69,0x65,0x63,0x71,0x61,0x43,0x30,0x57,0x32,0x76,0x5a,0x4b,0x4c,0x4f,0x35,0x72,0x50,0x55,0x41,0x79,0x49,0x74,0x4d,0x44,0x33]),_0x4cb381=0x16f2b914,_0x4697f6=0x16f5d544^_0x4cb381,_0x2eee98=window[_0x41a6a0([0x44,0x61,0x74,0x65])][_0x41a6a0([0x6e,0x6f,0x77])](),_0x33c105=_0x293b63[_0x41a6a0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x542084=new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40daac=>{_0x33c105[_0x41a6a0([0x6f,0x6e,0x63,0x65])](_0x41a6a0([0x72,0x65,0x61,0x64,0x79]),_0x40daac);}),_0x13dd2f={[_0x41a6a0([0x6b,0x74,0x79])]:_0x41a6a0([0x45,0x43]),[_0x41a6a0([0x75,0x73,0x65])]:_0x41a6a0([0x73,0x69,0x67]),[_0x41a6a0([0x63,0x72,0x76])]:_0x41a6a0([0x50,0x2d,0x32,0x35,0x36]),[_0x41a6a0([0x78])]:_0x41a6a0([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]),[_0x41a6a0([0x79])]:_0x41a6a0([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]),[_0x41a6a0([0x61,0x6c,0x67])]:_0x41a6a0([0x45,0x53,0x32,0x35,0x36])},_0x85e08d=_0x33c105[_0x41a6a0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41a6a0([0x67,0x65,0x74])](_0x41a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf03b52(){let _0x36b5aa,_0x5c4457=null,_0x2d73e7=null;try{if(_0x85e08d==_0x41a6a0([0x47,0x50,0x4c]))return _0x41a6a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36b5aa=_0x42c1d2(),!_0x36b5aa)return _0x41a6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36b5aa[_0x41a6a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d73e7=_0x15c752(_0x36b5aa[_0x41a6a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36b5aa[_0x41a6a0([0x6a,0x74,0x69])])),await _0x427534()?_0x44a9ee()?_0x4d444a()?_0x41a6a0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe0a90e()?(_0x36b5aa[_0x41a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41a6a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c4457=_0x240fb8(_0x41a6a0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x36b5aa[_0x41a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41a6a0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c4457=_0x240fb8(_0x41a6a0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x27e6cd()):_0x41a6a0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41a6a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41a6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41a6a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d444a(){const _0x293627=[_0x41a6a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41a6a0([0x74,0x72,0x69,0x61,0x6c])][_0x41a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b5aa[_0x41a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2eee98/0x3e8:0xe10*_0x4697f6;return _0x36b5aa[_0x41a6a0([0x65,0x78,0x70])]<_0x293627;}function _0x44a9ee(){const _0x51eda0=_0x36b5aa[_0x41a6a0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51eda0&&(!!_0x51eda0[_0x41a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41a6a0([0x2a]))||!!_0x51eda0[_0x41a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41a6a0([0x55,0x50,0x4c,0x43])));}function _0xe0a90e(){const _0x2aed36=_0x42ef,_0x2c4f87=_0x36b5aa[_0x41a6a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c4f87||0x0==_0x2c4f87[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd2d24c}=new URL(window[_0x41a6a0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2aed36(0x216)]);if(_0x2c4f87[_0x41a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd2d24c))return!0x0;const _0x303963=_0xd2d24c[_0x41a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x41a6a0([0x2e]));return _0x2c4f87[_0x41a6a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f3cdf=>_0x3f3cdf[_0x41a6a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41a6a0([0x2a])))[_0x41a6a0([0x6d,0x61,0x70])](_0x43ecce=>_0x43ecce[_0x41a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x41a6a0([0x2e])))[_0x41a6a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbfe67c=>_0xbfe67c[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x303963[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41a6a0([0x6d,0x61,0x70])](_0x3102cf=>Array(_0x303963[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3102cf[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41a6a0([0x66,0x69,0x6c,0x6c])](_0x3102cf[0x0]===_0x41a6a0([0x2a])?_0x41a6a0([0x2a]):'')[_0x41a6a0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3102cf))[_0x41a6a0([0x73,0x6f,0x6d,0x65])](_0x3c7d3b=>_0x303963[_0x41a6a0([0x65,0x76,0x65,0x72,0x79])]((_0x71538b,_0x1ca023)=>_0x3c7d3b[_0x1ca023]===_0x71538b||_0x3c7d3b[_0x1ca023]===_0x41a6a0([0x2a])));}function _0x27e6cd(){return _0x5c4457&&_0x2d73e7?new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf3e66e,_0xfb9270)=>{_0x5c4457[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0xf3e66e,_0xfb9270),_0x2d73e7[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0x14f84c=>{_0x14f84c!=_0x41a6a0([0x56,0x61,0x6c,0x69,0x64])&&_0xf3e66e(_0x14f84c);},_0xfb9270);}):_0x5c4457||_0x2d73e7||_0x41a6a0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15c752(_0x40e98f,_0x4dbf7d){return new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24892b=>{if(_0x47eec4())return _0x24892b(_0x41a6a0([0x56,0x61,0x6c,0x69,0x64]));_0x323f66(),_0x33c105[_0x41a6a0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41a6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43e272=!0x1;const _0x3d1208=_0x1882b8();function _0x50b8dd(_0xab3037){return!!_0xab3037&&(typeof _0xab3037===_0x41a6a0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xab3037===_0x41a6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xab3037[_0x41a6a0([0x74,0x68,0x65,0x6e])]===_0x41a6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xab3037[_0x41a6a0([0x63,0x61,0x74,0x63,0x68])]===_0x41a6a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fdbc6(_0x4decb1){_0x3c42ca(_0x4decb1)[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0x442a51=>{if(!_0x442a51||_0x442a51[_0x41a6a0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41a6a0([0x6f,0x6b]))return _0x41a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x567ce1(_0x2d4fc1(_0x3d1208+_0x4dbf7d))!=_0x442a51[_0x41a6a0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41a6a0([0x56,0x61,0x6c,0x69,0x64]);})[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0x42fa0b=>(_0x136e3f(),_0x42fa0b),()=>{const _0x5a269c=_0x42dd1b();return null==_0x5a269c?(_0x136e3f(),_0x41a6a0([0x56,0x61,0x6c,0x69,0x64])):_0x41a6a0(_0x2eee98-_0x5a269c>(0x32fe3d14^_0x4cb381)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0x24892b)[_0x41a6a0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24892b(_0x41a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b851e=0x16c45794^_0x4cb381;function _0x136e3f(){const _0x223871=_0x41a6a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x567ce1(_0x2d4fc1(_0x40e98f)),_0x1d78ab=_0x5ad15a(_0x567ce1(window[_0x41a6a0([0x4d,0x61,0x74,0x68])][_0x41a6a0([0x63,0x65,0x69,0x6c])](_0x2eee98/_0x2b851e)));window[_0x41a6a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41a6a0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x223871,_0x1d78ab);}function _0x42dd1b(){const _0x18f7d5=_0x41a6a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x567ce1(_0x2d4fc1(_0x40e98f)),_0x5894cf=window[_0x41a6a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41a6a0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18f7d5);return _0x5894cf?window[_0x41a6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ad15a(_0x5894cf),0x10)*_0x2b851e:null;}function _0x3c42ca(_0x3f1378){return new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1aa9b2,_0x78aff9)=>{_0x3f1378[_0x41a6a0([0x74,0x68,0x65,0x6e])](_0x1aa9b2,_0x78aff9),window[_0x41a6a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x78aff9,0x16f36dd4^_0x4cb381);});}}_0x33c105[_0x41a6a0([0x6f,0x6e])](_0x41a6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26a6df,_0x3d994f)=>{if(_0x3d994f[0x0]!=_0x40e98f)return _0x24892b(_0x41a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d994f[0x1]={..._0x3d994f[0x1],[_0x41a6a0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d1208};},{[_0x41a6a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41a6a0([0x68,0x69,0x67,0x68])}),_0x33c105[_0x41a6a0([0x6f,0x6e])](_0x41a6a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c1022=>{_0x50b8dd(_0x5c1022[_0x41a6a0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43e272=!0x0,_0x3fdbc6(_0x5c1022[_0x41a6a0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41a6a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41a6a0([0x6c,0x6f,0x77])}),_0x542084[_0x41a6a0([0x74,0x68,0x65,0x6e])](()=>{_0x43e272||_0x24892b(_0x41a6a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47eec4(){return _0x33c105[_0x41a6a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41a6a0([0x76,0x69,0x65,0x77])][_0x41a6a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41a6a0([0x61,0x75,0x74,0x6f]);}function _0x323f66(){_0x33c105[_0x41a6a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41a6a0([0x76,0x69,0x65,0x77])][_0x41a6a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41a6a0([0x61,0x75,0x74,0x6f]);}}function _0x240fb8(_0x399596){const _0x422dc2=[new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x348666=>setTimeout(_0x348666,0x16fb87d8^_0x4cb381)),_0x542084[_0x41a6a0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x66ef75=>{let _0x417141=0x0;_0x33c105[_0x41a6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x41a6a0([0x6f,0x6e])](_0x41a6a0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x83933d,_0x24b7f6)=>{_0x24b7f6[0x0][_0x41a6a0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x417141++,_0x417141==(0x16f2b8ec^_0x4cb381)&&(_0x66ef75(),_0x83933d[_0x41a6a0([0x6f,0x66,0x66])]());});}))];return window[_0x41a6a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41a6a0([0x72,0x61,0x63,0x65])](_0x422dc2)[_0x41a6a0([0x74,0x68,0x65,0x6e])](()=>_0x399596);}async function _0x590eb9(){await _0x542084,_0x33c105[_0x41a6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x41a6a0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58ac90,_0x33c105[_0x41a6a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x41a6a0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58ac90,_0x33c105[_0x41a6a0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41a6a0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2486f9(_0x1c7efe){const _0x305d58=_0xe9265d();_0x33c105[_0x305d58]=_0x41a6a0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c7efe,_0x1c7efe!=_0x41a6a0([0x56,0x61,0x6c,0x69,0x64])&&_0x590eb9();}function _0xe9265d(){const _0x1f2367=window[_0x41a6a0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41a6a0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41a6a0([0x6e,0x6f,0x77])]())[_0x41a6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41a6a0([0x2e]),'');let _0x42a971=_0x41a6a0([0x6a]);for(let _0x2be5fe=0x0;_0x2be5fe<_0x1f2367[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2be5fe+=0x2){let _0x43b392=window[_0x41a6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f2367[_0x41a6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2be5fe,_0x2be5fe+0x2));_0x43b392>=_0x3710b6[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43b392-=_0x3710b6[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42a971+=_0x3710b6[_0x43b392];}return _0x42a971;}function _0x42c1d2(){const _0x2824ba=_0x85e08d[_0x41a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x41a6a0([0x2e]));if(0x3!=_0x2824ba[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5182dd(_0x2824ba[0x1]);function _0x5182dd(_0x3e825a){const _0x1154ac=_0xf6591d(_0x3e825a);return _0x1154ac&&_0x2eeec7()?_0x1154ac:null;function _0x2eeec7(){const _0x51cd20=_0x1154ac[_0x41a6a0([0x6a,0x74,0x69])],_0x5c5c0d=window[_0x41a6a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51cd20[_0x41a6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51cd20[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4085de={..._0x1154ac,[_0x41a6a0([0x6a,0x74,0x69])]:_0x51cd20[_0x41a6a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51cd20[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4085de[_0x41a6a0([0x76,0x63])],_0x2d4fc1(_0x4085de)==_0x5c5c0d;}}}async function _0x427534(){let _0x341b4d=!0x0;try{const _0x5e013c=_0x85e08d[_0x41a6a0([0x73,0x70,0x6c,0x69,0x74])](_0x41a6a0([0x2e])),[_0x29e82c,_0x407ec2,_0x2453c9]=_0x5e013c;return _0x2c9be6(_0x29e82c),await _0x5b38ee(_0x29e82c,_0x407ec2,_0x2453c9),_0x341b4d;}catch{return!0x1;}function _0x2c9be6(_0x2a6914){const _0x5a3e23=_0xf6591d(_0x2a6914);_0x5a3e23&&_0x5a3e23[_0x41a6a0([0x61,0x6c,0x67])]==_0x41a6a0([0x45,0x53,0x32,0x35,0x36])||(_0x341b4d=!0x1);}async function _0x5b38ee(_0x5a511a,_0x2fb8ac,_0x22373f){const _0x10f87d=window[_0x41a6a0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41a6a0([0x66,0x72,0x6f,0x6d])](_0x1f5018(_0x22373f),_0x88670b=>_0x88670b[_0x41a6a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x125243=new window[(_0x41a6a0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41a6a0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a511a+_0x41a6a0([0x2e])+_0x2fb8ac),_0xc084c6=window[_0x41a6a0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41a6a0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc084c6)return;const _0x1a32f4=await _0xc084c6[_0x41a6a0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41a6a0([0x6a,0x77,0x6b]),_0x13dd2f,{[_0x41a6a0([0x6e,0x61,0x6d,0x65])]:_0x41a6a0([0x45,0x43,0x44,0x53,0x41]),[_0x41a6a0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41a6a0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41a6a0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc084c6[_0x41a6a0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41a6a0([0x6e,0x61,0x6d,0x65])]:_0x41a6a0([0x45,0x43,0x44,0x53,0x41]),[_0x41a6a0([0x68,0x61,0x73,0x68])]:{[_0x41a6a0([0x6e,0x61,0x6d,0x65])]:_0x41a6a0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a32f4,_0x10f87d,_0x125243)||(_0x341b4d=!0x1);}}function _0xf6591d(_0x143e61){return _0x143e61[_0x41a6a0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41a6a0([0x65,0x79]))?JSON[_0x41a6a0([0x70,0x61,0x72,0x73,0x65])](_0x1f5018(_0x143e61)):null;}function _0x1f5018(_0x3124aa){return window[_0x41a6a0([0x61,0x74,0x6f,0x62])](_0x3124aa[_0x41a6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41a6a0([0x2b]))[_0x41a6a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41a6a0([0x2f])));}function _0x2d4fc1(_0x35e275){let _0x1ce2f4=0x1505;function _0x9a4839(_0x2824f1){for(let _0x291cb8=0x0;_0x291cb8<_0x2824f1[_0x41a6a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x291cb8++){const _0x5ee7bc=_0x2824f1[_0x41a6a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x291cb8);_0x1ce2f4=(_0x1ce2f4<<0x5)+_0x1ce2f4+_0x5ee7bc,_0x1ce2f4&=_0x1ce2f4;}}function _0x5200b9(_0x1606ba){Array[_0x41a6a0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1606ba)?_0x1606ba[_0x41a6a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5200b9):_0x1606ba&&typeof _0x1606ba==_0x41a6a0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41a6a0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1606ba)[_0x41a6a0([0x73,0x6f,0x72,0x74])]()[_0x41a6a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x437f88,_0x115b65])=>{_0x9a4839(_0x437f88),_0x5200b9(_0x115b65);}):_0x9a4839(window[_0x41a6a0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1606ba));}return _0x5200b9(_0x35e275),_0x1ce2f4>>>0x0;}function _0x567ce1(_0xb0db85){return _0xb0db85[_0x41a6a0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41a6a0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41a6a0([0x30]));}function _0x5ad15a(_0x4473e1){return _0x4473e1[_0x41a6a0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41a6a0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41a6a0([0x6a,0x6f,0x69,0x6e])]('');}function _0x58ac90(){}function _0x41a6a0(_0x45d2e7){const _0x4b43a6=_0x42ef;return _0x45d2e7[_0x4b43a6(0x1d2)](_0x2e534c=>String[_0x4b43a6(0x20e)](_0x2e534c))[_0x4b43a6(0x200)]('');}_0x2486f9(await _0xf03b52());}(this);}[_0x34c6ee(0x1da)](){const _0x436b33=_0x34c6ee,_0x23c541=this[_0x436b33(0x1f3)][_0x436b33(0x1eb)][_0x436b33(0x1f9)];_0x23c541[_0x436b33(0x1d9)](_0x436b33(0x20a))&&_0x23c541[_0x436b33(0x1e6)](_0x436b33(0x20a),{'allowAttributes':[_0x436b33(0x210)]}),_0x23c541[_0x436b33(0x1d9)](_0x436b33(0x1de))&&_0x23c541[_0x436b33(0x1e6)](_0x436b33(0x1de),{'allowAttributes':[_0x436b33(0x210)]});}[_0x34c6ee(0x207)](){const _0x125790=_0x34c6ee,_0x5b89ce=this[_0x125790(0x1f3)];_0x5b89ce[_0x125790(0x1ee)][_0x125790(0x1e7)](_0x125790(0x1e3))[_0x125790(0x1e5)]({'model':_0x125790(0x210),'view':_0x125790(0x213)}),_0x5b89ce[_0x125790(0x1ee)][_0x125790(0x1e7)](_0x125790(0x204))[_0x125790(0x219)]({'model':{'key':_0x125790(0x210),'value':_0x38f67b=>_0x38f67b[_0x125790(0x205)](_0x125790(0x213))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x121672=_0x5b89ce[_0x125790(0x1e9)][_0x125790(0x1fb)](_0x125790(0x221));_0x121672&&this[_0x125790(0x20d)](_0x121672,_0x125790(0x1f8),(_0x39f855,[_0x9638d8,_0x5d44df])=>{const _0x54e1a6=_0x125790;_0x9638d8[_0x54e1a6(0x1ea)](_0x54e1a6(0x210),_0x5d44df);});}[_0x34c6ee(0x20b)](){const _0x4cfe65=_0x34c6ee,_0x3489a6=this[_0x4cfe65(0x1f3)][_0x4cfe65(0x227)][_0x4cfe65(0x1fb)](_0x4cfe65(0x21a))||{},_0xe19063=this[_0x4cfe65(0x1f3)][_0x4cfe65(0x227)][_0x4cfe65(0x1fb)](_0x4cfe65(0x1fa))||'';this[_0x4cfe65(0x224)]=_0x57ab19(_0x178f14[_0x4cfe65(0x209)],_0x4cfe65(0x1ec),{..._0x3489a6,'pubkey':_0xe19063,'ctx-name':_0x4cfe65(0x206)+this[_0x4cfe65(0x1f1)],'sourceList':'','imgOnly':_0x4cfe65(0x1e1),'removeCopyright':_0x4cfe65(0x1e1),'localeName':this[_0x4cfe65(0x1f3)][_0x4cfe65(0x215)][_0x4cfe65(0x202)],'externalSourcesEmbedCss':_0x4cfe65(0x217)}),this[_0x4cfe65(0x224)][_0x4cfe65(0x228)]=_0x1822c3=>{const _0x43db89=_0x4cfe65;if(_0x43db89(0x222)==_0x1822c3)return _0x43db89(0x208);},_0x178f14[_0x4cfe65(0x209)][_0x4cfe65(0x1d6)][_0x4cfe65(0x1f2)](this[_0x4cfe65(0x224)]);}[_0x34c6ee(0x1e2)](){const _0x5e9f3a=_0x34c6ee;this[_0x5e9f3a(0x21b)]=_0x57ab19(_0x178f14[_0x5e9f3a(0x209)],_0x5e9f3a(0x212),{'ctx-name':_0x5e9f3a(0x206)+this[_0x5e9f3a(0x1f1)]}),_0x178f14[_0x5e9f3a(0x209)][_0x5e9f3a(0x1d6)][_0x5e9f3a(0x1f2)](this[_0x5e9f3a(0x21b)]);}[_0x34c6ee(0x1df)](){const _0x5130dc=_0x34c6ee,_0x42f282=this[_0x5130dc(0x1f3)][_0x5130dc(0x1e9)][_0x5130dc(0x1fb)](_0x5130dc(0x220));_0x42f282&&this[_0x5130dc(0x20d)](_0x42f282,_0x5130dc(0x1ff),()=>{const _0x4a453c=_0x5130dc,_0x7e51f2=this[_0x4a453c(0x1f3)][_0x4a453c(0x1eb)][_0x4a453c(0x209)][_0x4a453c(0x1e4)][_0x4a453c(0x1d7)]();_0x7e51f2&&_0x7e51f2[_0x4a453c(0x205)](_0x4a453c(0x210))&&this[_0x4a453c(0x1f3)][_0x4a453c(0x1d8)][_0x4a453c(0x1d5)][_0x4a453c(0x1ef)](_0x4a453c(0x1fd),()=>{const _0x2fc8d5=_0x4a453c;_0x2ffb1(this[_0x2fc8d5(0x1f3)],_0x7e51f2);});});const _0x298593=this[_0x5130dc(0x1f3)][_0x5130dc(0x1e9)][_0x5130dc(0x1fb)](_0x5130dc(0x1db));_0x298593&&this[_0x5130dc(0x20d)](_0x298593,_0x5130dc(0x1ff),()=>{const _0x1fc40e=_0x5130dc,_0xa19654=this[_0x1fc40e(0x1f3)][_0x1fc40e(0x1eb)][_0x1fc40e(0x209)][_0x1fc40e(0x1e4)][_0x1fc40e(0x1d7)]();_0xa19654&&_0xa19654[_0x1fc40e(0x205)](_0x1fc40e(0x210))&&this[_0x1fc40e(0x1f3)][_0x1fc40e(0x1d8)][_0x1fc40e(0x1d5)][_0x1fc40e(0x1ef)](_0x1fc40e(0x1fd),()=>{const _0x9900fe=_0x1fc40e;_0x2ffb1(this[_0x9900fe(0x1f3)],_0xa19654);});});}}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type Dialog } from 'ckeditor5/src/ui.js';
|
|
6
6
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
7
|
-
import type {
|
|
7
|
+
import type { ModelElement } from 'ckeditor5/src/engine.js';
|
|
8
8
|
declare const UploadcareImageEditController_base: {
|
|
9
9
|
new (): import("ckeditor5/src/utils.js").Observable;
|
|
10
10
|
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
@@ -15,7 +15,7 @@ declare const UploadcareImageEditController_base: {
|
|
|
15
15
|
* It manages the dialog and all the related actions during dialog instance lifecycle. It is bound to a dialog instance
|
|
16
16
|
* and an active image element and destroyed when dialog instance is closed.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export declare class UploadcareImageEditController extends /* #__PURE__ -- @preserve */ UploadcareImageEditController_base {
|
|
19
19
|
/**
|
|
20
20
|
* Whenever the controller is active and dialog UI visible.
|
|
21
21
|
*
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5845f1,ObservableMixin as _0x260832}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4bbfd5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1c8c3f}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x56153a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x5641a8}from'../../utils/uploadutils.js';import{getImageUrls as _0x1b1636,getImageDimension as _0x4558f0}from'../../utils/editingutils.js';import{isAncestor as _0x1a1eb2}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x260832(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1fb31e,_0x3ac10b,_0x1f990f){super(),this['_editor']=_0x1fb31e,this['_dialog']=_0x3ac10b,this['_imageElement']=_0x1f990f,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 _0x12dbd3=this['_imageElement'],_0x4beab0=_0x12dbd3['getAttribute']('uploadcareImageId'),_0x432f5a=_0x12dbd3['getAttribute']('src');if(_0x4beab0)await this['_loadImageInfo'](_0x4beab0,_0x432f5a);else{if(this['_imageCache']['has'](_0x432f5a)){const _0x3f851c=this['_imageCache']['get'](_0x432f5a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f851c['url'],this['imageDimension']=_0x3f851c['dimension'],this['imageId']=_0x3f851c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3158f3}=this['_editor'],t=_0x3158f3['t'],_0x5c8e69=new _0x56153a(_0x3158f3,this['imageStatus'],this['_attributes']);_0x5c8e69['bind']('status')['to'](this,'imageStatus'),_0x5c8e69['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5c8e69['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5c8e69['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5c8e69,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1c8c3f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5c8e69,'position':_0x4bbfd5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5c8e69['focus']();},'onHide':()=>{_0x5c8e69['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d713b=>!_0x1a1eb2(_0x3d713b,_0x5c8e69['element'])}});}['_loadImageInfo'](_0x317f84,_0x56b5ca){return _0x5641a8['getInfo'](_0x317f84,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4eaf5d=>{const {width:_0x35e233,height:_0x3f2603}=_0x4eaf5d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56b5ca,this['imageDimension']={'width':_0x35e233,'height':_0x3f2603},this['imageId']=_0x317f84;})['catch'](_0x864d99=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x864d99['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1fba3f,_0x1bc0d0){return this['_getImageAsFile'](_0x1fba3f)['then'](_0x1c8804=>_0x5641a8['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1bc0d0['signal'],'file':_0x1c8804,'onProgress':_0x4f47cd=>{_0x4f47cd&&_0x4f47cd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4f47cd['value']));}}))['then'](_0x55ea20=>{const {width:_0x3ead5e,height:_0x51a240}=_0x55ea20['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55ea20['cdnUrl'],this['imageDimension']={'width':_0x3ead5e,'height':_0x51a240},this['imageId']=_0x55ea20['uuid'],this['imageUploadProgress']=null;const _0x46e681=_0x1fba3f['getAttribute']('src');this['_imageCache']['set'](_0x46e681,{'id':_0x55ea20['uuid'],'url':_0x55ea20['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3aa307=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3aa307['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x568aba,_0x126343){_0x568aba['on']('apply',(_0x1ad383,_0x1f6e24)=>{this['_replaceImage'](_0x126343,_0x1f6e24['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x568aba['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x568aba['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2c1158,_0x1a1069,_0x31eecb){const _0x4c3595=this['_editor'],{width:_0xbfe45,height:_0x1c5c6d}=_0x4558f0(_0x1a1069,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2bbe28,imageSources:_0x10079a}=_0x1b1636(_0x1a1069,_0xbfe45);_0x4c3595['model']['change'](_0x1d5bc9=>{if('$graveyard'===_0x2c1158['root']['rootName']){_0x4c3595['execute']('insertImage',{'imageType':_0x2c1158['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2c1158['getAttributes']()),'uploadcareImageId':_0x31eecb,'src':_0x2bbe28,'sources':_0x10079a,'width':_0xbfe45,'height':_0x1c5c6d}});const _0x20a739=_0x2c1158['getChildren']();_0x2c1158=_0x4c3595['model']['document']['selection']['getSelectedElement']();for(const _0x19139a of _0x20a739)_0x1d5bc9['append'](_0x1d5bc9['cloneElement'](_0x19139a),_0x2c1158);}else _0x1d5bc9['setSelection'](_0x2c1158,'on'),_0x4c3595['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2c1158['getAttributes']()),'uploadcareImageId':_0x31eecb,'src':_0x2bbe28,'sources':_0x10079a,'width':_0xbfe45,'height':_0x1c5c6d},_0x2c1158);_0x1d5bc9['setSelection'](_0x2c1158,'on');});}async['_getImageAsFile'](_0x586654){const _0x5dde61=_0x5845f1['window'],_0x9316ad=_0x5845f1['document']['location']['href'],_0x1a4485=new _0x5dde61['URL'](_0x586654['getAttribute']('src'),_0x9316ad);if('data:'===_0x1a4485['protocol']){const _0x11e560=_0x1a4485['href']['split'](','),_0x5118b2=_0x11e560[0x0]['match'](/:(.*?);/)[0x1],_0x1cb7c4=_0x5118b2['split']('/')[0x1],_0xbae3c6=_0x5dde61['atob'](_0x11e560[_0x11e560['length']-0x1]);let _0x196a3e=_0xbae3c6['length'];const _0x28a89b=new _0x5dde61['Uint8Array'](_0x196a3e);for(;_0x196a3e--;)_0x28a89b[_0x196a3e]=_0xbae3c6['charCodeAt'](_0x196a3e);return new _0x5dde61['File']([_0x28a89b],'image.'+_0x1cb7c4,{'type':_0x5118b2});}const _0x4e7b73=_0x1a4485['href']['split']('/'),_0x4e24cc=_0x4e7b73[_0x4e7b73['length']-0x1],_0x54e627=_0x4e24cc['split']('.')[0x1];return _0x5dde61['fetch'](_0x1a4485['href'])['then'](_0xe3ac60=>_0xe3ac60['clone']()['blob']())['then'](_0x2d5e88=>new _0x5dde61['File']([_0x2d5e88],_0x4e24cc,{'type':'image/'+_0x54e627}));}}
|
|
@@ -11,7 +11,7 @@ import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
|
|
|
11
11
|
/**
|
|
12
12
|
* A class representing the form editing view of the Uploadcare image edit feature.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export declare class UploadcareImageEditFormEditingView extends View {
|
|
15
15
|
/**
|
|
16
16
|
* Image source URL.
|
|
17
17
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x545d(_0x5ce1cd,_0x53e178){const _0x22ac6f=_0x22ac();return _0x545d=function(_0x545d60,_0x34f481){_0x545d60=_0x545d60-0x7f;let _0x57ae26=_0x22ac6f[_0x545d60];return _0x57ae26;},_0x545d(_0x5ce1cd,_0x53e178);}function _0x22ac(){const _0x55a018=['41CWfoZw','34218444PCWdIH','ck-uploadcare-theme','60210NywMck','539891snkmcX','uc-light','38530ogsRZj','bindTemplate','204EVdwgo','uc-cloud-image-editor','5157gZknLt','5368pNzkxD','130319JHXczH','130qpiWtH','set','imageSrc','38305IjAwjk','176djOEFM','setTemplate','image-edit'];_0x22ac=function(){return _0x55a018;};return _0x22ac();}(function(_0xb7c22e,_0x32ee9c){const _0x15cc65=_0x545d,_0x2cace8=_0xb7c22e();while(!![]){try{const _0x8e3185=parseInt(_0x15cc65(0x8b))/0x1*(-parseInt(_0x15cc65(0x91))/0x2)+parseInt(_0x15cc65(0x8e))/0x3*(-parseInt(_0x15cc65(0x88))/0x4)+parseInt(_0x15cc65(0x87))/0x5*(-parseInt(_0x15cc65(0x7f))/0x6)+-parseInt(_0x15cc65(0x83))/0x7+parseInt(_0x15cc65(0x82))/0x8*(parseInt(_0x15cc65(0x81))/0x9)+-parseInt(_0x15cc65(0x84))/0xa*(parseInt(_0x15cc65(0x8f))/0xb)+parseInt(_0x15cc65(0x8c))/0xc;if(_0x8e3185===_0x32ee9c)break;else _0x2cace8['push'](_0x2cace8['shift']());}catch(_0x32c71b){_0x2cace8['push'](_0x2cace8['shift']());}}}(_0x22ac,0x9db2b));import{View as _0xeb84a5}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xeb84a5{constructor(_0x20caef,_0xd36dbc){const _0x2564e2=_0x545d;super(_0x20caef);const _0xb5b418=this[_0x2564e2(0x92)];this[_0x2564e2(0x85)](_0x2564e2(0x86),''),this[_0x2564e2(0x89)]({'tag':_0x2564e2(0x80),'attributes':{..._0xd36dbc,'class':[_0x2564e2(0x90),_0x2564e2(0x8d)],'ctx-name':_0x2564e2(0x8a),'cdn-url':_0xb5b418['to'](_0x2564e2(0x86))}});}}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
6
|
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
7
|
-
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
7
|
+
import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
|
|
8
8
|
/**
|
|
9
9
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export declare class UploadcareImageEditFormErrorView extends View {
|
|
12
12
|
/**
|
|
13
13
|
* The image upload error details.
|
|
14
14
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2cf0a7}from'ckeditor5/src/icons.js';import{ButtonView as _0x336367,IconView as _0x5e4f22,View as _0x4712b8}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x4712b8{constructor(_0x163d1e){super(_0x163d1e);const t=_0x163d1e['t'];this['set']('errorType',null);const _0x30fce3=new _0x336367(_0x163d1e);_0x30fce3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x30fce3['withText']=!0x0,_0x30fce3['class']='ck-button-action',_0x30fce3['on']('execute',()=>{this['fire']('retry');}),_0x30fce3['bind']('isVisible')['to'](this,'errorType',_0x157603=>'NotFound'!==_0x157603);const _0x560ee6=new _0x5e4f22();_0x560ee6['content']=_0x2cf0a7,_0x560ee6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1b94d7=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':[_0x560ee6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1b94d7['to']('errorType',_0x1cd4bf=>t('NotFound'!==_0x1cd4bf?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x30fce3]},{'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'}]}]}]});}}
|
|
@@ -10,7 +10,7 @@ import { View } from 'ckeditor5/src/ui.js';
|
|
|
10
10
|
/**
|
|
11
11
|
* A class representing the form loading view of the Uploadcare image edit feature.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export declare class UploadcareImageEditFormLoadingView extends View {
|
|
14
14
|
/**
|
|
15
15
|
* The image upload progress.
|
|
16
16
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0xb8e17a,View as _0x31574a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x31574a{constructor(_0x4229af){super(_0x4229af);const t=_0x4229af['t'],_0x4cc466=this['bindTemplate'],_0x48c100=new _0xb8e17a();_0x48c100['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':[_0x48c100,{'text':_0x4cc466['to']('imageUploadProgress',_0x25b1bf=>t('Loading\x20image...')+'\x20('+(_0x25b1bf||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'}]}]}]});}}
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformview
|
|
7
7
|
*/
|
|
8
8
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
-
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
10
|
-
import DialogFocusManagerView from '../../utils/dialogfocusmanagerview.js';
|
|
9
|
+
import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
|
|
10
|
+
import { DialogFocusManagerView } from '../../utils/dialogfocusmanagerview.js';
|
|
11
11
|
import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
|
|
12
12
|
import '../../../theme/uploadcare-form.css';
|
|
13
13
|
/**
|
|
14
14
|
* A class representing the form view of the Uploadcare image edit feature.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class UploadcareImageEditFormView extends DialogFocusManagerView {
|
|
17
17
|
/**
|
|
18
18
|
* Status of the image passed to the view;
|
|
19
19
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fec23=_0x38ec;(function(_0x10acee,_0x2c7f0c){const _0x15f92d=_0x38ec,_0x4ddf61=_0x10acee();while(!![]){try{const _0x36de8e=-parseInt(_0x15f92d(0x179))/0x1+parseInt(_0x15f92d(0x192))/0x2*(-parseInt(_0x15f92d(0x17e))/0x3)+-parseInt(_0x15f92d(0x19b))/0x4*(-parseInt(_0x15f92d(0x194))/0x5)+-parseInt(_0x15f92d(0x176))/0x6+-parseInt(_0x15f92d(0x172))/0x7+parseInt(_0x15f92d(0x17d))/0x8+parseInt(_0x15f92d(0x18d))/0x9;if(_0x36de8e===_0x2c7f0c)break;else _0x4ddf61['push'](_0x4ddf61['shift']());}catch(_0x316fe8){_0x4ddf61['push'](_0x4ddf61['shift']());}}}(_0x4a20,0x87a1b));import{View as _0x3ce3ae}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5e27ea}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2abbf9}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x401a36}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3235f6}from'../../utils/dialogfocusmanagerview.js';function _0x38ec(_0x2903e2,_0x3c92db){const _0x4a2009=_0x4a20();return _0x38ec=function(_0x38ec12,_0x2dc78c){_0x38ec12=_0x38ec12-0x16b;let _0x47ab50=_0x4a2009[_0x38ec12];return _0x47ab50;},_0x38ec(_0x2903e2,_0x3c92db);}function _0x4a20(){const _0x69bad1=['1519544gHgSpx','3ahvLLt','ready','observe','error','length','uploading','uc-cloud-image-editor','cancel','once','render','target','createCollection','querySelector','_addErrorViewListeners','_errorView','24402483MPuOCX','_editingView','_waitForImageEditorComponent','fire','addMany','1987976aKtMUy','addEventListener','10PYOlRn','addedNodes','focus','change:status','div','setTemplate','_items','105012oywdrn','nodeName','cdnUrl','ck-uploadcare-form','_addUploadcareImageEditorListeners','detail','element','status','add','_setView','_loadingView','filter','retry','4469192GSovXS','ck-reset_all-excluded','disconnect','set','680412GmeBJM','clear','toLowerCase','652443QuRKJY','apply','getFocusableElement','_focusableView'];_0x4a20=function(){return _0x69bad1;};return _0x4a20();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3235f6{[_0x1fec23(0x19a)];[_0x1fec23(0x16f)];[_0x1fec23(0x18c)];[_0x1fec23(0x18e)];[_0x1fec23(0x17c)];constructor(_0x35525e,_0x15a9a3,_0x24a78a){const _0x1e3b24=_0x1fec23;super(_0x35525e),this[_0x1e3b24(0x19a)]=this[_0x1e3b24(0x189)](),this[_0x1e3b24(0x16f)]=new _0x5e27ea(_0x35525e),this[_0x1e3b24(0x18c)]=new _0x2abbf9(_0x35525e),this[_0x1e3b24(0x18e)]=new _0x401a36(_0x35525e,_0x24a78a),this[_0x1e3b24(0x17c)]=new _0x3ce3ae(_0x35525e),this[_0x1e3b24(0x17c)][_0x1e3b24(0x199)](this[_0x1e3b24(0x17b)]()),this[_0x1e3b24(0x175)](_0x1e3b24(0x16c),_0x15a9a3),this[_0x1e3b24(0x199)]({'tag':_0x1e3b24(0x198),'attributes':{'class':['ck',_0x1e3b24(0x173),_0x1e3b24(0x19e)],'tabindex':'-1'},'children':this[_0x1e3b24(0x19a)]}),this[_0x1e3b24(0x16e)](),this[_0x1e3b24(0x186)](_0x1e3b24(0x187),()=>{const _0x19074e=_0x1e3b24;this[_0x19074e(0x18f)](this[_0x19074e(0x16b)],_0x26fd98=>{const _0x44151d=_0x19074e;this[_0x44151d(0x19f)](_0x26fd98);});}),this['on'](_0x1e3b24(0x197),()=>{const _0x1de5bd=_0x1e3b24;this[_0x1de5bd(0x16e)]();}),this[_0x1e3b24(0x18b)]();}[_0x1fec23(0x196)](){const _0x52999a=_0x1fec23;this[_0x52999a(0x16b)][_0x52999a(0x196)]();}[_0x1fec23(0x16e)](){const _0x29f772=_0x1fec23;switch(this[_0x29f772(0x19a)][_0x29f772(0x177)](),this[_0x29f772(0x16c)]){case _0x29f772(0x183):this[_0x29f772(0x19a)][_0x29f772(0x16d)](this[_0x29f772(0x16f)]);break;case _0x29f772(0x181):this[_0x29f772(0x19a)][_0x29f772(0x16d)](this[_0x29f772(0x18c)]);break;case _0x29f772(0x17f):this[_0x29f772(0x19a)][_0x29f772(0x191)]([this[_0x29f772(0x18e)],this[_0x29f772(0x17c)]]);}}[_0x1fec23(0x18f)](_0x2e1bb4,_0x23f354){const _0x140870=_0x1fec23,_0x25aa7a=_0x140870(0x184),_0x352cf5=_0x2e1bb4[_0x140870(0x18a)](_0x25aa7a);if(_0x352cf5)return _0x23f354(_0x352cf5);const _0x48f7f5=new MutationObserver(_0x59344b=>{const _0xb7c6=_0x140870,_0xdd18c6=_0x59344b[_0xb7c6(0x170)](_0xc78bc0=>_0xc78bc0[_0xb7c6(0x188)]===_0x2e1bb4&&_0xc78bc0[_0xb7c6(0x195)][_0xb7c6(0x182)]>0x0&&_0xc78bc0[_0xb7c6(0x195)][0x0][_0xb7c6(0x19c)][_0xb7c6(0x178)]()===_0x25aa7a);_0xdd18c6[_0xb7c6(0x182)]&&(_0x48f7f5[_0xb7c6(0x174)](),_0x23f354(_0xdd18c6[0x0][_0xb7c6(0x195)][0x0]));});_0x48f7f5[_0x140870(0x180)](_0x2e1bb4,{'childList':!0x0,'subtree':!0x0});}[_0x1fec23(0x19f)](_0x19d9d7){const _0x331053=_0x1fec23;_0x19d9d7[_0x331053(0x193)](_0x331053(0x17a),_0x5b405c=>{const _0x176c97=_0x331053;this[_0x176c97(0x190)](_0x176c97(0x17a),{'imageSrc':_0x5b405c[_0x176c97(0x1a0)][_0x176c97(0x19d)]});}),_0x19d9d7[_0x331053(0x193)](_0x331053(0x185),()=>{const _0x2f2b93=_0x331053;this[_0x2f2b93(0x190)](_0x2f2b93(0x185));});}[_0x1fec23(0x18b)](){const _0x11b8f2=_0x1fec23;this[_0x11b8f2(0x18c)]['on'](_0x11b8f2(0x171),()=>{const _0x110b60=_0x11b8f2;this[_0x110b60(0x190)](_0x110b60(0x171));});}}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import UploadcareImageEditController from './ui/uploadcareimageeditcontroller.js';
|
|
11
|
+
import { UploadcareImageEditController } from './ui/uploadcareimageeditcontroller.js';
|
|
12
12
|
/**
|
|
13
13
|
* The Uploadcare edit image command.
|
|
14
14
|
*
|
|
@@ -18,7 +18,7 @@ import UploadcareImageEditController from './ui/uploadcareimageeditcontroller.js
|
|
|
18
18
|
* editor.execute( 'uploadcareImageEdit' );
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export declare class UploadcareImageEditCommand extends Command {
|
|
22
22
|
/**
|
|
23
23
|
* Whenever the controller is active and dialog UI visible.
|
|
24
24
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49b93e=_0x14bd;(function(_0x26ff6a,_0x147285){const _0xa7f427=_0x14bd,_0x3b6b92=_0x26ff6a();while(!![]){try{const _0x1a4fd7=-parseInt(_0xa7f427(0x1b5))/0x1*(-parseInt(_0xa7f427(0x1c5))/0x2)+parseInt(_0xa7f427(0x1c7))/0x3+-parseInt(_0xa7f427(0x1d0))/0x4+-parseInt(_0xa7f427(0x1bd))/0x5+-parseInt(_0xa7f427(0x1c4))/0x6+parseInt(_0xa7f427(0x1ca))/0x7*(-parseInt(_0xa7f427(0x1d2))/0x8)+-parseInt(_0xa7f427(0x1b9))/0x9*(-parseInt(_0xa7f427(0x1c9))/0xa);if(_0x1a4fd7===_0x147285)break;else _0x3b6b92['push'](_0x3b6b92['shift']());}catch(_0x7b9b34){_0x3b6b92['push'](_0x3b6b92['shift']());}}}(_0xf33c,0xc05c8));import{Command as _0x27f73f}from'ckeditor5/src/core.js';function _0x14bd(_0x95302a,_0x4a48e9){const _0xf33c2f=_0xf33c();return _0x14bd=function(_0x14bd72,_0x8eee5f){_0x14bd72=_0x14bd72-0x1b3;let _0x314b8f=_0xf33c2f[_0x14bd72];return _0x314b8f;},_0x14bd(_0x95302a,_0x4a48e9);}import{Dialog as _0x7d8796}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xbbd170}from'./ui/uploadcareimageeditcontroller.js';function _0xf33c(){const _0x3d95ab=['plugins','108LSTAAc','unbind','element','execute','812090zZqhZj','getSelectedElement','document','bind','set','isActive','model','1591686ePlovG','3998iUurIC','_isEditable','4043511ZVjOEs','imageBlock','1037870acxAeI','16772rAXDfN','requires','uploadcare.allowExternalImagesEditing','imageEditController','get','refresh','1978516gStyiB','config','4904lNiLbA','imageInline','selection','293raYdEM','editor','isEnabled'];_0xf33c=function(){return _0x3d95ab;};return _0xf33c();}import{createEditabilityChecker as _0x496b20}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x27f73f{[_0x49b93e(0x1cd)];static get[_0x49b93e(0x1cb)](){return[_0x7d8796];}[_0x49b93e(0x1c6)];constructor(_0x2b9f15){const _0xa34413=_0x49b93e;super(_0x2b9f15),this[_0xa34413(0x1cd)]=void 0x0,this[_0xa34413(0x1c6)]=_0x496b20(_0x2b9f15[_0xa34413(0x1d1)][_0xa34413(0x1ce)](_0xa34413(0x1cc))||[]),this[_0xa34413(0x1c1)]({'isActive':!0x1});}[_0x49b93e(0x1cf)](){const _0x5c1477=_0x49b93e,_0x11449b=this[_0x5c1477(0x1b6)][_0x5c1477(0x1c3)][_0x5c1477(0x1bf)][_0x5c1477(0x1b4)][_0x5c1477(0x1be)]();this[_0x5c1477(0x1b7)]=this[_0x5c1477(0x1c6)](_0x11449b);}[_0x49b93e(0x1bc)](){const _0xa0fe50=_0x49b93e;this[_0xa0fe50(0x1cd)]&&(this[_0xa0fe50(0x1ba)](_0xa0fe50(0x1c2)),this[_0xa0fe50(0x1cd)]=void 0x0);const _0x662723=this[_0xa0fe50(0x1b6)][_0xa0fe50(0x1c3)][_0xa0fe50(0x1bf)][_0xa0fe50(0x1b4)][_0xa0fe50(0x1be)]();_0x662723&&(_0x662723['is'](_0xa0fe50(0x1bb),_0xa0fe50(0x1c8))||_0x662723['is'](_0xa0fe50(0x1bb),_0xa0fe50(0x1b3)))&&(this[_0xa0fe50(0x1cd)]=new _0xbbd170(this[_0xa0fe50(0x1b6)],this[_0xa0fe50(0x1b6)][_0xa0fe50(0x1b8)][_0xa0fe50(0x1ce)](_0x7d8796),_0x662723),this[_0xa0fe50(0x1c0)](_0xa0fe50(0x1c2))['to'](this[_0xa0fe50(0x1cd)],_0xa0fe50(0x1c2)));}}
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Notification } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import UploadcareEditing from '../uploadcareediting.js';
|
|
11
|
+
import { UploadcareEditing } from '../uploadcareediting.js';
|
|
12
12
|
/**
|
|
13
13
|
* The Uploadcare image editing plugin.
|
|
14
14
|
*
|
|
15
15
|
* It complements the {@link module:uploadcare/uploadcare~Uploadcare Uploadcare feature} by adding editing capabilities for uploaded images.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export declare class UploadcareImageEditEditing extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d8ac1=_0x5613;function _0x4d3c(){const _0x42ece4=['UploadcareImageEditEditing','requires','9686411GVJwVq','6BIphwJ','ImageUtils','uploadcareImageEdit','5985204UNUwhq','add','1511520QabDqo','commands','2183375bWwlzD','461628ecLnbj','pluginName','init','isOfficialPlugin','434808ZQdFJR','uploadcareImageReplace','3680622xKZdNB','isPremiumPlugin','ImageEditing'];_0x4d3c=function(){return _0x42ece4;};return _0x4d3c();}(function(_0x186a22,_0x33b26f){const _0x53c7d5=_0x5613,_0x7df8e7=_0x186a22();while(!![]){try{const _0x49466e=-parseInt(_0x53c7d5(0x70))/0x1+-parseInt(_0x53c7d5(0x6d))/0x2*(parseInt(_0x53c7d5(0x68))/0x3)+parseInt(_0x53c7d5(0x6b))/0x4+parseInt(_0x53c7d5(0x6f))/0x5+-parseInt(_0x53c7d5(0x76))/0x6+parseInt(_0x53c7d5(0x67))/0x7+parseInt(_0x53c7d5(0x74))/0x8;if(_0x49466e===_0x33b26f)break;else _0x7df8e7['push'](_0x7df8e7['shift']());}catch(_0x24b0fa){_0x7df8e7['push'](_0x7df8e7['shift']());}}}(_0x4d3c,0xbf883));function _0x5613(_0x62dbd4,_0x33accc){const _0x4d3cb9=_0x4d3c();return _0x5613=function(_0x561399,_0x214d4a){_0x561399=_0x561399-0x67;let _0x2da05d=_0x4d3cb9[_0x561399];return _0x2da05d;},_0x5613(_0x62dbd4,_0x33accc);}import{Plugin as _0x57f3d1}from'ckeditor5/src/core.js';import{Notification as _0x58e647}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x29c9a7}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x40c884}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x445cb3}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x57f3d1{static get[_0x2d8ac1(0x71)](){const _0xc2403f=_0x2d8ac1;return _0xc2403f(0x79);}static get[_0x2d8ac1(0x7a)](){const _0x45e1b6=_0x2d8ac1;return[_0x445cb3,_0x58e647,_0x45e1b6(0x69),_0x45e1b6(0x78)];}static get[_0x2d8ac1(0x73)](){return!0x0;}static get[_0x2d8ac1(0x77)](){return!0x0;}[_0x2d8ac1(0x72)](){const _0x36a06a=_0x2d8ac1,{editor:_0x6ff7b6}=this;_0x6ff7b6[_0x36a06a(0x6e)][_0x36a06a(0x6c)](_0x36a06a(0x6a),new _0x29c9a7(_0x6ff7b6)),_0x6ff7b6[_0x36a06a(0x6e)][_0x36a06a(0x6c)](_0x36a06a(0x75),new _0x40c884(_0x6ff7b6));}}
|