@ckeditor/ckeditor5-merge-fields 0.0.0-nightly-20240730.0 → 0.0.0-nightly-20240801.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/merge-fields.js +1 -1
- package/dist/index-editor.css +22 -8
- package/dist/index.css +25 -8
- package/dist/index.js +1 -1
- package/package.json +7 -6
- package/src/index.js +1 -1
- package/src/insertmergefieldcommand.js +1 -1
- package/src/mergefields.js +1 -1
- package/src/mergefieldsconfig.d.ts +26 -16
- package/src/mergefieldsediting.d.ts +1 -1
- package/src/mergefieldsediting.js +1 -1
- package/src/mergefieldsui.js +1 -1
- package/src/previewmergefieldscommand.d.ts +4 -1
- package/src/previewmergefieldscommand.js +1 -1
- package/src/ui/mergefieldslistview.js +1 -1
- package/src/ui/mergefieldspanelview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/theme/mergefields.css +27 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-merge-fields",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240801.0",
|
|
4
4
|
"description": "Merge fields feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "0.0.0-nightly-
|
|
16
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
17
|
-
"@ckeditor/ckeditor5-
|
|
18
|
-
"@ckeditor/ckeditor5-
|
|
19
|
-
"@ckeditor/ckeditor5-
|
|
15
|
+
"ckeditor5": "0.0.0-nightly-20240801.0",
|
|
16
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20240801.0",
|
|
17
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20240801.0",
|
|
18
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240801.0",
|
|
19
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20240801.0",
|
|
20
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20240801.0",
|
|
20
21
|
"lodash-es": "4.17.21"
|
|
21
22
|
},
|
|
22
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x504786,_0x37c833){var _0x3162e5=_0x3e55,_0xa36d66=_0x504786();while(!![]){try{var _0x2cd3f9=-parseInt(_0x3162e5(0x158))/0x1*(parseInt(_0x3162e5(0x15d))/0x2)+parseInt(_0x3162e5(0x157))/0x3+parseInt(_0x3162e5(0x156))/0x4+-parseInt(_0x3162e5(0x159))/0x5+-parseInt(_0x3162e5(0x15a))/0x6*(-parseInt(_0x3162e5(0x15b))/0x7)+parseInt(_0x3162e5(0x15e))/0x8+-parseInt(_0x3162e5(0x15c))/0x9;if(_0x2cd3f9===_0x37c833)break;else _0xa36d66['push'](_0xa36d66['shift']());}catch(_0x1d19b7){_0xa36d66['push'](_0xa36d66['shift']());}}}(_0x5aa2,0xcf544));function _0x5aa2(){var _0x4e7c0b=['1070578OJsHvk','6280304hOCHJQ','3046428lCmnif','4572489pvAeUn','3XJnMwn','153380fsQygB','12zppnWu','3201779ipsQle','13498551xRYpUm'];_0x5aa2=function(){return _0x4e7c0b;};return _0x5aa2();}function _0x3e55(_0x338f92,_0x511ef4){var _0x5aa2c8=_0x5aa2();return _0x3e55=function(_0x3e5560,_0x30f398){_0x3e5560=_0x3e5560-0x156;var _0x37aaf5=_0x5aa2c8[_0x3e5560];return _0x37aaf5;},_0x3e55(_0x338f92,_0x511ef4);}export{default as MergeFields}from'./mergefields.js';export{default as MergeFieldsEditing}from'./mergefieldsediting.js';export{default as MergeFieldsUI}from'./mergefieldsui.js';import'./augmentation.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe5fc9e=_0xcb3a;function _0xcb3a(_0x43ee8b,_0x56499a){const _0x4f34de=_0x4f34();return _0xcb3a=function(_0xcb3a8,_0x328320){_0xcb3a8=_0xcb3a8-0xee;let _0x52986e=_0x4f34de[_0xcb3a8];return _0x52986e;},_0xcb3a(_0x43ee8b,_0x56499a);}(function(_0x5a5caa,_0x19e1ec){const _0x55511e=_0xcb3a,_0x4ea3f5=_0x5a5caa();while(!![]){try{const _0x5235b7=-parseInt(_0x55511e(0xff))/0x1*(parseInt(_0x55511e(0x100))/0x2)+parseInt(_0x55511e(0xf9))/0x3+parseInt(_0x55511e(0xf5))/0x4+parseInt(_0x55511e(0x101))/0x5+-parseInt(_0x55511e(0x104))/0x6+-parseInt(_0x55511e(0xfa))/0x7+parseInt(_0x55511e(0x109))/0x8;if(_0x5235b7===_0x19e1ec)break;else _0x4ea3f5['push'](_0x4ea3f5['shift']());}catch(_0x2bad68){_0x4ea3f5['push'](_0x4ea3f5['shift']());}}}(_0x4f34,0xecb34));import{Command as _0x55a29c}from'ckeditor5/src/core.js';export default class r extends _0x55a29c{[_0xe5fc9e(0xfe)](){const _0x4addac=_0xe5fc9e,_0x1695d2=this[_0x4addac(0xf8)][_0x4addac(0xfb)],_0x574706=_0x1695d2[_0x4addac(0xef)][_0x4addac(0x105)](_0x1695d2[_0x4addac(0xf4)][_0x4addac(0xf1)][_0x4addac(0x103)],_0x4addac(0xf2));this[_0x4addac(0x108)]=_0x574706;}[_0xe5fc9e(0xfc)](_0x82cc6a){const _0x2e6871=_0xe5fc9e;if(!_0x82cc6a||_0x2e6871(0xf3)!=typeof _0x82cc6a)return;const _0x5208a0=this[_0x2e6871(0xf8)][_0x2e6871(0xfb)];_0x5208a0[_0x2e6871(0xf6)](_0x43546a=>{const _0x2cc353=_0x2e6871;_0x5208a0[_0x2cc353(0xee)](_0x5208a0[_0x2cc353(0xf4)][_0x2cc353(0xf1)]);const _0x21d167=_0x43546a[_0x2cc353(0x107)](_0x2cc353(0xf2),{'id':_0x82cc6a});for(const [_0x51be4d,_0x33a3dc]of _0x5208a0[_0x2cc353(0xf4)][_0x2cc353(0xf1)][_0x2cc353(0xf0)]())_0x5208a0[_0x2cc353(0xef)][_0x2cc353(0x106)](_0x21d167,_0x51be4d)&&_0x43546a[_0x2cc353(0xfd)](_0x51be4d,_0x33a3dc,_0x21d167);_0x5208a0[_0x2cc353(0xf7)](_0x21d167,_0x5208a0[_0x2cc353(0xf4)][_0x2cc353(0xf1)],0x0,{'setSelection':_0x2cc353(0x102)});});}}function _0x4f34(){const _0x3deca3=['document','7238516PPZvyt','change','insertContent','editor','3389406CrBvot','11538513TsXKvc','model','execute','setAttribute','refresh','31XLcLhD','78970cfuPzG','7589350FATxAz','after','focus','7574448KuxqAR','checkChild','checkAttribute','createElement','isEnabled','5176200nQFmbW','deleteContent','schema','getAttributes','selection','mergeField','string'];_0x4f34=function(){return _0x3deca3;};return _0x4f34();}
|
package/src/mergefields.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4d5f7b=_0x178f;(function(_0x39eaf4,_0xe98661){const _0x149050=_0x178f,_0x1f09c2=_0x39eaf4();while(!![]){try{const _0x8d02a3=-parseInt(_0x149050(0x9a))/0x1*(parseInt(_0x149050(0x9b))/0x2)+-parseInt(_0x149050(0x90))/0x3*(-parseInt(_0x149050(0x8f))/0x4)+parseInt(_0x149050(0x98))/0x5*(-parseInt(_0x149050(0x8b))/0x6)+parseInt(_0x149050(0x9e))/0x7*(-parseInt(_0x149050(0xa0))/0x8)+parseInt(_0x149050(0x92))/0x9*(parseInt(_0x149050(0x9c))/0xa)+-parseInt(_0x149050(0x97))/0xb*(parseInt(_0x149050(0x94))/0xc)+parseInt(_0x149050(0x9f))/0xd*(parseInt(_0x149050(0xa3))/0xe);if(_0x8d02a3===_0xe98661)break;else _0x1f09c2['push'](_0x1f09c2['shift']());}catch(_0x5262a6){_0x1f09c2['push'](_0x1f09c2['shift']());}}}(_0x41a9,0xed10e));import{Plugin as _0x11f44f}from'ckeditor5/src/core.js';import{Widget as _0x30b3cb}from'ckeditor5/src/widget.js';import _0x286884 from'./mergefieldsediting.js';function _0x178f(_0x39a5b8,_0x27ab79){const _0x41a91f=_0x41a9();return _0x178f=function(_0x178fef,_0x4e4ea0){_0x178fef=_0x178fef-0x8a;let _0x399811=_0x41a91f[_0x178fef];return _0x399811;},_0x178f(_0x39a5b8,_0x27ab79);}import _0xd15d8b from'./mergefieldsui.js';function _0x41a9(){const _0x3dfb69=['381lIIwMe','plugins','648JyurSJ','getDefaultValues','12TCqNei','MergeFields','getMergeFieldDefaultValue','2982562OsCDvP','3242230LZxTDG','getMergeFieldValue','330482ERLACm','2bwuZbd','91690PqMVZq','get','720867UHJQRi','1655459LQyoMg','40gJtRHb','Mention','pluginName','182dXsIDJ','getDataSetValues','6lghKXM','editor','getMergeFieldsIds','requires','13240CrtfIz'];_0x41a9=function(){return _0x3dfb69;};return _0x41a9();}export default class l extends _0x11f44f{static get[_0x4d5f7b(0x8e)](){const _0x2fa0a4=_0x4d5f7b;return[_0x2fa0a4(0xa1),_0x286884,_0xd15d8b,_0x30b3cb];}static get[_0x4d5f7b(0xa2)](){const _0x4c6316=_0x4d5f7b;return _0x4c6316(0x95);}[_0x4d5f7b(0x8d)](){const _0x2f985a=_0x4d5f7b;return this[_0x2f985a(0x8c)][_0x2f985a(0x91)][_0x2f985a(0x9d)](_0x286884)[_0x2f985a(0x8d)]();}[_0x4d5f7b(0x93)](){const _0x4a367a=_0x4d5f7b,_0x4bb188=this[_0x4a367a(0x8c)][_0x4a367a(0x91)][_0x4a367a(0x9d)](_0x286884),_0x4c2983={},_0x1dee51=this[_0x4a367a(0x8d)]();for(const _0x48a4ea of _0x1dee51)_0x4c2983[_0x48a4ea]=_0x4bb188[_0x4a367a(0x96)](_0x48a4ea);return _0x4c2983;}[_0x4d5f7b(0x8a)](_0x3945e4,_0x56d39a=!0x1){const _0x1dfd66=_0x4d5f7b,_0x1ec28d=this[_0x1dfd66(0x8c)][_0x1dfd66(0x91)][_0x1dfd66(0x9d)](_0x286884),_0x16c01d={},_0x507eef=this[_0x1dfd66(0x8d)]();for(const _0x3c096d of _0x507eef){let _0x50d0de=_0x1ec28d[_0x1dfd66(0x99)](_0x3c096d,_0x3945e4);null===_0x50d0de&&_0x56d39a&&(_0x50d0de=_0x1ec28d[_0x1dfd66(0x96)](_0x3c096d)),_0x16c01d[_0x3c096d]=_0x50d0de;}return _0x16c01d;}}
|
|
@@ -37,7 +37,7 @@ export interface MergeFieldsConfig {
|
|
|
37
37
|
/**
|
|
38
38
|
* A prefix used to identify merge fields in the editor data.
|
|
39
39
|
*
|
|
40
|
-
*
|
|
40
|
+
* The list of allowed characters includes: ``'"`!#%:;=@{}~$()*+/?[\]^|``.
|
|
41
41
|
*
|
|
42
42
|
* @default '\{\{'
|
|
43
43
|
*/
|
|
@@ -45,7 +45,7 @@ export interface MergeFieldsConfig {
|
|
|
45
45
|
/**
|
|
46
46
|
* A suffix used to identify merge fields in the editor data.
|
|
47
47
|
*
|
|
48
|
-
*
|
|
48
|
+
* The list of allowed characters includes: ``'"`!#%:;=@{}~$()*+/?[\]^|``.
|
|
49
49
|
*
|
|
50
50
|
* @default '\}\}'
|
|
51
51
|
*/
|
|
@@ -77,45 +77,54 @@ export interface MergeFieldsConfig {
|
|
|
77
77
|
* * `'$defaultValues'` - displays the default values,
|
|
78
78
|
* * one of the configured {@link module:merge-fields/mergefieldsconfig~MergeFieldsConfig#dataSets data sets} identifiers.
|
|
79
79
|
*
|
|
80
|
-
* If not set, it will default to the one of the {@link ~MergeFieldsConfig#previewModes available preview modes} with the priority as
|
|
80
|
+
* If not set, it will default to the one of the {@link ~MergeFieldsConfig#previewModes available preview modes}, with the priority as
|
|
81
81
|
* in the list above.
|
|
82
82
|
*/
|
|
83
83
|
initialPreviewMode?: string;
|
|
84
84
|
}
|
|
85
85
|
export type GroupDefinition = {
|
|
86
86
|
/**
|
|
87
|
-
* The unique identifier of the group.
|
|
88
|
-
*
|
|
87
|
+
* The unique identifier of the group.
|
|
88
|
+
*
|
|
89
|
+
* If {@link GroupDefinition#groupLabel} is not specified, the ID will be used as a label in the UI.
|
|
89
90
|
*/
|
|
90
91
|
groupId: string;
|
|
91
92
|
/**
|
|
92
93
|
* The human-readable label of the group.
|
|
94
|
+
*
|
|
95
|
+
* It is displayed by the feature's UI.
|
|
93
96
|
*/
|
|
94
97
|
groupLabel?: string;
|
|
95
98
|
/**
|
|
96
|
-
* The array of merge
|
|
99
|
+
* The array of merge fields definitions that belong to the group.
|
|
97
100
|
*/
|
|
98
|
-
definitions: Array<
|
|
101
|
+
definitions: Array<MergeFieldDefinition>;
|
|
99
102
|
};
|
|
100
103
|
export type MergeFieldDefinition = {
|
|
101
104
|
/**
|
|
102
|
-
* The unique identifier of the merge field.
|
|
105
|
+
* The unique identifier of the merge field.
|
|
106
|
+
*
|
|
107
|
+
* If {@link MergeFieldDefinition#label} is not specified, the ID will be used as a label.
|
|
103
108
|
*
|
|
104
|
-
*
|
|
109
|
+
* The list of allowed characters includes: `a-z`, `A-Z`, `0-9`, `_`, `.`, and `-`.
|
|
105
110
|
*/
|
|
106
111
|
id: string;
|
|
107
112
|
/**
|
|
108
113
|
* The human-readable label of the merge field.
|
|
114
|
+
*
|
|
115
|
+
* It is displayed by the feature's UI and inside the editing area.
|
|
109
116
|
*/
|
|
110
117
|
label?: string;
|
|
111
118
|
/**
|
|
112
|
-
* Default value of the merge field
|
|
119
|
+
* Default value of the merge field.
|
|
120
|
+
*
|
|
121
|
+
* It is used if a value for given merge field has not been provided in a data set.
|
|
113
122
|
*/
|
|
114
|
-
defaultValue?:
|
|
123
|
+
defaultValue?: MergeFieldDataSetValue;
|
|
115
124
|
};
|
|
116
125
|
export type DataSetDefinition = {
|
|
117
126
|
/**
|
|
118
|
-
* A unique identifier of the data set. It
|
|
127
|
+
* A unique identifier of the data set. It cannot start with `$`, as it is reserved for internal use.
|
|
119
128
|
*/
|
|
120
129
|
id: string;
|
|
121
130
|
/**
|
|
@@ -125,9 +134,9 @@ export type DataSetDefinition = {
|
|
|
125
134
|
/**
|
|
126
135
|
* The data to be displayed in the editor in place of merge fields when the data set is previewed.
|
|
127
136
|
*
|
|
128
|
-
* The keys of this object are merge field
|
|
129
|
-
*
|
|
130
|
-
*
|
|
137
|
+
* The keys of this object are merge field IDs, while values are the merge field values, which can be strings or functions.
|
|
138
|
+
* If the value is specified as a function, it should return a string. The function will be evaluated each time the data set values
|
|
139
|
+
* are retrieved.
|
|
131
140
|
*
|
|
132
141
|
* ```ts
|
|
133
142
|
* const mergeFieldsConfig = {
|
|
@@ -141,5 +150,6 @@ export type DataSetDefinition = {
|
|
|
141
150
|
* };
|
|
142
151
|
* ```
|
|
143
152
|
*/
|
|
144
|
-
values: Record<string,
|
|
153
|
+
values: Record<string, MergeFieldDataSetValue>;
|
|
145
154
|
};
|
|
155
|
+
export type MergeFieldDataSetValue = string | ((editor: Editor) => string);
|
|
@@ -16,7 +16,7 @@ export default class MergeFieldsEditing extends Plugin {
|
|
|
16
16
|
*/
|
|
17
17
|
previewMode: string;
|
|
18
18
|
/**
|
|
19
|
-
* All configured preview modes, available to be set as a value for {@link
|
|
19
|
+
* All configured preview modes, available to be set as a value for {@link #previewMode}.
|
|
20
20
|
*/
|
|
21
21
|
readonly availablePreviewModes: Array<string>;
|
|
22
22
|
/**
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x30512b=_0x1458;function _0x233e(){const _0x223c40=['getDefinition','change:data','function','6OMYAKS','editing','_mergeFieldPrefix','mapper','MergeFieldsEditing','move','merge-fields-invalid-preview-mode-set','WARNING_MISSING_DEFINITION','commands','previewMode','from','label','join','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','_mergeFieldElements','set','getMergeFieldValue','delete','_trackAddedMergeFields','checkChild','render','isLocal','config','concat','525240lYIDPg','span','WARNING_MISSING_DATA_USED_DEFAULT_VALUE','WARNING_MISSING_DEFAULT_VALUE','$inlineObject','mergeFields.suffix','viewToModelPosition','createRange','createText','getAttribute','getAttributes','text','mergeFieldsLicenseKeyTrialLimit:operations','destroy','WARNING_MISSING_DATA','insertObject','flattenedMergeFieldDefinitions','ck-merge-field\x20ck-merge-field_with-value','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20format\x20painter\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','merge-fields-invalid-id','merge-fields-duplicate-group-id','batch','36aNisQs','\x20]+','availablePreviewModes','mergeFieldsLicenseKeyValid','hasClass','forEach','mergeFieldsLicenseKeyInvalid','groupId','has','get','length','_refreshMergeFields','start','$labels','createPositionBefore','getMergeFieldsIds','elementToElement','mergeField','add','dataDowncast','getLabel','merge-fields-data-set-not-found','merge-fields-trial-license-key-reached-limit-changes','_validatePreviewMode','insert','7cdUXfZ','value','mergeFields.definitions','includes','merge-fields-duplicate-data-set-id','registerPostFixer','ck-merge-field__icon','push','merge-fields-invalid-preview-modes-configuration','389590QDgweq','_createTextualMergeField','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_default-value-used','reduce','model','1092777klAavl','$graveyard','createPositionAfter','register','_defineConverters','mergeFields.dataSets','conversion','data','setCustomProperty','$dataSets','upcast','mergeFields.previewModes','getChanges','getDocumentMergeFieldsIds','every','ck-merge-field','2189424yRjUIs','getMergeFieldDefaultValue','for','ck-merge-field__affix','index','defaultValue','insertMergeField','previewMergeFields','merge-fields-invalid-license-key','_getAvailablePreviewModes','document','dataPipeline:transparentRendering','find','_prepareViewElementData','modelCursor','startsWith','getChildren','element','differ','$text','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','editor','_validateConfig','nodeAfter','parent','toDomElement','_mergeFieldSuffix','createElement','type','map','consume','506GZakxO','test','licenseKey','790830edVrTk','values','reverse','_licenseKeyCheckInterval','mergeFieldsLicenseKeyTrial','nextSibling','editingDowncast','merge-fields-invalid-prefix-or-suffix','mergeFields.prefix','position','_getFlattenedMergeFieldDefinitions','offsetSize','info','split','_defineSchema','root','init','merge-fields-prefix-and-suffix-must-differ','listenTo','rootName','getShiftedBy','_getDefaultDefinition','4401240ayviwd','_createMergeFieldWidget','matchAll','mergeFieldStatus','_registerConversionPostFixer','path','445498lYzYMG','bind','createRangeIn','createContainerElement','getItems','define','remove','mergeFields.initialPreviewMode','definitions','name','merge-fields-duplicate-merge-field-id','reconvertItem','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','_mergeFieldRegExp','getPath','schema','appendChild','$defaultValues','createUIElement','pluginName','endsWith','next','slice','createPositionAt','innerHTML','startOffset','ck-merge-field__content','mergeFieldsData','change:previewMode'];_0x233e=function(){return _0x223c40;};return _0x233e();}(function(_0x3688f2,_0x4aa205){const _0x27eb67=_0x1458,_0x1b1512=_0x3688f2();while(!![]){try{const _0xc12c1e=-parseInt(_0x27eb67(0x16c))/0x1+parseInt(_0x27eb67(0x18c))/0x2*(parseInt(_0x27eb67(0x11e))/0x3)+parseInt(_0x27eb67(0x1a4))/0x4+-parseInt(_0x27eb67(0x150))/0x5+parseInt(_0x27eb67(0x166))/0x6*(-parseInt(_0x27eb67(0x1d3))/0x7)+parseInt(_0x27eb67(0x12e))/0x8*(-parseInt(_0x27eb67(0x1ba))/0x9)+-parseInt(_0x27eb67(0x119))/0xa*(-parseInt(_0x27eb67(0x14d))/0xb);if(_0xc12c1e===_0x4aa205)break;else _0x1b1512['push'](_0x1b1512['shift']());}catch(_0x38d5cb){_0x1b1512['push'](_0x1b1512['shift']());}}}(_0x233e,0x8ea5d));import{toWidget as _0x17baf4,viewToModelPositionOutsideModelElement as _0x234428}from'ckeditor5/src/widget.js';import{Plugin as _0x477ab9}from'ckeditor5/src/core.js';import{IconView as _0x597979}from'ckeditor5/src/ui.js';import{CKEditorError as _0x5ce1f3}from'ckeditor5/src/utils.js';function _0x1458(_0x584c30,_0xb69d7f){const _0x233e9e=_0x233e();return _0x1458=function(_0x1458bd,_0x878c5e){_0x1458bd=_0x1458bd-0x117;let _0x46fc14=_0x233e9e[_0x1458bd];return _0x46fc14;},_0x1458(_0x584c30,_0xb69d7f);}import _0x11f40f from'./insertmergefieldcommand.js';import _0x3a18b2 from'./previewmergefieldscommand.js';import _0x424b9e from'../theme/icons/warning.svg';export default class o extends _0x477ab9{static get[_0x30512b(0x17f)](){const _0x4dfb56=_0x30512b;return _0x4dfb56(0x190);}constructor(_0x515652){const _0x1bba08=_0x30512b;super(_0x515652),this[_0x1bba08(0x1b4)]=[],_0x515652[_0x1bba08(0x1a2)][_0x1bba08(0x171)](_0x1bba08(0x129),[_0x1bba08(0x1c7),_0x1bba08(0x17d),_0x1bba08(0x127)]),_0x515652[_0x1bba08(0x1a2)][_0x1bba08(0x171)](_0x1bba08(0x123),[]),_0x515652[_0x1bba08(0x1a2)][_0x1bba08(0x171)](_0x1bba08(0x1d5),[]),_0x515652[_0x1bba08(0x1a2)][_0x1bba08(0x171)](_0x1bba08(0x158),'{{'),_0x515652[_0x1bba08(0x1a2)][_0x1bba08(0x171)](_0x1bba08(0x1a9),'}}'),this[_0x1bba08(0x18e)]=_0x515652[_0x1bba08(0x1a2)][_0x1bba08(0x1c3)](_0x1bba08(0x158)),this[_0x1bba08(0x148)]=_0x515652[_0x1bba08(0x1a2)][_0x1bba08(0x1c3)](_0x1bba08(0x1a9)),this[_0x1bba08(0x1b4)]=this[_0x1bba08(0x15a)](),this[_0x1bba08(0x144)]();const _0x1b1e25='\x5c'+this[_0x1bba08(0x18e)][_0x1bba08(0x15d)]('')[_0x1bba08(0x198)]('\x5c'),_0xaf02d8='\x5c'+this[_0x1bba08(0x148)][_0x1bba08(0x15d)]('')[_0x1bba08(0x198)]('\x5c');this[_0x1bba08(0x179)]=new RegExp('('+_0x1b1e25+'[^'+(_0x1b1e25+_0xaf02d8)+_0x1bba08(0x1bb)+_0xaf02d8+')','g'),this[_0x1bba08(0x1bc)]=this[_0x1bba08(0x137)]();const _0x2ab8c8=_0x515652[_0x1bba08(0x1a2)][_0x1bba08(0x1c3)](_0x1bba08(0x173))||this[_0x1bba08(0x1bc)][0x0];this[_0x1bba08(0x1d1)](_0x2ab8c8),this[_0x1bba08(0x19b)](_0x1bba08(0x195),_0x2ab8c8),this[_0x1bba08(0x19a)]=new Set(),this[_0x1bba08(0x153)]=null;}[_0x30512b(0x160)](){const _0x12c9af=_0x30512b,_0x527924=this[_0x12c9af(0x143)];_0x527924[_0x12c9af(0x194)][_0x12c9af(0x1cc)](_0x12c9af(0x134),new _0x11f40f(_0x527924)),_0x527924[_0x12c9af(0x194)][_0x12c9af(0x1cc)](_0x12c9af(0x135),new _0x3a18b2(_0x527924)),this[_0x12c9af(0x15e)](),this[_0x12c9af(0x122)](),this['on'](_0x12c9af(0x188),(_0x389e80,_0x47bd79,_0xe63ea7)=>{const _0x28dd1a=_0x12c9af;this[_0x28dd1a(0x1d1)](_0xe63ea7),this[_0x28dd1a(0x1c5)]();}),this[_0x12c9af(0x162)](_0x527924[_0x12c9af(0x11d)][_0x12c9af(0x138)],_0x12c9af(0x18a),()=>{const _0x4ecfd5=_0x12c9af;this[_0x4ecfd5(0x19e)]();}),_0x527924[_0x12c9af(0x18d)][_0x12c9af(0x18f)]['on'](_0x12c9af(0x1aa),_0x234428(_0x527924[_0x12c9af(0x11d)],_0x33baab=>_0x33baab[_0x12c9af(0x1be)](_0x12c9af(0x12d)))),this[_0x12c9af(0x16a)](),this[_0x12c9af(0x14f)]=_0x527924[_0x12c9af(0x1a2)][_0x12c9af(0x1c3)](_0x12c9af(0x14f));const _0x2d417e=this[_0x12c9af(0x143)];this[_0x12c9af(0x153)]=setInterval(()=>{const _0x1ccd65=_0x12c9af;let _0x5317c5;for(const _0x10ea1d in _0x2d417e){const _0x1536fa=_0x10ea1d,_0x157a77=_0x2d417e[_0x1536fa];if(_0x1ccd65(0x154)===_0x157a77||_0x1ccd65(0x1c0)===_0x157a77||_0x1ccd65(0x1bd)===_0x157a77||_0x1ccd65(0x1b0)===_0x157a77){delete _0x2d417e[_0x1536fa],_0x5317c5=_0x157a77;break;}}if(_0x1ccd65(0x1c0)===_0x5317c5)throw clearInterval(this[_0x1ccd65(0x153)]),new _0x5ce1f3(_0x1ccd65(0x136),null);if(_0x1ccd65(0x154)===_0x5317c5&&console[_0x1ccd65(0x15c)](_0x1ccd65(0x1b6)),_0x1ccd65(0x1b0)===_0x5317c5)throw clearInterval(this[_0x1ccd65(0x153)]),new _0x5ce1f3(_0x1ccd65(0x1d0),null);_0x1ccd65(0x1bd)===_0x5317c5&&clearInterval(this[_0x1ccd65(0x153)]);},0x3e8);}[_0x30512b(0x1ce)](_0x581b50){const _0x3753e2=_0x30512b,_0x4dd1d6=this[_0x3753e2(0x189)](_0x581b50);return _0x4dd1d6[_0x3753e2(0x197)]||_0x4dd1d6['id'];}[_0x30512b(0x12f)](_0x5839f9){const _0x3a78c7=_0x30512b,_0x1106fa=this[_0x3a78c7(0x189)](_0x5839f9);return void 0x0===_0x1106fa[_0x3a78c7(0x133)]?null:_0x3a78c7(0x18b)==typeof _0x1106fa[_0x3a78c7(0x133)]?_0x1106fa[_0x3a78c7(0x133)](this[_0x3a78c7(0x143)]):_0x1106fa[_0x3a78c7(0x133)];}[_0x30512b(0x19c)](_0x169334,_0x5560f1){const _0x3aa058=_0x30512b,_0x34b635=this[_0x3aa058(0x143)][_0x3aa058(0x1a2)][_0x3aa058(0x1c3)](_0x3aa058(0x123))[_0x3aa058(0x13a)](_0x5c40cb=>_0x5c40cb['id']===_0x5560f1);if(!_0x34b635)throw new _0x5ce1f3(_0x3aa058(0x1cf),null);const _0x445f18=this[_0x3aa058(0x189)](_0x169334),_0x3f875e=_0x34b635[_0x3aa058(0x151)][_0x445f18['id']];return void 0x0===_0x3f875e?null:_0x3aa058(0x18b)==typeof _0x3f875e?_0x3f875e(this[_0x3aa058(0x143)]):_0x3f875e;}[_0x30512b(0x12b)](){const _0x46f166=_0x30512b,_0x13a880=new Set();for(const _0x548c33 of this[_0x46f166(0x19a)])_0x46f166(0x11f)!==_0x548c33[_0x46f166(0x15f)][_0x46f166(0x163)]&&_0x13a880[_0x46f166(0x1cc)](_0x548c33[_0x46f166(0x1ad)]('id'));return Array[_0x46f166(0x196)](_0x13a880);}[_0x30512b(0x1c9)](){const _0x2784bc=_0x30512b,_0x4bf842=this[_0x2784bc(0x1b4)][_0x2784bc(0x14b)](_0x21ee10=>_0x21ee10['id']),_0x25e31a=this[_0x2784bc(0x12b)]();return Array[_0x2784bc(0x196)](new Set([..._0x4bf842,..._0x25e31a]));}[_0x30512b(0x189)](_0x315eb9){const _0x44c20a=_0x30512b;return this[_0x44c20a(0x1b4)][_0x44c20a(0x13a)](_0x2d61a7=>_0x2d61a7['id']===_0x315eb9)||this[_0x44c20a(0x165)](_0x315eb9);}[_0x30512b(0x1b1)](){const _0x3b0916=_0x30512b;this[_0x3b0916(0x153)]&&clearInterval(this[_0x3b0916(0x153)]);}[_0x30512b(0x15a)](){const _0x548d1e=_0x30512b,_0x15429a=new Set(),_0x4f63dc=this[_0x548d1e(0x143)];return this[_0x548d1e(0x143)][_0x548d1e(0x1a2)][_0x548d1e(0x1c3)](_0x548d1e(0x1d5))[_0x548d1e(0x11c)]((_0x534ef0,_0x1a5287)=>{const _0x2e342e=_0x548d1e;if(_0x2e342e(0x1c1)in _0x1a5287){if(_0x15429a[_0x2e342e(0x1c2)](_0x1a5287[_0x2e342e(0x1c1)]))throw new _0x5ce1f3(_0x2e342e(0x1b8),_0x4f63dc,{'duplicateId':_0x1a5287[_0x2e342e(0x1c1)]});_0x15429a[_0x2e342e(0x1cc)](_0x1a5287[_0x2e342e(0x1c1)]);}return _0x2e342e(0x1c1)in _0x1a5287?function _0x366526(_0x11fe98,_0x3fce17){const _0x1a9e42=_0x2e342e;for(const _0x354749 of _0x3fce17[_0x1a9e42(0x174)]){if(_0x1a9e42(0x1c1)in _0x354749){if(_0x15429a[_0x1a9e42(0x1c2)](_0x354749[_0x1a9e42(0x1c1)]))throw new _0x5ce1f3(_0x1a9e42(0x1b8),_0x4f63dc,{'duplicateId':_0x354749[_0x1a9e42(0x1c1)]});_0x15429a[_0x1a9e42(0x1cc)](_0x354749[_0x1a9e42(0x1c1)]);}_0x11fe98=_0x1a9e42(0x1c1)in _0x354749?_0x366526(_0x11fe98,_0x354749):_0x11fe98[_0x1a9e42(0x1a3)](_0x354749);}return _0x11fe98;}[_0x2e342e(0x16d)](_0x4f63dc)(_0x534ef0,_0x1a5287):_0x534ef0[_0x2e342e(0x1a3)](_0x1a5287);},new Array());}[_0x30512b(0x144)](){const _0x43d336=_0x30512b,_0x293161=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x293161[_0x43d336(0x14e)](this[_0x43d336(0x18e)])||!_0x293161[_0x43d336(0x14e)](this[_0x43d336(0x148)]))throw new _0x5ce1f3(_0x43d336(0x157),this,{'prefix':this[_0x43d336(0x18e)],'suffix':this[_0x43d336(0x148)]});const _0x2d3457=/^[a-zA-Z0-9_.-]+$/,_0x5a0338=new Set();if(this[_0x43d336(0x1b4)][_0x43d336(0x14b)](_0x40b483=>{const _0x5b714f=_0x43d336;if(!_0x2d3457[_0x5b714f(0x14e)](_0x40b483['id']))throw new _0x5ce1f3(_0x5b714f(0x1b7),this,{'incorrectId':_0x40b483['id']});if(_0x5a0338[_0x5b714f(0x1c2)](_0x40b483['id']))throw new _0x5ce1f3(_0x5b714f(0x176),this,{'duplicateId':_0x40b483['id']});_0x5a0338[_0x5b714f(0x1cc)](_0x40b483['id']);}),this[_0x43d336(0x18e)]===this[_0x43d336(0x148)])throw new _0x5ce1f3(_0x43d336(0x161),this);const _0x2e3d5a=this[_0x43d336(0x143)][_0x43d336(0x1a2)][_0x43d336(0x1c3)](_0x43d336(0x129)),_0x2f9bea=[_0x43d336(0x1c7),_0x43d336(0x17d),_0x43d336(0x127)];if(!_0x2e3d5a[_0x43d336(0x1c4)]||!_0x2e3d5a[_0x43d336(0x12c)](_0x149ee5=>_0x2f9bea[_0x43d336(0x1d6)](_0x149ee5)))throw new _0x5ce1f3(_0x43d336(0x118),this,{'invalidConfig':_0x2e3d5a});const _0xe2b3b=new Set(),_0x4bdc8a=this[_0x43d336(0x143)][_0x43d336(0x1a2)][_0x43d336(0x1c3)](_0x43d336(0x123));for(const _0x58ff99 of _0x4bdc8a){if(_0xe2b3b[_0x43d336(0x1c2)](_0x58ff99['id']))throw new _0x5ce1f3(_0x43d336(0x1d7),this,{'duplicateId':_0x58ff99['id']});_0xe2b3b[_0x43d336(0x1cc)](_0x58ff99['id']);}}[_0x30512b(0x137)](){const _0x451b68=_0x30512b,_0x3f374b=this[_0x451b68(0x143)][_0x451b68(0x1a2)][_0x451b68(0x1c3)](_0x451b68(0x129)),_0x43cf54=[];if(_0x3f374b[_0x451b68(0x1d6)](_0x451b68(0x1c7))&&_0x43cf54[_0x451b68(0x117)](_0x451b68(0x1c7)),_0x3f374b[_0x451b68(0x1d6)](_0x451b68(0x17d))&&_0x43cf54[_0x451b68(0x117)](_0x451b68(0x17d)),_0x3f374b[_0x451b68(0x1d6)](_0x451b68(0x127))){const _0xc82bdd=this[_0x451b68(0x143)][_0x451b68(0x1a2)][_0x451b68(0x1c3)](_0x451b68(0x123));_0x43cf54[_0x451b68(0x117)](..._0xc82bdd[_0x451b68(0x14b)](_0x158e12=>_0x158e12['id']));}return _0x43cf54;}[_0x30512b(0x15e)](){const _0x4b680a=_0x30512b;this[_0x4b680a(0x143)][_0x4b680a(0x11d)][_0x4b680a(0x17b)][_0x4b680a(0x121)](_0x4b680a(0x1cb),{'inheritAllFrom':_0x4b680a(0x1a8),'allowAttributes':['id'],'allowWhere':_0x4b680a(0x141)});}[_0x30512b(0x122)](){const _0x4f66eb=_0x30512b,_0x49708b=this[_0x4f66eb(0x143)][_0x4f66eb(0x124)];_0x49708b[_0x4f66eb(0x130)](_0x4f66eb(0x128))[_0x4f66eb(0x1cc)](_0x189e8c=>{const _0x11ad91=_0x4f66eb;_0x189e8c['on'](_0x11ad91(0x1af),(_0x3c8c87,_0x45e25f,_0x51334b)=>{const _0x74bd41=_0x11ad91,{consumable:_0x3ca6e9,writer:_0x4b1da5,safeInsert:_0x5bf6bf,updateConversionResult:_0x5505ed}=_0x51334b,{viewItem:_0x337fc7}=_0x45e25f;if(!_0x3ca6e9[_0x74bd41(0x14e)](_0x337fc7))return;const _0x266687=_0x337fc7[_0x74bd41(0x125)][_0x74bd41(0x15d)](this[_0x74bd41(0x179)])[_0x74bd41(0x14b)](_0x595755=>_0x4b1da5[_0x74bd41(0x1ac)](_0x595755));if(0x1===_0x266687[_0x74bd41(0x1c4)])return;_0x3ca6e9[_0x74bd41(0x14c)](_0x337fc7);let _0xd1d72b=_0x45e25f[_0x74bd41(0x13c)];const _0x6f7c22=_0x45e25f[_0x74bd41(0x13c)];for(const _0x1cdf69 of _0x266687)if(_0x1cdf69[_0x74bd41(0x125)][_0x74bd41(0x13d)](this[_0x74bd41(0x18e)])&&_0x1cdf69[_0x74bd41(0x125)][_0x74bd41(0x180)](this[_0x74bd41(0x148)])){const _0x1c2ad5=_0x1cdf69[_0x74bd41(0x125)][_0x74bd41(0x182)](this[_0x74bd41(0x18e)][_0x74bd41(0x1c4)],_0x1cdf69[_0x74bd41(0x125)][_0x74bd41(0x1c4)]-this[_0x74bd41(0x148)][_0x74bd41(0x1c4)]),_0x50cb61=_0x4b1da5[_0x74bd41(0x149)](_0x74bd41(0x1cb),{'id':_0x1c2ad5});if(!_0x5bf6bf(_0x50cb61,_0xd1d72b))continue;if(_0x5505ed(_0x50cb61,_0x45e25f),_0x50cb61[_0x74bd41(0x17a)]()[_0x74bd41(0x1c4)]>_0xd1d72b[_0x74bd41(0x16b)][_0x74bd41(0x1c4)]){const _0x5b5309=_0x4b1da5[_0x74bd41(0x1ab)](_0x6f7c22,_0xd1d72b);_0x4b1da5[_0x74bd41(0x191)](_0x5b5309,_0x4b1da5[_0x74bd41(0x1c8)](_0x50cb61));}_0xd1d72b=_0x4b1da5[_0x74bd41(0x120)](_0x50cb61);}else _0x4b1da5[_0x74bd41(0x1d2)](_0x1cdf69,_0xd1d72b),_0xd1d72b=_0xd1d72b[_0x74bd41(0x164)](_0x1cdf69[_0x74bd41(0x15b)]);});}),_0x49708b[_0x4f66eb(0x130)](_0x4f66eb(0x156))[_0x4f66eb(0x1ca)]({'model':_0x4f66eb(0x1cb),'view':(_0x22e706,{writer:_0x1794a9})=>this[_0x4f66eb(0x167)](_0x22e706,_0x1794a9)}),_0x49708b[_0x4f66eb(0x130)](_0x4f66eb(0x1cd))[_0x4f66eb(0x1ca)]({'model':_0x4f66eb(0x1cb),'view':(_0x48d61e,{writer:_0x5773ce,options:_0x323549})=>this[_0x4f66eb(0x11a)](_0x48d61e,_0x5773ce,_0x323549[_0x4f66eb(0x187)])});}[_0x30512b(0x167)](_0x7e59e6,_0x534e2b){const _0x26f84b=_0x30512b,{label:_0x2ee679,classes:_0x2603ca,status:_0x13d198}=this[_0x26f84b(0x13b)](_0x7e59e6),_0x235c52=this[_0x26f84b(0x18e)],_0x4f9998=this[_0x26f84b(0x148)];let _0x18e3e7;return _0x26f84b(0x1c7)===this[_0x26f84b(0x195)]?_0x18e3e7=_0x534e2b[_0x26f84b(0x16f)](_0x26f84b(0x1a5),{'class':_0x2603ca},[_0x534e2b[_0x26f84b(0x17e)](_0x26f84b(0x1a5),{'class':_0x26f84b(0x131)},function(_0x4e7c83){const _0x5653a7=_0x26f84b,_0x2959be=this[_0x5653a7(0x147)](_0x4e7c83);return _0x2959be[_0x5653a7(0x184)]=_0x235c52,_0x2959be;}),_0x534e2b[_0x26f84b(0x16f)](_0x26f84b(0x1a5),{'class':_0x26f84b(0x186)},_0x534e2b[_0x26f84b(0x1ac)](String(_0x2ee679))),_0x534e2b[_0x26f84b(0x17e)](_0x26f84b(0x1a5),{'class':_0x26f84b(0x131)},function(_0xaa0cdf){const _0xb66915=_0x26f84b,_0x2f87c2=this[_0xb66915(0x147)](_0xaa0cdf);return _0x2f87c2[_0xb66915(0x184)]=_0x4f9998,_0x2f87c2;})]):_0x13d198?(_0x18e3e7=_0x534e2b[_0x26f84b(0x16f)](_0x26f84b(0x1a5),{'class':_0x2603ca},[_0x534e2b[_0x26f84b(0x1ac)](String(_0x2ee679)),_0x534e2b[_0x26f84b(0x17e)](_0x26f84b(0x1a5),{'class':_0x26f84b(0x1d9)},function(_0x3c2b48){const _0x54f95b=_0x26f84b,_0x545bbe=this[_0x54f95b(0x147)](_0x3c2b48),_0x289644=new _0x597979();return _0x289644[_0x54f95b(0x19b)]({'content':_0x424b9e}),_0x289644[_0x54f95b(0x1a0)](),_0x545bbe[_0x54f95b(0x17c)](_0x289644[_0x54f95b(0x13f)]),_0x545bbe;})]),_0x534e2b[_0x26f84b(0x126)](_0x26f84b(0x169),_0x13d198,_0x18e3e7)):_0x18e3e7=_0x534e2b[_0x26f84b(0x16f)](_0x26f84b(0x1a5),{'class':_0x2603ca},[_0x534e2b[_0x26f84b(0x1ac)](String(_0x2ee679))]),_0x534e2b[_0x26f84b(0x126)](_0x26f84b(0x1cb),!0x0,_0x18e3e7),_0x17baf4(_0x18e3e7,_0x534e2b);}[_0x30512b(0x13b)](_0x218aea){const _0x4e9d22=_0x30512b,_0x49f61f=this[_0x4e9d22(0x1b4)][_0x4e9d22(0x13a)](_0x40aabb=>_0x40aabb['id']===_0x218aea[_0x4e9d22(0x1ad)]('id'));if(!_0x49f61f)return _0x4e9d22(0x1c7)===this[_0x4e9d22(0x195)]?{'label':_0x218aea[_0x4e9d22(0x1ad)]('id'),'classes':_0x4e9d22(0x12d)}:{'label':_0x218aea[_0x4e9d22(0x1ad)]('id'),'classes':_0x4e9d22(0x142),'status':_0x4e9d22(0x193)};const _0x16eaeb=this[_0x4e9d22(0x1ce)](_0x49f61f['id']),_0x3209b8=this[_0x4e9d22(0x12f)](_0x218aea[_0x4e9d22(0x1ad)]('id'));if(_0x4e9d22(0x1c7)===this[_0x4e9d22(0x195)])return{'label':_0x16eaeb,'classes':_0x4e9d22(0x12d)};if(_0x4e9d22(0x17d)===this[_0x4e9d22(0x195)])return _0x3209b8?{'label':_0x3209b8,'classes':_0x4e9d22(0x1b5)}:{'label':_0x16eaeb,'classes':_0x4e9d22(0x199),'status':_0x4e9d22(0x1a7)};const _0xbfa233=this[_0x4e9d22(0x143)][_0x4e9d22(0x1a2)][_0x4e9d22(0x1c3)](_0x4e9d22(0x123))[_0x4e9d22(0x13a)](_0x1e223a=>_0x1e223a['id']===this[_0x4e9d22(0x195)])[_0x4e9d22(0x151)][_0x49f61f['id']];return _0xbfa233?{'label':_0x4e9d22(0x18b)==typeof _0xbfa233?_0xbfa233(this[_0x4e9d22(0x143)]):_0xbfa233,'classes':_0x4e9d22(0x1b5)}:_0x3209b8?{'label':_0x3209b8,'classes':_0x4e9d22(0x11b),'status':_0x4e9d22(0x1a6)}:{'label':_0x16eaeb,'classes':_0x4e9d22(0x178),'status':_0x4e9d22(0x1b2)};}[_0x30512b(0x11a)](_0x5689d4,_0x9e44eb,_0x527eee){const _0x230ff1=_0x30512b,_0x23bfdf=_0x5689d4[_0x230ff1(0x1ad)]('id'),_0x479989=_0x527eee&&_0x527eee[_0x23bfdf]?_0x527eee[_0x23bfdf]:this[_0x230ff1(0x18e)]+_0x23bfdf+this[_0x230ff1(0x148)],_0x1251c0=_0x9e44eb[_0x230ff1(0x1ac)](_0x479989),_0xdacfff=_0x9e44eb[_0x230ff1(0x16f)](_0x230ff1(0x1a5));return _0x9e44eb[_0x230ff1(0x126)](_0x230ff1(0x139),!0x0,_0xdacfff),_0x9e44eb[_0x230ff1(0x1d2)](_0x9e44eb[_0x230ff1(0x183)](_0xdacfff,0x0),_0x1251c0),_0xdacfff;}[_0x30512b(0x1c5)](){const _0x39fd5e=_0x30512b;this[_0x39fd5e(0x19a)][_0x39fd5e(0x1bf)](_0x370af8=>{const _0x1a571a=_0x39fd5e;_0x1a571a(0x11f)!==_0x370af8[_0x1a571a(0x15f)][_0x1a571a(0x163)]&&this[_0x1a571a(0x143)][_0x1a571a(0x18d)][_0x1a571a(0x177)](_0x370af8);});}[_0x30512b(0x1d1)](_0xff2e41){const _0x2520aa=_0x30512b;if(!this[_0x2520aa(0x1bc)][_0x2520aa(0x1d6)](_0xff2e41))throw new _0x5ce1f3(_0x2520aa(0x192),this,{'availablePreviewModes':this[_0x2520aa(0x1bc)],'previewMode':_0xff2e41});}[_0x30512b(0x19e)](){const _0x320ad2=_0x30512b;for(const _0x484db2 of this[_0x320ad2(0x143)][_0x320ad2(0x11d)][_0x320ad2(0x138)][_0x320ad2(0x140)][_0x320ad2(0x12a)]({'includeChangesInGraveyard':!0x0})){if(_0x320ad2(0x1d2)!==_0x484db2[_0x320ad2(0x14a)]||_0x320ad2(0x141)===_0x484db2[_0x320ad2(0x175)])continue;if(_0x320ad2(0x1cb)===_0x484db2[_0x320ad2(0x175)]){this[_0x320ad2(0x19a)][_0x320ad2(0x1cc)](_0x484db2[_0x320ad2(0x159)][_0x320ad2(0x145)]);continue;}const _0x3335a8=this[_0x320ad2(0x143)][_0x320ad2(0x11d)][_0x320ad2(0x16e)](_0x484db2[_0x320ad2(0x159)][_0x320ad2(0x145)]);for(const _0x5b96fd of _0x3335a8[_0x320ad2(0x170)]())_0x5b96fd['is'](_0x320ad2(0x13f),_0x320ad2(0x1cb))&&this[_0x320ad2(0x19a)][_0x320ad2(0x1cc)](_0x5b96fd);}}[_0x30512b(0x16a)](){const _0x272846=_0x30512b,_0x20cdf6=this[_0x272846(0x143)];_0x20cdf6[_0x272846(0x11d)][_0x272846(0x138)][_0x272846(0x1d8)](_0x3e31c5=>{const _0x369a2c=_0x272846;if(!_0x3e31c5[_0x369a2c(0x1b9)][_0x369a2c(0x1a1)])return!0x1;const _0x57c89c=[],_0x527e9e=new Set(),_0xcc0ce5=this[_0x369a2c(0x179)];let _0x5d1d18=!0x1;for(const _0x3d016d of _0x20cdf6[_0x369a2c(0x11d)][_0x369a2c(0x138)][_0x369a2c(0x140)][_0x369a2c(0x12a)]())if(_0x369a2c(0x1d2)===_0x3d016d[_0x369a2c(0x14a)]||_0x369a2c(0x172)===_0x3d016d[_0x369a2c(0x14a)]){let _0x530086=_0x369a2c(0x141)==_0x3d016d[_0x369a2c(0x175)]?_0x3d016d[_0x369a2c(0x159)][_0x369a2c(0x146)]:_0x3d016d[_0x369a2c(0x159)][_0x369a2c(0x145)];if(!_0x530086)continue;_0x530086['is'](_0x369a2c(0x141))&&(_0x530086=_0x530086[_0x369a2c(0x146)]),_0x2e2d0a(_0x530086);}for(const _0x46b8ce of _0x57c89c[_0x369a2c(0x152)]()){const {match:_0x41a8a1,item:_0x14f8db}=_0x46b8ce,_0x53e0f1=_0x3e31c5[_0x369a2c(0x183)](_0x14f8db,_0x41a8a1[_0x369a2c(0x132)]),_0x72fee3=_0x53e0f1[_0x369a2c(0x164)](_0x41a8a1[0x0][_0x369a2c(0x1c4)]),_0x2c82cf=_0x3e31c5[_0x369a2c(0x1ab)](_0x53e0f1,_0x72fee3),_0x5af922=_0x41a8a1[0x0],_0x39ad80=_0x5af922[_0x369a2c(0x182)](this[_0x369a2c(0x18e)][_0x369a2c(0x1c4)],_0x5af922[_0x369a2c(0x1c4)]-this[_0x369a2c(0x148)][_0x369a2c(0x1c4)]),_0x17aab6=_0x8c6d18(_0x2c82cf);_0x17aab6[_0x369a2c(0x19b)]('id',_0x39ad80);const _0x264c80=_0x3e31c5[_0x369a2c(0x149)](_0x369a2c(0x1cb),_0x17aab6);_0x20cdf6[_0x369a2c(0x11d)][_0x369a2c(0x17b)][_0x369a2c(0x19f)](_0x2c82cf[_0x369a2c(0x1c6)],_0x369a2c(0x1cb))?_0x20cdf6[_0x369a2c(0x11d)][_0x369a2c(0x1b3)](_0x264c80,_0x2c82cf):_0x3e31c5[_0x369a2c(0x172)](_0x2c82cf),_0x5d1d18=!0x0;}return _0x5d1d18;function _0x2e2d0a(_0x485e2c){const _0x3c8770=_0x369a2c;let _0xec417c='',_0x3a8d5f=0x0;if(!_0x527e9e[_0x3c8770(0x1c2)](_0x485e2c))for(const _0x2fbfe2 of _0x485e2c[_0x3c8770(0x13e)]()){const _0x48b5c9=_0x2fbfe2[_0x3c8770(0x155)];if(_0x2fbfe2['is'](_0x3c8770(0x141))&&(''===_0xec417c&&_0x2fbfe2[_0x3c8770(0x185)]&&(_0x3a8d5f=_0x2fbfe2[_0x3c8770(0x185)]),_0xec417c+=_0x2fbfe2[_0x3c8770(0x125)]),!_0x48b5c9||_0x48b5c9['is'](_0x3c8770(0x13f))){for(const _0x442259 of _0xec417c[_0x3c8770(0x168)](_0xcc0ce5))_0x442259[_0x3c8770(0x132)]=_0x442259[_0x3c8770(0x132)]+_0x3a8d5f,_0x57c89c[_0x3c8770(0x117)]({'match':_0x442259,'item':_0x485e2c});_0x527e9e[_0x3c8770(0x1cc)](_0x485e2c),_0xec417c='';}_0x2fbfe2['is'](_0x3c8770(0x13f))&&_0x2e2d0a(_0x2fbfe2);}}function _0x8c6d18(_0x4421db){const _0x37a1a0=_0x369a2c,_0x2c2680=_0x4421db[_0x37a1a0(0x170)](),_0x165f03=_0x2c2680[_0x37a1a0(0x181)]()[_0x37a1a0(0x1d4)],_0xed7ef1=new Map(_0x165f03[_0x37a1a0(0x1ae)]());for(const _0xa8ebe0 of _0x2c2680)for(const [_0x36794b,_0x3cc957]of _0xed7ef1)_0xa8ebe0[_0x37a1a0(0x1ad)](_0x36794b)!==_0x3cc957&&_0xed7ef1[_0x37a1a0(0x19d)](_0x36794b);return _0xed7ef1;}});}[_0x30512b(0x165)](_0x50116){return{'id':_0x50116};}}
|
|
23
|
+
const _0x65f55=_0x391a;(function(_0x32d401,_0x1f91f1){const _0x4c8d5a=_0x391a,_0x1f4a60=_0x32d401();while(!![]){try{const _0x40d111=-parseInt(_0x4c8d5a(0x103))/0x1*(parseInt(_0x4c8d5a(0xed))/0x2)+-parseInt(_0x4c8d5a(0x145))/0x3*(-parseInt(_0x4c8d5a(0x123))/0x4)+parseInt(_0x4c8d5a(0x105))/0x5+parseInt(_0x4c8d5a(0xc1))/0x6*(-parseInt(_0x4c8d5a(0x117))/0x7)+-parseInt(_0x4c8d5a(0x14c))/0x8*(parseInt(_0x4c8d5a(0x124))/0x9)+parseInt(_0x4c8d5a(0xb1))/0xa*(parseInt(_0x4c8d5a(0x11d))/0xb)+parseInt(_0x4c8d5a(0x15d))/0xc;if(_0x40d111===_0x1f91f1)break;else _0x1f4a60['push'](_0x1f4a60['shift']());}catch(_0xfbd17e){_0x1f4a60['push'](_0x1f4a60['shift']());}}}(_0x27ca,0xee153));import{toWidget as _0x18c3af,viewToModelPositionOutsideModelElement as _0x3fa356}from'ckeditor5/src/widget.js';function _0x391a(_0x2efc0d,_0x820730){const _0x27ca06=_0x27ca();return _0x391a=function(_0x391a9e,_0xbc7bc2){_0x391a9e=_0x391a9e-0xac;let _0x497ddf=_0x27ca06[_0x391a9e];return _0x497ddf;},_0x391a(_0x2efc0d,_0x820730);}import{Plugin as _0x408bc3}from'ckeditor5/src/core.js';import{IconView as _0x599648}from'ckeditor5/src/ui.js';import{isParagraphable as _0x3c4dc2,wrapInParagraph as _0x3fc3ec}from'ckeditor5/src/engine.js';import{CKEditorError as _0x19e5d5}from'ckeditor5/src/utils.js';import _0xb0859b from'./insertmergefieldcommand.js';function _0x27ca(){const _0x53f8c4=['push','schema','ck-merge-field','merge-fields-prefix-and-suffix-must-differ','add','label','render','$inlineObject','from','function','306271RxzcFZ','mergeFieldsData','4660980cUumUJ','concat','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_default-value-used','every','register','merge-fields-invalid-prefix-or-suffix','defaultValue','merge-fields-trial-license-key-reached-limit-changes','_validateConfig','_mergeFieldElements','model','rootName','_defineSchema','mergeFields.dataSets','conversion','type','differ','_defineConverters','1231013zHluHQ','_licenseKeyCheckInterval','mergeFields.definitions','modelRange','definitions','ck-merge-field\x20ck-merge-field_with-value','3674SeBysn','commands','change:previewMode','position','createElement','reduce','4GLvvHj','4392haIGmw','value','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','mergeFields.prefix','_validatePreviewMode','insert','init','previewMode','name','MergeFieldsEditing','delete','root','_mergeFieldPrefix','$graveyard','createUIElement','info','mergeFieldsLicenseKeyTrialLimit:operations','modelCursor','ck-merge-field__affix','$dataSets','parent','_refreshMergeFields','mergeFields.suffix','_getAvailablePreviewModes','merge-fields-invalid-id','editingDowncast','viewToModelPosition','availablePreviewModes','start','innerHTML','remove','has','\x20]+','655233bBXBao','batch','registerPostFixer','offsetSize','getShiftedBy','getDocumentMergeFieldsIds','destroy','23096tcavgr','view','_trackAddedMergeFields','merge-fields-invalid-license-key','upcast','bind','getAttributes','getItems','merge-fields-duplicate-merge-field-id','getAttribute','mergeFieldsLicenseKeyTrial','mergeFieldsLicenseKeyValid','elementToElement','nextSibling','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','merge-fields-duplicate-group-id','find','26586876fmlSaf','split','mergeField','editor','$defaultValues','for','data','_mergeFieldSuffix','startOffset','nodeAfter','next','filter','map','get','WARNING_MISSING_DATA','WARNING_MISSING_DATA_USED_DEFAULT_VALUE','appendChild','setCustomProperty','ck-merge-field__icon','_prepareViewElementData','includes','createPositionAt','flattenedMergeFieldDefinitions','4730IwdDpn','ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','matchAll','createRange','merge-fields-duplicate-data-set-id','getLabel','reverse','checkChild','WARNING_MISSING_DEFAULT_VALUE','change:data','forEach','slice','pluginName','dataDowncast','match','getChanges','18AVxhcF','mergeFields.initialPreviewMode','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20format\x20painter\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','mapper','createText','previewMergeFields','WARNING_MISSING_DEFINITION','define','set','hasClass','insertMergeField','_getDefaultDefinition','registerInlineObjectMatcher','getMergeFieldDefaultValue','dataPipeline:transparentRendering','text','listenTo','document','toDomElement','isLocal','mergeFieldsLicenseKeyInvalid','merge-fields-data-set-not-found','mergeFieldStatus','_getFlattenedMergeFieldDefinitions','span','licenseKey','getMergeFieldsIds','mergeFields.previewModes','join','_registerConversionPostFixer','createRangeIn','ck-merge-field__content','getMergeFieldValue','merge-fields-invalid-preview-mode-set','getDefinition','length','index','editing','_mergeFieldRegExp','insertObject','_createTextualMergeField','$labels','domConverter','values','4rIpGNb','groupId','merge-fields-invalid-preview-modes-configuration','createContainerElement','_createMergeFieldWidget','test','config','element','$text','reconvertItem','getChildren','consume'];_0x27ca=function(){return _0x53f8c4;};return _0x27ca();}import _0x2070e3 from'./previewmergefieldscommand.js';import _0x544cca from'../theme/icons/warning.svg';export default class o extends _0x408bc3{static get[_0x65f55(0xbd)](){const _0x5c8cb1=_0x65f55;return _0x5c8cb1(0x12d);}constructor(_0x38a87f){const _0x51655d=_0x65f55;super(_0x38a87f),this[_0x51655d(0xb0)]=[],_0x38a87f[_0x51655d(0xf3)][_0x51655d(0xc8)](_0x51655d(0xdc),[_0x51655d(0xea),_0x51655d(0x161),_0x51655d(0x137)]),_0x38a87f[_0x51655d(0xf3)][_0x51655d(0xc8)](_0x51655d(0x112),[]),_0x38a87f[_0x51655d(0xf3)][_0x51655d(0xc8)](_0x51655d(0x119),[]),_0x38a87f[_0x51655d(0xf3)][_0x51655d(0xc8)](_0x51655d(0x127),'{{'),_0x38a87f[_0x51655d(0xf3)][_0x51655d(0xc8)](_0x51655d(0x13a),'}}'),this[_0x51655d(0x130)]=_0x38a87f[_0x51655d(0xf3)][_0x51655d(0x16a)](_0x51655d(0x127)),this[_0x51655d(0x164)]=_0x38a87f[_0x51655d(0xf3)][_0x51655d(0x16a)](_0x51655d(0x13a)),this[_0x51655d(0xb0)]=this[_0x51655d(0xd8)](),this[_0x51655d(0x10d)]();const _0x5991e8='\x5c'+this[_0x51655d(0x130)][_0x51655d(0x15e)]('')[_0x51655d(0xdd)]('\x5c'),_0x379cbd='\x5c'+this[_0x51655d(0x164)][_0x51655d(0x15e)]('')[_0x51655d(0xdd)]('\x5c');this[_0x51655d(0xe7)]=new RegExp('('+_0x5991e8+'[^'+(_0x5991e8+_0x379cbd)+_0x51655d(0x144)+_0x379cbd+')','g'),this[_0x51655d(0x13f)]=this[_0x51655d(0x13b)]();const _0x2b4dfa=_0x38a87f[_0x51655d(0xf3)][_0x51655d(0x16a)](_0x51655d(0xc2))||this[_0x51655d(0x13f)][0x0];this[_0x51655d(0x128)](_0x2b4dfa),this[_0x51655d(0xc9)](_0x51655d(0x12b),_0x2b4dfa),this[_0x51655d(0x10e)]=new Set(),this[_0x51655d(0x118)]=null;}[_0x65f55(0x12a)](){const _0x4e72ee=_0x65f55,_0x5353d8=this[_0x4e72ee(0x160)];_0x5353d8[_0x4e72ee(0x11e)][_0x4e72ee(0xfd)](_0x4e72ee(0xcb),new _0xb0859b(_0x5353d8)),_0x5353d8[_0x4e72ee(0x11e)][_0x4e72ee(0xfd)](_0x4e72ee(0xc6),new _0x2070e3(_0x5353d8)),this[_0x4e72ee(0x111)](),this[_0x4e72ee(0x116)](),this['on'](_0x4e72ee(0x11f),(_0x4ee1c1,_0x194fd7,_0x314a1d)=>{const _0x1a35d4=_0x4e72ee;this[_0x1a35d4(0x128)](_0x314a1d),this[_0x1a35d4(0x139)]();}),this[_0x4e72ee(0xd1)](_0x5353d8[_0x4e72ee(0x10f)][_0x4e72ee(0xd2)],_0x4e72ee(0xba),()=>{const _0xce36e0=_0x4e72ee;this[_0xce36e0(0x14e)]();}),_0x5353d8[_0x4e72ee(0xe6)][_0x4e72ee(0xc4)]['on'](_0x4e72ee(0x13e),_0x3fa356(_0x5353d8[_0x4e72ee(0x10f)],_0x493f47=>_0x493f47[_0x4e72ee(0xca)](_0x4e72ee(0xfb)))),this[_0x4e72ee(0xde)](),_0x5353d8[_0x4e72ee(0xe6)][_0x4e72ee(0x14d)][_0x4e72ee(0xeb)][_0x4e72ee(0xcd)]({'name':_0x4e72ee(0xd9),'classes':[_0x4e72ee(0xfb)]}),this[_0x4e72ee(0xda)]=_0x5353d8[_0x4e72ee(0xf3)][_0x4e72ee(0x16a)](_0x4e72ee(0xda));const _0x3e661e=this[_0x4e72ee(0x160)];this[_0x4e72ee(0x118)]=setInterval(()=>{const _0x578f87=_0x4e72ee;let _0x2e94e7;for(const _0x55015c in _0x3e661e){const _0x53201e=_0x55015c,_0x1090f9=_0x3e661e[_0x53201e];if(_0x578f87(0x156)===_0x1090f9||_0x578f87(0xd5)===_0x1090f9||_0x578f87(0x157)===_0x1090f9||_0x578f87(0x134)===_0x1090f9){delete _0x3e661e[_0x53201e],_0x2e94e7=_0x1090f9;break;}}if(_0x578f87(0xd5)===_0x2e94e7)throw clearInterval(this[_0x578f87(0x118)]),new _0x19e5d5(_0x578f87(0x14f),null);if(_0x578f87(0x156)===_0x2e94e7&&console[_0x578f87(0x133)](_0x578f87(0xc3)),_0x578f87(0x134)===_0x2e94e7)throw clearInterval(this[_0x578f87(0x118)]),new _0x19e5d5(_0x578f87(0x10c),null);_0x578f87(0x157)===_0x2e94e7&&clearInterval(this[_0x578f87(0x118)]);},0x3e8);}[_0x65f55(0xb6)](_0x4cf5dd){const _0x36c1ab=_0x65f55,_0x575ce3=this[_0x36c1ab(0xe3)](_0x4cf5dd);return _0x575ce3[_0x36c1ab(0xfe)]||_0x575ce3['id'];}[_0x65f55(0xce)](_0x3ced54){const _0x1f1c0a=_0x65f55,_0x293a70=this[_0x1f1c0a(0xe3)](_0x3ced54);return void 0x0===_0x293a70[_0x1f1c0a(0x10b)]?null:_0x1f1c0a(0x102)==typeof _0x293a70[_0x1f1c0a(0x10b)]?_0x293a70[_0x1f1c0a(0x10b)](this[_0x1f1c0a(0x160)]):_0x293a70[_0x1f1c0a(0x10b)];}[_0x65f55(0xe1)](_0x1d36ee,_0xd449a6){const _0x4b28cf=_0x65f55,_0xfe7135=this[_0x4b28cf(0x160)][_0x4b28cf(0xf3)][_0x4b28cf(0x16a)](_0x4b28cf(0x112))[_0x4b28cf(0x15c)](_0x728452=>_0x728452['id']===_0xd449a6);if(!_0xfe7135)throw new _0x19e5d5(_0x4b28cf(0xd6),null);const _0x4598fe=this[_0x4b28cf(0xe3)](_0x1d36ee),_0x1580f0=_0xfe7135[_0x4b28cf(0xec)][_0x4598fe['id']];return void 0x0===_0x1580f0?null:_0x4b28cf(0x102)==typeof _0x1580f0?_0x1580f0(this[_0x4b28cf(0x160)]):_0x1580f0;}[_0x65f55(0x14a)](){const _0x26130c=_0x65f55,_0x31b189=new Set();for(const _0x3c2234 of this[_0x26130c(0x10e)])_0x26130c(0x131)!==_0x3c2234[_0x26130c(0x12f)][_0x26130c(0x110)]&&_0x31b189[_0x26130c(0xfd)](_0x3c2234[_0x26130c(0x155)]('id'));return Array[_0x26130c(0x101)](_0x31b189);}[_0x65f55(0xdb)](){const _0x52157e=_0x65f55,_0x5c9ab0=this[_0x52157e(0xb0)][_0x52157e(0x169)](_0xcb8b83=>_0xcb8b83['id']),_0x15b652=this[_0x52157e(0x14a)]();return Array[_0x52157e(0x101)](new Set([..._0x5c9ab0,..._0x15b652]));}[_0x65f55(0xe3)](_0x2ca9e4){const _0x25787e=_0x65f55;return this[_0x25787e(0xb0)][_0x25787e(0x15c)](_0x30f976=>_0x30f976['id']===_0x2ca9e4)||this[_0x25787e(0xcc)](_0x2ca9e4);}[_0x65f55(0x14b)](){const _0x391091=_0x65f55;this[_0x391091(0x118)]&&clearInterval(this[_0x391091(0x118)]);}[_0x65f55(0xd8)](){const _0x3b0a02=_0x65f55,_0x245392=new Set(),_0x1d5a4a=this[_0x3b0a02(0x160)];return _0x1d5a4a[_0x3b0a02(0xf3)][_0x3b0a02(0x16a)](_0x3b0a02(0x119))[_0x3b0a02(0x122)]((_0x41f8b0,_0x494030)=>{const _0x3d862a=_0x3b0a02;if(_0x3d862a(0xee)in _0x494030){if(_0x245392[_0x3d862a(0x143)](_0x494030[_0x3d862a(0xee)]))throw new _0x19e5d5(_0x3d862a(0x15b),_0x1d5a4a,{'duplicateId':_0x494030[_0x3d862a(0xee)]});_0x245392[_0x3d862a(0xfd)](_0x494030[_0x3d862a(0xee)]);}return _0x3d862a(0xee)in _0x494030?function(_0x29eb23,_0x3f4849){const _0x1e28a4=_0x3d862a;for(const _0x5acbb7 of _0x3f4849[_0x1e28a4(0x11b)])_0x29eb23=_0x29eb23[_0x1e28a4(0x106)](_0x5acbb7);return _0x29eb23;}[_0x3d862a(0x151)](_0x1d5a4a)(_0x41f8b0,_0x494030):_0x41f8b0[_0x3d862a(0x106)](_0x494030);},new Array());}[_0x65f55(0x10d)](){const _0x2ec784=_0x65f55,_0x346c0d=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x346c0d[_0x2ec784(0xf2)](this[_0x2ec784(0x130)])||!_0x346c0d[_0x2ec784(0xf2)](this[_0x2ec784(0x164)]))throw new _0x19e5d5(_0x2ec784(0x10a),this,{'prefix':this[_0x2ec784(0x130)],'suffix':this[_0x2ec784(0x164)]});const _0x39490a=/^[a-zA-Z0-9_.-]+$/,_0x1f554c=new Set();if(this[_0x2ec784(0xb0)][_0x2ec784(0x169)](_0x5af6f7=>{const _0x6e1782=_0x2ec784;if(!_0x39490a[_0x6e1782(0xf2)](_0x5af6f7['id']))throw new _0x19e5d5(_0x6e1782(0x13c),this,{'incorrectId':_0x5af6f7['id']});if(_0x1f554c[_0x6e1782(0x143)](_0x5af6f7['id']))throw new _0x19e5d5(_0x6e1782(0x154),this,{'duplicateId':_0x5af6f7['id']});_0x1f554c[_0x6e1782(0xfd)](_0x5af6f7['id']);}),this[_0x2ec784(0x130)]===this[_0x2ec784(0x164)])throw new _0x19e5d5(_0x2ec784(0xfc),this);const _0x1b4a23=this[_0x2ec784(0x160)][_0x2ec784(0xf3)][_0x2ec784(0x16a)](_0x2ec784(0xdc)),_0x4d4afd=[_0x2ec784(0xea),_0x2ec784(0x161),_0x2ec784(0x137)];if(!_0x1b4a23[_0x2ec784(0xe4)]||!_0x1b4a23[_0x2ec784(0x108)](_0x589bf3=>_0x4d4afd[_0x2ec784(0xae)](_0x589bf3)))throw new _0x19e5d5(_0x2ec784(0xef),this,{'invalidConfig':_0x1b4a23});const _0xfb82bb=new Set(),_0x2b5252=this[_0x2ec784(0x160)][_0x2ec784(0xf3)][_0x2ec784(0x16a)](_0x2ec784(0x112));for(const _0x39b8f2 of _0x2b5252){if(_0xfb82bb[_0x2ec784(0x143)](_0x39b8f2['id']))throw new _0x19e5d5(_0x2ec784(0xb5),this,{'duplicateId':_0x39b8f2['id']});_0xfb82bb[_0x2ec784(0xfd)](_0x39b8f2['id']);}}[_0x65f55(0x13b)](){const _0x26a7e5=_0x65f55,_0x2ae172=this[_0x26a7e5(0x160)][_0x26a7e5(0xf3)][_0x26a7e5(0x16a)](_0x26a7e5(0xdc)),_0xfb30f7=[];if(_0x2ae172[_0x26a7e5(0xae)](_0x26a7e5(0xea))&&_0xfb30f7[_0x26a7e5(0xf9)](_0x26a7e5(0xea)),_0x2ae172[_0x26a7e5(0xae)](_0x26a7e5(0x161))&&_0xfb30f7[_0x26a7e5(0xf9)](_0x26a7e5(0x161)),_0x2ae172[_0x26a7e5(0xae)](_0x26a7e5(0x137))){const _0x407f2e=this[_0x26a7e5(0x160)][_0x26a7e5(0xf3)][_0x26a7e5(0x16a)](_0x26a7e5(0x112));_0xfb30f7[_0x26a7e5(0xf9)](..._0x407f2e[_0x26a7e5(0x169)](_0x10f370=>_0x10f370['id']));}return _0xfb30f7;}[_0x65f55(0x111)](){const _0x30c9f2=_0x65f55;this[_0x30c9f2(0x160)][_0x30c9f2(0x10f)][_0x30c9f2(0xfa)][_0x30c9f2(0x109)](_0x30c9f2(0x15f),{'inheritAllFrom':_0x30c9f2(0x100),'allowAttributes':['id'],'allowWhere':_0x30c9f2(0xf5)});}[_0x65f55(0x116)](){const _0x25eaf9=_0x65f55,_0x179f5d=this[_0x25eaf9(0x160)][_0x25eaf9(0x113)];_0x179f5d[_0x25eaf9(0x162)](_0x25eaf9(0x150))[_0x25eaf9(0xfd)](_0x3d2d71=>{const _0x2b94d7=_0x25eaf9;_0x3d2d71['on'](_0x2b94d7(0xd0),(_0x4f1eed,_0x26ba3c,_0x4a2fda)=>{const _0x3fd41f=_0x2b94d7,{consumable:_0x1f53e9,writer:_0x4f0064,schema:_0x38e735}=_0x4a2fda,{viewItem:_0x3e6861}=_0x26ba3c;if(!_0x1f53e9[_0x3fd41f(0xf2)](_0x3e6861))return;const _0x1245bd=_0x3e6861[_0x3fd41f(0x163)][_0x3fd41f(0x15e)](this[_0x3fd41f(0xe7)])[_0x3fd41f(0x168)](_0x3324e5=>_0x3324e5);if(0x1!==_0x1245bd[_0x3fd41f(0xe4)]||_0x1245bd[0x0][_0x3fd41f(0xbf)](this[_0x3fd41f(0xe7)])){if(!_0x38e735[_0x3fd41f(0xb8)](_0x26ba3c[_0x3fd41f(0x135)],_0x3fd41f(0xf5))){if(!_0x3c4dc2(_0x26ba3c[_0x3fd41f(0x135)],_0x3fd41f(0xf5),_0x38e735))return;_0x26ba3c[_0x3fd41f(0x135)]=_0x3fc3ec(_0x26ba3c[_0x3fd41f(0x135)],_0x4f0064);}_0x1f53e9[_0x3fd41f(0xf8)](_0x3e6861);for(const _0x3de3c9 of _0x1245bd){const _0x4ac600=_0x26ba3c[_0x3fd41f(0x135)];let _0x3be7ed;if(_0x3de3c9[_0x3fd41f(0xbf)](this[_0x3fd41f(0xe7)])){const _0x279c43=_0x3de3c9[_0x3fd41f(0xbc)](this[_0x3fd41f(0x130)][_0x3fd41f(0xe4)],_0x3de3c9[_0x3fd41f(0xe4)]-this[_0x3fd41f(0x164)][_0x3fd41f(0xe4)]);_0x3be7ed=_0x4f0064[_0x3fd41f(0x121)](_0x3fd41f(0x15f),{'id':_0x279c43});}else _0x3be7ed=_0x4f0064[_0x3fd41f(0xc5)](_0x3de3c9);_0x4f0064[_0x3fd41f(0x129)](_0x3be7ed,_0x4ac600),_0x26ba3c[_0x3fd41f(0x135)]=_0x4ac600[_0x3fd41f(0x149)](_0x3be7ed[_0x3fd41f(0x148)]),_0x26ba3c[_0x3fd41f(0x11a)]=_0x4f0064[_0x3fd41f(0xb4)](_0x26ba3c[_0x3fd41f(0x11a)]?_0x26ba3c[_0x3fd41f(0x11a)][_0x3fd41f(0x140)]:_0x4ac600,_0x26ba3c[_0x3fd41f(0x135)]);}}});}),_0x179f5d[_0x25eaf9(0x162)](_0x25eaf9(0x13d))[_0x25eaf9(0x158)]({'model':_0x25eaf9(0x15f),'view':(_0x2252b2,{writer:_0xb52f75})=>this[_0x25eaf9(0xf1)](_0x2252b2,_0xb52f75)}),_0x179f5d[_0x25eaf9(0x162)](_0x25eaf9(0xbe))[_0x25eaf9(0x158)]({'model':_0x25eaf9(0x15f),'view':(_0x46300e,{writer:_0x2cbee4,options:_0x3e457e})=>this[_0x25eaf9(0xe9)](_0x46300e,_0x2cbee4,_0x3e457e[_0x25eaf9(0x104)])});}[_0x65f55(0xf1)](_0x44bf62,_0x19cf69){const _0xb4600e=_0x65f55,{label:_0x591a2f,classes:_0x5469aa,status:_0x3de0b0}=this[_0xb4600e(0xad)](_0x44bf62),_0x37f4b4=this[_0xb4600e(0x130)],_0x136d62=this[_0xb4600e(0x164)];let _0x4c8e2f;return _0xb4600e(0xea)===this[_0xb4600e(0x12b)]?_0x4c8e2f=_0x19cf69[_0xb4600e(0xf0)](_0xb4600e(0xd9),{'class':_0x5469aa},[_0x19cf69[_0xb4600e(0x132)](_0xb4600e(0xd9),{'class':_0xb4600e(0x136)},function(_0x1b2e47){const _0x1594cc=_0xb4600e,_0x241602=this[_0x1594cc(0xd3)](_0x1b2e47);return _0x241602[_0x1594cc(0x141)]=_0x37f4b4,_0x241602;}),_0x19cf69[_0xb4600e(0xf0)](_0xb4600e(0xd9),{'class':_0xb4600e(0xe0)},_0x19cf69[_0xb4600e(0xc5)](String(_0x591a2f))),_0x19cf69[_0xb4600e(0x132)](_0xb4600e(0xd9),{'class':_0xb4600e(0x136)},function(_0x45fdd1){const _0x25bcb9=_0xb4600e,_0x53324a=this[_0x25bcb9(0xd3)](_0x45fdd1);return _0x53324a[_0x25bcb9(0x141)]=_0x136d62,_0x53324a;})]):_0x3de0b0?(_0x4c8e2f=_0x19cf69[_0xb4600e(0xf0)](_0xb4600e(0xd9),{'class':_0x5469aa},[_0x19cf69[_0xb4600e(0xc5)](String(_0x591a2f)),_0x19cf69[_0xb4600e(0x132)](_0xb4600e(0xd9),{'class':_0xb4600e(0xac)},function(_0x325eba){const _0x14ef1f=_0xb4600e,_0x3c9dc8=this[_0x14ef1f(0xd3)](_0x325eba),_0x290559=new _0x599648();return _0x290559[_0x14ef1f(0xc9)]({'content':_0x544cca}),_0x290559[_0x14ef1f(0xff)](),_0x3c9dc8[_0x14ef1f(0x16d)](_0x290559[_0x14ef1f(0xf4)]),_0x3c9dc8;})]),_0x19cf69[_0xb4600e(0x16e)](_0xb4600e(0xd7),_0x3de0b0,_0x4c8e2f)):_0x4c8e2f=_0x19cf69[_0xb4600e(0xf0)](_0xb4600e(0xd9),{'class':_0x5469aa},[_0x19cf69[_0xb4600e(0xc5)](String(_0x591a2f))]),_0x19cf69[_0xb4600e(0x16e)](_0xb4600e(0x15f),!0x0,_0x4c8e2f),_0x18c3af(_0x4c8e2f,_0x19cf69);}[_0x65f55(0xad)](_0x5133cc){const _0xbe1a6e=_0x65f55,_0x4c2f4e=this[_0xbe1a6e(0xb0)][_0xbe1a6e(0x15c)](_0x4fbfcc=>_0x4fbfcc['id']===_0x5133cc[_0xbe1a6e(0x155)]('id'));if(!_0x4c2f4e)return _0xbe1a6e(0xea)===this[_0xbe1a6e(0x12b)]?{'label':_0x5133cc[_0xbe1a6e(0x155)]('id'),'classes':_0xbe1a6e(0xfb)}:{'label':_0x5133cc[_0xbe1a6e(0x155)]('id'),'classes':_0xbe1a6e(0x15a),'status':_0xbe1a6e(0xc7)};const _0x494caa=this[_0xbe1a6e(0xb6)](_0x4c2f4e['id']),_0x8ba074=this[_0xbe1a6e(0xce)](_0x5133cc[_0xbe1a6e(0x155)]('id'));if(_0xbe1a6e(0xea)===this[_0xbe1a6e(0x12b)])return{'label':_0x494caa,'classes':_0xbe1a6e(0xfb)};if(_0xbe1a6e(0x161)===this[_0xbe1a6e(0x12b)])return _0x8ba074?{'label':_0x8ba074,'classes':_0xbe1a6e(0x11c)}:{'label':_0x494caa,'classes':_0xbe1a6e(0xb2),'status':_0xbe1a6e(0xb9)};const _0xd31632=this[_0xbe1a6e(0x160)][_0xbe1a6e(0xf3)][_0xbe1a6e(0x16a)](_0xbe1a6e(0x112))[_0xbe1a6e(0x15c)](_0x3ab673=>_0x3ab673['id']===this[_0xbe1a6e(0x12b)])[_0xbe1a6e(0xec)][_0x4c2f4e['id']];return _0xd31632?{'label':_0xbe1a6e(0x102)==typeof _0xd31632?_0xd31632(this[_0xbe1a6e(0x160)]):_0xd31632,'classes':_0xbe1a6e(0x11c)}:_0x8ba074?{'label':_0x8ba074,'classes':_0xbe1a6e(0x107),'status':_0xbe1a6e(0x16c)}:{'label':_0x494caa,'classes':_0xbe1a6e(0x126),'status':_0xbe1a6e(0x16b)};}[_0x65f55(0xe9)](_0x42f3c4,_0x1e6782,_0x8de36f){const _0x1387f7=_0x65f55,_0x5cb5a0=_0x42f3c4[_0x1387f7(0x155)]('id'),_0x3ee117=_0x8de36f&&_0x8de36f[_0x5cb5a0]?_0x8de36f[_0x5cb5a0]:this[_0x1387f7(0x130)]+_0x5cb5a0+this[_0x1387f7(0x164)],_0x511599=_0x1e6782[_0x1387f7(0xc5)](_0x3ee117),_0x5fbe0b=_0x1e6782[_0x1387f7(0xf0)](_0x1387f7(0xd9));return _0x1e6782[_0x1387f7(0x16e)](_0x1387f7(0xcf),!0x0,_0x5fbe0b),_0x1e6782[_0x1387f7(0x129)](_0x1e6782[_0x1387f7(0xaf)](_0x5fbe0b,0x0),_0x511599),_0x5fbe0b;}[_0x65f55(0x139)](){const _0x5e9ecf=_0x65f55;this[_0x5e9ecf(0x10e)][_0x5e9ecf(0xbb)](_0xe0cfe3=>{const _0x4b68e2=_0x5e9ecf;_0x4b68e2(0x131)!==_0xe0cfe3[_0x4b68e2(0x12f)][_0x4b68e2(0x110)]&&this[_0x4b68e2(0x160)][_0x4b68e2(0xe6)][_0x4b68e2(0xf6)](_0xe0cfe3);});}[_0x65f55(0x128)](_0x290e49){const _0x5d7598=_0x65f55;if(!this[_0x5d7598(0x13f)][_0x5d7598(0xae)](_0x290e49))throw new _0x19e5d5(_0x5d7598(0xe2),this,{'availablePreviewModes':this[_0x5d7598(0x13f)],'previewMode':_0x290e49});}[_0x65f55(0x14e)](){const _0x4805f7=_0x65f55;for(const _0x218887 of this[_0x4805f7(0x160)][_0x4805f7(0x10f)][_0x4805f7(0xd2)][_0x4805f7(0x115)][_0x4805f7(0xc0)]({'includeChangesInGraveyard':!0x0})){if(_0x4805f7(0x129)!==_0x218887[_0x4805f7(0x114)]||_0x4805f7(0xf5)===_0x218887[_0x4805f7(0x12c)])continue;if(_0x4805f7(0x15f)===_0x218887[_0x4805f7(0x12c)]){this[_0x4805f7(0x10e)][_0x4805f7(0xfd)](_0x218887[_0x4805f7(0x120)][_0x4805f7(0x166)]);continue;}const _0x5d3fcb=this[_0x4805f7(0x160)][_0x4805f7(0x10f)][_0x4805f7(0xdf)](_0x218887[_0x4805f7(0x120)][_0x4805f7(0x166)]);for(const _0xec54ed of _0x5d3fcb[_0x4805f7(0x153)]())_0xec54ed['is'](_0x4805f7(0xf4),_0x4805f7(0x15f))&&this[_0x4805f7(0x10e)][_0x4805f7(0xfd)](_0xec54ed);}}[_0x65f55(0xde)](){const _0x2c915a=_0x65f55,_0x579bc6=this[_0x2c915a(0x160)];_0x579bc6[_0x2c915a(0x10f)][_0x2c915a(0xd2)][_0x2c915a(0x147)](_0x181d1d=>{const _0x24c6c4=_0x2c915a;if(!_0x181d1d[_0x24c6c4(0x146)][_0x24c6c4(0xd4)])return!0x1;const _0x352fae=[],_0x286773=new Set(),_0x4d1ba4=this[_0x24c6c4(0xe7)];let _0x23cdd1=!0x1;for(const _0x313844 of _0x579bc6[_0x24c6c4(0x10f)][_0x24c6c4(0xd2)][_0x24c6c4(0x115)][_0x24c6c4(0xc0)]())if(_0x24c6c4(0x129)===_0x313844[_0x24c6c4(0x114)]||_0x24c6c4(0x142)===_0x313844[_0x24c6c4(0x114)]){let _0x31f80a=_0x24c6c4(0xf5)==_0x313844[_0x24c6c4(0x12c)]?_0x313844[_0x24c6c4(0x120)][_0x24c6c4(0x138)]:_0x313844[_0x24c6c4(0x120)][_0x24c6c4(0x166)];if(!_0x31f80a)continue;_0x31f80a['is'](_0x24c6c4(0xf5))&&(_0x31f80a=_0x31f80a[_0x24c6c4(0x138)]),_0x12d6ff(_0x31f80a);}for(const _0x2e58b5 of _0x352fae[_0x24c6c4(0xb7)]()){const {match:_0x895bec,item:_0x290944}=_0x2e58b5,_0x30b8fd=_0x181d1d[_0x24c6c4(0xaf)](_0x290944,_0x895bec[_0x24c6c4(0xe5)]),_0x5a6fe2=_0x30b8fd[_0x24c6c4(0x149)](_0x895bec[0x0][_0x24c6c4(0xe4)]),_0x53b4bb=_0x181d1d[_0x24c6c4(0xb4)](_0x30b8fd,_0x5a6fe2),_0x4f7b8e=_0x895bec[0x0],_0x239460=_0x4f7b8e[_0x24c6c4(0xbc)](this[_0x24c6c4(0x130)][_0x24c6c4(0xe4)],_0x4f7b8e[_0x24c6c4(0xe4)]-this[_0x24c6c4(0x164)][_0x24c6c4(0xe4)]),_0x4cc145=_0x7c57f8(_0x53b4bb);_0x4cc145[_0x24c6c4(0xc9)]('id',_0x239460);const _0x529421=_0x181d1d[_0x24c6c4(0x121)](_0x24c6c4(0x15f),_0x4cc145);_0x579bc6[_0x24c6c4(0x10f)][_0x24c6c4(0xfa)][_0x24c6c4(0xb8)](_0x53b4bb[_0x24c6c4(0x140)],_0x24c6c4(0x15f))?_0x579bc6[_0x24c6c4(0x10f)][_0x24c6c4(0xe8)](_0x529421,_0x53b4bb):_0x181d1d[_0x24c6c4(0x142)](_0x53b4bb),_0x23cdd1=!0x0;}return _0x23cdd1;function _0x12d6ff(_0x2ee3bb){const _0x48d0e1=_0x24c6c4;let _0x4fec43='',_0x2cf348=0x0;if(!_0x286773[_0x48d0e1(0x143)](_0x2ee3bb))for(const _0x20da5a of _0x2ee3bb[_0x48d0e1(0xf7)]()){const _0x17b5e6=_0x20da5a[_0x48d0e1(0x159)];if(_0x20da5a['is'](_0x48d0e1(0xf5))&&(''===_0x4fec43&&_0x20da5a[_0x48d0e1(0x165)]&&(_0x2cf348=_0x20da5a[_0x48d0e1(0x165)]),_0x4fec43+=_0x20da5a[_0x48d0e1(0x163)]),!_0x17b5e6||_0x17b5e6['is'](_0x48d0e1(0xf4))){for(const _0x1c4585 of _0x4fec43[_0x48d0e1(0xb3)](_0x4d1ba4))_0x1c4585[_0x48d0e1(0xe5)]=_0x1c4585[_0x48d0e1(0xe5)]+_0x2cf348,_0x352fae[_0x48d0e1(0xf9)]({'match':_0x1c4585,'item':_0x2ee3bb});_0x286773[_0x48d0e1(0xfd)](_0x2ee3bb),_0x4fec43='';}_0x20da5a['is'](_0x48d0e1(0xf4))&&_0x12d6ff(_0x20da5a);}}function _0x7c57f8(_0x30e554){const _0x1ac26c=_0x24c6c4,_0x49cab5=_0x30e554[_0x1ac26c(0x153)](),_0x29471d=_0x49cab5[_0x1ac26c(0x167)]()[_0x1ac26c(0x125)],_0x21d15c=new Map(_0x29471d[_0x1ac26c(0x152)]());for(const _0x33240d of _0x49cab5)for(const [_0x1778e9,_0x12fd96]of _0x21d15c)_0x33240d[_0x1ac26c(0x155)](_0x1778e9)!==_0x12fd96&&_0x21d15c[_0x1ac26c(0x12e)](_0x1778e9);return _0x21d15c;}});}[_0x65f55(0xcc)](_0x2606e0){return{'id':_0x2606e0};}}
|