@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250326.2 → 0.0.0-nightly-20250327.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x104de3,Command as _0x3d427f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x475bf7,IconGooglePhotos as _0x5a96ba,IconGoogleDrive as _0x1a2469,IconFacebook as _0x4a1243,IconDropbox as _0x1d25b3,IconUploadcareLink as _0x3f183f,IconUploadcareImageUpload as _0x5dd385,IconError as et,IconUploadcareImageEdit as _0x5b1d80}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2f3090,MenuBarMenuListItemButtonView as _0x538422,View as _0x2e7d62,FocusCycler as _0x54fc7a,Dialog as _0x5233ef,DialogViewPosition as _0xe3ad40,SpinnerView as _0x4701be,IconView as at,Notification as _0x1f6484}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3d18ef,DomEmitterMixin as _0x1a6819,global as _0x56c1f8,getAncestors as _0x35e516,ObservableMixin as _0x3ae3f5,createElement as _0x2fa43a,uid as _0x3d4442}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5a2bdc}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x49256c,info as _0x4b07bb}from'@uploadcare/upload-client';import*as _0x1faf76 from'@uploadcare/file-uploader';var o=function(_0x26e80d){return _0x26e80d['Local']='local',_0x26e80d['URL']='url',_0x26e80d['Dropbox']='dropbox',_0x26e80d['GDrive']='gdrive',_0x26e80d['Facebook']='facebook',_0x26e80d['GPhotos']='gphotos',_0x26e80d['OneDrive']='onedrive',_0x26e80d;}({});function _(_0x44b199,_0x1791a7,_0x358d03){const t=_0x44b199['t'],_0x30c8c6=_0x44b199['t'];switch(_0x1791a7){case o['Local']:return{'text':_0x30c8c6('Insert'===_0x358d03?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x30c8c6('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x358d03?_0x30c8c6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x30c8c6('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x358d03?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x358d03?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x358d03?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x358d03?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x358d03?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1791a7;}}class e extends _0x104de3{['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 _0x5585c6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55ba12;for(const _0x20a2d9 in _0x5585c6){const _0x5896fb=_0x20a2d9,_0x43fabf=_0x5585c6[_0x5896fb];if('uploadcareLicenseKeyValid'==_0x43fabf||'uploadcareLicenseKeyInvalid'==_0x43fabf||'uploadcareLicenseKeyExpired'==_0x43fabf||'uploadcareLicenseKeyDomainLimit'==_0x43fabf||'uploadcareLicenseKeyNotAllowed'==_0x43fabf||'uploadcareLicenseKeyEvaluationLimit'==_0x43fabf||'uploadcareLicenseKeyTrialLimit'==_0x43fabf||'uploadcareLicenseKeyUsageLimit'==_0x43fabf){delete _0x5585c6[_0x5896fb],_0x55ba12=_0x43fabf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x55ba12&&_0x5585c6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x55ba12&&_0x5585c6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x55ba12&&_0x5585c6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x55ba12&&_0x5585c6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x55ba12&&_0x5585c6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x55ba12&&_0x5585c6['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x55ba12&&_0x5585c6['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3a3376}=this,_0x1294a8=_0x3a3376['commands']['get']('uploadcare');if(!_0x1294a8)return;const _0x44df98=this['_normalizeConfigSourceList'](_0x3a3376['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x469c85,_0x3e4150)=>{const _0xa24c65=this['_getIntegrationKey'](_0x3e4150['type']);return _0x469c85[_0xa24c65]||(_0x469c85[_0xa24c65]=[]),_0x469c85[_0xa24c65]['push'](_0x3e4150),_0x469c85;},{});_0x3a3376['plugins']['has']('ImageInsertUI')&&_0x3a3376['commands']['get']('uploadcare')&&Object['entries'](_0x44df98)['forEach'](([_0x2c85af,_0x1526e1])=>{_0x3a3376['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2c85af,'observable':()=>_0x1294a8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1526e1),'formViewCreator':()=>this['_createDropdownButtons'](_0x1526e1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1526e1),'override':'assetManager'!==_0x2c85af});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x41c91f){const {locale:_0x573659}=this['editor'];return _0x41c91f['map'](_0x467836=>{const _0x53144f=_(_0x573659,_0x467836,'Insert');switch(_0x467836){case o['Local']:return{'icon':_0x5dd385,'type':o['Local'],..._0x53144f};case o['URL']:return{'icon':_0x3f183f,'type':o['URL'],..._0x53144f};case o['Dropbox']:return{'icon':_0x1d25b3,'type':o['Dropbox'],..._0x53144f};case o['Facebook']:return{'icon':_0x4a1243,'type':o['Facebook'],..._0x53144f};case o['GDrive']:return{'icon':_0x1a2469,'type':o['GDrive'],..._0x53144f};case o['GPhotos']:return{'icon':_0x5a96ba,'type':o['GPhotos'],..._0x53144f};case o['OneDrive']:return{'icon':_0x475bf7,'type':o['OneDrive'],..._0x53144f};}});}['_getIntegrationKey'](_0x161b68){switch(_0x161b68){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x58138c,_0x4e2bee){const _0x448f89=this['editor'],_0x1b502a=new _0x58138c(_0x448f89['locale']),_0x3f2e38=_0x448f89['commands']['get']('uploadcare');return _0x1b502a['bind']('isEnabled')['to'](_0x3f2e38),_0x1b502a['on']('execute',()=>{_0x3f2e38['execute'](_0x4e2bee);}),_0x1b502a;}['_createToolbarButton'](_0x28d613){const {locale:_0x1ac43c}=this['editor'],_0x461703=this['editor']['plugins']['get']('ImageInsertUI'),_0x4b07f6=_0x28d613[0x0],_0x44927d=this['_createButton'](_0x2f3090,_0x4b07f6['type']);return _0x44927d['icon']=_0x4b07f6['icon'],_0x44927d['bind']('label')['to'](_0x461703,'isImageSelected',_0x35836f=>_(_0x1ac43c,_0x4b07f6['type'],_0x35836f?'Replace':'Insert')['text']),_0x44927d['tooltip']=!0x0,_0x44927d;}['_createDropdownButtons'](_0x4a3d5f){const {locale:_0x1c258c}=this['editor'],_0x9be75c=this['editor']['plugins']['get']('ImageInsertUI');return _0x4a3d5f['map'](_0x23b6ea=>{const _0x3dcc90=this['_createButton'](_0x2f3090,_0x23b6ea['type']);return _0x3dcc90['withText']=!0x0,_0x3dcc90['icon']=_0x23b6ea['icon'],_0x3dcc90['bind']('label')['to'](_0x9be75c,'isImageSelected',_0x292720=>_(_0x1c258c,_0x23b6ea['type'],_0x292720?'Replace':'Insert')['text']),_0x3dcc90;});}['_createMenuBarButtons'](_0x11fd65){return _0x11fd65['map'](_0x279748=>{const _0x11efdc=this['_createButton'](_0x538422,_0x279748['type']);return _0x11efdc['icon']=_0x279748['icon'],_0x11efdc['label']=_0x279748['shortText'],_0x11efdc;});}}class q extends _0x2e7d62{['focusTracker'];['focusCycler'];constructor(_0x4664b1){super(_0x4664b1),this['focusTracker']=new _0x3d18ef(),this['focusCycler']=new _0x54fc7a({'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(_0x25d12c){super(_0x25d12c),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(_0x3448ed,_0x195d08){const _0x4ab807=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3768bc=>_0x3768bc<=_0x195d08)['map'](_0x46182f=>_0x3448ed['replace'](/\/$/,'')+'/-/resize/'+_0x46182f+'x/\x20'+_0x46182f+'w');return{'imageFallbackUrl':_0x3448ed,'imageSources':[{'srcset':_0x4ab807['join'](',\x20'),'sizes':'(max-width:\x20'+_0x195d08+'px)\x20100vw,\x20'+_0x195d08+'px','type':'image/webp'}]};}function A(_0x2bc7e3,_0xee6133,_0x3a6058){const _0x57ef0c=_0x2bc7e3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x57ef0c?parseInt(_0x57ef0c[0x1],0xa):_0xee6133,'height':_0x57ef0c?parseInt(_0x57ef0c[0x2],0xa):_0x3a6058};}function m(_0x3219ce,_0x45df96){const _0xe4b87d=Object['create'](_0x1a6819),_0x4d940b=_0x3219ce['plugins']['get']('ImageUtils'),_0x2ef5a8=_0x3219ce['editing']['mapper']['toViewElement'](_0x45df96),_0x27f62e=_0x4d940b['findViewImgElement'](_0x2ef5a8),_0x4ce472=_0x3219ce['editing']['view']['domConverter']['viewToDom'](_0x27f62e),_0x273869=_0x45df96['getAttribute']('width'),_0x45b812=_0x45df96['getAttribute']('height'),_0x3a6ac4='image-processing';_0x3219ce['editing']['view']['change'](_0x20009f=>{_0x20009f['addClass'](_0x3a6ac4,_0x2ef5a8),_0x20009f['setStyle']('aspect-ratio',_0x273869+'/'+_0x45b812,_0x27f62e);}),_0xe4b87d['listenTo'](_0x4ce472,'load',()=>{_0xe4b87d['stopListening'](_0x4ce472,'load'),_0x3219ce['editing']['view']['change'](_0x1be487=>{_0x1be487['removeClass'](_0x3a6ac4,_0x2ef5a8),_0x1be487['removeStyle']('aspect-ratio',_0x27f62e);});});}function V(_0x55a16d){if(Array['isArray'](_0x55a16d)){const _0x35e191=_0x55a16d['map'](V);return _0x3a8254=>_0x35e191['some'](_0x56758f=>_0x56758f(_0x3a8254));}if('origin'==_0x55a16d){const _0x949afd=_0x56c1f8['window']['location']['origin'];return _0x26164b=>new URL(_0x26164b,_0x56c1f8['document']['baseURI'])['origin']==_0x949afd;}return'function'==typeof _0x55a16d?_0x55a16d:_0x55a16d instanceof RegExp?_0x324cd9=>!(!_0x324cd9['match'](_0x55a16d)&&!_0x324cd9['replace'](/^https?:\/\//,'')['match'](_0x55a16d)):()=>!0x1;}function F(_0x230de9,_0x22451c){return _0x35e516(_0x230de9['target'])['includes'](_0x22451c);}class l extends/* #__PURE__ -- @preserve */
24
- _0x3ae3f5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x27186,_0x413354,_0x156c6e){super(),this['_editor']=_0x27186,this['_editing']=_0x413354,this['_dialog']=_0x27186['plugins']['get'](_0x5233ef),this['_api']=_0x413354['ctxElement']['getAPI'](),this['_type']=_0x156c6e,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:_0x13b821,model:_0x5be58b}=this['_editor'],_0x5486d1=_0x5be58b['document']['selection']['getSelectedElement'](),_0x27a16c=_0x5486d1&&(_0x5486d1['is']('element','imageBlock')||_0x5486d1['is']('element','imageInline'));this['_formView']=new S(_0x13b821),this['_dialog']['show']({'id':'uploadCare','icon':_0x5dd385,'title':_(_0x13b821,this['_type'],_0x27a16c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xe3ad40['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4fb2b4=>!F(_0x4fb2b4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5740ef}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5aba20=>{const _0xf7bf8b=_0x5740ef['length'];for(const _0x5ee677 of _0x5740ef){const _0x46987c=_0x5ee677===_0x5740ef[_0xf7bf8b-0x1],{cdnUrl:_0x4c6992,fileInfo:_0x401e42}=_0x5ee677;if(!_0x4c6992||!_0x401e42)continue;const {width:_0x1c95e9,height:_0x3193eb}=_0x401e42['imageInfo'],_0x37ff78=A(_0x4c6992,_0x1c95e9,_0x3193eb),_0x9846e5=E(_0x4c6992,_0x37ff78['width']),_0x136866={'id':_0x401e42['uuid'],'type':'image','attributes':{'imageDimension':_0x37ff78,..._0x9846e5}};this['_insertAsset'](_0x136866,_0x46987c,_0x5aba20);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x187537=>{'idle'===_0x187537['detail']['status']&&!_0x187537['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1c1ba5,_0x1541a9,_0x212b4a){const _0x3b6844=this['_editor']['model']['document']['selection'],_0x252922=_0x3b6844['getSelectedElement'](),_0x202fcb=!(!_0x252922||!_0x252922['is']('element','imageInline'));_0x212b4a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1c1ba5,_0x202fcb),_0x1541a9||_0x212b4a['setSelection'](_0x3b6844['getLastPosition']());}['_insertImage'](_0x402d9e,_0x15551e){const _0x1ed70b=this['_editor'],{imageDimension:_0x41402f,imageFallbackUrl:_0xbcf7d4,imageSources:_0x4d8bc2}=_0x402d9e['attributes'];_0x1ed70b['execute']('insertImage',{'imageType':_0x15551e?'imageInline':null,'source':{'uploadcareImageId':_0x402d9e['id'],'src':_0xbcf7d4,'sources':_0x4d8bc2,..._0x41402f}});}}class n extends _0x3d427f{['_editing'];['_controller']=null;static get['requires'](){return[_0x5233ef,i];}constructor(_0xc98dc8){super(_0xc98dc8),this['_editing']=_0xc98dc8['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3cfe74){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x3cfe74);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4f73f2,publicKey:_0x52a039,signal:_0xf779c3,onProgress:_0x4b73cc}){return _0x49256c(_0x4f73f2,{'publicKey':_0x52a039,'store':'auto','signal':_0xf779c3,'onProgress':_0x4b73cc});}static['getInfo'](_0x1018e9,_0x486a9d){return _0x4b07bb(_0x1018e9,_0x486a9d);}}class p extends _0x104de3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5a2bdc,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xbc2c68=this['editor'];if(!!!_0xbc2c68['config']['get']('uploadcare'))return;_0xbc2c68['plugins']['get'](_0x5a2bdc)['createUploadAdapter']=_0x200962=>new x(_0x200962,_0xbc2c68),_0xbc2c68['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xaec2fc,{imageElement:_0x1342be,data:_0x46592f})=>{_0xbc2c68['model']['change'](_0xd5e53b=>{_0xd5e53b['setAttribute']('uploadcareImageId',_0x46592f['uploadcareImageId'],_0x1342be);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xb8c847,_0x2ae12a){this['loader']=_0xb8c847,this['editor']=_0x2ae12a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x39b8e5=this['editor']['config']['get']('uploadcare.pubkey'),_0x1d2c1e=await this['loader']['file'];return C['upload']({'file':_0x1d2c1e,'publicKey':_0x39b8e5,'signal':this['controller']['signal'],'onProgress':_0x1db232=>{_0x1db232&&_0x1db232['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1db232['value']);}})['then'](async _0x26465d=>{const {imageFallbackUrl:_0x2698c9,imageSources:_0xa1803}=E(_0x26465d['cdnUrl'],_0x26465d['imageInfo']['width']);return{'uploadcareImageId':_0x26465d['uuid'],'default':_0x2698c9,'sources':_0xa1803};})['catch'](()=>{const _0x200e6d=t('Cannot\x20upload\x20file:')+('\x20'+_0x1d2c1e['name']+'.');return Promise['reject'](_0x200e6d);});}['abort'](){this['controller']['abort']();}}class i extends _0x104de3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5233ef];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4373db=this['editor'];_0x4373db['commands']['add']('uploadcare',new n(_0x4373db));}['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 _0x58675c=_0x56c1f8['document']['querySelector']('input[uploadcare-file-input]');_0x58675c&&_0x58675c['remove']();}),async function(_0x4ca8be){const _0x4bf373=_0x1ad5ea([0x34,0x65,0x63,0x32,0x6b,0x37,0x75,0x6a,0x74,0x44,0x33,0x79,0x48,0x4c,0x6d,0x58,0x68,0x4e,0x73,0x42,0x4d,0x46,0x4f,0x64,0x30,0x4a,0x6e,0x31,0x70,0x50,0x39,0x76,0x35,0x6c,0x55,0x66,0x71,0x67,0x56,0x49,0x45,0x51,0x77,0x53,0x41,0x4b,0x54,0x5a,0x61,0x78,0x62,0x43,0x69,0x7a,0x47,0x52,0x38,0x72,0x6f,0x57,0x59,0x36]),_0x123ae8=0x3ba66e2b,_0x2b8e6b=0x3ba10d13^_0x123ae8,_0x4da618=window[_0x1ad5ea([0x44,0x61,0x74,0x65])][_0x1ad5ea([0x6e,0x6f,0x77])](),_0x4a44e4=_0x4ca8be[_0x1ad5ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44beef=new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d24bd=>{_0x4a44e4[_0x1ad5ea([0x6f,0x6e,0x63,0x65])](_0x1ad5ea([0x72,0x65,0x61,0x64,0x79]),_0x5d24bd);}),_0x5b555e={[_0x1ad5ea([0x6b,0x74,0x79])]:_0x1ad5ea([0x45,0x43]),[_0x1ad5ea([0x75,0x73,0x65])]:_0x1ad5ea([0x73,0x69,0x67]),[_0x1ad5ea([0x63,0x72,0x76])]:_0x1ad5ea([0x50,0x2d,0x32,0x35,0x36]),[_0x1ad5ea([0x78])]:_0x1ad5ea([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]),[_0x1ad5ea([0x79])]:_0x1ad5ea([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]),[_0x1ad5ea([0x61,0x6c,0x67])]:_0x1ad5ea([0x45,0x53,0x32,0x35,0x36])},_0x48161b=_0x4a44e4[_0x1ad5ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ad5ea([0x67,0x65,0x74])](_0x1ad5ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x102d78(){let _0x18e776,_0x3c84b2=null,_0x1809ad=null;try{if(_0x48161b==_0x1ad5ea([0x47,0x50,0x4c]))return _0x1ad5ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18e776=_0x5d736f(),!_0x18e776)return _0x1ad5ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18e776[_0x1ad5ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1809ad=_0x13f510(_0x18e776[_0x1ad5ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18e776[_0x1ad5ea([0x6a,0x74,0x69])])),await _0x3333c8()?_0x143377()?_0x3c202f()?_0x1ad5ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e3289()?(_0x18e776[_0x1ad5ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ad5ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c84b2=_0xeb5c66(_0x1ad5ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x18e776[_0x1ad5ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ad5ea([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c84b2=_0xeb5c66(_0x1ad5ea([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28a7b6()):_0x1ad5ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ad5ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ad5ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x214132){return _0x1ad5ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c202f(){const _0x3e20a2=[_0x1ad5ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ad5ea([0x74,0x72,0x69,0x61,0x6c])][_0x1ad5ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18e776[_0x1ad5ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4da618/0x3e8:0xe10*_0x2b8e6b;return _0x18e776[_0x1ad5ea([0x65,0x78,0x70])]<_0x3e20a2;}function _0x143377(){const _0x158c61=_0x18e776[_0x1ad5ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x158c61&&(!!_0x158c61[_0x1ad5ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ad5ea([0x2a]))||!!_0x158c61[_0x1ad5ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ad5ea([0x55,0x50,0x4c,0x43])));}function _0x2e3289(){const _0x3b3920=_0x18e776[_0x1ad5ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b3920||0x0==_0x3b3920[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x68edfd}=new URL(window[_0x1ad5ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b3920[_0x1ad5ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x68edfd))return!0x0;const _0x16fcfe=_0x68edfd[_0x1ad5ea([0x73,0x70,0x6c,0x69,0x74])](_0x1ad5ea([0x2e]));return _0x3b3920[_0x1ad5ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49e125=>_0x49e125[_0x1ad5ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ad5ea([0x2a])))[_0x1ad5ea([0x6d,0x61,0x70])](_0x5108c1=>_0x5108c1[_0x1ad5ea([0x73,0x70,0x6c,0x69,0x74])](_0x1ad5ea([0x2e])))[_0x1ad5ea([0x73,0x6f,0x6d,0x65])](_0x51372a=>_0x16fcfe[_0x1ad5ea([0x65,0x76,0x65,0x72,0x79])]((_0xe33c6a,_0x4148e3)=>_0x51372a[_0x4148e3]===_0xe33c6a||_0x51372a[_0x4148e3]===_0x1ad5ea([0x2a])));}function _0x28a7b6(){return _0x3c84b2&&_0x1809ad?new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe3c699,_0x533361)=>{_0x3c84b2[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0xe3c699,_0x533361),_0x1809ad[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0x15e2b7=>{_0x15e2b7!=_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64])&&_0xe3c699(_0x15e2b7);},_0x533361);}):_0x3c84b2||_0x1809ad||_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13f510(_0x11295d,_0x385b5e){return new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x549ea2=>{if(_0x2dd0d9())return _0x549ea2(_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64]));_0x3b1d1b(),_0x4a44e4[_0x1ad5ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ad5ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27ef06=!0x1;const _0x5e1f87=_0x3d4442();function _0x5e837e(_0x21a456){return!!_0x21a456&&(typeof _0x21a456===_0x1ad5ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21a456===_0x1ad5ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21a456[_0x1ad5ea([0x74,0x68,0x65,0x6e])]===_0x1ad5ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21a456[_0x1ad5ea([0x63,0x61,0x74,0x63,0x68])]===_0x1ad5ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ac045(_0x3d3e04){_0x1c5cc7(_0x3d3e04)[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0x5e84eb=>{if(!_0x5e84eb||_0x5e84eb[_0x1ad5ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ad5ea([0x6f,0x6b]))return _0x1ad5ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52eaa8(_0x5f34e9(_0x5e1f87+_0x385b5e))!=_0x5e84eb[_0x1ad5ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ad5ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0x40e055=>(_0x6f3996(),_0x40e055),()=>{const _0x4de1a7=_0x1f77fd();return null==_0x4de1a7?(_0x6f3996(),_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64])):_0x1ad5ea(_0x4da618-_0x4de1a7>(0x1faaea2b^_0x123ae8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0x549ea2)[_0x1ad5ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x549ea2(_0x1ad5ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xec3b3f=0x3b9080ab^_0x123ae8;function _0x6f3996(){const _0x5598ac=_0x1ad5ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x52eaa8(_0x5f34e9(_0x11295d)),_0x3662a2=_0x5b702a(_0x52eaa8(window[_0x1ad5ea([0x4d,0x61,0x74,0x68])][_0x1ad5ea([0x63,0x65,0x69,0x6c])](_0x4da618/_0xec3b3f)));window[_0x1ad5ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ad5ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5598ac,_0x3662a2);}function _0x1f77fd(){const _0x3773a1=_0x1ad5ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x52eaa8(_0x5f34e9(_0x11295d)),_0x4fcb2e=window[_0x1ad5ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ad5ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3773a1);return _0x4fcb2e?window[_0x1ad5ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b702a(_0x4fcb2e),0x10)*_0xec3b3f:null;}function _0x1c5cc7(_0x5c3f51){return new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58a3bc,_0x31c65a)=>{_0x5c3f51[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0x58a3bc,_0x31c65a),window[_0x1ad5ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31c65a,0x3ba7baeb^_0x123ae8);});}}_0x4a44e4[_0x1ad5ea([0x6f,0x6e])](_0x1ad5ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1be196,_0x356f4f)=>{if(_0x356f4f[0x0]!=_0x11295d)return _0x549ea2(_0x1ad5ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x356f4f[0x1]={..._0x356f4f[0x1],[_0x1ad5ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e1f87};},{[_0x1ad5ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ad5ea([0x68,0x69,0x67,0x68])}),_0x4a44e4[_0x1ad5ea([0x6f,0x6e])](_0x1ad5ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c6341=>{_0x5e837e(_0x2c6341[_0x1ad5ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27ef06=!0x0,_0x5ac045(_0x2c6341[_0x1ad5ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ad5ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ad5ea([0x6c,0x6f,0x77])}),_0x44beef[_0x1ad5ea([0x74,0x68,0x65,0x6e])](()=>{_0x27ef06||_0x549ea2(_0x1ad5ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2dd0d9(){return _0x4a44e4[_0x1ad5ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ad5ea([0x76,0x69,0x65,0x77])][_0x1ad5ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ad5ea([0x61,0x75,0x74,0x6f]);}function _0x3b1d1b(){_0x4a44e4[_0x1ad5ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ad5ea([0x76,0x69,0x65,0x77])][_0x1ad5ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ad5ea([0x61,0x75,0x74,0x6f]);}}function _0xeb5c66(_0x43ad6c){const _0x15d42d=[new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfe378f=>setTimeout(_0xfe378f,0x3baf50e7^_0x123ae8)),_0x44beef[_0x1ad5ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x88e59e=>{let _0x36f060=0x0;_0x4a44e4[_0x1ad5ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ad5ea([0x6f,0x6e])](_0x1ad5ea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d2bd6,_0x526810)=>{_0x526810[0x0][_0x1ad5ea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x36f060++,_0x36f060==(0x3ba66fd3^_0x123ae8)&&(_0x88e59e(),_0x2d2bd6[_0x1ad5ea([0x6f,0x66,0x66])]());});}))];return window[_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ad5ea([0x72,0x61,0x63,0x65])](_0x15d42d)[_0x1ad5ea([0x74,0x68,0x65,0x6e])](()=>_0x43ad6c);}async function _0x1bf42e(){await _0x44beef,_0x4a44e4[_0x1ad5ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ad5ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc8e40e,_0x4a44e4[_0x1ad5ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ad5ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc8e40e,_0x4a44e4[_0x1ad5ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ad5ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e4b9f(_0x426688){const _0x339b5f=_0x128795();_0x4a44e4[_0x339b5f]=_0x1ad5ea([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x426688,_0x426688!=_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64])&&_0x1bf42e();}function _0x128795(){const _0x3f797d=window[_0x1ad5ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ad5ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ad5ea([0x6e,0x6f,0x77])]())[_0x1ad5ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ad5ea([0x2e]),'');let _0x17c2e9=_0x1ad5ea([0x65]);for(let _0x21303d=0x0;_0x21303d<_0x3f797d[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21303d+=0x2){let _0x19f23c=window[_0x1ad5ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f797d[_0x1ad5ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21303d,_0x21303d+0x2));_0x19f23c>=_0x4bf373[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19f23c-=_0x4bf373[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17c2e9+=_0x4bf373[_0x19f23c];}return _0x17c2e9;}function _0x5d736f(){const _0x4b3989=_0x48161b[_0x1ad5ea([0x73,0x70,0x6c,0x69,0x74])](_0x1ad5ea([0x2e]));if(0x3!=_0x4b3989[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x596955(_0x4b3989[0x1]);function _0x596955(_0x4d1a08){const _0x34573a=_0x3a3921(_0x4d1a08);return _0x34573a&&_0x43fe32()?_0x34573a:null;function _0x43fe32(){const _0x13783c=_0x34573a[_0x1ad5ea([0x6a,0x74,0x69])],_0x19dc91=window[_0x1ad5ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13783c[_0x1ad5ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13783c[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x315080={..._0x34573a,[_0x1ad5ea([0x6a,0x74,0x69])]:_0x13783c[_0x1ad5ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13783c[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x315080[_0x1ad5ea([0x76,0x63])],_0x5f34e9(_0x315080)==_0x19dc91;}}}async function _0x3333c8(){let _0x13a15e=!0x0;try{const _0x36a13a=_0x48161b[_0x1ad5ea([0x73,0x70,0x6c,0x69,0x74])](_0x1ad5ea([0x2e])),[_0x58f63a,_0x47c923,_0xd2abcf]=_0x36a13a;return _0x50cd80(_0x58f63a),await _0x17984b(_0x58f63a,_0x47c923,_0xd2abcf),_0x13a15e;}catch(_0x4b8ef5){return!0x1;}function _0x50cd80(_0x675f1d){const _0x3f0c9f=_0x3a3921(_0x675f1d);_0x3f0c9f&&_0x3f0c9f[_0x1ad5ea([0x61,0x6c,0x67])]==_0x1ad5ea([0x45,0x53,0x32,0x35,0x36])||(_0x13a15e=!0x1);}async function _0x17984b(_0x3edef4,_0x3f5caf,_0x4f6a04){const _0x163851=window[_0x1ad5ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ad5ea([0x66,0x72,0x6f,0x6d])](_0x5ef33f(_0x4f6a04),_0x196196=>_0x196196[_0x1ad5ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x480ed4=new window[(_0x1ad5ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ad5ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3edef4+_0x1ad5ea([0x2e])+_0x3f5caf),_0x44229b=window[_0x1ad5ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ad5ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44229b)return;const _0x1c8e22=await _0x44229b[_0x1ad5ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ad5ea([0x6a,0x77,0x6b]),_0x5b555e,{[_0x1ad5ea([0x6e,0x61,0x6d,0x65])]:_0x1ad5ea([0x45,0x43,0x44,0x53,0x41]),[_0x1ad5ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ad5ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ad5ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44229b[_0x1ad5ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ad5ea([0x6e,0x61,0x6d,0x65])]:_0x1ad5ea([0x45,0x43,0x44,0x53,0x41]),[_0x1ad5ea([0x68,0x61,0x73,0x68])]:{[_0x1ad5ea([0x6e,0x61,0x6d,0x65])]:_0x1ad5ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c8e22,_0x163851,_0x480ed4)||(_0x13a15e=!0x1);}}function _0x3a3921(_0x4150bf){return _0x4150bf[_0x1ad5ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ad5ea([0x65,0x79]))?JSON[_0x1ad5ea([0x70,0x61,0x72,0x73,0x65])](_0x5ef33f(_0x4150bf)):null;}function _0x5ef33f(_0x3a4be2){return window[_0x1ad5ea([0x61,0x74,0x6f,0x62])](_0x3a4be2[_0x1ad5ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ad5ea([0x2b]))[_0x1ad5ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ad5ea([0x2f])));}function _0x5f34e9(_0x5b21ef){let _0x3862a6=0x1505;function _0x1be11d(_0x3a9c32){for(let _0x29987b=0x0;_0x29987b<_0x3a9c32[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29987b++){const _0x6f72dc=_0x3a9c32[_0x1ad5ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29987b);_0x3862a6=(_0x3862a6<<0x5)+_0x3862a6+_0x6f72dc,_0x3862a6&=_0x3862a6;}}function _0x5e781c(_0x165e2a){Array[_0x1ad5ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x165e2a)?_0x165e2a[_0x1ad5ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e781c):_0x165e2a&&typeof _0x165e2a==_0x1ad5ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ad5ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x165e2a)[_0x1ad5ea([0x73,0x6f,0x72,0x74])]()[_0x1ad5ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x78b5dc,_0x81db2a])=>{_0x1be11d(_0x78b5dc),_0x5e781c(_0x81db2a);}):_0x1be11d(window[_0x1ad5ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x165e2a));}return _0x5e781c(_0x5b21ef),_0x3862a6>>>0x0;}function _0x52eaa8(_0x53bddd){return _0x53bddd[_0x1ad5ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ad5ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ad5ea([0x30]));}function _0x5b702a(_0x2818cb){return _0x2818cb[_0x1ad5ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ad5ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ad5ea([0x6a,0x6f,0x69,0x6e])]('');}function _0xc8e40e(){}function _0x1ad5ea(_0x166d1b){return _0x166d1b['map'](_0x5e7c01=>String['fromCharCode'](_0x5e7c01))['join']('');}_0x4e4b9f(await _0x102d78());}(this);}['_initSchema'](){const _0x21de67=this['editor']['model']['schema'];_0x21de67['isRegistered']('imageBlock')&&_0x21de67['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x21de67['isRegistered']('imageInline')&&_0x21de67['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x146ba6=this['editor'];_0x146ba6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x146ba6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4ff314=>_0x4ff314['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x21ef52=_0x146ba6['commands']['get']('replaceImageSource');_0x21ef52&&this['listenTo'](_0x21ef52,'cleanupImage',(_0x162802,[_0x392017,_0x4bcb4c])=>{_0x392017['removeAttribute']('uploadcareImageId',_0x4bcb4c);});}['_initConfig'](){const _0x2bb7f7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e8d84=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2fa43a(_0x56c1f8['document'],'uc-config',{..._0x2bb7f7,'pubkey':_0x1e8d84,'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']=_0x19a636=>{if('closeMax'==_0x19a636)return'#uc-icon-arrow-down';},_0x56c1f8['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2fa43a(_0x56c1f8['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x56c1f8['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x30fc0c=this['editor']['commands']['get']('insertImage');_0x30fc0c&&this['listenTo'](_0x30fc0c,'execute',()=>{const _0x2f6a9e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f6a9e&&_0x2f6a9e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2f6a9e);});});const _0x3cdb00=this['editor']['commands']['get']('uploadcareImageReplace');_0x3cdb00&&this['listenTo'](_0x3cdb00,'execute',()=>{const _0x31bd29=this['editor']['model']['document']['selection']['getSelectedElement']();_0x31bd29&&_0x31bd29['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x31bd29);});});}}class u extends _0x104de3{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58ec7b){super(_0x58ec7b),_0x58ec7b['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1faf76['defineComponents'](_0x1faf76);}}class ta extends _0x2e7d62{constructor(_0x11ae51){super(_0x11ae51);const t=_0x11ae51['t'],_0x3f28f8=this['bindTemplate'],_0x16d298=new _0x4701be();_0x16d298['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':[_0x16d298,{'text':_0x3f28f8['to']('imageUploadProgress',_0x2840f1=>t('Loading\x20image...')+'\x20('+(_0x2840f1||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 _0x2e7d62{constructor(_0x2578f1){super(_0x2578f1);const t=_0x2578f1['t'];this['set']('errorType',null);const _0x294bf1=new _0x2f3090(_0x2578f1);_0x294bf1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x294bf1['withText']=!0x0,_0x294bf1['class']='ck-button-action',_0x294bf1['on']('execute',()=>{this['fire']('retry');}),_0x294bf1['bind']('isVisible')['to'](this,'errorType',_0x2ac5d5=>'NotFound'!==_0x2ac5d5);const _0x5b7776=new at();_0x5b7776['content']=et,_0x5b7776['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x46d7df=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':[_0x5b7776,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x46d7df['to']('errorType',_0x1ee1e5=>t('NotFound'!==_0x1ee1e5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x294bf1]},{'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 _0x2e7d62{constructor(_0x27ec09,_0x5632b1){super(_0x27ec09);const _0x3085e3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5632b1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3085e3['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4c5078,_0x3f3ba6,_0x4f6cbb){super(_0x4c5078),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4c5078),this['_errorView']=new rt(_0x4c5078),this['_editingView']=new tt(_0x4c5078,_0x4f6cbb),this['_focusableView']=new _0x2e7d62(_0x4c5078),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f3ba6),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'],_0x50ec8c=>{this['_addUploadcareImageEditorListeners'](_0x50ec8c);});}),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'](_0xa47509,_0x681902){const _0x14fec2='uc-cloud-image-editor',_0x1a6196=_0xa47509['querySelector'](_0x14fec2);if(_0x1a6196)return _0x681902(_0x1a6196);const _0x197abc=new MutationObserver(_0x40e83f=>{const _0x7bf04=_0x40e83f['filter'](_0x57809f=>_0x57809f['target']===_0xa47509&&_0x57809f['addedNodes']['length']>0x0&&_0x57809f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x14fec2);_0x7bf04['length']&&(_0x197abc['disconnect'](),_0x681902(_0x7bf04[0x0]['addedNodes'][0x0]));});_0x197abc['observe'](_0xa47509,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x114ef5){_0x114ef5['addEventListener']('apply',_0x3aea9d=>{this['fire']('apply',{'imageSrc':_0x3aea9d['detail']['cdnUrl']});}),_0x114ef5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x3ae3f5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xe3abb1,_0x3fa3b8,_0x5494eb){super(),this['_editor']=_0xe3abb1,this['_dialog']=_0x3fa3b8,this['_imageElement']=_0x5494eb,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 _0x3a87b0=this['_imageElement'],_0x8ce43c=_0x3a87b0['getAttribute']('uploadcareImageId'),_0x35b083=_0x3a87b0['getAttribute']('src');if(_0x8ce43c)await this['_loadImageInfo'](_0x8ce43c,_0x35b083);else{if(this['_imageCache']['has'](_0x35b083)){const _0x13f84b=this['_imageCache']['get'](_0x35b083);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13f84b['url'],this['imageDimension']=_0x13f84b['dimension'],this['imageId']=_0x13f84b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x466f33}=this['_editor'],t=_0x466f33['t'],_0x1fac14=new Z(_0x466f33,this['imageStatus'],this['_attributes']);_0x1fac14['bind']('status')['to'](this,'imageStatus'),_0x1fac14['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1fac14['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1fac14['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1fac14,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5b1d80,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1fac14,'position':_0xe3ad40['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1fac14['focus']();},'onHide':()=>{_0x1fac14['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x193df1=>!F(_0x193df1,_0x1fac14['element'])}});}['_loadImageInfo'](_0x266997,_0x1c3687){return C['getInfo'](_0x266997,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xb2d813=>{const {width:_0x20d175,height:_0xa77e3}=_0xb2d813['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c3687,this['imageDimension']={'width':_0x20d175,'height':_0xa77e3},this['imageId']=_0x266997;})['catch'](_0x5a8799=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a8799['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x571bae,_0x4e09e8){return this['_getImageAsFile'](_0x571bae)['then'](_0x5b6982=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4e09e8['signal'],'file':_0x5b6982,'onProgress':_0xcbc12b=>{_0xcbc12b&&_0xcbc12b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xcbc12b['value']));}}))['then'](_0x4bad9c=>{const {width:_0x3e1b85,height:_0x418e8c}=_0x4bad9c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4bad9c['cdnUrl'],this['imageDimension']={'width':_0x3e1b85,'height':_0x418e8c},this['imageId']=_0x4bad9c['uuid'],this['imageUploadProgress']=null;const _0x1be68c=_0x571bae['getAttribute']('src');this['_imageCache']['set'](_0x1be68c,{'id':_0x4bad9c['uuid'],'url':_0x4bad9c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x42005d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x42005d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x29e22e,_0x25684b){_0x29e22e['on']('apply',(_0x241159,_0x52b6b9)=>{this['_replaceImage'](_0x25684b,_0x52b6b9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x29e22e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x29e22e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x20a499,_0x56d039,_0x459412){const _0x1ca20d=this['_editor'],{width:_0x244eeb,height:_0x392305}=A(_0x56d039,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x59552d,imageSources:_0x41b66e}=E(_0x56d039,_0x244eeb);_0x1ca20d['model']['change'](_0x10981d=>{if('$graveyard'===_0x20a499['root']['rootName']){_0x1ca20d['execute']('insertImage',{'imageType':_0x20a499['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x20a499['getAttributes']()),'uploadcareImageId':_0x459412,'src':_0x59552d,'sources':_0x41b66e,'width':_0x244eeb,'height':_0x392305}});const _0x5b0fe5=_0x20a499['getChildren']();_0x20a499=_0x1ca20d['model']['document']['selection']['getSelectedElement']();for(const _0x4fa57e of _0x5b0fe5)_0x10981d['append'](_0x10981d['cloneElement'](_0x4fa57e),_0x20a499);}else _0x10981d['setSelection'](_0x20a499,'on'),_0x1ca20d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x20a499['getAttributes']()),'uploadcareImageId':_0x459412,'src':_0x59552d,'sources':_0x41b66e,'width':_0x244eeb,'height':_0x392305},_0x20a499);_0x10981d['setSelection'](_0x20a499,'on');});}async['_getImageAsFile'](_0x3408a1){const _0x5c4f2b=_0x56c1f8['window'],_0x19a796=_0x56c1f8['document']['location']['href'],_0x33301a=new _0x5c4f2b['URL'](_0x3408a1['getAttribute']('src'),_0x19a796);if('data:'===_0x33301a['protocol']){const _0x419205=_0x33301a['href']['split'](','),_0x24b6cc=_0x419205[0x0]['match'](/:(.*?);/)[0x1],_0x27c24e=_0x24b6cc['split']('/')[0x1],_0x54ac0a=_0x5c4f2b['atob'](_0x419205[_0x419205['length']-0x1]);let _0x181e91=_0x54ac0a['length'];const _0x5c1876=new _0x5c4f2b['Uint8Array'](_0x181e91);for(;_0x181e91--;)_0x5c1876[_0x181e91]=_0x54ac0a['charCodeAt'](_0x181e91);return new _0x5c4f2b['File']([_0x5c1876],'image.'+_0x27c24e,{'type':_0x24b6cc});}const _0x421122=_0x33301a['href']['split']('/'),_0x49fe35=_0x421122[_0x421122['length']-0x1],_0x4d1fe4=_0x49fe35['split']('.')[0x1];return _0x5c4f2b['fetch'](_0x33301a['href'])['then'](_0x395828=>_0x395828['clone']()['blob']())['then'](_0x5ec321=>new _0x5c4f2b['File']([_0x5ec321],_0x49fe35,{'type':'image/'+_0x4d1fe4}));}}class J extends _0x3d427f{['imageEditController'];static get['requires'](){return[_0x5233ef];}['_isEditable'];constructor(_0x492b98){super(_0x492b98),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x304aa3){const _0x5e83f5=V(_0x304aa3);return _0x5c51ae=>!(!_0x5c51ae||!_0x5c51ae['is']('element','imageBlock')&&!_0x5c51ae['is']('element','imageInline'))&&(!!_0x5c51ae['hasAttribute']('uploadcareImageId')||!!_0x5c51ae['hasAttribute']('src')&&_0x5e83f5(_0x5c51ae['getAttribute']('src')));}(_0x492b98['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x49e88a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x49e88a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x7f94cd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x7f94cd&&(_0x7f94cd['is']('element','imageBlock')||_0x7f94cd['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x5233ef),_0x7f94cd),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3d427f{['refresh'](){const _0x2ec146=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2ec146&&(_0x2ec146['is']('element','imageBlock')||_0x2ec146['is']('element','imageInline')));}['execute'](_0x130988){const _0x1e6552=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x273341=>{_0x273341['setAttributes'](_0x130988,_0x1e6552),_0x273341['removeAttribute']('srcset',_0x1e6552),_0x273341['removeAttribute']('sizes',_0x1e6552);});}}class g extends _0x104de3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x1f6484,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3eaed0}=this;_0x3eaed0['commands']['add']('uploadcareImageEdit',new J(_0x3eaed0)),_0x3eaed0['commands']['add']('uploadcareImageReplace',new O(_0x3eaed0));}}class j extends _0x104de3{['_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 _0x3216da=this['editor'];_0x3216da['ui']['componentFactory']['add']('uploadcareImageEdit',_0x43dc6a=>{const _0x26f899=_0x3216da['commands']['get']('uploadcareImageEdit'),_0x54140a=new _0x2f3090(_0x43dc6a),t=_0x43dc6a['t'];return _0x54140a['set']({'icon':_0x5b1d80,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x54140a['bind']('isEnabled')['to'](_0x26f899),_0x54140a['bind']('isOn')['to'](_0x26f899,'isActive'),this['listenTo'](_0x54140a,'execute',()=>{_0x3216da['execute']('uploadcareImageEdit'),_0x3216da['editing']['view']['focus']();}),_0x54140a;}),this['_initConfig']();}['_initConfig'](){const _0xe148d3=_0x2fa43a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xe148d3),this['listenTo'](this['editor'],'destroy',()=>{_0xe148d3['remove']();});}}class P extends _0x104de3{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 _0x27c674,Command as _0xa68079}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x54e74f,IconGooglePhotos as _0x575229,IconGoogleDrive as _0xbe0e6e,IconFacebook as _0x14f727,IconDropbox as _0x308b88,IconUploadcareLink as _0x454d12,IconUploadcareImageUpload as _0x23f8ed,IconError as et,IconUploadcareImageEdit as _0x37e363}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4a20a8,MenuBarMenuListItemButtonView as _0x2cdd51,View as _0x37ad54,FocusCycler as _0x2005e2,Dialog as _0x2c95d4,DialogViewPosition as _0x4a4d94,SpinnerView as _0x433301,IconView as at,Notification as _0x35606d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1fe5e6,DomEmitterMixin as _0x5a90ef,global as _0x32782c,getAncestors as _0x223ee0,ObservableMixin as _0x1c3d32,createElement as _0x30f592,uid as _0x4df355}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x705d15}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x8e230c,info as _0x1a8936}from'@uploadcare/upload-client';import*as _0x538202 from'@uploadcare/file-uploader';var o=function(_0x3fc0df){return _0x3fc0df['Local']='local',_0x3fc0df['URL']='url',_0x3fc0df['Dropbox']='dropbox',_0x3fc0df['GDrive']='gdrive',_0x3fc0df['Facebook']='facebook',_0x3fc0df['GPhotos']='gphotos',_0x3fc0df['OneDrive']='onedrive',_0x3fc0df;}({});function _(_0xeeed37,_0x3d2f84,_0xd096b7){const t=_0xeeed37['t'],_0x4c9cd2=_0xeeed37['t'];switch(_0x3d2f84){case o['Local']:return{'text':_0x4c9cd2('Insert'===_0xd096b7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c9cd2('From\x20computer')};case o['URL']:return{'text':'Insert'===_0xd096b7?_0x4c9cd2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c9cd2('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0xd096b7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0xd096b7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0xd096b7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0xd096b7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0xd096b7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3d2f84;}}class e extends _0x27c674{['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 _0x57667f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2ec0ea;for(const _0x32dfd6 in _0x57667f){const _0x15fd22=_0x32dfd6,_0x41259e=_0x57667f[_0x15fd22];if('uploadcareLicenseKeyValid'==_0x41259e||'uploadcareLicenseKeyInvalid'==_0x41259e||'uploadcareLicenseKeyExpired'==_0x41259e||'uploadcareLicenseKeyDomainLimit'==_0x41259e||'uploadcareLicenseKeyNotAllowed'==_0x41259e||'uploadcareLicenseKeyEvaluationLimit'==_0x41259e||'uploadcareLicenseKeyTrialLimit'==_0x41259e||'uploadcareLicenseKeyUsageLimit'==_0x41259e){delete _0x57667f[_0x15fd22],_0x2ec0ea=_0x41259e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2ec0ea&&_0x57667f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2ec0ea&&_0x57667f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2ec0ea&&_0x57667f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2ec0ea&&_0x57667f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2ec0ea&&_0x57667f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2ec0ea&&_0x57667f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2ec0ea&&_0x57667f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x23fb8a}=this,_0x5518ee=_0x23fb8a['commands']['get']('uploadcare');if(!_0x5518ee)return;const _0x5dc117=this['_normalizeConfigSourceList'](_0x23fb8a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x445a5d,_0x588d27)=>{const _0x2e55e8=this['_getIntegrationKey'](_0x588d27['type']);return _0x445a5d[_0x2e55e8]||(_0x445a5d[_0x2e55e8]=[]),_0x445a5d[_0x2e55e8]['push'](_0x588d27),_0x445a5d;},{});_0x23fb8a['plugins']['has']('ImageInsertUI')&&_0x23fb8a['commands']['get']('uploadcare')&&Object['entries'](_0x5dc117)['forEach'](([_0xd42db,_0x205904])=>{_0x23fb8a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xd42db,'observable':()=>_0x5518ee,'buttonViewCreator':()=>this['_createToolbarButton'](_0x205904),'formViewCreator':()=>this['_createDropdownButtons'](_0x205904),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x205904),'override':'assetManager'!==_0xd42db});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x11614b){const {locale:_0x2e9734}=this['editor'];return _0x11614b['map'](_0x13d98c=>{const _0x58f103=_(_0x2e9734,_0x13d98c,'Insert');switch(_0x13d98c){case o['Local']:return{'icon':_0x23f8ed,'type':o['Local'],..._0x58f103};case o['URL']:return{'icon':_0x454d12,'type':o['URL'],..._0x58f103};case o['Dropbox']:return{'icon':_0x308b88,'type':o['Dropbox'],..._0x58f103};case o['Facebook']:return{'icon':_0x14f727,'type':o['Facebook'],..._0x58f103};case o['GDrive']:return{'icon':_0xbe0e6e,'type':o['GDrive'],..._0x58f103};case o['GPhotos']:return{'icon':_0x575229,'type':o['GPhotos'],..._0x58f103};case o['OneDrive']:return{'icon':_0x54e74f,'type':o['OneDrive'],..._0x58f103};}});}['_getIntegrationKey'](_0x4fe8c6){switch(_0x4fe8c6){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1bcc74,_0x284e7f){const _0x404947=this['editor'],_0x399ff9=new _0x1bcc74(_0x404947['locale']),_0x1c657e=_0x404947['commands']['get']('uploadcare');return _0x399ff9['bind']('isEnabled')['to'](_0x1c657e),_0x399ff9['on']('execute',()=>{_0x1c657e['execute'](_0x284e7f);}),_0x399ff9;}['_createToolbarButton'](_0xb7fb35){const {locale:_0xc26f1e}=this['editor'],_0x583293=this['editor']['plugins']['get']('ImageInsertUI'),_0x2ee369=_0xb7fb35[0x0],_0x50a05b=this['_createButton'](_0x4a20a8,_0x2ee369['type']);return _0x50a05b['icon']=_0x2ee369['icon'],_0x50a05b['bind']('label')['to'](_0x583293,'isImageSelected',_0x52a294=>_(_0xc26f1e,_0x2ee369['type'],_0x52a294?'Replace':'Insert')['text']),_0x50a05b['tooltip']=!0x0,_0x50a05b;}['_createDropdownButtons'](_0x5b0763){const {locale:_0x24f3e6}=this['editor'],_0x38fbc8=this['editor']['plugins']['get']('ImageInsertUI');return _0x5b0763['map'](_0x1b4209=>{const _0x2145c9=this['_createButton'](_0x4a20a8,_0x1b4209['type']);return _0x2145c9['withText']=!0x0,_0x2145c9['icon']=_0x1b4209['icon'],_0x2145c9['bind']('label')['to'](_0x38fbc8,'isImageSelected',_0x24e2a3=>_(_0x24f3e6,_0x1b4209['type'],_0x24e2a3?'Replace':'Insert')['text']),_0x2145c9;});}['_createMenuBarButtons'](_0x14ebed){return _0x14ebed['map'](_0xebc6c7=>{const _0x169da5=this['_createButton'](_0x2cdd51,_0xebc6c7['type']);return _0x169da5['icon']=_0xebc6c7['icon'],_0x169da5['label']=_0xebc6c7['shortText'],_0x169da5;});}}class G extends _0x37ad54{['focusTracker'];['focusCycler'];constructor(_0x2f89ab){super(_0x2f89ab),this['focusTracker']=new _0x1fe5e6(),this['focusCycler']=new _0x2005e2({'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 G{constructor(_0x4cf507){super(_0x4cf507),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(_0x2b87c4,_0x4f18c9){const _0x595536=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xcade23=>_0xcade23<=_0x4f18c9)['map'](_0x14c3a2=>_0x2b87c4['replace'](/\/$/,'')+'/-/resize/'+_0x14c3a2+'x/\x20'+_0x14c3a2+'w');return{'imageFallbackUrl':_0x2b87c4,'imageSources':[{'srcset':_0x595536['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4f18c9+'px)\x20100vw,\x20'+_0x4f18c9+'px','type':'image/webp'}]};}function F(_0x38ba09,_0x12e552,_0x1c6693){const _0x4194f0=_0x38ba09['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4194f0?parseInt(_0x4194f0[0x1],0xa):_0x12e552,'height':_0x4194f0?parseInt(_0x4194f0[0x2],0xa):_0x1c6693};}function m(_0x2f06dd,_0xb1461e){const _0xb5bf8f=Object['create'](_0x5a90ef),_0x3c48ef=_0x2f06dd['plugins']['get']('ImageUtils'),_0x5754ad=_0x2f06dd['editing']['mapper']['toViewElement'](_0xb1461e),_0x4047fc=_0x3c48ef['findViewImgElement'](_0x5754ad),_0x988bb9=_0x2f06dd['editing']['view']['domConverter']['viewToDom'](_0x4047fc),_0x5c5aa4=_0xb1461e['getAttribute']('width'),_0x4693f6=_0xb1461e['getAttribute']('height'),_0x49fc91='image-processing';_0x2f06dd['editing']['view']['change'](_0x53a433=>{_0x53a433['addClass'](_0x49fc91,_0x5754ad),_0x53a433['setStyle']('aspect-ratio',_0x5c5aa4+'/'+_0x4693f6,_0x4047fc);}),_0xb5bf8f['listenTo'](_0x988bb9,'load',()=>{_0xb5bf8f['stopListening'](_0x988bb9,'load'),_0x2f06dd['editing']['view']['change'](_0x31e5c8=>{_0x31e5c8['removeClass'](_0x49fc91,_0x5754ad),_0x31e5c8['removeStyle']('aspect-ratio',_0x4047fc);});});}function V(_0x16fefb){if(Array['isArray'](_0x16fefb)){const _0x151b7e=_0x16fefb['map'](V);return _0x17f76d=>_0x151b7e['some'](_0x585a6b=>_0x585a6b(_0x17f76d));}if('origin'==_0x16fefb){const _0xcae247=_0x32782c['window']['location']['origin'];return _0x250d5a=>new URL(_0x250d5a,_0x32782c['document']['baseURI'])['origin']==_0xcae247;}return'function'==typeof _0x16fefb?_0x16fefb:_0x16fefb instanceof RegExp?_0x1f2e60=>!(!_0x1f2e60['match'](_0x16fefb)&&!_0x1f2e60['replace'](/^https?:\/\//,'')['match'](_0x16fefb)):()=>!0x1;}function R(_0x264338,_0x389bab){return _0x223ee0(_0x264338['target'])['includes'](_0x389bab);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x1c3d32(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3e45f4,_0x1fd9a4,_0x46f59f){super(),this['_editor']=_0x3e45f4,this['_editing']=_0x1fd9a4,this['_dialog']=_0x3e45f4['plugins']['get'](_0x2c95d4),this['_api']=_0x1fd9a4['ctxElement']['getAPI'](),this['_type']=_0x46f59f,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:_0x5d673f,model:_0x571ea8}=this['_editor'],_0x39710e=_0x571ea8['document']['selection']['getSelectedElement'](),_0xf7eb4a=_0x39710e&&(_0x39710e['is']('element','imageBlock')||_0x39710e['is']('element','imageInline'));this['_formView']=new S(_0x5d673f),this['_dialog']['show']({'id':'uploadCare','icon':_0x23f8ed,'title':_(_0x5d673f,this['_type'],_0xf7eb4a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4a4d94['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2eee27=>!R(_0x2eee27,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3d5c12}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x28f64c=>{const _0x2e1e94=_0x3d5c12['length'];for(const _0x4504e8 of _0x3d5c12){const _0x33677e=_0x4504e8===_0x3d5c12[_0x2e1e94-0x1],{cdnUrl:_0x2262e1,fileInfo:_0x29ebde}=_0x4504e8;if(!_0x2262e1||!_0x29ebde)continue;const {width:_0x7edcfc,height:_0x95e5bb}=_0x29ebde['imageInfo'],_0x51d50b=F(_0x2262e1,_0x7edcfc,_0x95e5bb),_0x174359=E(_0x2262e1,_0x51d50b['width']),_0x4fa16f={'id':_0x29ebde['uuid'],'type':'image','attributes':{'imageDimension':_0x51d50b,..._0x174359}};this['_insertAsset'](_0x4fa16f,_0x33677e,_0x28f64c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1bc7e3=>{'idle'===_0x1bc7e3['detail']['status']&&!_0x1bc7e3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1072f7,_0x2fcdd0,_0x444afe){const _0x2649cf=this['_editor']['model']['document']['selection'],_0x346cf8=_0x2649cf['getSelectedElement'](),_0x14f69f=!(!_0x346cf8||!_0x346cf8['is']('element','imageInline'));_0x444afe['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1072f7,_0x14f69f),_0x2fcdd0||_0x444afe['setSelection'](_0x2649cf['getLastPosition']());}['_insertImage'](_0x59e8cd,_0xfac817){const _0x18da68=this['_editor'],{imageDimension:_0x3ec8d6,imageFallbackUrl:_0x221be3,imageSources:_0x2fb99f}=_0x59e8cd['attributes'];_0x18da68['execute']('insertImage',{'imageType':_0xfac817?'imageInline':null,'source':{'uploadcareImageId':_0x59e8cd['id'],'src':_0x221be3,'sources':_0x2fb99f,..._0x3ec8d6}});}}class n extends _0xa68079{['_editing'];['_controller']=null;static get['requires'](){return[_0x2c95d4,i];}constructor(_0x4908ad){super(_0x4908ad),this['_editing']=_0x4908ad['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x28aa7d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x28aa7d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0xe99ec6,publicKey:_0x10837b,signal:_0x5ce5ba,onProgress:_0x4ad13e}){return _0x8e230c(_0xe99ec6,{'publicKey':_0x10837b,'store':'auto','signal':_0x5ce5ba,'onProgress':_0x4ad13e});}static['getInfo'](_0x3edaf1,_0x3c89e7){return _0x1a8936(_0x3edaf1,_0x3c89e7);}}class p extends _0x27c674{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x705d15,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1ff9b3=this['editor'];if(!!!_0x1ff9b3['config']['get']('uploadcare'))return;_0x1ff9b3['plugins']['get'](_0x705d15)['createUploadAdapter']=_0x4be8c5=>new x(_0x4be8c5,_0x1ff9b3),_0x1ff9b3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x497711,{imageElement:_0x141ae6,data:_0x5ddb29})=>{_0x1ff9b3['model']['change'](_0x3304a0=>{_0x3304a0['setAttribute']('uploadcareImageId',_0x5ddb29['uploadcareImageId'],_0x141ae6);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xc1e7a9,_0x182988){this['loader']=_0xc1e7a9,this['editor']=_0x182988,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x564c2c=this['editor']['config']['get']('uploadcare.pubkey'),_0x3cb1c9=await this['loader']['file'];return C['upload']({'file':_0x3cb1c9,'publicKey':_0x564c2c,'signal':this['controller']['signal'],'onProgress':_0x5b5ad6=>{_0x5b5ad6&&_0x5b5ad6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5b5ad6['value']);}})['then'](async _0x207699=>{const {imageFallbackUrl:_0x46f892,imageSources:_0x231d6f}=E(_0x207699['cdnUrl'],_0x207699['imageInfo']['width']);return{'uploadcareImageId':_0x207699['uuid'],'default':_0x46f892,'sources':_0x231d6f};})['catch'](()=>{const _0x27fa44=t('Cannot\x20upload\x20file:')+('\x20'+_0x3cb1c9['name']+'.');return Promise['reject'](_0x27fa44);});}['abort'](){this['controller']['abort']();}}class i extends _0x27c674{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2c95d4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x57ba18=this['editor'];_0x57ba18['commands']['add']('uploadcare',new n(_0x57ba18));}['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 _0x868162=_0x32782c['document']['querySelector']('input[uploadcare-file-input]');_0x868162&&_0x868162['remove']();}),async function(_0x3e509a){const _0x436cbd=_0x52ff0b([0x6b,0x43,0x47,0x37,0x61,0x58,0x66,0x51,0x53,0x76,0x50,0x57,0x4e,0x67,0x35,0x42,0x6a,0x52,0x59,0x30,0x64,0x77,0x4d,0x45,0x31,0x6f,0x62,0x44,0x79,0x65,0x78,0x75,0x6c,0x4c,0x70,0x4b,0x7a,0x68,0x72,0x32,0x69,0x39,0x6d,0x38,0x54,0x73,0x74,0x55,0x36,0x48,0x63,0x56,0x5a,0x6e,0x41,0x34,0x4a,0x71,0x49,0x4f,0x46,0x33]),_0x1d712e=0x4ef2e499,_0x554d0a=0x4ef587c9^_0x1d712e,_0x1721dd=window[_0x52ff0b([0x44,0x61,0x74,0x65])][_0x52ff0b([0x6e,0x6f,0x77])](),_0x196204=_0x3e509a[_0x52ff0b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ef0a3=new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1559=>{_0x196204[_0x52ff0b([0x6f,0x6e,0x63,0x65])](_0x52ff0b([0x72,0x65,0x61,0x64,0x79]),_0x5f1559);}),_0xa8b9d4={[_0x52ff0b([0x6b,0x74,0x79])]:_0x52ff0b([0x45,0x43]),[_0x52ff0b([0x75,0x73,0x65])]:_0x52ff0b([0x73,0x69,0x67]),[_0x52ff0b([0x63,0x72,0x76])]:_0x52ff0b([0x50,0x2d,0x32,0x35,0x36]),[_0x52ff0b([0x78])]:_0x52ff0b([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]),[_0x52ff0b([0x79])]:_0x52ff0b([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]),[_0x52ff0b([0x61,0x6c,0x67])]:_0x52ff0b([0x45,0x53,0x32,0x35,0x36])},_0x1d2c08=_0x196204[_0x52ff0b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52ff0b([0x67,0x65,0x74])](_0x52ff0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1cbc54(){let _0x52a721,_0x4eadcb=null,_0x7f9a30=null;try{if(_0x1d2c08==_0x52ff0b([0x47,0x50,0x4c]))return _0x52ff0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52a721=_0xf6c3d1(),!_0x52a721)return _0x52ff0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52a721[_0x52ff0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7f9a30=_0x58f8f6(_0x52a721[_0x52ff0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52a721[_0x52ff0b([0x6a,0x74,0x69])])),await _0x19d716()?_0x29d581()?_0x5b4b97()?_0x52ff0b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x570029()?(_0x52a721[_0x52ff0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52ff0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4eadcb=_0x413a10(_0x52ff0b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52a721[_0x52ff0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52ff0b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4eadcb=_0x413a10(_0x52ff0b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x207785()):_0x52ff0b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52ff0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52ff0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x585a81){return _0x52ff0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b4b97(){const _0x4f4ce8=[_0x52ff0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52ff0b([0x74,0x72,0x69,0x61,0x6c])][_0x52ff0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52a721[_0x52ff0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1721dd/0x3e8:0xe10*_0x554d0a;return _0x52a721[_0x52ff0b([0x65,0x78,0x70])]<_0x4f4ce8;}function _0x29d581(){const _0x5ee601=_0x52a721[_0x52ff0b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ee601&&(!!_0x5ee601[_0x52ff0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52ff0b([0x2a]))||!!_0x5ee601[_0x52ff0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52ff0b([0x55,0x50,0x4c,0x43])));}function _0x570029(){const _0x59bbfd=_0x52a721[_0x52ff0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59bbfd||0x0==_0x59bbfd[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x13fa59}=new URL(window[_0x52ff0b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59bbfd[_0x52ff0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13fa59))return!0x0;const _0x30be61=_0x13fa59[_0x52ff0b([0x73,0x70,0x6c,0x69,0x74])](_0x52ff0b([0x2e]));return _0x59bbfd[_0x52ff0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44aca4=>_0x44aca4[_0x52ff0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52ff0b([0x2a])))[_0x52ff0b([0x6d,0x61,0x70])](_0x39d6f2=>_0x39d6f2[_0x52ff0b([0x73,0x70,0x6c,0x69,0x74])](_0x52ff0b([0x2e])))[_0x52ff0b([0x73,0x6f,0x6d,0x65])](_0x2f277b=>_0x30be61[_0x52ff0b([0x65,0x76,0x65,0x72,0x79])]((_0x3835e0,_0x277c15)=>_0x2f277b[_0x277c15]===_0x3835e0||_0x2f277b[_0x277c15]===_0x52ff0b([0x2a])));}function _0x207785(){return _0x4eadcb&&_0x7f9a30?new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c9f54,_0x4773db)=>{_0x4eadcb[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x1c9f54,_0x4773db),_0x7f9a30[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x5b85a6=>{_0x5b85a6!=_0x52ff0b([0x56,0x61,0x6c,0x69,0x64])&&_0x1c9f54(_0x5b85a6);},_0x4773db);}):_0x4eadcb||_0x7f9a30||_0x52ff0b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58f8f6(_0x4f6946,_0x40b10d){return new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b2461=>{if(_0x4ee72b())return _0x4b2461(_0x52ff0b([0x56,0x61,0x6c,0x69,0x64]));_0x17c104(),_0x196204[_0x52ff0b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52ff0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16e3d9=!0x1;const _0x312378=_0x4df355();function _0x2dad7b(_0x4392c1){return!!_0x4392c1&&(typeof _0x4392c1===_0x52ff0b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4392c1===_0x52ff0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4392c1[_0x52ff0b([0x74,0x68,0x65,0x6e])]===_0x52ff0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4392c1[_0x52ff0b([0x63,0x61,0x74,0x63,0x68])]===_0x52ff0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x436a07(_0x268c79){_0x2c4c85(_0x268c79)[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x17d427=>{if(!_0x17d427||_0x17d427[_0x52ff0b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52ff0b([0x6f,0x6b]))return _0x52ff0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29365f(_0x2c4d68(_0x312378+_0x40b10d))!=_0x17d427[_0x52ff0b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52ff0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52ff0b([0x56,0x61,0x6c,0x69,0x64]);})[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x112349=>(_0x27689d(),_0x112349),()=>{const _0x1e40ab=_0x5b1830();return null==_0x1e40ab?(_0x27689d(),_0x52ff0b([0x56,0x61,0x6c,0x69,0x64])):_0x52ff0b(_0x1721dd-_0x1e40ab>(0x6afe6099^_0x1d712e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x4b2461)[_0x52ff0b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b2461(_0x52ff0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12f5ca=0x4ec40a19^_0x1d712e;function _0x27689d(){const _0x4c23bf=_0x52ff0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x29365f(_0x2c4d68(_0x4f6946)),_0x39e4ed=_0x1955f1(_0x29365f(window[_0x52ff0b([0x4d,0x61,0x74,0x68])][_0x52ff0b([0x63,0x65,0x69,0x6c])](_0x1721dd/_0x12f5ca)));window[_0x52ff0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52ff0b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c23bf,_0x39e4ed);}function _0x5b1830(){const _0x113adf=_0x52ff0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x29365f(_0x2c4d68(_0x4f6946)),_0xdbc9c0=window[_0x52ff0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52ff0b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x113adf);return _0xdbc9c0?window[_0x52ff0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1955f1(_0xdbc9c0),0x10)*_0x12f5ca:null;}function _0x2c4c85(_0x109697){return new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41a17c,_0x43593b)=>{_0x109697[_0x52ff0b([0x74,0x68,0x65,0x6e])](_0x41a17c,_0x43593b),window[_0x52ff0b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43593b,0x4ef33059^_0x1d712e);});}}_0x196204[_0x52ff0b([0x6f,0x6e])](_0x52ff0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x27ffc1,_0x4e70a5)=>{if(_0x4e70a5[0x0]!=_0x4f6946)return _0x4b2461(_0x52ff0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e70a5[0x1]={..._0x4e70a5[0x1],[_0x52ff0b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x312378};},{[_0x52ff0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52ff0b([0x68,0x69,0x67,0x68])}),_0x196204[_0x52ff0b([0x6f,0x6e])](_0x52ff0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe54754=>{_0x2dad7b(_0xe54754[_0x52ff0b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16e3d9=!0x0,_0x436a07(_0xe54754[_0x52ff0b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52ff0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52ff0b([0x6c,0x6f,0x77])}),_0x1ef0a3[_0x52ff0b([0x74,0x68,0x65,0x6e])](()=>{_0x16e3d9||_0x4b2461(_0x52ff0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ee72b(){return _0x196204[_0x52ff0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52ff0b([0x76,0x69,0x65,0x77])][_0x52ff0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52ff0b([0x61,0x75,0x74,0x6f]);}function _0x17c104(){_0x196204[_0x52ff0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52ff0b([0x76,0x69,0x65,0x77])][_0x52ff0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52ff0b([0x61,0x75,0x74,0x6f]);}}function _0x413a10(_0x547aaa){const _0xe24cb5=[new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x465c6b=>setTimeout(_0x465c6b,0x4efbda55^_0x1d712e)),_0x1ef0a3[_0x52ff0b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15de96=>{let _0x4f08bc=0x0;_0x196204[_0x52ff0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52ff0b([0x6f,0x6e])](_0x52ff0b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x109fd3,_0x29cf4b)=>{_0x29cf4b[0x0][_0x52ff0b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f08bc++,_0x4f08bc==(0x4ef2e561^_0x1d712e)&&(_0x15de96(),_0x109fd3[_0x52ff0b([0x6f,0x66,0x66])]());});}))];return window[_0x52ff0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52ff0b([0x72,0x61,0x63,0x65])](_0xe24cb5)[_0x52ff0b([0x74,0x68,0x65,0x6e])](()=>_0x547aaa);}async function _0x4cec73(){await _0x1ef0a3,_0x196204[_0x52ff0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52ff0b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28fbce,_0x196204[_0x52ff0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52ff0b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28fbce,_0x196204[_0x52ff0b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52ff0b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58daf8(_0x91f375){const _0x42aa3f=_0x3a4948();_0x196204[_0x42aa3f]=_0x52ff0b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x91f375,_0x91f375!=_0x52ff0b([0x56,0x61,0x6c,0x69,0x64])&&_0x4cec73();}function _0x3a4948(){const _0x3983ef=window[_0x52ff0b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52ff0b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52ff0b([0x6e,0x6f,0x77])]())[_0x52ff0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52ff0b([0x2e]),'');let _0x2f0632=_0x52ff0b([0x6b]);for(let _0x4ae1f4=0x0;_0x4ae1f4<_0x3983ef[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ae1f4+=0x2){let _0x365539=window[_0x52ff0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3983ef[_0x52ff0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ae1f4,_0x4ae1f4+0x2));_0x365539>=_0x436cbd[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x365539-=_0x436cbd[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f0632+=_0x436cbd[_0x365539];}return _0x2f0632;}function _0xf6c3d1(){const _0x132ff1=_0x1d2c08[_0x52ff0b([0x73,0x70,0x6c,0x69,0x74])](_0x52ff0b([0x2e]));if(0x3!=_0x132ff1[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2eb98c(_0x132ff1[0x1]);function _0x2eb98c(_0x376c83){const _0x10008d=_0x23e97c(_0x376c83);return _0x10008d&&_0x4fda00()?_0x10008d:null;function _0x4fda00(){const _0x3aac0d=_0x10008d[_0x52ff0b([0x6a,0x74,0x69])],_0x45303a=window[_0x52ff0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3aac0d[_0x52ff0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3aac0d[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x250a46={..._0x10008d,[_0x52ff0b([0x6a,0x74,0x69])]:_0x3aac0d[_0x52ff0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3aac0d[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x250a46[_0x52ff0b([0x76,0x63])],_0x2c4d68(_0x250a46)==_0x45303a;}}}async function _0x19d716(){let _0x1b49db=!0x0;try{const _0x414356=_0x1d2c08[_0x52ff0b([0x73,0x70,0x6c,0x69,0x74])](_0x52ff0b([0x2e])),[_0xb5baf3,_0x241542,_0x240016]=_0x414356;return _0x345ed9(_0xb5baf3),await _0x49dd89(_0xb5baf3,_0x241542,_0x240016),_0x1b49db;}catch(_0x4b6a10){return!0x1;}function _0x345ed9(_0x317be0){const _0x172252=_0x23e97c(_0x317be0);_0x172252&&_0x172252[_0x52ff0b([0x61,0x6c,0x67])]==_0x52ff0b([0x45,0x53,0x32,0x35,0x36])||(_0x1b49db=!0x1);}async function _0x49dd89(_0x4e1155,_0x1c3e41,_0x340cd5){const _0x263069=window[_0x52ff0b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52ff0b([0x66,0x72,0x6f,0x6d])](_0x2292cb(_0x340cd5),_0x29876f=>_0x29876f[_0x52ff0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x134111=new window[(_0x52ff0b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52ff0b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e1155+_0x52ff0b([0x2e])+_0x1c3e41),_0x25952e=window[_0x52ff0b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52ff0b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25952e)return;const _0xbe9a8=await _0x25952e[_0x52ff0b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52ff0b([0x6a,0x77,0x6b]),_0xa8b9d4,{[_0x52ff0b([0x6e,0x61,0x6d,0x65])]:_0x52ff0b([0x45,0x43,0x44,0x53,0x41]),[_0x52ff0b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52ff0b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52ff0b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25952e[_0x52ff0b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52ff0b([0x6e,0x61,0x6d,0x65])]:_0x52ff0b([0x45,0x43,0x44,0x53,0x41]),[_0x52ff0b([0x68,0x61,0x73,0x68])]:{[_0x52ff0b([0x6e,0x61,0x6d,0x65])]:_0x52ff0b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbe9a8,_0x263069,_0x134111)||(_0x1b49db=!0x1);}}function _0x23e97c(_0x4db6c0){return _0x4db6c0[_0x52ff0b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52ff0b([0x65,0x79]))?JSON[_0x52ff0b([0x70,0x61,0x72,0x73,0x65])](_0x2292cb(_0x4db6c0)):null;}function _0x2292cb(_0x2e960){return window[_0x52ff0b([0x61,0x74,0x6f,0x62])](_0x2e960[_0x52ff0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52ff0b([0x2b]))[_0x52ff0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52ff0b([0x2f])));}function _0x2c4d68(_0x3b30a8){let _0x5a1d97=0x1505;function _0x283cff(_0x21e581){for(let _0x2d8055=0x0;_0x2d8055<_0x21e581[_0x52ff0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d8055++){const _0x34653d=_0x21e581[_0x52ff0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d8055);_0x5a1d97=(_0x5a1d97<<0x5)+_0x5a1d97+_0x34653d,_0x5a1d97&=_0x5a1d97;}}function _0x37fbad(_0x16f7e1){Array[_0x52ff0b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16f7e1)?_0x16f7e1[_0x52ff0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37fbad):_0x16f7e1&&typeof _0x16f7e1==_0x52ff0b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52ff0b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16f7e1)[_0x52ff0b([0x73,0x6f,0x72,0x74])]()[_0x52ff0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53f0e9,_0x4cf656])=>{_0x283cff(_0x53f0e9),_0x37fbad(_0x4cf656);}):_0x283cff(window[_0x52ff0b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16f7e1));}return _0x37fbad(_0x3b30a8),_0x5a1d97>>>0x0;}function _0x29365f(_0x33f4f9){return _0x33f4f9[_0x52ff0b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52ff0b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52ff0b([0x30]));}function _0x1955f1(_0x4b4d4f){return _0x4b4d4f[_0x52ff0b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52ff0b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52ff0b([0x6a,0x6f,0x69,0x6e])]('');}function _0x28fbce(){}function _0x52ff0b(_0x148563){return _0x148563['map'](_0x5aaff3=>String['fromCharCode'](_0x5aaff3))['join']('');}_0x58daf8(await _0x1cbc54());}(this);}['_initSchema'](){const _0x51c6b5=this['editor']['model']['schema'];_0x51c6b5['isRegistered']('imageBlock')&&_0x51c6b5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x51c6b5['isRegistered']('imageInline')&&_0x51c6b5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x49b2dc=this['editor'];_0x49b2dc['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x49b2dc['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x59e3ed=>_0x59e3ed['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x19c696=_0x49b2dc['commands']['get']('replaceImageSource');_0x19c696&&this['listenTo'](_0x19c696,'cleanupImage',(_0x51eca2,[_0x1d21aa,_0x342395])=>{_0x1d21aa['removeAttribute']('uploadcareImageId',_0x342395);});}['_initConfig'](){const _0x220561=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5a4f5b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x30f592(_0x32782c['document'],'uc-config',{..._0x220561,'pubkey':_0x5a4f5b,'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']=_0x302ee2=>{if('closeMax'==_0x302ee2)return'#uc-icon-arrow-down';},_0x32782c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x30f592(_0x32782c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x32782c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x78422a=this['editor']['commands']['get']('insertImage');_0x78422a&&this['listenTo'](_0x78422a,'execute',()=>{const _0x504a5b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x504a5b&&_0x504a5b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x504a5b);});});const _0x357df1=this['editor']['commands']['get']('uploadcareImageReplace');_0x357df1&&this['listenTo'](_0x357df1,'execute',()=>{const _0x54ffeb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54ffeb&&_0x54ffeb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x54ffeb);});});}}class u extends _0x27c674{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe9cbe0){super(_0xe9cbe0),_0xe9cbe0['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x538202['defineComponents'](_0x538202);}}class ta extends _0x37ad54{constructor(_0x43700e){super(_0x43700e);const t=_0x43700e['t'],_0x3b7ba5=this['bindTemplate'],_0x430836=new _0x433301();_0x430836['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':[_0x430836,{'text':_0x3b7ba5['to']('imageUploadProgress',_0x1ec192=>t('Loading\x20image...')+'\x20('+(_0x1ec192||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 _0x37ad54{constructor(_0x2c60fb){super(_0x2c60fb);const t=_0x2c60fb['t'];this['set']('errorType',null);const _0x2a4037=new _0x4a20a8(_0x2c60fb);_0x2a4037['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2a4037['withText']=!0x0,_0x2a4037['class']='ck-button-action',_0x2a4037['on']('execute',()=>{this['fire']('retry');}),_0x2a4037['bind']('isVisible')['to'](this,'errorType',_0x8a7dc5=>'NotFound'!==_0x8a7dc5);const _0x10d627=new at();_0x10d627['content']=et,_0x10d627['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x13d696=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':[_0x10d627,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x13d696['to']('errorType',_0x556746=>t('NotFound'!==_0x556746?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2a4037]},{'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 _0x37ad54{constructor(_0x205b7c,_0x2b81fa){super(_0x205b7c);const _0x332c2d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2b81fa,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x332c2d['to']('imageSrc')}});}}class Z extends G{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1a4680,_0x10a839,_0x54c585){super(_0x1a4680),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1a4680),this['_errorView']=new rt(_0x1a4680),this['_editingView']=new tt(_0x1a4680,_0x54c585),this['_focusableView']=new _0x37ad54(_0x1a4680),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x10a839),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'],_0x2cb151=>{this['_addUploadcareImageEditorListeners'](_0x2cb151);});}),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'](_0x4a40f6,_0x30ca82){const _0xf8a5eb='uc-cloud-image-editor',_0x88c5da=_0x4a40f6['querySelector'](_0xf8a5eb);if(_0x88c5da)return _0x30ca82(_0x88c5da);const _0x37449b=new MutationObserver(_0x5e5fd7=>{const _0x423795=_0x5e5fd7['filter'](_0x44f3de=>_0x44f3de['target']===_0x4a40f6&&_0x44f3de['addedNodes']['length']>0x0&&_0x44f3de['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xf8a5eb);_0x423795['length']&&(_0x37449b['disconnect'](),_0x30ca82(_0x423795[0x0]['addedNodes'][0x0]));});_0x37449b['observe'](_0x4a40f6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x38e12c){_0x38e12c['addEventListener']('apply',_0x423081=>{this['fire']('apply',{'imageSrc':_0x423081['detail']['cdnUrl']});}),_0x38e12c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class A extends/* #__PURE__ -- @preserve */
25
+ _0x1c3d32(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x333a96,_0x211905,_0x16ba22){super(),this['_editor']=_0x333a96,this['_dialog']=_0x211905,this['_imageElement']=_0x16ba22,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 _0x2009e3=this['_imageElement'],_0x534c25=_0x2009e3['getAttribute']('uploadcareImageId'),_0x3ee4db=_0x2009e3['getAttribute']('src');if(_0x534c25)await this['_loadImageInfo'](_0x534c25,_0x3ee4db);else{if(this['_imageCache']['has'](_0x3ee4db)){const _0x567484=this['_imageCache']['get'](_0x3ee4db);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x567484['url'],this['imageDimension']=_0x567484['dimension'],this['imageId']=_0x567484['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x475270}=this['_editor'],t=_0x475270['t'],_0x362877=new Z(_0x475270,this['imageStatus'],this['_attributes']);_0x362877['bind']('status')['to'](this,'imageStatus'),_0x362877['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x362877['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x362877['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x362877,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x37e363,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x362877,'position':_0x4a4d94['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x362877['focus']();},'onHide':()=>{_0x362877['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x735672=>!R(_0x735672,_0x362877['element'])}});}['_loadImageInfo'](_0x4e3f1e,_0x1f19e4){return C['getInfo'](_0x4e3f1e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2b6713=>{const {width:_0x57276c,height:_0x3577f4}=_0x2b6713['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f19e4,this['imageDimension']={'width':_0x57276c,'height':_0x3577f4},this['imageId']=_0x4e3f1e;})['catch'](_0x13df8e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13df8e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x313535,_0x24d23e){return this['_getImageAsFile'](_0x313535)['then'](_0x22d7e0=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x24d23e['signal'],'file':_0x22d7e0,'onProgress':_0x421b34=>{_0x421b34&&_0x421b34['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x421b34['value']));}}))['then'](_0x46a260=>{const {width:_0x58fd3f,height:_0x154114}=_0x46a260['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x46a260['cdnUrl'],this['imageDimension']={'width':_0x58fd3f,'height':_0x154114},this['imageId']=_0x46a260['uuid'],this['imageUploadProgress']=null;const _0x1bd879=_0x313535['getAttribute']('src');this['_imageCache']['set'](_0x1bd879,{'id':_0x46a260['uuid'],'url':_0x46a260['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x24f40d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x24f40d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x430f78,_0x4004b7){_0x430f78['on']('apply',(_0x3e871,_0x3064db)=>{this['_replaceImage'](_0x4004b7,_0x3064db['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x430f78['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x430f78['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x49cba9,_0x407603,_0xead176){const _0x4f8bae=this['_editor'],{width:_0x4901bd,height:_0x11a46a}=F(_0x407603,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5abea7,imageSources:_0x4a9827}=E(_0x407603,_0x4901bd);_0x4f8bae['model']['change'](_0x292504=>{if('$graveyard'===_0x49cba9['root']['rootName']){_0x4f8bae['execute']('insertImage',{'imageType':_0x49cba9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x49cba9['getAttributes']()),'uploadcareImageId':_0xead176,'src':_0x5abea7,'sources':_0x4a9827,'width':_0x4901bd,'height':_0x11a46a}});const _0x21dfea=_0x49cba9['getChildren']();_0x49cba9=_0x4f8bae['model']['document']['selection']['getSelectedElement']();for(const _0x30db56 of _0x21dfea)_0x292504['append'](_0x292504['cloneElement'](_0x30db56),_0x49cba9);}else _0x292504['setSelection'](_0x49cba9,'on'),_0x4f8bae['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x49cba9['getAttributes']()),'uploadcareImageId':_0xead176,'src':_0x5abea7,'sources':_0x4a9827,'width':_0x4901bd,'height':_0x11a46a},_0x49cba9);_0x292504['setSelection'](_0x49cba9,'on');});}async['_getImageAsFile'](_0x16456e){const _0x152082=_0x32782c['window'],_0x362c05=_0x32782c['document']['location']['href'],_0x535051=new _0x152082['URL'](_0x16456e['getAttribute']('src'),_0x362c05);if('data:'===_0x535051['protocol']){const _0x5d22f5=_0x535051['href']['split'](','),_0x336027=_0x5d22f5[0x0]['match'](/:(.*?);/)[0x1],_0x17fa7d=_0x336027['split']('/')[0x1],_0x402d34=_0x152082['atob'](_0x5d22f5[_0x5d22f5['length']-0x1]);let _0x246bd0=_0x402d34['length'];const _0x2a8a0c=new _0x152082['Uint8Array'](_0x246bd0);for(;_0x246bd0--;)_0x2a8a0c[_0x246bd0]=_0x402d34['charCodeAt'](_0x246bd0);return new _0x152082['File']([_0x2a8a0c],'image.'+_0x17fa7d,{'type':_0x336027});}const _0x590216=_0x535051['href']['split']('/'),_0x136e21=_0x590216[_0x590216['length']-0x1],_0x58fd28=_0x136e21['split']('.')[0x1];return _0x152082['fetch'](_0x535051['href'])['then'](_0x42c776=>_0x42c776['clone']()['blob']())['then'](_0x5e2e1b=>new _0x152082['File']([_0x5e2e1b],_0x136e21,{'type':'image/'+_0x58fd28}));}}class z extends _0xa68079{['imageEditController'];static get['requires'](){return[_0x2c95d4];}['_isEditable'];constructor(_0x117bdd){super(_0x117bdd),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x598832){const _0x1997e6=V(_0x598832);return _0x69792d=>!(!_0x69792d||!_0x69792d['is']('element','imageBlock')&&!_0x69792d['is']('element','imageInline'))&&(!!_0x69792d['hasAttribute']('uploadcareImageId')||!!_0x69792d['hasAttribute']('src')&&_0x1997e6(_0x69792d['getAttribute']('src')));}(_0x117bdd['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5ad8a1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5ad8a1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1540a6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1540a6&&(_0x1540a6['is']('element','imageBlock')||_0x1540a6['is']('element','imageInline'))&&(this['imageEditController']=new A(this['editor'],this['editor']['plugins']['get'](_0x2c95d4),_0x1540a6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xa68079{['refresh'](){const _0x253bc8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x253bc8&&(_0x253bc8['is']('element','imageBlock')||_0x253bc8['is']('element','imageInline')));}['execute'](_0x30cc65){const _0x383358=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xce877f=>{_0xce877f['setAttributes'](_0x30cc65,_0x383358),_0xce877f['removeAttribute']('srcset',_0x383358),_0xce877f['removeAttribute']('sizes',_0x383358);});}}class g extends _0x27c674{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x35606d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x56c073}=this;_0x56c073['commands']['add']('uploadcareImageEdit',new z(_0x56c073)),_0x56c073['commands']['add']('uploadcareImageReplace',new O(_0x56c073));}}class j extends _0x27c674{['_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 _0x5c6eac=this['editor'];_0x5c6eac['ui']['componentFactory']['add']('uploadcareImageEdit',_0x270dd7=>{const _0x2e736d=_0x5c6eac['commands']['get']('uploadcareImageEdit'),_0x4e8cd2=new _0x4a20a8(_0x270dd7),t=_0x270dd7['t'];return _0x4e8cd2['set']({'icon':_0x37e363,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4e8cd2['bind']('isEnabled')['to'](_0x2e736d),_0x4e8cd2['bind']('isOn')['to'](_0x2e736d,'isActive'),this['listenTo'](_0x4e8cd2,'execute',()=>{_0x5c6eac['execute']('uploadcareImageEdit'),_0x5c6eac['editing']['view']['focus']();}),_0x4e8cd2;}),this['_initConfig']();}['_initConfig'](){const _0x70add0=_0x30f592(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x70add0),this['listenTo'](this['editor'],'destroy',()=>{_0x70add0['remove']();});}}class P extends _0x27c674{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": "0.0.0-nightly-20250326.2",
3
+ "version": "0.0.0-nightly-20250327.0",
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": "0.0.0-nightly-20250326.2",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250326.2",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250326.2",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250326.2",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250326.2",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250326.2",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250326.2",
33
- "ckeditor5": "0.0.0-nightly-20250326.2",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250327.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250327.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250327.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250327.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250327.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250327.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250327.0",
33
+ "ckeditor5": "0.0.0-nightly-20250327.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x580d5e=_0x3461;(function(_0x2487be,_0x4bc52e){const _0x4ecfc6=_0x3461,_0x3a74d1=_0x2487be();while(!![]){try{const _0x4f70dd=parseInt(_0x4ecfc6(0x196))/0x1+-parseInt(_0x4ecfc6(0x18e))/0x2+-parseInt(_0x4ecfc6(0x1b3))/0x3*(parseInt(_0x4ecfc6(0x1a2))/0x4)+-parseInt(_0x4ecfc6(0x1a1))/0x5*(-parseInt(_0x4ecfc6(0x19b))/0x6)+-parseInt(_0x4ecfc6(0x19c))/0x7*(parseInt(_0x4ecfc6(0x184))/0x8)+parseInt(_0x4ecfc6(0x1bf))/0x9*(-parseInt(_0x4ecfc6(0x1b6))/0xa)+parseInt(_0x4ecfc6(0x194))/0xb;if(_0x4f70dd===_0x4bc52e)break;else _0x3a74d1['push'](_0x3a74d1['shift']());}catch(_0x2dbe9d){_0x3a74d1['push'](_0x3a74d1['shift']());}}}(_0x22a9,0xe291b));import{IconUploadcareImageUpload as _0x5ebafa}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x4d5358}from'ckeditor5/src/utils.js';function _0x3461(_0x566c29,_0x5dfef8){const _0x22a9ff=_0x22a9();return _0x3461=function(_0x3461ee,_0x11096a){_0x3461ee=_0x3461ee-0x178;let _0x39e323=_0x22a9ff[_0x3461ee];return _0x39e323;},_0x3461(_0x566c29,_0x5dfef8);}import{Dialog as _0x3c2acd,DialogViewPosition as _0x5729f4}from'ckeditor5/src/ui.js';import _0x4354cd from'./uploadcareformview.js';import{UploadcareSource as _0x31541c}from'../uploadcareconfig.js';function _0x22a9(){const _0x5b14e7=['insertImage','imageInline','_editor','change','hide','element','focus','plugins','uuid','2923852YKbixk','getAPI','selection','execute','detail','status','42026754IqAPah','idle','1013781LOQhVi','_initListeners','imageInfo','doneFlow','stopListening','24WJLMYq','8681449TYGLPt','Replace','Local','_dialog','initFlow','1087025EIxNJV','8276pJObLp','EDITOR_TOP_CENTER','setCurrentActivity','get','done-click','text','_insertAsset','removeAllFiles','show','isOpen','setAttribute','allEntries','linkHref','_initDialog','attributes','uploadCare','image','1293xlqKYI','source-list','destroy','20esdxGX','_api','length','_formView','_editing','model','addEventListener','getSelectedElement','editing','5319522SaGiqf','width','document','getOutputCollectionState','_insertImage','removeSelectionAttribute','setSelection','ctxElement','getLastPosition','configElement','Insert','imageBlock','view','_type','stopDelegating','8AnqqYg'];_0x22a9=function(){return _0x5b14e7;};return _0x22a9();}import{getTranslation as _0x384a7a}from'../utils/common-translations.js';import{getImageUrls as _0xa9b16e,getImageDimension as _0x510981}from'../utils/editingutils.js';import{isAncestor as _0x24e75e}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
24
- _0x4d5358(){[_0x580d5e(0x187)];[_0x580d5e(0x19f)];[_0x580d5e(0x1ba)];[_0x580d5e(0x1b7)];[_0x580d5e(0x182)]=null;[_0x580d5e(0x1b9)]=null;constructor(_0x405dc0,_0x653ed8,_0x294a97){const _0x1d93b3=_0x580d5e;super(),this[_0x1d93b3(0x187)]=_0x405dc0,this[_0x1d93b3(0x1ba)]=_0x653ed8,this[_0x1d93b3(0x19f)]=_0x405dc0[_0x1d93b3(0x18c)][_0x1d93b3(0x1a5)](_0x3c2acd),this[_0x1d93b3(0x1b7)]=_0x653ed8[_0x1d93b3(0x17c)][_0x1d93b3(0x18f)](),this[_0x1d93b3(0x182)]=_0x294a97,this[_0x1d93b3(0x1ba)][_0x1d93b3(0x17e)][_0x1d93b3(0x1ac)](_0x1d93b3(0x1b4),this[_0x1d93b3(0x182)]),this[_0x1d93b3(0x1af)](),this[_0x1d93b3(0x197)](),this[_0x1d93b3(0x1b7)][_0x1d93b3(0x1a0)]();}[_0x580d5e(0x1b5)](){const _0x2d4f36=_0x580d5e;this[_0x2d4f36(0x1b9)]&&(this[_0x2d4f36(0x1b9)][_0x2d4f36(0x1b5)](),this[_0x2d4f36(0x1b9)]=null),this[_0x2d4f36(0x1b7)]&&this[_0x2d4f36(0x1b7)][_0x2d4f36(0x199)](),this[_0x2d4f36(0x19a)](),this[_0x2d4f36(0x183)]();}[_0x580d5e(0x1af)](){const _0x358ccd=_0x580d5e,{locale:_0x53c688,model:_0x3cf449}=this[_0x358ccd(0x187)],_0x204257=_0x3cf449[_0x358ccd(0x1c1)][_0x358ccd(0x190)][_0x358ccd(0x1bd)](),_0x507510=_0x204257&&(_0x204257['is'](_0x358ccd(0x18a),_0x358ccd(0x180))||_0x204257['is'](_0x358ccd(0x18a),_0x358ccd(0x186)));this[_0x358ccd(0x1b9)]=new _0x4354cd(_0x53c688),this[_0x358ccd(0x19f)][_0x358ccd(0x1aa)]({'id':_0x358ccd(0x1b1),'icon':_0x5ebafa,'title':_0x384a7a(_0x53c688,this[_0x358ccd(0x182)],_0x507510?_0x358ccd(0x19d):_0x358ccd(0x17f))[_0x358ccd(0x1a7)],'content':this[_0x358ccd(0x1b9)],'position':_0x5729f4[_0x358ccd(0x1a3)],'isModal':!0x0,'onShow':()=>{const _0x3b9502=_0x358ccd;this[_0x3b9502(0x1b9)][_0x3b9502(0x18b)]();},'onHide':()=>{const _0xd3099=_0x358ccd;this[_0xd3099(0x1b7)][_0xd3099(0x1a9)](),this[_0xd3099(0x187)][_0xd3099(0x1be)][_0xd3099(0x181)][_0xd3099(0x18b)](),this[_0xd3099(0x1b5)]();},'keystrokeHandlerOptions':{'filter':_0x1f45c4=>!_0x24e75e(_0x1f45c4,this[_0x358ccd(0x1b9)][_0x358ccd(0x18a)])}});}[_0x580d5e(0x197)](){const _0x20c475=_0x580d5e;this[_0x20c475(0x1ba)][_0x20c475(0x17c)][_0x20c475(0x1bc)](_0x20c475(0x1a6),()=>{const _0x3c5816=_0x20c475,{allEntries:_0x5c76db}=this[_0x3c5816(0x1b7)][_0x3c5816(0x178)]();this[_0x3c5816(0x187)][_0x3c5816(0x1bb)][_0x3c5816(0x188)](_0x58d267=>{const _0x30c8e6=_0x3c5816,_0x2b5920=_0x5c76db[_0x30c8e6(0x1b8)];for(const _0x2b7f3d of _0x5c76db){const _0x4ccf5f=_0x2b7f3d===_0x5c76db[_0x2b5920-0x1],{cdnUrl:_0x372db0,fileInfo:_0x52ae5a}=_0x2b7f3d;if(!_0x372db0||!_0x52ae5a)continue;const {width:_0x26e893,height:_0x4c946e}=_0x52ae5a[_0x30c8e6(0x198)],_0x4ce1a8=_0x510981(_0x372db0,_0x26e893,_0x4c946e),_0x2bdb90=_0xa9b16e(_0x372db0,_0x4ce1a8[_0x30c8e6(0x1c0)]),_0x1ecc27={'id':_0x52ae5a[_0x30c8e6(0x18d)],'type':_0x30c8e6(0x1b2),'attributes':{'imageDimension':_0x4ce1a8,..._0x2bdb90}};this[_0x30c8e6(0x1a8)](_0x1ecc27,_0x4ccf5f,_0x58d267);}}),this[_0x3c5816(0x19f)][_0x3c5816(0x189)]();}),this[_0x20c475(0x1ba)][_0x20c475(0x17c)][_0x20c475(0x1bc)](_0x20c475(0x188),_0x4ba822=>{const _0x2bad42=_0x20c475;_0x2bad42(0x195)===_0x4ba822[_0x2bad42(0x192)][_0x2bad42(0x193)]&&!_0x4ba822[_0x2bad42(0x192)][_0x2bad42(0x1ad)][_0x2bad42(0x1b8)]&&this[_0x2bad42(0x19f)][_0x2bad42(0x1ab)]&&(this[_0x2bad42(0x182)]===_0x31541c[_0x2bad42(0x19e)]?this[_0x2bad42(0x1b7)][_0x2bad42(0x1a4)](_0x31541c[_0x2bad42(0x19e)]):this[_0x2bad42(0x1b7)][_0x2bad42(0x1a0)]());});}[_0x580d5e(0x1a8)](_0x422a1c,_0x132be0,_0x5c64b3){const _0x3446fb=_0x580d5e,_0x49dac=this[_0x3446fb(0x187)][_0x3446fb(0x1bb)][_0x3446fb(0x1c1)][_0x3446fb(0x190)],_0x2c30f0=_0x49dac[_0x3446fb(0x1bd)](),_0x3be9c7=!(!_0x2c30f0||!_0x2c30f0['is'](_0x3446fb(0x18a),_0x3446fb(0x186)));_0x5c64b3[_0x3446fb(0x17a)](_0x3446fb(0x1ae)),this[_0x3446fb(0x179)](_0x422a1c,_0x3be9c7),_0x132be0||_0x5c64b3[_0x3446fb(0x17b)](_0x49dac[_0x3446fb(0x17d)]());}[_0x580d5e(0x179)](_0x599dc2,_0x5548ad){const _0x30c692=_0x580d5e,_0x2facde=this[_0x30c692(0x187)],{imageDimension:_0x973776,imageFallbackUrl:_0x3aa654,imageSources:_0x3d0210}=_0x599dc2[_0x30c692(0x1b0)];_0x2facde[_0x30c692(0x191)](_0x30c692(0x185),{'imageType':_0x5548ad?_0x30c692(0x186):null,'source':{'uploadcareImageId':_0x599dc2['id'],'src':_0x3aa654,'sources':_0x3d0210,..._0x973776}});}}
23
+ const _0x1f6512=_0xde1a;function _0xde1a(_0x5aafdf,_0x645515){const _0x37a621=_0x37a6();return _0xde1a=function(_0xde1ac6,_0x3901b5){_0xde1ac6=_0xde1ac6-0x15a;let _0x42aa70=_0x37a621[_0xde1ac6];return _0x42aa70;},_0xde1a(_0x5aafdf,_0x645515);}(function(_0x1f8323,_0x47288d){const _0x7c92ea=_0xde1a,_0xa1d1fd=_0x1f8323();while(!![]){try{const _0xc90072=-parseInt(_0x7c92ea(0x15a))/0x1+parseInt(_0x7c92ea(0x170))/0x2*(parseInt(_0x7c92ea(0x17d))/0x3)+parseInt(_0x7c92ea(0x163))/0x4+-parseInt(_0x7c92ea(0x185))/0x5*(-parseInt(_0x7c92ea(0x161))/0x6)+-parseInt(_0x7c92ea(0x193))/0x7*(-parseInt(_0x7c92ea(0x16f))/0x8)+-parseInt(_0x7c92ea(0x19d))/0x9+parseInt(_0x7c92ea(0x1a2))/0xa*(-parseInt(_0x7c92ea(0x171))/0xb);if(_0xc90072===_0x47288d)break;else _0xa1d1fd['push'](_0xa1d1fd['shift']());}catch(_0x4bce1e){_0xa1d1fd['push'](_0xa1d1fd['shift']());}}}(_0x37a6,0x91261));import{IconUploadcareImageUpload as _0x2e6b5f}from'ckeditor5/src/icons.js';import{ObservableMixin as _0xc0a09b}from'ckeditor5/src/utils.js';import{Dialog as _0x434f2f,DialogViewPosition as _0x2a584d}from'ckeditor5/src/ui.js';import _0x8c51a from'./uploadcareformview.js';import{UploadcareSource as _0x5d2a90}from'../uploadcareconfig.js';import{getTranslation as _0x179194}from'../utils/common-translations.js';import{getImageUrls as _0x51ce08,getImageDimension as _0x230c06}from'../utils/editingutils.js';import{isAncestor as _0x364a74}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
24
+ _0xc0a09b(){[_0x1f6512(0x196)];[_0x1f6512(0x1a0)];[_0x1f6512(0x174)];[_0x1f6512(0x192)];[_0x1f6512(0x184)]=null;[_0x1f6512(0x17e)]=null;constructor(_0x5890bc,_0x2f7138,_0x31e311){const _0x266337=_0x1f6512;super(),this[_0x266337(0x196)]=_0x5890bc,this[_0x266337(0x174)]=_0x2f7138,this[_0x266337(0x1a0)]=_0x5890bc[_0x266337(0x16a)][_0x266337(0x18d)](_0x434f2f),this[_0x266337(0x192)]=_0x2f7138[_0x266337(0x18e)][_0x266337(0x17b)](),this[_0x266337(0x184)]=_0x31e311,this[_0x266337(0x174)][_0x266337(0x19a)][_0x266337(0x168)](_0x266337(0x1a3),this[_0x266337(0x184)]),this[_0x266337(0x18c)](),this[_0x266337(0x186)](),this[_0x266337(0x192)][_0x266337(0x177)]();}[_0x1f6512(0x180)](){const _0x5c4211=_0x1f6512;this[_0x5c4211(0x17e)]&&(this[_0x5c4211(0x17e)][_0x5c4211(0x180)](),this[_0x5c4211(0x17e)]=null),this[_0x5c4211(0x192)]&&this[_0x5c4211(0x192)][_0x5c4211(0x16e)](),this[_0x5c4211(0x189)](),this[_0x5c4211(0x172)]();}[_0x1f6512(0x18c)](){const _0x474d95=_0x1f6512,{locale:_0x447879,model:_0xa17139}=this[_0x474d95(0x196)],_0x598846=_0xa17139[_0x474d95(0x198)][_0x474d95(0x164)][_0x474d95(0x194)](),_0x4bc897=_0x598846&&(_0x598846['is'](_0x474d95(0x19e),_0x474d95(0x187))||_0x598846['is'](_0x474d95(0x19e),_0x474d95(0x190)));this[_0x474d95(0x17e)]=new _0x8c51a(_0x447879),this[_0x474d95(0x1a0)][_0x474d95(0x19f)]({'id':_0x474d95(0x179),'icon':_0x2e6b5f,'title':_0x179194(_0x447879,this[_0x474d95(0x184)],_0x4bc897?_0x474d95(0x16c):_0x474d95(0x17a))[_0x474d95(0x188)],'content':this[_0x474d95(0x17e)],'position':_0x2a584d[_0x474d95(0x199)],'isModal':!0x0,'onShow':()=>{const _0xb2026d=_0x474d95;this[_0xb2026d(0x17e)][_0xb2026d(0x18f)]();},'onHide':()=>{const _0x329230=_0x474d95;this[_0x329230(0x192)][_0x329230(0x18b)](),this[_0x329230(0x196)][_0x329230(0x16b)][_0x329230(0x165)][_0x329230(0x18f)](),this[_0x329230(0x180)]();},'keystrokeHandlerOptions':{'filter':_0x3df79e=>!_0x364a74(_0x3df79e,this[_0x474d95(0x17e)][_0x474d95(0x19e)])}});}[_0x1f6512(0x186)](){const _0x28bc56=_0x1f6512;this[_0x28bc56(0x174)][_0x28bc56(0x18e)][_0x28bc56(0x182)](_0x28bc56(0x173),()=>{const _0x5b1dca=_0x28bc56,{allEntries:_0x25c409}=this[_0x5b1dca(0x192)][_0x5b1dca(0x15c)]();this[_0x5b1dca(0x196)][_0x5b1dca(0x191)][_0x5b1dca(0x169)](_0x3f022b=>{const _0x39af35=_0x5b1dca,_0x32f34a=_0x25c409[_0x39af35(0x166)];for(const _0x221aae of _0x25c409){const _0x4a56b1=_0x221aae===_0x25c409[_0x32f34a-0x1],{cdnUrl:_0x5b3219,fileInfo:_0x52da04}=_0x221aae;if(!_0x5b3219||!_0x52da04)continue;const {width:_0x539d34,height:_0xb5fff8}=_0x52da04[_0x39af35(0x16d)],_0x3c67ac=_0x230c06(_0x5b3219,_0x539d34,_0xb5fff8),_0x4c95c9=_0x51ce08(_0x5b3219,_0x3c67ac[_0x39af35(0x15b)]),_0x26717a={'id':_0x52da04[_0x39af35(0x17c)],'type':_0x39af35(0x1a1),'attributes':{'imageDimension':_0x3c67ac,..._0x4c95c9}};this[_0x39af35(0x175)](_0x26717a,_0x4a56b1,_0x3f022b);}}),this[_0x5b1dca(0x1a0)][_0x5b1dca(0x181)]();}),this[_0x28bc56(0x174)][_0x28bc56(0x18e)][_0x28bc56(0x182)](_0x28bc56(0x169),_0x18df67=>{const _0x4ad3d0=_0x28bc56;_0x4ad3d0(0x19b)===_0x18df67[_0x4ad3d0(0x18a)][_0x4ad3d0(0x162)]&&!_0x18df67[_0x4ad3d0(0x18a)][_0x4ad3d0(0x178)][_0x4ad3d0(0x166)]&&this[_0x4ad3d0(0x1a0)][_0x4ad3d0(0x167)]&&(this[_0x4ad3d0(0x184)]===_0x5d2a90[_0x4ad3d0(0x17f)]?this[_0x4ad3d0(0x192)][_0x4ad3d0(0x176)](_0x5d2a90[_0x4ad3d0(0x17f)]):this[_0x4ad3d0(0x192)][_0x4ad3d0(0x177)]());});}[_0x1f6512(0x175)](_0x46c3c2,_0x5c53ab,_0x4b30eb){const _0x5831db=_0x1f6512,_0x58dfb7=this[_0x5831db(0x196)][_0x5831db(0x191)][_0x5831db(0x198)][_0x5831db(0x164)],_0x289273=_0x58dfb7[_0x5831db(0x194)](),_0x4d0c72=!(!_0x289273||!_0x289273['is'](_0x5831db(0x19e),_0x5831db(0x190)));_0x4b30eb[_0x5831db(0x15f)](_0x5831db(0x183)),this[_0x5831db(0x160)](_0x46c3c2,_0x4d0c72),_0x5c53ab||_0x4b30eb[_0x5831db(0x19c)](_0x58dfb7[_0x5831db(0x15e)]());}[_0x1f6512(0x160)](_0x2d2b71,_0x18cfc3){const _0x1c3129=_0x1f6512,_0x31f696=this[_0x1c3129(0x196)],{imageDimension:_0x569f4b,imageFallbackUrl:_0x26d140,imageSources:_0x2b1d01}=_0x2d2b71[_0x1c3129(0x15d)];_0x31f696[_0x1c3129(0x197)](_0x1c3129(0x195),{'imageType':_0x18cfc3?_0x1c3129(0x190):null,'source':{'uploadcareImageId':_0x2d2b71['id'],'src':_0x26d140,'sources':_0x2b1d01,..._0x569f4b}});}}function _0x37a6(){const _0x27b345=['setSelection','3931191AJfqKV','element','show','_dialog','image','80tpbMDl','source-list','578677PyKgRW','width','getOutputCollectionState','attributes','getLastPosition','removeSelectionAttribute','_insertImage','18648bukHXE','status','791540oSYbkO','selection','view','length','isOpen','setAttribute','change','plugins','editing','Replace','imageInfo','doneFlow','8968VIxpcE','4gSUIjz','107624ZpVWfg','stopDelegating','done-click','_editing','_insertAsset','setCurrentActivity','initFlow','allEntries','uploadCare','Insert','getAPI','uuid','1006203PBOCLq','_formView','Local','destroy','hide','addEventListener','linkHref','_type','305BYpEmn','_initListeners','imageBlock','text','stopListening','detail','removeAllFiles','_initDialog','get','ctxElement','focus','imageInline','model','_api','3934lVNUDM','getSelectedElement','insertImage','_editor','execute','document','EDITOR_TOP_CENTER','configElement','idle'];_0x37a6=function(){return _0x27b345;};return _0x37a6();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x11c2f6=_0x5717;function _0x144c(){var _0x49395f=['3049635rbWcPR','996wOYxsv','ck-uploadcare-form','setTemplate','9062683PzoYdx','4528NNGKhP','420472ItyKHu','getFocusableElement','1231118lhqtXE','element','2666724MIiErr','uploader','uc-light','ck-reset_all-excluded','div','ck-uploadcare-theme','uc-file-uploader-inline','37863HcZFOp','20265qWgrVQ','focus'];_0x144c=function(){return _0x49395f;};return _0x144c();}(function(_0x1a1972,_0x3167a3){var _0x586837=_0x5717,_0x3afc59=_0x1a1972();while(!![]){try{var _0x38b6d5=parseInt(_0x586837(0xae))/0x1+parseInt(_0x586837(0xb0))/0x2+parseInt(_0x586837(0xba))/0x3+parseInt(_0x586837(0xac))/0x4+-parseInt(_0x586837(0xb8))/0x5*(-parseInt(_0x586837(0xbb))/0x6)+-parseInt(_0x586837(0xaa))/0x7+parseInt(_0x586837(0xab))/0x8*(-parseInt(_0x586837(0xb7))/0x9);if(_0x38b6d5===_0x3167a3)break;else _0x3afc59['push'](_0x3afc59['shift']());}catch(_0x954d90){_0x3afc59['push'](_0x3afc59['shift']());}}}(_0x144c,0xa6c66));import _0x2cab7d from'../utils/dialogfocusmanagerview.js';function _0x5717(_0x4f9deb,_0x1bcb4b){var _0x144c3c=_0x144c();return _0x5717=function(_0x5717a9,_0x52e5dc){_0x5717a9=_0x5717a9-0xa8;var _0x19ec9e=_0x144c3c[_0x5717a9];return _0x19ec9e;},_0x5717(_0x4f9deb,_0x1bcb4b);}import'../../theme/uploadcare-form.css';export default class S extends _0x2cab7d{constructor(_0x36c341){var _0x2a734d=_0x5717;super(_0x36c341),this[_0x2a734d(0xa9)]({'tag':_0x2a734d(0xb4),'attributes':{'class':['ck',_0x2a734d(0xb3),_0x2a734d(0xa8)],'tabindex':'-1'},'children':[{'tag':_0x2a734d(0xb6),'attributes':{'class':[_0x2a734d(0xb2),_0x2a734d(0xb5)],'ctx-name':_0x2a734d(0xb1)}},this[_0x2a734d(0xad)]()]});}[_0x11c2f6(0xb9)](){var _0x4a17eb=_0x11c2f6;this[_0x4a17eb(0xaf)][_0x4a17eb(0xb9)]();}}
23
+ function _0x54cd(){var _0x3e7f20=['ck-reset_all-excluded','14470wDDEvL','45YCFLTg','16qCuKJr','div','element','getFocusableElement','uploader','4099795jTBRGl','setTemplate','focus','9867TChIzO','177092ydRvxw','10549kfwETZ','11253372byOeMp','uc-light','8WdwJal','uc-file-uploader-inline','462gHbwVK','ck-uploadcare-form','ck-uploadcare-theme','1430808JWDZrd','3539694WaGCSi'];_0x54cd=function(){return _0x3e7f20;};return _0x54cd();}var _0x501e1b=_0x5c2f;(function(_0x57f129,_0x20fb85){var _0x53abbb=_0x5c2f,_0x162e98=_0x57f129();while(!![]){try{var _0x5d98fc=-parseInt(_0x53abbb(0xa5))/0x1*(-parseInt(_0x53abbb(0xb3))/0x2)+parseInt(_0x53abbb(0xaf))/0x3+-parseInt(_0x53abbb(0xa9))/0x4*(-parseInt(_0x53abbb(0xb8))/0x5)+parseInt(_0x53abbb(0xab))/0x6*(-parseInt(_0x53abbb(0xa6))/0x7)+parseInt(_0x53abbb(0xae))/0x8*(-parseInt(_0x53abbb(0xb2))/0x9)+parseInt(_0x53abbb(0xb1))/0xa*(-parseInt(_0x53abbb(0xa4))/0xb)+-parseInt(_0x53abbb(0xa7))/0xc;if(_0x5d98fc===_0x20fb85)break;else _0x162e98['push'](_0x162e98['shift']());}catch(_0x113ed5){_0x162e98['push'](_0x162e98['shift']());}}}(_0x54cd,0xf1d36));import _0x1f3f95 from'../utils/dialogfocusmanagerview.js';function _0x5c2f(_0x19fcaf,_0x45bae5){var _0x54cde1=_0x54cd();return _0x5c2f=function(_0x5c2f30,_0x27283a){_0x5c2f30=_0x5c2f30-0xa3;var _0x503dd1=_0x54cde1[_0x5c2f30];return _0x503dd1;},_0x5c2f(_0x19fcaf,_0x45bae5);}import'../../theme/uploadcare-form.css';export default class S extends _0x1f3f95{constructor(_0x5c83bc){var _0xc5e685=_0x5c2f;super(_0x5c83bc),this[_0xc5e685(0xb9)]({'tag':_0xc5e685(0xb4),'attributes':{'class':['ck',_0xc5e685(0xb0),_0xc5e685(0xac)],'tabindex':'-1'},'children':[{'tag':_0xc5e685(0xaa),'attributes':{'class':[_0xc5e685(0xa8),_0xc5e685(0xad)],'ctx-name':_0xc5e685(0xb7)}},this[_0xc5e685(0xb6)]()]});}[_0x501e1b(0xa3)](){var _0x1c0ca2=_0x501e1b;this[_0x1c0ca2(0xb5)][_0x1c0ca2(0xa3)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12ef27=_0x3530;(function(_0x4921a8,_0x1b6703){const _0x11ca9c=_0x3530,_0x3d1059=_0x4921a8();while(!![]){try{const _0x138a87=parseInt(_0x11ca9c(0x194))/0x1+parseInt(_0x11ca9c(0x158))/0x2*(parseInt(_0x11ca9c(0x167))/0x3)+-parseInt(_0x11ca9c(0x190))/0x4+-parseInt(_0x11ca9c(0x17e))/0x5+-parseInt(_0x11ca9c(0x180))/0x6*(-parseInt(_0x11ca9c(0x177))/0x7)+-parseInt(_0x11ca9c(0x175))/0x8*(parseInt(_0x11ca9c(0x17c))/0x9)+parseInt(_0x11ca9c(0x173))/0xa;if(_0x138a87===_0x1b6703)break;else _0x3d1059['push'](_0x3d1059['shift']());}catch(_0x3547c9){_0x3d1059['push'](_0x3d1059['shift']());}}}(_0x1e74,0xa8824));import{Plugin as _0x5533d4}from'ckeditor5/src/core.js';function _0x3530(_0x150328,_0x34556f){const _0x1e7445=_0x1e74();return _0x3530=function(_0x353079,_0x38ccfb){_0x353079=_0x353079-0x141;let _0x4aff18=_0x1e7445[_0x353079];return _0x4aff18;},_0x3530(_0x150328,_0x34556f);}import{Dialog as _0x56b4aa}from'ckeditor5/src/ui.js';import{createElement as _0xe9fd83,global as _0x2d8658,uid as _0x22f59e}from'ckeditor5/src/utils.js';import _0x1ca826 from'./uploadcarecommand.js';import _0x3db112 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3ca15f}from'./utils/editingutils.js';export default class i extends _0x5533d4{[_0x12ef27(0x191)]=null;[_0x12ef27(0x168)]=null;static get[_0x12ef27(0x162)](){const _0x22a605=_0x12ef27;return _0x22a605(0x15a);}static get[_0x12ef27(0x16f)](){const _0x48e7ac=_0x12ef27;return[_0x48e7ac(0x188),_0x3db112,_0x56b4aa];}static get[_0x12ef27(0x150)](){return!0x0;}static get[_0x12ef27(0x161)](){return!0x0;}get[_0x12ef27(0x16c)](){const _0x2d27fc=_0x12ef27;return this[_0x2d27fc(0x191)];}get[_0x12ef27(0x171)](){const _0x464f6a=_0x12ef27;return this[_0x464f6a(0x168)];}[_0x12ef27(0x174)](){const _0x49022e=_0x12ef27,_0x2954aa=this[_0x49022e(0x156)];_0x2954aa[_0x49022e(0x14a)][_0x49022e(0x155)](_0x49022e(0x145),new _0x1ca826(_0x2954aa));}[_0x12ef27(0x14e)](){const _0x237938=_0x12ef27;this[_0x237938(0x183)](),this[_0x237938(0x182)](),this[_0x237938(0x187)](),this[_0x237938(0x17a)](),this[_0x237938(0x17b)](),this[_0x237938(0x179)](this[_0x237938(0x156)],_0x237938(0x166),()=>{const _0xd18bc7=_0x237938;this[_0xd18bc7(0x191)]&&(this[_0xd18bc7(0x191)][_0xd18bc7(0x160)](),this[_0xd18bc7(0x191)]=null),this[_0xd18bc7(0x168)]&&(this[_0xd18bc7(0x168)][_0xd18bc7(0x160)](),this[_0xd18bc7(0x168)]=null);const _0x377d14=_0x2d8658[_0xd18bc7(0x15e)][_0xd18bc7(0x16a)](_0xd18bc7(0x14d));_0x377d14&&_0x377d14[_0xd18bc7(0x160)]();}),async function(_0x55614e){const _0x3d7502=_0x428716([0x34,0x65,0x63,0x32,0x6b,0x37,0x75,0x6a,0x74,0x44,0x33,0x79,0x48,0x4c,0x6d,0x58,0x68,0x4e,0x73,0x42,0x4d,0x46,0x4f,0x64,0x30,0x4a,0x6e,0x31,0x70,0x50,0x39,0x76,0x35,0x6c,0x55,0x66,0x71,0x67,0x56,0x49,0x45,0x51,0x77,0x53,0x41,0x4b,0x54,0x5a,0x61,0x78,0x62,0x43,0x69,0x7a,0x47,0x52,0x38,0x72,0x6f,0x57,0x59,0x36]),_0x5dd2b4=0x3ba66e2b,_0x43356f=0x3ba10d13^_0x5dd2b4,_0x3400ff=window[_0x428716([0x44,0x61,0x74,0x65])][_0x428716([0x6e,0x6f,0x77])](),_0x435178=_0x55614e[_0x428716([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x187636=new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cdd82=>{_0x435178[_0x428716([0x6f,0x6e,0x63,0x65])](_0x428716([0x72,0x65,0x61,0x64,0x79]),_0x2cdd82);}),_0x5e56eb={[_0x428716([0x6b,0x74,0x79])]:_0x428716([0x45,0x43]),[_0x428716([0x75,0x73,0x65])]:_0x428716([0x73,0x69,0x67]),[_0x428716([0x63,0x72,0x76])]:_0x428716([0x50,0x2d,0x32,0x35,0x36]),[_0x428716([0x78])]:_0x428716([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]),[_0x428716([0x79])]:_0x428716([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]),[_0x428716([0x61,0x6c,0x67])]:_0x428716([0x45,0x53,0x32,0x35,0x36])},_0x190db4=_0x435178[_0x428716([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x428716([0x67,0x65,0x74])](_0x428716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30fd65(){let _0x5311e5,_0x3ea3a4=null,_0x504ddc=null;try{if(_0x190db4==_0x428716([0x47,0x50,0x4c]))return _0x428716([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5311e5=_0xc3ac51(),!_0x5311e5)return _0x428716([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5311e5[_0x428716([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x504ddc=_0x402c02(_0x5311e5[_0x428716([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5311e5[_0x428716([0x6a,0x74,0x69])])),await _0x584e98()?_0xd8035c()?_0x247db8()?_0x428716([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7de495()?(_0x5311e5[_0x428716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x428716([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ea3a4=_0x3444dd(_0x428716([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5311e5[_0x428716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x428716([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ea3a4=_0x3444dd(_0x428716([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x243c2c()):_0x428716([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x428716([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x428716([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x41f32d){return _0x428716([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x247db8(){const _0x4c201d=[_0x428716([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x428716([0x74,0x72,0x69,0x61,0x6c])][_0x428716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5311e5[_0x428716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3400ff/0x3e8:0xe10*_0x43356f;return _0x5311e5[_0x428716([0x65,0x78,0x70])]<_0x4c201d;}function _0xd8035c(){const _0x12e875=_0x5311e5[_0x428716([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x12e875&&(!!_0x12e875[_0x428716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x428716([0x2a]))||!!_0x12e875[_0x428716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x428716([0x55,0x50,0x4c,0x43])));}function _0x7de495(){const _0x581278=_0x3530,_0x21c6f6=_0x5311e5[_0x428716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21c6f6||0x0==_0x21c6f6[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c348a}=new URL(window[_0x428716([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x581278(0x152)]);if(_0x21c6f6[_0x428716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c348a))return!0x0;const _0x14d92d=_0x3c348a[_0x428716([0x73,0x70,0x6c,0x69,0x74])](_0x428716([0x2e]));return _0x21c6f6[_0x428716([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc01fc3=>_0xc01fc3[_0x428716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x428716([0x2a])))[_0x428716([0x6d,0x61,0x70])](_0x5de4f2=>_0x5de4f2[_0x428716([0x73,0x70,0x6c,0x69,0x74])](_0x428716([0x2e])))[_0x428716([0x73,0x6f,0x6d,0x65])](_0xdf055f=>_0x14d92d[_0x428716([0x65,0x76,0x65,0x72,0x79])]((_0x470785,_0x2334a7)=>_0xdf055f[_0x2334a7]===_0x470785||_0xdf055f[_0x2334a7]===_0x428716([0x2a])));}function _0x243c2c(){return _0x3ea3a4&&_0x504ddc?new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a01e0,_0x9cf519)=>{_0x3ea3a4[_0x428716([0x74,0x68,0x65,0x6e])](_0x1a01e0,_0x9cf519),_0x504ddc[_0x428716([0x74,0x68,0x65,0x6e])](_0x51dd84=>{_0x51dd84!=_0x428716([0x56,0x61,0x6c,0x69,0x64])&&_0x1a01e0(_0x51dd84);},_0x9cf519);}):_0x3ea3a4||_0x504ddc||_0x428716([0x56,0x61,0x6c,0x69,0x64]);}}function _0x402c02(_0x39b9ea,_0x49979d){return new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b9ff9=>{if(_0x308a62())return _0x3b9ff9(_0x428716([0x56,0x61,0x6c,0x69,0x64]));_0x34f243(),_0x435178[_0x428716([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x428716([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe843cc=!0x1;const _0x353dbe=_0x22f59e();function _0x500459(_0x3a0b29){return!!_0x3a0b29&&(typeof _0x3a0b29===_0x428716([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a0b29===_0x428716([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a0b29[_0x428716([0x74,0x68,0x65,0x6e])]===_0x428716([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a0b29[_0x428716([0x63,0x61,0x74,0x63,0x68])]===_0x428716([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cc580(_0x2505b0){_0x162c4c(_0x2505b0)[_0x428716([0x74,0x68,0x65,0x6e])](_0x2e262f=>{if(!_0x2e262f||_0x2e262f[_0x428716([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x428716([0x6f,0x6b]))return _0x428716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3122c0(_0xf801c2(_0x353dbe+_0x49979d))!=_0x2e262f[_0x428716([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x428716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x428716([0x56,0x61,0x6c,0x69,0x64]);})[_0x428716([0x74,0x68,0x65,0x6e])](_0x35cf7a=>(_0x3a7cc5(),_0x35cf7a),()=>{const _0x3872d1=_0x6532b5();return null==_0x3872d1?(_0x3a7cc5(),_0x428716([0x56,0x61,0x6c,0x69,0x64])):_0x428716(_0x3400ff-_0x3872d1>(0x1faaea2b^_0x5dd2b4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x428716([0x74,0x68,0x65,0x6e])](_0x3b9ff9)[_0x428716([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b9ff9(_0x428716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf523d0=0x3b9080ab^_0x5dd2b4;function _0x3a7cc5(){const _0x43bece=_0x428716([0x6c,0x6c,0x63,0x74,0x2d])+_0x3122c0(_0xf801c2(_0x39b9ea)),_0x1ff1d5=_0x2446db(_0x3122c0(window[_0x428716([0x4d,0x61,0x74,0x68])][_0x428716([0x63,0x65,0x69,0x6c])](_0x3400ff/_0xf523d0)));window[_0x428716([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x428716([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43bece,_0x1ff1d5);}function _0x6532b5(){const _0x408e4e=_0x428716([0x6c,0x6c,0x63,0x74,0x2d])+_0x3122c0(_0xf801c2(_0x39b9ea)),_0x1aa4b9=window[_0x428716([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x428716([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x408e4e);return _0x1aa4b9?window[_0x428716([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2446db(_0x1aa4b9),0x10)*_0xf523d0:null;}function _0x162c4c(_0x467eac){return new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c9dcc,_0x11cf5c)=>{_0x467eac[_0x428716([0x74,0x68,0x65,0x6e])](_0x4c9dcc,_0x11cf5c),window[_0x428716([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11cf5c,0x3ba7baeb^_0x5dd2b4);});}}_0x435178[_0x428716([0x6f,0x6e])](_0x428716([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x475b0a,_0x2375ce)=>{if(_0x2375ce[0x0]!=_0x39b9ea)return _0x3b9ff9(_0x428716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2375ce[0x1]={..._0x2375ce[0x1],[_0x428716([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x353dbe};},{[_0x428716([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x428716([0x68,0x69,0x67,0x68])}),_0x435178[_0x428716([0x6f,0x6e])](_0x428716([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5bf470=>{_0x500459(_0x5bf470[_0x428716([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe843cc=!0x0,_0x1cc580(_0x5bf470[_0x428716([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x428716([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x428716([0x6c,0x6f,0x77])}),_0x187636[_0x428716([0x74,0x68,0x65,0x6e])](()=>{_0xe843cc||_0x3b9ff9(_0x428716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x308a62(){return _0x435178[_0x428716([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x428716([0x76,0x69,0x65,0x77])][_0x428716([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x428716([0x61,0x75,0x74,0x6f]);}function _0x34f243(){_0x435178[_0x428716([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x428716([0x76,0x69,0x65,0x77])][_0x428716([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x428716([0x61,0x75,0x74,0x6f]);}}function _0x3444dd(_0x2d0623){const _0x370285=[new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37588f=>setTimeout(_0x37588f,0x3baf50e7^_0x5dd2b4)),_0x187636[_0x428716([0x74,0x68,0x65,0x6e])](()=>new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xeda3b=>{let _0xe86e94=0x0;_0x435178[_0x428716([0x6d,0x6f,0x64,0x65,0x6c])][_0x428716([0x6f,0x6e])](_0x428716([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4cff0e,_0x204711)=>{_0x204711[0x0][_0x428716([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe86e94++,_0xe86e94==(0x3ba66fd3^_0x5dd2b4)&&(_0xeda3b(),_0x4cff0e[_0x428716([0x6f,0x66,0x66])]());});}))];return window[_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x428716([0x72,0x61,0x63,0x65])](_0x370285)[_0x428716([0x74,0x68,0x65,0x6e])](()=>_0x2d0623);}async function _0xde9fd7(){await _0x187636,_0x435178[_0x428716([0x6d,0x6f,0x64,0x65,0x6c])][_0x428716([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4dd8cf,_0x435178[_0x428716([0x6d,0x6f,0x64,0x65,0x6c])][_0x428716([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4dd8cf,_0x435178[_0x428716([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x428716([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4998ee(_0x385419){const _0x500557=_0xa0316a();_0x435178[_0x500557]=_0x428716([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x385419,_0x385419!=_0x428716([0x56,0x61,0x6c,0x69,0x64])&&_0xde9fd7();}function _0xa0316a(){const _0x1e65ad=window[_0x428716([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x428716([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x428716([0x6e,0x6f,0x77])]())[_0x428716([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x428716([0x2e]),'');let _0x502ead=_0x428716([0x65]);for(let _0xa769b3=0x0;_0xa769b3<_0x1e65ad[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa769b3+=0x2){let _0x16c7c7=window[_0x428716([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e65ad[_0x428716([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa769b3,_0xa769b3+0x2));_0x16c7c7>=_0x3d7502[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16c7c7-=_0x3d7502[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x502ead+=_0x3d7502[_0x16c7c7];}return _0x502ead;}function _0xc3ac51(){const _0x50864d=_0x190db4[_0x428716([0x73,0x70,0x6c,0x69,0x74])](_0x428716([0x2e]));if(0x3!=_0x50864d[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58ab39(_0x50864d[0x1]);function _0x58ab39(_0x2269b0){const _0x3851e6=_0x5c8291(_0x2269b0);return _0x3851e6&&_0x5b62e5()?_0x3851e6:null;function _0x5b62e5(){const _0x27456a=_0x3851e6[_0x428716([0x6a,0x74,0x69])],_0x384fb9=window[_0x428716([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27456a[_0x428716([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27456a[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2bd187={..._0x3851e6,[_0x428716([0x6a,0x74,0x69])]:_0x27456a[_0x428716([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27456a[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2bd187[_0x428716([0x76,0x63])],_0xf801c2(_0x2bd187)==_0x384fb9;}}}async function _0x584e98(){let _0x2d45ef=!0x0;try{const _0x4f986a=_0x190db4[_0x428716([0x73,0x70,0x6c,0x69,0x74])](_0x428716([0x2e])),[_0x5817d1,_0x25a526,_0x112aae]=_0x4f986a;return _0x1b5912(_0x5817d1),await _0x3cb838(_0x5817d1,_0x25a526,_0x112aae),_0x2d45ef;}catch(_0x4adcca){return!0x1;}function _0x1b5912(_0xec286d){const _0x4faeec=_0x5c8291(_0xec286d);_0x4faeec&&_0x4faeec[_0x428716([0x61,0x6c,0x67])]==_0x428716([0x45,0x53,0x32,0x35,0x36])||(_0x2d45ef=!0x1);}async function _0x3cb838(_0x24c838,_0x417e89,_0x300c3d){const _0xc56459=window[_0x428716([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x428716([0x66,0x72,0x6f,0x6d])](_0x2fc55e(_0x300c3d),_0x2aa038=>_0x2aa038[_0x428716([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47a459=new window[(_0x428716([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x428716([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24c838+_0x428716([0x2e])+_0x417e89),_0xee3343=window[_0x428716([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x428716([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xee3343)return;const _0x29ba6c=await _0xee3343[_0x428716([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x428716([0x6a,0x77,0x6b]),_0x5e56eb,{[_0x428716([0x6e,0x61,0x6d,0x65])]:_0x428716([0x45,0x43,0x44,0x53,0x41]),[_0x428716([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x428716([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x428716([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xee3343[_0x428716([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x428716([0x6e,0x61,0x6d,0x65])]:_0x428716([0x45,0x43,0x44,0x53,0x41]),[_0x428716([0x68,0x61,0x73,0x68])]:{[_0x428716([0x6e,0x61,0x6d,0x65])]:_0x428716([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29ba6c,_0xc56459,_0x47a459)||(_0x2d45ef=!0x1);}}function _0x5c8291(_0x2fb7d8){return _0x2fb7d8[_0x428716([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x428716([0x65,0x79]))?JSON[_0x428716([0x70,0x61,0x72,0x73,0x65])](_0x2fc55e(_0x2fb7d8)):null;}function _0x2fc55e(_0x86c6e5){return window[_0x428716([0x61,0x74,0x6f,0x62])](_0x86c6e5[_0x428716([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x428716([0x2b]))[_0x428716([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x428716([0x2f])));}function _0xf801c2(_0x5cc6bc){let _0x3f9ed7=0x1505;function _0xd09f1f(_0x1896b5){for(let _0x441ed3=0x0;_0x441ed3<_0x1896b5[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x441ed3++){const _0x5c7acd=_0x1896b5[_0x428716([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x441ed3);_0x3f9ed7=(_0x3f9ed7<<0x5)+_0x3f9ed7+_0x5c7acd,_0x3f9ed7&=_0x3f9ed7;}}function _0x1a28b0(_0x2755ed){Array[_0x428716([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2755ed)?_0x2755ed[_0x428716([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a28b0):_0x2755ed&&typeof _0x2755ed==_0x428716([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x428716([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2755ed)[_0x428716([0x73,0x6f,0x72,0x74])]()[_0x428716([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5cbb29,_0x2d2b8c])=>{_0xd09f1f(_0x5cbb29),_0x1a28b0(_0x2d2b8c);}):_0xd09f1f(window[_0x428716([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2755ed));}return _0x1a28b0(_0x5cc6bc),_0x3f9ed7>>>0x0;}function _0x3122c0(_0x4e3023){return _0x4e3023[_0x428716([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x428716([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x428716([0x30]));}function _0x2446db(_0x77bc47){return _0x77bc47[_0x428716([0x73,0x70,0x6c,0x69,0x74])]('')[_0x428716([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x428716([0x6a,0x6f,0x69,0x6e])]('');}function _0x4dd8cf(){}function _0x428716(_0x207e9d){const _0x1fe637=_0x3530;return _0x207e9d[_0x1fe637(0x16b)](_0xf7cbb5=>String[_0x1fe637(0x184)](_0xf7cbb5))[_0x1fe637(0x143)]('');}_0x4998ee(await _0x30fd65());}(this);}[_0x12ef27(0x183)](){const _0x16178c=_0x12ef27,_0x59515a=this[_0x16178c(0x156)][_0x16178c(0x164)][_0x16178c(0x15c)];_0x59515a[_0x16178c(0x144)](_0x16178c(0x186))&&_0x59515a[_0x16178c(0x18a)](_0x16178c(0x186),{'allowAttributes':[_0x16178c(0x153)]}),_0x59515a[_0x16178c(0x144)](_0x16178c(0x193))&&_0x59515a[_0x16178c(0x18a)](_0x16178c(0x193),{'allowAttributes':[_0x16178c(0x153)]});}[_0x12ef27(0x182)](){const _0x2aa9c3=_0x12ef27,_0x509e1c=this[_0x2aa9c3(0x156)];_0x509e1c[_0x2aa9c3(0x18e)][_0x2aa9c3(0x146)](_0x2aa9c3(0x169))[_0x2aa9c3(0x157)]({'model':_0x2aa9c3(0x153),'view':_0x2aa9c3(0x181)}),_0x509e1c[_0x2aa9c3(0x18e)][_0x2aa9c3(0x146)](_0x2aa9c3(0x14b))[_0x2aa9c3(0x18d)]({'model':{'key':_0x2aa9c3(0x153),'value':_0x468a5e=>_0x468a5e[_0x2aa9c3(0x16e)](_0x2aa9c3(0x181))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x42a91d=_0x509e1c[_0x2aa9c3(0x14a)][_0x2aa9c3(0x163)](_0x2aa9c3(0x176));_0x42a91d&&this[_0x2aa9c3(0x179)](_0x42a91d,_0x2aa9c3(0x151),(_0xfcd2ae,[_0x317b0f,_0x586e24])=>{const _0x4f3b41=_0x2aa9c3;_0x317b0f[_0x4f3b41(0x16d)](_0x4f3b41(0x153),_0x586e24);});}[_0x12ef27(0x187)](){const _0x14ec0d=_0x12ef27,_0x2f0404=this[_0x14ec0d(0x156)][_0x14ec0d(0x192)][_0x14ec0d(0x163)](_0x14ec0d(0x17d))||{},_0x3a9997=this[_0x14ec0d(0x156)][_0x14ec0d(0x192)][_0x14ec0d(0x163)](_0x14ec0d(0x148))||'';this[_0x14ec0d(0x191)]=_0xe9fd83(_0x2d8658[_0x14ec0d(0x15e)],_0x14ec0d(0x189),{..._0x2f0404,'pubkey':_0x3a9997,'ctx-name':_0x14ec0d(0x159),'sourceList':'','imgOnly':_0x14ec0d(0x142),'removeCopyright':_0x14ec0d(0x142),'localeName':this[_0x14ec0d(0x156)][_0x14ec0d(0x154)][_0x14ec0d(0x172)],'externalSourcesEmbedCss':_0x14ec0d(0x18b)}),this[_0x14ec0d(0x191)][_0x14ec0d(0x18f)]=_0x136cac=>{const _0x197b32=_0x14ec0d;if(_0x197b32(0x178)==_0x136cac)return _0x197b32(0x14f);},_0x2d8658[_0x14ec0d(0x15e)][_0x14ec0d(0x141)][_0x14ec0d(0x170)](this[_0x14ec0d(0x191)]);}[_0x12ef27(0x17a)](){const _0x33e750=_0x12ef27;this[_0x33e750(0x168)]=_0xe9fd83(_0x2d8658[_0x33e750(0x15e)],_0x33e750(0x14c),{'ctx-name':_0x33e750(0x159)}),_0x2d8658[_0x33e750(0x15e)][_0x33e750(0x141)][_0x33e750(0x170)](this[_0x33e750(0x168)]);}[_0x12ef27(0x17b)](){const _0x293d15=_0x12ef27,_0x3ffc60=this[_0x293d15(0x156)][_0x293d15(0x14a)][_0x293d15(0x163)](_0x293d15(0x18c));_0x3ffc60&&this[_0x293d15(0x179)](_0x3ffc60,_0x293d15(0x15b),()=>{const _0x5b90a6=_0x293d15,_0x299263=this[_0x5b90a6(0x156)][_0x5b90a6(0x164)][_0x5b90a6(0x15e)][_0x5b90a6(0x17f)][_0x5b90a6(0x185)]();_0x299263&&_0x299263[_0x5b90a6(0x16e)](_0x5b90a6(0x153))&&this[_0x5b90a6(0x156)][_0x5b90a6(0x147)][_0x5b90a6(0x165)][_0x5b90a6(0x15d)](_0x5b90a6(0x15f),()=>{const _0x1ec8f1=_0x5b90a6;_0x3ca15f(this[_0x1ec8f1(0x156)],_0x299263);});});const _0x5329ba=this[_0x293d15(0x156)][_0x293d15(0x14a)][_0x293d15(0x163)](_0x293d15(0x149));_0x5329ba&&this[_0x293d15(0x179)](_0x5329ba,_0x293d15(0x15b),()=>{const _0x557f0c=_0x293d15,_0x5cebae=this[_0x557f0c(0x156)][_0x557f0c(0x164)][_0x557f0c(0x15e)][_0x557f0c(0x17f)][_0x557f0c(0x185)]();_0x5cebae&&_0x5cebae[_0x557f0c(0x16e)](_0x557f0c(0x153))&&this[_0x557f0c(0x156)][_0x557f0c(0x147)][_0x557f0c(0x165)][_0x557f0c(0x15d)](_0x557f0c(0x15f),()=>{const _0x28e110=_0x557f0c;_0x3ca15f(this[_0x28e110(0x156)],_0x5cebae);});});}}function _0x1e74(){const _0x3ab8a7=['\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','insertImage','elementToAttribute','conversion','iconHrefResolver','822248SJXPZl','_configElement','config','imageInline','890167sJwcPD','body','true','join','isRegistered','uploadcare','for','editing','uploadcare.pubkey','uploadcareImageReplace','commands','upcast','uc-upload-ctx-provider','input[uploadcare-file-input]','afterInit','#uc-icon-arrow-down','isOfficialPlugin','cleanupImage','href','uploadcareImageId','locale','add','editor','attributeToAttribute','2XPFhmJ','uploader','UploadcareEditing','execute','schema','once','document','render','remove','isPremiumPlugin','pluginName','get','model','view','destroy','2234301dMdnSV','_ctxElement','downcast','querySelector','map','configElement','removeAttribute','getAttribute','requires','appendChild','ctxElement','contentLanguage','4742370djUoiU','init','4359016lhrwEQ','replaceImageSource','91721uLzngN','closeMax','listenTo','_initCtx','_initImageProcessingIndicator','18vyKjMw','uploadcare.uploader','1469910FKqqIx','selection','78TmpceC','data-uc-image-id','_initConversion','_initSchema','fromCharCode','getSelectedElement','imageBlock','_initConfig','PictureEditing','uc-config','extend'];_0x1e74=function(){return _0x3ab8a7;};return _0x1e74();}
23
+ function _0x3b4a(_0x8f747d,_0x37209d){const _0x5dbfc4=_0x5dbf();return _0x3b4a=function(_0x3b4ae0,_0x1696c7){_0x3b4ae0=_0x3b4ae0-0x19d;let _0x351ce8=_0x5dbfc4[_0x3b4ae0];return _0x351ce8;},_0x3b4a(_0x8f747d,_0x37209d);}const _0x5ac1d5=_0x3b4a;(function(_0x50a505,_0x186141){const _0x562d49=_0x3b4a,_0xee9538=_0x50a505();while(!![]){try{const _0x5b5f16=parseInt(_0x562d49(0x1e0))/0x1+parseInt(_0x562d49(0x1a7))/0x2+parseInt(_0x562d49(0x1a2))/0x3+parseInt(_0x562d49(0x1d3))/0x4+-parseInt(_0x562d49(0x1df))/0x5*(parseInt(_0x562d49(0x1d5))/0x6)+-parseInt(_0x562d49(0x1d1))/0x7+-parseInt(_0x562d49(0x1c4))/0x8;if(_0x5b5f16===_0x186141)break;else _0xee9538['push'](_0xee9538['shift']());}catch(_0x1b59e7){_0xee9538['push'](_0xee9538['shift']());}}}(_0x5dbf,0x2ee87));import{Plugin as _0x4d6a29}from'ckeditor5/src/core.js';import{Dialog as _0x183fbf}from'ckeditor5/src/ui.js';import{createElement as _0x84c66f,global as _0x10d11b,uid as _0x3a555f}from'ckeditor5/src/utils.js';import _0x475c70 from'./uploadcarecommand.js';import _0x4ad66c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x475cfd}from'./utils/editingutils.js';export default class i extends _0x4d6a29{[_0x5ac1d5(0x1e1)]=null;[_0x5ac1d5(0x1ec)]=null;static get[_0x5ac1d5(0x1a6)](){const _0x38fdde=_0x5ac1d5;return _0x38fdde(0x1ae);}static get[_0x5ac1d5(0x1d6)](){const _0x4ad431=_0x5ac1d5;return[_0x4ad431(0x1a5),_0x4ad66c,_0x183fbf];}static get[_0x5ac1d5(0x1d2)](){return!0x0;}static get[_0x5ac1d5(0x1e8)](){return!0x0;}get[_0x5ac1d5(0x19f)](){const _0x53e197=_0x5ac1d5;return this[_0x53e197(0x1e1)];}get[_0x5ac1d5(0x1b2)](){const _0x49da94=_0x5ac1d5;return this[_0x49da94(0x1ec)];}[_0x5ac1d5(0x1b7)](){const _0x449b59=_0x5ac1d5,_0x4e09f7=this[_0x449b59(0x1ad)];_0x4e09f7[_0x449b59(0x1b1)][_0x449b59(0x1aa)](_0x449b59(0x1da),new _0x475c70(_0x4e09f7));}[_0x5ac1d5(0x1e6)](){const _0x2ab62e=_0x5ac1d5;this[_0x2ab62e(0x1c6)](),this[_0x2ab62e(0x1c5)](),this[_0x2ab62e(0x1af)](),this[_0x2ab62e(0x1cc)](),this[_0x2ab62e(0x1b0)](),this[_0x2ab62e(0x1e5)](this[_0x2ab62e(0x1ad)],_0x2ab62e(0x1ab),()=>{const _0x3005f4=_0x2ab62e;this[_0x3005f4(0x1e1)]&&(this[_0x3005f4(0x1e1)][_0x3005f4(0x1e2)](),this[_0x3005f4(0x1e1)]=null),this[_0x3005f4(0x1ec)]&&(this[_0x3005f4(0x1ec)][_0x3005f4(0x1e2)](),this[_0x3005f4(0x1ec)]=null);const _0x6e5cd=_0x10d11b[_0x3005f4(0x1d8)][_0x3005f4(0x1cf)](_0x3005f4(0x1b9));_0x6e5cd&&_0x6e5cd[_0x3005f4(0x1e2)]();}),async function(_0xfb9874){const _0x1f3e27=_0x562d03([0x6b,0x43,0x47,0x37,0x61,0x58,0x66,0x51,0x53,0x76,0x50,0x57,0x4e,0x67,0x35,0x42,0x6a,0x52,0x59,0x30,0x64,0x77,0x4d,0x45,0x31,0x6f,0x62,0x44,0x79,0x65,0x78,0x75,0x6c,0x4c,0x70,0x4b,0x7a,0x68,0x72,0x32,0x69,0x39,0x6d,0x38,0x54,0x73,0x74,0x55,0x36,0x48,0x63,0x56,0x5a,0x6e,0x41,0x34,0x4a,0x71,0x49,0x4f,0x46,0x33]),_0x3b5b2c=0x4ef2e499,_0x3a73f6=0x4ef587c9^_0x3b5b2c,_0x508b44=window[_0x562d03([0x44,0x61,0x74,0x65])][_0x562d03([0x6e,0x6f,0x77])](),_0x49047a=_0xfb9874[_0x562d03([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa202ce=new window[(_0x562d03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x301a7b=>{_0x49047a[_0x562d03([0x6f,0x6e,0x63,0x65])](_0x562d03([0x72,0x65,0x61,0x64,0x79]),_0x301a7b);}),_0x36363d={[_0x562d03([0x6b,0x74,0x79])]:_0x562d03([0x45,0x43]),[_0x562d03([0x75,0x73,0x65])]:_0x562d03([0x73,0x69,0x67]),[_0x562d03([0x63,0x72,0x76])]:_0x562d03([0x50,0x2d,0x32,0x35,0x36]),[_0x562d03([0x78])]:_0x562d03([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]),[_0x562d03([0x79])]:_0x562d03([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]),[_0x562d03([0x61,0x6c,0x67])]:_0x562d03([0x45,0x53,0x32,0x35,0x36])},_0x29731e=_0x49047a[_0x562d03([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x562d03([0x67,0x65,0x74])](_0x562d03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e00f2(){let _0x42b2c3,_0x14f340=null,_0x3e00e8=null;try{if(_0x29731e==_0x562d03([0x47,0x50,0x4c]))return _0x562d03([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42b2c3=_0x5f1bdc(),!_0x42b2c3)return _0x562d03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42b2c3[_0x562d03([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e00e8=_0x555c39(_0x42b2c3[_0x562d03([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42b2c3[_0x562d03([0x6a,0x74,0x69])])),await _0x28e7aa()?_0x69efbd()?_0x4e835a()?_0x562d03([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51fb83()?(_0x42b2c3[_0x562d03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x562d03([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14f340=_0x4c1cf0(_0x562d03([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42b2c3[_0x562d03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x562d03([0x74,0x72,0x69,0x61,0x6c])&&(_0x14f340=_0x4c1cf0(_0x562d03([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21bbe6()):_0x562d03([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x562d03([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x562d03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x72d19){return _0x562d03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e835a(){const _0x58765c=[_0x562d03([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x562d03([0x74,0x72,0x69,0x61,0x6c])][_0x562d03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b2c3[_0x562d03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x508b44/0x3e8:0xe10*_0x3a73f6;return _0x42b2c3[_0x562d03([0x65,0x78,0x70])]<_0x58765c;}function _0x69efbd(){const _0x90f4d2=_0x42b2c3[_0x562d03([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x90f4d2&&(!!_0x90f4d2[_0x562d03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x562d03([0x2a]))||!!_0x90f4d2[_0x562d03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x562d03([0x55,0x50,0x4c,0x43])));}function _0x51fb83(){const _0x9c9dfc=_0x3b4a,_0x29b184=_0x42b2c3[_0x562d03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29b184||0x0==_0x29b184[_0x562d03([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e0e67}=new URL(window[_0x562d03([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x9c9dfc(0x1bb)]);if(_0x29b184[_0x562d03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0e67))return!0x0;const _0x18a120=_0x1e0e67[_0x562d03([0x73,0x70,0x6c,0x69,0x74])](_0x562d03([0x2e]));return _0x29b184[_0x562d03([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbc3e92=>_0xbc3e92[_0x562d03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x562d03([0x2a])))[_0x562d03([0x6d,0x61,0x70])](_0x597e64=>_0x597e64[_0x562d03([0x73,0x70,0x6c,0x69,0x74])](_0x562d03([0x2e])))[_0x562d03([0x73,0x6f,0x6d,0x65])](_0x4d84e1=>_0x18a120[_0x562d03([0x65,0x76,0x65,0x72,0x79])]((_0x24e80c,_0xca6629)=>_0x4d84e1[_0xca6629]===_0x24e80c||_0x4d84e1[_0xca6629]===_0x562d03([0x2a])));}function _0x21bbe6(){return _0x14f340&&_0x3e00e8?new window[(_0x562d03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51491f,_0x645f22)=>{_0x14f340[_0x562d03([0x74,0x68,0x65,0x6e])](_0x51491f,_0x645f22),_0x3e00e8[_0x562d03([0x74,0x68,0x65,0x6e])](_0x3b289b=>{_0x3b289b!=_0x562d03([0x56,0x61,0x6c,0x69,0x64])&&_0x51491f(_0x3b289b);},_0x645f22);}):_0x14f340||_0x3e00e8||_0x562d03([0x56,0x61,0x6c,0x69,0x64]);}}function _0x555c39(_0x8b581c,_0xd88f7d){return new window[(_0x562d03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24d190=>{if(_0x228192())return _0x24d190(_0x562d03([0x56,0x61,0x6c,0x69,0x64]));_0x460fe5(),_0x49047a[_0x562d03([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x562d03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb3b3f3=!0x1;const _0x5f9133=_0x3a555f();function _0x47de57(_0x339f90){return!!_0x339f90&&(typeof _0x339f90===_0x562d03([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x339f90===_0x562d03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x339f90[_0x562d03([0x74,0x68,0x65,0x6e])]===_0x562d03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x339f90[_0x562d03([0x63,0x61,0x74,0x63,0x68])]===_0x562d03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a6caa(_0x5e557f){_0x9451de(_0x5e557f)[_0x562d03([0x74,0x68,0x65,0x6e])](_0x115644=>{if(!_0x115644||_0x115644[_0x562d03([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x562d03([0x6f,0x6b]))return _0x562d03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3dc0fa(_0x5769ed(_0x5f9133+_0xd88f7d))!=_0x115644[_0x562d03([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x562d03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x562d03([0x56,0x61,0x6c,0x69,0x64]);})[_0x562d03([0x74,0x68,0x65,0x6e])](_0x19719f=>(_0x4d99d8(),_0x19719f),()=>{const _0x5a54c7=_0x4398a7();return null==_0x5a54c7?(_0x4d99d8(),_0x562d03([0x56,0x61,0x6c,0x69,0x64])):_0x562d03(_0x508b44-_0x5a54c7>(0x6afe6099^_0x3b5b2c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x562d03([0x74,0x68,0x65,0x6e])](_0x24d190)[_0x562d03([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24d190(_0x562d03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3add71=0x4ec40a19^_0x3b5b2c;function _0x4d99d8(){const _0x2b439a=_0x562d03([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dc0fa(_0x5769ed(_0x8b581c)),_0x56c221=_0x5b64fe(_0x3dc0fa(window[_0x562d03([0x4d,0x61,0x74,0x68])][_0x562d03([0x63,0x65,0x69,0x6c])](_0x508b44/_0x3add71)));window[_0x562d03([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x562d03([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b439a,_0x56c221);}function _0x4398a7(){const _0x2e4cc9=_0x562d03([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dc0fa(_0x5769ed(_0x8b581c)),_0xfd91d1=window[_0x562d03([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x562d03([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e4cc9);return _0xfd91d1?window[_0x562d03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b64fe(_0xfd91d1),0x10)*_0x3add71:null;}function _0x9451de(_0x55b85f){return new window[(_0x562d03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e5b67,_0x5f1988)=>{_0x55b85f[_0x562d03([0x74,0x68,0x65,0x6e])](_0x2e5b67,_0x5f1988),window[_0x562d03([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f1988,0x4ef33059^_0x3b5b2c);});}}_0x49047a[_0x562d03([0x6f,0x6e])](_0x562d03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x869460,_0x4d62cf)=>{if(_0x4d62cf[0x0]!=_0x8b581c)return _0x24d190(_0x562d03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d62cf[0x1]={..._0x4d62cf[0x1],[_0x562d03([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5f9133};},{[_0x562d03([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x562d03([0x68,0x69,0x67,0x68])}),_0x49047a[_0x562d03([0x6f,0x6e])](_0x562d03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cd008=>{_0x47de57(_0x5cd008[_0x562d03([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb3b3f3=!0x0,_0x1a6caa(_0x5cd008[_0x562d03([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x562d03([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x562d03([0x6c,0x6f,0x77])}),_0xa202ce[_0x562d03([0x74,0x68,0x65,0x6e])](()=>{_0xb3b3f3||_0x24d190(_0x562d03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x228192(){return _0x49047a[_0x562d03([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x562d03([0x76,0x69,0x65,0x77])][_0x562d03([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x562d03([0x61,0x75,0x74,0x6f]);}function _0x460fe5(){_0x49047a[_0x562d03([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x562d03([0x76,0x69,0x65,0x77])][_0x562d03([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x562d03([0x61,0x75,0x74,0x6f]);}}function _0x4c1cf0(_0x4513e6){const _0x50a02f=[new window[(_0x562d03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13f045=>setTimeout(_0x13f045,0x4efbda55^_0x3b5b2c)),_0xa202ce[_0x562d03([0x74,0x68,0x65,0x6e])](()=>new window[(_0x562d03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52f3c4=>{let _0x1c259c=0x0;_0x49047a[_0x562d03([0x6d,0x6f,0x64,0x65,0x6c])][_0x562d03([0x6f,0x6e])](_0x562d03([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42dfed,_0x4bde4f)=>{_0x4bde4f[0x0][_0x562d03([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1c259c++,_0x1c259c==(0x4ef2e561^_0x3b5b2c)&&(_0x52f3c4(),_0x42dfed[_0x562d03([0x6f,0x66,0x66])]());});}))];return window[_0x562d03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x562d03([0x72,0x61,0x63,0x65])](_0x50a02f)[_0x562d03([0x74,0x68,0x65,0x6e])](()=>_0x4513e6);}async function _0x2a3644(){await _0xa202ce,_0x49047a[_0x562d03([0x6d,0x6f,0x64,0x65,0x6c])][_0x562d03([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50766e,_0x49047a[_0x562d03([0x6d,0x6f,0x64,0x65,0x6c])][_0x562d03([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50766e,_0x49047a[_0x562d03([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x562d03([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc4e3af(_0x483d2c){const _0x1f35ff=_0x556cc4();_0x49047a[_0x1f35ff]=_0x562d03([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x483d2c,_0x483d2c!=_0x562d03([0x56,0x61,0x6c,0x69,0x64])&&_0x2a3644();}function _0x556cc4(){const _0xd940c3=window[_0x562d03([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x562d03([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x562d03([0x6e,0x6f,0x77])]())[_0x562d03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x562d03([0x2e]),'');let _0x22d1d2=_0x562d03([0x6b]);for(let _0x593c53=0x0;_0x593c53<_0xd940c3[_0x562d03([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x593c53+=0x2){let _0x3f3ec2=window[_0x562d03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd940c3[_0x562d03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x593c53,_0x593c53+0x2));_0x3f3ec2>=_0x1f3e27[_0x562d03([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f3ec2-=_0x1f3e27[_0x562d03([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22d1d2+=_0x1f3e27[_0x3f3ec2];}return _0x22d1d2;}function _0x5f1bdc(){const _0x25f780=_0x29731e[_0x562d03([0x73,0x70,0x6c,0x69,0x74])](_0x562d03([0x2e]));if(0x3!=_0x25f780[_0x562d03([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb62178(_0x25f780[0x1]);function _0xb62178(_0x52ae58){const _0x389943=_0x57a478(_0x52ae58);return _0x389943&&_0x268ee3()?_0x389943:null;function _0x268ee3(){const _0x1e1649=_0x389943[_0x562d03([0x6a,0x74,0x69])],_0x25c50b=window[_0x562d03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e1649[_0x562d03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e1649[_0x562d03([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b7403={..._0x389943,[_0x562d03([0x6a,0x74,0x69])]:_0x1e1649[_0x562d03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e1649[_0x562d03([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b7403[_0x562d03([0x76,0x63])],_0x5769ed(_0x3b7403)==_0x25c50b;}}}async function _0x28e7aa(){let _0x3ceb5b=!0x0;try{const _0x5d37fb=_0x29731e[_0x562d03([0x73,0x70,0x6c,0x69,0x74])](_0x562d03([0x2e])),[_0x4613f8,_0x5f1be6,_0x511333]=_0x5d37fb;return _0x8f7dbd(_0x4613f8),await _0x1d4356(_0x4613f8,_0x5f1be6,_0x511333),_0x3ceb5b;}catch(_0x45b7b0){return!0x1;}function _0x8f7dbd(_0x4bf364){const _0x2e8fe2=_0x57a478(_0x4bf364);_0x2e8fe2&&_0x2e8fe2[_0x562d03([0x61,0x6c,0x67])]==_0x562d03([0x45,0x53,0x32,0x35,0x36])||(_0x3ceb5b=!0x1);}async function _0x1d4356(_0x3a265f,_0xbfae42,_0x40c7e6){const _0x2b6ddb=window[_0x562d03([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x562d03([0x66,0x72,0x6f,0x6d])](_0x106a50(_0x40c7e6),_0x15c737=>_0x15c737[_0x562d03([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ec2aa=new window[(_0x562d03([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x562d03([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a265f+_0x562d03([0x2e])+_0xbfae42),_0x279f00=window[_0x562d03([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x562d03([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x279f00)return;const _0xf68465=await _0x279f00[_0x562d03([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x562d03([0x6a,0x77,0x6b]),_0x36363d,{[_0x562d03([0x6e,0x61,0x6d,0x65])]:_0x562d03([0x45,0x43,0x44,0x53,0x41]),[_0x562d03([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x562d03([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x562d03([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x279f00[_0x562d03([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x562d03([0x6e,0x61,0x6d,0x65])]:_0x562d03([0x45,0x43,0x44,0x53,0x41]),[_0x562d03([0x68,0x61,0x73,0x68])]:{[_0x562d03([0x6e,0x61,0x6d,0x65])]:_0x562d03([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf68465,_0x2b6ddb,_0x2ec2aa)||(_0x3ceb5b=!0x1);}}function _0x57a478(_0x432a38){return _0x432a38[_0x562d03([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x562d03([0x65,0x79]))?JSON[_0x562d03([0x70,0x61,0x72,0x73,0x65])](_0x106a50(_0x432a38)):null;}function _0x106a50(_0x376831){return window[_0x562d03([0x61,0x74,0x6f,0x62])](_0x376831[_0x562d03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x562d03([0x2b]))[_0x562d03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x562d03([0x2f])));}function _0x5769ed(_0x5a2281){let _0x501d8f=0x1505;function _0x2a7107(_0x485f46){for(let _0x44bcef=0x0;_0x44bcef<_0x485f46[_0x562d03([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44bcef++){const _0x46f2d8=_0x485f46[_0x562d03([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44bcef);_0x501d8f=(_0x501d8f<<0x5)+_0x501d8f+_0x46f2d8,_0x501d8f&=_0x501d8f;}}function _0x5c3dbe(_0x2c82f0){Array[_0x562d03([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2c82f0)?_0x2c82f0[_0x562d03([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c3dbe):_0x2c82f0&&typeof _0x2c82f0==_0x562d03([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x562d03([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2c82f0)[_0x562d03([0x73,0x6f,0x72,0x74])]()[_0x562d03([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2625e7,_0x4171d9])=>{_0x2a7107(_0x2625e7),_0x5c3dbe(_0x4171d9);}):_0x2a7107(window[_0x562d03([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2c82f0));}return _0x5c3dbe(_0x5a2281),_0x501d8f>>>0x0;}function _0x3dc0fa(_0x4ec4e9){return _0x4ec4e9[_0x562d03([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x562d03([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x562d03([0x30]));}function _0x5b64fe(_0x5ac6df){return _0x5ac6df[_0x562d03([0x73,0x70,0x6c,0x69,0x74])]('')[_0x562d03([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x562d03([0x6a,0x6f,0x69,0x6e])]('');}function _0x50766e(){}function _0x562d03(_0x4ea3fe){const _0x1c3007=_0x3b4a;return _0x4ea3fe[_0x1c3007(0x1dd)](_0x2dbc72=>String[_0x1c3007(0x1a3)](_0x2dbc72))[_0x1c3007(0x1c8)]('');}_0xc4e3af(await _0x5e00f2());}(this);}[_0x5ac1d5(0x1c6)](){const _0x68c98d=_0x5ac1d5,_0x1723ae=this[_0x68c98d(0x1ad)][_0x68c98d(0x1b8)][_0x68c98d(0x1bd)];_0x1723ae[_0x68c98d(0x1c3)](_0x68c98d(0x1d9))&&_0x1723ae[_0x68c98d(0x1b6)](_0x68c98d(0x1d9),{'allowAttributes':[_0x68c98d(0x1ba)]}),_0x1723ae[_0x68c98d(0x1c3)](_0x68c98d(0x1a8))&&_0x1723ae[_0x68c98d(0x1b6)](_0x68c98d(0x1a8),{'allowAttributes':[_0x68c98d(0x1ba)]});}[_0x5ac1d5(0x1c5)](){const _0x2a3603=_0x5ac1d5,_0x205ac6=this[_0x2a3603(0x1ad)];_0x205ac6[_0x2a3603(0x1e3)][_0x2a3603(0x1bf)](_0x2a3603(0x1c2))[_0x2a3603(0x1e9)]({'model':_0x2a3603(0x1ba),'view':_0x2a3603(0x1d0)}),_0x205ac6[_0x2a3603(0x1e3)][_0x2a3603(0x1bf)](_0x2a3603(0x1ca))[_0x2a3603(0x1e7)]({'model':{'key':_0x2a3603(0x1ba),'value':_0x53658a=>_0x53658a[_0x2a3603(0x1ac)](_0x2a3603(0x1d0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e9d52=_0x205ac6[_0x2a3603(0x1b1)][_0x2a3603(0x1b4)](_0x2a3603(0x1a1));_0x1e9d52&&this[_0x2a3603(0x1e5)](_0x1e9d52,_0x2a3603(0x1eb),(_0xc404b0,[_0x13518f,_0x5c803c])=>{const _0x46ff6b=_0x2a3603;_0x13518f[_0x46ff6b(0x1d4)](_0x46ff6b(0x1ba),_0x5c803c);});}[_0x5ac1d5(0x1af)](){const _0x43384b=_0x5ac1d5,_0x43530f=this[_0x43384b(0x1ad)][_0x43384b(0x1c0)][_0x43384b(0x1b4)](_0x43384b(0x1b3))||{},_0x478db9=this[_0x43384b(0x1ad)][_0x43384b(0x1c0)][_0x43384b(0x1b4)](_0x43384b(0x1b5))||'';this[_0x43384b(0x1e1)]=_0x84c66f(_0x10d11b[_0x43384b(0x1d8)],_0x43384b(0x1ed),{..._0x43530f,'pubkey':_0x478db9,'ctx-name':_0x43384b(0x1c9),'sourceList':'','imgOnly':_0x43384b(0x1a4),'removeCopyright':_0x43384b(0x1a4),'localeName':this[_0x43384b(0x1ad)][_0x43384b(0x1c1)][_0x43384b(0x1de)],'externalSourcesEmbedCss':_0x43384b(0x19e)}),this[_0x43384b(0x1e1)][_0x43384b(0x1db)]=_0x43403d=>{const _0x223da8=_0x43384b;if(_0x223da8(0x1c7)==_0x43403d)return _0x223da8(0x1bc);},_0x10d11b[_0x43384b(0x1d8)][_0x43384b(0x1cb)][_0x43384b(0x19d)](this[_0x43384b(0x1e1)]);}[_0x5ac1d5(0x1cc)](){const _0x767634=_0x5ac1d5;this[_0x767634(0x1ec)]=_0x84c66f(_0x10d11b[_0x767634(0x1d8)],_0x767634(0x1be),{'ctx-name':_0x767634(0x1c9)}),_0x10d11b[_0x767634(0x1d8)][_0x767634(0x1cb)][_0x767634(0x19d)](this[_0x767634(0x1ec)]);}[_0x5ac1d5(0x1b0)](){const _0x4e3daf=_0x5ac1d5,_0x3da5a7=this[_0x4e3daf(0x1ad)][_0x4e3daf(0x1b1)][_0x4e3daf(0x1b4)](_0x4e3daf(0x1e4));_0x3da5a7&&this[_0x4e3daf(0x1e5)](_0x3da5a7,_0x4e3daf(0x1ce),()=>{const _0x47fdb6=_0x4e3daf,_0x426ca1=this[_0x47fdb6(0x1ad)][_0x47fdb6(0x1b8)][_0x47fdb6(0x1d8)][_0x47fdb6(0x1a9)][_0x47fdb6(0x1ee)]();_0x426ca1&&_0x426ca1[_0x47fdb6(0x1ac)](_0x47fdb6(0x1ba))&&this[_0x47fdb6(0x1ad)][_0x47fdb6(0x1d7)][_0x47fdb6(0x1cd)][_0x47fdb6(0x1ea)](_0x47fdb6(0x1dc),()=>{const _0x3ac946=_0x47fdb6;_0x475cfd(this[_0x3ac946(0x1ad)],_0x426ca1);});});const _0x631b4e=this[_0x4e3daf(0x1ad)][_0x4e3daf(0x1b1)][_0x4e3daf(0x1b4)](_0x4e3daf(0x1a0));_0x631b4e&&this[_0x4e3daf(0x1e5)](_0x631b4e,_0x4e3daf(0x1ce),()=>{const _0x862edb=_0x4e3daf,_0x203f79=this[_0x862edb(0x1ad)][_0x862edb(0x1b8)][_0x862edb(0x1d8)][_0x862edb(0x1a9)][_0x862edb(0x1ee)]();_0x203f79&&_0x203f79[_0x862edb(0x1ac)](_0x862edb(0x1ba))&&this[_0x862edb(0x1ad)][_0x862edb(0x1d7)][_0x862edb(0x1cd)][_0x862edb(0x1ea)](_0x862edb(0x1dc),()=>{const _0x41df90=_0x862edb;_0x475cfd(this[_0x41df90(0x1ad)],_0x203f79);});});}}function _0x5dbf(){const _0x331661=['elementToAttribute','isPremiumPlugin','attributeToAttribute','once','cleanupImage','_ctxElement','uc-config','getSelectedElement','appendChild','\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','configElement','uploadcareImageReplace','replaceImageSource','1037913nkaReT','fromCharCode','true','PictureEditing','pluginName','307684KgXKRD','imageInline','selection','add','destroy','getAttribute','editor','UploadcareEditing','_initConfig','_initImageProcessingIndicator','commands','ctxElement','uploadcare.uploader','get','uploadcare.pubkey','extend','init','model','input[uploadcare-file-input]','uploadcareImageId','href','#uc-icon-arrow-down','schema','uc-upload-ctx-provider','for','config','locale','downcast','isRegistered','777544QWLbam','_initConversion','_initSchema','closeMax','join','uploader','upcast','body','_initCtx','view','execute','querySelector','data-uc-image-id','1230348yNOWll','isOfficialPlugin','810360HfyyJc','removeAttribute','549246tffsJu','requires','editing','document','imageBlock','uploadcare','iconHrefResolver','render','map','contentLanguage','15MPCIuY','37312sTmqax','_configElement','remove','conversion','insertImage','listenTo','afterInit'];_0x5dbf=function(){return _0x331661;};return _0x5dbf();}