@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.4 → 45.1.0-alpha.5

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 _0x2252f4,Command as _0x53cd57}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x50aee0,IconGooglePhotos as _0x3bc49f,IconGoogleDrive as _0x1f6628,IconFacebook as _0x9866d3,IconDropbox as _0x45d2de,IconUploadcareLink as _0xfa8d69,IconUploadcareImageUpload as _0x103d4e,IconError as et,IconUploadcareImageEdit as _0x477390}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x14edb9,MenuBarMenuListItemButtonView as _0x1a880f,View as _0x2607b8,FocusCycler as _0x534244,Dialog as _0x4da01e,DialogViewPosition as _0x167e77,SpinnerView as _0x4de68d,IconView as at,Notification as _0x498d67}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4c5ff2,DomEmitterMixin as _0xdc0548,global as _0x4d3312,getAncestors as _0x39ff1a,ObservableMixin as _0x4bb07a,createElement as _0x50d96f,uid as _0x18dbf8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x344cd3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1545d5,info as _0x3246e6}from'@uploadcare/upload-client';import*as _0x6af673 from'@uploadcare/file-uploader';var o=function(_0x5cf7de){return _0x5cf7de['Local']='local',_0x5cf7de['URL']='url',_0x5cf7de['Dropbox']='dropbox',_0x5cf7de['GDrive']='gdrive',_0x5cf7de['Facebook']='facebook',_0x5cf7de['GPhotos']='gphotos',_0x5cf7de['OneDrive']='onedrive',_0x5cf7de;}({});function _(_0x4c96ec,_0x22ab0d,_0x48c75d){const t=_0x4c96ec['t'],_0x94f1a3=_0x4c96ec['t'];switch(_0x22ab0d){case o['Local']:return{'text':_0x94f1a3('Insert'===_0x48c75d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x94f1a3('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x48c75d?_0x94f1a3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x94f1a3('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x48c75d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x22ab0d;}}class e extends _0x2252f4{['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 _0x51b606=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e4b11;for(const _0x21c317 in _0x51b606){const _0x2ef38d=_0x21c317,_0x36bdb2=_0x51b606[_0x2ef38d];if('uploadcareLicenseKeyValid'==_0x36bdb2||'uploadcareLicenseKeyInvalid'==_0x36bdb2||'uploadcareLicenseKeyExpired'==_0x36bdb2||'uploadcareLicenseKeyDomainLimit'==_0x36bdb2||'uploadcareLicenseKeyNotAllowed'==_0x36bdb2||'uploadcareLicenseKeyEvaluationLimit'==_0x36bdb2||'uploadcareLicenseKeyTrialLimit'==_0x36bdb2||'uploadcareLicenseKeyUsageLimit'==_0x36bdb2){delete _0x51b606[_0x2ef38d],_0x3e4b11=_0x36bdb2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3e4b11&&_0x51b606['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3e4b11&&_0x51b606['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3e4b11&&_0x51b606['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3e4b11&&_0x51b606['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x143d2c}=this,_0x3771c2=_0x143d2c['commands']['get']('uploadcare');if(!_0x3771c2)return;const _0x28067f=this['_normalizeConfigSourceList'](_0x143d2c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5cc018,_0xba523)=>{const _0xd2adc3=this['_getIntegrationKey'](_0xba523['type']);return _0x5cc018[_0xd2adc3]||(_0x5cc018[_0xd2adc3]=[]),_0x5cc018[_0xd2adc3]['push'](_0xba523),_0x5cc018;},{});_0x143d2c['plugins']['has']('ImageInsertUI')&&_0x143d2c['commands']['get']('uploadcare')&&Object['entries'](_0x28067f)['forEach'](([_0x2fcec5,_0x133a18])=>{_0x143d2c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2fcec5,'observable':()=>_0x3771c2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x133a18),'formViewCreator':()=>this['_createDropdownButtons'](_0x133a18),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x133a18),'override':'assetManager'!==_0x2fcec5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x28ec5e){const {locale:_0x3b3adb}=this['editor'];return _0x28ec5e['map'](_0x5a95fc=>{const _0x23987a=_(_0x3b3adb,_0x5a95fc,'Insert');switch(_0x5a95fc){case o['Local']:return{'icon':_0x103d4e,'type':o['Local'],..._0x23987a};case o['URL']:return{'icon':_0xfa8d69,'type':o['URL'],..._0x23987a};case o['Dropbox']:return{'icon':_0x45d2de,'type':o['Dropbox'],..._0x23987a};case o['Facebook']:return{'icon':_0x9866d3,'type':o['Facebook'],..._0x23987a};case o['GDrive']:return{'icon':_0x1f6628,'type':o['GDrive'],..._0x23987a};case o['GPhotos']:return{'icon':_0x3bc49f,'type':o['GPhotos'],..._0x23987a};case o['OneDrive']:return{'icon':_0x50aee0,'type':o['OneDrive'],..._0x23987a};}});}['_getIntegrationKey'](_0x29051c){switch(_0x29051c){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x45f277,_0x376eb2){const _0x1b737c=this['editor'],_0x5094a2=new _0x45f277(_0x1b737c['locale']),_0x1739ed=_0x1b737c['commands']['get']('uploadcare');return _0x5094a2['bind']('isEnabled')['to'](_0x1739ed),_0x5094a2['on']('execute',()=>{_0x1739ed['execute'](_0x376eb2);}),_0x5094a2;}['_createToolbarButton'](_0x27eaea){const {locale:_0x5c9a99}=this['editor'],_0x3cdf72=this['editor']['plugins']['get']('ImageInsertUI'),_0x5be92b=_0x27eaea[0x0],_0x21871a=this['_createButton'](_0x14edb9,_0x5be92b['type']);return _0x21871a['icon']=_0x5be92b['icon'],_0x21871a['bind']('label')['to'](_0x3cdf72,'isImageSelected',_0x343721=>_(_0x5c9a99,_0x5be92b['type'],_0x343721?'Replace':'Insert')['text']),_0x21871a['tooltip']=!0x0,_0x21871a;}['_createDropdownButtons'](_0x1058e8){const {locale:_0x32253f}=this['editor'],_0x1d3e50=this['editor']['plugins']['get']('ImageInsertUI');return _0x1058e8['map'](_0x1bdc80=>{const _0x30ddc5=this['_createButton'](_0x14edb9,_0x1bdc80['type']);return _0x30ddc5['withText']=!0x0,_0x30ddc5['icon']=_0x1bdc80['icon'],_0x30ddc5['bind']('label')['to'](_0x1d3e50,'isImageSelected',_0x56a1a7=>_(_0x32253f,_0x1bdc80['type'],_0x56a1a7?'Replace':'Insert')['text']),_0x30ddc5;});}['_createMenuBarButtons'](_0xb0fdbc){return _0xb0fdbc['map'](_0xb417fc=>{const _0x5b534b=this['_createButton'](_0x1a880f,_0xb417fc['type']);return _0x5b534b['icon']=_0xb417fc['icon'],_0x5b534b['label']=_0xb417fc['shortText'],_0x5b534b;});}}class q extends _0x2607b8{['focusTracker'];['focusCycler'];constructor(_0x4e2f62){super(_0x4e2f62),this['focusTracker']=new _0x4c5ff2(),this['focusCycler']=new _0x534244({'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(_0x1c912a){super(_0x1c912a),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(_0x64a5cc,_0xab618b){const _0x16990a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x14cbf7=>_0x14cbf7<=_0xab618b)['map'](_0x3b7900=>_0x64a5cc['replace'](/\/$/,'')+'/-/resize/'+_0x3b7900+'x/\x20'+_0x3b7900+'w');return{'imageFallbackUrl':_0x64a5cc,'imageSources':[{'srcset':_0x16990a['join'](',\x20'),'sizes':'(max-width:\x20'+_0xab618b+'px)\x20100vw,\x20'+_0xab618b+'px','type':'image/webp'}]};}function A(_0x35cad4,_0x3a2441,_0x429cc5){const _0x4f47df=_0x35cad4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f47df?parseInt(_0x4f47df[0x1],0xa):_0x3a2441,'height':_0x4f47df?parseInt(_0x4f47df[0x2],0xa):_0x429cc5};}function m(_0xde3142,_0x3e1e18){const _0x6b4321=Object['create'](_0xdc0548),_0xf13f83=_0xde3142['plugins']['get']('ImageUtils'),_0x3690cb=_0xde3142['editing']['mapper']['toViewElement'](_0x3e1e18),_0x251bae=_0xf13f83['findViewImgElement'](_0x3690cb),_0x2a8ca7=_0xde3142['editing']['view']['domConverter']['viewToDom'](_0x251bae),_0x2eec28=_0x3e1e18['getAttribute']('width'),_0x41bd57=_0x3e1e18['getAttribute']('height'),_0xb3af17='image-processing';_0xde3142['editing']['view']['change'](_0xa628d2=>{_0xa628d2['addClass'](_0xb3af17,_0x3690cb),_0xa628d2['setStyle']('aspect-ratio',_0x2eec28+'/'+_0x41bd57,_0x251bae);}),_0x6b4321['listenTo'](_0x2a8ca7,'load',()=>{_0x6b4321['stopListening'](_0x2a8ca7,'load'),_0xde3142['editing']['view']['change'](_0x346ed8=>{_0x346ed8['removeClass'](_0xb3af17,_0x3690cb),_0x346ed8['removeStyle']('aspect-ratio',_0x251bae);});});}function V(_0xc0dac){if(Array['isArray'](_0xc0dac)){const _0x2247f0=_0xc0dac['map'](V);return _0x1b6687=>_0x2247f0['some'](_0x310736=>_0x310736(_0x1b6687));}if('origin'==_0xc0dac){const _0x5702c6=_0x4d3312['window']['location']['origin'];return _0x15c677=>new URL(_0x15c677,_0x4d3312['document']['baseURI'])['origin']==_0x5702c6;}return'function'==typeof _0xc0dac?_0xc0dac:_0xc0dac instanceof RegExp?_0x1b8f2a=>!(!_0x1b8f2a['match'](_0xc0dac)&&!_0x1b8f2a['replace'](/^https?:\/\//,'')['match'](_0xc0dac)):()=>!0x1;}function F(_0x5aa5b7,_0x4b9d75){return _0x39ff1a(_0x5aa5b7['target'])['includes'](_0x4b9d75);}class l extends/* #__PURE__ -- @preserve */
24
- _0x4bb07a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b24a0,_0x4c5f0f,_0x286d61){super(),this['_editor']=_0x4b24a0,this['_editing']=_0x4c5f0f,this['_dialog']=_0x4b24a0['plugins']['get'](_0x4da01e),this['_api']=_0x4c5f0f['ctxElement']['getAPI'](),this['_type']=_0x286d61,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:_0x2a46df,model:_0x18faef}=this['_editor'],_0x4701cc=_0x18faef['document']['selection']['getSelectedElement'](),_0x1dcc33=_0x4701cc&&(_0x4701cc['is']('element','imageBlock')||_0x4701cc['is']('element','imageInline'));this['_formView']=new S(_0x2a46df),this['_dialog']['show']({'id':'uploadCare','icon':_0x103d4e,'title':_(_0x2a46df,this['_type'],_0x1dcc33?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x167e77['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19e538=>!F(_0x19e538,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x22c649}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x36fc2a=>{const _0x335ea9=_0x22c649['length'];for(const _0x13726c of _0x22c649){const _0x5c024d=_0x13726c===_0x22c649[_0x335ea9-0x1],{cdnUrl:_0x251e4f,fileInfo:_0x480258}=_0x13726c;if(!_0x251e4f||!_0x480258)continue;const {width:_0x343faf,height:_0x10d52d}=_0x480258['imageInfo'],_0x3345df=A(_0x251e4f,_0x343faf,_0x10d52d),_0x4e1328=E(_0x251e4f,_0x3345df['width']),_0x580aad={'id':_0x480258['uuid'],'type':'image','attributes':{'imageDimension':_0x3345df,..._0x4e1328}};this['_insertAsset'](_0x580aad,_0x5c024d,_0x36fc2a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x427080=>{'idle'===_0x427080['detail']['status']&&!_0x427080['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1876df,_0x57cf56,_0x3933be){const _0x18459f=this['_editor']['model']['document']['selection'],_0x5b88bf=_0x18459f['getSelectedElement'](),_0x5b687a=!(!_0x5b88bf||!_0x5b88bf['is']('element','imageInline'));_0x3933be['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1876df,_0x5b687a),_0x57cf56||_0x3933be['setSelection'](_0x18459f['getLastPosition']());}['_insertImage'](_0x52240c,_0x17700e){const _0x587da5=this['_editor'],{imageDimension:_0xd1afb5,imageFallbackUrl:_0x1b3f10,imageSources:_0x9f561e}=_0x52240c['attributes'];_0x587da5['execute']('insertImage',{'imageType':_0x17700e?'imageInline':null,'source':{'uploadcareImageId':_0x52240c['id'],'src':_0x1b3f10,'sources':_0x9f561e,..._0xd1afb5}});}}class n extends _0x53cd57{['_editing'];['_controller']=null;static get['requires'](){return[_0x4da01e,i];}constructor(_0x53cee0){super(_0x53cee0),this['_editing']=_0x53cee0['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4ef333){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4ef333);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5f49ca,publicKey:_0x53f0eb,signal:_0xd1dee6,onProgress:_0x31d9f7}){return _0x1545d5(_0x5f49ca,{'publicKey':_0x53f0eb,'store':'auto','signal':_0xd1dee6,'onProgress':_0x31d9f7});}static['getInfo'](_0x103989,_0x312d72){return _0x3246e6(_0x103989,_0x312d72);}}class p extends _0x2252f4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x344cd3,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2751f3=this['editor'];if(!!!_0x2751f3['config']['get']('uploadcare'))return;_0x2751f3['plugins']['get'](_0x344cd3)['createUploadAdapter']=_0x1a790a=>new x(_0x1a790a,_0x2751f3),_0x2751f3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x280b79,{imageElement:_0x484bf8,data:_0x5649f0})=>{_0x2751f3['model']['change'](_0x51d9e2=>{_0x51d9e2['setAttribute']('uploadcareImageId',_0x5649f0['uploadcareImageId'],_0x484bf8);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x42b490,_0x4faef4){this['loader']=_0x42b490,this['editor']=_0x4faef4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x199787=this['editor']['config']['get']('uploadcare.pubkey'),_0x6687fc=await this['loader']['file'];return C['upload']({'file':_0x6687fc,'publicKey':_0x199787,'signal':this['controller']['signal'],'onProgress':_0x53e4e9=>{_0x53e4e9&&_0x53e4e9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x53e4e9['value']);}})['then'](async _0x576b12=>{const {imageFallbackUrl:_0x52ce70,imageSources:_0x8ff460}=E(_0x576b12['cdnUrl'],_0x576b12['imageInfo']['width']);return{'uploadcareImageId':_0x576b12['uuid'],'default':_0x52ce70,'sources':_0x8ff460};})['catch'](()=>{const _0x18b516=t('Cannot\x20upload\x20file:')+('\x20'+_0x6687fc['name']+'.');return Promise['reject'](_0x18b516);});}['abort'](){this['controller']['abort']();}}class i extends _0x2252f4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4da01e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4a9de4=this['editor'];_0x4a9de4['commands']['add']('uploadcare',new n(_0x4a9de4));}['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 _0x50a1e9=_0x4d3312['document']['querySelector']('input[uploadcare-file-input]');_0x50a1e9&&_0x50a1e9['remove']();}),async function(_0x5ab636){const _0x153313=_0x3cbe04([0x35,0x70,0x33,0x34,0x56,0x6c,0x74,0x64,0x5a,0x73,0x63,0x79,0x6f,0x49,0x69,0x61,0x68,0x65,0x32,0x44,0x4e,0x36,0x4a,0x72,0x6a,0x6e,0x66,0x67,0x50,0x4d,0x41,0x46,0x53,0x75,0x76,0x43,0x6b,0x54,0x31,0x42,0x78,0x4f,0x48,0x38,0x4c,0x6d,0x4b,0x51,0x45,0x57,0x58,0x47,0x30,0x52,0x77,0x39,0x37,0x59,0x7a,0x55,0x62,0x71]),_0x2cd523=0x5d94eb28,_0x1b44cf=0x5d938ca0^_0x2cd523,_0xc3b57c=window[_0x3cbe04([0x44,0x61,0x74,0x65])][_0x3cbe04([0x6e,0x6f,0x77])](),_0x5423f6=_0x5ab636[_0x3cbe04([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3553f4=new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee09f=>{_0x5423f6[_0x3cbe04([0x6f,0x6e,0x63,0x65])](_0x3cbe04([0x72,0x65,0x61,0x64,0x79]),_0x2ee09f);}),_0x1b9512={[_0x3cbe04([0x6b,0x74,0x79])]:_0x3cbe04([0x45,0x43]),[_0x3cbe04([0x75,0x73,0x65])]:_0x3cbe04([0x73,0x69,0x67]),[_0x3cbe04([0x63,0x72,0x76])]:_0x3cbe04([0x50,0x2d,0x32,0x35,0x36]),[_0x3cbe04([0x78])]:_0x3cbe04([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]),[_0x3cbe04([0x79])]:_0x3cbe04([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]),[_0x3cbe04([0x61,0x6c,0x67])]:_0x3cbe04([0x45,0x53,0x32,0x35,0x36])},_0x111f18=_0x5423f6[_0x3cbe04([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3cbe04([0x67,0x65,0x74])](_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17f557(){let _0x55cde6,_0x35321a=null,_0x45909f=null;try{if(_0x111f18==_0x3cbe04([0x47,0x50,0x4c]))return _0x3cbe04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55cde6=_0xfc8a17(),!_0x55cde6)return _0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55cde6[_0x3cbe04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45909f=_0xe8ecd5(_0x55cde6[_0x3cbe04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55cde6[_0x3cbe04([0x6a,0x74,0x69])])),await _0x456334()?_0x49fa0a()?_0x46b651()?_0x3cbe04([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34a69a()?(_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cbe04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35321a=_0x1c61da(_0x3cbe04([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cbe04([0x74,0x72,0x69,0x61,0x6c])&&(_0x35321a=_0x1c61da(_0x3cbe04([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ad7cb()):_0x3cbe04([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3cbe04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x13d8a3){return _0x3cbe04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46b651(){const _0x3f36b6=[_0x3cbe04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3cbe04([0x74,0x72,0x69,0x61,0x6c])][_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc3b57c/0x3e8:0xe10*_0x1b44cf;return _0x55cde6[_0x3cbe04([0x65,0x78,0x70])]<_0x3f36b6;}function _0x49fa0a(){const _0x519bf8=_0x55cde6[_0x3cbe04([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x519bf8&&(!!_0x519bf8[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x2a]))||!!_0x519bf8[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x55,0x50,0x4c,0x43])));}function _0x34a69a(){const _0x1d51a2=_0x55cde6[_0x3cbe04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d51a2||0x0==_0x1d51a2[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15b44e}=new URL(window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d51a2[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15b44e))return!0x0;const _0x3d66bc=_0x15b44e[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e]));return _0x1d51a2[_0x3cbe04([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c47e5=>_0x3c47e5[_0x3cbe04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cbe04([0x2a])))[_0x3cbe04([0x6d,0x61,0x70])](_0x25b8e0=>_0x25b8e0[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e])))[_0x3cbe04([0x73,0x6f,0x6d,0x65])](_0x8ada1d=>_0x3d66bc[_0x3cbe04([0x65,0x76,0x65,0x72,0x79])]((_0x1258dd,_0x376ffd)=>_0x8ada1d[_0x376ffd]===_0x1258dd||_0x8ada1d[_0x376ffd]===_0x3cbe04([0x2a])));}function _0x5ad7cb(){return _0x35321a&&_0x45909f?new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54711d,_0x424ecc)=>{_0x35321a[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x54711d,_0x424ecc),_0x45909f[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x575977=>{_0x575977!=_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])&&_0x54711d(_0x575977);},_0x424ecc);}):_0x35321a||_0x45909f||_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe8ecd5(_0x4f1e99,_0xb843ef){return new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5100e9=>{if(_0x2c8054())return _0x5100e9(_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]));_0x2ecf21(),_0x5423f6[_0x3cbe04([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1823c8=!0x1;const _0x14dc96=_0x18dbf8();function _0x3c0543(_0x3fe6a0){return!!_0x3fe6a0&&(typeof _0x3fe6a0===_0x3cbe04([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fe6a0===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fe6a0[_0x3cbe04([0x74,0x68,0x65,0x6e])]===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fe6a0[_0x3cbe04([0x63,0x61,0x74,0x63,0x68])]===_0x3cbe04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3583c1(_0xfc8f96){_0x5c8981(_0xfc8f96)[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x5d3092=>{if(!_0x5d3092||_0x5d3092[_0x3cbe04([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3cbe04([0x6f,0x6b]))return _0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56ddd1(_0x3276c4(_0x14dc96+_0xb843ef))!=_0x5d3092[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3cbe04([0x56,0x61,0x6c,0x69,0x64]);})[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x432888=>(_0x1f5fd5(),_0x432888),()=>{const _0x30eacb=_0x511a20();return null==_0x30eacb?(_0x1f5fd5(),_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])):_0x3cbe04(_0xc3b57c-_0x30eacb>(0x79986f28^_0x2cd523)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x5100e9)[_0x3cbe04([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f14d6=0x5da205a8^_0x2cd523;function _0x1f5fd5(){const _0x2b6802=_0x3cbe04([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ddd1(_0x3276c4(_0x4f1e99)),_0x54f2a3=_0x4cc77d(_0x56ddd1(window[_0x3cbe04([0x4d,0x61,0x74,0x68])][_0x3cbe04([0x63,0x65,0x69,0x6c])](_0xc3b57c/_0x3f14d6)));window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cbe04([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b6802,_0x54f2a3);}function _0x511a20(){const _0x91e294=_0x3cbe04([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ddd1(_0x3276c4(_0x4f1e99)),_0x21719e=window[_0x3cbe04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cbe04([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x91e294);return _0x21719e?window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cc77d(_0x21719e),0x10)*_0x3f14d6:null;}function _0x5c8981(_0x328fc4){return new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3311a1,_0xdbd427)=>{_0x328fc4[_0x3cbe04([0x74,0x68,0x65,0x6e])](_0x3311a1,_0xdbd427),window[_0x3cbe04([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdbd427,0x5d953fe8^_0x2cd523);});}}_0x5423f6[_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52ffd5,_0x210c92)=>{if(_0x210c92[0x0]!=_0x4f1e99)return _0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x210c92[0x1]={..._0x210c92[0x1],[_0x3cbe04([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14dc96};},{[_0x3cbe04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cbe04([0x68,0x69,0x67,0x68])}),_0x5423f6[_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5db2bf=>{_0x3c0543(_0x5db2bf[_0x3cbe04([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1823c8=!0x0,_0x3583c1(_0x5db2bf[_0x3cbe04([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3cbe04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cbe04([0x6c,0x6f,0x77])}),_0x3553f4[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>{_0x1823c8||_0x5100e9(_0x3cbe04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c8054(){return _0x5423f6[_0x3cbe04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cbe04([0x76,0x69,0x65,0x77])][_0x3cbe04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3cbe04([0x61,0x75,0x74,0x6f]);}function _0x2ecf21(){_0x5423f6[_0x3cbe04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cbe04([0x76,0x69,0x65,0x77])][_0x3cbe04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cbe04([0x61,0x75,0x74,0x6f]);}}function _0x1c61da(_0x36ccdf){const _0x5032db=[new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28292f=>setTimeout(_0x28292f,0x5d9dd5e4^_0x2cd523)),_0x3553f4[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b35c3=>{let _0x2d9ae3=0x0;_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x6f,0x6e])](_0x3cbe04([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40fac7,_0x28d42e)=>{_0x28d42e[0x0][_0x3cbe04([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d9ae3++,_0x2d9ae3==(0x5d94ead0^_0x2cd523)&&(_0x4b35c3(),_0x40fac7[_0x3cbe04([0x6f,0x66,0x66])]());});}))];return window[_0x3cbe04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cbe04([0x72,0x61,0x63,0x65])](_0x5032db)[_0x3cbe04([0x74,0x68,0x65,0x6e])](()=>_0x36ccdf);}async function _0x4cfe29(){await _0x3553f4,_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3073b2,_0x5423f6[_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cbe04([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3073b2,_0x5423f6[_0x3cbe04([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3cbe04([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b7541(_0x1bf69b){const _0x45a8c9=_0x25f6c9();_0x5423f6[_0x45a8c9]=_0x3cbe04([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bf69b,_0x1bf69b!=_0x3cbe04([0x56,0x61,0x6c,0x69,0x64])&&_0x4cfe29();}function _0x25f6c9(){const _0x2436f5=window[_0x3cbe04([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3cbe04([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3cbe04([0x6e,0x6f,0x77])]())[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3cbe04([0x2e]),'');let _0x47e1dc=_0x3cbe04([0x70]);for(let _0x2a4e0e=0x0;_0x2a4e0e<_0x2436f5[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a4e0e+=0x2){let _0x457a52=window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2436f5[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a4e0e,_0x2a4e0e+0x2));_0x457a52>=_0x153313[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x457a52-=_0x153313[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47e1dc+=_0x153313[_0x457a52];}return _0x47e1dc;}function _0xfc8a17(){const _0x5c022c=_0x111f18[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e]));if(0x3!=_0x5c022c[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a29ff(_0x5c022c[0x1]);function _0x2a29ff(_0x1c8d0c){const _0x379cbd=_0x144b69(_0x1c8d0c);return _0x379cbd&&_0x5b6bee()?_0x379cbd:null;function _0x5b6bee(){const _0x24b755=_0x379cbd[_0x3cbe04([0x6a,0x74,0x69])],_0x547ba5=window[_0x3cbe04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24b755[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24b755[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a50f4={..._0x379cbd,[_0x3cbe04([0x6a,0x74,0x69])]:_0x24b755[_0x3cbe04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24b755[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a50f4[_0x3cbe04([0x76,0x63])],_0x3276c4(_0x5a50f4)==_0x547ba5;}}}async function _0x456334(){let _0x56340b=!0x0;try{const _0x40ee4e=_0x111f18[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])](_0x3cbe04([0x2e])),[_0x511820,_0x5d7de1,_0x319fd2]=_0x40ee4e;return _0x79bd0b(_0x511820),await _0x288c96(_0x511820,_0x5d7de1,_0x319fd2),_0x56340b;}catch(_0x80ccc6){return!0x1;}function _0x79bd0b(_0x10c878){const _0x7f007b=_0x144b69(_0x10c878);_0x7f007b&&_0x7f007b[_0x3cbe04([0x61,0x6c,0x67])]==_0x3cbe04([0x45,0x53,0x32,0x35,0x36])||(_0x56340b=!0x1);}async function _0x288c96(_0x2554c4,_0x2b886,_0xa6b1e2){const _0x455f2f=window[_0x3cbe04([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3cbe04([0x66,0x72,0x6f,0x6d])](_0x30d794(_0xa6b1e2),_0x351df4=>_0x351df4[_0x3cbe04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55cb96=new window[(_0x3cbe04([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3cbe04([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2554c4+_0x3cbe04([0x2e])+_0x2b886),_0x5587e8=window[_0x3cbe04([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3cbe04([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5587e8)return;const _0x30e86b=await _0x5587e8[_0x3cbe04([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3cbe04([0x6a,0x77,0x6b]),_0x1b9512,{[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x45,0x43,0x44,0x53,0x41]),[_0x3cbe04([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3cbe04([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5587e8[_0x3cbe04([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x45,0x43,0x44,0x53,0x41]),[_0x3cbe04([0x68,0x61,0x73,0x68])]:{[_0x3cbe04([0x6e,0x61,0x6d,0x65])]:_0x3cbe04([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30e86b,_0x455f2f,_0x55cb96)||(_0x56340b=!0x1);}}function _0x144b69(_0x273075){return _0x273075[_0x3cbe04([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3cbe04([0x65,0x79]))?JSON[_0x3cbe04([0x70,0x61,0x72,0x73,0x65])](_0x30d794(_0x273075)):null;}function _0x30d794(_0x5f1ab2){return window[_0x3cbe04([0x61,0x74,0x6f,0x62])](_0x5f1ab2[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3cbe04([0x2b]))[_0x3cbe04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3cbe04([0x2f])));}function _0x3276c4(_0x1dce16){let _0x359b48=0x1505;function _0xa2f500(_0x18cfa8){for(let _0x4bf801=0x0;_0x4bf801<_0x18cfa8[_0x3cbe04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bf801++){const _0x4dd6ed=_0x18cfa8[_0x3cbe04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bf801);_0x359b48=(_0x359b48<<0x5)+_0x359b48+_0x4dd6ed,_0x359b48&=_0x359b48;}}function _0x294939(_0x121b47){Array[_0x3cbe04([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x121b47)?_0x121b47[_0x3cbe04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x294939):_0x121b47&&typeof _0x121b47==_0x3cbe04([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3cbe04([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x121b47)[_0x3cbe04([0x73,0x6f,0x72,0x74])]()[_0x3cbe04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ece0f,_0x240c94])=>{_0xa2f500(_0x5ece0f),_0x294939(_0x240c94);}):_0xa2f500(window[_0x3cbe04([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x121b47));}return _0x294939(_0x1dce16),_0x359b48>>>0x0;}function _0x56ddd1(_0x3d7550){return _0x3d7550[_0x3cbe04([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3cbe04([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3cbe04([0x30]));}function _0x4cc77d(_0x48626d){return _0x48626d[_0x3cbe04([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3cbe04([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3cbe04([0x6a,0x6f,0x69,0x6e])]('');}function _0x3073b2(){}function _0x3cbe04(_0x34b4a0){return _0x34b4a0['map'](_0x22a35c=>String['fromCharCode'](_0x22a35c))['join']('');}_0x3b7541(await _0x17f557());}(this);}['_initSchema'](){const _0x5b2097=this['editor']['model']['schema'];_0x5b2097['isRegistered']('imageBlock')&&_0x5b2097['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5b2097['isRegistered']('imageInline')&&_0x5b2097['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5a5b49=this['editor'];_0x5a5b49['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5a5b49['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4b0e9a=>_0x4b0e9a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2fc37e=_0x5a5b49['commands']['get']('replaceImageSource');_0x2fc37e&&this['listenTo'](_0x2fc37e,'cleanupImage',(_0x40ea3a,[_0x5d67dc,_0x20b0c2])=>{_0x5d67dc['removeAttribute']('uploadcareImageId',_0x20b0c2);});}['_initConfig'](){const _0x1d2f13=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3fd5dc=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x50d96f(_0x4d3312['document'],'uc-config',{..._0x1d2f13,'pubkey':_0x3fd5dc,'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']=_0x14279c=>{if('closeMax'==_0x14279c)return'#uc-icon-arrow-down';},_0x4d3312['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x50d96f(_0x4d3312['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4d3312['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x378755=this['editor']['commands']['get']('insertImage');_0x378755&&this['listenTo'](_0x378755,'execute',()=>{const _0x2e0f6c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e0f6c&&_0x2e0f6c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2e0f6c);});});const _0xb7af17=this['editor']['commands']['get']('uploadcareImageReplace');_0xb7af17&&this['listenTo'](_0xb7af17,'execute',()=>{const _0x3cb45e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3cb45e&&_0x3cb45e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3cb45e);});});}}class u extends _0x2252f4{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c48a8){super(_0x5c48a8),_0x5c48a8['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x6af673['defineComponents'](_0x6af673);}}class ta extends _0x2607b8{constructor(_0xb892ec){super(_0xb892ec);const t=_0xb892ec['t'],_0x3cae24=this['bindTemplate'],_0x2e72ed=new _0x4de68d();_0x2e72ed['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':[_0x2e72ed,{'text':_0x3cae24['to']('imageUploadProgress',_0x49a491=>t('Loading\x20image...')+'\x20('+(_0x49a491||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 _0x2607b8{constructor(_0x38a76b){super(_0x38a76b);const t=_0x38a76b['t'];this['set']('errorType',null);const _0x39341a=new _0x14edb9(_0x38a76b);_0x39341a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x39341a['withText']=!0x0,_0x39341a['class']='ck-button-action',_0x39341a['on']('execute',()=>{this['fire']('retry');}),_0x39341a['bind']('isVisible')['to'](this,'errorType',_0x35b19f=>'NotFound'!==_0x35b19f);const _0x2f36be=new at();_0x2f36be['content']=et,_0x2f36be['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11f55f=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':[_0x2f36be,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11f55f['to']('errorType',_0x24831f=>t('NotFound'!==_0x24831f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x39341a]},{'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 _0x2607b8{constructor(_0x723fe6,_0x4cc246){super(_0x723fe6);const _0x3b2e8c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4cc246,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3b2e8c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2dd8af,_0x30022e,_0x2eba89){super(_0x2dd8af),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2dd8af),this['_errorView']=new rt(_0x2dd8af),this['_editingView']=new tt(_0x2dd8af,_0x2eba89),this['_focusableView']=new _0x2607b8(_0x2dd8af),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x30022e),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'],_0x1b727e=>{this['_addUploadcareImageEditorListeners'](_0x1b727e);});}),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'](_0x2e06d7,_0x38fe9a){const _0x3ac794='uc-cloud-image-editor',_0x346629=_0x2e06d7['querySelector'](_0x3ac794);if(_0x346629)return _0x38fe9a(_0x346629);const _0x1a80f3=new MutationObserver(_0x1ba176=>{const _0x23dfaa=_0x1ba176['filter'](_0x4af1d5=>_0x4af1d5['target']===_0x2e06d7&&_0x4af1d5['addedNodes']['length']>0x0&&_0x4af1d5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3ac794);_0x23dfaa['length']&&(_0x1a80f3['disconnect'](),_0x38fe9a(_0x23dfaa[0x0]['addedNodes'][0x0]));});_0x1a80f3['observe'](_0x2e06d7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x138a77){_0x138a77['addEventListener']('apply',_0x543386=>{this['fire']('apply',{'imageSrc':_0x543386['detail']['cdnUrl']});}),_0x138a77['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x4bb07a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x217987,_0x35f3b2,_0x1635c0){super(),this['_editor']=_0x217987,this['_dialog']=_0x35f3b2,this['_imageElement']=_0x1635c0,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 _0x5414ed=this['_imageElement'],_0x4ba950=_0x5414ed['getAttribute']('uploadcareImageId'),_0x4b26c9=_0x5414ed['getAttribute']('src');if(_0x4ba950)await this['_loadImageInfo'](_0x4ba950,_0x4b26c9);else{if(this['_imageCache']['has'](_0x4b26c9)){const _0x2aade4=this['_imageCache']['get'](_0x4b26c9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2aade4['url'],this['imageDimension']=_0x2aade4['dimension'],this['imageId']=_0x2aade4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x285e43}=this['_editor'],t=_0x285e43['t'],_0x493f5f=new Z(_0x285e43,this['imageStatus'],this['_attributes']);_0x493f5f['bind']('status')['to'](this,'imageStatus'),_0x493f5f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x493f5f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x493f5f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x493f5f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x477390,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x493f5f,'position':_0x167e77['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x493f5f['focus']();},'onHide':()=>{_0x493f5f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x32ff54=>!F(_0x32ff54,_0x493f5f['element'])}});}['_loadImageInfo'](_0x1c2eaf,_0x1be61f){return C['getInfo'](_0x1c2eaf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4f1f4c=>{const {width:_0x12393d,height:_0xd42f9}=_0x4f1f4c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1be61f,this['imageDimension']={'width':_0x12393d,'height':_0xd42f9},this['imageId']=_0x1c2eaf;})['catch'](_0x3f8be1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f8be1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5450c3,_0x26b715){return this['_getImageAsFile'](_0x5450c3)['then'](_0x512c54=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x26b715['signal'],'file':_0x512c54,'onProgress':_0x2137cf=>{_0x2137cf&&_0x2137cf['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2137cf['value']));}}))['then'](_0x4c380a=>{const {width:_0x401440,height:_0x187fd2}=_0x4c380a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c380a['cdnUrl'],this['imageDimension']={'width':_0x401440,'height':_0x187fd2},this['imageId']=_0x4c380a['uuid'],this['imageUploadProgress']=null;const _0x4fa16a=_0x5450c3['getAttribute']('src');this['_imageCache']['set'](_0x4fa16a,{'id':_0x4c380a['uuid'],'url':_0x4c380a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3a2658=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3a2658['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x660c2c,_0x1c71d4){_0x660c2c['on']('apply',(_0x3162f1,_0x3c915e)=>{this['_replaceImage'](_0x1c71d4,_0x3c915e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x660c2c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x660c2c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9ccdfd,_0x3d3b90,_0x119b27){const _0x11cef7=this['_editor'],{width:_0x2b205a,height:_0x181000}=A(_0x3d3b90,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1f5264,imageSources:_0x189cdf}=E(_0x3d3b90,_0x2b205a);_0x11cef7['model']['change'](_0x282cf4=>{if('$graveyard'===_0x9ccdfd['root']['rootName']){_0x11cef7['execute']('insertImage',{'imageType':_0x9ccdfd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9ccdfd['getAttributes']()),'uploadcareImageId':_0x119b27,'src':_0x1f5264,'sources':_0x189cdf,'width':_0x2b205a,'height':_0x181000}});const _0x14863b=_0x9ccdfd['getChildren']();_0x9ccdfd=_0x11cef7['model']['document']['selection']['getSelectedElement']();for(const _0x1152ff of _0x14863b)_0x282cf4['append'](_0x282cf4['cloneElement'](_0x1152ff),_0x9ccdfd);}else _0x282cf4['setSelection'](_0x9ccdfd,'on'),_0x11cef7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9ccdfd['getAttributes']()),'uploadcareImageId':_0x119b27,'src':_0x1f5264,'sources':_0x189cdf,'width':_0x2b205a,'height':_0x181000},_0x9ccdfd);_0x282cf4['setSelection'](_0x9ccdfd,'on');});}async['_getImageAsFile'](_0x25c91a){const _0x471067=_0x4d3312['window'],_0x5e90e0=_0x4d3312['document']['location']['href'],_0x4b06fc=new _0x471067['URL'](_0x25c91a['getAttribute']('src'),_0x5e90e0);if('data:'===_0x4b06fc['protocol']){const _0x563382=_0x4b06fc['href']['split'](','),_0x5afc6c=_0x563382[0x0]['match'](/:(.*?);/)[0x1],_0x3f1ca9=_0x5afc6c['split']('/')[0x1],_0x47618b=_0x471067['atob'](_0x563382[_0x563382['length']-0x1]);let _0x5c2a3a=_0x47618b['length'];const _0x489357=new _0x471067['Uint8Array'](_0x5c2a3a);for(;_0x5c2a3a--;)_0x489357[_0x5c2a3a]=_0x47618b['charCodeAt'](_0x5c2a3a);return new _0x471067['File']([_0x489357],'image.'+_0x3f1ca9,{'type':_0x5afc6c});}const _0x511c7d=_0x4b06fc['href']['split']('/'),_0x1385af=_0x511c7d[_0x511c7d['length']-0x1],_0x59963d=_0x1385af['split']('.')[0x1];return _0x471067['fetch'](_0x4b06fc['href'])['then'](_0x18c4f0=>_0x18c4f0['clone']()['blob']())['then'](_0x25fd7f=>new _0x471067['File']([_0x25fd7f],_0x1385af,{'type':'image/'+_0x59963d}));}}class J extends _0x53cd57{['imageEditController'];static get['requires'](){return[_0x4da01e];}['_isEditable'];constructor(_0x4ca7e1){super(_0x4ca7e1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x43a80){const _0x435acf=V(_0x43a80);return _0x1138a8=>!(!_0x1138a8||!_0x1138a8['is']('element','imageBlock')&&!_0x1138a8['is']('element','imageInline'))&&(!!_0x1138a8['hasAttribute']('uploadcareImageId')||!!_0x1138a8['hasAttribute']('src')&&_0x435acf(_0x1138a8['getAttribute']('src')));}(_0x4ca7e1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5778c3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5778c3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x25f122=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25f122&&(_0x25f122['is']('element','imageBlock')||_0x25f122['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4da01e),_0x25f122),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x53cd57{['refresh'](){const _0x1db25c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1db25c&&(_0x1db25c['is']('element','imageBlock')||_0x1db25c['is']('element','imageInline')));}['execute'](_0x27a782){const _0x39b2db=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xd11561=>{_0xd11561['setAttributes'](_0x27a782,_0x39b2db),_0xd11561['removeAttribute']('srcset',_0x39b2db),_0xd11561['removeAttribute']('sizes',_0x39b2db);});}}class g extends _0x2252f4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x498d67,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8d6a81}=this;_0x8d6a81['commands']['add']('uploadcareImageEdit',new J(_0x8d6a81)),_0x8d6a81['commands']['add']('uploadcareImageReplace',new O(_0x8d6a81));}}class j extends _0x2252f4{['_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 _0x57d548=this['editor'];_0x57d548['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1b6adb=>{const _0x1e5836=_0x57d548['commands']['get']('uploadcareImageEdit'),_0x2eee94=new _0x14edb9(_0x1b6adb),t=_0x1b6adb['t'];return _0x2eee94['set']({'icon':_0x477390,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2eee94['bind']('isEnabled')['to'](_0x1e5836),_0x2eee94['bind']('isOn')['to'](_0x1e5836,'isActive'),this['listenTo'](_0x2eee94,'execute',()=>{_0x57d548['execute']('uploadcareImageEdit'),_0x57d548['editing']['view']['focus']();}),_0x2eee94;}),this['_initConfig']();}['_initConfig'](){const _0x3ea38d=_0x50d96f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3ea38d),this['listenTo'](this['editor'],'destroy',()=>{_0x3ea38d['remove']();});}}class P extends _0x2252f4{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 _0x346009,Command as _0xfe0b04}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x575425,IconGooglePhotos as _0x492fcc,IconGoogleDrive as _0x3e589a,IconFacebook as _0x352a62,IconDropbox as _0x36ff64,IconUploadcareLink as _0x4e4891,IconUploadcareImageUpload as _0xe780fd,IconError as et,IconUploadcareImageEdit as _0x3d0a90}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x6245c7,MenuBarMenuListItemButtonView as _0x44317d,View as _0x396167,FocusCycler as _0x50114d,Dialog as _0x5beb81,DialogViewPosition as _0x43adb5,SpinnerView as _0x37bdcb,IconView as at,Notification as _0x44616c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4f975b,DomEmitterMixin as _0x4fe34c,global as _0xfc21a3,getAncestors as _0x3764ad,ObservableMixin as _0x28dd8c,createElement as _0x52c709,uid as _0x131c4f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x23de0e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x138f5a,info as _0x383da7}from'@uploadcare/upload-client';import*as _0x1bc5d5 from'@uploadcare/file-uploader';var o=function(_0x397ef6){return _0x397ef6['Local']='local',_0x397ef6['URL']='url',_0x397ef6['Dropbox']='dropbox',_0x397ef6['GDrive']='gdrive',_0x397ef6['Facebook']='facebook',_0x397ef6['GPhotos']='gphotos',_0x397ef6['OneDrive']='onedrive',_0x397ef6;}({});function _(_0x54fcbe,_0x574acc,_0x3ebb40){const t=_0x54fcbe['t'],_0x53b424=_0x54fcbe['t'];switch(_0x574acc){case o['Local']:return{'text':_0x53b424('Insert'===_0x3ebb40?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x53b424('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3ebb40?_0x53b424('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x53b424('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3ebb40?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x574acc;}}class e extends _0x346009{['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 _0x327548=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4232ea;for(const _0x5485bd in _0x327548){const _0x2dab02=_0x5485bd,_0x28b55f=_0x327548[_0x2dab02];if('uploadcareLicenseKeyValid'==_0x28b55f||'uploadcareLicenseKeyInvalid'==_0x28b55f||'uploadcareLicenseKeyExpired'==_0x28b55f||'uploadcareLicenseKeyDomainLimit'==_0x28b55f||'uploadcareLicenseKeyNotAllowed'==_0x28b55f||'uploadcareLicenseKeyEvaluationLimit'==_0x28b55f||'uploadcareLicenseKeyTrialLimit'==_0x28b55f||'uploadcareLicenseKeyUsageLimit'==_0x28b55f){delete _0x327548[_0x2dab02],_0x4232ea=_0x28b55f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4232ea&&_0x327548['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4232ea&&_0x327548['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4232ea&&_0x327548['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4232ea&&_0x327548['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4232ea&&_0x327548['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4232ea&&_0x327548['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4232ea&&_0x327548['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x541371}=this,_0x2cb497=_0x541371['commands']['get']('uploadcare');if(!_0x2cb497)return;const _0x3a4d1a=this['_normalizeConfigSourceList'](_0x541371['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xd5ed7a,_0x4f5c1d)=>{const _0x5bf492=this['_getIntegrationKey'](_0x4f5c1d['type']);return _0xd5ed7a[_0x5bf492]||(_0xd5ed7a[_0x5bf492]=[]),_0xd5ed7a[_0x5bf492]['push'](_0x4f5c1d),_0xd5ed7a;},{});_0x541371['plugins']['has']('ImageInsertUI')&&_0x541371['commands']['get']('uploadcare')&&Object['entries'](_0x3a4d1a)['forEach'](([_0x2dbaa0,_0x29aa38])=>{_0x541371['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2dbaa0,'observable':()=>_0x2cb497,'buttonViewCreator':()=>this['_createToolbarButton'](_0x29aa38),'formViewCreator':()=>this['_createDropdownButtons'](_0x29aa38),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x29aa38),'override':'assetManager'!==_0x2dbaa0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x380cba){const {locale:_0x2e681d}=this['editor'];return _0x380cba['map'](_0x44e72e=>{const _0xfb6683=_(_0x2e681d,_0x44e72e,'Insert');switch(_0x44e72e){case o['Local']:return{'icon':_0xe780fd,'type':o['Local'],..._0xfb6683};case o['URL']:return{'icon':_0x4e4891,'type':o['URL'],..._0xfb6683};case o['Dropbox']:return{'icon':_0x36ff64,'type':o['Dropbox'],..._0xfb6683};case o['Facebook']:return{'icon':_0x352a62,'type':o['Facebook'],..._0xfb6683};case o['GDrive']:return{'icon':_0x3e589a,'type':o['GDrive'],..._0xfb6683};case o['GPhotos']:return{'icon':_0x492fcc,'type':o['GPhotos'],..._0xfb6683};case o['OneDrive']:return{'icon':_0x575425,'type':o['OneDrive'],..._0xfb6683};}});}['_getIntegrationKey'](_0x37fddb){switch(_0x37fddb){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x10c7eb,_0xa1b673){const _0x3c70ce=this['editor'],_0x41ccb0=new _0x10c7eb(_0x3c70ce['locale']),_0x43ef1b=_0x3c70ce['commands']['get']('uploadcare');return _0x41ccb0['bind']('isEnabled')['to'](_0x43ef1b),_0x41ccb0['on']('execute',()=>{_0x43ef1b['execute'](_0xa1b673);}),_0x41ccb0;}['_createToolbarButton'](_0x49dad4){const {locale:_0x8659aa}=this['editor'],_0x5722c3=this['editor']['plugins']['get']('ImageInsertUI'),_0x59a599=_0x49dad4[0x0],_0x25fea4=this['_createButton'](_0x6245c7,_0x59a599['type']);return _0x25fea4['icon']=_0x59a599['icon'],_0x25fea4['bind']('label')['to'](_0x5722c3,'isImageSelected',_0x563062=>_(_0x8659aa,_0x59a599['type'],_0x563062?'Replace':'Insert')['text']),_0x25fea4['tooltip']=!0x0,_0x25fea4;}['_createDropdownButtons'](_0x4a1856){const {locale:_0x3bdeb4}=this['editor'],_0x45a42a=this['editor']['plugins']['get']('ImageInsertUI');return _0x4a1856['map'](_0x19654b=>{const _0x523c38=this['_createButton'](_0x6245c7,_0x19654b['type']);return _0x523c38['withText']=!0x0,_0x523c38['icon']=_0x19654b['icon'],_0x523c38['bind']('label')['to'](_0x45a42a,'isImageSelected',_0x3338cf=>_(_0x3bdeb4,_0x19654b['type'],_0x3338cf?'Replace':'Insert')['text']),_0x523c38;});}['_createMenuBarButtons'](_0x59059b){return _0x59059b['map'](_0x4bdec8=>{const _0x550875=this['_createButton'](_0x44317d,_0x4bdec8['type']);return _0x550875['icon']=_0x4bdec8['icon'],_0x550875['label']=_0x4bdec8['shortText'],_0x550875;});}}class q extends _0x396167{['focusTracker'];['focusCycler'];constructor(_0x4fcc4d){super(_0x4fcc4d),this['focusTracker']=new _0x4f975b(),this['focusCycler']=new _0x50114d({'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(_0xa369dc){super(_0xa369dc),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(_0x43604a,_0xfdc98f){const _0x29d120=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4fbea3=>_0x4fbea3<=_0xfdc98f)['map'](_0x1f064e=>_0x43604a['replace'](/\/$/,'')+'/-/resize/'+_0x1f064e+'x/\x20'+_0x1f064e+'w');return{'imageFallbackUrl':_0x43604a,'imageSources':[{'srcset':_0x29d120['join'](',\x20'),'sizes':'(max-width:\x20'+_0xfdc98f+'px)\x20100vw,\x20'+_0xfdc98f+'px','type':'image/webp'}]};}function A(_0x1d0ea4,_0x15a67b,_0x281807){const _0x2c4cac=_0x1d0ea4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2c4cac?parseInt(_0x2c4cac[0x1],0xa):_0x15a67b,'height':_0x2c4cac?parseInt(_0x2c4cac[0x2],0xa):_0x281807};}function m(_0x6ab10a,_0x514e3f){const _0x366ac7=Object['create'](_0x4fe34c),_0x6aec6b=_0x6ab10a['plugins']['get']('ImageUtils'),_0x1d6db2=_0x6ab10a['editing']['mapper']['toViewElement'](_0x514e3f),_0x2b6183=_0x6aec6b['findViewImgElement'](_0x1d6db2),_0x3afb85=_0x6ab10a['editing']['view']['domConverter']['viewToDom'](_0x2b6183),_0x36306e=_0x514e3f['getAttribute']('width'),_0x23730d=_0x514e3f['getAttribute']('height'),_0x45d399='image-processing';_0x6ab10a['editing']['view']['change'](_0xc6dc5a=>{_0xc6dc5a['addClass'](_0x45d399,_0x1d6db2),_0xc6dc5a['setStyle']('aspect-ratio',_0x36306e+'/'+_0x23730d,_0x2b6183);}),_0x366ac7['listenTo'](_0x3afb85,'load',()=>{_0x366ac7['stopListening'](_0x3afb85,'load'),_0x6ab10a['editing']['view']['change'](_0x42157d=>{_0x42157d['removeClass'](_0x45d399,_0x1d6db2),_0x42157d['removeStyle']('aspect-ratio',_0x2b6183);});});}function V(_0x97beda){if(Array['isArray'](_0x97beda)){const _0x5db2f2=_0x97beda['map'](V);return _0x23f7a0=>_0x5db2f2['some'](_0x4d6b62=>_0x4d6b62(_0x23f7a0));}if('origin'==_0x97beda){const _0x5a0915=_0xfc21a3['window']['location']['origin'];return _0x1648eb=>new URL(_0x1648eb,_0xfc21a3['document']['baseURI'])['origin']==_0x5a0915;}return'function'==typeof _0x97beda?_0x97beda:_0x97beda instanceof RegExp?_0x383e1e=>!(!_0x383e1e['match'](_0x97beda)&&!_0x383e1e['replace'](/^https?:\/\//,'')['match'](_0x97beda)):()=>!0x1;}function F(_0x2d9ff7,_0x2f0d6e){return _0x3764ad(_0x2d9ff7['target'])['includes'](_0x2f0d6e);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x28dd8c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5b974a,_0x5fa0b3,_0x5796bf){super(),this['_editor']=_0x5b974a,this['_editing']=_0x5fa0b3,this['_dialog']=_0x5b974a['plugins']['get'](_0x5beb81),this['_api']=_0x5fa0b3['ctxElement']['getAPI'](),this['_type']=_0x5796bf,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:_0x247b7a,model:_0x369953}=this['_editor'],_0x3437ef=_0x369953['document']['selection']['getSelectedElement'](),_0x49792d=_0x3437ef&&(_0x3437ef['is']('element','imageBlock')||_0x3437ef['is']('element','imageInline'));this['_formView']=new S(_0x247b7a),this['_dialog']['show']({'id':'uploadCare','icon':_0xe780fd,'title':_(_0x247b7a,this['_type'],_0x49792d?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x43adb5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x29256c=>!F(_0x29256c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3c3df3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x564378=>{const _0x14e2ed=_0x3c3df3['length'];for(const _0xc72b8 of _0x3c3df3){const _0x56b4e6=_0xc72b8===_0x3c3df3[_0x14e2ed-0x1],{cdnUrl:_0xb31cc2,fileInfo:_0xfdcafb}=_0xc72b8;if(!_0xb31cc2||!_0xfdcafb)continue;const {width:_0x4de5f4,height:_0x2dd3c6}=_0xfdcafb['imageInfo'],_0x27e7bc=A(_0xb31cc2,_0x4de5f4,_0x2dd3c6),_0x4b65f6=E(_0xb31cc2,_0x27e7bc['width']),_0x38011d={'id':_0xfdcafb['uuid'],'type':'image','attributes':{'imageDimension':_0x27e7bc,..._0x4b65f6}};this['_insertAsset'](_0x38011d,_0x56b4e6,_0x564378);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x382aad=>{'idle'===_0x382aad['detail']['status']&&!_0x382aad['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5c9888,_0x336171,_0x2e79f0){const _0x35d23e=this['_editor']['model']['document']['selection'],_0x54a382=_0x35d23e['getSelectedElement'](),_0x537416=!(!_0x54a382||!_0x54a382['is']('element','imageInline'));_0x2e79f0['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5c9888,_0x537416),_0x336171||_0x2e79f0['setSelection'](_0x35d23e['getLastPosition']());}['_insertImage'](_0x34800c,_0x521d23){const _0x533f42=this['_editor'],{imageDimension:_0x794d5a,imageFallbackUrl:_0x13230b,imageSources:_0x28582a}=_0x34800c['attributes'];_0x533f42['execute']('insertImage',{'imageType':_0x521d23?'imageInline':null,'source':{'uploadcareImageId':_0x34800c['id'],'src':_0x13230b,'sources':_0x28582a,..._0x794d5a}});}}class n extends _0xfe0b04{['_editing'];['_controller']=null;static get['requires'](){return[_0x5beb81,i];}constructor(_0x11d1f1){super(_0x11d1f1),this['_editing']=_0x11d1f1['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x55720e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x55720e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x34bca0,publicKey:_0x31a5a5,signal:_0x59bcd4,onProgress:_0x24d6fe}){return _0x138f5a(_0x34bca0,{'publicKey':_0x31a5a5,'store':'auto','signal':_0x59bcd4,'onProgress':_0x24d6fe});}static['getInfo'](_0x5d78e3,_0xecd759){return _0x383da7(_0x5d78e3,_0xecd759);}}class p extends _0x346009{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x23de0e,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x631095=this['editor'];if(!!!_0x631095['config']['get']('uploadcare'))return;_0x631095['plugins']['get'](_0x23de0e)['createUploadAdapter']=_0xbf9f14=>new x(_0xbf9f14,_0x631095),_0x631095['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x6579b5,{imageElement:_0x4e1f8d,data:_0x14998a})=>{_0x631095['model']['change'](_0x4daaff=>{_0x4daaff['setAttribute']('uploadcareImageId',_0x14998a['uploadcareImageId'],_0x4e1f8d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x36f63e,_0x39afc2){this['loader']=_0x36f63e,this['editor']=_0x39afc2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x55e5c4=this['editor']['config']['get']('uploadcare.pubkey'),_0x416dba=await this['loader']['file'];return C['upload']({'file':_0x416dba,'publicKey':_0x55e5c4,'signal':this['controller']['signal'],'onProgress':_0x421e03=>{_0x421e03&&_0x421e03['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x421e03['value']);}})['then'](async _0x565634=>{const {imageFallbackUrl:_0x15a136,imageSources:_0x447a40}=E(_0x565634['cdnUrl'],_0x565634['imageInfo']['width']);return{'uploadcareImageId':_0x565634['uuid'],'default':_0x15a136,'sources':_0x447a40};})['catch'](()=>{const _0x4e1c02=t('Cannot\x20upload\x20file:')+('\x20'+_0x416dba['name']+'.');return Promise['reject'](_0x4e1c02);});}['abort'](){this['controller']['abort']();}}class i extends _0x346009{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5beb81];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x247f6b=this['editor'];_0x247f6b['commands']['add']('uploadcare',new n(_0x247f6b));}['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 _0x5677f7=_0xfc21a3['document']['querySelector']('input[uploadcare-file-input]');_0x5677f7&&_0x5677f7['remove']();}),async function(_0x44b2aa){const _0x596b81=_0x3c1a18([0x5a,0x31,0x39,0x30,0x54,0x4e,0x79,0x49,0x6e,0x77,0x50,0x33,0x6f,0x4f,0x67,0x46,0x68,0x44,0x6c,0x47,0x56,0x37,0x70,0x58,0x48,0x42,0x7a,0x65,0x75,0x43,0x6a,0x57,0x72,0x51,0x59,0x4a,0x52,0x6b,0x32,0x41,0x53,0x76,0x63,0x78,0x36,0x45,0x74,0x55,0x73,0x69,0x62,0x4c,0x71,0x35,0x4d,0x66,0x34,0x38,0x64,0x4b,0x6d,0x61]),_0x276282=0x65b24ccd,_0xb1b3=0x65b52b6d^_0x276282,_0x52f366=window[_0x3c1a18([0x44,0x61,0x74,0x65])][_0x3c1a18([0x6e,0x6f,0x77])](),_0x52951e=_0x44b2aa[_0x3c1a18([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47351b=new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43b982=>{_0x52951e[_0x3c1a18([0x6f,0x6e,0x63,0x65])](_0x3c1a18([0x72,0x65,0x61,0x64,0x79]),_0x43b982);}),_0x10e414={[_0x3c1a18([0x6b,0x74,0x79])]:_0x3c1a18([0x45,0x43]),[_0x3c1a18([0x75,0x73,0x65])]:_0x3c1a18([0x73,0x69,0x67]),[_0x3c1a18([0x63,0x72,0x76])]:_0x3c1a18([0x50,0x2d,0x32,0x35,0x36]),[_0x3c1a18([0x78])]:_0x3c1a18([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]),[_0x3c1a18([0x79])]:_0x3c1a18([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]),[_0x3c1a18([0x61,0x6c,0x67])]:_0x3c1a18([0x45,0x53,0x32,0x35,0x36])},_0x46fbb6=_0x52951e[_0x3c1a18([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c1a18([0x67,0x65,0x74])](_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cf2d6(){let _0x529f6b,_0x34a2a5=null,_0x234c18=null;try{if(_0x46fbb6==_0x3c1a18([0x47,0x50,0x4c]))return _0x3c1a18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x529f6b=_0x4b9f3a(),!_0x529f6b)return _0x3c1a18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x529f6b[_0x3c1a18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x234c18=_0x5e9fd2(_0x529f6b[_0x3c1a18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x529f6b[_0x3c1a18([0x6a,0x74,0x69])])),await _0x2b4b91()?_0x21a8b4()?_0x4c79d4()?_0x3c1a18([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x21219a()?(_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c1a18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34a2a5=_0x2a610d(_0x3c1a18([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c1a18([0x74,0x72,0x69,0x61,0x6c])&&(_0x34a2a5=_0x2a610d(_0x3c1a18([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a2a0e()):_0x3c1a18([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c1a18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c1a18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x28af4f){return _0x3c1a18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c79d4(){const _0x325474=[_0x3c1a18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c1a18([0x74,0x72,0x69,0x61,0x6c])][_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52f366/0x3e8:0xe10*_0xb1b3;return _0x529f6b[_0x3c1a18([0x65,0x78,0x70])]<_0x325474;}function _0x21a8b4(){const _0x1c89d1=_0x529f6b[_0x3c1a18([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c89d1&&(!!_0x1c89d1[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c1a18([0x2a]))||!!_0x1c89d1[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c1a18([0x55,0x50,0x4c,0x43])));}function _0x21219a(){const _0x5a12ef=_0x529f6b[_0x3c1a18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a12ef||0x0==_0x5a12ef[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58943f}=new URL(window[_0x3c1a18([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a12ef[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58943f))return!0x0;const _0x47b0f4=_0x58943f[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e]));return _0x5a12ef[_0x3c1a18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cbc7c=>_0x4cbc7c[_0x3c1a18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c1a18([0x2a])))[_0x3c1a18([0x6d,0x61,0x70])](_0x61b386=>_0x61b386[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e])))[_0x3c1a18([0x73,0x6f,0x6d,0x65])](_0x4e96f6=>_0x47b0f4[_0x3c1a18([0x65,0x76,0x65,0x72,0x79])]((_0xb488b8,_0x67dcd6)=>_0x4e96f6[_0x67dcd6]===_0xb488b8||_0x4e96f6[_0x67dcd6]===_0x3c1a18([0x2a])));}function _0x4a2a0e(){return _0x34a2a5&&_0x234c18?new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x418456,_0x34a566)=>{_0x34a2a5[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x418456,_0x34a566),_0x234c18[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x457159=>{_0x457159!=_0x3c1a18([0x56,0x61,0x6c,0x69,0x64])&&_0x418456(_0x457159);},_0x34a566);}):_0x34a2a5||_0x234c18||_0x3c1a18([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e9fd2(_0x47b57f,_0x57a481){return new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54c710=>{if(_0x1d3af3())return _0x54c710(_0x3c1a18([0x56,0x61,0x6c,0x69,0x64]));_0x2b869c(),_0x52951e[_0x3c1a18([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c1a18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x232199=!0x1;const _0x4a3ec3=_0x131c4f();function _0x4230ab(_0x2ae25c){return!!_0x2ae25c&&(typeof _0x2ae25c===_0x3c1a18([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ae25c===_0x3c1a18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ae25c[_0x3c1a18([0x74,0x68,0x65,0x6e])]===_0x3c1a18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ae25c[_0x3c1a18([0x63,0x61,0x74,0x63,0x68])]===_0x3c1a18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dcb2c(_0x37cb5a){_0x4e03bf(_0x37cb5a)[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x2d1ce6=>{if(!_0x2d1ce6||_0x2d1ce6[_0x3c1a18([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c1a18([0x6f,0x6b]))return _0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3dea5a(_0x53befc(_0x4a3ec3+_0x57a481))!=_0x2d1ce6[_0x3c1a18([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c1a18([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x25ae89=>(_0x4e19f3(),_0x25ae89),()=>{const _0x57720f=_0x15f8ae();return null==_0x57720f?(_0x4e19f3(),_0x3c1a18([0x56,0x61,0x6c,0x69,0x64])):_0x3c1a18(_0x52f366-_0x57720f>(0x41bec8cd^_0x276282)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0x54c710)[_0x3c1a18([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54c710(_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36e91e=0x6584a24d^_0x276282;function _0x4e19f3(){const _0x55d981=_0x3c1a18([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dea5a(_0x53befc(_0x47b57f)),_0x102451=_0x1858f5(_0x3dea5a(window[_0x3c1a18([0x4d,0x61,0x74,0x68])][_0x3c1a18([0x63,0x65,0x69,0x6c])](_0x52f366/_0x36e91e)));window[_0x3c1a18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c1a18([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55d981,_0x102451);}function _0x15f8ae(){const _0x489e30=_0x3c1a18([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dea5a(_0x53befc(_0x47b57f)),_0x1d30bd=window[_0x3c1a18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c1a18([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x489e30);return _0x1d30bd?window[_0x3c1a18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1858f5(_0x1d30bd),0x10)*_0x36e91e:null;}function _0x4e03bf(_0x3f6f6e){return new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe0163a,_0x10409b)=>{_0x3f6f6e[_0x3c1a18([0x74,0x68,0x65,0x6e])](_0xe0163a,_0x10409b),window[_0x3c1a18([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10409b,0x65b3980d^_0x276282);});}}_0x52951e[_0x3c1a18([0x6f,0x6e])](_0x3c1a18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18f03b,_0x209e7d)=>{if(_0x209e7d[0x0]!=_0x47b57f)return _0x54c710(_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x209e7d[0x1]={..._0x209e7d[0x1],[_0x3c1a18([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a3ec3};},{[_0x3c1a18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c1a18([0x68,0x69,0x67,0x68])}),_0x52951e[_0x3c1a18([0x6f,0x6e])](_0x3c1a18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12ae0b=>{_0x4230ab(_0x12ae0b[_0x3c1a18([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x232199=!0x0,_0x5dcb2c(_0x12ae0b[_0x3c1a18([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c1a18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c1a18([0x6c,0x6f,0x77])}),_0x47351b[_0x3c1a18([0x74,0x68,0x65,0x6e])](()=>{_0x232199||_0x54c710(_0x3c1a18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d3af3(){return _0x52951e[_0x3c1a18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c1a18([0x76,0x69,0x65,0x77])][_0x3c1a18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c1a18([0x61,0x75,0x74,0x6f]);}function _0x2b869c(){_0x52951e[_0x3c1a18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c1a18([0x76,0x69,0x65,0x77])][_0x3c1a18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c1a18([0x61,0x75,0x74,0x6f]);}}function _0x2a610d(_0x53da6e){const _0x3e2ef8=[new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c84a=>setTimeout(_0x26c84a,0x65bb7201^_0x276282)),_0x47351b[_0x3c1a18([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387407=>{let _0x1184e0=0x0;_0x52951e[_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c1a18([0x6f,0x6e])](_0x3c1a18([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54f8ee,_0x20fe00)=>{_0x20fe00[0x0][_0x3c1a18([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1184e0++,_0x1184e0==(0x65b24d35^_0x276282)&&(_0x387407(),_0x54f8ee[_0x3c1a18([0x6f,0x66,0x66])]());});}))];return window[_0x3c1a18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c1a18([0x72,0x61,0x63,0x65])](_0x3e2ef8)[_0x3c1a18([0x74,0x68,0x65,0x6e])](()=>_0x53da6e);}async function _0x917264(){await _0x47351b,_0x52951e[_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c1a18([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31ec38,_0x52951e[_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c1a18([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31ec38,_0x52951e[_0x3c1a18([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c1a18([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34fe38(_0x5f30e2){const _0x320369=_0x3387c4();_0x52951e[_0x320369]=_0x3c1a18([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f30e2,_0x5f30e2!=_0x3c1a18([0x56,0x61,0x6c,0x69,0x64])&&_0x917264();}function _0x3387c4(){const _0x29f210=window[_0x3c1a18([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c1a18([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c1a18([0x6e,0x6f,0x77])]())[_0x3c1a18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c1a18([0x2e]),'');let _0x4f47e6=_0x3c1a18([0x5a]);for(let _0x22d7f8=0x0;_0x22d7f8<_0x29f210[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22d7f8+=0x2){let _0x40af97=window[_0x3c1a18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29f210[_0x3c1a18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22d7f8,_0x22d7f8+0x2));_0x40af97>=_0x596b81[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40af97-=_0x596b81[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f47e6+=_0x596b81[_0x40af97];}return _0x4f47e6;}function _0x4b9f3a(){const _0x2f8b70=_0x46fbb6[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e]));if(0x3!=_0x2f8b70[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1360d6(_0x2f8b70[0x1]);function _0x1360d6(_0x20a881){const _0x388fbd=_0x57d682(_0x20a881);return _0x388fbd&&_0x2ce60f()?_0x388fbd:null;function _0x2ce60f(){const _0x5445a6=_0x388fbd[_0x3c1a18([0x6a,0x74,0x69])],_0x631c6f=window[_0x3c1a18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5445a6[_0x3c1a18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5445a6[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45291d={..._0x388fbd,[_0x3c1a18([0x6a,0x74,0x69])]:_0x5445a6[_0x3c1a18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5445a6[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45291d[_0x3c1a18([0x76,0x63])],_0x53befc(_0x45291d)==_0x631c6f;}}}async function _0x2b4b91(){let _0xdd980c=!0x0;try{const _0x455fe6=_0x46fbb6[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])](_0x3c1a18([0x2e])),[_0x1a440c,_0x50966d,_0x44a8e2]=_0x455fe6;return _0x11b2c0(_0x1a440c),await _0x20af26(_0x1a440c,_0x50966d,_0x44a8e2),_0xdd980c;}catch(_0x405530){return!0x1;}function _0x11b2c0(_0x52ec65){const _0x5ad05f=_0x57d682(_0x52ec65);_0x5ad05f&&_0x5ad05f[_0x3c1a18([0x61,0x6c,0x67])]==_0x3c1a18([0x45,0x53,0x32,0x35,0x36])||(_0xdd980c=!0x1);}async function _0x20af26(_0xeae732,_0xbc134a,_0xd6f397){const _0x49c15f=window[_0x3c1a18([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c1a18([0x66,0x72,0x6f,0x6d])](_0x37cdcc(_0xd6f397),_0xca002e=>_0xca002e[_0x3c1a18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x103f08=new window[(_0x3c1a18([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c1a18([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xeae732+_0x3c1a18([0x2e])+_0xbc134a),_0x2233ba=window[_0x3c1a18([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c1a18([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2233ba)return;const _0x423570=await _0x2233ba[_0x3c1a18([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c1a18([0x6a,0x77,0x6b]),_0x10e414,{[_0x3c1a18([0x6e,0x61,0x6d,0x65])]:_0x3c1a18([0x45,0x43,0x44,0x53,0x41]),[_0x3c1a18([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c1a18([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c1a18([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2233ba[_0x3c1a18([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c1a18([0x6e,0x61,0x6d,0x65])]:_0x3c1a18([0x45,0x43,0x44,0x53,0x41]),[_0x3c1a18([0x68,0x61,0x73,0x68])]:{[_0x3c1a18([0x6e,0x61,0x6d,0x65])]:_0x3c1a18([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x423570,_0x49c15f,_0x103f08)||(_0xdd980c=!0x1);}}function _0x57d682(_0x22356d){return _0x22356d[_0x3c1a18([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c1a18([0x65,0x79]))?JSON[_0x3c1a18([0x70,0x61,0x72,0x73,0x65])](_0x37cdcc(_0x22356d)):null;}function _0x37cdcc(_0x3c11ee){return window[_0x3c1a18([0x61,0x74,0x6f,0x62])](_0x3c11ee[_0x3c1a18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c1a18([0x2b]))[_0x3c1a18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c1a18([0x2f])));}function _0x53befc(_0x3f0833){let _0x3f030c=0x1505;function _0x3e6e14(_0x429a00){for(let _0x26576f=0x0;_0x26576f<_0x429a00[_0x3c1a18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26576f++){const _0x10f0ba=_0x429a00[_0x3c1a18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26576f);_0x3f030c=(_0x3f030c<<0x5)+_0x3f030c+_0x10f0ba,_0x3f030c&=_0x3f030c;}}function _0x31e491(_0x4ac9ad){Array[_0x3c1a18([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ac9ad)?_0x4ac9ad[_0x3c1a18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31e491):_0x4ac9ad&&typeof _0x4ac9ad==_0x3c1a18([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c1a18([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ac9ad)[_0x3c1a18([0x73,0x6f,0x72,0x74])]()[_0x3c1a18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1de3dc,_0x4c4131])=>{_0x3e6e14(_0x1de3dc),_0x31e491(_0x4c4131);}):_0x3e6e14(window[_0x3c1a18([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ac9ad));}return _0x31e491(_0x3f0833),_0x3f030c>>>0x0;}function _0x3dea5a(_0x587b93){return _0x587b93[_0x3c1a18([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c1a18([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c1a18([0x30]));}function _0x1858f5(_0x180995){return _0x180995[_0x3c1a18([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c1a18([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c1a18([0x6a,0x6f,0x69,0x6e])]('');}function _0x31ec38(){}function _0x3c1a18(_0x4f03bc){return _0x4f03bc['map'](_0x25f6f8=>String['fromCharCode'](_0x25f6f8))['join']('');}_0x34fe38(await _0x5cf2d6());}(this);}['_initSchema'](){const _0x19d4d4=this['editor']['model']['schema'];_0x19d4d4['isRegistered']('imageBlock')&&_0x19d4d4['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x19d4d4['isRegistered']('imageInline')&&_0x19d4d4['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x27d735=this['editor'];_0x27d735['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x27d735['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x571ec8=>_0x571ec8['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x488765=_0x27d735['commands']['get']('replaceImageSource');_0x488765&&this['listenTo'](_0x488765,'cleanupImage',(_0x599025,[_0xd7b718,_0xb14687])=>{_0xd7b718['removeAttribute']('uploadcareImageId',_0xb14687);});}['_initConfig'](){const _0x4a2e05=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2b8696=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x52c709(_0xfc21a3['document'],'uc-config',{..._0x4a2e05,'pubkey':_0x2b8696,'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']=_0x4e786=>{if('closeMax'==_0x4e786)return'#uc-icon-arrow-down';},_0xfc21a3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x52c709(_0xfc21a3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xfc21a3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3d532e=this['editor']['commands']['get']('insertImage');_0x3d532e&&this['listenTo'](_0x3d532e,'execute',()=>{const _0x555aca=this['editor']['model']['document']['selection']['getSelectedElement']();_0x555aca&&_0x555aca['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x555aca);});});const _0x461cc3=this['editor']['commands']['get']('uploadcareImageReplace');_0x461cc3&&this['listenTo'](_0x461cc3,'execute',()=>{const _0x87958b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x87958b&&_0x87958b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x87958b);});});}}class u extends _0x346009{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b4da4){super(_0x3b4da4),_0x3b4da4['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1bc5d5['defineComponents'](_0x1bc5d5);}}class ta extends _0x396167{constructor(_0xd3c23d){super(_0xd3c23d);const t=_0xd3c23d['t'],_0x114152=this['bindTemplate'],_0x40a2c0=new _0x37bdcb();_0x40a2c0['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':[_0x40a2c0,{'text':_0x114152['to']('imageUploadProgress',_0x434d8f=>t('Loading\x20image...')+'\x20('+(_0x434d8f||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 _0x396167{constructor(_0x25aa8e){super(_0x25aa8e);const t=_0x25aa8e['t'];this['set']('errorType',null);const _0x23050a=new _0x6245c7(_0x25aa8e);_0x23050a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x23050a['withText']=!0x0,_0x23050a['class']='ck-button-action',_0x23050a['on']('execute',()=>{this['fire']('retry');}),_0x23050a['bind']('isVisible')['to'](this,'errorType',_0x29ffdf=>'NotFound'!==_0x29ffdf);const _0x4f538b=new at();_0x4f538b['content']=et,_0x4f538b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3fba28=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':[_0x4f538b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3fba28['to']('errorType',_0x7ba6a=>t('NotFound'!==_0x7ba6a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x23050a]},{'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 _0x396167{constructor(_0xc313b3,_0x9a2c4d){super(_0xc313b3);const _0x54307f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x9a2c4d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x54307f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xea4906,_0x3be932,_0x3561ac){super(_0xea4906),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xea4906),this['_errorView']=new rt(_0xea4906),this['_editingView']=new tt(_0xea4906,_0x3561ac),this['_focusableView']=new _0x396167(_0xea4906),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3be932),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'],_0x1ababf=>{this['_addUploadcareImageEditorListeners'](_0x1ababf);});}),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'](_0x56ad89,_0x43af83){const _0x110ae4='uc-cloud-image-editor',_0x42102f=_0x56ad89['querySelector'](_0x110ae4);if(_0x42102f)return _0x43af83(_0x42102f);const _0x12824e=new MutationObserver(_0x15863e=>{const _0x18f432=_0x15863e['filter'](_0x36364b=>_0x36364b['target']===_0x56ad89&&_0x36364b['addedNodes']['length']>0x0&&_0x36364b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x110ae4);_0x18f432['length']&&(_0x12824e['disconnect'](),_0x43af83(_0x18f432[0x0]['addedNodes'][0x0]));});_0x12824e['observe'](_0x56ad89,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2112b8){_0x2112b8['addEventListener']('apply',_0x3605ae=>{this['fire']('apply',{'imageSrc':_0x3605ae['detail']['cdnUrl']});}),_0x2112b8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x28dd8c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x382520,_0x217e68,_0x45c58f){super(),this['_editor']=_0x382520,this['_dialog']=_0x217e68,this['_imageElement']=_0x45c58f,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 _0x29213c=this['_imageElement'],_0x56ef50=_0x29213c['getAttribute']('uploadcareImageId'),_0x115ba1=_0x29213c['getAttribute']('src');if(_0x56ef50)await this['_loadImageInfo'](_0x56ef50,_0x115ba1);else{if(this['_imageCache']['has'](_0x115ba1)){const _0x316edc=this['_imageCache']['get'](_0x115ba1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x316edc['url'],this['imageDimension']=_0x316edc['dimension'],this['imageId']=_0x316edc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x139500}=this['_editor'],t=_0x139500['t'],_0x12cff2=new Z(_0x139500,this['imageStatus'],this['_attributes']);_0x12cff2['bind']('status')['to'](this,'imageStatus'),_0x12cff2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x12cff2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x12cff2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x12cff2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3d0a90,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x12cff2,'position':_0x43adb5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x12cff2['focus']();},'onHide':()=>{_0x12cff2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xe61edb=>!F(_0xe61edb,_0x12cff2['element'])}});}['_loadImageInfo'](_0x5aced9,_0x4328d0){return C['getInfo'](_0x5aced9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x360d86=>{const {width:_0x279c02,height:_0x2f2ad1}=_0x360d86['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4328d0,this['imageDimension']={'width':_0x279c02,'height':_0x2f2ad1},this['imageId']=_0x5aced9;})['catch'](_0x4a72c6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a72c6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x110c06,_0x3f89dd){return this['_getImageAsFile'](_0x110c06)['then'](_0x33cb19=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3f89dd['signal'],'file':_0x33cb19,'onProgress':_0x1fe4e7=>{_0x1fe4e7&&_0x1fe4e7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1fe4e7['value']));}}))['then'](_0x17c29e=>{const {width:_0x27be4f,height:_0x386425}=_0x17c29e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17c29e['cdnUrl'],this['imageDimension']={'width':_0x27be4f,'height':_0x386425},this['imageId']=_0x17c29e['uuid'],this['imageUploadProgress']=null;const _0x339552=_0x110c06['getAttribute']('src');this['_imageCache']['set'](_0x339552,{'id':_0x17c29e['uuid'],'url':_0x17c29e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xbc82d7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xbc82d7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3c217b,_0x2d850f){_0x3c217b['on']('apply',(_0x3f9efa,_0x5cf8b6)=>{this['_replaceImage'](_0x2d850f,_0x5cf8b6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3c217b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3c217b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1af6bf,_0x7983cb,_0x13a149){const _0x12697d=this['_editor'],{width:_0x2c655e,height:_0x7e045}=A(_0x7983cb,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4a1e77,imageSources:_0x33f19d}=E(_0x7983cb,_0x2c655e);_0x12697d['model']['change'](_0x1d4d0c=>{if('$graveyard'===_0x1af6bf['root']['rootName']){_0x12697d['execute']('insertImage',{'imageType':_0x1af6bf['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1af6bf['getAttributes']()),'uploadcareImageId':_0x13a149,'src':_0x4a1e77,'sources':_0x33f19d,'width':_0x2c655e,'height':_0x7e045}});const _0x23ae3b=_0x1af6bf['getChildren']();_0x1af6bf=_0x12697d['model']['document']['selection']['getSelectedElement']();for(const _0x10aace of _0x23ae3b)_0x1d4d0c['append'](_0x1d4d0c['cloneElement'](_0x10aace),_0x1af6bf);}else _0x1d4d0c['setSelection'](_0x1af6bf,'on'),_0x12697d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1af6bf['getAttributes']()),'uploadcareImageId':_0x13a149,'src':_0x4a1e77,'sources':_0x33f19d,'width':_0x2c655e,'height':_0x7e045},_0x1af6bf);_0x1d4d0c['setSelection'](_0x1af6bf,'on');});}async['_getImageAsFile'](_0xc0cbe9){const _0x317468=_0xfc21a3['window'],_0x1c7c5c=_0xfc21a3['document']['location']['href'],_0x10359d=new _0x317468['URL'](_0xc0cbe9['getAttribute']('src'),_0x1c7c5c);if('data:'===_0x10359d['protocol']){const _0x41497e=_0x10359d['href']['split'](','),_0x5e942a=_0x41497e[0x0]['match'](/:(.*?);/)[0x1],_0x45b57f=_0x5e942a['split']('/')[0x1],_0x24cd37=_0x317468['atob'](_0x41497e[_0x41497e['length']-0x1]);let _0x5e701b=_0x24cd37['length'];const _0x217eee=new _0x317468['Uint8Array'](_0x5e701b);for(;_0x5e701b--;)_0x217eee[_0x5e701b]=_0x24cd37['charCodeAt'](_0x5e701b);return new _0x317468['File']([_0x217eee],'image.'+_0x45b57f,{'type':_0x5e942a});}const _0x18c2c5=_0x10359d['href']['split']('/'),_0x5d5408=_0x18c2c5[_0x18c2c5['length']-0x1],_0x5e5a7a=_0x5d5408['split']('.')[0x1];return _0x317468['fetch'](_0x10359d['href'])['then'](_0x440493=>_0x440493['clone']()['blob']())['then'](_0x1282a0=>new _0x317468['File']([_0x1282a0],_0x5d5408,{'type':'image/'+_0x5e5a7a}));}}class J extends _0xfe0b04{['imageEditController'];static get['requires'](){return[_0x5beb81];}['_isEditable'];constructor(_0x2fb198){super(_0x2fb198),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x185130){const _0x4ac2ed=V(_0x185130);return _0x61b1ac=>!(!_0x61b1ac||!_0x61b1ac['is']('element','imageBlock')&&!_0x61b1ac['is']('element','imageInline'))&&(!!_0x61b1ac['hasAttribute']('uploadcareImageId')||!!_0x61b1ac['hasAttribute']('src')&&_0x4ac2ed(_0x61b1ac['getAttribute']('src')));}(_0x2fb198['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x382629=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x382629);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x42daba=this['editor']['model']['document']['selection']['getSelectedElement']();_0x42daba&&(_0x42daba['is']('element','imageBlock')||_0x42daba['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x5beb81),_0x42daba),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xfe0b04{['refresh'](){const _0x20bd50=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x20bd50&&(_0x20bd50['is']('element','imageBlock')||_0x20bd50['is']('element','imageInline')));}['execute'](_0x356900){const _0x24b428=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x6e0ee4=>{_0x6e0ee4['setAttributes'](_0x356900,_0x24b428),_0x6e0ee4['removeAttribute']('srcset',_0x24b428),_0x6e0ee4['removeAttribute']('sizes',_0x24b428);});}}class g extends _0x346009{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x44616c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3f5ceb}=this;_0x3f5ceb['commands']['add']('uploadcareImageEdit',new J(_0x3f5ceb)),_0x3f5ceb['commands']['add']('uploadcareImageReplace',new O(_0x3f5ceb));}}class j extends _0x346009{['_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 _0x759e1e=this['editor'];_0x759e1e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4f3e1b=>{const _0x4a1caf=_0x759e1e['commands']['get']('uploadcareImageEdit'),_0x2fcf26=new _0x6245c7(_0x4f3e1b),t=_0x4f3e1b['t'];return _0x2fcf26['set']({'icon':_0x3d0a90,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2fcf26['bind']('isEnabled')['to'](_0x4a1caf),_0x2fcf26['bind']('isOn')['to'](_0x4a1caf,'isActive'),this['listenTo'](_0x2fcf26,'execute',()=>{_0x759e1e['execute']('uploadcareImageEdit'),_0x759e1e['editing']['view']['focus']();}),_0x2fcf26;}),this['_initConfig']();}['_initConfig'](){const _0x4ea24a=_0x52c709(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4ea24a),this['listenTo'](this['editor'],'destroy',()=>{_0x4ea24a['remove']();});}}class P extends _0x346009{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "45.1.0-alpha.4",
3
+ "version": "45.1.0-alpha.5",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "45.1.0-alpha.4",
27
- "@ckeditor/ckeditor5-icons": "45.1.0-alpha.4",
28
- "@ckeditor/ckeditor5-image": "45.1.0-alpha.4",
29
- "@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.4",
30
- "@ckeditor/ckeditor5-ui": "45.1.0-alpha.4",
31
- "@ckeditor/ckeditor5-upload": "45.1.0-alpha.4",
32
- "@ckeditor/ckeditor5-utils": "45.1.0-alpha.4",
33
- "ckeditor5": "45.1.0-alpha.4",
26
+ "@ckeditor/ckeditor5-core": "45.1.0-alpha.5",
27
+ "@ckeditor/ckeditor5-icons": "45.1.0-alpha.5",
28
+ "@ckeditor/ckeditor5-image": "45.1.0-alpha.5",
29
+ "@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.5",
30
+ "@ckeditor/ckeditor5-ui": "45.1.0-alpha.5",
31
+ "@ckeditor/ckeditor5-upload": "45.1.0-alpha.5",
32
+ "@ckeditor/ckeditor5-utils": "45.1.0-alpha.5",
33
+ "ckeditor5": "45.1.0-alpha.5",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b88c4=_0x55b3;(function(_0x29087d,_0x2e51df){const _0x5377f8=_0x55b3,_0x1ba25d=_0x29087d();while(!![]){try{const _0x3f14c1=parseInt(_0x5377f8(0x16f))/0x1+-parseInt(_0x5377f8(0x156))/0x2*(-parseInt(_0x5377f8(0x15d))/0x3)+-parseInt(_0x5377f8(0x189))/0x4+parseInt(_0x5377f8(0x171))/0x5*(-parseInt(_0x5377f8(0x15e))/0x6)+-parseInt(_0x5377f8(0x16a))/0x7*(parseInt(_0x5377f8(0x16d))/0x8)+-parseInt(_0x5377f8(0x146))/0x9+parseInt(_0x5377f8(0x147))/0xa;if(_0x3f14c1===_0x2e51df)break;else _0x1ba25d['push'](_0x1ba25d['shift']());}catch(_0x8d83b6){_0x1ba25d['push'](_0x1ba25d['shift']());}}}(_0x47e2,0x32d80));import{Plugin as _0x24323c}from'ckeditor5/src/core.js';function _0x55b3(_0x68ae3e,_0x57f324){const _0x47e21e=_0x47e2();return _0x55b3=function(_0x55b3c9,_0x1cacbc){_0x55b3c9=_0x55b3c9-0x13a;let _0x4e8cf1=_0x47e21e[_0x55b3c9];return _0x4e8cf1;},_0x55b3(_0x68ae3e,_0x57f324);}import{Dialog as _0x1aeaf6}from'ckeditor5/src/ui.js';import{createElement as _0x4c239e,global as _0x3313a6,uid as _0x21b39c}from'ckeditor5/src/utils.js';import _0x132a16 from'./uploadcarecommand.js';import _0x24cec3 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x40bc5f}from'./utils/editingutils.js';function _0x47e2(){const _0x5a5664=['getSelectedElement','8xbidmR','configElement','302818rRDhcQ','for','218585xLVTeM','attributeToAttribute','ctxElement','commands','appendChild','init','_initCtx','\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','_initConversion','uploadcareImageReplace','imageBlock','afterInit','input[uploadcare-file-input]','uploadcare.uploader','href','uploadcare.pubkey','closeMax','requires','render','uc-config','uploader','upcast','document','_configElement','584556BxNyQC','get','destroy','data-uc-image-id','editor','model','querySelector','PictureEditing','contentLanguage','uploadcareImageId','removeAttribute','downcast','isOfficialPlugin','getAttribute','extend','pluginName','uploadcare','764856KSSqbB','6148430UQUMtt','cleanupImage','schema','execute','body','conversion','config','isPremiumPlugin','uc-upload-ctx-provider','_initSchema','imageInline','selection','listenTo','elementToAttribute','map','68674qBPwog','once','#uc-icon-arrow-down','iconHrefResolver','_initImageProcessingIndicator','fromCharCode','_initConfig','3ajQHcE','54PFvrus','_ctxElement','replaceImageSource','remove','UploadcareEditing','view','insertImage','editing','true','locale','join','add','834162YmWPIh','isRegistered'];_0x47e2=function(){return _0x5a5664;};return _0x47e2();}export default class i extends _0x24323c{[_0x3b88c4(0x188)]=null;[_0x3b88c4(0x15f)]=null;static get[_0x3b88c4(0x144)](){const _0x156946=_0x3b88c4;return _0x156946(0x162);}static get[_0x3b88c4(0x182)](){const _0x21eb1a=_0x3b88c4;return[_0x21eb1a(0x13c),_0x24cec3,_0x1aeaf6];}static get[_0x3b88c4(0x141)](){return!0x0;}static get[_0x3b88c4(0x14e)](){return!0x0;}get[_0x3b88c4(0x16e)](){const _0x4dfb83=_0x3b88c4;return this[_0x4dfb83(0x188)];}get[_0x3b88c4(0x173)](){const _0x3a7a79=_0x3b88c4;return this[_0x3a7a79(0x15f)];}[_0x3b88c4(0x176)](){const _0x2e3877=_0x3b88c4,_0x5bf0c4=this[_0x2e3877(0x18d)];_0x5bf0c4[_0x2e3877(0x174)][_0x2e3877(0x169)](_0x2e3877(0x145),new _0x132a16(_0x5bf0c4));}[_0x3b88c4(0x17c)](){const _0x5192c6=_0x3b88c4;this[_0x5192c6(0x150)](),this[_0x5192c6(0x179)](),this[_0x5192c6(0x15c)](),this[_0x5192c6(0x177)](),this[_0x5192c6(0x15a)](),this[_0x5192c6(0x153)](this[_0x5192c6(0x18d)],_0x5192c6(0x18b),()=>{const _0x5b07c1=_0x5192c6;this[_0x5b07c1(0x188)]&&(this[_0x5b07c1(0x188)][_0x5b07c1(0x161)](),this[_0x5b07c1(0x188)]=null),this[_0x5b07c1(0x15f)]&&(this[_0x5b07c1(0x15f)][_0x5b07c1(0x161)](),this[_0x5b07c1(0x15f)]=null);const _0x40215c=_0x3313a6[_0x5b07c1(0x187)][_0x5b07c1(0x13b)](_0x5b07c1(0x17d));_0x40215c&&_0x40215c[_0x5b07c1(0x161)]();}),async function(_0x1a2a6f){const _0x121e6f=_0x4f1aa8([0x35,0x70,0x33,0x34,0x56,0x6c,0x74,0x64,0x5a,0x73,0x63,0x79,0x6f,0x49,0x69,0x61,0x68,0x65,0x32,0x44,0x4e,0x36,0x4a,0x72,0x6a,0x6e,0x66,0x67,0x50,0x4d,0x41,0x46,0x53,0x75,0x76,0x43,0x6b,0x54,0x31,0x42,0x78,0x4f,0x48,0x38,0x4c,0x6d,0x4b,0x51,0x45,0x57,0x58,0x47,0x30,0x52,0x77,0x39,0x37,0x59,0x7a,0x55,0x62,0x71]),_0x270685=0x5d94eb28,_0xb85e3f=0x5d938ca0^_0x270685,_0x168db3=window[_0x4f1aa8([0x44,0x61,0x74,0x65])][_0x4f1aa8([0x6e,0x6f,0x77])](),_0xdaa827=_0x1a2a6f[_0x4f1aa8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b388f=new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x170ab0=>{_0xdaa827[_0x4f1aa8([0x6f,0x6e,0x63,0x65])](_0x4f1aa8([0x72,0x65,0x61,0x64,0x79]),_0x170ab0);}),_0x4d3dad={[_0x4f1aa8([0x6b,0x74,0x79])]:_0x4f1aa8([0x45,0x43]),[_0x4f1aa8([0x75,0x73,0x65])]:_0x4f1aa8([0x73,0x69,0x67]),[_0x4f1aa8([0x63,0x72,0x76])]:_0x4f1aa8([0x50,0x2d,0x32,0x35,0x36]),[_0x4f1aa8([0x78])]:_0x4f1aa8([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]),[_0x4f1aa8([0x79])]:_0x4f1aa8([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]),[_0x4f1aa8([0x61,0x6c,0x67])]:_0x4f1aa8([0x45,0x53,0x32,0x35,0x36])},_0x447d1c=_0xdaa827[_0x4f1aa8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f1aa8([0x67,0x65,0x74])](_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d9cbe(){let _0x44ee74,_0x340136=null,_0x275157=null;try{if(_0x447d1c==_0x4f1aa8([0x47,0x50,0x4c]))return _0x4f1aa8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44ee74=_0x1fd37f(),!_0x44ee74)return _0x4f1aa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44ee74[_0x4f1aa8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x275157=_0x50500a(_0x44ee74[_0x4f1aa8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44ee74[_0x4f1aa8([0x6a,0x74,0x69])])),await _0x3ab7e3()?_0x4ecb94()?_0x5489de()?_0x4f1aa8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a04a2()?(_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f1aa8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x340136=_0x2fd5c5(_0x4f1aa8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f1aa8([0x74,0x72,0x69,0x61,0x6c])&&(_0x340136=_0x2fd5c5(_0x4f1aa8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17ceac()):_0x4f1aa8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f1aa8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f1aa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x587b6d){return _0x4f1aa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5489de(){const _0x12beb9=[_0x4f1aa8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f1aa8([0x74,0x72,0x69,0x61,0x6c])][_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x168db3/0x3e8:0xe10*_0xb85e3f;return _0x44ee74[_0x4f1aa8([0x65,0x78,0x70])]<_0x12beb9;}function _0x4ecb94(){const _0x75f783=_0x44ee74[_0x4f1aa8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x75f783&&(!!_0x75f783[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1aa8([0x2a]))||!!_0x75f783[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1aa8([0x55,0x50,0x4c,0x43])));}function _0x4a04a2(){const _0x42d492=_0x55b3,_0x5f50ae=_0x44ee74[_0x4f1aa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f50ae||0x0==_0x5f50ae[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x123cc1}=new URL(window[_0x4f1aa8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x42d492(0x17f)]);if(_0x5f50ae[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123cc1))return!0x0;const _0x4207ee=_0x123cc1[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e]));return _0x5f50ae[_0x4f1aa8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x368c47=>_0x368c47[_0x4f1aa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1aa8([0x2a])))[_0x4f1aa8([0x6d,0x61,0x70])](_0x35bd1a=>_0x35bd1a[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e])))[_0x4f1aa8([0x73,0x6f,0x6d,0x65])](_0x5f48e9=>_0x4207ee[_0x4f1aa8([0x65,0x76,0x65,0x72,0x79])]((_0x52949e,_0x53f222)=>_0x5f48e9[_0x53f222]===_0x52949e||_0x5f48e9[_0x53f222]===_0x4f1aa8([0x2a])));}function _0x17ceac(){return _0x340136&&_0x275157?new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x333419,_0x5b8910)=>{_0x340136[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x333419,_0x5b8910),_0x275157[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x32d5d9=>{_0x32d5d9!=_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64])&&_0x333419(_0x32d5d9);},_0x5b8910);}):_0x340136||_0x275157||_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50500a(_0x3e1aeb,_0x1ca6bb){return new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4699bc=>{if(_0x1a0f8c())return _0x4699bc(_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64]));_0x2e95cc(),_0xdaa827[_0x4f1aa8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f1aa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c1bcc=!0x1;const _0x41a0ec=_0x21b39c();function _0x2c3bdf(_0x5ccebe){return!!_0x5ccebe&&(typeof _0x5ccebe===_0x4f1aa8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ccebe===_0x4f1aa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ccebe[_0x4f1aa8([0x74,0x68,0x65,0x6e])]===_0x4f1aa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ccebe[_0x4f1aa8([0x63,0x61,0x74,0x63,0x68])]===_0x4f1aa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40d58d(_0x50c91d){_0x1b126d(_0x50c91d)[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x5c89d4=>{if(!_0x5c89d4||_0x5c89d4[_0x4f1aa8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f1aa8([0x6f,0x6b]))return _0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x222392(_0x30e2c6(_0x41a0ec+_0x1ca6bb))!=_0x5c89d4[_0x4f1aa8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x285a56=>(_0x360978(),_0x285a56),()=>{const _0x1d9ed2=_0x27f1e4();return null==_0x1d9ed2?(_0x360978(),_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64])):_0x4f1aa8(_0x168db3-_0x1d9ed2>(0x79986f28^_0x270685)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x4699bc)[_0x4f1aa8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4699bc(_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x269027=0x5da205a8^_0x270685;function _0x360978(){const _0x4510dd=_0x4f1aa8([0x6c,0x6c,0x63,0x74,0x2d])+_0x222392(_0x30e2c6(_0x3e1aeb)),_0x8d9edb=_0xabe0ad(_0x222392(window[_0x4f1aa8([0x4d,0x61,0x74,0x68])][_0x4f1aa8([0x63,0x65,0x69,0x6c])](_0x168db3/_0x269027)));window[_0x4f1aa8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f1aa8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4510dd,_0x8d9edb);}function _0x27f1e4(){const _0x26be45=_0x4f1aa8([0x6c,0x6c,0x63,0x74,0x2d])+_0x222392(_0x30e2c6(_0x3e1aeb)),_0x1e336c=window[_0x4f1aa8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f1aa8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26be45);return _0x1e336c?window[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xabe0ad(_0x1e336c),0x10)*_0x269027:null;}function _0x1b126d(_0x22bbb4){return new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3918e8,_0x34520f)=>{_0x22bbb4[_0x4f1aa8([0x74,0x68,0x65,0x6e])](_0x3918e8,_0x34520f),window[_0x4f1aa8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34520f,0x5d953fe8^_0x270685);});}}_0xdaa827[_0x4f1aa8([0x6f,0x6e])](_0x4f1aa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46f806,_0x18065d)=>{if(_0x18065d[0x0]!=_0x3e1aeb)return _0x4699bc(_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18065d[0x1]={..._0x18065d[0x1],[_0x4f1aa8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41a0ec};},{[_0x4f1aa8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f1aa8([0x68,0x69,0x67,0x68])}),_0xdaa827[_0x4f1aa8([0x6f,0x6e])](_0x4f1aa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a8132=>{_0x2c3bdf(_0x1a8132[_0x4f1aa8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c1bcc=!0x0,_0x40d58d(_0x1a8132[_0x4f1aa8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f1aa8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f1aa8([0x6c,0x6f,0x77])}),_0x4b388f[_0x4f1aa8([0x74,0x68,0x65,0x6e])](()=>{_0x1c1bcc||_0x4699bc(_0x4f1aa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a0f8c(){return _0xdaa827[_0x4f1aa8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f1aa8([0x76,0x69,0x65,0x77])][_0x4f1aa8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f1aa8([0x61,0x75,0x74,0x6f]);}function _0x2e95cc(){_0xdaa827[_0x4f1aa8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f1aa8([0x76,0x69,0x65,0x77])][_0x4f1aa8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f1aa8([0x61,0x75,0x74,0x6f]);}}function _0x2fd5c5(_0x516032){const _0x2df04a=[new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x126fbf=>setTimeout(_0x126fbf,0x5d9dd5e4^_0x270685)),_0x4b388f[_0x4f1aa8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x470908=>{let _0x2fdb11=0x0;_0xdaa827[_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1aa8([0x6f,0x6e])](_0x4f1aa8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d7d25,_0x42857a)=>{_0x42857a[0x0][_0x4f1aa8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2fdb11++,_0x2fdb11==(0x5d94ead0^_0x270685)&&(_0x470908(),_0x4d7d25[_0x4f1aa8([0x6f,0x66,0x66])]());});}))];return window[_0x4f1aa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f1aa8([0x72,0x61,0x63,0x65])](_0x2df04a)[_0x4f1aa8([0x74,0x68,0x65,0x6e])](()=>_0x516032);}async function _0x1934e1(){await _0x4b388f,_0xdaa827[_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1aa8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7f05fe,_0xdaa827[_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1aa8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7f05fe,_0xdaa827[_0x4f1aa8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f1aa8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x231cc2(_0x4c7268){const _0x184bb3=_0x48fd45();_0xdaa827[_0x184bb3]=_0x4f1aa8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c7268,_0x4c7268!=_0x4f1aa8([0x56,0x61,0x6c,0x69,0x64])&&_0x1934e1();}function _0x48fd45(){const _0x5b264b=window[_0x4f1aa8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f1aa8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f1aa8([0x6e,0x6f,0x77])]())[_0x4f1aa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f1aa8([0x2e]),'');let _0x27edc5=_0x4f1aa8([0x70]);for(let _0x5e71d5=0x0;_0x5e71d5<_0x5b264b[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e71d5+=0x2){let _0x239a3b=window[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b264b[_0x4f1aa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e71d5,_0x5e71d5+0x2));_0x239a3b>=_0x121e6f[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x239a3b-=_0x121e6f[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27edc5+=_0x121e6f[_0x239a3b];}return _0x27edc5;}function _0x1fd37f(){const _0x150a61=_0x447d1c[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e]));if(0x3!=_0x150a61[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a4de0(_0x150a61[0x1]);function _0x2a4de0(_0x3b7c03){const _0x1e302c=_0x15b0cb(_0x3b7c03);return _0x1e302c&&_0x5a87b5()?_0x1e302c:null;function _0x5a87b5(){const _0x5164a0=_0x1e302c[_0x4f1aa8([0x6a,0x74,0x69])],_0x131637=window[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5164a0[_0x4f1aa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5164a0[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5e01b5={..._0x1e302c,[_0x4f1aa8([0x6a,0x74,0x69])]:_0x5164a0[_0x4f1aa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5164a0[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5e01b5[_0x4f1aa8([0x76,0x63])],_0x30e2c6(_0x5e01b5)==_0x131637;}}}async function _0x3ab7e3(){let _0x5ed08f=!0x0;try{const _0xe2b1ae=_0x447d1c[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])](_0x4f1aa8([0x2e])),[_0x21e0a3,_0x5fc89d,_0x1a38d0]=_0xe2b1ae;return _0x56f5ea(_0x21e0a3),await _0xc77619(_0x21e0a3,_0x5fc89d,_0x1a38d0),_0x5ed08f;}catch(_0x3ee4ac){return!0x1;}function _0x56f5ea(_0xce7ac7){const _0x37c84c=_0x15b0cb(_0xce7ac7);_0x37c84c&&_0x37c84c[_0x4f1aa8([0x61,0x6c,0x67])]==_0x4f1aa8([0x45,0x53,0x32,0x35,0x36])||(_0x5ed08f=!0x1);}async function _0xc77619(_0x3f7c8f,_0x330156,_0x5ea553){const _0x20b677=window[_0x4f1aa8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f1aa8([0x66,0x72,0x6f,0x6d])](_0x5620a7(_0x5ea553),_0x2a3894=>_0x2a3894[_0x4f1aa8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2eeb15=new window[(_0x4f1aa8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f1aa8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f7c8f+_0x4f1aa8([0x2e])+_0x330156),_0x3ea202=window[_0x4f1aa8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f1aa8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ea202)return;const _0x444337=await _0x3ea202[_0x4f1aa8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f1aa8([0x6a,0x77,0x6b]),_0x4d3dad,{[_0x4f1aa8([0x6e,0x61,0x6d,0x65])]:_0x4f1aa8([0x45,0x43,0x44,0x53,0x41]),[_0x4f1aa8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f1aa8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f1aa8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ea202[_0x4f1aa8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f1aa8([0x6e,0x61,0x6d,0x65])]:_0x4f1aa8([0x45,0x43,0x44,0x53,0x41]),[_0x4f1aa8([0x68,0x61,0x73,0x68])]:{[_0x4f1aa8([0x6e,0x61,0x6d,0x65])]:_0x4f1aa8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x444337,_0x20b677,_0x2eeb15)||(_0x5ed08f=!0x1);}}function _0x15b0cb(_0x5f46f6){return _0x5f46f6[_0x4f1aa8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f1aa8([0x65,0x79]))?JSON[_0x4f1aa8([0x70,0x61,0x72,0x73,0x65])](_0x5620a7(_0x5f46f6)):null;}function _0x5620a7(_0x539412){return window[_0x4f1aa8([0x61,0x74,0x6f,0x62])](_0x539412[_0x4f1aa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f1aa8([0x2b]))[_0x4f1aa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f1aa8([0x2f])));}function _0x30e2c6(_0x572fec){let _0x5e8f86=0x1505;function _0x715af(_0x5e7f77){for(let _0x4035cf=0x0;_0x4035cf<_0x5e7f77[_0x4f1aa8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4035cf++){const _0x1e10f8=_0x5e7f77[_0x4f1aa8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4035cf);_0x5e8f86=(_0x5e8f86<<0x5)+_0x5e8f86+_0x1e10f8,_0x5e8f86&=_0x5e8f86;}}function _0x1b6cbc(_0xc269e){Array[_0x4f1aa8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc269e)?_0xc269e[_0x4f1aa8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b6cbc):_0xc269e&&typeof _0xc269e==_0x4f1aa8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f1aa8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc269e)[_0x4f1aa8([0x73,0x6f,0x72,0x74])]()[_0x4f1aa8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x95ac4,_0x3833d1])=>{_0x715af(_0x95ac4),_0x1b6cbc(_0x3833d1);}):_0x715af(window[_0x4f1aa8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc269e));}return _0x1b6cbc(_0x572fec),_0x5e8f86>>>0x0;}function _0x222392(_0x438e92){return _0x438e92[_0x4f1aa8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f1aa8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f1aa8([0x30]));}function _0xabe0ad(_0x584b3b){return _0x584b3b[_0x4f1aa8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f1aa8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f1aa8([0x6a,0x6f,0x69,0x6e])]('');}function _0x7f05fe(){}function _0x4f1aa8(_0x76398f){const _0x477e7c=_0x55b3;return _0x76398f[_0x477e7c(0x155)](_0x36402b=>String[_0x477e7c(0x15b)](_0x36402b))[_0x477e7c(0x168)]('');}_0x231cc2(await _0x1d9cbe());}(this);}[_0x3b88c4(0x150)](){const _0x281dd1=_0x3b88c4,_0x3009e0=this[_0x281dd1(0x18d)][_0x281dd1(0x13a)][_0x281dd1(0x149)];_0x3009e0[_0x281dd1(0x16b)](_0x281dd1(0x17b))&&_0x3009e0[_0x281dd1(0x143)](_0x281dd1(0x17b),{'allowAttributes':[_0x281dd1(0x13e)]}),_0x3009e0[_0x281dd1(0x16b)](_0x281dd1(0x151))&&_0x3009e0[_0x281dd1(0x143)](_0x281dd1(0x151),{'allowAttributes':[_0x281dd1(0x13e)]});}[_0x3b88c4(0x179)](){const _0x3c3255=_0x3b88c4,_0x123914=this[_0x3c3255(0x18d)];_0x123914[_0x3c3255(0x14c)][_0x3c3255(0x170)](_0x3c3255(0x140))[_0x3c3255(0x172)]({'model':_0x3c3255(0x13e),'view':_0x3c3255(0x18c)}),_0x123914[_0x3c3255(0x14c)][_0x3c3255(0x170)](_0x3c3255(0x186))[_0x3c3255(0x154)]({'model':{'key':_0x3c3255(0x13e),'value':_0x454743=>_0x454743[_0x3c3255(0x142)](_0x3c3255(0x18c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x297601=_0x123914[_0x3c3255(0x174)][_0x3c3255(0x18a)](_0x3c3255(0x160));_0x297601&&this[_0x3c3255(0x153)](_0x297601,_0x3c3255(0x148),(_0x1c8ba1,[_0x1b5888,_0x3ef5af])=>{const _0x3c9ae1=_0x3c3255;_0x1b5888[_0x3c9ae1(0x13f)](_0x3c9ae1(0x13e),_0x3ef5af);});}[_0x3b88c4(0x15c)](){const _0xf0b20e=_0x3b88c4,_0x419e82=this[_0xf0b20e(0x18d)][_0xf0b20e(0x14d)][_0xf0b20e(0x18a)](_0xf0b20e(0x17e))||{},_0x325b31=this[_0xf0b20e(0x18d)][_0xf0b20e(0x14d)][_0xf0b20e(0x18a)](_0xf0b20e(0x180))||'';this[_0xf0b20e(0x188)]=_0x4c239e(_0x3313a6[_0xf0b20e(0x187)],_0xf0b20e(0x184),{..._0x419e82,'pubkey':_0x325b31,'ctx-name':_0xf0b20e(0x185),'sourceList':'','imgOnly':_0xf0b20e(0x166),'removeCopyright':_0xf0b20e(0x166),'localeName':this[_0xf0b20e(0x18d)][_0xf0b20e(0x167)][_0xf0b20e(0x13d)],'externalSourcesEmbedCss':_0xf0b20e(0x178)}),this[_0xf0b20e(0x188)][_0xf0b20e(0x159)]=_0x56c51c=>{const _0x55f2a9=_0xf0b20e;if(_0x55f2a9(0x181)==_0x56c51c)return _0x55f2a9(0x158);},_0x3313a6[_0xf0b20e(0x187)][_0xf0b20e(0x14b)][_0xf0b20e(0x175)](this[_0xf0b20e(0x188)]);}[_0x3b88c4(0x177)](){const _0x3c6a80=_0x3b88c4;this[_0x3c6a80(0x15f)]=_0x4c239e(_0x3313a6[_0x3c6a80(0x187)],_0x3c6a80(0x14f),{'ctx-name':_0x3c6a80(0x185)}),_0x3313a6[_0x3c6a80(0x187)][_0x3c6a80(0x14b)][_0x3c6a80(0x175)](this[_0x3c6a80(0x15f)]);}[_0x3b88c4(0x15a)](){const _0x5e6f76=_0x3b88c4,_0x3a63bf=this[_0x5e6f76(0x18d)][_0x5e6f76(0x174)][_0x5e6f76(0x18a)](_0x5e6f76(0x164));_0x3a63bf&&this[_0x5e6f76(0x153)](_0x3a63bf,_0x5e6f76(0x14a),()=>{const _0x5970ed=_0x5e6f76,_0x101044=this[_0x5970ed(0x18d)][_0x5970ed(0x13a)][_0x5970ed(0x187)][_0x5970ed(0x152)][_0x5970ed(0x16c)]();_0x101044&&_0x101044[_0x5970ed(0x142)](_0x5970ed(0x13e))&&this[_0x5970ed(0x18d)][_0x5970ed(0x165)][_0x5970ed(0x163)][_0x5970ed(0x157)](_0x5970ed(0x183),()=>{const _0x1d5af9=_0x5970ed;_0x40bc5f(this[_0x1d5af9(0x18d)],_0x101044);});});const _0xa657f8=this[_0x5e6f76(0x18d)][_0x5e6f76(0x174)][_0x5e6f76(0x18a)](_0x5e6f76(0x17a));_0xa657f8&&this[_0x5e6f76(0x153)](_0xa657f8,_0x5e6f76(0x14a),()=>{const _0x485eba=_0x5e6f76,_0x223d62=this[_0x485eba(0x18d)][_0x485eba(0x13a)][_0x485eba(0x187)][_0x485eba(0x152)][_0x485eba(0x16c)]();_0x223d62&&_0x223d62[_0x485eba(0x142)](_0x485eba(0x13e))&&this[_0x485eba(0x18d)][_0x485eba(0x165)][_0x485eba(0x163)][_0x485eba(0x157)](_0x485eba(0x183),()=>{const _0x3db88d=_0x485eba;_0x40bc5f(this[_0x3db88d(0x18d)],_0x223d62);});});}}
23
+ const _0x562a78=_0x341c;(function(_0x18ba93,_0x5c38ad){const _0x1ca0e7=_0x341c,_0x52ba72=_0x18ba93();while(!![]){try{const _0x48890c=parseInt(_0x1ca0e7(0x13a))/0x1*(parseInt(_0x1ca0e7(0x142))/0x2)+-parseInt(_0x1ca0e7(0x12f))/0x3+parseInt(_0x1ca0e7(0x145))/0x4*(-parseInt(_0x1ca0e7(0x137))/0x5)+-parseInt(_0x1ca0e7(0x173))/0x6*(-parseInt(_0x1ca0e7(0x158))/0x7)+-parseInt(_0x1ca0e7(0x131))/0x8+-parseInt(_0x1ca0e7(0x127))/0x9*(-parseInt(_0x1ca0e7(0x149))/0xa)+-parseInt(_0x1ca0e7(0x167))/0xb*(-parseInt(_0x1ca0e7(0x132))/0xc);if(_0x48890c===_0x5c38ad)break;else _0x52ba72['push'](_0x52ba72['shift']());}catch(_0x11ac47){_0x52ba72['push'](_0x52ba72['shift']());}}}(_0x53c2,0x5eeba));import{Plugin as _0x46dc4e}from'ckeditor5/src/core.js';import{Dialog as _0x230e78}from'ckeditor5/src/ui.js';import{createElement as _0x356fb4,global as _0x579542,uid as _0x1b46d6}from'ckeditor5/src/utils.js';function _0x341c(_0x45f2f8,_0x44036b){const _0x53c242=_0x53c2();return _0x341c=function(_0x341c35,_0x51c40e){_0x341c35=_0x341c35-0x11e;let _0x294e8f=_0x53c242[_0x341c35];return _0x294e8f;},_0x341c(_0x45f2f8,_0x44036b);}import _0x164e4e from'./uploadcarecommand.js';import _0x3bfda7 from'./uploadcareuploadadapter.js';function _0x53c2(){const _0x19bbb1=['uploadcare','href','5fDZBSI','imageBlock','afterInit','636703WLzmeD','upcast','requires','selection','closeMax','isPremiumPlugin','insertImage','for','2jMZKpL','uploadcare.uploader','iconHrefResolver','2271176jSSZQj','_initCtx','fromCharCode','schema','2510XccPJq','true','PictureEditing','attributeToAttribute','document','_initImageProcessingIndicator','elementToAttribute','_ctxElement','data-uc-image-id','editor','\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','config','replaceImageSource','editing','add','779457omouZe','get','join','querySelector','uploadcareImageReplace','listenTo','configElement','once','isRegistered','uploadcareImageId','_configElement','uploader','extend','uc-config','commands','4262005WumyHG','render','_initConfig','downcast','pluginName','model','cleanupImage','contentLanguage','uc-upload-ctx-provider','ctxElement','map','input[uploadcare-file-input]','18YiRfVU','_initSchema','_initConversion','#uc-icon-arrow-down','conversion','locale','UploadcareEditing','appendChild','init','destroy','5949QuYKRG','remove','isOfficialPlugin','imageInline','view','removeAttribute','getAttribute','body','1522698BccCkT','execute','3579384QUFhZk','24jwnKhU','uploadcare.pubkey','getSelectedElement'];_0x53c2=function(){return _0x19bbb1;};return _0x53c2();}import{showImageProcessingIndicator as _0x3d5b27}from'./utils/editingutils.js';export default class i extends _0x46dc4e{[_0x562a78(0x162)]=null;[_0x562a78(0x150)]=null;static get[_0x562a78(0x16b)](){const _0x30b648=_0x562a78;return _0x30b648(0x123);}static get[_0x562a78(0x13c)](){const _0x3b0935=_0x562a78;return[_0x3b0935(0x14b),_0x3bfda7,_0x230e78];}static get[_0x562a78(0x129)](){return!0x0;}static get[_0x562a78(0x13f)](){return!0x0;}get[_0x562a78(0x15e)](){const _0x937a8a=_0x562a78;return this[_0x937a8a(0x162)];}get[_0x562a78(0x170)](){const _0x2dbd68=_0x562a78;return this[_0x2dbd68(0x150)];}[_0x562a78(0x125)](){const _0x3adda7=_0x562a78,_0x21bef0=this[_0x3adda7(0x152)];_0x21bef0[_0x3adda7(0x166)][_0x3adda7(0x157)](_0x3adda7(0x135),new _0x164e4e(_0x21bef0));}[_0x562a78(0x139)](){const _0x8e6ac5=_0x562a78;this[_0x8e6ac5(0x11e)](),this[_0x8e6ac5(0x11f)](),this[_0x8e6ac5(0x169)](),this[_0x8e6ac5(0x146)](),this[_0x8e6ac5(0x14e)](),this[_0x8e6ac5(0x15d)](this[_0x8e6ac5(0x152)],_0x8e6ac5(0x126),()=>{const _0x4516ef=_0x8e6ac5;this[_0x4516ef(0x162)]&&(this[_0x4516ef(0x162)][_0x4516ef(0x128)](),this[_0x4516ef(0x162)]=null),this[_0x4516ef(0x150)]&&(this[_0x4516ef(0x150)][_0x4516ef(0x128)](),this[_0x4516ef(0x150)]=null);const _0x25b0d0=_0x579542[_0x4516ef(0x14d)][_0x4516ef(0x15b)](_0x4516ef(0x172));_0x25b0d0&&_0x25b0d0[_0x4516ef(0x128)]();}),async function(_0x1734e0){const _0x56d46a=_0xe57c50([0x5a,0x31,0x39,0x30,0x54,0x4e,0x79,0x49,0x6e,0x77,0x50,0x33,0x6f,0x4f,0x67,0x46,0x68,0x44,0x6c,0x47,0x56,0x37,0x70,0x58,0x48,0x42,0x7a,0x65,0x75,0x43,0x6a,0x57,0x72,0x51,0x59,0x4a,0x52,0x6b,0x32,0x41,0x53,0x76,0x63,0x78,0x36,0x45,0x74,0x55,0x73,0x69,0x62,0x4c,0x71,0x35,0x4d,0x66,0x34,0x38,0x64,0x4b,0x6d,0x61]),_0x1c0d8f=0x65b24ccd,_0x199963=0x65b52b6d^_0x1c0d8f,_0x5bcc16=window[_0xe57c50([0x44,0x61,0x74,0x65])][_0xe57c50([0x6e,0x6f,0x77])](),_0x34e944=_0x1734e0[_0xe57c50([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2299b0=new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1972bf=>{_0x34e944[_0xe57c50([0x6f,0x6e,0x63,0x65])](_0xe57c50([0x72,0x65,0x61,0x64,0x79]),_0x1972bf);}),_0x6a293={[_0xe57c50([0x6b,0x74,0x79])]:_0xe57c50([0x45,0x43]),[_0xe57c50([0x75,0x73,0x65])]:_0xe57c50([0x73,0x69,0x67]),[_0xe57c50([0x63,0x72,0x76])]:_0xe57c50([0x50,0x2d,0x32,0x35,0x36]),[_0xe57c50([0x78])]:_0xe57c50([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]),[_0xe57c50([0x79])]:_0xe57c50([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]),[_0xe57c50([0x61,0x6c,0x67])]:_0xe57c50([0x45,0x53,0x32,0x35,0x36])},_0x50d666=_0x34e944[_0xe57c50([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe57c50([0x67,0x65,0x74])](_0xe57c50([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58c9ec(){let _0x47ec4e,_0x19b6ab=null,_0x5a264a=null;try{if(_0x50d666==_0xe57c50([0x47,0x50,0x4c]))return _0xe57c50([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47ec4e=_0x2bcabc(),!_0x47ec4e)return _0xe57c50([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47ec4e[_0xe57c50([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a264a=_0xa9c0ee(_0x47ec4e[_0xe57c50([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47ec4e[_0xe57c50([0x6a,0x74,0x69])])),await _0x162ee3()?_0x5203e7()?_0x7bf171()?_0xe57c50([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7d317()?(_0x47ec4e[_0xe57c50([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe57c50([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19b6ab=_0x17534d(_0xe57c50([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47ec4e[_0xe57c50([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe57c50([0x74,0x72,0x69,0x61,0x6c])&&(_0x19b6ab=_0x17534d(_0xe57c50([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x325b60()):_0xe57c50([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe57c50([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe57c50([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x262bb3){return _0xe57c50([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7bf171(){const _0x42a0a6=[_0xe57c50([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe57c50([0x74,0x72,0x69,0x61,0x6c])][_0xe57c50([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47ec4e[_0xe57c50([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bcc16/0x3e8:0xe10*_0x199963;return _0x47ec4e[_0xe57c50([0x65,0x78,0x70])]<_0x42a0a6;}function _0x5203e7(){const _0x286d17=_0x47ec4e[_0xe57c50([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x286d17&&(!!_0x286d17[_0xe57c50([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe57c50([0x2a]))||!!_0x286d17[_0xe57c50([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe57c50([0x55,0x50,0x4c,0x43])));}function _0x7d317(){const _0x2fd533=_0x341c,_0x285989=_0x47ec4e[_0xe57c50([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x285989||0x0==_0x285989[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39876a}=new URL(window[_0xe57c50([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2fd533(0x136)]);if(_0x285989[_0xe57c50([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39876a))return!0x0;const _0x88b26b=_0x39876a[_0xe57c50([0x73,0x70,0x6c,0x69,0x74])](_0xe57c50([0x2e]));return _0x285989[_0xe57c50([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19f205=>_0x19f205[_0xe57c50([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe57c50([0x2a])))[_0xe57c50([0x6d,0x61,0x70])](_0x83b357=>_0x83b357[_0xe57c50([0x73,0x70,0x6c,0x69,0x74])](_0xe57c50([0x2e])))[_0xe57c50([0x73,0x6f,0x6d,0x65])](_0x3020a2=>_0x88b26b[_0xe57c50([0x65,0x76,0x65,0x72,0x79])]((_0x231882,_0x13bc5d)=>_0x3020a2[_0x13bc5d]===_0x231882||_0x3020a2[_0x13bc5d]===_0xe57c50([0x2a])));}function _0x325b60(){return _0x19b6ab&&_0x5a264a?new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x261080,_0x265ee2)=>{_0x19b6ab[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x261080,_0x265ee2),_0x5a264a[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x36a289=>{_0x36a289!=_0xe57c50([0x56,0x61,0x6c,0x69,0x64])&&_0x261080(_0x36a289);},_0x265ee2);}):_0x19b6ab||_0x5a264a||_0xe57c50([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa9c0ee(_0x955848,_0x10fa38){return new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b0035=>{if(_0x372400())return _0x4b0035(_0xe57c50([0x56,0x61,0x6c,0x69,0x64]));_0x589018(),_0x34e944[_0xe57c50([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe57c50([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25d3aa=!0x1;const _0x4c54f4=_0x1b46d6();function _0x1e3fa0(_0x2df2a6){return!!_0x2df2a6&&(typeof _0x2df2a6===_0xe57c50([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2df2a6===_0xe57c50([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2df2a6[_0xe57c50([0x74,0x68,0x65,0x6e])]===_0xe57c50([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2df2a6[_0xe57c50([0x63,0x61,0x74,0x63,0x68])]===_0xe57c50([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cf6ba(_0x243dc1){_0x582bd8(_0x243dc1)[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x37ef62=>{if(!_0x37ef62||_0x37ef62[_0xe57c50([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe57c50([0x6f,0x6b]))return _0xe57c50([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42908a(_0x267de1(_0x4c54f4+_0x10fa38))!=_0x37ef62[_0xe57c50([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe57c50([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe57c50([0x56,0x61,0x6c,0x69,0x64]);})[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x265d57=>(_0x3f0227(),_0x265d57),()=>{const _0xedb68a=_0x3d872d();return null==_0xedb68a?(_0x3f0227(),_0xe57c50([0x56,0x61,0x6c,0x69,0x64])):_0xe57c50(_0x5bcc16-_0xedb68a>(0x41bec8cd^_0x1c0d8f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x4b0035)[_0xe57c50([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b0035(_0xe57c50([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3177b9=0x6584a24d^_0x1c0d8f;function _0x3f0227(){const _0x38dbc9=_0xe57c50([0x6c,0x6c,0x63,0x74,0x2d])+_0x42908a(_0x267de1(_0x955848)),_0x5bcf2d=_0x2ea5e4(_0x42908a(window[_0xe57c50([0x4d,0x61,0x74,0x68])][_0xe57c50([0x63,0x65,0x69,0x6c])](_0x5bcc16/_0x3177b9)));window[_0xe57c50([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe57c50([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38dbc9,_0x5bcf2d);}function _0x3d872d(){const _0x58bd3c=_0xe57c50([0x6c,0x6c,0x63,0x74,0x2d])+_0x42908a(_0x267de1(_0x955848)),_0x34275c=window[_0xe57c50([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe57c50([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58bd3c);return _0x34275c?window[_0xe57c50([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ea5e4(_0x34275c),0x10)*_0x3177b9:null;}function _0x582bd8(_0x361167){return new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x532d78,_0x4e7276)=>{_0x361167[_0xe57c50([0x74,0x68,0x65,0x6e])](_0x532d78,_0x4e7276),window[_0xe57c50([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e7276,0x65b3980d^_0x1c0d8f);});}}_0x34e944[_0xe57c50([0x6f,0x6e])](_0xe57c50([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x414900,_0x4aeda1)=>{if(_0x4aeda1[0x0]!=_0x955848)return _0x4b0035(_0xe57c50([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4aeda1[0x1]={..._0x4aeda1[0x1],[_0xe57c50([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c54f4};},{[_0xe57c50([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe57c50([0x68,0x69,0x67,0x68])}),_0x34e944[_0xe57c50([0x6f,0x6e])](_0xe57c50([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40aa1f=>{_0x1e3fa0(_0x40aa1f[_0xe57c50([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25d3aa=!0x0,_0x1cf6ba(_0x40aa1f[_0xe57c50([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe57c50([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe57c50([0x6c,0x6f,0x77])}),_0x2299b0[_0xe57c50([0x74,0x68,0x65,0x6e])](()=>{_0x25d3aa||_0x4b0035(_0xe57c50([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x372400(){return _0x34e944[_0xe57c50([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe57c50([0x76,0x69,0x65,0x77])][_0xe57c50([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe57c50([0x61,0x75,0x74,0x6f]);}function _0x589018(){_0x34e944[_0xe57c50([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe57c50([0x76,0x69,0x65,0x77])][_0xe57c50([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe57c50([0x61,0x75,0x74,0x6f]);}}function _0x17534d(_0xe4bd54){const _0x465bd2=[new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2545fa=>setTimeout(_0x2545fa,0x65bb7201^_0x1c0d8f)),_0x2299b0[_0xe57c50([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x437243=>{let _0x17f2ae=0x0;_0x34e944[_0xe57c50([0x6d,0x6f,0x64,0x65,0x6c])][_0xe57c50([0x6f,0x6e])](_0xe57c50([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f0898,_0x103f28)=>{_0x103f28[0x0][_0xe57c50([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17f2ae++,_0x17f2ae==(0x65b24d35^_0x1c0d8f)&&(_0x437243(),_0x5f0898[_0xe57c50([0x6f,0x66,0x66])]());});}))];return window[_0xe57c50([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe57c50([0x72,0x61,0x63,0x65])](_0x465bd2)[_0xe57c50([0x74,0x68,0x65,0x6e])](()=>_0xe4bd54);}async function _0x2fa805(){await _0x2299b0,_0x34e944[_0xe57c50([0x6d,0x6f,0x64,0x65,0x6c])][_0xe57c50([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48beb1,_0x34e944[_0xe57c50([0x6d,0x6f,0x64,0x65,0x6c])][_0xe57c50([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48beb1,_0x34e944[_0xe57c50([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe57c50([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cd4ef(_0x2fe579){const _0x341049=_0x40b43f();_0x34e944[_0x341049]=_0xe57c50([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2fe579,_0x2fe579!=_0xe57c50([0x56,0x61,0x6c,0x69,0x64])&&_0x2fa805();}function _0x40b43f(){const _0x2dfc03=window[_0xe57c50([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe57c50([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe57c50([0x6e,0x6f,0x77])]())[_0xe57c50([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe57c50([0x2e]),'');let _0x17f2a7=_0xe57c50([0x5a]);for(let _0x44e0a0=0x0;_0x44e0a0<_0x2dfc03[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44e0a0+=0x2){let _0x34080f=window[_0xe57c50([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dfc03[_0xe57c50([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44e0a0,_0x44e0a0+0x2));_0x34080f>=_0x56d46a[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34080f-=_0x56d46a[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17f2a7+=_0x56d46a[_0x34080f];}return _0x17f2a7;}function _0x2bcabc(){const _0x5e3ab3=_0x50d666[_0xe57c50([0x73,0x70,0x6c,0x69,0x74])](_0xe57c50([0x2e]));if(0x3!=_0x5e3ab3[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x46b3c1(_0x5e3ab3[0x1]);function _0x46b3c1(_0x50cf46){const _0x440948=_0x201bce(_0x50cf46);return _0x440948&&_0x2c930b()?_0x440948:null;function _0x2c930b(){const _0x1c12ea=_0x440948[_0xe57c50([0x6a,0x74,0x69])],_0x433520=window[_0xe57c50([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c12ea[_0xe57c50([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c12ea[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33722d={..._0x440948,[_0xe57c50([0x6a,0x74,0x69])]:_0x1c12ea[_0xe57c50([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1c12ea[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33722d[_0xe57c50([0x76,0x63])],_0x267de1(_0x33722d)==_0x433520;}}}async function _0x162ee3(){let _0x39a10b=!0x0;try{const _0x253c4c=_0x50d666[_0xe57c50([0x73,0x70,0x6c,0x69,0x74])](_0xe57c50([0x2e])),[_0x3dd0be,_0x4c8a38,_0x16588a]=_0x253c4c;return _0x442489(_0x3dd0be),await _0x5c2f81(_0x3dd0be,_0x4c8a38,_0x16588a),_0x39a10b;}catch(_0xb2c341){return!0x1;}function _0x442489(_0x374fe4){const _0x58d07c=_0x201bce(_0x374fe4);_0x58d07c&&_0x58d07c[_0xe57c50([0x61,0x6c,0x67])]==_0xe57c50([0x45,0x53,0x32,0x35,0x36])||(_0x39a10b=!0x1);}async function _0x5c2f81(_0x565611,_0x2fd609,_0x44f0ac){const _0x1bc1ef=window[_0xe57c50([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe57c50([0x66,0x72,0x6f,0x6d])](_0x4d76ea(_0x44f0ac),_0x1ea4b9=>_0x1ea4b9[_0xe57c50([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x105025=new window[(_0xe57c50([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe57c50([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x565611+_0xe57c50([0x2e])+_0x2fd609),_0x34d070=window[_0xe57c50([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe57c50([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34d070)return;const _0x48b611=await _0x34d070[_0xe57c50([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe57c50([0x6a,0x77,0x6b]),_0x6a293,{[_0xe57c50([0x6e,0x61,0x6d,0x65])]:_0xe57c50([0x45,0x43,0x44,0x53,0x41]),[_0xe57c50([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe57c50([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe57c50([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34d070[_0xe57c50([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe57c50([0x6e,0x61,0x6d,0x65])]:_0xe57c50([0x45,0x43,0x44,0x53,0x41]),[_0xe57c50([0x68,0x61,0x73,0x68])]:{[_0xe57c50([0x6e,0x61,0x6d,0x65])]:_0xe57c50([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48b611,_0x1bc1ef,_0x105025)||(_0x39a10b=!0x1);}}function _0x201bce(_0x3f9eb4){return _0x3f9eb4[_0xe57c50([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe57c50([0x65,0x79]))?JSON[_0xe57c50([0x70,0x61,0x72,0x73,0x65])](_0x4d76ea(_0x3f9eb4)):null;}function _0x4d76ea(_0x568153){return window[_0xe57c50([0x61,0x74,0x6f,0x62])](_0x568153[_0xe57c50([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe57c50([0x2b]))[_0xe57c50([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe57c50([0x2f])));}function _0x267de1(_0x1d11da){let _0x3ad45c=0x1505;function _0x2f8fdd(_0x166df1){for(let _0x142b3f=0x0;_0x142b3f<_0x166df1[_0xe57c50([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x142b3f++){const _0x27e86c=_0x166df1[_0xe57c50([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x142b3f);_0x3ad45c=(_0x3ad45c<<0x5)+_0x3ad45c+_0x27e86c,_0x3ad45c&=_0x3ad45c;}}function _0x246d4d(_0x252883){Array[_0xe57c50([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x252883)?_0x252883[_0xe57c50([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x246d4d):_0x252883&&typeof _0x252883==_0xe57c50([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe57c50([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x252883)[_0xe57c50([0x73,0x6f,0x72,0x74])]()[_0xe57c50([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b0a8d,_0x294d9a])=>{_0x2f8fdd(_0x2b0a8d),_0x246d4d(_0x294d9a);}):_0x2f8fdd(window[_0xe57c50([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x252883));}return _0x246d4d(_0x1d11da),_0x3ad45c>>>0x0;}function _0x42908a(_0x28d9df){return _0x28d9df[_0xe57c50([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe57c50([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe57c50([0x30]));}function _0x2ea5e4(_0x245293){return _0x245293[_0xe57c50([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe57c50([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe57c50([0x6a,0x6f,0x69,0x6e])]('');}function _0x48beb1(){}function _0xe57c50(_0x42a5af){const _0x5cf18c=_0x341c;return _0x42a5af[_0x5cf18c(0x171)](_0x4d4138=>String[_0x5cf18c(0x147)](_0x4d4138))[_0x5cf18c(0x15a)]('');}_0x2cd4ef(await _0x58c9ec());}(this);}[_0x562a78(0x11e)](){const _0x1fd628=_0x562a78,_0x25b940=this[_0x1fd628(0x152)][_0x1fd628(0x16c)][_0x1fd628(0x148)];_0x25b940[_0x1fd628(0x160)](_0x1fd628(0x138))&&_0x25b940[_0x1fd628(0x164)](_0x1fd628(0x138),{'allowAttributes':[_0x1fd628(0x161)]}),_0x25b940[_0x1fd628(0x160)](_0x1fd628(0x12a))&&_0x25b940[_0x1fd628(0x164)](_0x1fd628(0x12a),{'allowAttributes':[_0x1fd628(0x161)]});}[_0x562a78(0x11f)](){const _0x33f82b=_0x562a78,_0x488a3d=this[_0x33f82b(0x152)];_0x488a3d[_0x33f82b(0x121)][_0x33f82b(0x141)](_0x33f82b(0x16a))[_0x33f82b(0x14c)]({'model':_0x33f82b(0x161),'view':_0x33f82b(0x151)}),_0x488a3d[_0x33f82b(0x121)][_0x33f82b(0x141)](_0x33f82b(0x13b))[_0x33f82b(0x14f)]({'model':{'key':_0x33f82b(0x161),'value':_0x35f779=>_0x35f779[_0x33f82b(0x12d)](_0x33f82b(0x151))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5381d2=_0x488a3d[_0x33f82b(0x166)][_0x33f82b(0x159)](_0x33f82b(0x155));_0x5381d2&&this[_0x33f82b(0x15d)](_0x5381d2,_0x33f82b(0x16d),(_0x4180ae,[_0x371cf2,_0x1d0047])=>{const _0x4faae8=_0x33f82b;_0x371cf2[_0x4faae8(0x12c)](_0x4faae8(0x161),_0x1d0047);});}[_0x562a78(0x169)](){const _0x5d944d=_0x562a78,_0x337a8c=this[_0x5d944d(0x152)][_0x5d944d(0x154)][_0x5d944d(0x159)](_0x5d944d(0x143))||{},_0x408ea2=this[_0x5d944d(0x152)][_0x5d944d(0x154)][_0x5d944d(0x159)](_0x5d944d(0x133))||'';this[_0x5d944d(0x162)]=_0x356fb4(_0x579542[_0x5d944d(0x14d)],_0x5d944d(0x165),{..._0x337a8c,'pubkey':_0x408ea2,'ctx-name':_0x5d944d(0x163),'sourceList':'','imgOnly':_0x5d944d(0x14a),'removeCopyright':_0x5d944d(0x14a),'localeName':this[_0x5d944d(0x152)][_0x5d944d(0x122)][_0x5d944d(0x16e)],'externalSourcesEmbedCss':_0x5d944d(0x153)}),this[_0x5d944d(0x162)][_0x5d944d(0x144)]=_0x69d718=>{const _0x54c7d4=_0x5d944d;if(_0x54c7d4(0x13e)==_0x69d718)return _0x54c7d4(0x120);},_0x579542[_0x5d944d(0x14d)][_0x5d944d(0x12e)][_0x5d944d(0x124)](this[_0x5d944d(0x162)]);}[_0x562a78(0x146)](){const _0x1412a2=_0x562a78;this[_0x1412a2(0x150)]=_0x356fb4(_0x579542[_0x1412a2(0x14d)],_0x1412a2(0x16f),{'ctx-name':_0x1412a2(0x163)}),_0x579542[_0x1412a2(0x14d)][_0x1412a2(0x12e)][_0x1412a2(0x124)](this[_0x1412a2(0x150)]);}[_0x562a78(0x14e)](){const _0x4bf014=_0x562a78,_0x5c1b3f=this[_0x4bf014(0x152)][_0x4bf014(0x166)][_0x4bf014(0x159)](_0x4bf014(0x140));_0x5c1b3f&&this[_0x4bf014(0x15d)](_0x5c1b3f,_0x4bf014(0x130),()=>{const _0x558ba2=_0x4bf014,_0x2f9ec0=this[_0x558ba2(0x152)][_0x558ba2(0x16c)][_0x558ba2(0x14d)][_0x558ba2(0x13d)][_0x558ba2(0x134)]();_0x2f9ec0&&_0x2f9ec0[_0x558ba2(0x12d)](_0x558ba2(0x161))&&this[_0x558ba2(0x152)][_0x558ba2(0x156)][_0x558ba2(0x12b)][_0x558ba2(0x15f)](_0x558ba2(0x168),()=>{const _0x11ab39=_0x558ba2;_0x3d5b27(this[_0x11ab39(0x152)],_0x2f9ec0);});});const _0x3a0748=this[_0x4bf014(0x152)][_0x4bf014(0x166)][_0x4bf014(0x159)](_0x4bf014(0x15c));_0x3a0748&&this[_0x4bf014(0x15d)](_0x3a0748,_0x4bf014(0x130),()=>{const _0x39a43d=_0x4bf014,_0x10f255=this[_0x39a43d(0x152)][_0x39a43d(0x16c)][_0x39a43d(0x14d)][_0x39a43d(0x13d)][_0x39a43d(0x134)]();_0x10f255&&_0x10f255[_0x39a43d(0x12d)](_0x39a43d(0x161))&&this[_0x39a43d(0x152)][_0x39a43d(0x156)][_0x39a43d(0x12b)][_0x39a43d(0x15f)](_0x39a43d(0x168),()=>{const _0x4f2b1d=_0x39a43d;_0x3d5b27(this[_0x4f2b1d(0x152)],_0x10f255);});});}}