@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.6 → 45.1.0-alpha.7
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.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x117fa5,Command as _0x12d838}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x217724,IconGooglePhotos as _0x26d391,IconGoogleDrive as _0x13fee4,IconFacebook as _0x46d64c,IconDropbox as _0x1d0f4d,IconUploadcareLink as _0x427e7f,IconUploadcareImageUpload as _0x106cab,IconError as et,IconUploadcareImageEdit as _0x55399e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21406a,MenuBarMenuListItemButtonView as _0x52aa5d,View as _0x24f1ad,FocusCycler as _0x863731,Dialog as _0x206ecb,DialogViewPosition as _0x307bf2,SpinnerView as _0x3a23a4,IconView as at,Notification as _0x3b7af7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x59114b,DomEmitterMixin as _0x9a43ab,global as _0xe595b2,getAncestors as _0x2e216b,ObservableMixin as _0x1e4fd3,createElement as _0x4dcd38,uid as _0x3d17f6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x22380d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x398bf4,info as _0x152ced}from'@uploadcare/upload-client';import*as _0x44a155 from'@uploadcare/file-uploader';var o=function(_0x71eac3){return _0x71eac3['Local']='local',_0x71eac3['URL']='url',_0x71eac3['Dropbox']='dropbox',_0x71eac3['GDrive']='gdrive',_0x71eac3['Facebook']='facebook',_0x71eac3['GPhotos']='gphotos',_0x71eac3['OneDrive']='onedrive',_0x71eac3;}({});function _(_0x3ec759,_0x21500f,_0x64a327){const t=_0x3ec759['t'],_0x25d93d=_0x3ec759['t'];switch(_0x21500f){case o['Local']:return{'text':_0x25d93d('Insert'===_0x64a327?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x25d93d('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x64a327?_0x25d93d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x25d93d('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x64a327?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21500f;}}class e extends _0x117fa5{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4729b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x248450;for(const _0x4a9df0 in _0x4729b2){const _0x32dcfa=_0x4a9df0,_0x20719d=_0x4729b2[_0x32dcfa];if('uploadcareLicenseKeyValid'==_0x20719d||'uploadcareLicenseKeyInvalid'==_0x20719d||'uploadcareLicenseKeyExpired'==_0x20719d||'uploadcareLicenseKeyDomainLimit'==_0x20719d||'uploadcareLicenseKeyNotAllowed'==_0x20719d||'uploadcareLicenseKeyEvaluationLimit'==_0x20719d||'uploadcareLicenseKeyTrialLimit'==_0x20719d||'uploadcareLicenseKeyUsageLimit'==_0x20719d){delete _0x4729b2[_0x32dcfa],_0x248450=_0x20719d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x248450&&_0x4729b2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x248450&&_0x4729b2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x248450&&_0x4729b2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x248450&&_0x4729b2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x248450&&_0x4729b2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x248450&&_0x4729b2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x248450&&_0x4729b2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x49c443}=this,_0x47c618=_0x49c443['commands']['get']('uploadcare');if(!_0x47c618)return;const _0x55dab1=this['_normalizeConfigSourceList'](_0x49c443['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x28b4b1,_0x2e53ef)=>{const _0x50b116=this['_getIntegrationKey'](_0x2e53ef['type']);return _0x28b4b1[_0x50b116]||(_0x28b4b1[_0x50b116]=[]),_0x28b4b1[_0x50b116]['push'](_0x2e53ef),_0x28b4b1;},{});_0x49c443['plugins']['has']('ImageInsertUI')&&_0x49c443['commands']['get']('uploadcare')&&Object['entries'](_0x55dab1)['forEach'](([_0x1c0aa8,_0x18c2e8])=>{_0x49c443['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1c0aa8,'observable':()=>_0x47c618,'buttonViewCreator':()=>this['_createToolbarButton'](_0x18c2e8),'formViewCreator':()=>this['_createDropdownButtons'](_0x18c2e8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x18c2e8),'override':'assetManager'!==_0x1c0aa8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4fd13d){const {locale:_0x2c90a5}=this['editor'];return _0x4fd13d['map'](_0x1236fd=>{const _0xe3c3ad=_(_0x2c90a5,_0x1236fd,'Insert');switch(_0x1236fd){case o['Local']:return{'icon':_0x106cab,'type':o['Local'],..._0xe3c3ad};case o['URL']:return{'icon':_0x427e7f,'type':o['URL'],..._0xe3c3ad};case o['Dropbox']:return{'icon':_0x1d0f4d,'type':o['Dropbox'],..._0xe3c3ad};case o['Facebook']:return{'icon':_0x46d64c,'type':o['Facebook'],..._0xe3c3ad};case o['GDrive']:return{'icon':_0x13fee4,'type':o['GDrive'],..._0xe3c3ad};case o['GPhotos']:return{'icon':_0x26d391,'type':o['GPhotos'],..._0xe3c3ad};case o['OneDrive']:return{'icon':_0x217724,'type':o['OneDrive'],..._0xe3c3ad};}});}['_getIntegrationKey'](_0x4b9c6f){switch(_0x4b9c6f){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4bcb2c,_0x310c68){const _0x1b2277=this['editor'],_0x216038=new _0x4bcb2c(_0x1b2277['locale']),_0x5e8035=_0x1b2277['commands']['get']('uploadcare');return _0x216038['bind']('isEnabled')['to'](_0x5e8035),_0x216038['on']('execute',()=>{_0x5e8035['execute'](_0x310c68);}),_0x216038;}['_createToolbarButton'](_0x308fa0){const {locale:_0x1f55ff}=this['editor'],_0x44cbf4=this['editor']['plugins']['get']('ImageInsertUI'),_0x4d29eb=_0x308fa0[0x0],_0x28e09f=this['_createButton'](_0x21406a,_0x4d29eb['type']);return _0x28e09f['icon']=_0x4d29eb['icon'],_0x28e09f['bind']('label')['to'](_0x44cbf4,'isImageSelected',_0x166c7d=>_(_0x1f55ff,_0x4d29eb['type'],_0x166c7d?'Replace':'Insert')['text']),_0x28e09f['tooltip']=!0x0,_0x28e09f;}['_createDropdownButtons'](_0x152cbf){const {locale:_0x2af7d9}=this['editor'],_0x317cf1=this['editor']['plugins']['get']('ImageInsertUI');return _0x152cbf['map'](_0x595126=>{const _0x169531=this['_createButton'](_0x21406a,_0x595126['type']);return _0x169531['withText']=!0x0,_0x169531['icon']=_0x595126['icon'],_0x169531['bind']('label')['to'](_0x317cf1,'isImageSelected',_0x4a6987=>_(_0x2af7d9,_0x595126['type'],_0x4a6987?'Replace':'Insert')['text']),_0x169531;});}['_createMenuBarButtons'](_0x5e9c5a){return _0x5e9c5a['map'](_0x228882=>{const _0x43493f=this['_createButton'](_0x52aa5d,_0x228882['type']);return _0x43493f['icon']=_0x228882['icon'],_0x43493f['label']=_0x228882['shortText'],_0x43493f;});}}class q extends _0x24f1ad{['focusTracker'];['focusCycler'];constructor(_0x304698){super(_0x304698),this['focusTracker']=new _0x59114b(),this['focusCycler']=new _0x863731({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x117eeb){super(_0x117eeb),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x551648,_0x5260fa){const _0x2d1700=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x222ec8=>_0x222ec8<=_0x5260fa)['map'](_0x125e86=>_0x551648['replace'](/\/$/,'')+'/-/resize/'+_0x125e86+'x/\x20'+_0x125e86+'w');return{'imageFallbackUrl':_0x551648,'imageSources':[{'srcset':_0x2d1700['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5260fa+'px)\x20100vw,\x20'+_0x5260fa+'px','type':'image/webp'}]};}function A(_0x4b02e5,_0x33bb3e,_0x52e136){const _0x221ff3=_0x4b02e5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x221ff3?parseInt(_0x221ff3[0x1],0xa):_0x33bb3e,'height':_0x221ff3?parseInt(_0x221ff3[0x2],0xa):_0x52e136};}function m(_0xc5e338,_0x43a2d4){const _0x33edaa=Object['create'](_0x9a43ab),_0x4bfbb5=_0xc5e338['plugins']['get']('ImageUtils'),_0x160ceb=_0xc5e338['editing']['mapper']['toViewElement'](_0x43a2d4),_0x594caf=_0x4bfbb5['findViewImgElement'](_0x160ceb),_0x28b7fa=_0xc5e338['editing']['view']['domConverter']['viewToDom'](_0x594caf),_0xd5073a=_0x43a2d4['getAttribute']('width'),_0x1dcbf0=_0x43a2d4['getAttribute']('height'),_0x41ef2f='image-processing';_0xc5e338['editing']['view']['change'](_0x467b9b=>{_0x467b9b['addClass'](_0x41ef2f,_0x160ceb),_0x467b9b['setStyle']('aspect-ratio',_0xd5073a+'/'+_0x1dcbf0,_0x594caf);}),_0x33edaa['listenTo'](_0x28b7fa,'load',()=>{_0x33edaa['stopListening'](_0x28b7fa,'load'),_0xc5e338['editing']['view']['change'](_0x576958=>{_0x576958['removeClass'](_0x41ef2f,_0x160ceb),_0x576958['removeStyle']('aspect-ratio',_0x594caf);});});}function V(_0x4bf351){if(Array['isArray'](_0x4bf351)){const _0x20824f=_0x4bf351['map'](V);return _0x1e5f82=>_0x20824f['some'](_0x3ded95=>_0x3ded95(_0x1e5f82));}if('origin'==_0x4bf351){const _0x12c6e4=_0xe595b2['window']['location']['origin'];return _0x263201=>new URL(_0x263201,_0xe595b2['document']['baseURI'])['origin']==_0x12c6e4;}return'function'==typeof _0x4bf351?_0x4bf351:_0x4bf351 instanceof RegExp?_0x55f50e=>!(!_0x55f50e['match'](_0x4bf351)&&!_0x55f50e['replace'](/^https?:\/\//,'')['match'](_0x4bf351)):()=>!0x1;}function F(_0x5aceba,_0x21ff71){return _0x2e216b(_0x5aceba['target'])['includes'](_0x21ff71);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1e4fd3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x381c75,_0x4bc0b7,_0x4658c2){super(),this['_editor']=_0x381c75,this['_editing']=_0x4bc0b7,this['_dialog']=_0x381c75['plugins']['get'](_0x206ecb),this['_api']=_0x4bc0b7['ctxElement']['getAPI'](),this['_type']=_0x4658c2,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x495d39,model:_0x5703c4}=this['_editor'],_0x594d1c=_0x5703c4['document']['selection']['getSelectedElement'](),_0x490470=_0x594d1c&&(_0x594d1c['is']('element','imageBlock')||_0x594d1c['is']('element','imageInline'));this['_formView']=new S(_0x495d39),this['_dialog']['show']({'id':'uploadCare','icon':_0x106cab,'title':_(_0x495d39,this['_type'],_0x490470?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x307bf2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dd6a8=>!F(_0x1dd6a8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4bc7ee}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xd8af2e=>{const _0x4e2226=_0x4bc7ee['length'];for(const _0x3b7f79 of _0x4bc7ee){const _0x307400=_0x3b7f79===_0x4bc7ee[_0x4e2226-0x1],{cdnUrl:_0x17ff72,fileInfo:_0x5f55e1}=_0x3b7f79;if(!_0x17ff72||!_0x5f55e1)continue;const {width:_0x3574d3,height:_0x345341}=_0x5f55e1['imageInfo'],_0x49b970=A(_0x17ff72,_0x3574d3,_0x345341),_0x18bd10=E(_0x17ff72,_0x49b970['width']),_0x4176f5={'id':_0x5f55e1['uuid'],'type':'image','attributes':{'imageDimension':_0x49b970,..._0x18bd10}};this['_insertAsset'](_0x4176f5,_0x307400,_0xd8af2e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4a87fe=>{'idle'===_0x4a87fe['detail']['status']&&!_0x4a87fe['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4fdc6c,_0x58a777,_0x31420c){const _0x4ce178=this['_editor']['model']['document']['selection'],_0x164dde=_0x4ce178['getSelectedElement'](),_0x3aa5d3=!(!_0x164dde||!_0x164dde['is']('element','imageInline'));_0x31420c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4fdc6c,_0x3aa5d3),_0x58a777||_0x31420c['setSelection'](_0x4ce178['getLastPosition']());}['_insertImage'](_0x5cf69d,_0x3414e3){const _0x11e64a=this['_editor'],{imageDimension:_0x556a7b,imageFallbackUrl:_0x6c6785,imageSources:_0x174436}=_0x5cf69d['attributes'];_0x11e64a['execute']('insertImage',{'imageType':_0x3414e3?'imageInline':null,'source':{'uploadcareImageId':_0x5cf69d['id'],'src':_0x6c6785,'sources':_0x174436,..._0x556a7b}});}}class n extends _0x12d838{['_editing'];['_controller']=null;static get['requires'](){return[_0x206ecb,i];}constructor(_0x70c129){super(_0x70c129),this['_editing']=_0x70c129['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x20eb9d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x20eb9d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4b8dc4,publicKey:_0x57ccdf,signal:_0x5503e0,onProgress:_0x108595}){return _0x398bf4(_0x4b8dc4,{'publicKey':_0x57ccdf,'store':'auto','signal':_0x5503e0,'onProgress':_0x108595});}static['getInfo'](_0x58a758,_0xa41bac){return _0x152ced(_0x58a758,_0xa41bac);}}class p extends _0x117fa5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x22380d,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x55e0e3=this['editor'];if(!!!_0x55e0e3['config']['get']('uploadcare'))return;_0x55e0e3['plugins']['get'](_0x22380d)['createUploadAdapter']=_0x3cbf7b=>new x(_0x3cbf7b,_0x55e0e3),_0x55e0e3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x33501e,{imageElement:_0x444b8b,data:_0x263af6})=>{_0x55e0e3['model']['change'](_0x590c07=>{_0x590c07['setAttribute']('uploadcareImageId',_0x263af6['uploadcareImageId'],_0x444b8b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2b8d22,_0x5e26d7){this['loader']=_0x2b8d22,this['editor']=_0x5e26d7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1ddaeb=this['editor']['config']['get']('uploadcare.pubkey'),_0xb428a8=await this['loader']['file'];return C['upload']({'file':_0xb428a8,'publicKey':_0x1ddaeb,'signal':this['controller']['signal'],'onProgress':_0x1ca407=>{_0x1ca407&&_0x1ca407['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ca407['value']);}})['then'](async _0xc38b82=>{const {imageFallbackUrl:_0x1e6c7d,imageSources:_0x5a7e05}=E(_0xc38b82['cdnUrl'],_0xc38b82['imageInfo']['width']);return{'uploadcareImageId':_0xc38b82['uuid'],'default':_0x1e6c7d,'sources':_0x5a7e05};})['catch'](()=>{const _0x44730a=t('Cannot\x20upload\x20file:')+('\x20'+_0xb428a8['name']+'.');return Promise['reject'](_0x44730a);});}['abort'](){this['controller']['abort']();}}class i extends _0x117fa5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x206ecb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xaff91=this['editor'];_0xaff91['commands']['add']('uploadcare',new n(_0xaff91));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x468948=_0xe595b2['document']['querySelector']('input[uploadcare-file-input]');_0x468948&&_0x468948['remove']();}),async function(_0x1daa09){const _0x2c5383=_0x3d284d([0x76,0x67,0x38,0x78,0x49,0x53,0x31,0x66,0x55,0x4a,0x46,0x30,0x33,0x59,0x44,0x7a,0x5a,0x50,0x62,0x6f,0x56,0x54,0x39,0x51,0x32,0x41,0x64,0x70,0x79,0x72,0x43,0x74,0x58,0x57,0x73,0x77,0x63,0x65,0x4b,0x4c,0x42,0x61,0x6a,0x45,0x6d,0x71,0x4d,0x48,0x6b,0x37,0x35,0x69,0x52,0x6e,0x68,0x36,0x34,0x75,0x6c,0x4e,0x47,0x4f]),_0x376c4e=0x63ed6952,_0x139850=0x63ea0eea^_0x376c4e,_0x44a8cb=window[_0x3d284d([0x44,0x61,0x74,0x65])][_0x3d284d([0x6e,0x6f,0x77])](),_0x185372=_0x1daa09[_0x3d284d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd7812a=new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25c39b=>{_0x185372[_0x3d284d([0x6f,0x6e,0x63,0x65])](_0x3d284d([0x72,0x65,0x61,0x64,0x79]),_0x25c39b);}),_0x47a2b1={[_0x3d284d([0x6b,0x74,0x79])]:_0x3d284d([0x45,0x43]),[_0x3d284d([0x75,0x73,0x65])]:_0x3d284d([0x73,0x69,0x67]),[_0x3d284d([0x63,0x72,0x76])]:_0x3d284d([0x50,0x2d,0x32,0x35,0x36]),[_0x3d284d([0x78])]:_0x3d284d([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]),[_0x3d284d([0x79])]:_0x3d284d([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]),[_0x3d284d([0x61,0x6c,0x67])]:_0x3d284d([0x45,0x53,0x32,0x35,0x36])},_0x590234=_0x185372[_0x3d284d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d284d([0x67,0x65,0x74])](_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4dcb07(){let _0x3fa655,_0x57c143=null,_0x25cb96=null;try{if(_0x590234==_0x3d284d([0x47,0x50,0x4c]))return _0x3d284d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3fa655=_0x5c1e7e(),!_0x3fa655)return _0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3fa655[_0x3d284d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25cb96=_0x272ee9(_0x3fa655[_0x3d284d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3fa655[_0x3d284d([0x6a,0x74,0x69])])),await _0xe4ccf9()?_0x1161cf()?_0x31b77e()?_0x3d284d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8625c1()?(_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d284d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57c143=_0xec1b62(_0x3d284d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d284d([0x74,0x72,0x69,0x61,0x6c])&&(_0x57c143=_0xec1b62(_0x3d284d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a5cc8()):_0x3d284d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d284d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x144c22){return _0x3d284d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31b77e(){const _0x39ccc1=[_0x3d284d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d284d([0x74,0x72,0x69,0x61,0x6c])][_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44a8cb/0x3e8:0xe10*_0x139850;return _0x3fa655[_0x3d284d([0x65,0x78,0x70])]<_0x39ccc1;}function _0x1161cf(){const _0x54b826=_0x3fa655[_0x3d284d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x54b826&&(!!_0x54b826[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x2a]))||!!_0x54b826[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x55,0x50,0x4c,0x43])));}function _0x8625c1(){const _0x1fd368=_0x3fa655[_0x3d284d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fd368||0x0==_0x1fd368[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17c15b}=new URL(window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1fd368[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17c15b))return!0x0;const _0x4652c1=_0x17c15b[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e]));return _0x1fd368[_0x3d284d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15945d=>_0x15945d[_0x3d284d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d284d([0x2a])))[_0x3d284d([0x6d,0x61,0x70])](_0x360c1c=>_0x360c1c[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e])))[_0x3d284d([0x73,0x6f,0x6d,0x65])](_0x2c724a=>_0x4652c1[_0x3d284d([0x65,0x76,0x65,0x72,0x79])]((_0x27d3aa,_0x51073e)=>_0x2c724a[_0x51073e]===_0x27d3aa||_0x2c724a[_0x51073e]===_0x3d284d([0x2a])));}function _0x4a5cc8(){return _0x57c143&&_0x25cb96?new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146e19,_0x4fb3ee)=>{_0x57c143[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x146e19,_0x4fb3ee),_0x25cb96[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x4a8f7f=>{_0x4a8f7f!=_0x3d284d([0x56,0x61,0x6c,0x69,0x64])&&_0x146e19(_0x4a8f7f);},_0x4fb3ee);}):_0x57c143||_0x25cb96||_0x3d284d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x272ee9(_0x1e0af3,_0x5a8ab7){return new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc4edd3=>{if(_0x136dce())return _0xc4edd3(_0x3d284d([0x56,0x61,0x6c,0x69,0x64]));_0x3932b8(),_0x185372[_0x3d284d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x160368=!0x1;const _0x3c89d4=_0x3d17f6();function _0x31648c(_0x5acbc3){return!!_0x5acbc3&&(typeof _0x5acbc3===_0x3d284d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5acbc3===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5acbc3[_0x3d284d([0x74,0x68,0x65,0x6e])]===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5acbc3[_0x3d284d([0x63,0x61,0x74,0x63,0x68])]===_0x3d284d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c7d8d(_0x208158){_0x1d136d(_0x208158)[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x4094e8=>{if(!_0x4094e8||_0x4094e8[_0x3d284d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d284d([0x6f,0x6b]))return _0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a9c29(_0x3208be(_0x3c89d4+_0x5a8ab7))!=_0x4094e8[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d284d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d284d([0x74,0x68,0x65,0x6e])](_0x224b71=>(_0x25de8f(),_0x224b71),()=>{const _0x557ae2=_0x486ceb();return null==_0x557ae2?(_0x25de8f(),_0x3d284d([0x56,0x61,0x6c,0x69,0x64])):_0x3d284d(_0x44a8cb-_0x557ae2>(0x47e1ed52^_0x376c4e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d284d([0x74,0x68,0x65,0x6e])](_0xc4edd3)[_0x3d284d([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6ac092=0x63db87d2^_0x376c4e;function _0x25de8f(){const _0x2d365b=_0x3d284d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a9c29(_0x3208be(_0x1e0af3)),_0x523509=_0x2f992b(_0x3a9c29(window[_0x3d284d([0x4d,0x61,0x74,0x68])][_0x3d284d([0x63,0x65,0x69,0x6c])](_0x44a8cb/_0x6ac092)));window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d284d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d365b,_0x523509);}function _0x486ceb(){const _0x3967d2=_0x3d284d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a9c29(_0x3208be(_0x1e0af3)),_0x3808bf=window[_0x3d284d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d284d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3967d2);return _0x3808bf?window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f992b(_0x3808bf),0x10)*_0x6ac092:null;}function _0x1d136d(_0x1b95e6){return new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc75395,_0x24b9b1)=>{_0x1b95e6[_0x3d284d([0x74,0x68,0x65,0x6e])](_0xc75395,_0x24b9b1),window[_0x3d284d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24b9b1,0x63ecbd92^_0x376c4e);});}}_0x185372[_0x3d284d([0x6f,0x6e])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b407e,_0xd6c7dd)=>{if(_0xd6c7dd[0x0]!=_0x1e0af3)return _0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd6c7dd[0x1]={..._0xd6c7dd[0x1],[_0x3d284d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c89d4};},{[_0x3d284d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d284d([0x68,0x69,0x67,0x68])}),_0x185372[_0x3d284d([0x6f,0x6e])](_0x3d284d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ad1c5=>{_0x31648c(_0x2ad1c5[_0x3d284d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x160368=!0x0,_0x1c7d8d(_0x2ad1c5[_0x3d284d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d284d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d284d([0x6c,0x6f,0x77])}),_0xd7812a[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>{_0x160368||_0xc4edd3(_0x3d284d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x136dce(){return _0x185372[_0x3d284d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d284d([0x76,0x69,0x65,0x77])][_0x3d284d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d284d([0x61,0x75,0x74,0x6f]);}function _0x3932b8(){_0x185372[_0x3d284d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d284d([0x76,0x69,0x65,0x77])][_0x3d284d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d284d([0x61,0x75,0x74,0x6f]);}}function _0xec1b62(_0x218336){const _0x56b55a=[new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x71fefa=>setTimeout(_0x71fefa,0x63e4579e^_0x376c4e)),_0xd7812a[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x123c9a=>{let _0x31bd6b=0x0;_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x6f,0x6e])](_0x3d284d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x569dad,_0x2e3b4c)=>{_0x2e3b4c[0x0][_0x3d284d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31bd6b++,_0x31bd6b==(0x63ed68aa^_0x376c4e)&&(_0x123c9a(),_0x569dad[_0x3d284d([0x6f,0x66,0x66])]());});}))];return window[_0x3d284d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d284d([0x72,0x61,0x63,0x65])](_0x56b55a)[_0x3d284d([0x74,0x68,0x65,0x6e])](()=>_0x218336);}async function _0x154ee3(){await _0xd7812a,_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50d4fa,_0x185372[_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d284d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50d4fa,_0x185372[_0x3d284d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d284d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54dfff(_0x5429f6){const _0x1bd2f3=_0x4b7ed5();_0x185372[_0x1bd2f3]=_0x3d284d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5429f6,_0x5429f6!=_0x3d284d([0x56,0x61,0x6c,0x69,0x64])&&_0x154ee3();}function _0x4b7ed5(){const _0x271091=window[_0x3d284d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d284d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d284d([0x6e,0x6f,0x77])]())[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d284d([0x2e]),'');let _0x353bf3=_0x3d284d([0x76]);for(let _0x5419dd=0x0;_0x5419dd<_0x271091[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5419dd+=0x2){let _0x45ff61=window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271091[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5419dd,_0x5419dd+0x2));_0x45ff61>=_0x2c5383[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45ff61-=_0x2c5383[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x353bf3+=_0x2c5383[_0x45ff61];}return _0x353bf3;}function _0x5c1e7e(){const _0x1f396e=_0x590234[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e]));if(0x3!=_0x1f396e[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1979ea(_0x1f396e[0x1]);function _0x1979ea(_0x581736){const _0x54417f=_0x48338a(_0x581736);return _0x54417f&&_0x12799a()?_0x54417f:null;function _0x12799a(){const _0x373c61=_0x54417f[_0x3d284d([0x6a,0x74,0x69])],_0x1e3b32=window[_0x3d284d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x373c61[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x373c61[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a62bb={..._0x54417f,[_0x3d284d([0x6a,0x74,0x69])]:_0x373c61[_0x3d284d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x373c61[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a62bb[_0x3d284d([0x76,0x63])],_0x3208be(_0x1a62bb)==_0x1e3b32;}}}async function _0xe4ccf9(){let _0x2f6345=!0x0;try{const _0x4fbc8=_0x590234[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])](_0x3d284d([0x2e])),[_0x2ced20,_0x293947,_0x21b431]=_0x4fbc8;return _0x28af2b(_0x2ced20),await _0x20b237(_0x2ced20,_0x293947,_0x21b431),_0x2f6345;}catch(_0x4f0168){return!0x1;}function _0x28af2b(_0x3a592e){const _0x3fe577=_0x48338a(_0x3a592e);_0x3fe577&&_0x3fe577[_0x3d284d([0x61,0x6c,0x67])]==_0x3d284d([0x45,0x53,0x32,0x35,0x36])||(_0x2f6345=!0x1);}async function _0x20b237(_0x1e01a9,_0x2a882a,_0x15314e){const _0x25f45a=window[_0x3d284d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d284d([0x66,0x72,0x6f,0x6d])](_0x225aeb(_0x15314e),_0x241f09=>_0x241f09[_0x3d284d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10f21a=new window[(_0x3d284d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d284d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e01a9+_0x3d284d([0x2e])+_0x2a882a),_0x2f4182=window[_0x3d284d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d284d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f4182)return;const _0x3dae2e=await _0x2f4182[_0x3d284d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d284d([0x6a,0x77,0x6b]),_0x47a2b1,{[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x45,0x43,0x44,0x53,0x41]),[_0x3d284d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d284d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f4182[_0x3d284d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x45,0x43,0x44,0x53,0x41]),[_0x3d284d([0x68,0x61,0x73,0x68])]:{[_0x3d284d([0x6e,0x61,0x6d,0x65])]:_0x3d284d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3dae2e,_0x25f45a,_0x10f21a)||(_0x2f6345=!0x1);}}function _0x48338a(_0x32740c){return _0x32740c[_0x3d284d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d284d([0x65,0x79]))?JSON[_0x3d284d([0x70,0x61,0x72,0x73,0x65])](_0x225aeb(_0x32740c)):null;}function _0x225aeb(_0x1c1990){return window[_0x3d284d([0x61,0x74,0x6f,0x62])](_0x1c1990[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d284d([0x2b]))[_0x3d284d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d284d([0x2f])));}function _0x3208be(_0x494d74){let _0x2f7da1=0x1505;function _0x2e00bb(_0x23b98d){for(let _0x28e840=0x0;_0x28e840<_0x23b98d[_0x3d284d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28e840++){const _0x6e81aa=_0x23b98d[_0x3d284d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28e840);_0x2f7da1=(_0x2f7da1<<0x5)+_0x2f7da1+_0x6e81aa,_0x2f7da1&=_0x2f7da1;}}function _0x43e304(_0x391acb){Array[_0x3d284d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x391acb)?_0x391acb[_0x3d284d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43e304):_0x391acb&&typeof _0x391acb==_0x3d284d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d284d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x391acb)[_0x3d284d([0x73,0x6f,0x72,0x74])]()[_0x3d284d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x37bfde,_0x46450d])=>{_0x2e00bb(_0x37bfde),_0x43e304(_0x46450d);}):_0x2e00bb(window[_0x3d284d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x391acb));}return _0x43e304(_0x494d74),_0x2f7da1>>>0x0;}function _0x3a9c29(_0x9e7fa9){return _0x9e7fa9[_0x3d284d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d284d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d284d([0x30]));}function _0x2f992b(_0x275084){return _0x275084[_0x3d284d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d284d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d284d([0x6a,0x6f,0x69,0x6e])]('');}function _0x50d4fa(){}function _0x3d284d(_0x1d8cb5){return _0x1d8cb5['map'](_0x7b2189=>String['fromCharCode'](_0x7b2189))['join']('');}_0x54dfff(await _0x4dcb07());}(this);}['_initSchema'](){const _0x47ddb2=this['editor']['model']['schema'];_0x47ddb2['isRegistered']('imageBlock')&&_0x47ddb2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47ddb2['isRegistered']('imageInline')&&_0x47ddb2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2d921f=this['editor'];_0x2d921f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2d921f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4a3cd3=>_0x4a3cd3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3aee99=_0x2d921f['commands']['get']('replaceImageSource');_0x3aee99&&this['listenTo'](_0x3aee99,'cleanupImage',(_0x145dd0,[_0x4bfa61,_0x1478d8])=>{_0x4bfa61['removeAttribute']('uploadcareImageId',_0x1478d8);});}['_initConfig'](){const _0x2aa769=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3555d0=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4dcd38(_0xe595b2['document'],'uc-config',{..._0x2aa769,'pubkey':_0x3555d0,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x332c7d=>{if('closeMax'==_0x332c7d)return'#uc-icon-arrow-down';},_0xe595b2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4dcd38(_0xe595b2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xe595b2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x49eecd=this['editor']['commands']['get']('insertImage');_0x49eecd&&this['listenTo'](_0x49eecd,'execute',()=>{const _0xa28c56=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa28c56&&_0xa28c56['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xa28c56);});});const _0x491489=this['editor']['commands']['get']('uploadcareImageReplace');_0x491489&&this['listenTo'](_0x491489,'execute',()=>{const _0x41270e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x41270e&&_0x41270e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x41270e);});});}}class u extends _0x117fa5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4825ed){super(_0x4825ed),_0x4825ed['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x44a155['defineComponents'](_0x44a155);}}class ta extends _0x24f1ad{constructor(_0x3afbc6){super(_0x3afbc6);const t=_0x3afbc6['t'],_0x21d0f3=this['bindTemplate'],_0xd1104e=new _0x3a23a4();_0xd1104e['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':[_0xd1104e,{'text':_0x21d0f3['to']('imageUploadProgress',_0x4998aa=>t('Loading\x20image...')+'\x20('+(_0x4998aa||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x24f1ad{constructor(_0x435e2d){super(_0x435e2d);const t=_0x435e2d['t'];this['set']('errorType',null);const _0x38ad3c=new _0x21406a(_0x435e2d);_0x38ad3c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38ad3c['withText']=!0x0,_0x38ad3c['class']='ck-button-action',_0x38ad3c['on']('execute',()=>{this['fire']('retry');}),_0x38ad3c['bind']('isVisible')['to'](this,'errorType',_0x59677c=>'NotFound'!==_0x59677c);const _0x51344a=new at();_0x51344a['content']=et,_0x51344a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe1e2e8=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':[_0x51344a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe1e2e8['to']('errorType',_0x18484e=>t('NotFound'!==_0x18484e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38ad3c]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x24f1ad{constructor(_0x414ea9,_0x448f21){super(_0x414ea9);const _0x5c5531=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x448f21,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5c5531['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x922ac1,_0x1c204c,_0x44ba93){super(_0x922ac1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x922ac1),this['_errorView']=new rt(_0x922ac1),this['_editingView']=new tt(_0x922ac1,_0x44ba93),this['_focusableView']=new _0x24f1ad(_0x922ac1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1c204c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x2e8481=>{this['_addUploadcareImageEditorListeners'](_0x2e8481);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x7a5740,_0x49902d){const _0x1e2611='uc-cloud-image-editor',_0x236482=_0x7a5740['querySelector'](_0x1e2611);if(_0x236482)return _0x49902d(_0x236482);const _0x448836=new MutationObserver(_0xead2f3=>{const _0x25838c=_0xead2f3['filter'](_0x5b0c61=>_0x5b0c61['target']===_0x7a5740&&_0x5b0c61['addedNodes']['length']>0x0&&_0x5b0c61['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1e2611);_0x25838c['length']&&(_0x448836['disconnect'](),_0x49902d(_0x25838c[0x0]['addedNodes'][0x0]));});_0x448836['observe'](_0x7a5740,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c7a5b){_0x4c7a5b['addEventListener']('apply',_0x3e51ec=>{this['fire']('apply',{'imageSrc':_0x3e51ec['detail']['cdnUrl']});}),_0x4c7a5b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1e4fd3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x368e1b,_0x2f3978,_0x532efb){super(),this['_editor']=_0x368e1b,this['_dialog']=_0x2f3978,this['_imageElement']=_0x532efb,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 _0x4f5b5a=this['_imageElement'],_0x9fc235=_0x4f5b5a['getAttribute']('uploadcareImageId'),_0x5ca961=_0x4f5b5a['getAttribute']('src');if(_0x9fc235)await this['_loadImageInfo'](_0x9fc235,_0x5ca961);else{if(this['_imageCache']['has'](_0x5ca961)){const _0x488036=this['_imageCache']['get'](_0x5ca961);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x488036['url'],this['imageDimension']=_0x488036['dimension'],this['imageId']=_0x488036['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3d43e1}=this['_editor'],t=_0x3d43e1['t'],_0x4c0b1d=new Z(_0x3d43e1,this['imageStatus'],this['_attributes']);_0x4c0b1d['bind']('status')['to'](this,'imageStatus'),_0x4c0b1d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4c0b1d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4c0b1d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4c0b1d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x55399e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4c0b1d,'position':_0x307bf2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4c0b1d['focus']();},'onHide':()=>{_0x4c0b1d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd7b030=>!F(_0xd7b030,_0x4c0b1d['element'])}});}['_loadImageInfo'](_0x2e3041,_0x1217ec){return C['getInfo'](_0x2e3041,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x6bef15=>{const {width:_0x11d4af,height:_0x13789}=_0x6bef15['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1217ec,this['imageDimension']={'width':_0x11d4af,'height':_0x13789},this['imageId']=_0x2e3041;})['catch'](_0x3ff682=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3ff682['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xcc0492,_0x4a6348){return this['_getImageAsFile'](_0xcc0492)['then'](_0x4dd415=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4a6348['signal'],'file':_0x4dd415,'onProgress':_0x356c86=>{_0x356c86&&_0x356c86['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x356c86['value']));}}))['then'](_0x345871=>{const {width:_0x49a22c,height:_0x4e5071}=_0x345871['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x345871['cdnUrl'],this['imageDimension']={'width':_0x49a22c,'height':_0x4e5071},this['imageId']=_0x345871['uuid'],this['imageUploadProgress']=null;const _0x1b1ea5=_0xcc0492['getAttribute']('src');this['_imageCache']['set'](_0x1b1ea5,{'id':_0x345871['uuid'],'url':_0x345871['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x71ce63=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x71ce63['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x28e726,_0x4543b8){_0x28e726['on']('apply',(_0x1ddbc6,_0x372935)=>{this['_replaceImage'](_0x4543b8,_0x372935['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x28e726['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x28e726['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1efa7e,_0x97d1e,_0x43d358){const _0x1707d0=this['_editor'],{width:_0x1b0a68,height:_0x4ae80a}=A(_0x97d1e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1c810a,imageSources:_0x437033}=E(_0x97d1e,_0x1b0a68);_0x1707d0['model']['change'](_0x3a66f7=>{if('$graveyard'===_0x1efa7e['root']['rootName']){_0x1707d0['execute']('insertImage',{'imageType':_0x1efa7e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1efa7e['getAttributes']()),'uploadcareImageId':_0x43d358,'src':_0x1c810a,'sources':_0x437033,'width':_0x1b0a68,'height':_0x4ae80a}});const _0x44a6c0=_0x1efa7e['getChildren']();_0x1efa7e=_0x1707d0['model']['document']['selection']['getSelectedElement']();for(const _0x58af08 of _0x44a6c0)_0x3a66f7['append'](_0x3a66f7['cloneElement'](_0x58af08),_0x1efa7e);}else _0x3a66f7['setSelection'](_0x1efa7e,'on'),_0x1707d0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1efa7e['getAttributes']()),'uploadcareImageId':_0x43d358,'src':_0x1c810a,'sources':_0x437033,'width':_0x1b0a68,'height':_0x4ae80a},_0x1efa7e);_0x3a66f7['setSelection'](_0x1efa7e,'on');});}async['_getImageAsFile'](_0x520e3c){const _0x176c3b=_0xe595b2['window'],_0x1e70f1=_0xe595b2['document']['location']['href'],_0x569ed2=new _0x176c3b['URL'](_0x520e3c['getAttribute']('src'),_0x1e70f1);if('data:'===_0x569ed2['protocol']){const _0x4123b6=_0x569ed2['href']['split'](','),_0x126ba9=_0x4123b6[0x0]['match'](/:(.*?);/)[0x1],_0x2876fa=_0x126ba9['split']('/')[0x1],_0x319909=_0x176c3b['atob'](_0x4123b6[_0x4123b6['length']-0x1]);let _0x47d749=_0x319909['length'];const _0x3498c4=new _0x176c3b['Uint8Array'](_0x47d749);for(;_0x47d749--;)_0x3498c4[_0x47d749]=_0x319909['charCodeAt'](_0x47d749);return new _0x176c3b['File']([_0x3498c4],'image.'+_0x2876fa,{'type':_0x126ba9});}const _0x348696=_0x569ed2['href']['split']('/'),_0x5c8c3a=_0x348696[_0x348696['length']-0x1],_0x418184=_0x5c8c3a['split']('.')[0x1];return _0x176c3b['fetch'](_0x569ed2['href'])['then'](_0x2627b1=>_0x2627b1['clone']()['blob']())['then'](_0x2bea48=>new _0x176c3b['File']([_0x2bea48],_0x5c8c3a,{'type':'image/'+_0x418184}));}}class J extends _0x12d838{['imageEditController'];static get['requires'](){return[_0x206ecb];}['_isEditable'];constructor(_0x52821f){super(_0x52821f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x30bbac){const _0x5bf1c5=V(_0x30bbac);return _0x5274ba=>!(!_0x5274ba||!_0x5274ba['is']('element','imageBlock')&&!_0x5274ba['is']('element','imageInline'))&&(!!_0x5274ba['hasAttribute']('uploadcareImageId')||!!_0x5274ba['hasAttribute']('src')&&_0x5bf1c5(_0x5274ba['getAttribute']('src')));}(_0x52821f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16a201=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16a201);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2d1011=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d1011&&(_0x2d1011['is']('element','imageBlock')||_0x2d1011['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x206ecb),_0x2d1011),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x12d838{['refresh'](){const _0x37f934=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x37f934&&(_0x37f934['is']('element','imageBlock')||_0x37f934['is']('element','imageInline')));}['execute'](_0x48a1ff){const _0x1ecb80=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4d647c=>{_0x4d647c['setAttributes'](_0x48a1ff,_0x1ecb80),_0x4d647c['removeAttribute']('srcset',_0x1ecb80),_0x4d647c['removeAttribute']('sizes',_0x1ecb80);});}}class g extends _0x117fa5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3b7af7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5cd953}=this;_0x5cd953['commands']['add']('uploadcareImageEdit',new J(_0x5cd953)),_0x5cd953['commands']['add']('uploadcareImageReplace',new O(_0x5cd953));}}class j extends _0x117fa5{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x30cd47=this['editor'];_0x30cd47['ui']['componentFactory']['add']('uploadcareImageEdit',_0x31f11b=>{const _0x20b142=_0x30cd47['commands']['get']('uploadcareImageEdit'),_0x4c799d=new _0x21406a(_0x31f11b),t=_0x31f11b['t'];return _0x4c799d['set']({'icon':_0x55399e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4c799d['bind']('isEnabled')['to'](_0x20b142),_0x4c799d['bind']('isOn')['to'](_0x20b142,'isActive'),this['listenTo'](_0x4c799d,'execute',()=>{_0x30cd47['execute']('uploadcareImageEdit'),_0x30cd47['editing']['view']['focus']();}),_0x4c799d;}),this['_initConfig']();}['_initConfig'](){const _0x202622=_0x4dcd38(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x202622),this['listenTo'](this['editor'],'destroy',()=>{_0x202622['remove']();});}}class P extends _0x117fa5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x1e6102,Command as _0x4e2cf2}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x537e23,IconGooglePhotos as _0x876887,IconGoogleDrive as _0x3ef349,IconFacebook as _0x2abbed,IconDropbox as _0x362ac5,IconUploadcareLink as _0x52be62,IconUploadcareImageUpload as _0x2b4db3,IconError as et,IconUploadcareImageEdit as _0x3c92ac}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x577faf,MenuBarMenuListItemButtonView as _0xf17468,View as _0x481c0a,FocusCycler as _0x3cf0d7,Dialog as _0x49d7ac,DialogViewPosition as _0xcf17d6,SpinnerView as _0x72f27d,IconView as at,Notification as _0x589eb1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3f4c6d,DomEmitterMixin as _0x3487e6,global as _0x2e17f5,getAncestors as _0x5dae2b,ObservableMixin as _0x341642,createElement as _0x26342f,uid as _0x246680}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xd01a65}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4485c1,info as _0x299a1d}from'@uploadcare/upload-client';import*as _0x407219 from'@uploadcare/file-uploader';var o=function(_0x526824){return _0x526824['Local']='local',_0x526824['URL']='url',_0x526824['Dropbox']='dropbox',_0x526824['GDrive']='gdrive',_0x526824['Facebook']='facebook',_0x526824['GPhotos']='gphotos',_0x526824['OneDrive']='onedrive',_0x526824;}({});function _(_0x39f135,_0x235b33,_0x272e9f){const t=_0x39f135['t'],_0x88b0ac=_0x39f135['t'];switch(_0x235b33){case o['Local']:return{'text':_0x88b0ac('Insert'===_0x272e9f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x88b0ac('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x272e9f?_0x88b0ac('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x88b0ac('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x272e9f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x272e9f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x272e9f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x272e9f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x272e9f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x235b33;}}class e extends _0x1e6102{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4dd473=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40c462;for(const _0x4adcad in _0x4dd473){const _0x13c367=_0x4adcad,_0x36711c=_0x4dd473[_0x13c367];if('uploadcareLicenseKeyValid'==_0x36711c||'uploadcareLicenseKeyInvalid'==_0x36711c||'uploadcareLicenseKeyExpired'==_0x36711c||'uploadcareLicenseKeyDomainLimit'==_0x36711c||'uploadcareLicenseKeyNotAllowed'==_0x36711c||'uploadcareLicenseKeyEvaluationLimit'==_0x36711c||'uploadcareLicenseKeyTrialLimit'==_0x36711c||'uploadcareLicenseKeyUsageLimit'==_0x36711c){delete _0x4dd473[_0x13c367],_0x40c462=_0x36711c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x40c462&&_0x4dd473['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x40c462&&_0x4dd473['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x40c462&&_0x4dd473['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x40c462&&_0x4dd473['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x40c462&&_0x4dd473['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x40c462&&_0x4dd473['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x40c462&&_0x4dd473['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1d68c3}=this,_0x4aa5ef=_0x1d68c3['commands']['get']('uploadcare');if(!_0x4aa5ef)return;const _0xcb1258=this['_normalizeConfigSourceList'](_0x1d68c3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xd2aef4,_0x346b46)=>{const _0x65aadb=this['_getIntegrationKey'](_0x346b46['type']);return _0xd2aef4[_0x65aadb]||(_0xd2aef4[_0x65aadb]=[]),_0xd2aef4[_0x65aadb]['push'](_0x346b46),_0xd2aef4;},{});_0x1d68c3['plugins']['has']('ImageInsertUI')&&_0x1d68c3['commands']['get']('uploadcare')&&Object['entries'](_0xcb1258)['forEach'](([_0x2225c1,_0x44ee7f])=>{_0x1d68c3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2225c1,'observable':()=>_0x4aa5ef,'buttonViewCreator':()=>this['_createToolbarButton'](_0x44ee7f),'formViewCreator':()=>this['_createDropdownButtons'](_0x44ee7f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x44ee7f),'override':'assetManager'!==_0x2225c1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x584184){const {locale:_0x4aec5f}=this['editor'];return _0x584184['map'](_0x3654d8=>{const _0x41eb67=_(_0x4aec5f,_0x3654d8,'Insert');switch(_0x3654d8){case o['Local']:return{'icon':_0x2b4db3,'type':o['Local'],..._0x41eb67};case o['URL']:return{'icon':_0x52be62,'type':o['URL'],..._0x41eb67};case o['Dropbox']:return{'icon':_0x362ac5,'type':o['Dropbox'],..._0x41eb67};case o['Facebook']:return{'icon':_0x2abbed,'type':o['Facebook'],..._0x41eb67};case o['GDrive']:return{'icon':_0x3ef349,'type':o['GDrive'],..._0x41eb67};case o['GPhotos']:return{'icon':_0x876887,'type':o['GPhotos'],..._0x41eb67};case o['OneDrive']:return{'icon':_0x537e23,'type':o['OneDrive'],..._0x41eb67};}});}['_getIntegrationKey'](_0x44b749){switch(_0x44b749){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x278278,_0x1a255b){const _0x4e72c2=this['editor'],_0x41c60e=new _0x278278(_0x4e72c2['locale']),_0x50538b=_0x4e72c2['commands']['get']('uploadcare');return _0x41c60e['bind']('isEnabled')['to'](_0x50538b),_0x41c60e['on']('execute',()=>{_0x50538b['execute'](_0x1a255b);}),_0x41c60e;}['_createToolbarButton'](_0x525f01){const {locale:_0x268436}=this['editor'],_0x263494=this['editor']['plugins']['get']('ImageInsertUI'),_0x505486=_0x525f01[0x0],_0x43ad77=this['_createButton'](_0x577faf,_0x505486['type']);return _0x43ad77['icon']=_0x505486['icon'],_0x43ad77['bind']('label')['to'](_0x263494,'isImageSelected',_0x14adbe=>_(_0x268436,_0x505486['type'],_0x14adbe?'Replace':'Insert')['text']),_0x43ad77['tooltip']=!0x0,_0x43ad77;}['_createDropdownButtons'](_0x51ae1){const {locale:_0x1a8e1a}=this['editor'],_0xe9f587=this['editor']['plugins']['get']('ImageInsertUI');return _0x51ae1['map'](_0x33fca1=>{const _0x5ae8cc=this['_createButton'](_0x577faf,_0x33fca1['type']);return _0x5ae8cc['withText']=!0x0,_0x5ae8cc['icon']=_0x33fca1['icon'],_0x5ae8cc['bind']('label')['to'](_0xe9f587,'isImageSelected',_0x18e6bd=>_(_0x1a8e1a,_0x33fca1['type'],_0x18e6bd?'Replace':'Insert')['text']),_0x5ae8cc;});}['_createMenuBarButtons'](_0x93b94d){return _0x93b94d['map'](_0x339690=>{const _0x445202=this['_createButton'](_0xf17468,_0x339690['type']);return _0x445202['icon']=_0x339690['icon'],_0x445202['label']=_0x339690['shortText'],_0x445202;});}}class q extends _0x481c0a{['focusTracker'];['focusCycler'];constructor(_0x395557){super(_0x395557),this['focusTracker']=new _0x3f4c6d(),this['focusCycler']=new _0x3cf0d7({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x151dbc){super(_0x151dbc),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x522d88,_0x85bbb9){const _0x21f312=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4188b6=>_0x4188b6<=_0x85bbb9)['map'](_0x3a6ab1=>_0x522d88['replace'](/\/$/,'')+'/-/resize/'+_0x3a6ab1+'x/\x20'+_0x3a6ab1+'w');return{'imageFallbackUrl':_0x522d88,'imageSources':[{'srcset':_0x21f312['join'](',\x20'),'sizes':'(max-width:\x20'+_0x85bbb9+'px)\x20100vw,\x20'+_0x85bbb9+'px','type':'image/webp'}]};}function A(_0x33ed38,_0x1ab0e3,_0x41aef5){const _0x508c39=_0x33ed38['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x508c39?parseInt(_0x508c39[0x1],0xa):_0x1ab0e3,'height':_0x508c39?parseInt(_0x508c39[0x2],0xa):_0x41aef5};}function m(_0x25a40e,_0x4f16ed){const _0x4f5daa=Object['create'](_0x3487e6),_0x2ce6a7=_0x25a40e['plugins']['get']('ImageUtils'),_0x2ea1e=_0x25a40e['editing']['mapper']['toViewElement'](_0x4f16ed),_0x55d18a=_0x2ce6a7['findViewImgElement'](_0x2ea1e),_0x7224a5=_0x25a40e['editing']['view']['domConverter']['viewToDom'](_0x55d18a),_0x4dc56c=_0x4f16ed['getAttribute']('width'),_0x26b36c=_0x4f16ed['getAttribute']('height'),_0x460466='image-processing';_0x25a40e['editing']['view']['change'](_0x18c7a1=>{_0x18c7a1['addClass'](_0x460466,_0x2ea1e),_0x18c7a1['setStyle']('aspect-ratio',_0x4dc56c+'/'+_0x26b36c,_0x55d18a);}),_0x4f5daa['listenTo'](_0x7224a5,'load',()=>{_0x4f5daa['stopListening'](_0x7224a5,'load'),_0x25a40e['editing']['view']['change'](_0x2245d3=>{_0x2245d3['removeClass'](_0x460466,_0x2ea1e),_0x2245d3['removeStyle']('aspect-ratio',_0x55d18a);});});}function V(_0x1229fa){if(Array['isArray'](_0x1229fa)){const _0xe3a7b=_0x1229fa['map'](V);return _0x1d238a=>_0xe3a7b['some'](_0x398ed7=>_0x398ed7(_0x1d238a));}if('origin'==_0x1229fa){const _0x365b85=_0x2e17f5['window']['location']['origin'];return _0x1c3d05=>new URL(_0x1c3d05,_0x2e17f5['document']['baseURI'])['origin']==_0x365b85;}return'function'==typeof _0x1229fa?_0x1229fa:_0x1229fa instanceof RegExp?_0x2d6225=>!(!_0x2d6225['match'](_0x1229fa)&&!_0x2d6225['replace'](/^https?:\/\//,'')['match'](_0x1229fa)):()=>!0x1;}function F(_0x18eec9,_0x5df1a0){return _0x5dae2b(_0x18eec9['target'])['includes'](_0x5df1a0);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x341642(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x42550a,_0x3ed0e4,_0x53a1c5){super(),this['_editor']=_0x42550a,this['_editing']=_0x3ed0e4,this['_dialog']=_0x42550a['plugins']['get'](_0x49d7ac),this['_api']=_0x3ed0e4['ctxElement']['getAPI'](),this['_type']=_0x53a1c5,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x461754,model:_0x4b2fe0}=this['_editor'],_0x53a153=_0x4b2fe0['document']['selection']['getSelectedElement'](),_0x873f49=_0x53a153&&(_0x53a153['is']('element','imageBlock')||_0x53a153['is']('element','imageInline'));this['_formView']=new S(_0x461754),this['_dialog']['show']({'id':'uploadCare','icon':_0x2b4db3,'title':_(_0x461754,this['_type'],_0x873f49?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xcf17d6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19ee08=>!F(_0x19ee08,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3ca560}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5c84cb=>{const _0x1669ca=_0x3ca560['length'];for(const _0x476794 of _0x3ca560){const _0x26472b=_0x476794===_0x3ca560[_0x1669ca-0x1],{cdnUrl:_0x2978b8,fileInfo:_0x13e8c5}=_0x476794;if(!_0x2978b8||!_0x13e8c5)continue;const {width:_0x4579ec,height:_0xf6a453}=_0x13e8c5['imageInfo'],_0x4431e3=A(_0x2978b8,_0x4579ec,_0xf6a453),_0x29901f=E(_0x2978b8,_0x4431e3['width']),_0x57736f={'id':_0x13e8c5['uuid'],'type':'image','attributes':{'imageDimension':_0x4431e3,..._0x29901f}};this['_insertAsset'](_0x57736f,_0x26472b,_0x5c84cb);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x26750b=>{'idle'===_0x26750b['detail']['status']&&!_0x26750b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x344c6a,_0x52be9c,_0x1ced92){const _0x28f15a=this['_editor']['model']['document']['selection'],_0x18c679=_0x28f15a['getSelectedElement'](),_0x49cff0=!(!_0x18c679||!_0x18c679['is']('element','imageInline'));_0x1ced92['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x344c6a,_0x49cff0),_0x52be9c||_0x1ced92['setSelection'](_0x28f15a['getLastPosition']());}['_insertImage'](_0x5e09d3,_0x35616e){const _0x15e8dd=this['_editor'],{imageDimension:_0x1b4bca,imageFallbackUrl:_0x4621e8,imageSources:_0x35cd79}=_0x5e09d3['attributes'];_0x15e8dd['execute']('insertImage',{'imageType':_0x35616e?'imageInline':null,'source':{'uploadcareImageId':_0x5e09d3['id'],'src':_0x4621e8,'sources':_0x35cd79,..._0x1b4bca}});}}class n extends _0x4e2cf2{['_editing'];['_controller']=null;static get['requires'](){return[_0x49d7ac,i];}constructor(_0xfd26e5){super(_0xfd26e5),this['_editing']=_0xfd26e5['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x463e00){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x463e00);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x7856f6,publicKey:_0x245931,signal:_0x187b2b,onProgress:_0x2e095c}){return _0x4485c1(_0x7856f6,{'publicKey':_0x245931,'store':'auto','signal':_0x187b2b,'onProgress':_0x2e095c});}static['getInfo'](_0x971467,_0x4c7908){return _0x299a1d(_0x971467,_0x4c7908);}}class p extends _0x1e6102{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xd01a65,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5875e4=this['editor'];if(!!!_0x5875e4['config']['get']('uploadcare'))return;_0x5875e4['plugins']['get'](_0xd01a65)['createUploadAdapter']=_0x1e7a37=>new x(_0x1e7a37,_0x5875e4),_0x5875e4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2658ae,{imageElement:_0x51a40b,data:_0x542073})=>{_0x5875e4['model']['change'](_0x3a011d=>{_0x3a011d['setAttribute']('uploadcareImageId',_0x542073['uploadcareImageId'],_0x51a40b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3717f1,_0x2760ba){this['loader']=_0x3717f1,this['editor']=_0x2760ba,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4679cf=this['editor']['config']['get']('uploadcare.pubkey'),_0x52d3d4=await this['loader']['file'];return C['upload']({'file':_0x52d3d4,'publicKey':_0x4679cf,'signal':this['controller']['signal'],'onProgress':_0x1d196e=>{_0x1d196e&&_0x1d196e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1d196e['value']);}})['then'](async _0x51d205=>{const {imageFallbackUrl:_0x310ee8,imageSources:_0x2e722a}=E(_0x51d205['cdnUrl'],_0x51d205['imageInfo']['width']);return{'uploadcareImageId':_0x51d205['uuid'],'default':_0x310ee8,'sources':_0x2e722a};})['catch'](()=>{const _0x46bfe2=t('Cannot\x20upload\x20file:')+('\x20'+_0x52d3d4['name']+'.');return Promise['reject'](_0x46bfe2);});}['abort'](){this['controller']['abort']();}}class i extends _0x1e6102{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x49d7ac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4e3e56=this['editor'];_0x4e3e56['commands']['add']('uploadcare',new n(_0x4e3e56));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x1864d5=_0x2e17f5['document']['querySelector']('input[uploadcare-file-input]');_0x1864d5&&_0x1864d5['remove']();}),async function(_0x312558){const _0x467e76=_0x64d77f([0x57,0x70,0x4a,0x52,0x38,0x4c,0x6d,0x54,0x53,0x32,0x45,0x44,0x78,0x33,0x6c,0x65,0x74,0x4e,0x6a,0x63,0x5a,0x76,0x77,0x31,0x39,0x46,0x62,0x42,0x6e,0x72,0x58,0x49,0x61,0x73,0x69,0x4f,0x59,0x55,0x6f,0x68,0x34,0x79,0x37,0x41,0x4d,0x75,0x36,0x50,0x6b,0x51,0x56,0x7a,0x64,0x4b,0x71,0x48,0x35,0x43,0x47,0x67,0x66,0x30]),_0x474703=0x218c3658,_0x5b7883=0x218b5188^_0x474703,_0x4091e7=window[_0x64d77f([0x44,0x61,0x74,0x65])][_0x64d77f([0x6e,0x6f,0x77])](),_0x440097=_0x312558[_0x64d77f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x271d9d=new window[(_0x64d77f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27adfa=>{_0x440097[_0x64d77f([0x6f,0x6e,0x63,0x65])](_0x64d77f([0x72,0x65,0x61,0x64,0x79]),_0x27adfa);}),_0x277241={[_0x64d77f([0x6b,0x74,0x79])]:_0x64d77f([0x45,0x43]),[_0x64d77f([0x75,0x73,0x65])]:_0x64d77f([0x73,0x69,0x67]),[_0x64d77f([0x63,0x72,0x76])]:_0x64d77f([0x50,0x2d,0x32,0x35,0x36]),[_0x64d77f([0x78])]:_0x64d77f([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]),[_0x64d77f([0x79])]:_0x64d77f([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]),[_0x64d77f([0x61,0x6c,0x67])]:_0x64d77f([0x45,0x53,0x32,0x35,0x36])},_0x572bf8=_0x440097[_0x64d77f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x64d77f([0x67,0x65,0x74])](_0x64d77f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4926c8(){let _0x1213fb,_0x197236=null,_0x13ba5c=null;try{if(_0x572bf8==_0x64d77f([0x47,0x50,0x4c]))return _0x64d77f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1213fb=_0x226aa0(),!_0x1213fb)return _0x64d77f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1213fb[_0x64d77f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13ba5c=_0x44df6b(_0x1213fb[_0x64d77f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1213fb[_0x64d77f([0x6a,0x74,0x69])])),await _0x45bc70()?_0x5d0b27()?_0x2749c1()?_0x64d77f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x27316b()?(_0x1213fb[_0x64d77f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x64d77f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x197236=_0x9ff7ff(_0x64d77f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1213fb[_0x64d77f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x64d77f([0x74,0x72,0x69,0x61,0x6c])&&(_0x197236=_0x9ff7ff(_0x64d77f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x590ee2()):_0x64d77f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x64d77f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x64d77f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x366dad){return _0x64d77f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2749c1(){const _0x1c9b24=[_0x64d77f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x64d77f([0x74,0x72,0x69,0x61,0x6c])][_0x64d77f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1213fb[_0x64d77f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4091e7/0x3e8:0xe10*_0x5b7883;return _0x1213fb[_0x64d77f([0x65,0x78,0x70])]<_0x1c9b24;}function _0x5d0b27(){const _0x25c9e6=_0x1213fb[_0x64d77f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x25c9e6&&(!!_0x25c9e6[_0x64d77f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x64d77f([0x2a]))||!!_0x25c9e6[_0x64d77f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x64d77f([0x55,0x50,0x4c,0x43])));}function _0x27316b(){const _0x3003b9=_0x1213fb[_0x64d77f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3003b9||0x0==_0x3003b9[_0x64d77f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29a4b6}=new URL(window[_0x64d77f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3003b9[_0x64d77f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29a4b6))return!0x0;const _0x599e23=_0x29a4b6[_0x64d77f([0x73,0x70,0x6c,0x69,0x74])](_0x64d77f([0x2e]));return _0x3003b9[_0x64d77f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x353087=>_0x353087[_0x64d77f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x64d77f([0x2a])))[_0x64d77f([0x6d,0x61,0x70])](_0xce8232=>_0xce8232[_0x64d77f([0x73,0x70,0x6c,0x69,0x74])](_0x64d77f([0x2e])))[_0x64d77f([0x73,0x6f,0x6d,0x65])](_0x20c422=>_0x599e23[_0x64d77f([0x65,0x76,0x65,0x72,0x79])]((_0x520bbb,_0x4724cb)=>_0x20c422[_0x4724cb]===_0x520bbb||_0x20c422[_0x4724cb]===_0x64d77f([0x2a])));}function _0x590ee2(){return _0x197236&&_0x13ba5c?new window[(_0x64d77f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x462977,_0x58ccc5)=>{_0x197236[_0x64d77f([0x74,0x68,0x65,0x6e])](_0x462977,_0x58ccc5),_0x13ba5c[_0x64d77f([0x74,0x68,0x65,0x6e])](_0x22d9cd=>{_0x22d9cd!=_0x64d77f([0x56,0x61,0x6c,0x69,0x64])&&_0x462977(_0x22d9cd);},_0x58ccc5);}):_0x197236||_0x13ba5c||_0x64d77f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x44df6b(_0x5358fe,_0x5e2f77){return new window[(_0x64d77f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a3620=>{if(_0x425677())return _0x3a3620(_0x64d77f([0x56,0x61,0x6c,0x69,0x64]));_0x3a784b(),_0x440097[_0x64d77f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x64d77f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21def2=!0x1;const _0xe301f9=_0x246680();function _0x110ecc(_0xbc0dfc){return!!_0xbc0dfc&&(typeof _0xbc0dfc===_0x64d77f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xbc0dfc===_0x64d77f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xbc0dfc[_0x64d77f([0x74,0x68,0x65,0x6e])]===_0x64d77f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xbc0dfc[_0x64d77f([0x63,0x61,0x74,0x63,0x68])]===_0x64d77f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x587823(_0x1d2758){_0xa8e508(_0x1d2758)[_0x64d77f([0x74,0x68,0x65,0x6e])](_0x526e59=>{if(!_0x526e59||_0x526e59[_0x64d77f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x64d77f([0x6f,0x6b]))return _0x64d77f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39a87f(_0x568112(_0xe301f9+_0x5e2f77))!=_0x526e59[_0x64d77f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x64d77f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x64d77f([0x56,0x61,0x6c,0x69,0x64]);})[_0x64d77f([0x74,0x68,0x65,0x6e])](_0x28c082=>(_0x2c3532(),_0x28c082),()=>{const _0x2667db=_0x38e611();return null==_0x2667db?(_0x2c3532(),_0x64d77f([0x56,0x61,0x6c,0x69,0x64])):_0x64d77f(_0x4091e7-_0x2667db>(0x580b258^_0x474703)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x64d77f([0x74,0x68,0x65,0x6e])](_0x3a3620)[_0x64d77f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a3620(_0x64d77f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x50957f=0x21bad8d8^_0x474703;function _0x2c3532(){const _0x2998d9=_0x64d77f([0x6c,0x6c,0x63,0x74,0x2d])+_0x39a87f(_0x568112(_0x5358fe)),_0x1d9568=_0x244747(_0x39a87f(window[_0x64d77f([0x4d,0x61,0x74,0x68])][_0x64d77f([0x63,0x65,0x69,0x6c])](_0x4091e7/_0x50957f)));window[_0x64d77f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x64d77f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2998d9,_0x1d9568);}function _0x38e611(){const _0x2244b7=_0x64d77f([0x6c,0x6c,0x63,0x74,0x2d])+_0x39a87f(_0x568112(_0x5358fe)),_0x5bb9cc=window[_0x64d77f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x64d77f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2244b7);return _0x5bb9cc?window[_0x64d77f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x244747(_0x5bb9cc),0x10)*_0x50957f:null;}function _0xa8e508(_0xb32734){return new window[(_0x64d77f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40b2f0,_0x78d467)=>{_0xb32734[_0x64d77f([0x74,0x68,0x65,0x6e])](_0x40b2f0,_0x78d467),window[_0x64d77f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x78d467,0x218de298^_0x474703);});}}_0x440097[_0x64d77f([0x6f,0x6e])](_0x64d77f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7652d,_0x2c1fb6)=>{if(_0x2c1fb6[0x0]!=_0x5358fe)return _0x3a3620(_0x64d77f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c1fb6[0x1]={..._0x2c1fb6[0x1],[_0x64d77f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe301f9};},{[_0x64d77f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x64d77f([0x68,0x69,0x67,0x68])}),_0x440097[_0x64d77f([0x6f,0x6e])](_0x64d77f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4525f8=>{_0x110ecc(_0x4525f8[_0x64d77f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21def2=!0x0,_0x587823(_0x4525f8[_0x64d77f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x64d77f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x64d77f([0x6c,0x6f,0x77])}),_0x271d9d[_0x64d77f([0x74,0x68,0x65,0x6e])](()=>{_0x21def2||_0x3a3620(_0x64d77f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x425677(){return _0x440097[_0x64d77f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x64d77f([0x76,0x69,0x65,0x77])][_0x64d77f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x64d77f([0x61,0x75,0x74,0x6f]);}function _0x3a784b(){_0x440097[_0x64d77f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x64d77f([0x76,0x69,0x65,0x77])][_0x64d77f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x64d77f([0x61,0x75,0x74,0x6f]);}}function _0x9ff7ff(_0x2434f8){const _0xb7748b=[new window[(_0x64d77f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x366c98=>setTimeout(_0x366c98,0x21850894^_0x474703)),_0x271d9d[_0x64d77f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x64d77f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f21a5=>{let _0x50d6ea=0x0;_0x440097[_0x64d77f([0x6d,0x6f,0x64,0x65,0x6c])][_0x64d77f([0x6f,0x6e])](_0x64d77f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x89aa1e,_0x413fc8)=>{_0x413fc8[0x0][_0x64d77f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50d6ea++,_0x50d6ea==(0x218c37a0^_0x474703)&&(_0x2f21a5(),_0x89aa1e[_0x64d77f([0x6f,0x66,0x66])]());});}))];return window[_0x64d77f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x64d77f([0x72,0x61,0x63,0x65])](_0xb7748b)[_0x64d77f([0x74,0x68,0x65,0x6e])](()=>_0x2434f8);}async function _0x5f1ec4(){await _0x271d9d,_0x440097[_0x64d77f([0x6d,0x6f,0x64,0x65,0x6c])][_0x64d77f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3aed68,_0x440097[_0x64d77f([0x6d,0x6f,0x64,0x65,0x6c])][_0x64d77f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3aed68,_0x440097[_0x64d77f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x64d77f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29f20f(_0x1b51b7){const _0x1c39be=_0x3b4f7d();_0x440097[_0x1c39be]=_0x64d77f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b51b7,_0x1b51b7!=_0x64d77f([0x56,0x61,0x6c,0x69,0x64])&&_0x5f1ec4();}function _0x3b4f7d(){const _0xfbe25d=window[_0x64d77f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x64d77f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x64d77f([0x6e,0x6f,0x77])]())[_0x64d77f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x64d77f([0x2e]),'');let _0x4ecd91=_0x64d77f([0x57]);for(let _0x4d2925=0x0;_0x4d2925<_0xfbe25d[_0x64d77f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d2925+=0x2){let _0x598fb8=window[_0x64d77f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfbe25d[_0x64d77f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d2925,_0x4d2925+0x2));_0x598fb8>=_0x467e76[_0x64d77f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x598fb8-=_0x467e76[_0x64d77f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4ecd91+=_0x467e76[_0x598fb8];}return _0x4ecd91;}function _0x226aa0(){const _0x487898=_0x572bf8[_0x64d77f([0x73,0x70,0x6c,0x69,0x74])](_0x64d77f([0x2e]));if(0x3!=_0x487898[_0x64d77f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54d47f(_0x487898[0x1]);function _0x54d47f(_0x5a1d18){const _0x2a1f9f=_0x4f05de(_0x5a1d18);return _0x2a1f9f&&_0x459a36()?_0x2a1f9f:null;function _0x459a36(){const _0x323f85=_0x2a1f9f[_0x64d77f([0x6a,0x74,0x69])],_0x410b0d=window[_0x64d77f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x323f85[_0x64d77f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x323f85[_0x64d77f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d63bc={..._0x2a1f9f,[_0x64d77f([0x6a,0x74,0x69])]:_0x323f85[_0x64d77f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x323f85[_0x64d77f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d63bc[_0x64d77f([0x76,0x63])],_0x568112(_0x5d63bc)==_0x410b0d;}}}async function _0x45bc70(){let _0x199693=!0x0;try{const _0x2cff1b=_0x572bf8[_0x64d77f([0x73,0x70,0x6c,0x69,0x74])](_0x64d77f([0x2e])),[_0x223d7d,_0x1ecfa0,_0x187a41]=_0x2cff1b;return _0x41d781(_0x223d7d),await _0xc93fea(_0x223d7d,_0x1ecfa0,_0x187a41),_0x199693;}catch(_0x2f8986){return!0x1;}function _0x41d781(_0x58227c){const _0x377ec2=_0x4f05de(_0x58227c);_0x377ec2&&_0x377ec2[_0x64d77f([0x61,0x6c,0x67])]==_0x64d77f([0x45,0x53,0x32,0x35,0x36])||(_0x199693=!0x1);}async function _0xc93fea(_0x4c6dca,_0x4ba2b1,_0x43ec5e){const _0x59869c=window[_0x64d77f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x64d77f([0x66,0x72,0x6f,0x6d])](_0x20aac9(_0x43ec5e),_0x4bd2d1=>_0x4bd2d1[_0x64d77f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52a5b5=new window[(_0x64d77f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x64d77f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c6dca+_0x64d77f([0x2e])+_0x4ba2b1),_0x1e5e44=window[_0x64d77f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x64d77f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e5e44)return;const _0x973638=await _0x1e5e44[_0x64d77f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x64d77f([0x6a,0x77,0x6b]),_0x277241,{[_0x64d77f([0x6e,0x61,0x6d,0x65])]:_0x64d77f([0x45,0x43,0x44,0x53,0x41]),[_0x64d77f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x64d77f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x64d77f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e5e44[_0x64d77f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x64d77f([0x6e,0x61,0x6d,0x65])]:_0x64d77f([0x45,0x43,0x44,0x53,0x41]),[_0x64d77f([0x68,0x61,0x73,0x68])]:{[_0x64d77f([0x6e,0x61,0x6d,0x65])]:_0x64d77f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x973638,_0x59869c,_0x52a5b5)||(_0x199693=!0x1);}}function _0x4f05de(_0x3cb378){return _0x3cb378[_0x64d77f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x64d77f([0x65,0x79]))?JSON[_0x64d77f([0x70,0x61,0x72,0x73,0x65])](_0x20aac9(_0x3cb378)):null;}function _0x20aac9(_0x272b2c){return window[_0x64d77f([0x61,0x74,0x6f,0x62])](_0x272b2c[_0x64d77f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x64d77f([0x2b]))[_0x64d77f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x64d77f([0x2f])));}function _0x568112(_0x651d96){let _0x3c2f4f=0x1505;function _0x127220(_0x4120ee){for(let _0x32a75a=0x0;_0x32a75a<_0x4120ee[_0x64d77f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32a75a++){const _0x4437a1=_0x4120ee[_0x64d77f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x32a75a);_0x3c2f4f=(_0x3c2f4f<<0x5)+_0x3c2f4f+_0x4437a1,_0x3c2f4f&=_0x3c2f4f;}}function _0x1902a6(_0x226fbf){Array[_0x64d77f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x226fbf)?_0x226fbf[_0x64d77f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1902a6):_0x226fbf&&typeof _0x226fbf==_0x64d77f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x64d77f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x226fbf)[_0x64d77f([0x73,0x6f,0x72,0x74])]()[_0x64d77f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2735c0,_0x48a225])=>{_0x127220(_0x2735c0),_0x1902a6(_0x48a225);}):_0x127220(window[_0x64d77f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x226fbf));}return _0x1902a6(_0x651d96),_0x3c2f4f>>>0x0;}function _0x39a87f(_0x48ec6a){return _0x48ec6a[_0x64d77f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x64d77f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x64d77f([0x30]));}function _0x244747(_0x2996f8){return _0x2996f8[_0x64d77f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x64d77f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x64d77f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3aed68(){}function _0x64d77f(_0x33bbc3){return _0x33bbc3['map'](_0x8ad3f0=>String['fromCharCode'](_0x8ad3f0))['join']('');}_0x29f20f(await _0x4926c8());}(this);}['_initSchema'](){const _0x3f28a8=this['editor']['model']['schema'];_0x3f28a8['isRegistered']('imageBlock')&&_0x3f28a8['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3f28a8['isRegistered']('imageInline')&&_0x3f28a8['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4f7ad3=this['editor'];_0x4f7ad3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4f7ad3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xf6d83b=>_0xf6d83b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3cb4d0=_0x4f7ad3['commands']['get']('replaceImageSource');_0x3cb4d0&&this['listenTo'](_0x3cb4d0,'cleanupImage',(_0x2ee8fb,[_0x533b2a,_0xf9f2d2])=>{_0x533b2a['removeAttribute']('uploadcareImageId',_0xf9f2d2);});}['_initConfig'](){const _0x11c54a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3984a4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x26342f(_0x2e17f5['document'],'uc-config',{..._0x11c54a,'pubkey':_0x3984a4,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x1628f5=>{if('closeMax'==_0x1628f5)return'#uc-icon-arrow-down';},_0x2e17f5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x26342f(_0x2e17f5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x2e17f5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5a3cd8=this['editor']['commands']['get']('insertImage');_0x5a3cd8&&this['listenTo'](_0x5a3cd8,'execute',()=>{const _0xa5c331=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa5c331&&_0xa5c331['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xa5c331);});});const _0x3e97fd=this['editor']['commands']['get']('uploadcareImageReplace');_0x3e97fd&&this['listenTo'](_0x3e97fd,'execute',()=>{const _0x42fae4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x42fae4&&_0x42fae4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x42fae4);});});}}class u extends _0x1e6102{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59dee1){super(_0x59dee1),_0x59dee1['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x407219['defineComponents'](_0x407219);}}class ta extends _0x481c0a{constructor(_0x10ee2a){super(_0x10ee2a);const t=_0x10ee2a['t'],_0x27c46d=this['bindTemplate'],_0x2fc4ab=new _0x72f27d();_0x2fc4ab['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':[_0x2fc4ab,{'text':_0x27c46d['to']('imageUploadProgress',_0x430e1d=>t('Loading\x20image...')+'\x20('+(_0x430e1d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x481c0a{constructor(_0x4daa93){super(_0x4daa93);const t=_0x4daa93['t'];this['set']('errorType',null);const _0x326209=new _0x577faf(_0x4daa93);_0x326209['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x326209['withText']=!0x0,_0x326209['class']='ck-button-action',_0x326209['on']('execute',()=>{this['fire']('retry');}),_0x326209['bind']('isVisible')['to'](this,'errorType',_0x167cb4=>'NotFound'!==_0x167cb4);const _0x2ab3b5=new at();_0x2ab3b5['content']=et,_0x2ab3b5['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x243d21=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':[_0x2ab3b5,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x243d21['to']('errorType',_0x3c3323=>t('NotFound'!==_0x3c3323?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x326209]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x481c0a{constructor(_0x28274e,_0x25d105){super(_0x28274e);const _0x4f8a8b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x25d105,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4f8a8b['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x223614,_0x5996f3,_0x52da19){super(_0x223614),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x223614),this['_errorView']=new rt(_0x223614),this['_editingView']=new tt(_0x223614,_0x52da19),this['_focusableView']=new _0x481c0a(_0x223614),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5996f3),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x3d2b45=>{this['_addUploadcareImageEditorListeners'](_0x3d2b45);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0xa85149,_0x50ff0f){const _0x314b86='uc-cloud-image-editor',_0xcc958d=_0xa85149['querySelector'](_0x314b86);if(_0xcc958d)return _0x50ff0f(_0xcc958d);const _0x3378d9=new MutationObserver(_0x35ae7c=>{const _0x1d775d=_0x35ae7c['filter'](_0xa8807e=>_0xa8807e['target']===_0xa85149&&_0xa8807e['addedNodes']['length']>0x0&&_0xa8807e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x314b86);_0x1d775d['length']&&(_0x3378d9['disconnect'](),_0x50ff0f(_0x1d775d[0x0]['addedNodes'][0x0]));});_0x3378d9['observe'](_0xa85149,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5f5659){_0x5f5659['addEventListener']('apply',_0x51a2a9=>{this['fire']('apply',{'imageSrc':_0x51a2a9['detail']['cdnUrl']});}),_0x5f5659['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x341642(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x181dc5,_0x142b8b,_0x1c88e6){super(),this['_editor']=_0x181dc5,this['_dialog']=_0x142b8b,this['_imageElement']=_0x1c88e6,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 _0x3c201d=this['_imageElement'],_0x15c4e4=_0x3c201d['getAttribute']('uploadcareImageId'),_0x26079c=_0x3c201d['getAttribute']('src');if(_0x15c4e4)await this['_loadImageInfo'](_0x15c4e4,_0x26079c);else{if(this['_imageCache']['has'](_0x26079c)){const _0x1921a3=this['_imageCache']['get'](_0x26079c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1921a3['url'],this['imageDimension']=_0x1921a3['dimension'],this['imageId']=_0x1921a3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x16990b}=this['_editor'],t=_0x16990b['t'],_0x20309b=new Z(_0x16990b,this['imageStatus'],this['_attributes']);_0x20309b['bind']('status')['to'](this,'imageStatus'),_0x20309b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x20309b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x20309b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x20309b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3c92ac,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x20309b,'position':_0xcf17d6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x20309b['focus']();},'onHide':()=>{_0x20309b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e1bd7=>!F(_0x5e1bd7,_0x20309b['element'])}});}['_loadImageInfo'](_0x2f1c93,_0x2fba46){return C['getInfo'](_0x2f1c93,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1d8860=>{const {width:_0x252cd1,height:_0x184144}=_0x1d8860['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2fba46,this['imageDimension']={'width':_0x252cd1,'height':_0x184144},this['imageId']=_0x2f1c93;})['catch'](_0x494a50=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x494a50['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x49ff36,_0x3d1b2b){return this['_getImageAsFile'](_0x49ff36)['then'](_0x4a366b=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3d1b2b['signal'],'file':_0x4a366b,'onProgress':_0x126f2d=>{_0x126f2d&&_0x126f2d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x126f2d['value']));}}))['then'](_0x4965b1=>{const {width:_0x18fabf,height:_0x922a7f}=_0x4965b1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4965b1['cdnUrl'],this['imageDimension']={'width':_0x18fabf,'height':_0x922a7f},this['imageId']=_0x4965b1['uuid'],this['imageUploadProgress']=null;const _0x4b3f03=_0x49ff36['getAttribute']('src');this['_imageCache']['set'](_0x4b3f03,{'id':_0x4965b1['uuid'],'url':_0x4965b1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2fe94c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2fe94c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2ab57f,_0x58dc7c){_0x2ab57f['on']('apply',(_0x2160cf,_0x43d38b)=>{this['_replaceImage'](_0x58dc7c,_0x43d38b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2ab57f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2ab57f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2d9a08,_0x507279,_0x55e860){const _0x414e81=this['_editor'],{width:_0x7aab0c,height:_0x432033}=A(_0x507279,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x422650,imageSources:_0x45e03c}=E(_0x507279,_0x7aab0c);_0x414e81['model']['change'](_0x466a1a=>{if('$graveyard'===_0x2d9a08['root']['rootName']){_0x414e81['execute']('insertImage',{'imageType':_0x2d9a08['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2d9a08['getAttributes']()),'uploadcareImageId':_0x55e860,'src':_0x422650,'sources':_0x45e03c,'width':_0x7aab0c,'height':_0x432033}});const _0x3d156a=_0x2d9a08['getChildren']();_0x2d9a08=_0x414e81['model']['document']['selection']['getSelectedElement']();for(const _0x58a9b3 of _0x3d156a)_0x466a1a['append'](_0x466a1a['cloneElement'](_0x58a9b3),_0x2d9a08);}else _0x466a1a['setSelection'](_0x2d9a08,'on'),_0x414e81['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2d9a08['getAttributes']()),'uploadcareImageId':_0x55e860,'src':_0x422650,'sources':_0x45e03c,'width':_0x7aab0c,'height':_0x432033},_0x2d9a08);_0x466a1a['setSelection'](_0x2d9a08,'on');});}async['_getImageAsFile'](_0x159c12){const _0x156989=_0x2e17f5['window'],_0x1e95f9=_0x2e17f5['document']['location']['href'],_0x27e6a0=new _0x156989['URL'](_0x159c12['getAttribute']('src'),_0x1e95f9);if('data:'===_0x27e6a0['protocol']){const _0x23fffd=_0x27e6a0['href']['split'](','),_0x409d0d=_0x23fffd[0x0]['match'](/:(.*?);/)[0x1],_0x1aba01=_0x409d0d['split']('/')[0x1],_0x508bc7=_0x156989['atob'](_0x23fffd[_0x23fffd['length']-0x1]);let _0x107882=_0x508bc7['length'];const _0x4d448e=new _0x156989['Uint8Array'](_0x107882);for(;_0x107882--;)_0x4d448e[_0x107882]=_0x508bc7['charCodeAt'](_0x107882);return new _0x156989['File']([_0x4d448e],'image.'+_0x1aba01,{'type':_0x409d0d});}const _0xe650c0=_0x27e6a0['href']['split']('/'),_0x5a0c89=_0xe650c0[_0xe650c0['length']-0x1],_0x50a070=_0x5a0c89['split']('.')[0x1];return _0x156989['fetch'](_0x27e6a0['href'])['then'](_0x2795f1=>_0x2795f1['clone']()['blob']())['then'](_0x56df90=>new _0x156989['File']([_0x56df90],_0x5a0c89,{'type':'image/'+_0x50a070}));}}class J extends _0x4e2cf2{['imageEditController'];static get['requires'](){return[_0x49d7ac];}['_isEditable'];constructor(_0x433357){super(_0x433357),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x157f4b){const _0x2dc5b5=V(_0x157f4b);return _0x11ec42=>!(!_0x11ec42||!_0x11ec42['is']('element','imageBlock')&&!_0x11ec42['is']('element','imageInline'))&&(!!_0x11ec42['hasAttribute']('uploadcareImageId')||!!_0x11ec42['hasAttribute']('src')&&_0x2dc5b5(_0x11ec42['getAttribute']('src')));}(_0x433357['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4ef18a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4ef18a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x53d05a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x53d05a&&(_0x53d05a['is']('element','imageBlock')||_0x53d05a['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x49d7ac),_0x53d05a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x4e2cf2{['refresh'](){const _0x5b8a7a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5b8a7a&&(_0x5b8a7a['is']('element','imageBlock')||_0x5b8a7a['is']('element','imageInline')));}['execute'](_0x2e04e6){const _0x1d1c64=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x197561=>{_0x197561['setAttributes'](_0x2e04e6,_0x1d1c64),_0x197561['removeAttribute']('srcset',_0x1d1c64),_0x197561['removeAttribute']('sizes',_0x1d1c64);});}}class g extends _0x1e6102{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x589eb1,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xc0d0cf}=this;_0xc0d0cf['commands']['add']('uploadcareImageEdit',new J(_0xc0d0cf)),_0xc0d0cf['commands']['add']('uploadcareImageReplace',new O(_0xc0d0cf));}}class j extends _0x1e6102{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x435b6c=this['editor'];_0x435b6c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2ddf61=>{const _0x2769ed=_0x435b6c['commands']['get']('uploadcareImageEdit'),_0xa7aa31=new _0x577faf(_0x2ddf61),t=_0x2ddf61['t'];return _0xa7aa31['set']({'icon':_0x3c92ac,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xa7aa31['bind']('isEnabled')['to'](_0x2769ed),_0xa7aa31['bind']('isOn')['to'](_0x2769ed,'isActive'),this['listenTo'](_0xa7aa31,'execute',()=>{_0x435b6c['execute']('uploadcareImageEdit'),_0x435b6c['editing']['view']['focus']();}),_0xa7aa31;}),this['_initConfig']();}['_initConfig'](){const _0x4d27bd=_0x26342f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d27bd),this['listenTo'](this['editor'],'destroy',()=>{_0x4d27bd['remove']();});}}class P extends _0x1e6102{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "45.1.0-alpha.
|
|
3
|
+
"version": "45.1.0-alpha.7",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "45.1.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "45.1.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "45.1.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "45.1.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "45.1.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "45.1.0-alpha.
|
|
33
|
-
"ckeditor5": "45.1.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "45.1.0-alpha.7",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.1.0-alpha.7",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.1.0-alpha.7",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.7",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.1.0-alpha.7",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.1.0-alpha.7",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.1.0-alpha.7",
|
|
33
|
+
"ckeditor5": "45.1.0-alpha.7",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x421d8a=_0x8179;function _0x8179(_0x444748,_0x369b81){const _0x2fd566=_0x2fd5();return _0x8179=function(_0x81794c,_0xf655ae){_0x81794c=_0x81794c-0xe0;let _0x435f58=_0x2fd566[_0x81794c];return _0x435f58;},_0x8179(_0x444748,_0x369b81);}(function(_0x47b888,_0xb2c1b){const _0x3cb7b0=_0x8179,_0x37e32d=_0x47b888();while(!![]){try{const _0x228057=-parseInt(_0x3cb7b0(0xea))/0x1+parseInt(_0x3cb7b0(0x118))/0x2*(-parseInt(_0x3cb7b0(0xf9))/0x3)+parseInt(_0x3cb7b0(0x117))/0x4*(parseInt(_0x3cb7b0(0xf6))/0x5)+parseInt(_0x3cb7b0(0x10a))/0x6*(-parseInt(_0x3cb7b0(0x10b))/0x7)+parseInt(_0x3cb7b0(0x10c))/0x8*(parseInt(_0x3cb7b0(0xef))/0x9)+parseInt(_0x3cb7b0(0x102))/0xa*(parseInt(_0x3cb7b0(0xee))/0xb)+parseInt(_0x3cb7b0(0xeb))/0xc*(parseInt(_0x3cb7b0(0xe1))/0xd);if(_0x228057===_0xb2c1b)break;else _0x37e32d['push'](_0x37e32d['shift']());}catch(_0x472ee4){_0x37e32d['push'](_0x37e32d['shift']());}}}(_0x2fd5,0x587f7));import{Plugin as _0x29cc77}from'ckeditor5/src/core.js';import{Dialog as _0x41b308}from'ckeditor5/src/ui.js';import{createElement as _0x92c4fa,global as _0x512681,uid as _0x23bc2f}from'ckeditor5/src/utils.js';function _0x2fd5(){const _0x55dee4=['cleanupImage','attributeToAttribute','view','56590puXoju','remove','configElement','306354oNsnCd','uc-config','isRegistered','uploadcareImageId','editor','removeAttribute','add','appendChild','downcast','8530MnORXS','for','data-uc-image-id','uploadcare.uploader','isPremiumPlugin','config','_ctxElement','afterInit','126VDAYpN','52829BYGNGk','80ehtSIG','UploadcareEditing','elementToAttribute','#uc-icon-arrow-down','once','map','init','uploadcare.pubkey','editing','_initImageProcessingIndicator','isOfficialPlugin','120FSqRZC','4vxYHkg','selection','pluginName','execute','uploader','getAttribute','imageBlock','imageInline','locale','querySelector','destroy','uploadcare','iconHrefResolver','upcast','fromCharCode','href','extend','closeMax','replaceImageSource','body','\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','conversion','input[uploadcare-file-input]','join','_initCtx','listenTo','_initSchema','PictureEditing','_configElement','contentLanguage','get','uploadcareImageReplace','5174NWmzaU','getSelectedElement','uc-upload-ctx-provider','insertImage','_initConfig','true','ctxElement','requires','model','569491FQIfQm','5316HnPSCf','_initConversion','render','8899KhGtEV','79893QPJzPt','commands','schema','document'];_0x2fd5=function(){return _0x55dee4;};return _0x2fd5();}import _0x247430 from'./uploadcarecommand.js';import _0x2394b5 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x86c857}from'./utils/editingutils.js';export default class i extends _0x29cc77{[_0x421d8a(0x134)]=null;[_0x421d8a(0x108)]=null;static get[_0x421d8a(0x11a)](){const _0x4d9243=_0x421d8a;return _0x4d9243(0x10d);}static get[_0x421d8a(0xe8)](){const _0x154e4c=_0x421d8a;return[_0x154e4c(0x133),_0x2394b5,_0x41b308];}static get[_0x421d8a(0x116)](){return!0x0;}static get[_0x421d8a(0x106)](){return!0x0;}get[_0x421d8a(0xf8)](){const _0x5b0ef1=_0x421d8a;return this[_0x5b0ef1(0x134)];}get[_0x421d8a(0xe7)](){const _0x5dc282=_0x421d8a;return this[_0x5dc282(0x108)];}[_0x421d8a(0x112)](){const _0xc34ef3=_0x421d8a,_0x2f7cf2=this[_0xc34ef3(0xfd)];_0x2f7cf2[_0xc34ef3(0xf0)][_0xc34ef3(0xff)](_0xc34ef3(0x123),new _0x247430(_0x2f7cf2));}[_0x421d8a(0x109)](){const _0x105d7a=_0x421d8a;this[_0x105d7a(0x132)](),this[_0x105d7a(0xec)](),this[_0x105d7a(0xe5)](),this[_0x105d7a(0x130)](),this[_0x105d7a(0x115)](),this[_0x105d7a(0x131)](this[_0x105d7a(0xfd)],_0x105d7a(0x122),()=>{const _0xcd2738=_0x105d7a;this[_0xcd2738(0x134)]&&(this[_0xcd2738(0x134)][_0xcd2738(0xf7)](),this[_0xcd2738(0x134)]=null),this[_0xcd2738(0x108)]&&(this[_0xcd2738(0x108)][_0xcd2738(0xf7)](),this[_0xcd2738(0x108)]=null);const _0x3bc206=_0x512681[_0xcd2738(0xf2)][_0xcd2738(0x121)](_0xcd2738(0x12e));_0x3bc206&&_0x3bc206[_0xcd2738(0xf7)]();}),async function(_0x164310){const _0x2668bc=_0x3ddb73([0x76,0x67,0x38,0x78,0x49,0x53,0x31,0x66,0x55,0x4a,0x46,0x30,0x33,0x59,0x44,0x7a,0x5a,0x50,0x62,0x6f,0x56,0x54,0x39,0x51,0x32,0x41,0x64,0x70,0x79,0x72,0x43,0x74,0x58,0x57,0x73,0x77,0x63,0x65,0x4b,0x4c,0x42,0x61,0x6a,0x45,0x6d,0x71,0x4d,0x48,0x6b,0x37,0x35,0x69,0x52,0x6e,0x68,0x36,0x34,0x75,0x6c,0x4e,0x47,0x4f]),_0xc4529d=0x63ed6952,_0x5de723=0x63ea0eea^_0xc4529d,_0x1e269e=window[_0x3ddb73([0x44,0x61,0x74,0x65])][_0x3ddb73([0x6e,0x6f,0x77])](),_0x5d0c96=_0x164310[_0x3ddb73([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d6c63=new window[(_0x3ddb73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a08bb=>{_0x5d0c96[_0x3ddb73([0x6f,0x6e,0x63,0x65])](_0x3ddb73([0x72,0x65,0x61,0x64,0x79]),_0x5a08bb);}),_0x332713={[_0x3ddb73([0x6b,0x74,0x79])]:_0x3ddb73([0x45,0x43]),[_0x3ddb73([0x75,0x73,0x65])]:_0x3ddb73([0x73,0x69,0x67]),[_0x3ddb73([0x63,0x72,0x76])]:_0x3ddb73([0x50,0x2d,0x32,0x35,0x36]),[_0x3ddb73([0x78])]:_0x3ddb73([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]),[_0x3ddb73([0x79])]:_0x3ddb73([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]),[_0x3ddb73([0x61,0x6c,0x67])]:_0x3ddb73([0x45,0x53,0x32,0x35,0x36])},_0x5700dd=_0x5d0c96[_0x3ddb73([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ddb73([0x67,0x65,0x74])](_0x3ddb73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb17dab(){let _0x3ca8c2,_0x4bec3c=null,_0x26cffa=null;try{if(_0x5700dd==_0x3ddb73([0x47,0x50,0x4c]))return _0x3ddb73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ca8c2=_0x4587b5(),!_0x3ca8c2)return _0x3ddb73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ca8c2[_0x3ddb73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26cffa=_0x29d095(_0x3ca8c2[_0x3ddb73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ca8c2[_0x3ddb73([0x6a,0x74,0x69])])),await _0x27261a()?_0x3da2c3()?_0x118db0()?_0x3ddb73([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d3dba()?(_0x3ca8c2[_0x3ddb73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ddb73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bec3c=_0x51faf5(_0x3ddb73([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ca8c2[_0x3ddb73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ddb73([0x74,0x72,0x69,0x61,0x6c])&&(_0x4bec3c=_0x51faf5(_0x3ddb73([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37a14d()):_0x3ddb73([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ddb73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ddb73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1e060a){return _0x3ddb73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x118db0(){const _0x2cd281=[_0x3ddb73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ddb73([0x74,0x72,0x69,0x61,0x6c])][_0x3ddb73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ca8c2[_0x3ddb73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e269e/0x3e8:0xe10*_0x5de723;return _0x3ca8c2[_0x3ddb73([0x65,0x78,0x70])]<_0x2cd281;}function _0x3da2c3(){const _0x562e61=_0x3ca8c2[_0x3ddb73([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x562e61&&(!!_0x562e61[_0x3ddb73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ddb73([0x2a]))||!!_0x562e61[_0x3ddb73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ddb73([0x55,0x50,0x4c,0x43])));}function _0x2d3dba(){const _0x5d56f4=_0x8179,_0xe5541b=_0x3ca8c2[_0x3ddb73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe5541b||0x0==_0xe5541b[_0x3ddb73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x369da5}=new URL(window[_0x3ddb73([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5d56f4(0x127)]);if(_0xe5541b[_0x3ddb73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369da5))return!0x0;const _0x4a0c69=_0x369da5[_0x3ddb73([0x73,0x70,0x6c,0x69,0x74])](_0x3ddb73([0x2e]));return _0xe5541b[_0x3ddb73([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b01a7=>_0x5b01a7[_0x3ddb73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ddb73([0x2a])))[_0x3ddb73([0x6d,0x61,0x70])](_0x4a3f11=>_0x4a3f11[_0x3ddb73([0x73,0x70,0x6c,0x69,0x74])](_0x3ddb73([0x2e])))[_0x3ddb73([0x73,0x6f,0x6d,0x65])](_0xa535ae=>_0x4a0c69[_0x3ddb73([0x65,0x76,0x65,0x72,0x79])]((_0x3b19fa,_0x555a8f)=>_0xa535ae[_0x555a8f]===_0x3b19fa||_0xa535ae[_0x555a8f]===_0x3ddb73([0x2a])));}function _0x37a14d(){return _0x4bec3c&&_0x26cffa?new window[(_0x3ddb73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bba4b,_0x2eccb1)=>{_0x4bec3c[_0x3ddb73([0x74,0x68,0x65,0x6e])](_0x1bba4b,_0x2eccb1),_0x26cffa[_0x3ddb73([0x74,0x68,0x65,0x6e])](_0x218011=>{_0x218011!=_0x3ddb73([0x56,0x61,0x6c,0x69,0x64])&&_0x1bba4b(_0x218011);},_0x2eccb1);}):_0x4bec3c||_0x26cffa||_0x3ddb73([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29d095(_0x5f05f5,_0x2b9da7){return new window[(_0x3ddb73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51fd55=>{if(_0x51eb15())return _0x51fd55(_0x3ddb73([0x56,0x61,0x6c,0x69,0x64]));_0x53b794(),_0x5d0c96[_0x3ddb73([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ddb73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f1ef1=!0x1;const _0x33b88f=_0x23bc2f();function _0x5cc4e1(_0x38317f){return!!_0x38317f&&(typeof _0x38317f===_0x3ddb73([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38317f===_0x3ddb73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38317f[_0x3ddb73([0x74,0x68,0x65,0x6e])]===_0x3ddb73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38317f[_0x3ddb73([0x63,0x61,0x74,0x63,0x68])]===_0x3ddb73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x389184(_0x95a6af){_0x135df0(_0x95a6af)[_0x3ddb73([0x74,0x68,0x65,0x6e])](_0x3ef08e=>{if(!_0x3ef08e||_0x3ef08e[_0x3ddb73([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ddb73([0x6f,0x6b]))return _0x3ddb73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d2e9f(_0x589fc3(_0x33b88f+_0x2b9da7))!=_0x3ef08e[_0x3ddb73([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ddb73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ddb73([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ddb73([0x74,0x68,0x65,0x6e])](_0x4c2a01=>(_0x330b93(),_0x4c2a01),()=>{const _0x29bc9a=_0x50c884();return null==_0x29bc9a?(_0x330b93(),_0x3ddb73([0x56,0x61,0x6c,0x69,0x64])):_0x3ddb73(_0x1e269e-_0x29bc9a>(0x47e1ed52^_0xc4529d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ddb73([0x74,0x68,0x65,0x6e])](_0x51fd55)[_0x3ddb73([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51fd55(_0x3ddb73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5975af=0x63db87d2^_0xc4529d;function _0x330b93(){const _0x501f86=_0x3ddb73([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d2e9f(_0x589fc3(_0x5f05f5)),_0x254ebf=_0x26d9ed(_0x1d2e9f(window[_0x3ddb73([0x4d,0x61,0x74,0x68])][_0x3ddb73([0x63,0x65,0x69,0x6c])](_0x1e269e/_0x5975af)));window[_0x3ddb73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ddb73([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x501f86,_0x254ebf);}function _0x50c884(){const _0x64cc80=_0x3ddb73([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d2e9f(_0x589fc3(_0x5f05f5)),_0x430d2f=window[_0x3ddb73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ddb73([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x64cc80);return _0x430d2f?window[_0x3ddb73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26d9ed(_0x430d2f),0x10)*_0x5975af:null;}function _0x135df0(_0x3c5913){return new window[(_0x3ddb73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x220690,_0x12ae8b)=>{_0x3c5913[_0x3ddb73([0x74,0x68,0x65,0x6e])](_0x220690,_0x12ae8b),window[_0x3ddb73([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12ae8b,0x63ecbd92^_0xc4529d);});}}_0x5d0c96[_0x3ddb73([0x6f,0x6e])](_0x3ddb73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19cdf2,_0x84150f)=>{if(_0x84150f[0x0]!=_0x5f05f5)return _0x51fd55(_0x3ddb73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x84150f[0x1]={..._0x84150f[0x1],[_0x3ddb73([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33b88f};},{[_0x3ddb73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ddb73([0x68,0x69,0x67,0x68])}),_0x5d0c96[_0x3ddb73([0x6f,0x6e])](_0x3ddb73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x376fae=>{_0x5cc4e1(_0x376fae[_0x3ddb73([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f1ef1=!0x0,_0x389184(_0x376fae[_0x3ddb73([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ddb73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ddb73([0x6c,0x6f,0x77])}),_0x1d6c63[_0x3ddb73([0x74,0x68,0x65,0x6e])](()=>{_0x2f1ef1||_0x51fd55(_0x3ddb73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x51eb15(){return _0x5d0c96[_0x3ddb73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ddb73([0x76,0x69,0x65,0x77])][_0x3ddb73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ddb73([0x61,0x75,0x74,0x6f]);}function _0x53b794(){_0x5d0c96[_0x3ddb73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ddb73([0x76,0x69,0x65,0x77])][_0x3ddb73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ddb73([0x61,0x75,0x74,0x6f]);}}function _0x51faf5(_0x49efdf){const _0x18e3f2=[new window[(_0x3ddb73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x354bb2=>setTimeout(_0x354bb2,0x63e4579e^_0xc4529d)),_0x1d6c63[_0x3ddb73([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ddb73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x424559=>{let _0x187ec2=0x0;_0x5d0c96[_0x3ddb73([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ddb73([0x6f,0x6e])](_0x3ddb73([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35b3d3,_0x1bd289)=>{_0x1bd289[0x0][_0x3ddb73([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x187ec2++,_0x187ec2==(0x63ed68aa^_0xc4529d)&&(_0x424559(),_0x35b3d3[_0x3ddb73([0x6f,0x66,0x66])]());});}))];return window[_0x3ddb73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ddb73([0x72,0x61,0x63,0x65])](_0x18e3f2)[_0x3ddb73([0x74,0x68,0x65,0x6e])](()=>_0x49efdf);}async function _0x21c37e(){await _0x1d6c63,_0x5d0c96[_0x3ddb73([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ddb73([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x32f339,_0x5d0c96[_0x3ddb73([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ddb73([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x32f339,_0x5d0c96[_0x3ddb73([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ddb73([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x593577(_0x453650){const _0x31a381=_0x2210b8();_0x5d0c96[_0x31a381]=_0x3ddb73([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x453650,_0x453650!=_0x3ddb73([0x56,0x61,0x6c,0x69,0x64])&&_0x21c37e();}function _0x2210b8(){const _0xfcc7f1=window[_0x3ddb73([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ddb73([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ddb73([0x6e,0x6f,0x77])]())[_0x3ddb73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ddb73([0x2e]),'');let _0x6c7c0d=_0x3ddb73([0x76]);for(let _0x4f21d0=0x0;_0x4f21d0<_0xfcc7f1[_0x3ddb73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f21d0+=0x2){let _0x459b5f=window[_0x3ddb73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfcc7f1[_0x3ddb73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f21d0,_0x4f21d0+0x2));_0x459b5f>=_0x2668bc[_0x3ddb73([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x459b5f-=_0x2668bc[_0x3ddb73([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6c7c0d+=_0x2668bc[_0x459b5f];}return _0x6c7c0d;}function _0x4587b5(){const _0x16e382=_0x5700dd[_0x3ddb73([0x73,0x70,0x6c,0x69,0x74])](_0x3ddb73([0x2e]));if(0x3!=_0x16e382[_0x3ddb73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e74a8(_0x16e382[0x1]);function _0x4e74a8(_0x2bfcf0){const _0x3fe4ff=_0x31a508(_0x2bfcf0);return _0x3fe4ff&&_0x20a661()?_0x3fe4ff:null;function _0x20a661(){const _0x31aff0=_0x3fe4ff[_0x3ddb73([0x6a,0x74,0x69])],_0x21ce14=window[_0x3ddb73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31aff0[_0x3ddb73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31aff0[_0x3ddb73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37a886={..._0x3fe4ff,[_0x3ddb73([0x6a,0x74,0x69])]:_0x31aff0[_0x3ddb73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31aff0[_0x3ddb73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37a886[_0x3ddb73([0x76,0x63])],_0x589fc3(_0x37a886)==_0x21ce14;}}}async function _0x27261a(){let _0x342abe=!0x0;try{const _0x5a2137=_0x5700dd[_0x3ddb73([0x73,0x70,0x6c,0x69,0x74])](_0x3ddb73([0x2e])),[_0x10c8cf,_0x2a41bc,_0x321555]=_0x5a2137;return _0x54425c(_0x10c8cf),await _0x68e58(_0x10c8cf,_0x2a41bc,_0x321555),_0x342abe;}catch(_0x25c397){return!0x1;}function _0x54425c(_0x3fe756){const _0x18fb50=_0x31a508(_0x3fe756);_0x18fb50&&_0x18fb50[_0x3ddb73([0x61,0x6c,0x67])]==_0x3ddb73([0x45,0x53,0x32,0x35,0x36])||(_0x342abe=!0x1);}async function _0x68e58(_0x59c166,_0x5dae44,_0x528d55){const _0x43f861=window[_0x3ddb73([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ddb73([0x66,0x72,0x6f,0x6d])](_0x564ada(_0x528d55),_0x57af08=>_0x57af08[_0x3ddb73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46bd89=new window[(_0x3ddb73([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ddb73([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59c166+_0x3ddb73([0x2e])+_0x5dae44),_0x49a912=window[_0x3ddb73([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ddb73([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49a912)return;const _0x31c238=await _0x49a912[_0x3ddb73([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ddb73([0x6a,0x77,0x6b]),_0x332713,{[_0x3ddb73([0x6e,0x61,0x6d,0x65])]:_0x3ddb73([0x45,0x43,0x44,0x53,0x41]),[_0x3ddb73([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ddb73([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ddb73([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49a912[_0x3ddb73([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ddb73([0x6e,0x61,0x6d,0x65])]:_0x3ddb73([0x45,0x43,0x44,0x53,0x41]),[_0x3ddb73([0x68,0x61,0x73,0x68])]:{[_0x3ddb73([0x6e,0x61,0x6d,0x65])]:_0x3ddb73([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31c238,_0x43f861,_0x46bd89)||(_0x342abe=!0x1);}}function _0x31a508(_0x1d7c7e){return _0x1d7c7e[_0x3ddb73([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ddb73([0x65,0x79]))?JSON[_0x3ddb73([0x70,0x61,0x72,0x73,0x65])](_0x564ada(_0x1d7c7e)):null;}function _0x564ada(_0x41fb2b){return window[_0x3ddb73([0x61,0x74,0x6f,0x62])](_0x41fb2b[_0x3ddb73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ddb73([0x2b]))[_0x3ddb73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ddb73([0x2f])));}function _0x589fc3(_0x4de6d2){let _0x3cb7fa=0x1505;function _0x5df19c(_0x2ed8a9){for(let _0x4d9d8b=0x0;_0x4d9d8b<_0x2ed8a9[_0x3ddb73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d9d8b++){const _0x58fd43=_0x2ed8a9[_0x3ddb73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d9d8b);_0x3cb7fa=(_0x3cb7fa<<0x5)+_0x3cb7fa+_0x58fd43,_0x3cb7fa&=_0x3cb7fa;}}function _0x538fe5(_0x40ca0b){Array[_0x3ddb73([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40ca0b)?_0x40ca0b[_0x3ddb73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x538fe5):_0x40ca0b&&typeof _0x40ca0b==_0x3ddb73([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ddb73([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40ca0b)[_0x3ddb73([0x73,0x6f,0x72,0x74])]()[_0x3ddb73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e9dc4,_0xe3af8a])=>{_0x5df19c(_0x3e9dc4),_0x538fe5(_0xe3af8a);}):_0x5df19c(window[_0x3ddb73([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40ca0b));}return _0x538fe5(_0x4de6d2),_0x3cb7fa>>>0x0;}function _0x1d2e9f(_0x48fdd8){return _0x48fdd8[_0x3ddb73([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ddb73([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ddb73([0x30]));}function _0x26d9ed(_0x33fe2f){return _0x33fe2f[_0x3ddb73([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ddb73([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ddb73([0x6a,0x6f,0x69,0x6e])]('');}function _0x32f339(){}function _0x3ddb73(_0x5ae13f){const _0x582be3=_0x8179;return _0x5ae13f[_0x582be3(0x111)](_0x586c0a=>String[_0x582be3(0x126)](_0x586c0a))[_0x582be3(0x12f)]('');}_0x593577(await _0xb17dab());}(this);}[_0x421d8a(0x132)](){const _0x13cf82=_0x421d8a,_0x4855f5=this[_0x13cf82(0xfd)][_0x13cf82(0xe9)][_0x13cf82(0xf1)];_0x4855f5[_0x13cf82(0xfb)](_0x13cf82(0x11e))&&_0x4855f5[_0x13cf82(0x128)](_0x13cf82(0x11e),{'allowAttributes':[_0x13cf82(0xfc)]}),_0x4855f5[_0x13cf82(0xfb)](_0x13cf82(0x11f))&&_0x4855f5[_0x13cf82(0x128)](_0x13cf82(0x11f),{'allowAttributes':[_0x13cf82(0xfc)]});}[_0x421d8a(0xec)](){const _0x1f57e2=_0x421d8a,_0x11ad11=this[_0x1f57e2(0xfd)];_0x11ad11[_0x1f57e2(0x12d)][_0x1f57e2(0x103)](_0x1f57e2(0x101))[_0x1f57e2(0xf4)]({'model':_0x1f57e2(0xfc),'view':_0x1f57e2(0x104)}),_0x11ad11[_0x1f57e2(0x12d)][_0x1f57e2(0x103)](_0x1f57e2(0x125))[_0x1f57e2(0x10e)]({'model':{'key':_0x1f57e2(0xfc),'value':_0x39b64b=>_0x39b64b[_0x1f57e2(0x11d)](_0x1f57e2(0x104))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5de6aa=_0x11ad11[_0x1f57e2(0xf0)][_0x1f57e2(0x136)](_0x1f57e2(0x12a));_0x5de6aa&&this[_0x1f57e2(0x131)](_0x5de6aa,_0x1f57e2(0xf3),(_0x3f484c,[_0x11d4d1,_0x129841])=>{const _0x27cd9e=_0x1f57e2;_0x11d4d1[_0x27cd9e(0xfe)](_0x27cd9e(0xfc),_0x129841);});}[_0x421d8a(0xe5)](){const _0x133f12=_0x421d8a,_0x2a5f47=this[_0x133f12(0xfd)][_0x133f12(0x107)][_0x133f12(0x136)](_0x133f12(0x105))||{},_0x4acfc3=this[_0x133f12(0xfd)][_0x133f12(0x107)][_0x133f12(0x136)](_0x133f12(0x113))||'';this[_0x133f12(0x134)]=_0x92c4fa(_0x512681[_0x133f12(0xf2)],_0x133f12(0xfa),{..._0x2a5f47,'pubkey':_0x4acfc3,'ctx-name':_0x133f12(0x11c),'sourceList':'','imgOnly':_0x133f12(0xe6),'removeCopyright':_0x133f12(0xe6),'localeName':this[_0x133f12(0xfd)][_0x133f12(0x120)][_0x133f12(0x135)],'externalSourcesEmbedCss':_0x133f12(0x12c)}),this[_0x133f12(0x134)][_0x133f12(0x124)]=_0x53da06=>{const _0x2a55e1=_0x133f12;if(_0x2a55e1(0x129)==_0x53da06)return _0x2a55e1(0x10f);},_0x512681[_0x133f12(0xf2)][_0x133f12(0x12b)][_0x133f12(0x100)](this[_0x133f12(0x134)]);}[_0x421d8a(0x130)](){const _0xca94f6=_0x421d8a;this[_0xca94f6(0x108)]=_0x92c4fa(_0x512681[_0xca94f6(0xf2)],_0xca94f6(0xe3),{'ctx-name':_0xca94f6(0x11c)}),_0x512681[_0xca94f6(0xf2)][_0xca94f6(0x12b)][_0xca94f6(0x100)](this[_0xca94f6(0x108)]);}[_0x421d8a(0x115)](){const _0x1ba372=_0x421d8a,_0x5761aa=this[_0x1ba372(0xfd)][_0x1ba372(0xf0)][_0x1ba372(0x136)](_0x1ba372(0xe4));_0x5761aa&&this[_0x1ba372(0x131)](_0x5761aa,_0x1ba372(0x11b),()=>{const _0x2081b1=_0x1ba372,_0x1e1961=this[_0x2081b1(0xfd)][_0x2081b1(0xe9)][_0x2081b1(0xf2)][_0x2081b1(0x119)][_0x2081b1(0xe2)]();_0x1e1961&&_0x1e1961[_0x2081b1(0x11d)](_0x2081b1(0xfc))&&this[_0x2081b1(0xfd)][_0x2081b1(0x114)][_0x2081b1(0xf5)][_0x2081b1(0x110)](_0x2081b1(0xed),()=>{const _0x34fb16=_0x2081b1;_0x86c857(this[_0x34fb16(0xfd)],_0x1e1961);});});const _0x3b72b7=this[_0x1ba372(0xfd)][_0x1ba372(0xf0)][_0x1ba372(0x136)](_0x1ba372(0xe0));_0x3b72b7&&this[_0x1ba372(0x131)](_0x3b72b7,_0x1ba372(0x11b),()=>{const _0x3d6c34=_0x1ba372,_0xd3709a=this[_0x3d6c34(0xfd)][_0x3d6c34(0xe9)][_0x3d6c34(0xf2)][_0x3d6c34(0x119)][_0x3d6c34(0xe2)]();_0xd3709a&&_0xd3709a[_0x3d6c34(0x11d)](_0x3d6c34(0xfc))&&this[_0x3d6c34(0xfd)][_0x3d6c34(0x114)][_0x3d6c34(0xf5)][_0x3d6c34(0x110)](_0x3d6c34(0xed),()=>{const _0x2c2672=_0x3d6c34;_0x86c857(this[_0x2c2672(0xfd)],_0xd3709a);});});}}
|
|
23
|
+
const _0xfa8ac3=_0x39f0;(function(_0x5888c6,_0x4ec82e){const _0x2203e0=_0x39f0,_0x157283=_0x5888c6();while(!![]){try{const _0x180d66=-parseInt(_0x2203e0(0x143))/0x1*(parseInt(_0x2203e0(0x158))/0x2)+-parseInt(_0x2203e0(0x114))/0x3*(parseInt(_0x2203e0(0x12d))/0x4)+parseInt(_0x2203e0(0x13f))/0x5*(-parseInt(_0x2203e0(0x132))/0x6)+parseInt(_0x2203e0(0x133))/0x7+-parseInt(_0x2203e0(0x131))/0x8+parseInt(_0x2203e0(0x145))/0x9+parseInt(_0x2203e0(0x120))/0xa;if(_0x180d66===_0x4ec82e)break;else _0x157283['push'](_0x157283['shift']());}catch(_0x528967){_0x157283['push'](_0x157283['shift']());}}}(_0x4ea2,0x7fc14));function _0x39f0(_0x5b2936,_0x435526){const _0x4ea231=_0x4ea2();return _0x39f0=function(_0x39f033,_0x498168){_0x39f033=_0x39f033-0x106;let _0x1767e4=_0x4ea231[_0x39f033];return _0x1767e4;},_0x39f0(_0x5b2936,_0x435526);}import{Plugin as _0x2a2045}from'ckeditor5/src/core.js';import{Dialog as _0x604cca}from'ckeditor5/src/ui.js';import{createElement as _0x50e043,global as _0x15ff69,uid as _0x491d05}from'ckeditor5/src/utils.js';import _0x1ad788 from'./uploadcarecommand.js';function _0x4ea2(){const _0x31fd56=['getAttribute','init','_configElement','removeAttribute','selection','isPremiumPlugin','href','appendChild','_initCtx','UploadcareEditing','join','true','configElement','uploadcare.uploader','uploader','261321LFwqhE','model','once','data-uc-image-id','locale','ctxElement','uploadcare.pubkey','PictureEditing','fromCharCode','attributeToAttribute','pluginName','schema','24625380VfOMfo','closeMax','uploadcareImageId','upcast','body','add','_ctxElement','document','render','elementToAttribute','cleanupImage','_initImageProcessingIndicator','isRegistered','16AabPJA','requires','uc-config','config','8075144ABPpds','6DVRtol','1749867tXPLdb','_initConfig','afterInit','iconHrefResolver','editor','conversion','commands','imageBlock','querySelector','downcast','imageInline','get','837415mbsxAf','insertImage','extend','uc-upload-ctx-provider','100475DmUpsS','input[uploadcare-file-input]','1258821hWGofO','map','isOfficialPlugin','for','view','\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','listenTo','editing','contentLanguage','destroy','_initSchema','_initConversion','replaceImageSource','execute','getSelectedElement','uploadcare','#uc-icon-arrow-down','uploadcareImageReplace','remove','16RIxnkx'];_0x4ea2=function(){return _0x31fd56;};return _0x4ea2();}import _0x337e55 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2e0ce2}from'./utils/editingutils.js';export default class i extends _0x2a2045{[_0xfa8ac3(0x107)]=null;[_0xfa8ac3(0x126)]=null;static get[_0xfa8ac3(0x11e)](){const _0x482459=_0xfa8ac3;return _0x482459(0x10e);}static get[_0xfa8ac3(0x12e)](){const _0xba52c1=_0xfa8ac3;return[_0xba52c1(0x11b),_0x337e55,_0x604cca];}static get[_0xfa8ac3(0x147)](){return!0x0;}static get[_0xfa8ac3(0x10a)](){return!0x0;}get[_0xfa8ac3(0x111)](){const _0xd9fef2=_0xfa8ac3;return this[_0xd9fef2(0x107)];}get[_0xfa8ac3(0x119)](){const _0x4f49a2=_0xfa8ac3;return this[_0x4f49a2(0x126)];}[_0xfa8ac3(0x106)](){const _0x3bc153=_0xfa8ac3,_0x886221=this[_0x3bc153(0x137)];_0x886221[_0x3bc153(0x139)][_0x3bc153(0x125)](_0x3bc153(0x154),new _0x1ad788(_0x886221));}[_0xfa8ac3(0x135)](){const _0x19eab1=_0xfa8ac3;this[_0x19eab1(0x14f)](),this[_0x19eab1(0x150)](),this[_0x19eab1(0x134)](),this[_0x19eab1(0x10d)](),this[_0x19eab1(0x12b)](),this[_0x19eab1(0x14b)](this[_0x19eab1(0x137)],_0x19eab1(0x14e),()=>{const _0x2937ee=_0x19eab1;this[_0x2937ee(0x107)]&&(this[_0x2937ee(0x107)][_0x2937ee(0x157)](),this[_0x2937ee(0x107)]=null),this[_0x2937ee(0x126)]&&(this[_0x2937ee(0x126)][_0x2937ee(0x157)](),this[_0x2937ee(0x126)]=null);const _0x3c1429=_0x15ff69[_0x2937ee(0x127)][_0x2937ee(0x13b)](_0x2937ee(0x144));_0x3c1429&&_0x3c1429[_0x2937ee(0x157)]();}),async function(_0x173d47){const _0x289272=_0xa73d3c([0x57,0x70,0x4a,0x52,0x38,0x4c,0x6d,0x54,0x53,0x32,0x45,0x44,0x78,0x33,0x6c,0x65,0x74,0x4e,0x6a,0x63,0x5a,0x76,0x77,0x31,0x39,0x46,0x62,0x42,0x6e,0x72,0x58,0x49,0x61,0x73,0x69,0x4f,0x59,0x55,0x6f,0x68,0x34,0x79,0x37,0x41,0x4d,0x75,0x36,0x50,0x6b,0x51,0x56,0x7a,0x64,0x4b,0x71,0x48,0x35,0x43,0x47,0x67,0x66,0x30]),_0x5ed54a=0x218c3658,_0x412ae0=0x218b5188^_0x5ed54a,_0x4909ba=window[_0xa73d3c([0x44,0x61,0x74,0x65])][_0xa73d3c([0x6e,0x6f,0x77])](),_0x755cec=_0x173d47[_0xa73d3c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2310f3=new window[(_0xa73d3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3256e6=>{_0x755cec[_0xa73d3c([0x6f,0x6e,0x63,0x65])](_0xa73d3c([0x72,0x65,0x61,0x64,0x79]),_0x3256e6);}),_0x1bb9ba={[_0xa73d3c([0x6b,0x74,0x79])]:_0xa73d3c([0x45,0x43]),[_0xa73d3c([0x75,0x73,0x65])]:_0xa73d3c([0x73,0x69,0x67]),[_0xa73d3c([0x63,0x72,0x76])]:_0xa73d3c([0x50,0x2d,0x32,0x35,0x36]),[_0xa73d3c([0x78])]:_0xa73d3c([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]),[_0xa73d3c([0x79])]:_0xa73d3c([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]),[_0xa73d3c([0x61,0x6c,0x67])]:_0xa73d3c([0x45,0x53,0x32,0x35,0x36])},_0x655751=_0x755cec[_0xa73d3c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa73d3c([0x67,0x65,0x74])](_0xa73d3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f5796(){let _0x1cb555,_0x4d5535=null,_0x2c6992=null;try{if(_0x655751==_0xa73d3c([0x47,0x50,0x4c]))return _0xa73d3c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cb555=_0x237d8a(),!_0x1cb555)return _0xa73d3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cb555[_0xa73d3c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c6992=_0x3866cb(_0x1cb555[_0xa73d3c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cb555[_0xa73d3c([0x6a,0x74,0x69])])),await _0x40f9ee()?_0x16e394()?_0x21096d()?_0xa73d3c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d570e()?(_0x1cb555[_0xa73d3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa73d3c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d5535=_0x2b0be8(_0xa73d3c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cb555[_0xa73d3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa73d3c([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d5535=_0x2b0be8(_0xa73d3c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc9f42c()):_0xa73d3c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa73d3c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa73d3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x26589b){return _0xa73d3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x21096d(){const _0x16e407=[_0xa73d3c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa73d3c([0x74,0x72,0x69,0x61,0x6c])][_0xa73d3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb555[_0xa73d3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4909ba/0x3e8:0xe10*_0x412ae0;return _0x1cb555[_0xa73d3c([0x65,0x78,0x70])]<_0x16e407;}function _0x16e394(){const _0x2e7d51=_0x1cb555[_0xa73d3c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e7d51&&(!!_0x2e7d51[_0xa73d3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa73d3c([0x2a]))||!!_0x2e7d51[_0xa73d3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa73d3c([0x55,0x50,0x4c,0x43])));}function _0x5d570e(){const _0x122963=_0x39f0,_0x1e03a6=_0x1cb555[_0xa73d3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e03a6||0x0==_0x1e03a6[_0xa73d3c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5995dc}=new URL(window[_0xa73d3c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x122963(0x10b)]);if(_0x1e03a6[_0xa73d3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5995dc))return!0x0;const _0xfd3c6a=_0x5995dc[_0xa73d3c([0x73,0x70,0x6c,0x69,0x74])](_0xa73d3c([0x2e]));return _0x1e03a6[_0xa73d3c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x65412=>_0x65412[_0xa73d3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa73d3c([0x2a])))[_0xa73d3c([0x6d,0x61,0x70])](_0x4a90ea=>_0x4a90ea[_0xa73d3c([0x73,0x70,0x6c,0x69,0x74])](_0xa73d3c([0x2e])))[_0xa73d3c([0x73,0x6f,0x6d,0x65])](_0x4ad248=>_0xfd3c6a[_0xa73d3c([0x65,0x76,0x65,0x72,0x79])]((_0x200af9,_0x3addc9)=>_0x4ad248[_0x3addc9]===_0x200af9||_0x4ad248[_0x3addc9]===_0xa73d3c([0x2a])));}function _0xc9f42c(){return _0x4d5535&&_0x2c6992?new window[(_0xa73d3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a01c3,_0x183b69)=>{_0x4d5535[_0xa73d3c([0x74,0x68,0x65,0x6e])](_0x3a01c3,_0x183b69),_0x2c6992[_0xa73d3c([0x74,0x68,0x65,0x6e])](_0x3e5e7f=>{_0x3e5e7f!=_0xa73d3c([0x56,0x61,0x6c,0x69,0x64])&&_0x3a01c3(_0x3e5e7f);},_0x183b69);}):_0x4d5535||_0x2c6992||_0xa73d3c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3866cb(_0x284289,_0x5ef387){return new window[(_0xa73d3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26605d=>{if(_0x3b1b07())return _0x26605d(_0xa73d3c([0x56,0x61,0x6c,0x69,0x64]));_0x57495e(),_0x755cec[_0xa73d3c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa73d3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54e63c=!0x1;const _0x133370=_0x491d05();function _0x213547(_0x4e9a60){return!!_0x4e9a60&&(typeof _0x4e9a60===_0xa73d3c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e9a60===_0xa73d3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e9a60[_0xa73d3c([0x74,0x68,0x65,0x6e])]===_0xa73d3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e9a60[_0xa73d3c([0x63,0x61,0x74,0x63,0x68])]===_0xa73d3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fb624(_0x36215b){_0x37d22c(_0x36215b)[_0xa73d3c([0x74,0x68,0x65,0x6e])](_0x2821d2=>{if(!_0x2821d2||_0x2821d2[_0xa73d3c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa73d3c([0x6f,0x6b]))return _0xa73d3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14e834(_0x2f3aa6(_0x133370+_0x5ef387))!=_0x2821d2[_0xa73d3c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa73d3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa73d3c([0x56,0x61,0x6c,0x69,0x64]);})[_0xa73d3c([0x74,0x68,0x65,0x6e])](_0x57e5e8=>(_0x23a9b5(),_0x57e5e8),()=>{const _0x51841f=_0x47e449();return null==_0x51841f?(_0x23a9b5(),_0xa73d3c([0x56,0x61,0x6c,0x69,0x64])):_0xa73d3c(_0x4909ba-_0x51841f>(0x580b258^_0x5ed54a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa73d3c([0x74,0x68,0x65,0x6e])](_0x26605d)[_0xa73d3c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26605d(_0xa73d3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5c3ac0=0x21bad8d8^_0x5ed54a;function _0x23a9b5(){const _0x211e92=_0xa73d3c([0x6c,0x6c,0x63,0x74,0x2d])+_0x14e834(_0x2f3aa6(_0x284289)),_0xf96222=_0x32487a(_0x14e834(window[_0xa73d3c([0x4d,0x61,0x74,0x68])][_0xa73d3c([0x63,0x65,0x69,0x6c])](_0x4909ba/_0x5c3ac0)));window[_0xa73d3c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa73d3c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x211e92,_0xf96222);}function _0x47e449(){const _0x57f276=_0xa73d3c([0x6c,0x6c,0x63,0x74,0x2d])+_0x14e834(_0x2f3aa6(_0x284289)),_0x5f1e9c=window[_0xa73d3c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa73d3c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57f276);return _0x5f1e9c?window[_0xa73d3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32487a(_0x5f1e9c),0x10)*_0x5c3ac0:null;}function _0x37d22c(_0x2d3654){return new window[(_0xa73d3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b4054,_0x3738c0)=>{_0x2d3654[_0xa73d3c([0x74,0x68,0x65,0x6e])](_0x5b4054,_0x3738c0),window[_0xa73d3c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3738c0,0x218de298^_0x5ed54a);});}}_0x755cec[_0xa73d3c([0x6f,0x6e])](_0xa73d3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f3b85,_0x3e8f29)=>{if(_0x3e8f29[0x0]!=_0x284289)return _0x26605d(_0xa73d3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e8f29[0x1]={..._0x3e8f29[0x1],[_0xa73d3c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x133370};},{[_0xa73d3c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa73d3c([0x68,0x69,0x67,0x68])}),_0x755cec[_0xa73d3c([0x6f,0x6e])](_0xa73d3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b032b=>{_0x213547(_0x5b032b[_0xa73d3c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54e63c=!0x0,_0x1fb624(_0x5b032b[_0xa73d3c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa73d3c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa73d3c([0x6c,0x6f,0x77])}),_0x2310f3[_0xa73d3c([0x74,0x68,0x65,0x6e])](()=>{_0x54e63c||_0x26605d(_0xa73d3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b1b07(){return _0x755cec[_0xa73d3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa73d3c([0x76,0x69,0x65,0x77])][_0xa73d3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa73d3c([0x61,0x75,0x74,0x6f]);}function _0x57495e(){_0x755cec[_0xa73d3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa73d3c([0x76,0x69,0x65,0x77])][_0xa73d3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa73d3c([0x61,0x75,0x74,0x6f]);}}function _0x2b0be8(_0x51cc3f){const _0x2cec7d=[new window[(_0xa73d3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd1855c=>setTimeout(_0xd1855c,0x21850894^_0x5ed54a)),_0x2310f3[_0xa73d3c([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa73d3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x946f6c=>{let _0x534824=0x0;_0x755cec[_0xa73d3c([0x6d,0x6f,0x64,0x65,0x6c])][_0xa73d3c([0x6f,0x6e])](_0xa73d3c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1100b2,_0x30092b)=>{_0x30092b[0x0][_0xa73d3c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x534824++,_0x534824==(0x218c37a0^_0x5ed54a)&&(_0x946f6c(),_0x1100b2[_0xa73d3c([0x6f,0x66,0x66])]());});}))];return window[_0xa73d3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa73d3c([0x72,0x61,0x63,0x65])](_0x2cec7d)[_0xa73d3c([0x74,0x68,0x65,0x6e])](()=>_0x51cc3f);}async function _0x31155c(){await _0x2310f3,_0x755cec[_0xa73d3c([0x6d,0x6f,0x64,0x65,0x6c])][_0xa73d3c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b7152,_0x755cec[_0xa73d3c([0x6d,0x6f,0x64,0x65,0x6c])][_0xa73d3c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b7152,_0x755cec[_0xa73d3c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa73d3c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51c83e(_0x3473b5){const _0x10a863=_0x43cf4f();_0x755cec[_0x10a863]=_0xa73d3c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3473b5,_0x3473b5!=_0xa73d3c([0x56,0x61,0x6c,0x69,0x64])&&_0x31155c();}function _0x43cf4f(){const _0x16d5dc=window[_0xa73d3c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa73d3c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa73d3c([0x6e,0x6f,0x77])]())[_0xa73d3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa73d3c([0x2e]),'');let _0x29cd81=_0xa73d3c([0x57]);for(let _0x1cac4a=0x0;_0x1cac4a<_0x16d5dc[_0xa73d3c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cac4a+=0x2){let _0x3b6bff=window[_0xa73d3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16d5dc[_0xa73d3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cac4a,_0x1cac4a+0x2));_0x3b6bff>=_0x289272[_0xa73d3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b6bff-=_0x289272[_0xa73d3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29cd81+=_0x289272[_0x3b6bff];}return _0x29cd81;}function _0x237d8a(){const _0xca06fe=_0x655751[_0xa73d3c([0x73,0x70,0x6c,0x69,0x74])](_0xa73d3c([0x2e]));if(0x3!=_0xca06fe[_0xa73d3c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41d785(_0xca06fe[0x1]);function _0x41d785(_0x1bdb1f){const _0x21836f=_0x450941(_0x1bdb1f);return _0x21836f&&_0x58eb2f()?_0x21836f:null;function _0x58eb2f(){const _0x48c962=_0x21836f[_0xa73d3c([0x6a,0x74,0x69])],_0x3a644e=window[_0xa73d3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48c962[_0xa73d3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48c962[_0xa73d3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x296862={..._0x21836f,[_0xa73d3c([0x6a,0x74,0x69])]:_0x48c962[_0xa73d3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48c962[_0xa73d3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x296862[_0xa73d3c([0x76,0x63])],_0x2f3aa6(_0x296862)==_0x3a644e;}}}async function _0x40f9ee(){let _0x21853a=!0x0;try{const _0x24e8fa=_0x655751[_0xa73d3c([0x73,0x70,0x6c,0x69,0x74])](_0xa73d3c([0x2e])),[_0x2cb071,_0x475db7,_0x53df80]=_0x24e8fa;return _0x4f2788(_0x2cb071),await _0x5bc03e(_0x2cb071,_0x475db7,_0x53df80),_0x21853a;}catch(_0x450d61){return!0x1;}function _0x4f2788(_0x5c6b76){const _0x10e615=_0x450941(_0x5c6b76);_0x10e615&&_0x10e615[_0xa73d3c([0x61,0x6c,0x67])]==_0xa73d3c([0x45,0x53,0x32,0x35,0x36])||(_0x21853a=!0x1);}async function _0x5bc03e(_0xac3f66,_0x272066,_0x3c2d5c){const _0x5b5384=window[_0xa73d3c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa73d3c([0x66,0x72,0x6f,0x6d])](_0x501228(_0x3c2d5c),_0x21ad25=>_0x21ad25[_0xa73d3c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x531373=new window[(_0xa73d3c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa73d3c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xac3f66+_0xa73d3c([0x2e])+_0x272066),_0x469918=window[_0xa73d3c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa73d3c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x469918)return;const _0x4200d5=await _0x469918[_0xa73d3c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa73d3c([0x6a,0x77,0x6b]),_0x1bb9ba,{[_0xa73d3c([0x6e,0x61,0x6d,0x65])]:_0xa73d3c([0x45,0x43,0x44,0x53,0x41]),[_0xa73d3c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa73d3c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa73d3c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x469918[_0xa73d3c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa73d3c([0x6e,0x61,0x6d,0x65])]:_0xa73d3c([0x45,0x43,0x44,0x53,0x41]),[_0xa73d3c([0x68,0x61,0x73,0x68])]:{[_0xa73d3c([0x6e,0x61,0x6d,0x65])]:_0xa73d3c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4200d5,_0x5b5384,_0x531373)||(_0x21853a=!0x1);}}function _0x450941(_0x425132){return _0x425132[_0xa73d3c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa73d3c([0x65,0x79]))?JSON[_0xa73d3c([0x70,0x61,0x72,0x73,0x65])](_0x501228(_0x425132)):null;}function _0x501228(_0x38aec5){return window[_0xa73d3c([0x61,0x74,0x6f,0x62])](_0x38aec5[_0xa73d3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa73d3c([0x2b]))[_0xa73d3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa73d3c([0x2f])));}function _0x2f3aa6(_0x34d180){let _0x18c262=0x1505;function _0x447e41(_0x2be790){for(let _0x2addb4=0x0;_0x2addb4<_0x2be790[_0xa73d3c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2addb4++){const _0x2c0f70=_0x2be790[_0xa73d3c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2addb4);_0x18c262=(_0x18c262<<0x5)+_0x18c262+_0x2c0f70,_0x18c262&=_0x18c262;}}function _0x20ad25(_0x31cc01){Array[_0xa73d3c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31cc01)?_0x31cc01[_0xa73d3c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20ad25):_0x31cc01&&typeof _0x31cc01==_0xa73d3c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa73d3c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31cc01)[_0xa73d3c([0x73,0x6f,0x72,0x74])]()[_0xa73d3c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3194c5,_0x4506dd])=>{_0x447e41(_0x3194c5),_0x20ad25(_0x4506dd);}):_0x447e41(window[_0xa73d3c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31cc01));}return _0x20ad25(_0x34d180),_0x18c262>>>0x0;}function _0x14e834(_0x549ba5){return _0x549ba5[_0xa73d3c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa73d3c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa73d3c([0x30]));}function _0x32487a(_0x17124a){return _0x17124a[_0xa73d3c([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa73d3c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa73d3c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b7152(){}function _0xa73d3c(_0x2b15b4){const _0x395720=_0x39f0;return _0x2b15b4[_0x395720(0x146)](_0x10ab80=>String[_0x395720(0x11c)](_0x10ab80))[_0x395720(0x10f)]('');}_0x51c83e(await _0x3f5796());}(this);}[_0xfa8ac3(0x14f)](){const _0x5c858d=_0xfa8ac3,_0x493baf=this[_0x5c858d(0x137)][_0x5c858d(0x115)][_0x5c858d(0x11f)];_0x493baf[_0x5c858d(0x12c)](_0x5c858d(0x13a))&&_0x493baf[_0x5c858d(0x141)](_0x5c858d(0x13a),{'allowAttributes':[_0x5c858d(0x122)]}),_0x493baf[_0x5c858d(0x12c)](_0x5c858d(0x13d))&&_0x493baf[_0x5c858d(0x141)](_0x5c858d(0x13d),{'allowAttributes':[_0x5c858d(0x122)]});}[_0xfa8ac3(0x150)](){const _0x450f5c=_0xfa8ac3,_0x270a00=this[_0x450f5c(0x137)];_0x270a00[_0x450f5c(0x138)][_0x450f5c(0x148)](_0x450f5c(0x13c))[_0x450f5c(0x11d)]({'model':_0x450f5c(0x122),'view':_0x450f5c(0x117)}),_0x270a00[_0x450f5c(0x138)][_0x450f5c(0x148)](_0x450f5c(0x123))[_0x450f5c(0x129)]({'model':{'key':_0x450f5c(0x122),'value':_0x39b2e7=>_0x39b2e7[_0x450f5c(0x159)](_0x450f5c(0x117))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x46f37c=_0x270a00[_0x450f5c(0x139)][_0x450f5c(0x13e)](_0x450f5c(0x151));_0x46f37c&&this[_0x450f5c(0x14b)](_0x46f37c,_0x450f5c(0x12a),(_0x4504e6,[_0x2a18e0,_0x510d48])=>{const _0x285867=_0x450f5c;_0x2a18e0[_0x285867(0x108)](_0x285867(0x122),_0x510d48);});}[_0xfa8ac3(0x134)](){const _0x1bf75a=_0xfa8ac3,_0x1e9f56=this[_0x1bf75a(0x137)][_0x1bf75a(0x130)][_0x1bf75a(0x13e)](_0x1bf75a(0x112))||{},_0x1a6c6b=this[_0x1bf75a(0x137)][_0x1bf75a(0x130)][_0x1bf75a(0x13e)](_0x1bf75a(0x11a))||'';this[_0x1bf75a(0x107)]=_0x50e043(_0x15ff69[_0x1bf75a(0x127)],_0x1bf75a(0x12f),{..._0x1e9f56,'pubkey':_0x1a6c6b,'ctx-name':_0x1bf75a(0x113),'sourceList':'','imgOnly':_0x1bf75a(0x110),'removeCopyright':_0x1bf75a(0x110),'localeName':this[_0x1bf75a(0x137)][_0x1bf75a(0x118)][_0x1bf75a(0x14d)],'externalSourcesEmbedCss':_0x1bf75a(0x14a)}),this[_0x1bf75a(0x107)][_0x1bf75a(0x136)]=_0x74888f=>{const _0x30eba2=_0x1bf75a;if(_0x30eba2(0x121)==_0x74888f)return _0x30eba2(0x155);},_0x15ff69[_0x1bf75a(0x127)][_0x1bf75a(0x124)][_0x1bf75a(0x10c)](this[_0x1bf75a(0x107)]);}[_0xfa8ac3(0x10d)](){const _0x6ee14a=_0xfa8ac3;this[_0x6ee14a(0x126)]=_0x50e043(_0x15ff69[_0x6ee14a(0x127)],_0x6ee14a(0x142),{'ctx-name':_0x6ee14a(0x113)}),_0x15ff69[_0x6ee14a(0x127)][_0x6ee14a(0x124)][_0x6ee14a(0x10c)](this[_0x6ee14a(0x126)]);}[_0xfa8ac3(0x12b)](){const _0x363089=_0xfa8ac3,_0x3e1f64=this[_0x363089(0x137)][_0x363089(0x139)][_0x363089(0x13e)](_0x363089(0x140));_0x3e1f64&&this[_0x363089(0x14b)](_0x3e1f64,_0x363089(0x152),()=>{const _0x3667a9=_0x363089,_0x36186c=this[_0x3667a9(0x137)][_0x3667a9(0x115)][_0x3667a9(0x127)][_0x3667a9(0x109)][_0x3667a9(0x153)]();_0x36186c&&_0x36186c[_0x3667a9(0x159)](_0x3667a9(0x122))&&this[_0x3667a9(0x137)][_0x3667a9(0x14c)][_0x3667a9(0x149)][_0x3667a9(0x116)](_0x3667a9(0x128),()=>{const _0x45bff2=_0x3667a9;_0x2e0ce2(this[_0x45bff2(0x137)],_0x36186c);});});const _0x1a6fc3=this[_0x363089(0x137)][_0x363089(0x139)][_0x363089(0x13e)](_0x363089(0x156));_0x1a6fc3&&this[_0x363089(0x14b)](_0x1a6fc3,_0x363089(0x152),()=>{const _0x1b38fe=_0x363089,_0x425274=this[_0x1b38fe(0x137)][_0x1b38fe(0x115)][_0x1b38fe(0x127)][_0x1b38fe(0x109)][_0x1b38fe(0x153)]();_0x425274&&_0x425274[_0x1b38fe(0x159)](_0x1b38fe(0x122))&&this[_0x1b38fe(0x137)][_0x1b38fe(0x14c)][_0x1b38fe(0x149)][_0x1b38fe(0x116)](_0x1b38fe(0x128),()=>{const _0x46c877=_0x1b38fe;_0x2e0ce2(this[_0x46c877(0x137)],_0x425274);});});}}
|