@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.3 → 45.2.1-alpha.4
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 _0x397c76,Command as _0x1fc00a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x575e70,IconGooglePhotos as _0x3c5983,IconGoogleDrive as _0x27c4ac,IconFacebook as _0x2edc33,IconDropbox as _0x1b7b64,IconUploadcareLink as _0x3f29b2,IconUploadcareImageUpload as _0xce6a78,IconError as et,IconUploadcareImageEdit as _0x47daa7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x23acc8,MenuBarMenuListItemButtonView as _0x2c9576,View as _0x278397,FocusCycler as _0x381748,Dialog as _0x232ec6,DialogViewPosition as _0xd032e8,SpinnerView as _0x3dff89,IconView as at,Notification as _0xea9747}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x573cd8,DomEmitterMixin as _0x4b0f0b,global as _0x4123dd,getAncestors as _0x25ab62,ObservableMixin as _0x1ec15c,createElement as _0x26b0d3,uid as _0x440974}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xc8f136}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x22316e,info as _0x468e25}from'@uploadcare/upload-client';import*as _0x1a1f0b from'@uploadcare/file-uploader';var o=function(_0xe99225){return _0xe99225['Local']='local',_0xe99225['URL']='url',_0xe99225['Dropbox']='dropbox',_0xe99225['GDrive']='gdrive',_0xe99225['Facebook']='facebook',_0xe99225['GPhotos']='gphotos',_0xe99225['OneDrive']='onedrive',_0xe99225;}({});function _(_0x349b41,_0x3ecd76,_0x25c3ce){const t=_0x349b41['t'],_0x309399=_0x349b41['t'];switch(_0x3ecd76){case o['Local']:return{'text':_0x309399('Insert'===_0x25c3ce?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x309399('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x25c3ce?_0x309399('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x309399('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x25c3ce?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x25c3ce?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x25c3ce?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x25c3ce?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x25c3ce?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3ecd76;}}class e extends _0x397c76{['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 _0x2eae2b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa0fe3c;for(const _0x276c87 in _0x2eae2b){const _0x192887=_0x276c87,_0xfdda5a=_0x2eae2b[_0x192887];if('uploadcareLicenseKeyValid'==_0xfdda5a||'uploadcareLicenseKeyInvalid'==_0xfdda5a||'uploadcareLicenseKeyExpired'==_0xfdda5a||'uploadcareLicenseKeyDomainLimit'==_0xfdda5a||'uploadcareLicenseKeyNotAllowed'==_0xfdda5a||'uploadcareLicenseKeyEvaluationLimit'==_0xfdda5a||'uploadcareLicenseKeyTrialLimit'==_0xfdda5a||'uploadcareLicenseKeyUsageLimit'==_0xfdda5a){delete _0x2eae2b[_0x192887],_0xa0fe3c=_0xfdda5a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xa0fe3c&&_0x2eae2b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x176a53}=this,_0x3da48c=_0x176a53['commands']['get']('uploadcare');if(!_0x3da48c)return;const _0x6d35f2=this['_normalizeConfigSourceList'](_0x176a53['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x11fbe4,_0x3026fb)=>{const _0xfbee59=this['_getIntegrationKey'](_0x3026fb['type']);return _0x11fbe4[_0xfbee59]||(_0x11fbe4[_0xfbee59]=[]),_0x11fbe4[_0xfbee59]['push'](_0x3026fb),_0x11fbe4;},{});_0x176a53['plugins']['has']('ImageInsertUI')&&_0x176a53['commands']['get']('uploadcare')&&Object['entries'](_0x6d35f2)['forEach'](([_0x4401eb,_0x5d502a])=>{_0x176a53['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4401eb,'observable':()=>_0x3da48c,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5d502a),'formViewCreator':()=>this['_createDropdownButtons'](_0x5d502a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5d502a),'override':'assetManager'!==_0x4401eb});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x30c355){const {locale:_0x4e5d86}=this['editor'];return _0x30c355['map'](_0x378ec5=>{const _0x3d1a25=_(_0x4e5d86,_0x378ec5,'Insert');switch(_0x378ec5){case o['Local']:return{'icon':_0xce6a78,'type':o['Local'],..._0x3d1a25};case o['URL']:return{'icon':_0x3f29b2,'type':o['URL'],..._0x3d1a25};case o['Dropbox']:return{'icon':_0x1b7b64,'type':o['Dropbox'],..._0x3d1a25};case o['Facebook']:return{'icon':_0x2edc33,'type':o['Facebook'],..._0x3d1a25};case o['GDrive']:return{'icon':_0x27c4ac,'type':o['GDrive'],..._0x3d1a25};case o['GPhotos']:return{'icon':_0x3c5983,'type':o['GPhotos'],..._0x3d1a25};case o['OneDrive']:return{'icon':_0x575e70,'type':o['OneDrive'],..._0x3d1a25};}});}['_getIntegrationKey'](_0x3d83ca){switch(_0x3d83ca){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x129472,_0x4f7e43){const _0x50a9b7=this['editor'],_0x8384e4=new _0x129472(_0x50a9b7['locale']),_0x43f3e1=_0x50a9b7['commands']['get']('uploadcare');return _0x8384e4['bind']('isEnabled')['to'](_0x43f3e1),_0x8384e4['on']('execute',()=>{_0x43f3e1['execute'](_0x4f7e43);}),_0x8384e4;}['_createToolbarButton'](_0x75020b){const {locale:_0x165afe}=this['editor'],_0x3eb51a=this['editor']['plugins']['get']('ImageInsertUI'),_0x4af2a4=_0x75020b[0x0],_0x1ecd04=this['_createButton'](_0x23acc8,_0x4af2a4['type']);return _0x1ecd04['icon']=_0x4af2a4['icon'],_0x1ecd04['bind']('label')['to'](_0x3eb51a,'isImageSelected',_0x46660d=>_(_0x165afe,_0x4af2a4['type'],_0x46660d?'Replace':'Insert')['text']),_0x1ecd04['tooltip']=!0x0,_0x1ecd04;}['_createDropdownButtons'](_0x23e8f6){const {locale:_0x552d77}=this['editor'],_0x6b9e4f=this['editor']['plugins']['get']('ImageInsertUI');return _0x23e8f6['map'](_0x2d0dcc=>{const _0xd38a2d=this['_createButton'](_0x23acc8,_0x2d0dcc['type']);return _0xd38a2d['withText']=!0x0,_0xd38a2d['icon']=_0x2d0dcc['icon'],_0xd38a2d['bind']('label')['to'](_0x6b9e4f,'isImageSelected',_0x1042d5=>_(_0x552d77,_0x2d0dcc['type'],_0x1042d5?'Replace':'Insert')['text']),_0xd38a2d;});}['_createMenuBarButtons'](_0x4ac7c7){return _0x4ac7c7['map'](_0x21ca88=>{const _0x48bcac=this['_createButton'](_0x2c9576,_0x21ca88['type']);return _0x48bcac['icon']=_0x21ca88['icon'],_0x48bcac['label']=_0x21ca88['shortText'],_0x48bcac;});}}class q extends _0x278397{['focusTracker'];['focusCycler'];constructor(_0xece217){super(_0xece217),this['focusTracker']=new _0x573cd8(),this['focusCycler']=new _0x381748({'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(_0x26918b){super(_0x26918b),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(_0x12fca3,_0x3fc75f){const _0x46c3ae=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3a43dd=>_0x3a43dd<=_0x3fc75f)['map'](_0x3146be=>_0x12fca3['replace'](/\/$/,'')+'/-/resize/'+_0x3146be+'x/\x20'+_0x3146be+'w');return{'imageFallbackUrl':_0x12fca3,'imageSources':[{'srcset':_0x46c3ae['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3fc75f+'px)\x20100vw,\x20'+_0x3fc75f+'px','type':'image/webp'}]};}function A(_0x47c71d,_0x5df130,_0x401935){const _0x42ae75=_0x47c71d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x42ae75?parseInt(_0x42ae75[0x1],0xa):_0x5df130,'height':_0x42ae75?parseInt(_0x42ae75[0x2],0xa):_0x401935};}function m(_0x4ae9f3,_0x202aaf){const _0x234094=Object['create'](_0x4b0f0b),_0x6f6a4e=_0x4ae9f3['plugins']['get']('ImageUtils'),_0x32531a=_0x4ae9f3['editing']['mapper']['toViewElement'](_0x202aaf),_0x2fedb1=_0x6f6a4e['findViewImgElement'](_0x32531a),_0x277955=_0x4ae9f3['editing']['view']['domConverter']['viewToDom'](_0x2fedb1),_0x3d31e6=_0x202aaf['getAttribute']('width'),_0x3bac12=_0x202aaf['getAttribute']('height'),_0x2d50ce='image-processing';_0x4ae9f3['editing']['view']['change'](_0x3d15c7=>{_0x3d15c7['addClass'](_0x2d50ce,_0x32531a),_0x3d15c7['setStyle']('aspect-ratio',_0x3d31e6+'/'+_0x3bac12,_0x2fedb1);}),_0x234094['listenTo'](_0x277955,'load',()=>{_0x234094['stopListening'](_0x277955,'load'),_0x4ae9f3['editing']['view']['change'](_0x6032c2=>{_0x6032c2['removeClass'](_0x2d50ce,_0x32531a),_0x6032c2['removeStyle']('aspect-ratio',_0x2fedb1);});});}function V(_0x46d257){if(Array['isArray'](_0x46d257)){const _0xe38140=_0x46d257['map'](V);return _0x4b7536=>_0xe38140['some'](_0xd47291=>_0xd47291(_0x4b7536));}if('origin'==_0x46d257){const _0x4d9095=_0x4123dd['window']['location']['origin'];return _0x413b3d=>new URL(_0x413b3d,_0x4123dd['document']['baseURI'])['origin']==_0x4d9095;}return'function'==typeof _0x46d257?_0x46d257:_0x46d257 instanceof RegExp?_0x26db61=>!(!_0x26db61['match'](_0x46d257)&&!_0x26db61['replace'](/^https?:\/\//,'')['match'](_0x46d257)):()=>!0x1;}function F(_0x1f96c1,_0x44c59a){return _0x25ab62(_0x1f96c1['target'])['includes'](_0x44c59a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1ec15c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4d42bf,_0x41b7af,_0x5ea8f2){super(),this['_editor']=_0x4d42bf,this['_editing']=_0x41b7af,this['_dialog']=_0x4d42bf['plugins']['get'](_0x232ec6),this['_api']=_0x41b7af['ctxElement']['getAPI'](),this['_type']=_0x5ea8f2,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:_0x2c573b,model:_0x5a0580}=this['_editor'],_0x35184e=_0x5a0580['document']['selection']['getSelectedElement'](),_0xe1880=_0x35184e&&(_0x35184e['is']('element','imageBlock')||_0x35184e['is']('element','imageInline'));this['_formView']=new S(_0x2c573b),this['_dialog']['show']({'id':'uploadCare','icon':_0xce6a78,'title':_(_0x2c573b,this['_type'],_0xe1880?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xd032e8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ca1d2=>!F(_0x2ca1d2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x23de3d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x155b19=>{const _0x3a9679=_0x23de3d['length'];for(const _0x34a8b8 of _0x23de3d){const _0x305109=_0x34a8b8===_0x23de3d[_0x3a9679-0x1],{cdnUrl:_0x394f20,fileInfo:_0x59c666}=_0x34a8b8;if(!_0x394f20||!_0x59c666)continue;const {width:_0x17b3d8,height:_0x378262}=_0x59c666['imageInfo'],_0x3b39c9=A(_0x394f20,_0x17b3d8,_0x378262),_0xe7958d=E(_0x394f20,_0x3b39c9['width']),_0xe522b1={'id':_0x59c666['uuid'],'type':'image','attributes':{'imageDimension':_0x3b39c9,..._0xe7958d}};this['_insertAsset'](_0xe522b1,_0x305109,_0x155b19);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2d9bc3=>{'idle'===_0x2d9bc3['detail']['status']&&!_0x2d9bc3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2c9603,_0x4f1702,_0x4100c4){const _0x2c8aed=this['_editor']['model']['document']['selection'],_0x58bfcc=_0x2c8aed['getSelectedElement'](),_0x4e7b30=!(!_0x58bfcc||!_0x58bfcc['is']('element','imageInline'));_0x4100c4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2c9603,_0x4e7b30),_0x4f1702||_0x4100c4['setSelection'](_0x2c8aed['getLastPosition']());}['_insertImage'](_0x22224e,_0x53c727){const _0x5a06ab=this['_editor'],{imageDimension:_0x449c5c,imageFallbackUrl:_0x354612,imageSources:_0x392900}=_0x22224e['attributes'];_0x5a06ab['execute']('insertImage',{'imageType':_0x53c727?'imageInline':null,'source':{'uploadcareImageId':_0x22224e['id'],'src':_0x354612,'sources':_0x392900,..._0x449c5c}});}}class n extends _0x1fc00a{['_editing'];['_controller']=null;static get['requires'](){return[_0x232ec6,i];}constructor(_0x369d72){super(_0x369d72),this['_editing']=_0x369d72['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2db93f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2db93f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x37219f,publicKey:_0x96924a,signal:_0x2a19d8,onProgress:_0x5c6327}){return _0x22316e(_0x37219f,{'publicKey':_0x96924a,'store':'auto','signal':_0x2a19d8,'onProgress':_0x5c6327});}static['getInfo'](_0xe929ce,_0x3fba8b){return _0x468e25(_0xe929ce,_0x3fba8b);}}class p extends _0x397c76{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xc8f136,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4cbc0e=this['editor'];if(!!!_0x4cbc0e['config']['get']('uploadcare'))return;_0x4cbc0e['plugins']['get'](_0xc8f136)['createUploadAdapter']=_0x5c8409=>new x(_0x5c8409,_0x4cbc0e),_0x4cbc0e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4fbab4,{imageElement:_0x4121f7,data:_0x60b470})=>{_0x4cbc0e['model']['change'](_0x47c3c9=>{_0x47c3c9['setAttribute']('uploadcareImageId',_0x60b470['uploadcareImageId'],_0x4121f7);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xbe5551,_0x339cb4){this['loader']=_0xbe5551,this['editor']=_0x339cb4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5bde18=this['editor']['config']['get']('uploadcare.pubkey'),_0x4af2ff=await this['loader']['file'];return C['upload']({'file':_0x4af2ff,'publicKey':_0x5bde18,'signal':this['controller']['signal'],'onProgress':_0x45b6f3=>{_0x45b6f3&&_0x45b6f3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x45b6f3['value']);}})['then'](async _0xa3e96a=>{const {imageFallbackUrl:_0xb90ce7,imageSources:_0x3e5541}=E(_0xa3e96a['cdnUrl'],_0xa3e96a['imageInfo']['width']);return{'uploadcareImageId':_0xa3e96a['uuid'],'default':_0xb90ce7,'sources':_0x3e5541};})['catch'](()=>{const _0x4555da=t('Cannot\x20upload\x20file:')+('\x20'+_0x4af2ff['name']+'.');return Promise['reject'](_0x4555da);});}['abort'](){this['controller']['abort']();}}class i extends _0x397c76{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x232ec6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x463cf1=this['editor'];_0x463cf1['commands']['add']('uploadcare',new n(_0x463cf1));}['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 _0x1a99d5=_0x4123dd['document']['querySelector']('input[uploadcare-file-input]');_0x1a99d5&&_0x1a99d5['remove']();}),async function(_0xc7cb0d){const _0x4fb25f=_0x5c492e([0x62,0x35,0x74,0x42,0x5a,0x46,0x41,0x53,0x68,0x50,0x63,0x73,0x52,0x56,0x79,0x69,0x36,0x45,0x48,0x49,0x47,0x33,0x4c,0x70,0x39,0x54,0x75,0x76,0x43,0x30,0x57,0x72,0x64,0x31,0x44,0x6b,0x67,0x51,0x4e,0x77,0x59,0x65,0x7a,0x4b,0x71,0x6c,0x6a,0x37,0x58,0x4a,0x38,0x4f,0x32,0x4d,0x66,0x6d,0x34,0x6e,0x6f,0x61,0x78,0x55]),_0x1da3bf=0xc508695,_0x1eb274=0xc57ec7d^_0x1da3bf,_0x18c8a4=window[_0x5c492e([0x44,0x61,0x74,0x65])][_0x5c492e([0x6e,0x6f,0x77])](),_0xceb02d=_0xc7cb0d[_0x5c492e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e6d9b=new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b17ea=>{_0xceb02d[_0x5c492e([0x6f,0x6e,0x63,0x65])](_0x5c492e([0x72,0x65,0x61,0x64,0x79]),_0x3b17ea);}),_0x424f86={[_0x5c492e([0x6b,0x74,0x79])]:_0x5c492e([0x45,0x43]),[_0x5c492e([0x75,0x73,0x65])]:_0x5c492e([0x73,0x69,0x67]),[_0x5c492e([0x63,0x72,0x76])]:_0x5c492e([0x50,0x2d,0x32,0x35,0x36]),[_0x5c492e([0x78])]:_0x5c492e([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]),[_0x5c492e([0x79])]:_0x5c492e([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]),[_0x5c492e([0x61,0x6c,0x67])]:_0x5c492e([0x45,0x53,0x32,0x35,0x36])},_0x1211bd=_0xceb02d[_0x5c492e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c492e([0x67,0x65,0x74])](_0x5c492e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1de870(){let _0xfdf38d,_0x5b0e6c=null,_0x2c3ee2=null;try{if(_0x1211bd==_0x5c492e([0x47,0x50,0x4c]))return _0x5c492e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfdf38d=_0x572432(),!_0xfdf38d)return _0x5c492e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfdf38d[_0x5c492e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c3ee2=_0x178a37(_0xfdf38d[_0x5c492e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfdf38d[_0x5c492e([0x6a,0x74,0x69])])),await _0x25ec08()?_0x4c749f()?_0x5b178c()?_0x5c492e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x992a79()?(_0xfdf38d[_0x5c492e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c492e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b0e6c=_0x169b93(_0x5c492e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xfdf38d[_0x5c492e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c492e([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b0e6c=_0x169b93(_0x5c492e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x302d10()):_0x5c492e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c492e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c492e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c492e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b178c(){const _0x5226bf=[_0x5c492e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c492e([0x74,0x72,0x69,0x61,0x6c])][_0x5c492e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfdf38d[_0x5c492e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18c8a4/0x3e8:0xe10*_0x1eb274;return _0xfdf38d[_0x5c492e([0x65,0x78,0x70])]<_0x5226bf;}function _0x4c749f(){const _0x142bea=_0xfdf38d[_0x5c492e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x142bea&&(!!_0x142bea[_0x5c492e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c492e([0x2a]))||!!_0x142bea[_0x5c492e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c492e([0x55,0x50,0x4c,0x43])));}function _0x992a79(){const _0x6d701f=_0xfdf38d[_0x5c492e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6d701f||0x0==_0x6d701f[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42a546}=new URL(window[_0x5c492e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6d701f[_0x5c492e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a546))return!0x0;const _0x1b7283=_0x42a546[_0x5c492e([0x73,0x70,0x6c,0x69,0x74])](_0x5c492e([0x2e]));return _0x6d701f[_0x5c492e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c1bec=>_0x3c1bec[_0x5c492e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c492e([0x2a])))[_0x5c492e([0x6d,0x61,0x70])](_0x28ecd5=>_0x28ecd5[_0x5c492e([0x73,0x70,0x6c,0x69,0x74])](_0x5c492e([0x2e])))[_0x5c492e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x285385=>_0x285385[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b7283[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c492e([0x6d,0x61,0x70])](_0x4c3297=>Array(_0x1b7283[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c3297[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c492e([0x66,0x69,0x6c,0x6c])](_0x4c3297[0x0]===_0x5c492e([0x2a])?_0x5c492e([0x2a]):'')[_0x5c492e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c3297))[_0x5c492e([0x73,0x6f,0x6d,0x65])](_0x9b46d9=>_0x1b7283[_0x5c492e([0x65,0x76,0x65,0x72,0x79])]((_0x65d5f4,_0x1f46a0)=>_0x9b46d9[_0x1f46a0]===_0x65d5f4||_0x9b46d9[_0x1f46a0]===_0x5c492e([0x2a])));}function _0x302d10(){return _0x5b0e6c&&_0x2c3ee2?new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ab9bc,_0x4f86f0)=>{_0x5b0e6c[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x3ab9bc,_0x4f86f0),_0x2c3ee2[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x5f2eca=>{_0x5f2eca!=_0x5c492e([0x56,0x61,0x6c,0x69,0x64])&&_0x3ab9bc(_0x5f2eca);},_0x4f86f0);}):_0x5b0e6c||_0x2c3ee2||_0x5c492e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x178a37(_0x3b990f,_0x3e41fe){return new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c31e9=>{if(_0x52fe2c())return _0x1c31e9(_0x5c492e([0x56,0x61,0x6c,0x69,0x64]));_0x5a9387(),_0xceb02d[_0x5c492e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c492e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x560069=!0x1;const _0xe74ae9=_0x440974();function _0x204695(_0x3aca72){return!!_0x3aca72&&(typeof _0x3aca72===_0x5c492e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3aca72===_0x5c492e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3aca72[_0x5c492e([0x74,0x68,0x65,0x6e])]===_0x5c492e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3aca72[_0x5c492e([0x63,0x61,0x74,0x63,0x68])]===_0x5c492e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x291b1d(_0x12fcf6){_0x28501d(_0x12fcf6)[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x3a1421=>{if(!_0x3a1421||_0x3a1421[_0x5c492e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c492e([0x6f,0x6b]))return _0x5c492e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3320bc(_0x373966(_0xe74ae9+_0x3e41fe))!=_0x3a1421[_0x5c492e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c492e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c492e([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x21ab91=>(_0x24941b(),_0x21ab91),()=>{const _0x497620=_0x19e214();return null==_0x497620?(_0x24941b(),_0x5c492e([0x56,0x61,0x6c,0x69,0x64])):_0x5c492e(_0x18c8a4-_0x497620>(0x285c0295^_0x1da3bf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x1c31e9)[_0x5c492e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c31e9(_0x5c492e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x19e3c4=0xc666815^_0x1da3bf;function _0x24941b(){const _0x1ba995=_0x5c492e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3320bc(_0x373966(_0x3b990f)),_0x37de02=_0x3457ce(_0x3320bc(window[_0x5c492e([0x4d,0x61,0x74,0x68])][_0x5c492e([0x63,0x65,0x69,0x6c])](_0x18c8a4/_0x19e3c4)));window[_0x5c492e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c492e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ba995,_0x37de02);}function _0x19e214(){const _0x5077da=_0x5c492e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3320bc(_0x373966(_0x3b990f)),_0x5bb4e9=window[_0x5c492e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c492e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5077da);return _0x5bb4e9?window[_0x5c492e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3457ce(_0x5bb4e9),0x10)*_0x19e3c4:null;}function _0x28501d(_0x49306c){return new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cf67e,_0x2322bc)=>{_0x49306c[_0x5c492e([0x74,0x68,0x65,0x6e])](_0x5cf67e,_0x2322bc),window[_0x5c492e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2322bc,0xc515255^_0x1da3bf);});}}_0xceb02d[_0x5c492e([0x6f,0x6e])](_0x5c492e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1766c8,_0x8933ad)=>{if(_0x8933ad[0x0]!=_0x3b990f)return _0x1c31e9(_0x5c492e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8933ad[0x1]={..._0x8933ad[0x1],[_0x5c492e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe74ae9};},{[_0x5c492e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c492e([0x68,0x69,0x67,0x68])}),_0xceb02d[_0x5c492e([0x6f,0x6e])](_0x5c492e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x366bfb=>{_0x204695(_0x366bfb[_0x5c492e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x560069=!0x0,_0x291b1d(_0x366bfb[_0x5c492e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c492e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c492e([0x6c,0x6f,0x77])}),_0x4e6d9b[_0x5c492e([0x74,0x68,0x65,0x6e])](()=>{_0x560069||_0x1c31e9(_0x5c492e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52fe2c(){return _0xceb02d[_0x5c492e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c492e([0x76,0x69,0x65,0x77])][_0x5c492e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c492e([0x61,0x75,0x74,0x6f]);}function _0x5a9387(){_0xceb02d[_0x5c492e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c492e([0x76,0x69,0x65,0x77])][_0x5c492e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c492e([0x61,0x75,0x74,0x6f]);}}function _0x169b93(_0x4d9987){const _0x73b91b=[new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x599e8c=>setTimeout(_0x599e8c,0xc59b859^_0x1da3bf)),_0x4e6d9b[_0x5c492e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x320749=>{let _0x34a3be=0x0;_0xceb02d[_0x5c492e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c492e([0x6f,0x6e])](_0x5c492e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4bdb8b,_0x55245d)=>{_0x55245d[0x0][_0x5c492e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34a3be++,_0x34a3be==(0xc50876d^_0x1da3bf)&&(_0x320749(),_0x4bdb8b[_0x5c492e([0x6f,0x66,0x66])]());});}))];return window[_0x5c492e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c492e([0x72,0x61,0x63,0x65])](_0x73b91b)[_0x5c492e([0x74,0x68,0x65,0x6e])](()=>_0x4d9987);}async function _0x5f21cd(){await _0x4e6d9b,_0xceb02d[_0x5c492e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c492e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d71c5,_0xceb02d[_0x5c492e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c492e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d71c5,_0xceb02d[_0x5c492e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c492e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1fbb88(_0x515d23){const _0x2fee24=_0x179a5a();_0xceb02d[_0x2fee24]=_0x5c492e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x515d23,_0x515d23!=_0x5c492e([0x56,0x61,0x6c,0x69,0x64])&&_0x5f21cd();}function _0x179a5a(){const _0x4267be=window[_0x5c492e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c492e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c492e([0x6e,0x6f,0x77])]())[_0x5c492e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c492e([0x2e]),'');let _0x18a951=_0x5c492e([0x62]);for(let _0x1ed34f=0x0;_0x1ed34f<_0x4267be[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ed34f+=0x2){let _0x3b5ed2=window[_0x5c492e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4267be[_0x5c492e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ed34f,_0x1ed34f+0x2));_0x3b5ed2>=_0x4fb25f[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b5ed2-=_0x4fb25f[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18a951+=_0x4fb25f[_0x3b5ed2];}return _0x18a951;}function _0x572432(){const _0x3624d6=_0x1211bd[_0x5c492e([0x73,0x70,0x6c,0x69,0x74])](_0x5c492e([0x2e]));if(0x3!=_0x3624d6[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x21ce6c(_0x3624d6[0x1]);function _0x21ce6c(_0x542d1a){const _0x545199=_0x37c878(_0x542d1a);return _0x545199&&_0xb19d5d()?_0x545199:null;function _0xb19d5d(){const _0x1328b6=_0x545199[_0x5c492e([0x6a,0x74,0x69])],_0x4c88de=window[_0x5c492e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1328b6[_0x5c492e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1328b6[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x85221c={..._0x545199,[_0x5c492e([0x6a,0x74,0x69])]:_0x1328b6[_0x5c492e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1328b6[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x85221c[_0x5c492e([0x76,0x63])],_0x373966(_0x85221c)==_0x4c88de;}}}async function _0x25ec08(){let _0x49177c=!0x0;try{const _0x7438af=_0x1211bd[_0x5c492e([0x73,0x70,0x6c,0x69,0x74])](_0x5c492e([0x2e])),[_0x76fd8d,_0x5deaf5,_0x410d6b]=_0x7438af;return _0x7ce67c(_0x76fd8d),await _0x4eb719(_0x76fd8d,_0x5deaf5,_0x410d6b),_0x49177c;}catch{return!0x1;}function _0x7ce67c(_0x26d300){const _0x3a23a8=_0x37c878(_0x26d300);_0x3a23a8&&_0x3a23a8[_0x5c492e([0x61,0x6c,0x67])]==_0x5c492e([0x45,0x53,0x32,0x35,0x36])||(_0x49177c=!0x1);}async function _0x4eb719(_0x50c842,_0x2f88da,_0x511547){const _0x1a0471=window[_0x5c492e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c492e([0x66,0x72,0x6f,0x6d])](_0x15c4ee(_0x511547),_0x1f7471=>_0x1f7471[_0x5c492e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa0d328=new window[(_0x5c492e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c492e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50c842+_0x5c492e([0x2e])+_0x2f88da),_0x2b448d=window[_0x5c492e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c492e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b448d)return;const _0x14534b=await _0x2b448d[_0x5c492e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c492e([0x6a,0x77,0x6b]),_0x424f86,{[_0x5c492e([0x6e,0x61,0x6d,0x65])]:_0x5c492e([0x45,0x43,0x44,0x53,0x41]),[_0x5c492e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c492e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c492e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b448d[_0x5c492e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c492e([0x6e,0x61,0x6d,0x65])]:_0x5c492e([0x45,0x43,0x44,0x53,0x41]),[_0x5c492e([0x68,0x61,0x73,0x68])]:{[_0x5c492e([0x6e,0x61,0x6d,0x65])]:_0x5c492e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14534b,_0x1a0471,_0xa0d328)||(_0x49177c=!0x1);}}function _0x37c878(_0x3b7852){return _0x3b7852[_0x5c492e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c492e([0x65,0x79]))?JSON[_0x5c492e([0x70,0x61,0x72,0x73,0x65])](_0x15c4ee(_0x3b7852)):null;}function _0x15c4ee(_0x4048e8){return window[_0x5c492e([0x61,0x74,0x6f,0x62])](_0x4048e8[_0x5c492e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c492e([0x2b]))[_0x5c492e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c492e([0x2f])));}function _0x373966(_0x37fbbc){let _0x56b29a=0x1505;function _0x1279e2(_0x219dd2){for(let _0x13190d=0x0;_0x13190d<_0x219dd2[_0x5c492e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13190d++){const _0x2bc1ec=_0x219dd2[_0x5c492e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13190d);_0x56b29a=(_0x56b29a<<0x5)+_0x56b29a+_0x2bc1ec,_0x56b29a&=_0x56b29a;}}function _0x34b793(_0x4ba1d6){Array[_0x5c492e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ba1d6)?_0x4ba1d6[_0x5c492e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x34b793):_0x4ba1d6&&typeof _0x4ba1d6==_0x5c492e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c492e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ba1d6)[_0x5c492e([0x73,0x6f,0x72,0x74])]()[_0x5c492e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x398d02,_0x2b87d5])=>{_0x1279e2(_0x398d02),_0x34b793(_0x2b87d5);}):_0x1279e2(window[_0x5c492e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ba1d6));}return _0x34b793(_0x37fbbc),_0x56b29a>>>0x0;}function _0x3320bc(_0x433b63){return _0x433b63[_0x5c492e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c492e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c492e([0x30]));}function _0x3457ce(_0x403e4e){return _0x403e4e[_0x5c492e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c492e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c492e([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d71c5(){}function _0x5c492e(_0x408caf){return _0x408caf['map'](_0x479de6=>String['fromCharCode'](_0x479de6))['join']('');}_0x1fbb88(await _0x1de870());}(this);}['_initSchema'](){const _0x63f3a2=this['editor']['model']['schema'];_0x63f3a2['isRegistered']('imageBlock')&&_0x63f3a2['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x63f3a2['isRegistered']('imageInline')&&_0x63f3a2['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3e567e=this['editor'];_0x3e567e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3e567e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2bd689=>_0x2bd689['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b53e7=_0x3e567e['commands']['get']('replaceImageSource');_0x2b53e7&&this['listenTo'](_0x2b53e7,'cleanupImage',(_0x5735eb,[_0x309f9b,_0x5d6e26])=>{_0x309f9b['removeAttribute']('uploadcareImageId',_0x5d6e26);});}['_initConfig'](){const _0x3f72ad=this['editor']['config']['get']('uploadcare.uploader')||{},_0x16a30b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x26b0d3(_0x4123dd['document'],'uc-config',{..._0x3f72ad,'pubkey':_0x16a30b,'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']=_0x40d9d0=>{if('closeMax'==_0x40d9d0)return'#uc-icon-arrow-down';},_0x4123dd['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x26b0d3(_0x4123dd['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4123dd['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x55b56a=this['editor']['commands']['get']('insertImage');_0x55b56a&&this['listenTo'](_0x55b56a,'execute',()=>{const _0x8a844c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8a844c&&_0x8a844c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x8a844c);});});const _0x576cd0=this['editor']['commands']['get']('uploadcareImageReplace');_0x576cd0&&this['listenTo'](_0x576cd0,'execute',()=>{const _0x39f91f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x39f91f&&_0x39f91f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x39f91f);});});}}class u extends _0x397c76{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x160332){super(_0x160332),_0x160332['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1a1f0b['defineComponents'](_0x1a1f0b);}}class ta extends _0x278397{constructor(_0x4d4a0e){super(_0x4d4a0e);const t=_0x4d4a0e['t'],_0x42bf5f=this['bindTemplate'],_0x171074=new _0x3dff89();_0x171074['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':[_0x171074,{'text':_0x42bf5f['to']('imageUploadProgress',_0xd246b2=>t('Loading\x20image...')+'\x20('+(_0xd246b2||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 _0x278397{constructor(_0xab4efa){super(_0xab4efa);const t=_0xab4efa['t'];this['set']('errorType',null);const _0x1c14eb=new _0x23acc8(_0xab4efa);_0x1c14eb['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1c14eb['withText']=!0x0,_0x1c14eb['class']='ck-button-action',_0x1c14eb['on']('execute',()=>{this['fire']('retry');}),_0x1c14eb['bind']('isVisible')['to'](this,'errorType',_0x2310af=>'NotFound'!==_0x2310af);const _0x52314d=new at();_0x52314d['content']=et,_0x52314d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5b88b0=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':[_0x52314d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5b88b0['to']('errorType',_0x2b3df0=>t('NotFound'!==_0x2b3df0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1c14eb]},{'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 _0x278397{constructor(_0x5a5cdc,_0x41bd03){super(_0x5a5cdc);const _0x33067b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x41bd03,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x33067b['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x57df4a,_0x16bb43,_0x1453d8){super(_0x57df4a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x57df4a),this['_errorView']=new rt(_0x57df4a),this['_editingView']=new tt(_0x57df4a,_0x1453d8),this['_focusableView']=new _0x278397(_0x57df4a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x16bb43),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'],_0x39403c=>{this['_addUploadcareImageEditorListeners'](_0x39403c);});}),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'](_0x1bae40,_0x18aa41){const _0x412f86='uc-cloud-image-editor',_0x472561=_0x1bae40['querySelector'](_0x412f86);if(_0x472561)return _0x18aa41(_0x472561);const _0x4dd87e=new MutationObserver(_0xe5c721=>{const _0x3eb2ec=_0xe5c721['filter'](_0x1cea5f=>_0x1cea5f['target']===_0x1bae40&&_0x1cea5f['addedNodes']['length']>0x0&&_0x1cea5f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x412f86);_0x3eb2ec['length']&&(_0x4dd87e['disconnect'](),_0x18aa41(_0x3eb2ec[0x0]['addedNodes'][0x0]));});_0x4dd87e['observe'](_0x1bae40,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3385fb){_0x3385fb['addEventListener']('apply',_0x2b9ed7=>{this['fire']('apply',{'imageSrc':_0x2b9ed7['detail']['cdnUrl']});}),_0x3385fb['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1ec15c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x139f98,_0x28834a,_0x1f5718){super(),this['_editor']=_0x139f98,this['_dialog']=_0x28834a,this['_imageElement']=_0x1f5718,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 _0x492767=this['_imageElement'],_0x486ac8=_0x492767['getAttribute']('uploadcareImageId'),_0x492402=_0x492767['getAttribute']('src');if(_0x486ac8)await this['_loadImageInfo'](_0x486ac8,_0x492402);else{if(this['_imageCache']['has'](_0x492402)){const _0x191473=this['_imageCache']['get'](_0x492402);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x191473['url'],this['imageDimension']=_0x191473['dimension'],this['imageId']=_0x191473['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29fe37}=this['_editor'],t=_0x29fe37['t'],_0x46485f=new Z(_0x29fe37,this['imageStatus'],this['_attributes']);_0x46485f['bind']('status')['to'](this,'imageStatus'),_0x46485f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x46485f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x46485f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x46485f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x47daa7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x46485f,'position':_0xd032e8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x46485f['focus']();},'onHide':()=>{_0x46485f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3bfe56=>!F(_0x3bfe56,_0x46485f['element'])}});}['_loadImageInfo'](_0x2b53a4,_0x14c23e){return C['getInfo'](_0x2b53a4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x126249=>{const {width:_0x2a3401,height:_0x24b37b}=_0x126249['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14c23e,this['imageDimension']={'width':_0x2a3401,'height':_0x24b37b},this['imageId']=_0x2b53a4;})['catch'](_0x172397=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x172397['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x53ff8b,_0x2da10c){return this['_getImageAsFile'](_0x53ff8b)['then'](_0x52a2b7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2da10c['signal'],'file':_0x52a2b7,'onProgress':_0x2f278b=>{_0x2f278b&&_0x2f278b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2f278b['value']));}}))['then'](_0x49efae=>{const {width:_0x2b6a10,height:_0x3403dd}=_0x49efae['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49efae['cdnUrl'],this['imageDimension']={'width':_0x2b6a10,'height':_0x3403dd},this['imageId']=_0x49efae['uuid'],this['imageUploadProgress']=null;const _0x924160=_0x53ff8b['getAttribute']('src');this['_imageCache']['set'](_0x924160,{'id':_0x49efae['uuid'],'url':_0x49efae['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ef517=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ef517['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1daf4b,_0x2fcfc2){_0x1daf4b['on']('apply',(_0x4c6447,_0xcfe3fa)=>{this['_replaceImage'](_0x2fcfc2,_0xcfe3fa['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1daf4b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1daf4b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2ff827,_0x58f08c,_0x37a888){const _0x22fb76=this['_editor'],{width:_0x2ac073,height:_0x5695e5}=A(_0x58f08c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x28599a,imageSources:_0x1ece05}=E(_0x58f08c,_0x2ac073);_0x22fb76['model']['change'](_0x1752d5=>{if('$graveyard'===_0x2ff827['root']['rootName']){_0x22fb76['execute']('insertImage',{'imageType':_0x2ff827['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2ff827['getAttributes']()),'uploadcareImageId':_0x37a888,'src':_0x28599a,'sources':_0x1ece05,'width':_0x2ac073,'height':_0x5695e5}});const _0x3744fd=_0x2ff827['getChildren']();_0x2ff827=_0x22fb76['model']['document']['selection']['getSelectedElement']();for(const _0x3dc0d7 of _0x3744fd)_0x1752d5['append'](_0x1752d5['cloneElement'](_0x3dc0d7),_0x2ff827);}else _0x1752d5['setSelection'](_0x2ff827,'on'),_0x22fb76['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2ff827['getAttributes']()),'uploadcareImageId':_0x37a888,'src':_0x28599a,'sources':_0x1ece05,'width':_0x2ac073,'height':_0x5695e5},_0x2ff827);_0x1752d5['setSelection'](_0x2ff827,'on');});}async['_getImageAsFile'](_0x125c71){const _0x9325e0=_0x4123dd['window'],_0x44b38f=_0x4123dd['document']['location']['href'],_0x150592=new _0x9325e0['URL'](_0x125c71['getAttribute']('src'),_0x44b38f);if('data:'===_0x150592['protocol']){const _0x2dd0b5=_0x150592['href']['split'](','),_0x27bc88=_0x2dd0b5[0x0]['match'](/:(.*?);/)[0x1],_0x3893c7=_0x27bc88['split']('/')[0x1],_0x31ece7=_0x9325e0['atob'](_0x2dd0b5[_0x2dd0b5['length']-0x1]);let _0x3bb3e0=_0x31ece7['length'];const _0x32e983=new _0x9325e0['Uint8Array'](_0x3bb3e0);for(;_0x3bb3e0--;)_0x32e983[_0x3bb3e0]=_0x31ece7['charCodeAt'](_0x3bb3e0);return new _0x9325e0['File']([_0x32e983],'image.'+_0x3893c7,{'type':_0x27bc88});}const _0x4de852=_0x150592['href']['split']('/'),_0x326c08=_0x4de852[_0x4de852['length']-0x1],_0x2fccff=_0x326c08['split']('.')[0x1];return _0x9325e0['fetch'](_0x150592['href'])['then'](_0x564bf5=>_0x564bf5['clone']()['blob']())['then'](_0x22abf9=>new _0x9325e0['File']([_0x22abf9],_0x326c08,{'type':'image/'+_0x2fccff}));}}class J extends _0x1fc00a{['imageEditController'];static get['requires'](){return[_0x232ec6];}['_isEditable'];constructor(_0x3957b0){super(_0x3957b0),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1bd2eb){const _0x461370=V(_0x1bd2eb);return _0x2702df=>!(!_0x2702df||!_0x2702df['is']('element','imageBlock')&&!_0x2702df['is']('element','imageInline'))&&(!!_0x2702df['hasAttribute']('uploadcareImageId')||!!_0x2702df['hasAttribute']('src')&&_0x461370(_0x2702df['getAttribute']('src')));}(_0x3957b0['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x283258=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x283258);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59362c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59362c&&(_0x59362c['is']('element','imageBlock')||_0x59362c['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x232ec6),_0x59362c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1fc00a{['refresh'](){const _0x4d2521=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4d2521&&(_0x4d2521['is']('element','imageBlock')||_0x4d2521['is']('element','imageInline')));}['execute'](_0x546007){const _0xa3595d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5e7815=>{_0x5e7815['setAttributes'](_0x546007,_0xa3595d),_0x5e7815['removeAttribute']('srcset',_0xa3595d),_0x5e7815['removeAttribute']('sizes',_0xa3595d);});}}class g extends _0x397c76{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xea9747,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x18ed07}=this;_0x18ed07['commands']['add']('uploadcareImageEdit',new J(_0x18ed07)),_0x18ed07['commands']['add']('uploadcareImageReplace',new O(_0x18ed07));}}class j extends _0x397c76{['_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 _0x967f95=this['editor'];_0x967f95['ui']['componentFactory']['add']('uploadcareImageEdit',_0x262a4f=>{const _0x50dc61=_0x967f95['commands']['get']('uploadcareImageEdit'),_0x303cd9=new _0x23acc8(_0x262a4f),t=_0x262a4f['t'];return _0x303cd9['set']({'icon':_0x47daa7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x303cd9['bind']('isEnabled')['to'](_0x50dc61),_0x303cd9['bind']('isOn')['to'](_0x50dc61,'isActive'),this['listenTo'](_0x303cd9,'execute',()=>{_0x967f95['execute']('uploadcareImageEdit'),_0x967f95['editing']['view']['focus']();}),_0x303cd9;}),this['_initConfig']();}['_initConfig'](){const _0x1bc7e1=_0x26b0d3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1bc7e1),this['listenTo'](this['editor'],'destroy',()=>{_0x1bc7e1['remove']();});}}class P extends _0x397c76{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 _0x83f380,Command as _0x284ce4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x24ebb6,IconGooglePhotos as _0x4a803e,IconGoogleDrive as _0x45bf31,IconFacebook as _0x46f917,IconDropbox as _0x1a6a2,IconUploadcareLink as _0x766550,IconUploadcareImageUpload as _0x567a2a,IconError as et,IconUploadcareImageEdit as _0x4fbabd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x9b1d43,MenuBarMenuListItemButtonView as _0x3517e8,View as _0x33a16c,FocusCycler as _0x1255d5,Dialog as _0x3085c1,DialogViewPosition as _0x3b5578,SpinnerView as _0x431700,IconView as at,Notification as _0x3e8221}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x142e2c,DomEmitterMixin as _0x1f5d80,global as _0x320a56,getAncestors as _0x39cfb9,ObservableMixin as _0x31e656,createElement as _0x40596b,uid as _0x12184a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x41a768}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3c5c7f,info as _0x395983}from'@uploadcare/upload-client';import*as _0x1ea6bb from'@uploadcare/file-uploader';var o=function(_0xf0acca){return _0xf0acca['Local']='local',_0xf0acca['URL']='url',_0xf0acca['Dropbox']='dropbox',_0xf0acca['GDrive']='gdrive',_0xf0acca['Facebook']='facebook',_0xf0acca['GPhotos']='gphotos',_0xf0acca['OneDrive']='onedrive',_0xf0acca;}({});function _(_0x249523,_0x701a29,_0x3a4b6f){const t=_0x249523['t'],_0x375656=_0x249523['t'];switch(_0x701a29){case o['Local']:return{'text':_0x375656('Insert'===_0x3a4b6f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x375656('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3a4b6f?_0x375656('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x375656('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3a4b6f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3a4b6f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3a4b6f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3a4b6f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3a4b6f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x701a29;}}class e extends _0x83f380{['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 _0x59cbc6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ec0df;for(const _0x100b75 in _0x59cbc6){const _0xbe1e2e=_0x100b75,_0x5d19c8=_0x59cbc6[_0xbe1e2e];if('uploadcareLicenseKeyValid'==_0x5d19c8||'uploadcareLicenseKeyInvalid'==_0x5d19c8||'uploadcareLicenseKeyExpired'==_0x5d19c8||'uploadcareLicenseKeyDomainLimit'==_0x5d19c8||'uploadcareLicenseKeyNotAllowed'==_0x5d19c8||'uploadcareLicenseKeyEvaluationLimit'==_0x5d19c8||'uploadcareLicenseKeyTrialLimit'==_0x5d19c8||'uploadcareLicenseKeyUsageLimit'==_0x5d19c8){delete _0x59cbc6[_0xbe1e2e],_0x1ec0df=_0x5d19c8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1edab7}=this,_0x2539d9=_0x1edab7['commands']['get']('uploadcare');if(!_0x2539d9)return;const _0x5b219c=this['_normalizeConfigSourceList'](_0x1edab7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x34a0c2,_0x3088bf)=>{const _0x48bda9=this['_getIntegrationKey'](_0x3088bf['type']);return _0x34a0c2[_0x48bda9]||(_0x34a0c2[_0x48bda9]=[]),_0x34a0c2[_0x48bda9]['push'](_0x3088bf),_0x34a0c2;},{});_0x1edab7['plugins']['has']('ImageInsertUI')&&_0x1edab7['commands']['get']('uploadcare')&&Object['entries'](_0x5b219c)['forEach'](([_0x793460,_0x330a69])=>{_0x1edab7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x793460,'observable':()=>_0x2539d9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x330a69),'formViewCreator':()=>this['_createDropdownButtons'](_0x330a69),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x330a69),'override':'assetManager'!==_0x793460});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x293ca0){const {locale:_0xcdda4}=this['editor'];return _0x293ca0['map'](_0x3c4de7=>{const _0x41c3c9=_(_0xcdda4,_0x3c4de7,'Insert');switch(_0x3c4de7){case o['Local']:return{'icon':_0x567a2a,'type':o['Local'],..._0x41c3c9};case o['URL']:return{'icon':_0x766550,'type':o['URL'],..._0x41c3c9};case o['Dropbox']:return{'icon':_0x1a6a2,'type':o['Dropbox'],..._0x41c3c9};case o['Facebook']:return{'icon':_0x46f917,'type':o['Facebook'],..._0x41c3c9};case o['GDrive']:return{'icon':_0x45bf31,'type':o['GDrive'],..._0x41c3c9};case o['GPhotos']:return{'icon':_0x4a803e,'type':o['GPhotos'],..._0x41c3c9};case o['OneDrive']:return{'icon':_0x24ebb6,'type':o['OneDrive'],..._0x41c3c9};}});}['_getIntegrationKey'](_0x5e029e){switch(_0x5e029e){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x26c433,_0x5d1145){const _0x4c856c=this['editor'],_0x14e656=new _0x26c433(_0x4c856c['locale']),_0x2f1fb3=_0x4c856c['commands']['get']('uploadcare');return _0x14e656['bind']('isEnabled')['to'](_0x2f1fb3),_0x14e656['on']('execute',()=>{_0x2f1fb3['execute'](_0x5d1145);}),_0x14e656;}['_createToolbarButton'](_0x447011){const {locale:_0x5c53be}=this['editor'],_0x56fcb9=this['editor']['plugins']['get']('ImageInsertUI'),_0x5d0472=_0x447011[0x0],_0x2ea636=this['_createButton'](_0x9b1d43,_0x5d0472['type']);return _0x2ea636['icon']=_0x5d0472['icon'],_0x2ea636['bind']('label')['to'](_0x56fcb9,'isImageSelected',_0x832fa0=>_(_0x5c53be,_0x5d0472['type'],_0x832fa0?'Replace':'Insert')['text']),_0x2ea636['tooltip']=!0x0,_0x2ea636;}['_createDropdownButtons'](_0x53efe7){const {locale:_0x3ed98e}=this['editor'],_0x5a17d3=this['editor']['plugins']['get']('ImageInsertUI');return _0x53efe7['map'](_0x32cfa6=>{const _0x373f94=this['_createButton'](_0x9b1d43,_0x32cfa6['type']);return _0x373f94['withText']=!0x0,_0x373f94['icon']=_0x32cfa6['icon'],_0x373f94['bind']('label')['to'](_0x5a17d3,'isImageSelected',_0x137218=>_(_0x3ed98e,_0x32cfa6['type'],_0x137218?'Replace':'Insert')['text']),_0x373f94;});}['_createMenuBarButtons'](_0x1e8725){return _0x1e8725['map'](_0x1d1667=>{const _0x4ec332=this['_createButton'](_0x3517e8,_0x1d1667['type']);return _0x4ec332['icon']=_0x1d1667['icon'],_0x4ec332['label']=_0x1d1667['shortText'],_0x4ec332;});}}class q extends _0x33a16c{['focusTracker'];['focusCycler'];constructor(_0x4a6e93){super(_0x4a6e93),this['focusTracker']=new _0x142e2c(),this['focusCycler']=new _0x1255d5({'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(_0x17dc7b){super(_0x17dc7b),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(_0x50414d,_0x10f784){const _0x43fe90=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x12659b=>_0x12659b<=_0x10f784)['map'](_0x1d55f3=>_0x50414d['replace'](/\/$/,'')+'/-/resize/'+_0x1d55f3+'x/\x20'+_0x1d55f3+'w');return{'imageFallbackUrl':_0x50414d,'imageSources':[{'srcset':_0x43fe90['join'](',\x20'),'sizes':'(max-width:\x20'+_0x10f784+'px)\x20100vw,\x20'+_0x10f784+'px','type':'image/webp'}]};}function A(_0x16cb2e,_0x3222be,_0x11a009){const _0x5ac207=_0x16cb2e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5ac207?parseInt(_0x5ac207[0x1],0xa):_0x3222be,'height':_0x5ac207?parseInt(_0x5ac207[0x2],0xa):_0x11a009};}function m(_0x2d1ef9,_0xc15914){const _0x2f811a=Object['create'](_0x1f5d80),_0x190d8d=_0x2d1ef9['plugins']['get']('ImageUtils'),_0x3d4911=_0x2d1ef9['editing']['mapper']['toViewElement'](_0xc15914),_0xf7d9f=_0x190d8d['findViewImgElement'](_0x3d4911),_0x2eabfa=_0x2d1ef9['editing']['view']['domConverter']['viewToDom'](_0xf7d9f),_0xc5ad91=_0xc15914['getAttribute']('width'),_0x235eef=_0xc15914['getAttribute']('height'),_0x4bb4ce='image-processing';_0x2d1ef9['editing']['view']['change'](_0x4e6547=>{_0x4e6547['addClass'](_0x4bb4ce,_0x3d4911),_0x4e6547['setStyle']('aspect-ratio',_0xc5ad91+'/'+_0x235eef,_0xf7d9f);}),_0x2f811a['listenTo'](_0x2eabfa,'load',()=>{_0x2f811a['stopListening'](_0x2eabfa,'load'),_0x2d1ef9['editing']['view']['change'](_0x1e8e64=>{_0x1e8e64['removeClass'](_0x4bb4ce,_0x3d4911),_0x1e8e64['removeStyle']('aspect-ratio',_0xf7d9f);});});}function V(_0x2dd21b){if(Array['isArray'](_0x2dd21b)){const _0x13b675=_0x2dd21b['map'](V);return _0x458f19=>_0x13b675['some'](_0x200f01=>_0x200f01(_0x458f19));}if('origin'==_0x2dd21b){const _0x4c4ae5=_0x320a56['window']['location']['origin'];return _0x16cb64=>new URL(_0x16cb64,_0x320a56['document']['baseURI'])['origin']==_0x4c4ae5;}return'function'==typeof _0x2dd21b?_0x2dd21b:_0x2dd21b instanceof RegExp?_0x166e75=>!(!_0x166e75['match'](_0x2dd21b)&&!_0x166e75['replace'](/^https?:\/\//,'')['match'](_0x2dd21b)):()=>!0x1;}function F(_0x5a327e,_0x31dbe1){return _0x39cfb9(_0x5a327e['target'])['includes'](_0x31dbe1);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x31e656(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4c9898,_0x3574e1,_0x26a27d){super(),this['_editor']=_0x4c9898,this['_editing']=_0x3574e1,this['_dialog']=_0x4c9898['plugins']['get'](_0x3085c1),this['_api']=_0x3574e1['ctxElement']['getAPI'](),this['_type']=_0x26a27d,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:_0x207bfb,model:_0x1eda66}=this['_editor'],_0x7c440a=_0x1eda66['document']['selection']['getSelectedElement'](),_0x210ad2=_0x7c440a&&(_0x7c440a['is']('element','imageBlock')||_0x7c440a['is']('element','imageInline'));this['_formView']=new S(_0x207bfb),this['_dialog']['show']({'id':'uploadCare','icon':_0x567a2a,'title':_(_0x207bfb,this['_type'],_0x210ad2?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3b5578['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d08a1=>!F(_0x3d08a1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x57b8e4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x715040=>{const _0x396e70=_0x57b8e4['length'];for(const _0x4fabe4 of _0x57b8e4){const _0x4ef295=_0x4fabe4===_0x57b8e4[_0x396e70-0x1],{cdnUrl:_0x3f3f57,fileInfo:_0x4407af}=_0x4fabe4;if(!_0x3f3f57||!_0x4407af)continue;const {width:_0x2917a1,height:_0x2bb5ef}=_0x4407af['imageInfo'],_0x3f4efc=A(_0x3f3f57,_0x2917a1,_0x2bb5ef),_0x276847=E(_0x3f3f57,_0x3f4efc['width']),_0x18bb78={'id':_0x4407af['uuid'],'type':'image','attributes':{'imageDimension':_0x3f4efc,..._0x276847}};this['_insertAsset'](_0x18bb78,_0x4ef295,_0x715040);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xe88d88=>{'idle'===_0xe88d88['detail']['status']&&!_0xe88d88['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1eba2f,_0x4b150f,_0x3b9b0b){const _0x1692a5=this['_editor']['model']['document']['selection'],_0x2605bc=_0x1692a5['getSelectedElement'](),_0x2a200b=!(!_0x2605bc||!_0x2605bc['is']('element','imageInline'));_0x3b9b0b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1eba2f,_0x2a200b),_0x4b150f||_0x3b9b0b['setSelection'](_0x1692a5['getLastPosition']());}['_insertImage'](_0x19deb3,_0x32c099){const _0x5933b1=this['_editor'],{imageDimension:_0x83ee92,imageFallbackUrl:_0xf9a021,imageSources:_0x39b1ce}=_0x19deb3['attributes'];_0x5933b1['execute']('insertImage',{'imageType':_0x32c099?'imageInline':null,'source':{'uploadcareImageId':_0x19deb3['id'],'src':_0xf9a021,'sources':_0x39b1ce,..._0x83ee92}});}}class n extends _0x284ce4{['_editing'];['_controller']=null;static get['requires'](){return[_0x3085c1,i];}constructor(_0x522b56){super(_0x522b56),this['_editing']=_0x522b56['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1ca6e9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1ca6e9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5b08bd,publicKey:_0x1c1cd3,signal:_0x44f0a8,onProgress:_0x3878f8}){return _0x3c5c7f(_0x5b08bd,{'publicKey':_0x1c1cd3,'store':'auto','signal':_0x44f0a8,'onProgress':_0x3878f8});}static['getInfo'](_0x1fd471,_0x66b0f6){return _0x395983(_0x1fd471,_0x66b0f6);}}class p extends _0x83f380{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x41a768,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1e1e3b=this['editor'];if(!!!_0x1e1e3b['config']['get']('uploadcare'))return;_0x1e1e3b['plugins']['get'](_0x41a768)['createUploadAdapter']=_0x3dd037=>new x(_0x3dd037,_0x1e1e3b),_0x1e1e3b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5b0a9e,{imageElement:_0x3f12ea,data:_0x5942b9})=>{_0x1e1e3b['model']['change'](_0x376ed0=>{_0x376ed0['setAttribute']('uploadcareImageId',_0x5942b9['uploadcareImageId'],_0x3f12ea);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5af5cc,_0x3ea5c1){this['loader']=_0x5af5cc,this['editor']=_0x3ea5c1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x187368=this['editor']['config']['get']('uploadcare.pubkey'),_0x23c34d=await this['loader']['file'];return C['upload']({'file':_0x23c34d,'publicKey':_0x187368,'signal':this['controller']['signal'],'onProgress':_0x16b820=>{_0x16b820&&_0x16b820['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x16b820['value']);}})['then'](async _0x57b347=>{const {imageFallbackUrl:_0x17febd,imageSources:_0x27796a}=E(_0x57b347['cdnUrl'],_0x57b347['imageInfo']['width']);return{'uploadcareImageId':_0x57b347['uuid'],'default':_0x17febd,'sources':_0x27796a};})['catch'](()=>{const _0x19d1e0=t('Cannot\x20upload\x20file:')+('\x20'+_0x23c34d['name']+'.');return Promise['reject'](_0x19d1e0);});}['abort'](){this['controller']['abort']();}}class i extends _0x83f380{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3085c1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x131b58=this['editor'];_0x131b58['commands']['add']('uploadcare',new n(_0x131b58));}['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 _0x1def09=_0x320a56['document']['querySelector']('input[uploadcare-file-input]');_0x1def09&&_0x1def09['remove']();}),async function(_0x4d94de){const _0x550951=_0x2000f0([0x44,0x61,0x72,0x78,0x6a,0x4a,0x41,0x36,0x42,0x4f,0x30,0x49,0x55,0x74,0x67,0x65,0x77,0x51,0x38,0x63,0x35,0x56,0x52,0x4b,0x32,0x50,0x4c,0x54,0x70,0x7a,0x71,0x75,0x58,0x4d,0x46,0x6f,0x79,0x69,0x48,0x43,0x66,0x34,0x6c,0x76,0x57,0x39,0x6e,0x6b,0x73,0x59,0x5a,0x31,0x4e,0x53,0x45,0x6d,0x33,0x64,0x68,0x37,0x47,0x62]),_0x307d84=0x3c5472bd,_0x4f6047=0x3c5319bd^_0x307d84,_0x78593e=window[_0x2000f0([0x44,0x61,0x74,0x65])][_0x2000f0([0x6e,0x6f,0x77])](),_0x5b0a3e=_0x4d94de[_0x2000f0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd6c1ab=new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x237d91=>{_0x5b0a3e[_0x2000f0([0x6f,0x6e,0x63,0x65])](_0x2000f0([0x72,0x65,0x61,0x64,0x79]),_0x237d91);}),_0x3221d1={[_0x2000f0([0x6b,0x74,0x79])]:_0x2000f0([0x45,0x43]),[_0x2000f0([0x75,0x73,0x65])]:_0x2000f0([0x73,0x69,0x67]),[_0x2000f0([0x63,0x72,0x76])]:_0x2000f0([0x50,0x2d,0x32,0x35,0x36]),[_0x2000f0([0x78])]:_0x2000f0([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]),[_0x2000f0([0x79])]:_0x2000f0([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]),[_0x2000f0([0x61,0x6c,0x67])]:_0x2000f0([0x45,0x53,0x32,0x35,0x36])},_0x13d7e3=_0x5b0a3e[_0x2000f0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2000f0([0x67,0x65,0x74])](_0x2000f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58f002(){let _0x9a5bc,_0x104c77=null,_0x22dfc4=null;try{if(_0x13d7e3==_0x2000f0([0x47,0x50,0x4c]))return _0x2000f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9a5bc=_0x193f0b(),!_0x9a5bc)return _0x2000f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9a5bc[_0x2000f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x22dfc4=_0x39b761(_0x9a5bc[_0x2000f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9a5bc[_0x2000f0([0x6a,0x74,0x69])])),await _0x13eaf3()?_0x4505f9()?_0x183639()?_0x2000f0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58b63e()?(_0x9a5bc[_0x2000f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2000f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x104c77=_0x2870d0(_0x2000f0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9a5bc[_0x2000f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2000f0([0x74,0x72,0x69,0x61,0x6c])&&(_0x104c77=_0x2870d0(_0x2000f0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x19ad5d()):_0x2000f0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2000f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2000f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2000f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x183639(){const _0x8a0bb1=[_0x2000f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2000f0([0x74,0x72,0x69,0x61,0x6c])][_0x2000f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a5bc[_0x2000f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x78593e/0x3e8:0xe10*_0x4f6047;return _0x9a5bc[_0x2000f0([0x65,0x78,0x70])]<_0x8a0bb1;}function _0x4505f9(){const _0x8cce2d=_0x9a5bc[_0x2000f0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x8cce2d&&(!!_0x8cce2d[_0x2000f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2000f0([0x2a]))||!!_0x8cce2d[_0x2000f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2000f0([0x55,0x50,0x4c,0x43])));}function _0x58b63e(){const _0x5073db=_0x9a5bc[_0x2000f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5073db||0x0==_0x5073db[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46c9fb}=new URL(window[_0x2000f0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5073db[_0x2000f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c9fb))return!0x0;const _0x4851d0=_0x46c9fb[_0x2000f0([0x73,0x70,0x6c,0x69,0x74])](_0x2000f0([0x2e]));return _0x5073db[_0x2000f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2375c3=>_0x2375c3[_0x2000f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2000f0([0x2a])))[_0x2000f0([0x6d,0x61,0x70])](_0x4351ca=>_0x4351ca[_0x2000f0([0x73,0x70,0x6c,0x69,0x74])](_0x2000f0([0x2e])))[_0x2000f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x209654=>_0x209654[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4851d0[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2000f0([0x6d,0x61,0x70])](_0x39dbcc=>Array(_0x4851d0[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x39dbcc[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2000f0([0x66,0x69,0x6c,0x6c])](_0x39dbcc[0x0]===_0x2000f0([0x2a])?_0x2000f0([0x2a]):'')[_0x2000f0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x39dbcc))[_0x2000f0([0x73,0x6f,0x6d,0x65])](_0x27f602=>_0x4851d0[_0x2000f0([0x65,0x76,0x65,0x72,0x79])]((_0x534e99,_0x39111d)=>_0x27f602[_0x39111d]===_0x534e99||_0x27f602[_0x39111d]===_0x2000f0([0x2a])));}function _0x19ad5d(){return _0x104c77&&_0x22dfc4?new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfa994b,_0x275262)=>{_0x104c77[_0x2000f0([0x74,0x68,0x65,0x6e])](_0xfa994b,_0x275262),_0x22dfc4[_0x2000f0([0x74,0x68,0x65,0x6e])](_0x5c9f16=>{_0x5c9f16!=_0x2000f0([0x56,0x61,0x6c,0x69,0x64])&&_0xfa994b(_0x5c9f16);},_0x275262);}):_0x104c77||_0x22dfc4||_0x2000f0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39b761(_0x1198ea,_0x5d4c5d){return new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45e59a=>{if(_0x5a6dc7())return _0x45e59a(_0x2000f0([0x56,0x61,0x6c,0x69,0x64]));_0x2ab5e0(),_0x5b0a3e[_0x2000f0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2000f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13c61c=!0x1;const _0x10cb35=_0x12184a();function _0x1d2aa0(_0x457114){return!!_0x457114&&(typeof _0x457114===_0x2000f0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x457114===_0x2000f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x457114[_0x2000f0([0x74,0x68,0x65,0x6e])]===_0x2000f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x457114[_0x2000f0([0x63,0x61,0x74,0x63,0x68])]===_0x2000f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x120d6a(_0x43ca60){_0x5e55c4(_0x43ca60)[_0x2000f0([0x74,0x68,0x65,0x6e])](_0x4c400a=>{if(!_0x4c400a||_0x4c400a[_0x2000f0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2000f0([0x6f,0x6b]))return _0x2000f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b41c3(_0x35c195(_0x10cb35+_0x5d4c5d))!=_0x4c400a[_0x2000f0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2000f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2000f0([0x56,0x61,0x6c,0x69,0x64]);})[_0x2000f0([0x74,0x68,0x65,0x6e])](_0x34bab3=>(_0x212d01(),_0x34bab3),()=>{const _0x32b2c6=_0x4f6a29();return null==_0x32b2c6?(_0x212d01(),_0x2000f0([0x56,0x61,0x6c,0x69,0x64])):_0x2000f0(_0x78593e-_0x32b2c6>(0x1858f6bd^_0x307d84)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2000f0([0x74,0x68,0x65,0x6e])](_0x45e59a)[_0x2000f0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45e59a(_0x2000f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cc94f=0x3c629c3d^_0x307d84;function _0x212d01(){const _0x177459=_0x2000f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b41c3(_0x35c195(_0x1198ea)),_0x4f0ffb=_0x4857ac(_0x4b41c3(window[_0x2000f0([0x4d,0x61,0x74,0x68])][_0x2000f0([0x63,0x65,0x69,0x6c])](_0x78593e/_0x2cc94f)));window[_0x2000f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2000f0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x177459,_0x4f0ffb);}function _0x4f6a29(){const _0x55a4cb=_0x2000f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b41c3(_0x35c195(_0x1198ea)),_0x39a3bb=window[_0x2000f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2000f0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55a4cb);return _0x39a3bb?window[_0x2000f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4857ac(_0x39a3bb),0x10)*_0x2cc94f:null;}function _0x5e55c4(_0x39f49a){return new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14d187,_0x2d793f)=>{_0x39f49a[_0x2000f0([0x74,0x68,0x65,0x6e])](_0x14d187,_0x2d793f),window[_0x2000f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d793f,0x3c55a67d^_0x307d84);});}}_0x5b0a3e[_0x2000f0([0x6f,0x6e])](_0x2000f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x25100b,_0x5548a6)=>{if(_0x5548a6[0x0]!=_0x1198ea)return _0x45e59a(_0x2000f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5548a6[0x1]={..._0x5548a6[0x1],[_0x2000f0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10cb35};},{[_0x2000f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2000f0([0x68,0x69,0x67,0x68])}),_0x5b0a3e[_0x2000f0([0x6f,0x6e])](_0x2000f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33695d=>{_0x1d2aa0(_0x33695d[_0x2000f0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13c61c=!0x0,_0x120d6a(_0x33695d[_0x2000f0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2000f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2000f0([0x6c,0x6f,0x77])}),_0xd6c1ab[_0x2000f0([0x74,0x68,0x65,0x6e])](()=>{_0x13c61c||_0x45e59a(_0x2000f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a6dc7(){return _0x5b0a3e[_0x2000f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2000f0([0x76,0x69,0x65,0x77])][_0x2000f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2000f0([0x61,0x75,0x74,0x6f]);}function _0x2ab5e0(){_0x5b0a3e[_0x2000f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2000f0([0x76,0x69,0x65,0x77])][_0x2000f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2000f0([0x61,0x75,0x74,0x6f]);}}function _0x2870d0(_0x3a0ac1){const _0x2bb0ae=[new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9b6f2d=>setTimeout(_0x9b6f2d,0x3c5d4c71^_0x307d84)),_0xd6c1ab[_0x2000f0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5487b5=>{let _0x228e50=0x0;_0x5b0a3e[_0x2000f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2000f0([0x6f,0x6e])](_0x2000f0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x39acc1,_0x2e2919)=>{_0x2e2919[0x0][_0x2000f0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x228e50++,_0x228e50==(0x3c547345^_0x307d84)&&(_0x5487b5(),_0x39acc1[_0x2000f0([0x6f,0x66,0x66])]());});}))];return window[_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2000f0([0x72,0x61,0x63,0x65])](_0x2bb0ae)[_0x2000f0([0x74,0x68,0x65,0x6e])](()=>_0x3a0ac1);}async function _0x3a31d9(){await _0xd6c1ab,_0x5b0a3e[_0x2000f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2000f0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee00f,_0x5b0a3e[_0x2000f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2000f0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee00f,_0x5b0a3e[_0x2000f0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2000f0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24b59e(_0x560158){const _0x2bf2b2=_0x4d7ef4();_0x5b0a3e[_0x2bf2b2]=_0x2000f0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x560158,_0x560158!=_0x2000f0([0x56,0x61,0x6c,0x69,0x64])&&_0x3a31d9();}function _0x4d7ef4(){const _0x52348a=window[_0x2000f0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2000f0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2000f0([0x6e,0x6f,0x77])]())[_0x2000f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2000f0([0x2e]),'');let _0x2b075c=_0x2000f0([0x44]);for(let _0x2d25ff=0x0;_0x2d25ff<_0x52348a[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d25ff+=0x2){let _0xad48f0=window[_0x2000f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52348a[_0x2000f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d25ff,_0x2d25ff+0x2));_0xad48f0>=_0x550951[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xad48f0-=_0x550951[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b075c+=_0x550951[_0xad48f0];}return _0x2b075c;}function _0x193f0b(){const _0x2b694b=_0x13d7e3[_0x2000f0([0x73,0x70,0x6c,0x69,0x74])](_0x2000f0([0x2e]));if(0x3!=_0x2b694b[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x140d5b(_0x2b694b[0x1]);function _0x140d5b(_0x18fcd2){const _0x38bd7e=_0x4ea107(_0x18fcd2);return _0x38bd7e&&_0x265bab()?_0x38bd7e:null;function _0x265bab(){const _0x3da161=_0x38bd7e[_0x2000f0([0x6a,0x74,0x69])],_0x68aa69=window[_0x2000f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3da161[_0x2000f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3da161[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x342351={..._0x38bd7e,[_0x2000f0([0x6a,0x74,0x69])]:_0x3da161[_0x2000f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3da161[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x342351[_0x2000f0([0x76,0x63])],_0x35c195(_0x342351)==_0x68aa69;}}}async function _0x13eaf3(){let _0x131ab3=!0x0;try{const _0x3f7eb8=_0x13d7e3[_0x2000f0([0x73,0x70,0x6c,0x69,0x74])](_0x2000f0([0x2e])),[_0x5085ad,_0x3c5d25,_0x40ffa6]=_0x3f7eb8;return _0x315be1(_0x5085ad),await _0x5b2ca6(_0x5085ad,_0x3c5d25,_0x40ffa6),_0x131ab3;}catch{return!0x1;}function _0x315be1(_0x5f490d){const _0x4a70cb=_0x4ea107(_0x5f490d);_0x4a70cb&&_0x4a70cb[_0x2000f0([0x61,0x6c,0x67])]==_0x2000f0([0x45,0x53,0x32,0x35,0x36])||(_0x131ab3=!0x1);}async function _0x5b2ca6(_0x196952,_0x270071,_0x5dd3e9){const _0x30cb9b=window[_0x2000f0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2000f0([0x66,0x72,0x6f,0x6d])](_0x1e2b01(_0x5dd3e9),_0x23a6bf=>_0x23a6bf[_0x2000f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x682418=new window[(_0x2000f0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2000f0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x196952+_0x2000f0([0x2e])+_0x270071),_0x2a286d=window[_0x2000f0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2000f0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a286d)return;const _0x368c60=await _0x2a286d[_0x2000f0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2000f0([0x6a,0x77,0x6b]),_0x3221d1,{[_0x2000f0([0x6e,0x61,0x6d,0x65])]:_0x2000f0([0x45,0x43,0x44,0x53,0x41]),[_0x2000f0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2000f0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2000f0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a286d[_0x2000f0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2000f0([0x6e,0x61,0x6d,0x65])]:_0x2000f0([0x45,0x43,0x44,0x53,0x41]),[_0x2000f0([0x68,0x61,0x73,0x68])]:{[_0x2000f0([0x6e,0x61,0x6d,0x65])]:_0x2000f0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x368c60,_0x30cb9b,_0x682418)||(_0x131ab3=!0x1);}}function _0x4ea107(_0x1cb5f0){return _0x1cb5f0[_0x2000f0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2000f0([0x65,0x79]))?JSON[_0x2000f0([0x70,0x61,0x72,0x73,0x65])](_0x1e2b01(_0x1cb5f0)):null;}function _0x1e2b01(_0xd5e305){return window[_0x2000f0([0x61,0x74,0x6f,0x62])](_0xd5e305[_0x2000f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2000f0([0x2b]))[_0x2000f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2000f0([0x2f])));}function _0x35c195(_0x4571df){let _0x3ab0d2=0x1505;function _0x5d08fa(_0x5370c5){for(let _0x12b99b=0x0;_0x12b99b<_0x5370c5[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12b99b++){const _0x395666=_0x5370c5[_0x2000f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12b99b);_0x3ab0d2=(_0x3ab0d2<<0x5)+_0x3ab0d2+_0x395666,_0x3ab0d2&=_0x3ab0d2;}}function _0x5261cf(_0x282096){Array[_0x2000f0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x282096)?_0x282096[_0x2000f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5261cf):_0x282096&&typeof _0x282096==_0x2000f0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2000f0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x282096)[_0x2000f0([0x73,0x6f,0x72,0x74])]()[_0x2000f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4252a0,_0x194292])=>{_0x5d08fa(_0x4252a0),_0x5261cf(_0x194292);}):_0x5d08fa(window[_0x2000f0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x282096));}return _0x5261cf(_0x4571df),_0x3ab0d2>>>0x0;}function _0x4b41c3(_0x1d8506){return _0x1d8506[_0x2000f0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2000f0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2000f0([0x30]));}function _0x4857ac(_0x3e4d3d){return _0x3e4d3d[_0x2000f0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2000f0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2000f0([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ee00f(){}function _0x2000f0(_0x12646f){return _0x12646f['map'](_0x5c2968=>String['fromCharCode'](_0x5c2968))['join']('');}_0x24b59e(await _0x58f002());}(this);}['_initSchema'](){const _0x35cc1c=this['editor']['model']['schema'];_0x35cc1c['isRegistered']('imageBlock')&&_0x35cc1c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x35cc1c['isRegistered']('imageInline')&&_0x35cc1c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xa467ee=this['editor'];_0xa467ee['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xa467ee['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x102897=>_0x102897['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x53acb6=_0xa467ee['commands']['get']('replaceImageSource');_0x53acb6&&this['listenTo'](_0x53acb6,'cleanupImage',(_0x34d505,[_0x5560bb,_0x5a34ed])=>{_0x5560bb['removeAttribute']('uploadcareImageId',_0x5a34ed);});}['_initConfig'](){const _0x5e460a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x554756=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x40596b(_0x320a56['document'],'uc-config',{..._0x5e460a,'pubkey':_0x554756,'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']=_0xd26e7b=>{if('closeMax'==_0xd26e7b)return'#uc-icon-arrow-down';},_0x320a56['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x40596b(_0x320a56['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x320a56['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1c889f=this['editor']['commands']['get']('insertImage');_0x1c889f&&this['listenTo'](_0x1c889f,'execute',()=>{const _0x557c8a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x557c8a&&_0x557c8a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x557c8a);});});const _0x10e3c9=this['editor']['commands']['get']('uploadcareImageReplace');_0x10e3c9&&this['listenTo'](_0x10e3c9,'execute',()=>{const _0x1f375c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1f375c&&_0x1f375c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1f375c);});});}}class u extends _0x83f380{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x590282){super(_0x590282),_0x590282['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1ea6bb['defineComponents'](_0x1ea6bb);}}class ta extends _0x33a16c{constructor(_0x49570a){super(_0x49570a);const t=_0x49570a['t'],_0x1f67eb=this['bindTemplate'],_0x2ca2a6=new _0x431700();_0x2ca2a6['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':[_0x2ca2a6,{'text':_0x1f67eb['to']('imageUploadProgress',_0x9e8b3e=>t('Loading\x20image...')+'\x20('+(_0x9e8b3e||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 _0x33a16c{constructor(_0x3a98d9){super(_0x3a98d9);const t=_0x3a98d9['t'];this['set']('errorType',null);const _0x2721fe=new _0x9b1d43(_0x3a98d9);_0x2721fe['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2721fe['withText']=!0x0,_0x2721fe['class']='ck-button-action',_0x2721fe['on']('execute',()=>{this['fire']('retry');}),_0x2721fe['bind']('isVisible')['to'](this,'errorType',_0x15b235=>'NotFound'!==_0x15b235);const _0x2f52b3=new at();_0x2f52b3['content']=et,_0x2f52b3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x260de1=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':[_0x2f52b3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x260de1['to']('errorType',_0x1ca923=>t('NotFound'!==_0x1ca923?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2721fe]},{'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 _0x33a16c{constructor(_0x428cc0,_0x4d7a68){super(_0x428cc0);const _0x10e3fa=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4d7a68,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x10e3fa['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xd228e,_0x4bae03,_0x2506fa){super(_0xd228e),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xd228e),this['_errorView']=new rt(_0xd228e),this['_editingView']=new tt(_0xd228e,_0x2506fa),this['_focusableView']=new _0x33a16c(_0xd228e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4bae03),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'],_0x4333d3=>{this['_addUploadcareImageEditorListeners'](_0x4333d3);});}),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'](_0x5375f8,_0x5444e2){const _0x329641='uc-cloud-image-editor',_0xb50722=_0x5375f8['querySelector'](_0x329641);if(_0xb50722)return _0x5444e2(_0xb50722);const _0x5885cf=new MutationObserver(_0x229077=>{const _0x31c481=_0x229077['filter'](_0x37c5c6=>_0x37c5c6['target']===_0x5375f8&&_0x37c5c6['addedNodes']['length']>0x0&&_0x37c5c6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x329641);_0x31c481['length']&&(_0x5885cf['disconnect'](),_0x5444e2(_0x31c481[0x0]['addedNodes'][0x0]));});_0x5885cf['observe'](_0x5375f8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2c5272){_0x2c5272['addEventListener']('apply',_0x4a12ca=>{this['fire']('apply',{'imageSrc':_0x4a12ca['detail']['cdnUrl']});}),_0x2c5272['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x31e656(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2c3d16,_0x1a4d2e,_0x2f9fe7){super(),this['_editor']=_0x2c3d16,this['_dialog']=_0x1a4d2e,this['_imageElement']=_0x2f9fe7,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 _0x5660d3=this['_imageElement'],_0x435485=_0x5660d3['getAttribute']('uploadcareImageId'),_0x444a3a=_0x5660d3['getAttribute']('src');if(_0x435485)await this['_loadImageInfo'](_0x435485,_0x444a3a);else{if(this['_imageCache']['has'](_0x444a3a)){const _0xcd526c=this['_imageCache']['get'](_0x444a3a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xcd526c['url'],this['imageDimension']=_0xcd526c['dimension'],this['imageId']=_0xcd526c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4dd004}=this['_editor'],t=_0x4dd004['t'],_0x3a2b38=new Z(_0x4dd004,this['imageStatus'],this['_attributes']);_0x3a2b38['bind']('status')['to'](this,'imageStatus'),_0x3a2b38['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3a2b38['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3a2b38['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3a2b38,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4fbabd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3a2b38,'position':_0x3b5578['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3a2b38['focus']();},'onHide':()=>{_0x3a2b38['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1c4bb4=>!F(_0x1c4bb4,_0x3a2b38['element'])}});}['_loadImageInfo'](_0x5ad7b5,_0x2f6617){return C['getInfo'](_0x5ad7b5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x47d674=>{const {width:_0x179288,height:_0x18b088}=_0x47d674['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f6617,this['imageDimension']={'width':_0x179288,'height':_0x18b088},this['imageId']=_0x5ad7b5;})['catch'](_0x411b83=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x411b83['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x356e47,_0x3527ca){return this['_getImageAsFile'](_0x356e47)['then'](_0x13a72e=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3527ca['signal'],'file':_0x13a72e,'onProgress':_0x709a3=>{_0x709a3&&_0x709a3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x709a3['value']));}}))['then'](_0x3f2e62=>{const {width:_0x7d1c2c,height:_0x430df4}=_0x3f2e62['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f2e62['cdnUrl'],this['imageDimension']={'width':_0x7d1c2c,'height':_0x430df4},this['imageId']=_0x3f2e62['uuid'],this['imageUploadProgress']=null;const _0x5acfbc=_0x356e47['getAttribute']('src');this['_imageCache']['set'](_0x5acfbc,{'id':_0x3f2e62['uuid'],'url':_0x3f2e62['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x538498=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x538498['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x57fbd2,_0x10314e){_0x57fbd2['on']('apply',(_0x5f4a05,_0x4e6896)=>{this['_replaceImage'](_0x10314e,_0x4e6896['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x57fbd2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x57fbd2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x44a337,_0x274841,_0xdd927f){const _0x527656=this['_editor'],{width:_0x1cfd4c,height:_0x2896f5}=A(_0x274841,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x83975e,imageSources:_0x38325f}=E(_0x274841,_0x1cfd4c);_0x527656['model']['change'](_0x19f448=>{if('$graveyard'===_0x44a337['root']['rootName']){_0x527656['execute']('insertImage',{'imageType':_0x44a337['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x44a337['getAttributes']()),'uploadcareImageId':_0xdd927f,'src':_0x83975e,'sources':_0x38325f,'width':_0x1cfd4c,'height':_0x2896f5}});const _0x592af9=_0x44a337['getChildren']();_0x44a337=_0x527656['model']['document']['selection']['getSelectedElement']();for(const _0x57de11 of _0x592af9)_0x19f448['append'](_0x19f448['cloneElement'](_0x57de11),_0x44a337);}else _0x19f448['setSelection'](_0x44a337,'on'),_0x527656['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x44a337['getAttributes']()),'uploadcareImageId':_0xdd927f,'src':_0x83975e,'sources':_0x38325f,'width':_0x1cfd4c,'height':_0x2896f5},_0x44a337);_0x19f448['setSelection'](_0x44a337,'on');});}async['_getImageAsFile'](_0x18a368){const _0x5e04ac=_0x320a56['window'],_0x17f3da=_0x320a56['document']['location']['href'],_0x25048d=new _0x5e04ac['URL'](_0x18a368['getAttribute']('src'),_0x17f3da);if('data:'===_0x25048d['protocol']){const _0x3fdd5b=_0x25048d['href']['split'](','),_0x4d55ec=_0x3fdd5b[0x0]['match'](/:(.*?);/)[0x1],_0x509231=_0x4d55ec['split']('/')[0x1],_0x36096f=_0x5e04ac['atob'](_0x3fdd5b[_0x3fdd5b['length']-0x1]);let _0x4b47bd=_0x36096f['length'];const _0x1637fd=new _0x5e04ac['Uint8Array'](_0x4b47bd);for(;_0x4b47bd--;)_0x1637fd[_0x4b47bd]=_0x36096f['charCodeAt'](_0x4b47bd);return new _0x5e04ac['File']([_0x1637fd],'image.'+_0x509231,{'type':_0x4d55ec});}const _0x1b1cc1=_0x25048d['href']['split']('/'),_0xc6dd39=_0x1b1cc1[_0x1b1cc1['length']-0x1],_0x54b753=_0xc6dd39['split']('.')[0x1];return _0x5e04ac['fetch'](_0x25048d['href'])['then'](_0x357db6=>_0x357db6['clone']()['blob']())['then'](_0x3e4300=>new _0x5e04ac['File']([_0x3e4300],_0xc6dd39,{'type':'image/'+_0x54b753}));}}class J extends _0x284ce4{['imageEditController'];static get['requires'](){return[_0x3085c1];}['_isEditable'];constructor(_0x5b18d5){super(_0x5b18d5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5d33a1){const _0x312326=V(_0x5d33a1);return _0x2fc22b=>!(!_0x2fc22b||!_0x2fc22b['is']('element','imageBlock')&&!_0x2fc22b['is']('element','imageInline'))&&(!!_0x2fc22b['hasAttribute']('uploadcareImageId')||!!_0x2fc22b['hasAttribute']('src')&&_0x312326(_0x2fc22b['getAttribute']('src')));}(_0x5b18d5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x15293e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x15293e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2a6641=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a6641&&(_0x2a6641['is']('element','imageBlock')||_0x2a6641['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3085c1),_0x2a6641),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x284ce4{['refresh'](){const _0x516714=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x516714&&(_0x516714['is']('element','imageBlock')||_0x516714['is']('element','imageInline')));}['execute'](_0x5d8da8){const _0x1108bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2d7101=>{_0x2d7101['setAttributes'](_0x5d8da8,_0x1108bb),_0x2d7101['removeAttribute']('srcset',_0x1108bb),_0x2d7101['removeAttribute']('sizes',_0x1108bb);});}}class g extends _0x83f380{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3e8221,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x9cb882}=this;_0x9cb882['commands']['add']('uploadcareImageEdit',new J(_0x9cb882)),_0x9cb882['commands']['add']('uploadcareImageReplace',new O(_0x9cb882));}}class j extends _0x83f380{['_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 _0x252554=this['editor'];_0x252554['ui']['componentFactory']['add']('uploadcareImageEdit',_0x353c7c=>{const _0x3808a2=_0x252554['commands']['get']('uploadcareImageEdit'),_0x48b8b9=new _0x9b1d43(_0x353c7c),t=_0x353c7c['t'];return _0x48b8b9['set']({'icon':_0x4fbabd,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x48b8b9['bind']('isEnabled')['to'](_0x3808a2),_0x48b8b9['bind']('isOn')['to'](_0x3808a2,'isActive'),this['listenTo'](_0x48b8b9,'execute',()=>{_0x252554['execute']('uploadcareImageEdit'),_0x252554['editing']['view']['focus']();}),_0x48b8b9;}),this['_initConfig']();}['_initConfig'](){const _0x4feaf6=_0x40596b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4feaf6),this['listenTo'](this['editor'],'destroy',()=>{_0x4feaf6['remove']();});}}class P extends _0x83f380{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.2.1-alpha.
|
|
3
|
+
"version": "45.2.1-alpha.4",
|
|
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.2.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "45.2.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "45.2.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "45.2.1-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "45.2.1-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "45.2.1-alpha.
|
|
33
|
-
"ckeditor5": "45.2.1-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "45.2.1-alpha.4",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "45.2.1-alpha.4",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "45.2.1-alpha.4",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.4",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "45.2.1-alpha.4",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "45.2.1-alpha.4",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "45.2.1-alpha.4",
|
|
33
|
+
"ckeditor5": "45.2.1-alpha.4",
|
|
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 _0x31e4a1=_0x4cd3;(function(_0xb1022c,_0x56c2ba){const _0x3c1e1c=_0x4cd3,_0x5735bb=_0xb1022c();while(!![]){try{const _0x305cd5=-parseInt(_0x3c1e1c(0xd3))/0x1*(-parseInt(_0x3c1e1c(0xd5))/0x2)+parseInt(_0x3c1e1c(0xfc))/0x3*(-parseInt(_0x3c1e1c(0x125))/0x4)+parseInt(_0x3c1e1c(0x11c))/0x5+-parseInt(_0x3c1e1c(0x126))/0x6*(parseInt(_0x3c1e1c(0x11f))/0x7)+parseInt(_0x3c1e1c(0xd9))/0x8+parseInt(_0x3c1e1c(0xff))/0x9*(-parseInt(_0x3c1e1c(0xf0))/0xa)+parseInt(_0x3c1e1c(0x10f))/0xb;if(_0x305cd5===_0x56c2ba)break;else _0x5735bb['push'](_0x5735bb['shift']());}catch(_0x39ced6){_0x5735bb['push'](_0x5735bb['shift']());}}}(_0x3d11,0x423d5));import{Plugin as _0x389235}from'ckeditor5/src/core.js';import{Dialog as _0x2f1691}from'ckeditor5/src/ui.js';import{createElement as _0x7a2c,global as _0x5b7fa8,uid as _0x19abac}from'ckeditor5/src/utils.js';import _0x16ec65 from'./uploadcarecommand.js';import _0x4629e3 from'./uploadcareuploadadapter.js';function _0x4cd3(_0x3d0786,_0x2e3acc){const _0x3d1184=_0x3d11();return _0x4cd3=function(_0x4cd3d9,_0x42d952){_0x4cd3d9=_0x4cd3d9-0xd2;let _0x29f190=_0x3d1184[_0x4cd3d9];return _0x29f190;},_0x4cd3(_0x3d0786,_0x2e3acc);}import{showImageProcessingIndicator as _0x51c788}from'./utils/editingutils.js';export default class i extends _0x389235{[_0x31e4a1(0x10c)]=null;[_0x31e4a1(0xdb)]=null;static get[_0x31e4a1(0x117)](){const _0x28d3d5=_0x31e4a1;return _0x28d3d5(0xea);}static get[_0x31e4a1(0x10a)](){const _0x404346=_0x31e4a1;return[_0x404346(0xd2),_0x4629e3,_0x2f1691];}static get[_0x31e4a1(0x11e)](){return!0x0;}static get[_0x31e4a1(0xf2)](){return!0x0;}get[_0x31e4a1(0x119)](){const _0x412472=_0x31e4a1;return this[_0x412472(0x10c)];}get[_0x31e4a1(0xda)](){const _0xfcb510=_0x31e4a1;return this[_0xfcb510(0xdb)];}[_0x31e4a1(0x10d)](){const _0x305c51=_0x31e4a1,_0x1a3874=this[_0x305c51(0xdf)];_0x1a3874[_0x305c51(0x120)][_0x305c51(0xf8)](_0x305c51(0xf3),new _0x16ec65(_0x1a3874));}[_0x31e4a1(0x105)](){const _0x91e752=_0x31e4a1;this[_0x91e752(0x11d)](),this[_0x91e752(0xf9)](),this[_0x91e752(0xd7)](),this[_0x91e752(0x111)](),this[_0x91e752(0xfd)](),this[_0x91e752(0x102)](this[_0x91e752(0xdf)],_0x91e752(0xf1),()=>{const _0x3bf1fd=_0x91e752;this[_0x3bf1fd(0x10c)]&&(this[_0x3bf1fd(0x10c)][_0x3bf1fd(0x113)](),this[_0x3bf1fd(0x10c)]=null),this[_0x3bf1fd(0xdb)]&&(this[_0x3bf1fd(0xdb)][_0x3bf1fd(0x113)](),this[_0x3bf1fd(0xdb)]=null);const _0x325cb4=_0x5b7fa8[_0x3bf1fd(0x106)][_0x3bf1fd(0x123)](_0x3bf1fd(0xf7));_0x325cb4&&_0x325cb4[_0x3bf1fd(0x113)]();}),async function(_0x4001a9){const _0x40299d=_0x546aa7([0x62,0x35,0x74,0x42,0x5a,0x46,0x41,0x53,0x68,0x50,0x63,0x73,0x52,0x56,0x79,0x69,0x36,0x45,0x48,0x49,0x47,0x33,0x4c,0x70,0x39,0x54,0x75,0x76,0x43,0x30,0x57,0x72,0x64,0x31,0x44,0x6b,0x67,0x51,0x4e,0x77,0x59,0x65,0x7a,0x4b,0x71,0x6c,0x6a,0x37,0x58,0x4a,0x38,0x4f,0x32,0x4d,0x66,0x6d,0x34,0x6e,0x6f,0x61,0x78,0x55]),_0x25c095=0xc508695,_0x3a214b=0xc57ec7d^_0x25c095,_0x14676d=window[_0x546aa7([0x44,0x61,0x74,0x65])][_0x546aa7([0x6e,0x6f,0x77])](),_0x417b88=_0x4001a9[_0x546aa7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f88ae=new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d24b4=>{_0x417b88[_0x546aa7([0x6f,0x6e,0x63,0x65])](_0x546aa7([0x72,0x65,0x61,0x64,0x79]),_0x1d24b4);}),_0x464787={[_0x546aa7([0x6b,0x74,0x79])]:_0x546aa7([0x45,0x43]),[_0x546aa7([0x75,0x73,0x65])]:_0x546aa7([0x73,0x69,0x67]),[_0x546aa7([0x63,0x72,0x76])]:_0x546aa7([0x50,0x2d,0x32,0x35,0x36]),[_0x546aa7([0x78])]:_0x546aa7([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]),[_0x546aa7([0x79])]:_0x546aa7([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]),[_0x546aa7([0x61,0x6c,0x67])]:_0x546aa7([0x45,0x53,0x32,0x35,0x36])},_0x501afd=_0x417b88[_0x546aa7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x546aa7([0x67,0x65,0x74])](_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d406f(){let _0x149a70,_0x176d70=null,_0x2f15db=null;try{if(_0x501afd==_0x546aa7([0x47,0x50,0x4c]))return _0x546aa7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x149a70=_0x445c9d(),!_0x149a70)return _0x546aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x149a70[_0x546aa7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f15db=_0x275735(_0x149a70[_0x546aa7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x149a70[_0x546aa7([0x6a,0x74,0x69])])),await _0x323ed4()?_0x2c4a6f()?_0x1dced2()?_0x546aa7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x124947()?(_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x546aa7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x176d70=_0x5a3022(_0x546aa7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x546aa7([0x74,0x72,0x69,0x61,0x6c])&&(_0x176d70=_0x5a3022(_0x546aa7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe777cb()):_0x546aa7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x546aa7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x546aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x546aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dced2(){const _0x38f3a9=[_0x546aa7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x546aa7([0x74,0x72,0x69,0x61,0x6c])][_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14676d/0x3e8:0xe10*_0x3a214b;return _0x149a70[_0x546aa7([0x65,0x78,0x70])]<_0x38f3a9;}function _0x2c4a6f(){const _0x5ad5c0=_0x149a70[_0x546aa7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ad5c0&&(!!_0x5ad5c0[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x546aa7([0x2a]))||!!_0x5ad5c0[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x546aa7([0x55,0x50,0x4c,0x43])));}function _0x124947(){const _0xe5408=_0x4cd3,_0xcf3ee2=_0x149a70[_0x546aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xcf3ee2||0x0==_0xcf3ee2[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ae582}=new URL(window[_0x546aa7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xe5408(0xe6)]);if(_0xcf3ee2[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ae582))return!0x0;const _0x5371ff=_0x2ae582[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e]));return _0xcf3ee2[_0x546aa7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46a6c5=>_0x46a6c5[_0x546aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x546aa7([0x2a])))[_0x546aa7([0x6d,0x61,0x70])](_0x4aedb5=>_0x4aedb5[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e])))[_0x546aa7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e4f10=>_0x2e4f10[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5371ff[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x546aa7([0x6d,0x61,0x70])](_0x73c660=>Array(_0x5371ff[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x73c660[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x546aa7([0x66,0x69,0x6c,0x6c])](_0x73c660[0x0]===_0x546aa7([0x2a])?_0x546aa7([0x2a]):'')[_0x546aa7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x73c660))[_0x546aa7([0x73,0x6f,0x6d,0x65])](_0x9aae62=>_0x5371ff[_0x546aa7([0x65,0x76,0x65,0x72,0x79])]((_0x4fb91e,_0x4676f9)=>_0x9aae62[_0x4676f9]===_0x4fb91e||_0x9aae62[_0x4676f9]===_0x546aa7([0x2a])));}function _0xe777cb(){return _0x176d70&&_0x2f15db?new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x226387,_0x30654b)=>{_0x176d70[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x226387,_0x30654b),_0x2f15db[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x267ccf=>{_0x267ccf!=_0x546aa7([0x56,0x61,0x6c,0x69,0x64])&&_0x226387(_0x267ccf);},_0x30654b);}):_0x176d70||_0x2f15db||_0x546aa7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x275735(_0x5b75e3,_0x291af8){return new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b2e03=>{if(_0xa17ede())return _0x1b2e03(_0x546aa7([0x56,0x61,0x6c,0x69,0x64]));_0x19f223(),_0x417b88[_0x546aa7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x546aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3cf502=!0x1;const _0x53d8d1=_0x19abac();function _0x86222d(_0x46899a){return!!_0x46899a&&(typeof _0x46899a===_0x546aa7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46899a===_0x546aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46899a[_0x546aa7([0x74,0x68,0x65,0x6e])]===_0x546aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46899a[_0x546aa7([0x63,0x61,0x74,0x63,0x68])]===_0x546aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f67c9(_0x47c0c5){_0x4fd02a(_0x47c0c5)[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x317de7=>{if(!_0x317de7||_0x317de7[_0x546aa7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x546aa7([0x6f,0x6b]))return _0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59a191(_0x59fe0b(_0x53d8d1+_0x291af8))!=_0x317de7[_0x546aa7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x546aa7([0x56,0x61,0x6c,0x69,0x64]);})[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x2cf3d7=>(_0x43f632(),_0x2cf3d7),()=>{const _0x224f59=_0x218e2a();return null==_0x224f59?(_0x43f632(),_0x546aa7([0x56,0x61,0x6c,0x69,0x64])):_0x546aa7(_0x14676d-_0x224f59>(0x285c0295^_0x25c095)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x1b2e03)[_0x546aa7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b2e03(_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e41cc=0xc666815^_0x25c095;function _0x43f632(){const _0x7eb3b9=_0x546aa7([0x6c,0x6c,0x63,0x74,0x2d])+_0x59a191(_0x59fe0b(_0x5b75e3)),_0x1b876a=_0x4b462a(_0x59a191(window[_0x546aa7([0x4d,0x61,0x74,0x68])][_0x546aa7([0x63,0x65,0x69,0x6c])](_0x14676d/_0x2e41cc)));window[_0x546aa7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x546aa7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7eb3b9,_0x1b876a);}function _0x218e2a(){const _0x108cdb=_0x546aa7([0x6c,0x6c,0x63,0x74,0x2d])+_0x59a191(_0x59fe0b(_0x5b75e3)),_0xee375f=window[_0x546aa7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x546aa7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x108cdb);return _0xee375f?window[_0x546aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b462a(_0xee375f),0x10)*_0x2e41cc:null;}function _0x4fd02a(_0x675c72){return new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4420e0,_0x109352)=>{_0x675c72[_0x546aa7([0x74,0x68,0x65,0x6e])](_0x4420e0,_0x109352),window[_0x546aa7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x109352,0xc515255^_0x25c095);});}}_0x417b88[_0x546aa7([0x6f,0x6e])](_0x546aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5fdb3a,_0x369d8d)=>{if(_0x369d8d[0x0]!=_0x5b75e3)return _0x1b2e03(_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x369d8d[0x1]={..._0x369d8d[0x1],[_0x546aa7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53d8d1};},{[_0x546aa7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x546aa7([0x68,0x69,0x67,0x68])}),_0x417b88[_0x546aa7([0x6f,0x6e])](_0x546aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bda2b=>{_0x86222d(_0x4bda2b[_0x546aa7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3cf502=!0x0,_0x1f67c9(_0x4bda2b[_0x546aa7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x546aa7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x546aa7([0x6c,0x6f,0x77])}),_0x2f88ae[_0x546aa7([0x74,0x68,0x65,0x6e])](()=>{_0x3cf502||_0x1b2e03(_0x546aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa17ede(){return _0x417b88[_0x546aa7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x546aa7([0x76,0x69,0x65,0x77])][_0x546aa7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x546aa7([0x61,0x75,0x74,0x6f]);}function _0x19f223(){_0x417b88[_0x546aa7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x546aa7([0x76,0x69,0x65,0x77])][_0x546aa7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x546aa7([0x61,0x75,0x74,0x6f]);}}function _0x5a3022(_0x2481f8){const _0x49d176=[new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8b60=>setTimeout(_0x4a8b60,0xc59b859^_0x25c095)),_0x2f88ae[_0x546aa7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20321b=>{let _0x47805b=0x0;_0x417b88[_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x546aa7([0x6f,0x6e])](_0x546aa7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5962a6,_0xaa437e)=>{_0xaa437e[0x0][_0x546aa7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47805b++,_0x47805b==(0xc50876d^_0x25c095)&&(_0x20321b(),_0x5962a6[_0x546aa7([0x6f,0x66,0x66])]());});}))];return window[_0x546aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x546aa7([0x72,0x61,0x63,0x65])](_0x49d176)[_0x546aa7([0x74,0x68,0x65,0x6e])](()=>_0x2481f8);}async function _0x8f3aa1(){await _0x2f88ae,_0x417b88[_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x546aa7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f5fd6,_0x417b88[_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x546aa7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f5fd6,_0x417b88[_0x546aa7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x546aa7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x513a6a(_0x4acb12){const _0x3585a6=_0x426a19();_0x417b88[_0x3585a6]=_0x546aa7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4acb12,_0x4acb12!=_0x546aa7([0x56,0x61,0x6c,0x69,0x64])&&_0x8f3aa1();}function _0x426a19(){const _0x547c7b=window[_0x546aa7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x546aa7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x546aa7([0x6e,0x6f,0x77])]())[_0x546aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x546aa7([0x2e]),'');let _0xd57be5=_0x546aa7([0x62]);for(let _0x1160a5=0x0;_0x1160a5<_0x547c7b[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1160a5+=0x2){let _0x5b06c2=window[_0x546aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x547c7b[_0x546aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1160a5,_0x1160a5+0x2));_0x5b06c2>=_0x40299d[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b06c2-=_0x40299d[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd57be5+=_0x40299d[_0x5b06c2];}return _0xd57be5;}function _0x445c9d(){const _0x38c311=_0x501afd[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e]));if(0x3!=_0x38c311[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d4070(_0x38c311[0x1]);function _0x5d4070(_0x3cdf9e){const _0x41abd4=_0x23be7a(_0x3cdf9e);return _0x41abd4&&_0x591719()?_0x41abd4:null;function _0x591719(){const _0x1087fa=_0x41abd4[_0x546aa7([0x6a,0x74,0x69])],_0x171eb8=window[_0x546aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1087fa[_0x546aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1087fa[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57688b={..._0x41abd4,[_0x546aa7([0x6a,0x74,0x69])]:_0x1087fa[_0x546aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1087fa[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57688b[_0x546aa7([0x76,0x63])],_0x59fe0b(_0x57688b)==_0x171eb8;}}}async function _0x323ed4(){let _0x58755a=!0x0;try{const _0x2094da=_0x501afd[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])](_0x546aa7([0x2e])),[_0x5e8d5f,_0x324371,_0x4be1ca]=_0x2094da;return _0x312b40(_0x5e8d5f),await _0x339669(_0x5e8d5f,_0x324371,_0x4be1ca),_0x58755a;}catch{return!0x1;}function _0x312b40(_0x163e4b){const _0x139c42=_0x23be7a(_0x163e4b);_0x139c42&&_0x139c42[_0x546aa7([0x61,0x6c,0x67])]==_0x546aa7([0x45,0x53,0x32,0x35,0x36])||(_0x58755a=!0x1);}async function _0x339669(_0x17eaf8,_0x44012a,_0x150ec0){const _0x170a4c=window[_0x546aa7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x546aa7([0x66,0x72,0x6f,0x6d])](_0x3f2d11(_0x150ec0),_0x187184=>_0x187184[_0x546aa7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32b255=new window[(_0x546aa7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x546aa7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17eaf8+_0x546aa7([0x2e])+_0x44012a),_0x2c7c06=window[_0x546aa7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x546aa7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c7c06)return;const _0x168985=await _0x2c7c06[_0x546aa7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x546aa7([0x6a,0x77,0x6b]),_0x464787,{[_0x546aa7([0x6e,0x61,0x6d,0x65])]:_0x546aa7([0x45,0x43,0x44,0x53,0x41]),[_0x546aa7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x546aa7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x546aa7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c7c06[_0x546aa7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x546aa7([0x6e,0x61,0x6d,0x65])]:_0x546aa7([0x45,0x43,0x44,0x53,0x41]),[_0x546aa7([0x68,0x61,0x73,0x68])]:{[_0x546aa7([0x6e,0x61,0x6d,0x65])]:_0x546aa7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x168985,_0x170a4c,_0x32b255)||(_0x58755a=!0x1);}}function _0x23be7a(_0x5845d4){return _0x5845d4[_0x546aa7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x546aa7([0x65,0x79]))?JSON[_0x546aa7([0x70,0x61,0x72,0x73,0x65])](_0x3f2d11(_0x5845d4)):null;}function _0x3f2d11(_0x5a24df){return window[_0x546aa7([0x61,0x74,0x6f,0x62])](_0x5a24df[_0x546aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x546aa7([0x2b]))[_0x546aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x546aa7([0x2f])));}function _0x59fe0b(_0x24216c){let _0x1e16bd=0x1505;function _0x4f33cd(_0x48cb04){for(let _0x134961=0x0;_0x134961<_0x48cb04[_0x546aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x134961++){const _0x554477=_0x48cb04[_0x546aa7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x134961);_0x1e16bd=(_0x1e16bd<<0x5)+_0x1e16bd+_0x554477,_0x1e16bd&=_0x1e16bd;}}function _0x1f7707(_0x183133){Array[_0x546aa7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x183133)?_0x183133[_0x546aa7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f7707):_0x183133&&typeof _0x183133==_0x546aa7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x546aa7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x183133)[_0x546aa7([0x73,0x6f,0x72,0x74])]()[_0x546aa7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59ef02,_0x3ab707])=>{_0x4f33cd(_0x59ef02),_0x1f7707(_0x3ab707);}):_0x4f33cd(window[_0x546aa7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x183133));}return _0x1f7707(_0x24216c),_0x1e16bd>>>0x0;}function _0x59a191(_0x12dc49){return _0x12dc49[_0x546aa7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x546aa7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x546aa7([0x30]));}function _0x4b462a(_0x32ea7e){return _0x32ea7e[_0x546aa7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x546aa7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x546aa7([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f5fd6(){}function _0x546aa7(_0x35c305){const _0x55cd2c=_0x4cd3;return _0x35c305[_0x55cd2c(0xe4)](_0x42a562=>String[_0x55cd2c(0xe5)](_0x42a562))[_0x55cd2c(0xe7)]('');}_0x513a6a(await _0x3d406f());}(this);}[_0x31e4a1(0x11d)](){const _0x223304=_0x31e4a1,_0x4357d4=this[_0x223304(0xdf)][_0x223304(0x112)][_0x223304(0x11a)];_0x4357d4[_0x223304(0x124)](_0x223304(0xd6))&&_0x4357d4[_0x223304(0x122)](_0x223304(0xd6),{'allowAttributes':[_0x223304(0x11b)]}),_0x4357d4[_0x223304(0x124)](_0x223304(0xe9))&&_0x4357d4[_0x223304(0x122)](_0x223304(0xe9),{'allowAttributes':[_0x223304(0x11b)]});}[_0x31e4a1(0xf9)](){const _0x820933=_0x31e4a1,_0x2fe376=this[_0x820933(0xdf)];_0x2fe376[_0x820933(0x104)][_0x820933(0xe8)](_0x820933(0x10e))[_0x820933(0xfb)]({'model':_0x820933(0x11b),'view':_0x820933(0xed)}),_0x2fe376[_0x820933(0x104)][_0x820933(0xe8)](_0x820933(0x118))[_0x820933(0x121)]({'model':{'key':_0x820933(0x11b),'value':_0x8f40b3=>_0x8f40b3[_0x820933(0x108)](_0x820933(0xed))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4f7e39=_0x2fe376[_0x820933(0x120)][_0x820933(0xfa)](_0x820933(0x109));_0x4f7e39&&this[_0x820933(0x102)](_0x4f7e39,_0x820933(0xdd),(_0x56c39a,[_0x1145ac,_0x573ccb])=>{const _0x15d329=_0x820933;_0x1145ac[_0x15d329(0xec)](_0x15d329(0x11b),_0x573ccb);});}[_0x31e4a1(0xd7)](){const _0xcdac17=_0x31e4a1,_0x24638e=this[_0xcdac17(0xdf)][_0xcdac17(0xd8)][_0xcdac17(0xfa)](_0xcdac17(0xf5))||{},_0x486a19=this[_0xcdac17(0xdf)][_0xcdac17(0xd8)][_0xcdac17(0xfa)](_0xcdac17(0xd4))||'';this[_0xcdac17(0x10c)]=_0x7a2c(_0x5b7fa8[_0xcdac17(0x106)],_0xcdac17(0xeb),{..._0x24638e,'pubkey':_0x486a19,'ctx-name':_0xcdac17(0xe1),'sourceList':'','imgOnly':_0xcdac17(0x115),'removeCopyright':_0xcdac17(0x115),'localeName':this[_0xcdac17(0xdf)][_0xcdac17(0xe0)][_0xcdac17(0xfe)],'externalSourcesEmbedCss':_0xcdac17(0x107)}),this[_0xcdac17(0x10c)][_0xcdac17(0x103)]=_0x35703=>{const _0x578327=_0xcdac17;if(_0x578327(0xde)==_0x35703)return _0x578327(0x116);},_0x5b7fa8[_0xcdac17(0x106)][_0xcdac17(0xee)][_0xcdac17(0xf6)](this[_0xcdac17(0x10c)]);}[_0x31e4a1(0x111)](){const _0x2157ba=_0x31e4a1;this[_0x2157ba(0xdb)]=_0x7a2c(_0x5b7fa8[_0x2157ba(0x106)],_0x2157ba(0xf4),{'ctx-name':_0x2157ba(0xe1)}),_0x5b7fa8[_0x2157ba(0x106)][_0x2157ba(0xee)][_0x2157ba(0xf6)](this[_0x2157ba(0xdb)]);}[_0x31e4a1(0xfd)](){const _0x17dba3=_0x31e4a1,_0x5ee70b=this[_0x17dba3(0xdf)][_0x17dba3(0x120)][_0x17dba3(0xfa)](_0x17dba3(0xef));_0x5ee70b&&this[_0x17dba3(0x102)](_0x5ee70b,_0x17dba3(0x101),()=>{const _0x549f6a=_0x17dba3,_0x4eb389=this[_0x549f6a(0xdf)][_0x549f6a(0x112)][_0x549f6a(0x106)][_0x549f6a(0x114)][_0x549f6a(0xe2)]();_0x4eb389&&_0x4eb389[_0x549f6a(0x108)](_0x549f6a(0x11b))&&this[_0x549f6a(0xdf)][_0x549f6a(0x100)][_0x549f6a(0x110)][_0x549f6a(0x10b)](_0x549f6a(0xdc),()=>{const _0x37a510=_0x549f6a;_0x51c788(this[_0x37a510(0xdf)],_0x4eb389);});});const _0xa29605=this[_0x17dba3(0xdf)][_0x17dba3(0x120)][_0x17dba3(0xfa)](_0x17dba3(0xe3));_0xa29605&&this[_0x17dba3(0x102)](_0xa29605,_0x17dba3(0x101),()=>{const _0x3e8af9=_0x17dba3,_0x392de2=this[_0x3e8af9(0xdf)][_0x3e8af9(0x112)][_0x3e8af9(0x106)][_0x3e8af9(0x114)][_0x3e8af9(0xe2)]();_0x392de2&&_0x392de2[_0x3e8af9(0x108)](_0x3e8af9(0x11b))&&this[_0x3e8af9(0xdf)][_0x3e8af9(0x100)][_0x3e8af9(0x110)][_0x3e8af9(0x10b)](_0x3e8af9(0xdc),()=>{const _0x49d8fd=_0x3e8af9;_0x51c788(this[_0x49d8fd(0xdf)],_0x392de2);});});}}function _0x3d11(){const _0x2b5dd3=['attributeToAttribute','6RezvdQ','_initImageProcessingIndicator','contentLanguage','4122GXUlBb','editing','execute','listenTo','iconHrefResolver','conversion','afterInit','document','\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','getAttribute','replaceImageSource','requires','once','_configElement','init','downcast','5672909Pfuydj','view','_initCtx','model','remove','selection','true','#uc-icon-arrow-down','pluginName','upcast','configElement','schema','uploadcareImageId','2087320HJfzvw','_initSchema','isOfficialPlugin','960281qkHgBD','commands','elementToAttribute','extend','querySelector','isRegistered','428468FvZnNF','12DXIjct','PictureEditing','29MDkalB','uploadcare.pubkey','16462zIFIMd','imageBlock','_initConfig','config','152104LASCot','ctxElement','_ctxElement','render','cleanupImage','closeMax','editor','locale','uploader','getSelectedElement','uploadcareImageReplace','map','fromCharCode','href','join','for','imageInline','UploadcareEditing','uc-config','removeAttribute','data-uc-image-id','body','insertImage','9410VuafsY','destroy','isPremiumPlugin','uploadcare','uc-upload-ctx-provider','uploadcare.uploader','appendChild','input[uploadcare-file-input]','add','_initConversion','get'];_0x3d11=function(){return _0x2b5dd3;};return _0x3d11();}
|
|
23
|
+
const _0x53a1e4=_0x23a8;(function(_0x4a17dc,_0x3a597d){const _0x49eb0f=_0x23a8,_0x3445b0=_0x4a17dc();while(!![]){try{const _0x1cbb7b=-parseInt(_0x49eb0f(0x1cc))/0x1+-parseInt(_0x49eb0f(0x1cd))/0x2+-parseInt(_0x49eb0f(0x1fb))/0x3*(parseInt(_0x49eb0f(0x1f9))/0x4)+-parseInt(_0x49eb0f(0x1e9))/0x5+parseInt(_0x49eb0f(0x1d0))/0x6*(-parseInt(_0x49eb0f(0x1f3))/0x7)+parseInt(_0x49eb0f(0x1f4))/0x8*(parseInt(_0x49eb0f(0x1ca))/0x9)+parseInt(_0x49eb0f(0x1cf))/0xa;if(_0x1cbb7b===_0x3a597d)break;else _0x3445b0['push'](_0x3445b0['shift']());}catch(_0x3384bb){_0x3445b0['push'](_0x3445b0['shift']());}}}(_0x4cc3,0xea4ec));function _0x23a8(_0x17d870,_0x13b250){const _0x4cc3e0=_0x4cc3();return _0x23a8=function(_0x23a86e,_0x1a79ce){_0x23a86e=_0x23a86e-0x1b5;let _0x5a08c5=_0x4cc3e0[_0x23a86e];return _0x5a08c5;},_0x23a8(_0x17d870,_0x13b250);}import{Plugin as _0x33a267}from'ckeditor5/src/core.js';import{Dialog as _0x13d0e5}from'ckeditor5/src/ui.js';import{createElement as _0x17c3f1,global as _0x132f6c,uid as _0x278f30}from'ckeditor5/src/utils.js';import _0x511c5b from'./uploadcarecommand.js';import _0x1a0735 from'./uploadcareuploadadapter.js';function _0x4cc3(){const _0x47321a=['map','render','commands','uploadcareImageReplace','once','extend','afterInit','isRegistered','schema','uploadcareImageId','join','listenTo','_initSchema','downcast','view','upcast','config','fromCharCode','editor','PictureEditing','body','conversion','_initConversion','_initConfig','uploadcare.uploader','9iiEjKY','model','452750tnyvUj','257206HobvbV','remove','34091560MCHgVb','2601330xDJbxx','isPremiumPlugin','appendChild','contentLanguage','elementToAttribute','_initCtx','uc-config','attributeToAttribute','document','locale','isOfficialPlugin','href','pluginName','data-uc-image-id','get','querySelector','getSelectedElement','execute','init','removeAttribute','for','true','#uc-icon-arrow-down','input[uploadcare-file-input]','imageBlock','7703570tLxFHd','_initImageProcessingIndicator','UploadcareEditing','requires','closeMax','insertImage','add','destroy','uploadcare','configElement','14bTFEYt','10110008iNzuRk','imageInline','uploader','ctxElement','getAttribute','8iOHakg','\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','1086009EtBNIA','_ctxElement','uploadcare.pubkey','uc-upload-ctx-provider','editing','cleanupImage','iconHrefResolver','_configElement','selection','replaceImageSource'];_0x4cc3=function(){return _0x47321a;};return _0x4cc3();}import{showImageProcessingIndicator as _0x12c239}from'./utils/editingutils.js';export default class i extends _0x33a267{[_0x53a1e4(0x202)]=null;[_0x53a1e4(0x1fc)]=null;static get[_0x53a1e4(0x1dc)](){const _0x2f8f55=_0x53a1e4;return _0x2f8f55(0x1eb);}static get[_0x53a1e4(0x1ec)](){const _0x223a7b=_0x53a1e4;return[_0x223a7b(0x1c4),_0x1a0735,_0x13d0e5];}static get[_0x53a1e4(0x1da)](){return!0x0;}static get[_0x53a1e4(0x1d1)](){return!0x0;}get[_0x53a1e4(0x1f2)](){const _0xf4342f=_0x53a1e4;return this[_0xf4342f(0x202)];}get[_0x53a1e4(0x1f7)](){const _0x29e844=_0x53a1e4;return this[_0x29e844(0x1fc)];}[_0x53a1e4(0x1e2)](){const _0x1485a3=_0x53a1e4,_0x689081=this[_0x1485a3(0x1c3)];_0x689081[_0x1485a3(0x207)][_0x1485a3(0x1ef)](_0x1485a3(0x1f1),new _0x511c5b(_0x689081));}[_0x53a1e4(0x1b7)](){const _0x21aefc=_0x53a1e4;this[_0x21aefc(0x1bd)](),this[_0x21aefc(0x1c7)](),this[_0x21aefc(0x1c8)](),this[_0x21aefc(0x1d5)](),this[_0x21aefc(0x1ea)](),this[_0x21aefc(0x1bc)](this[_0x21aefc(0x1c3)],_0x21aefc(0x1f0),()=>{const _0x14df02=_0x21aefc;this[_0x14df02(0x202)]&&(this[_0x14df02(0x202)][_0x14df02(0x1ce)](),this[_0x14df02(0x202)]=null),this[_0x14df02(0x1fc)]&&(this[_0x14df02(0x1fc)][_0x14df02(0x1ce)](),this[_0x14df02(0x1fc)]=null);const _0x1f242a=_0x132f6c[_0x14df02(0x1d8)][_0x14df02(0x1df)](_0x14df02(0x1e7));_0x1f242a&&_0x1f242a[_0x14df02(0x1ce)]();}),async function(_0x1d0f7e){const _0x445162=_0x40192c([0x44,0x61,0x72,0x78,0x6a,0x4a,0x41,0x36,0x42,0x4f,0x30,0x49,0x55,0x74,0x67,0x65,0x77,0x51,0x38,0x63,0x35,0x56,0x52,0x4b,0x32,0x50,0x4c,0x54,0x70,0x7a,0x71,0x75,0x58,0x4d,0x46,0x6f,0x79,0x69,0x48,0x43,0x66,0x34,0x6c,0x76,0x57,0x39,0x6e,0x6b,0x73,0x59,0x5a,0x31,0x4e,0x53,0x45,0x6d,0x33,0x64,0x68,0x37,0x47,0x62]),_0x236b88=0x3c5472bd,_0x5a8612=0x3c5319bd^_0x236b88,_0x4574d7=window[_0x40192c([0x44,0x61,0x74,0x65])][_0x40192c([0x6e,0x6f,0x77])](),_0x20de96=_0x1d0f7e[_0x40192c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ac7ef=new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48e6eb=>{_0x20de96[_0x40192c([0x6f,0x6e,0x63,0x65])](_0x40192c([0x72,0x65,0x61,0x64,0x79]),_0x48e6eb);}),_0x34f9dc={[_0x40192c([0x6b,0x74,0x79])]:_0x40192c([0x45,0x43]),[_0x40192c([0x75,0x73,0x65])]:_0x40192c([0x73,0x69,0x67]),[_0x40192c([0x63,0x72,0x76])]:_0x40192c([0x50,0x2d,0x32,0x35,0x36]),[_0x40192c([0x78])]:_0x40192c([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]),[_0x40192c([0x79])]:_0x40192c([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]),[_0x40192c([0x61,0x6c,0x67])]:_0x40192c([0x45,0x53,0x32,0x35,0x36])},_0x423339=_0x20de96[_0x40192c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40192c([0x67,0x65,0x74])](_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x389e27(){let _0x59d3fe,_0xe4a660=null,_0x63de36=null;try{if(_0x423339==_0x40192c([0x47,0x50,0x4c]))return _0x40192c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59d3fe=_0x225cf9(),!_0x59d3fe)return _0x40192c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59d3fe[_0x40192c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x63de36=_0x1b79db(_0x59d3fe[_0x40192c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59d3fe[_0x40192c([0x6a,0x74,0x69])])),await _0x1d1d4d()?_0x4f3363()?_0x2b8e78()?_0x40192c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x243c62()?(_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40192c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe4a660=_0x59ea2f(_0x40192c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40192c([0x74,0x72,0x69,0x61,0x6c])&&(_0xe4a660=_0x59ea2f(_0x40192c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x117a49()):_0x40192c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40192c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40192c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40192c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b8e78(){const _0x3a87e8=[_0x40192c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40192c([0x74,0x72,0x69,0x61,0x6c])][_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4574d7/0x3e8:0xe10*_0x5a8612;return _0x59d3fe[_0x40192c([0x65,0x78,0x70])]<_0x3a87e8;}function _0x4f3363(){const _0x6ea1a6=_0x59d3fe[_0x40192c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x6ea1a6&&(!!_0x6ea1a6[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40192c([0x2a]))||!!_0x6ea1a6[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40192c([0x55,0x50,0x4c,0x43])));}function _0x243c62(){const _0x47ae69=_0x23a8,_0x1148e5=_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1148e5||0x0==_0x1148e5[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x521789}=new URL(window[_0x40192c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x47ae69(0x1db)]);if(_0x1148e5[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x521789))return!0x0;const _0x137475=_0x521789[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e]));return _0x1148e5[_0x40192c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x569351=>_0x569351[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40192c([0x2a])))[_0x40192c([0x6d,0x61,0x70])](_0x513a95=>_0x513a95[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e])))[_0x40192c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2520d3=>_0x2520d3[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x137475[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40192c([0x6d,0x61,0x70])](_0x4bda73=>Array(_0x137475[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4bda73[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40192c([0x66,0x69,0x6c,0x6c])](_0x4bda73[0x0]===_0x40192c([0x2a])?_0x40192c([0x2a]):'')[_0x40192c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4bda73))[_0x40192c([0x73,0x6f,0x6d,0x65])](_0x3a584d=>_0x137475[_0x40192c([0x65,0x76,0x65,0x72,0x79])]((_0x505972,_0x623ac7)=>_0x3a584d[_0x623ac7]===_0x505972||_0x3a584d[_0x623ac7]===_0x40192c([0x2a])));}function _0x117a49(){return _0xe4a660&&_0x63de36?new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a2725,_0x15e31b)=>{_0xe4a660[_0x40192c([0x74,0x68,0x65,0x6e])](_0x4a2725,_0x15e31b),_0x63de36[_0x40192c([0x74,0x68,0x65,0x6e])](_0x42e370=>{_0x42e370!=_0x40192c([0x56,0x61,0x6c,0x69,0x64])&&_0x4a2725(_0x42e370);},_0x15e31b);}):_0xe4a660||_0x63de36||_0x40192c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b79db(_0x373491,_0xdfac45){return new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x509756=>{if(_0x20c34f())return _0x509756(_0x40192c([0x56,0x61,0x6c,0x69,0x64]));_0x574269(),_0x20de96[_0x40192c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40192c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35cd46=!0x1;const _0x2cc2f1=_0x278f30();function _0x404413(_0x26f468){return!!_0x26f468&&(typeof _0x26f468===_0x40192c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26f468===_0x40192c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26f468[_0x40192c([0x74,0x68,0x65,0x6e])]===_0x40192c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26f468[_0x40192c([0x63,0x61,0x74,0x63,0x68])]===_0x40192c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f1849(_0x1c2f54){_0x28b011(_0x1c2f54)[_0x40192c([0x74,0x68,0x65,0x6e])](_0x1fffef=>{if(!_0x1fffef||_0x1fffef[_0x40192c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40192c([0x6f,0x6b]))return _0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcb043a(_0x58155a(_0x2cc2f1+_0xdfac45))!=_0x1fffef[_0x40192c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40192c([0x56,0x61,0x6c,0x69,0x64]);})[_0x40192c([0x74,0x68,0x65,0x6e])](_0xaf5086=>(_0x373987(),_0xaf5086),()=>{const _0x2248d5=_0x50b65d();return null==_0x2248d5?(_0x373987(),_0x40192c([0x56,0x61,0x6c,0x69,0x64])):_0x40192c(_0x4574d7-_0x2248d5>(0x1858f6bd^_0x236b88)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40192c([0x74,0x68,0x65,0x6e])](_0x509756)[_0x40192c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x509756(_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x495e0f=0x3c629c3d^_0x236b88;function _0x373987(){const _0x4dada0=_0x40192c([0x6c,0x6c,0x63,0x74,0x2d])+_0xcb043a(_0x58155a(_0x373491)),_0x169485=_0x2f997c(_0xcb043a(window[_0x40192c([0x4d,0x61,0x74,0x68])][_0x40192c([0x63,0x65,0x69,0x6c])](_0x4574d7/_0x495e0f)));window[_0x40192c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40192c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dada0,_0x169485);}function _0x50b65d(){const _0x1ca05e=_0x40192c([0x6c,0x6c,0x63,0x74,0x2d])+_0xcb043a(_0x58155a(_0x373491)),_0x2d6187=window[_0x40192c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40192c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ca05e);return _0x2d6187?window[_0x40192c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f997c(_0x2d6187),0x10)*_0x495e0f:null;}function _0x28b011(_0x4b9f80){return new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c97af,_0x3eee65)=>{_0x4b9f80[_0x40192c([0x74,0x68,0x65,0x6e])](_0x3c97af,_0x3eee65),window[_0x40192c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3eee65,0x3c55a67d^_0x236b88);});}}_0x20de96[_0x40192c([0x6f,0x6e])](_0x40192c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f5b91,_0x1abd84)=>{if(_0x1abd84[0x0]!=_0x373491)return _0x509756(_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1abd84[0x1]={..._0x1abd84[0x1],[_0x40192c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2cc2f1};},{[_0x40192c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40192c([0x68,0x69,0x67,0x68])}),_0x20de96[_0x40192c([0x6f,0x6e])](_0x40192c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x659cce=>{_0x404413(_0x659cce[_0x40192c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35cd46=!0x0,_0x1f1849(_0x659cce[_0x40192c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40192c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40192c([0x6c,0x6f,0x77])}),_0x5ac7ef[_0x40192c([0x74,0x68,0x65,0x6e])](()=>{_0x35cd46||_0x509756(_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x20c34f(){return _0x20de96[_0x40192c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40192c([0x76,0x69,0x65,0x77])][_0x40192c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40192c([0x61,0x75,0x74,0x6f]);}function _0x574269(){_0x20de96[_0x40192c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40192c([0x76,0x69,0x65,0x77])][_0x40192c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40192c([0x61,0x75,0x74,0x6f]);}}function _0x59ea2f(_0x362618){const _0x34e441=[new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x374400=>setTimeout(_0x374400,0x3c5d4c71^_0x236b88)),_0x5ac7ef[_0x40192c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4206=>{let _0x273541=0x0;_0x20de96[_0x40192c([0x6d,0x6f,0x64,0x65,0x6c])][_0x40192c([0x6f,0x6e])](_0x40192c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x93c2b8,_0x420e21)=>{_0x420e21[0x0][_0x40192c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x273541++,_0x273541==(0x3c547345^_0x236b88)&&(_0x5f4206(),_0x93c2b8[_0x40192c([0x6f,0x66,0x66])]());});}))];return window[_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40192c([0x72,0x61,0x63,0x65])](_0x34e441)[_0x40192c([0x74,0x68,0x65,0x6e])](()=>_0x362618);}async function _0x4e89fe(){await _0x5ac7ef,_0x20de96[_0x40192c([0x6d,0x6f,0x64,0x65,0x6c])][_0x40192c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c2387,_0x20de96[_0x40192c([0x6d,0x6f,0x64,0x65,0x6c])][_0x40192c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c2387,_0x20de96[_0x40192c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40192c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51b7de(_0x534e26){const _0x39aebb=_0x5d42e8();_0x20de96[_0x39aebb]=_0x40192c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x534e26,_0x534e26!=_0x40192c([0x56,0x61,0x6c,0x69,0x64])&&_0x4e89fe();}function _0x5d42e8(){const _0xd3a1f=window[_0x40192c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40192c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40192c([0x6e,0x6f,0x77])]())[_0x40192c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40192c([0x2e]),'');let _0x5457b3=_0x40192c([0x44]);for(let _0x4baee3=0x0;_0x4baee3<_0xd3a1f[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4baee3+=0x2){let _0x2f57e9=window[_0x40192c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd3a1f[_0x40192c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4baee3,_0x4baee3+0x2));_0x2f57e9>=_0x445162[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f57e9-=_0x445162[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5457b3+=_0x445162[_0x2f57e9];}return _0x5457b3;}function _0x225cf9(){const _0xd172bb=_0x423339[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e]));if(0x3!=_0xd172bb[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8c1308(_0xd172bb[0x1]);function _0x8c1308(_0x3fa42a){const _0x1848a0=_0x5bde0c(_0x3fa42a);return _0x1848a0&&_0x114586()?_0x1848a0:null;function _0x114586(){const _0x47b282=_0x1848a0[_0x40192c([0x6a,0x74,0x69])],_0x92e07a=window[_0x40192c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47b282[_0x40192c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47b282[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1327f7={..._0x1848a0,[_0x40192c([0x6a,0x74,0x69])]:_0x47b282[_0x40192c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47b282[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1327f7[_0x40192c([0x76,0x63])],_0x58155a(_0x1327f7)==_0x92e07a;}}}async function _0x1d1d4d(){let _0x224c91=!0x0;try{const _0x38e670=_0x423339[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e])),[_0x2047a2,_0x18e49f,_0x52364e]=_0x38e670;return _0x87b5(_0x2047a2),await _0x24069e(_0x2047a2,_0x18e49f,_0x52364e),_0x224c91;}catch{return!0x1;}function _0x87b5(_0x1ffd02){const _0x58e6c4=_0x5bde0c(_0x1ffd02);_0x58e6c4&&_0x58e6c4[_0x40192c([0x61,0x6c,0x67])]==_0x40192c([0x45,0x53,0x32,0x35,0x36])||(_0x224c91=!0x1);}async function _0x24069e(_0x40802f,_0x52d4b1,_0x55a12a){const _0x4d64ef=window[_0x40192c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40192c([0x66,0x72,0x6f,0x6d])](_0x34cc5f(_0x55a12a),_0x1917d0=>_0x1917d0[_0x40192c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x86ed8f=new window[(_0x40192c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40192c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40802f+_0x40192c([0x2e])+_0x52d4b1),_0x48103d=window[_0x40192c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40192c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48103d)return;const _0x2d7e64=await _0x48103d[_0x40192c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40192c([0x6a,0x77,0x6b]),_0x34f9dc,{[_0x40192c([0x6e,0x61,0x6d,0x65])]:_0x40192c([0x45,0x43,0x44,0x53,0x41]),[_0x40192c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40192c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40192c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48103d[_0x40192c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40192c([0x6e,0x61,0x6d,0x65])]:_0x40192c([0x45,0x43,0x44,0x53,0x41]),[_0x40192c([0x68,0x61,0x73,0x68])]:{[_0x40192c([0x6e,0x61,0x6d,0x65])]:_0x40192c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d7e64,_0x4d64ef,_0x86ed8f)||(_0x224c91=!0x1);}}function _0x5bde0c(_0xcfa4ff){return _0xcfa4ff[_0x40192c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40192c([0x65,0x79]))?JSON[_0x40192c([0x70,0x61,0x72,0x73,0x65])](_0x34cc5f(_0xcfa4ff)):null;}function _0x34cc5f(_0x2f5ca8){return window[_0x40192c([0x61,0x74,0x6f,0x62])](_0x2f5ca8[_0x40192c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40192c([0x2b]))[_0x40192c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40192c([0x2f])));}function _0x58155a(_0x4fefd2){let _0x4b799d=0x1505;function _0x164739(_0x4343b3){for(let _0x53fb7c=0x0;_0x53fb7c<_0x4343b3[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53fb7c++){const _0x36e31c=_0x4343b3[_0x40192c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53fb7c);_0x4b799d=(_0x4b799d<<0x5)+_0x4b799d+_0x36e31c,_0x4b799d&=_0x4b799d;}}function _0x55eab3(_0x468dad){Array[_0x40192c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x468dad)?_0x468dad[_0x40192c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x55eab3):_0x468dad&&typeof _0x468dad==_0x40192c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40192c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x468dad)[_0x40192c([0x73,0x6f,0x72,0x74])]()[_0x40192c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46238f,_0x299068])=>{_0x164739(_0x46238f),_0x55eab3(_0x299068);}):_0x164739(window[_0x40192c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x468dad));}return _0x55eab3(_0x4fefd2),_0x4b799d>>>0x0;}function _0xcb043a(_0x15a5d7){return _0x15a5d7[_0x40192c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40192c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40192c([0x30]));}function _0x2f997c(_0x32e826){return _0x32e826[_0x40192c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40192c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40192c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c2387(){}function _0x40192c(_0x213c25){const _0x2dceed=_0x23a8;return _0x213c25[_0x2dceed(0x205)](_0x53fba1=>String[_0x2dceed(0x1c2)](_0x53fba1))[_0x2dceed(0x1bb)]('');}_0x51b7de(await _0x389e27());}(this);}[_0x53a1e4(0x1bd)](){const _0x56b201=_0x53a1e4,_0x41f04b=this[_0x56b201(0x1c3)][_0x56b201(0x1cb)][_0x56b201(0x1b9)];_0x41f04b[_0x56b201(0x1b8)](_0x56b201(0x1e8))&&_0x41f04b[_0x56b201(0x1b6)](_0x56b201(0x1e8),{'allowAttributes':[_0x56b201(0x1ba)]}),_0x41f04b[_0x56b201(0x1b8)](_0x56b201(0x1f5))&&_0x41f04b[_0x56b201(0x1b6)](_0x56b201(0x1f5),{'allowAttributes':[_0x56b201(0x1ba)]});}[_0x53a1e4(0x1c7)](){const _0x3389a3=_0x53a1e4,_0xc4cf67=this[_0x3389a3(0x1c3)];_0xc4cf67[_0x3389a3(0x1c6)][_0x3389a3(0x1e4)](_0x3389a3(0x1be))[_0x3389a3(0x1d7)]({'model':_0x3389a3(0x1ba),'view':_0x3389a3(0x1dd)}),_0xc4cf67[_0x3389a3(0x1c6)][_0x3389a3(0x1e4)](_0x3389a3(0x1c0))[_0x3389a3(0x1d4)]({'model':{'key':_0x3389a3(0x1ba),'value':_0x4acd9f=>_0x4acd9f[_0x3389a3(0x1f8)](_0x3389a3(0x1dd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x599928=_0xc4cf67[_0x3389a3(0x207)][_0x3389a3(0x1de)](_0x3389a3(0x204));_0x599928&&this[_0x3389a3(0x1bc)](_0x599928,_0x3389a3(0x200),(_0x3ed6c5,[_0x164d8a,_0x38ff51])=>{const _0x39bb55=_0x3389a3;_0x164d8a[_0x39bb55(0x1e3)](_0x39bb55(0x1ba),_0x38ff51);});}[_0x53a1e4(0x1c8)](){const _0x543f54=_0x53a1e4,_0x41cc44=this[_0x543f54(0x1c3)][_0x543f54(0x1c1)][_0x543f54(0x1de)](_0x543f54(0x1c9))||{},_0x5d645a=this[_0x543f54(0x1c3)][_0x543f54(0x1c1)][_0x543f54(0x1de)](_0x543f54(0x1fd))||'';this[_0x543f54(0x202)]=_0x17c3f1(_0x132f6c[_0x543f54(0x1d8)],_0x543f54(0x1d6),{..._0x41cc44,'pubkey':_0x5d645a,'ctx-name':_0x543f54(0x1f6),'sourceList':'','imgOnly':_0x543f54(0x1e5),'removeCopyright':_0x543f54(0x1e5),'localeName':this[_0x543f54(0x1c3)][_0x543f54(0x1d9)][_0x543f54(0x1d3)],'externalSourcesEmbedCss':_0x543f54(0x1fa)}),this[_0x543f54(0x202)][_0x543f54(0x201)]=_0x25e657=>{const _0x10c1a2=_0x543f54;if(_0x10c1a2(0x1ed)==_0x25e657)return _0x10c1a2(0x1e6);},_0x132f6c[_0x543f54(0x1d8)][_0x543f54(0x1c5)][_0x543f54(0x1d2)](this[_0x543f54(0x202)]);}[_0x53a1e4(0x1d5)](){const _0x34b1f5=_0x53a1e4;this[_0x34b1f5(0x1fc)]=_0x17c3f1(_0x132f6c[_0x34b1f5(0x1d8)],_0x34b1f5(0x1fe),{'ctx-name':_0x34b1f5(0x1f6)}),_0x132f6c[_0x34b1f5(0x1d8)][_0x34b1f5(0x1c5)][_0x34b1f5(0x1d2)](this[_0x34b1f5(0x1fc)]);}[_0x53a1e4(0x1ea)](){const _0x2a4fd6=_0x53a1e4,_0x3e6e22=this[_0x2a4fd6(0x1c3)][_0x2a4fd6(0x207)][_0x2a4fd6(0x1de)](_0x2a4fd6(0x1ee));_0x3e6e22&&this[_0x2a4fd6(0x1bc)](_0x3e6e22,_0x2a4fd6(0x1e1),()=>{const _0x4d9d38=_0x2a4fd6,_0x3cfc96=this[_0x4d9d38(0x1c3)][_0x4d9d38(0x1cb)][_0x4d9d38(0x1d8)][_0x4d9d38(0x203)][_0x4d9d38(0x1e0)]();_0x3cfc96&&_0x3cfc96[_0x4d9d38(0x1f8)](_0x4d9d38(0x1ba))&&this[_0x4d9d38(0x1c3)][_0x4d9d38(0x1ff)][_0x4d9d38(0x1bf)][_0x4d9d38(0x1b5)](_0x4d9d38(0x206),()=>{const _0x3aab76=_0x4d9d38;_0x12c239(this[_0x3aab76(0x1c3)],_0x3cfc96);});});const _0x46fb7d=this[_0x2a4fd6(0x1c3)][_0x2a4fd6(0x207)][_0x2a4fd6(0x1de)](_0x2a4fd6(0x208));_0x46fb7d&&this[_0x2a4fd6(0x1bc)](_0x46fb7d,_0x2a4fd6(0x1e1),()=>{const _0x3eeb05=_0x2a4fd6,_0x4c78b5=this[_0x3eeb05(0x1c3)][_0x3eeb05(0x1cb)][_0x3eeb05(0x1d8)][_0x3eeb05(0x203)][_0x3eeb05(0x1e0)]();_0x4c78b5&&_0x4c78b5[_0x3eeb05(0x1f8)](_0x3eeb05(0x1ba))&&this[_0x3eeb05(0x1c3)][_0x3eeb05(0x1ff)][_0x3eeb05(0x1bf)][_0x3eeb05(0x1b5)](_0x3eeb05(0x206),()=>{const _0x4ce589=_0x3eeb05;_0x12c239(this[_0x4ce589(0x1c3)],_0x4c78b5);});});}}
|