@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.10 → 46.0.1-alpha.12

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 _0x4f45c9,Command as _0x59a1ae}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x196135,IconGooglePhotos as _0x3f2b77,IconGoogleDrive as _0x319740,IconFacebook as _0x3a37d5,IconDropbox as _0x522ab3,IconUploadcareLink as _0x2ce062,IconUploadcareImageUpload as _0x39b653,IconError as _0x3989cb,IconUploadcareImageEdit as _0x144e43}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1c3a5b,MenuBarMenuListItemButtonView as _0x5c59b7,View as _0x3522ac,FocusCycler as _0xec500,Dialog as _0xa6cf09,DialogViewPosition as _0x546ab0,SpinnerView as _0x5254f2,IconView as _0x689bca,Notification as _0xd0c689}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x54436d,DomEmitterMixin as _0x837da9,global as _0x4f7af6,getAncestors as _0x3d9968,ObservableMixin as _0x3968b4,uid as _0x5dc652,createElement as _0x5ee64f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2bccf5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2d2c09,info as _0x5af707}from'@uploadcare/upload-client';import*as _0x3e053f from'@uploadcare/file-uploader';var i=function(_0x14c655){return _0x14c655['Local']='local',_0x14c655['URL']='url',_0x14c655['Dropbox']='dropbox',_0x14c655['GDrive']='gdrive',_0x14c655['Facebook']='facebook',_0x14c655['GPhotos']='gphotos',_0x14c655['OneDrive']='onedrive',_0x14c655;}({});function _(_0x451972,_0x5b2e3b,_0x55ae62){const t=_0x451972['t'],_0x37aaca=_0x451972['t'];switch(_0x5b2e3b){case i['Local']:return{'text':_0x37aaca('Insert'===_0x55ae62?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x37aaca('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x55ae62?_0x37aaca('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x37aaca('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x55ae62?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x55ae62?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x55ae62?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x55ae62?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x55ae62?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5b2e3b;}}class e extends _0x4f45c9{['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 _0x53536d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c7930;for(const _0x1e3b29 in _0x53536d){const _0x3ca802=_0x1e3b29,_0x5cbd23=_0x53536d[_0x3ca802];if('uploadcareLicenseKeyValid'==_0x5cbd23||'uploadcareLicenseKeyInvalid'==_0x5cbd23||'uploadcareLicenseKeyExpired'==_0x5cbd23||'uploadcareLicenseKeyDomainLimit'==_0x5cbd23||'uploadcareLicenseKeyNotAllowed'==_0x5cbd23||'uploadcareLicenseKeyEvaluationLimit'==_0x5cbd23||'uploadcareLicenseKeyTrialLimit'==_0x5cbd23||'uploadcareLicenseKeyUsageLimit'==_0x5cbd23){delete _0x53536d[_0x3ca802],_0x2c7930=_0x5cbd23,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2c7930&&_0x53536d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2c7930&&_0x53536d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2c7930&&_0x53536d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2c7930&&_0x53536d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2c7930&&_0x53536d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2c7930&&_0x53536d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2c7930&&_0x53536d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x143a1d}=this,_0x59e896=_0x143a1d['commands']['get']('uploadcare');if(!_0x59e896)return;const _0x1a64ba=this['_normalizeConfigSourceList'](_0x143a1d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x37feef,_0xcc8647)=>{const _0xd48b1b=this['_getIntegrationKey'](_0xcc8647['type']);return _0x37feef[_0xd48b1b]||(_0x37feef[_0xd48b1b]=[]),_0x37feef[_0xd48b1b]['push'](_0xcc8647),_0x37feef;},{});_0x143a1d['plugins']['has']('ImageInsertUI')&&_0x143a1d['commands']['get']('uploadcare')&&Object['entries'](_0x1a64ba)['forEach'](([_0x2de100,_0xfa12])=>{_0x143a1d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2de100,'observable':()=>_0x59e896,'buttonViewCreator':()=>this['_createToolbarButton'](_0xfa12),'formViewCreator':()=>this['_createDropdownButtons'](_0xfa12),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xfa12),'override':'assetManager'!==_0x2de100});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4c2301){const {locale:_0x2501d9}=this['editor'];return _0x4c2301['map'](_0x2c99f5=>{const _0x2bc89f=_(_0x2501d9,_0x2c99f5,'Insert');switch(_0x2c99f5){case i['Local']:return{'icon':_0x39b653,'type':i['Local'],..._0x2bc89f};case i['URL']:return{'icon':_0x2ce062,'type':i['URL'],..._0x2bc89f};case i['Dropbox']:return{'icon':_0x522ab3,'type':i['Dropbox'],..._0x2bc89f};case i['Facebook']:return{'icon':_0x3a37d5,'type':i['Facebook'],..._0x2bc89f};case i['GDrive']:return{'icon':_0x319740,'type':i['GDrive'],..._0x2bc89f};case i['GPhotos']:return{'icon':_0x3f2b77,'type':i['GPhotos'],..._0x2bc89f};case i['OneDrive']:return{'icon':_0x196135,'type':i['OneDrive'],..._0x2bc89f};}});}['_getIntegrationKey'](_0x243a69){switch(_0x243a69){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x23aa8a,_0xc70c66){const _0x294819=this['editor'],_0xc13b59=new _0x23aa8a(_0x294819['locale']),_0x593beb=_0x294819['commands']['get']('uploadcare');return _0xc13b59['bind']('isEnabled')['to'](_0x593beb),_0xc13b59['on']('execute',()=>{_0x593beb['execute'](_0xc70c66);}),_0xc13b59;}['_createToolbarButton'](_0x18c4e4){const {locale:_0x326694}=this['editor'],_0x267b98=this['editor']['plugins']['get']('ImageInsertUI'),_0xdf45b3=_0x18c4e4[0x0],_0x20f862=this['_createButton'](_0x1c3a5b,_0xdf45b3['type']);return _0x20f862['icon']=_0xdf45b3['icon'],_0x20f862['bind']('label')['to'](_0x267b98,'isImageSelected',_0x2282ee=>_(_0x326694,_0xdf45b3['type'],_0x2282ee?'Replace':'Insert')['text']),_0x20f862['tooltip']=!0x0,_0x20f862;}['_createDropdownButtons'](_0x83748a){const {locale:_0x160c12}=this['editor'],_0x45a5f8=this['editor']['plugins']['get']('ImageInsertUI');return _0x83748a['map'](_0xdd34f4=>{const _0x34c389=this['_createButton'](_0x1c3a5b,_0xdd34f4['type']);return _0x34c389['withText']=!0x0,_0x34c389['icon']=_0xdd34f4['icon'],_0x34c389['bind']('label')['to'](_0x45a5f8,'isImageSelected',_0x21eaf0=>_(_0x160c12,_0xdd34f4['type'],_0x21eaf0?'Replace':'Insert')['text']),_0x34c389;});}['_createMenuBarButtons'](_0x68dbc0){return _0x68dbc0['map'](_0x4e02dd=>{const _0x42e3b1=this['_createButton'](_0x5c59b7,_0x4e02dd['type']);return _0x42e3b1['icon']=_0x4e02dd['icon'],_0x42e3b1['label']=_0x4e02dd['shortText'],_0x42e3b1;});}}class F extends _0x3522ac{['focusTracker'];['focusCycler'];constructor(_0x4cb4bb){super(_0x4cb4bb),this['focusTracker']=new _0x54436d(),this['focusCycler']=new _0xec500({'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 x extends F{constructor(_0x1a5749,_0xeb52b6){super(_0x1a5749),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-'+_0xeb52b6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x40b119,_0x1489f8){const _0x106887=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1189d4=>_0x1189d4<=_0x1489f8)['map'](_0x375a88=>_0x40b119['replace'](/\/$/,'')+'/-/resize/'+_0x375a88+'x/\x20'+_0x375a88+'w');return{'imageFallbackUrl':_0x40b119,'imageSources':[{'srcset':_0x106887['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1489f8+'px)\x20100vw,\x20'+_0x1489f8+'px','type':'image/webp'}]};}function C(_0x4a0fbd,_0x28eae7,_0x413d29){const _0x2065d8=_0x4a0fbd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2065d8?parseInt(_0x2065d8[0x1],0xa):_0x28eae7,'height':_0x2065d8?parseInt(_0x2065d8[0x2],0xa):_0x413d29};}function p(_0x361e66,_0x2d9a1c){const _0x458cd1=new(_0x837da9())(),_0x6eb66=_0x361e66['plugins']['get']('ImageUtils'),_0x30d3a2=_0x361e66['editing']['mapper']['toViewElement'](_0x2d9a1c),_0x518eca=_0x6eb66['findViewImgElement'](_0x30d3a2),_0xaafa3f=_0x361e66['editing']['view']['domConverter']['viewToDom'](_0x518eca),_0x511c03=_0x2d9a1c['getAttribute']('width'),_0x36d0f9=_0x2d9a1c['getAttribute']('height'),_0x3f8ce5='image-processing';_0x361e66['editing']['view']['change'](_0x6da96=>{_0x6da96['addClass'](_0x3f8ce5,_0x30d3a2),_0x6da96['setStyle']('aspect-ratio',_0x511c03+'/'+_0x36d0f9,_0x518eca);}),_0x458cd1['listenTo'](_0xaafa3f,'load',()=>{_0x458cd1['stopListening'](_0xaafa3f,'load'),_0x361e66['editing']['view']['change'](_0xec80e9=>{_0xec80e9['removeClass'](_0x3f8ce5,_0x30d3a2),_0xec80e9['removeStyle']('aspect-ratio',_0x518eca);});});}function z(_0x3e48b6){if(Array['isArray'](_0x3e48b6)){const _0x57b745=_0x3e48b6['map'](z);return _0x2d81b4=>_0x57b745['some'](_0x9c1c1e=>_0x9c1c1e(_0x2d81b4));}if('origin'==_0x3e48b6){const _0x1b2415=_0x4f7af6['window']['location']['origin'];return _0x4a658b=>new URL(_0x4a658b,_0x4f7af6['document']['baseURI'])['origin']==_0x1b2415;}return'function'==typeof _0x3e48b6?_0x3e48b6:_0x3e48b6 instanceof RegExp?_0xa52c77=>!(!_0xa52c77['match'](_0x3e48b6)&&!_0xa52c77['replace'](/^https?:\/\//,'')['match'](_0x3e48b6)):()=>!0x1;}function S(_0x1aaa08,_0x2a8788){return _0x3d9968(_0x1aaa08['target'])['includes'](_0x2a8788);}class n extends/* #__PURE__ -- @preserve */
24
- _0x3968b4(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2961f9,_0x5d097e,_0x11124d){super(),this['_editor']=_0x2961f9,this['_editing']=_0x5d097e,this['_dialog']=_0x2961f9['plugins']['get'](_0xa6cf09),this['_api']=_0x5d097e['ctxElement']['getAPI'](),this['_type']=_0x11124d,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:_0x1cb398,model:_0x163385}=this['_editor'],_0x103c1c=_0x163385['document']['selection']['getSelectedElement'](),_0x176320=_0x103c1c&&(_0x103c1c['is']('element','imageBlock')||_0x103c1c['is']('element','imageInline'));this['_formView']=new x(_0x1cb398,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x39b653,'title':_(_0x1cb398,this['_type'],_0x176320?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x546ab0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5b8d9b=>!S(_0x5b8d9b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3d18ab}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x16ab08=>{const _0x29611d=_0x3d18ab['length'];for(const _0x5a678e of _0x3d18ab){const _0x263c6d=_0x5a678e===_0x3d18ab[_0x29611d-0x1],{cdnUrl:_0x5185f0,fileInfo:_0x408b39}=_0x5a678e;if(!_0x5185f0||!_0x408b39)continue;const {width:_0x367ddd,height:_0x1515b3}=_0x408b39['imageInfo'],_0x245903=C(_0x5185f0,_0x367ddd,_0x1515b3),_0x624c96=k(_0x5185f0,_0x245903['width']),_0x34cb90={'id':_0x408b39['uuid'],'type':'image','attributes':{'imageDimension':_0x245903,..._0x624c96}};this['_insertAsset'](_0x34cb90,_0x263c6d,_0x16ab08);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x333f3c=>{'idle'===_0x333f3c['detail']['status']&&!_0x333f3c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x266bef,_0x542295,_0x26c484){const _0x307de4=this['_editor']['model']['document']['selection'],_0x399d58=_0x307de4['getSelectedElement'](),_0xa2d9a4=!(!_0x399d58||!_0x399d58['is']('element','imageInline'));_0x26c484['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x266bef,_0xa2d9a4),_0x542295||_0x26c484['setSelection'](_0x307de4['getLastPosition']());}['_insertImage'](_0x181e06,_0x39cece){const _0x3648ff=this['_editor'],{imageDimension:_0x3b5668,imageFallbackUrl:_0x2b1969,imageSources:_0x28f92e}=_0x181e06['attributes'];_0x3648ff['execute']('insertImage',{'imageType':_0x39cece?'imageInline':null,'source':{'uploadcareImageId':_0x181e06['id'],'src':_0x2b1969,'sources':_0x28f92e,..._0x3b5668}});}}class w extends _0x59a1ae{['_editing'];['_controller']=null;static get['requires'](){return[_0xa6cf09,o];}constructor(_0x52468f){super(_0x52468f),this['_editing']=_0x52468f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xed3f3f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xed3f3f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x587926,publicKey:_0x45dba5,signal:_0xf6f93e,onProgress:_0x3c4dd0}){return _0x2d2c09(_0x587926,{'publicKey':_0x45dba5,'store':'auto','signal':_0xf6f93e,'onProgress':_0x3c4dd0});}static['getInfo'](_0x4ba40e,_0x1ab82f){return _0x5af707(_0x4ba40e,_0x1ab82f);}}class f extends _0x4f45c9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2bccf5,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4e1121=this['editor'];if(!!!_0x4e1121['config']['get']('uploadcare'))return;_0x4e1121['plugins']['get'](_0x2bccf5)['createUploadAdapter']=_0x9f24=>new A(_0x9f24,_0x4e1121),_0x4e1121['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x27d9a0,{imageElement:_0x1fcbea,data:_0x2f0614})=>{_0x4e1121['model']['change'](_0x2e21c7=>{_0x2e21c7['setAttribute']('uploadcareImageId',_0x2f0614['uploadcareImageId'],_0x1fcbea);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1862c5,_0x3188be){this['loader']=_0x1862c5,this['editor']=_0x3188be,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x33b04f=this['editor']['config']['get']('uploadcare.pubkey'),_0x479af8=await this['loader']['file'];return j['upload']({'file':_0x479af8,'publicKey':_0x33b04f,'signal':this['controller']['signal'],'onProgress':_0x392d6f=>{_0x392d6f&&_0x392d6f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x392d6f['value']);}})['then'](async _0x2e083a=>{const {imageFallbackUrl:_0x1559ab,imageSources:_0x3bf5c0}=k(_0x2e083a['cdnUrl'],_0x2e083a['imageInfo']['width']);return{'uploadcareImageId':_0x2e083a['uuid'],'default':_0x1559ab,'sources':_0x3bf5c0};})['catch'](()=>{const _0x298834=t('Cannot\x20upload\x20file:')+('\x20'+_0x479af8['name']+'.');return Promise['reject'](_0x298834);});}['abort'](){this['controller']['abort']();}}class o extends _0x4f45c9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xa6cf09];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x295856){super(_0x295856),this['ucContextId']=_0x5dc652();}['init'](){const _0x1c4ab9=this['editor'];_0x1c4ab9['commands']['add']('uploadcare',new w(_0x1c4ab9));}['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 _0x36a9fc=_0x4f7af6['document']['querySelector']('input[uploadcare-file-input]');_0x36a9fc&&_0x36a9fc['remove']();}),async function(_0x4dc1f6){const _0x51e904=_0x2a0400([0x73,0x6f,0x70,0x41,0x76,0x47,0x64,0x45,0x42,0x49,0x4a,0x36,0x57,0x6b,0x67,0x61,0x62,0x48,0x55,0x71,0x31,0x44,0x37,0x63,0x50,0x7a,0x68,0x4c,0x43,0x34,0x72,0x4f,0x35,0x5a,0x54,0x6d,0x38,0x52,0x33,0x56,0x32,0x77,0x75,0x79,0x53,0x51,0x4e,0x39,0x6a,0x4b,0x46,0x4d,0x66,0x58,0x30,0x59,0x69,0x65,0x6e,0x78,0x74,0x6c]),_0x27130b=0x50e52eeb,_0x1aa343=0x50e24123^_0x27130b,_0x16b0f4=window[_0x2a0400([0x44,0x61,0x74,0x65])][_0x2a0400([0x6e,0x6f,0x77])](),_0x5916dd=_0x4dc1f6[_0x2a0400([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a73aa=new window[(_0x2a0400([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3482e6=>{_0x5916dd[_0x2a0400([0x6f,0x6e,0x63,0x65])](_0x2a0400([0x72,0x65,0x61,0x64,0x79]),_0x3482e6);}),_0x1b6763={[_0x2a0400([0x6b,0x74,0x79])]:_0x2a0400([0x45,0x43]),[_0x2a0400([0x75,0x73,0x65])]:_0x2a0400([0x73,0x69,0x67]),[_0x2a0400([0x63,0x72,0x76])]:_0x2a0400([0x50,0x2d,0x32,0x35,0x36]),[_0x2a0400([0x78])]:_0x2a0400([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]),[_0x2a0400([0x79])]:_0x2a0400([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]),[_0x2a0400([0x61,0x6c,0x67])]:_0x2a0400([0x45,0x53,0x32,0x35,0x36])},_0xe4d5b6=_0x5916dd[_0x2a0400([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2a0400([0x67,0x65,0x74])](_0x2a0400([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xea6120(){let _0x4b07ca,_0x337622=null,_0x1bd036=null;try{if(_0xe4d5b6==_0x2a0400([0x47,0x50,0x4c]))return _0x2a0400([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b07ca=_0xacc84(),!_0x4b07ca)return _0x2a0400([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b07ca[_0x2a0400([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bd036=_0x960a7a(_0x4b07ca[_0x2a0400([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b07ca[_0x2a0400([0x6a,0x74,0x69])])),await _0x530e65()?_0x46ba6d()?_0x1598ae()?_0x2a0400([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x21c074()?(_0x4b07ca[_0x2a0400([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a0400([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x337622=_0x586067(_0x2a0400([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b07ca[_0x2a0400([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a0400([0x74,0x72,0x69,0x61,0x6c])&&(_0x337622=_0x586067(_0x2a0400([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x437fc9()):_0x2a0400([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2a0400([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2a0400([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2a0400([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1598ae(){const _0x3c1ff5=[_0x2a0400([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2a0400([0x74,0x72,0x69,0x61,0x6c])][_0x2a0400([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b07ca[_0x2a0400([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16b0f4/0x3e8:0xe10*_0x1aa343;return _0x4b07ca[_0x2a0400([0x65,0x78,0x70])]<_0x3c1ff5;}function _0x46ba6d(){const _0x397c10=_0x4b07ca[_0x2a0400([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x397c10&&(!!_0x397c10[_0x2a0400([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a0400([0x2a]))||!!_0x397c10[_0x2a0400([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a0400([0x55,0x50,0x4c,0x43])));}function _0x21c074(){const _0x49fc9e=_0x4b07ca[_0x2a0400([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49fc9e||0x0==_0x49fc9e[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a8533}=new URL(window[_0x2a0400([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x49fc9e[_0x2a0400([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8533))return!0x0;const _0xf828a4=_0x5a8533[_0x2a0400([0x73,0x70,0x6c,0x69,0x74])](_0x2a0400([0x2e]));return _0x49fc9e[_0x2a0400([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15c10c=>_0x15c10c[_0x2a0400([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a0400([0x2a])))[_0x2a0400([0x6d,0x61,0x70])](_0x4b0aaf=>_0x4b0aaf[_0x2a0400([0x73,0x70,0x6c,0x69,0x74])](_0x2a0400([0x2e])))[_0x2a0400([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x281e52=>_0x281e52[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf828a4[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a0400([0x6d,0x61,0x70])](_0x4667e2=>Array(_0xf828a4[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4667e2[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a0400([0x66,0x69,0x6c,0x6c])](_0x4667e2[0x0]===_0x2a0400([0x2a])?_0x2a0400([0x2a]):'')[_0x2a0400([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4667e2))[_0x2a0400([0x73,0x6f,0x6d,0x65])](_0x37cc7e=>_0xf828a4[_0x2a0400([0x65,0x76,0x65,0x72,0x79])]((_0x3329b7,_0x105e1c)=>_0x37cc7e[_0x105e1c]===_0x3329b7||_0x37cc7e[_0x105e1c]===_0x2a0400([0x2a])));}function _0x437fc9(){return _0x337622&&_0x1bd036?new window[(_0x2a0400([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2414b9,_0x214818)=>{_0x337622[_0x2a0400([0x74,0x68,0x65,0x6e])](_0x2414b9,_0x214818),_0x1bd036[_0x2a0400([0x74,0x68,0x65,0x6e])](_0x11a33b=>{_0x11a33b!=_0x2a0400([0x56,0x61,0x6c,0x69,0x64])&&_0x2414b9(_0x11a33b);},_0x214818);}):_0x337622||_0x1bd036||_0x2a0400([0x56,0x61,0x6c,0x69,0x64]);}}function _0x960a7a(_0x2c7da1,_0x4710c0){return new window[(_0x2a0400([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x440e14=>{if(_0x2bed08())return _0x440e14(_0x2a0400([0x56,0x61,0x6c,0x69,0x64]));_0x50bc57(),_0x5916dd[_0x2a0400([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2a0400([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48b499=!0x1;const _0x1781dd=_0x5dc652();function _0x22aec1(_0x411208){return!!_0x411208&&(typeof _0x411208===_0x2a0400([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x411208===_0x2a0400([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x411208[_0x2a0400([0x74,0x68,0x65,0x6e])]===_0x2a0400([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x411208[_0x2a0400([0x63,0x61,0x74,0x63,0x68])]===_0x2a0400([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44e9bd(_0x4011da){_0x2f1bb8(_0x4011da)[_0x2a0400([0x74,0x68,0x65,0x6e])](_0x57b234=>{if(!_0x57b234||_0x57b234[_0x2a0400([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2a0400([0x6f,0x6b]))return _0x2a0400([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fae02(_0x2d3f04(_0x1781dd+_0x4710c0))!=_0x57b234[_0x2a0400([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2a0400([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2a0400([0x56,0x61,0x6c,0x69,0x64]);})[_0x2a0400([0x74,0x68,0x65,0x6e])](_0x25cc35=>(_0x548c61(),_0x25cc35),()=>{const _0x3aa9ad=_0x15e966();return null==_0x3aa9ad?(_0x548c61(),_0x2a0400([0x56,0x61,0x6c,0x69,0x64])):_0x2a0400(_0x16b0f4-_0x3aa9ad>(0x74e9aaeb^_0x27130b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2a0400([0x74,0x68,0x65,0x6e])](_0x440e14)[_0x2a0400([0x63,0x61,0x74,0x63,0x68])](()=>{_0x440e14(_0x2a0400([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x210a33=0x50d3c06b^_0x27130b;function _0x548c61(){const _0x2d6caf=_0x2a0400([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fae02(_0x2d3f04(_0x2c7da1)),_0x5a8c16=_0x208977(_0x2fae02(window[_0x2a0400([0x4d,0x61,0x74,0x68])][_0x2a0400([0x63,0x65,0x69,0x6c])](_0x16b0f4/_0x210a33)));window[_0x2a0400([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a0400([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d6caf,_0x5a8c16);}function _0x15e966(){const _0x168504=_0x2a0400([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fae02(_0x2d3f04(_0x2c7da1)),_0x1ef01e=window[_0x2a0400([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a0400([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x168504);return _0x1ef01e?window[_0x2a0400([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x208977(_0x1ef01e),0x10)*_0x210a33:null;}function _0x2f1bb8(_0x5ddda6){return new window[(_0x2a0400([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x215aa2,_0xafcca)=>{_0x5ddda6[_0x2a0400([0x74,0x68,0x65,0x6e])](_0x215aa2,_0xafcca),window[_0x2a0400([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xafcca,0x50e4fa2b^_0x27130b);});}}_0x5916dd[_0x2a0400([0x6f,0x6e])](_0x2a0400([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1009ac,_0x214a8e)=>{if(_0x214a8e[0x0]!=_0x2c7da1)return _0x440e14(_0x2a0400([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x214a8e[0x1]={..._0x214a8e[0x1],[_0x2a0400([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1781dd};},{[_0x2a0400([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a0400([0x68,0x69,0x67,0x68])}),_0x5916dd[_0x2a0400([0x6f,0x6e])](_0x2a0400([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f3c84=>{_0x22aec1(_0x3f3c84[_0x2a0400([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48b499=!0x0,_0x44e9bd(_0x3f3c84[_0x2a0400([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2a0400([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a0400([0x6c,0x6f,0x77])}),_0x1a73aa[_0x2a0400([0x74,0x68,0x65,0x6e])](()=>{_0x48b499||_0x440e14(_0x2a0400([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2bed08(){return _0x5916dd[_0x2a0400([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a0400([0x76,0x69,0x65,0x77])][_0x2a0400([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2a0400([0x61,0x75,0x74,0x6f]);}function _0x50bc57(){_0x5916dd[_0x2a0400([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a0400([0x76,0x69,0x65,0x77])][_0x2a0400([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a0400([0x61,0x75,0x74,0x6f]);}}function _0x586067(_0x29de1e){const _0x28c705=[new window[(_0x2a0400([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fdf4b=>setTimeout(_0x4fdf4b,0x50ec1027^_0x27130b)),_0x1a73aa[_0x2a0400([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2a0400([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x346405=>{let _0x195b20=0x0;_0x5916dd[_0x2a0400([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a0400([0x6f,0x6e])](_0x2a0400([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xdba40a,_0x277b6e)=>{_0x277b6e[0x0][_0x2a0400([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x195b20++,_0x195b20==(0x50e52f13^_0x27130b)&&(_0x346405(),_0xdba40a[_0x2a0400([0x6f,0x66,0x66])]());});}))];return window[_0x2a0400([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a0400([0x72,0x61,0x63,0x65])](_0x28c705)[_0x2a0400([0x74,0x68,0x65,0x6e])](()=>_0x29de1e);}async function _0x264175(){await _0x1a73aa,_0x5916dd[_0x2a0400([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a0400([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x162627,_0x5916dd[_0x2a0400([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a0400([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x162627,_0x5916dd[_0x2a0400([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2a0400([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x197800(_0x27606f){const _0x10d0e8=_0x69e472();_0x5916dd[_0x10d0e8]=_0x2a0400([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27606f,_0x27606f!=_0x2a0400([0x56,0x61,0x6c,0x69,0x64])&&_0x264175();}function _0x69e472(){const _0xb2feb7=window[_0x2a0400([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2a0400([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2a0400([0x6e,0x6f,0x77])]())[_0x2a0400([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2a0400([0x2e]),'');let _0x220df8=_0x2a0400([0x73]);for(let _0x1428f8=0x0;_0x1428f8<_0xb2feb7[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1428f8+=0x2){let _0x149f2b=window[_0x2a0400([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb2feb7[_0x2a0400([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1428f8,_0x1428f8+0x2));_0x149f2b>=_0x51e904[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x149f2b-=_0x51e904[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x220df8+=_0x51e904[_0x149f2b];}return _0x220df8;}function _0xacc84(){const _0x51322c=_0xe4d5b6[_0x2a0400([0x73,0x70,0x6c,0x69,0x74])](_0x2a0400([0x2e]));if(0x3!=_0x51322c[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x336516(_0x51322c[0x1]);function _0x336516(_0x8409db){const _0x3f810a=_0x1bd2ed(_0x8409db);return _0x3f810a&&_0x394f00()?_0x3f810a:null;function _0x394f00(){const _0x1bfc95=_0x3f810a[_0x2a0400([0x6a,0x74,0x69])],_0x39b7db=window[_0x2a0400([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bfc95[_0x2a0400([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bfc95[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7c1c33={..._0x3f810a,[_0x2a0400([0x6a,0x74,0x69])]:_0x1bfc95[_0x2a0400([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1bfc95[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7c1c33[_0x2a0400([0x76,0x63])],_0x2d3f04(_0x7c1c33)==_0x39b7db;}}}async function _0x530e65(){let _0x1da837=!0x0;try{const _0x8ca6=_0xe4d5b6[_0x2a0400([0x73,0x70,0x6c,0x69,0x74])](_0x2a0400([0x2e])),[_0x16d411,_0x36f78a,_0x4ddc77]=_0x8ca6;return _0x32b102(_0x16d411),await _0x4dca37(_0x16d411,_0x36f78a,_0x4ddc77),_0x1da837;}catch{return!0x1;}function _0x32b102(_0x2924b4){const _0x39199e=_0x1bd2ed(_0x2924b4);_0x39199e&&_0x39199e[_0x2a0400([0x61,0x6c,0x67])]==_0x2a0400([0x45,0x53,0x32,0x35,0x36])||(_0x1da837=!0x1);}async function _0x4dca37(_0x1ad377,_0x4f65f5,_0x1b132c){const _0x2a09bc=window[_0x2a0400([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2a0400([0x66,0x72,0x6f,0x6d])](_0xfe26fa(_0x1b132c),_0x19fede=>_0x19fede[_0x2a0400([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b004d=new window[(_0x2a0400([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2a0400([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ad377+_0x2a0400([0x2e])+_0x4f65f5),_0x388e0e=window[_0x2a0400([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2a0400([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x388e0e)return;const _0x477327=await _0x388e0e[_0x2a0400([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2a0400([0x6a,0x77,0x6b]),_0x1b6763,{[_0x2a0400([0x6e,0x61,0x6d,0x65])]:_0x2a0400([0x45,0x43,0x44,0x53,0x41]),[_0x2a0400([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2a0400([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2a0400([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x388e0e[_0x2a0400([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2a0400([0x6e,0x61,0x6d,0x65])]:_0x2a0400([0x45,0x43,0x44,0x53,0x41]),[_0x2a0400([0x68,0x61,0x73,0x68])]:{[_0x2a0400([0x6e,0x61,0x6d,0x65])]:_0x2a0400([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x477327,_0x2a09bc,_0x4b004d)||(_0x1da837=!0x1);}}function _0x1bd2ed(_0x47f1bc){return _0x47f1bc[_0x2a0400([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2a0400([0x65,0x79]))?JSON[_0x2a0400([0x70,0x61,0x72,0x73,0x65])](_0xfe26fa(_0x47f1bc)):null;}function _0xfe26fa(_0x3b2a3d){return window[_0x2a0400([0x61,0x74,0x6f,0x62])](_0x3b2a3d[_0x2a0400([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2a0400([0x2b]))[_0x2a0400([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2a0400([0x2f])));}function _0x2d3f04(_0x2af82c){let _0x169fda=0x1505;function _0x51778(_0x14e1f7){for(let _0x17eb90=0x0;_0x17eb90<_0x14e1f7[_0x2a0400([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17eb90++){const _0x5435da=_0x14e1f7[_0x2a0400([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17eb90);_0x169fda=(_0x169fda<<0x5)+_0x169fda+_0x5435da,_0x169fda&=_0x169fda;}}function _0x270f8b(_0xf31bbd){Array[_0x2a0400([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf31bbd)?_0xf31bbd[_0x2a0400([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x270f8b):_0xf31bbd&&typeof _0xf31bbd==_0x2a0400([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2a0400([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf31bbd)[_0x2a0400([0x73,0x6f,0x72,0x74])]()[_0x2a0400([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x534d47,_0x586c2e])=>{_0x51778(_0x534d47),_0x270f8b(_0x586c2e);}):_0x51778(window[_0x2a0400([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf31bbd));}return _0x270f8b(_0x2af82c),_0x169fda>>>0x0;}function _0x2fae02(_0x4761bd){return _0x4761bd[_0x2a0400([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2a0400([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2a0400([0x30]));}function _0x208977(_0x20b854){return _0x20b854[_0x2a0400([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2a0400([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2a0400([0x6a,0x6f,0x69,0x6e])]('');}function _0x162627(){}function _0x2a0400(_0x101617){return _0x101617['map'](_0x5cc532=>String['fromCharCode'](_0x5cc532))['join']('');}_0x197800(await _0xea6120());}(this);}['_initSchema'](){const _0x56ddfd=this['editor']['model']['schema'];_0x56ddfd['isRegistered']('imageBlock')&&_0x56ddfd['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x56ddfd['isRegistered']('imageInline')&&_0x56ddfd['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4f9070=this['editor'];_0x4f9070['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4f9070['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x52dc66=>_0x52dc66['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x591a88=_0x4f9070['commands']['get']('replaceImageSource');_0x591a88&&this['listenTo'](_0x591a88,'cleanupImage',(_0x2c9b30,[_0x512a80,_0x190793])=>{_0x512a80['removeAttribute']('uploadcareImageId',_0x190793);});}['_initConfig'](){const _0x19fd3f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x49b161=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5ee64f(_0x4f7af6['document'],'uc-config',{..._0x19fd3f,'pubkey':_0x49b161,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x3934a2=>{if('closeMax'==_0x3934a2)return'#uc-icon-arrow-down';},_0x4f7af6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5ee64f(_0x4f7af6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4f7af6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5adccd=this['editor']['commands']['get']('insertImage');_0x5adccd&&this['listenTo'](_0x5adccd,'execute',()=>{const _0x582e00=this['editor']['model']['document']['selection']['getSelectedElement']();_0x582e00&&_0x582e00['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x582e00);});});const _0x39a8dc=this['editor']['commands']['get']('uploadcareImageReplace');_0x39a8dc&&this['listenTo'](_0x39a8dc,'execute',()=>{const _0x2a2938=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a2938&&_0x2a2938['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a2938);});});}}class tt extends _0x4f45c9{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d2145){super(_0x5d2145),_0x5d2145['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3e053f['defineComponents'](_0x3e053f);}}class ii extends _0x3522ac{constructor(_0x4560df){super(_0x4560df);const t=_0x4560df['t'],_0xf255b8=this['bindTemplate'],_0x5ee893=new _0x5254f2();_0x5ee893['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':[_0x5ee893,{'text':_0xf255b8['to']('imageUploadProgress',_0x55d0f5=>t('Loading\x20image...')+'\x20('+(_0x55d0f5||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 ti extends _0x3522ac{constructor(_0x574695){super(_0x574695);const t=_0x574695['t'];this['set']('errorType',null);const _0x165e6b=new _0x1c3a5b(_0x574695);_0x165e6b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x165e6b['withText']=!0x0,_0x165e6b['class']='ck-button-action',_0x165e6b['on']('execute',()=>{this['fire']('retry');}),_0x165e6b['bind']('isVisible')['to'](this,'errorType',_0x44fe78=>'NotFound'!==_0x44fe78);const _0x34eabe=new _0x689bca();_0x34eabe['content']=_0x3989cb,_0x34eabe['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x477cf3=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':[_0x34eabe,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x477cf3['to']('errorType',_0x3c81cd=>t('NotFound'!==_0x3c81cd?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x165e6b]},{'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 ei extends _0x3522ac{constructor(_0x50ec23,_0x242cb5){super(_0x50ec23);const _0x15f1a8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x242cb5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x15f1a8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5f2f21,_0x4c27bc,_0x59a58f){super(_0x5f2f21),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5f2f21),this['_errorView']=new ti(_0x5f2f21),this['_editingView']=new ei(_0x5f2f21,_0x59a58f),this['_focusableView']=new _0x3522ac(_0x5f2f21),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4c27bc),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'],_0x377719=>{this['_addUploadcareImageEditorListeners'](_0x377719);});}),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'](_0x832d7,_0x321557){const _0x4531f1='uc-cloud-image-editor',_0x56508b=_0x832d7['querySelector'](_0x4531f1);if(_0x56508b)return _0x321557(_0x56508b);const _0x3b9c57=new MutationObserver(_0x5bd85e=>{const _0x3ab0dc=_0x5bd85e['filter'](_0x54c444=>_0x54c444['target']===_0x832d7&&_0x54c444['addedNodes']['length']>0x0&&_0x54c444['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4531f1);_0x3ab0dc['length']&&(_0x3b9c57['disconnect'](),_0x321557(_0x3ab0dc[0x0]['addedNodes'][0x0]));});_0x3b9c57['observe'](_0x832d7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x43ac97){_0x43ac97['addEventListener']('apply',_0x182c59=>{this['fire']('apply',{'imageSrc':_0x182c59['detail']['cdnUrl']});}),_0x43ac97['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
- _0x3968b4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1711da,_0x2b2561,_0xbe1823){super(),this['_editor']=_0x1711da,this['_dialog']=_0x2b2561,this['_imageElement']=_0xbe1823,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 _0x46506e=this['_imageElement'],_0x579b52=_0x46506e['getAttribute']('uploadcareImageId'),_0x4c3597=_0x46506e['getAttribute']('src');if(_0x579b52)await this['_loadImageInfo'](_0x579b52,_0x4c3597);else{if(this['_imageCache']['has'](_0x4c3597)){const _0x432791=this['_imageCache']['get'](_0x4c3597);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x432791['url'],this['imageDimension']=_0x432791['dimension'],this['imageId']=_0x432791['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xa8d523}=this['_editor'],t=_0xa8d523['t'],_0x30c042=new X(_0xa8d523,this['imageStatus'],this['_attributes']);_0x30c042['bind']('status')['to'](this,'imageStatus'),_0x30c042['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x30c042['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x30c042['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x30c042,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x144e43,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x30c042,'position':_0x546ab0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x30c042['focus']();},'onHide':()=>{_0x30c042['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5252ce=>!S(_0x5252ce,_0x30c042['element'])}});}['_loadImageInfo'](_0x35942e,_0xa91b99){return j['getInfo'](_0x35942e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4b726a=>{const {width:_0x5c8419,height:_0x5c09dd}=_0x4b726a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa91b99,this['imageDimension']={'width':_0x5c8419,'height':_0x5c09dd},this['imageId']=_0x35942e;})['catch'](_0x232206=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x232206['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x25c074,_0x16690c){return this['_getImageAsFile'](_0x25c074)['then'](_0x2b4501=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x16690c['signal'],'file':_0x2b4501,'onProgress':_0x241e84=>{_0x241e84&&_0x241e84['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x241e84['value']));}}))['then'](_0x15c5be=>{const {width:_0x4ea284,height:_0x35fa95}=_0x15c5be['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15c5be['cdnUrl'],this['imageDimension']={'width':_0x4ea284,'height':_0x35fa95},this['imageId']=_0x15c5be['uuid'],this['imageUploadProgress']=null;const _0x2d27fd=_0x25c074['getAttribute']('src');this['_imageCache']['set'](_0x2d27fd,{'id':_0x15c5be['uuid'],'url':_0x15c5be['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x52e67e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x52e67e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x125e97,_0x355ace){_0x125e97['on']('apply',(_0x4191e5,_0x5ad3cf)=>{this['_replaceImage'](_0x355ace,_0x5ad3cf['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x125e97['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x125e97['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xabee9f,_0x5727a7,_0x44afd8){const _0x4df74d=this['_editor'],{width:_0x6d8072,height:_0x5eb9b9}=C(_0x5727a7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xa16473,imageSources:_0x91bc7c}=k(_0x5727a7,_0x6d8072);_0x4df74d['model']['change'](_0x164412=>{if('$graveyard'===_0xabee9f['root']['rootName']){_0x4df74d['execute']('insertImage',{'imageType':_0xabee9f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xabee9f['getAttributes']()),'uploadcareImageId':_0x44afd8,'src':_0xa16473,'sources':_0x91bc7c,'width':_0x6d8072,'height':_0x5eb9b9}});const _0x4a0450=_0xabee9f['getChildren']();_0xabee9f=_0x4df74d['model']['document']['selection']['getSelectedElement']();for(const _0x5c0703 of _0x4a0450)_0x164412['append'](_0x164412['cloneElement'](_0x5c0703),_0xabee9f);}else _0x164412['setSelection'](_0xabee9f,'on'),_0x4df74d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xabee9f['getAttributes']()),'uploadcareImageId':_0x44afd8,'src':_0xa16473,'sources':_0x91bc7c,'width':_0x6d8072,'height':_0x5eb9b9},_0xabee9f);_0x164412['setSelection'](_0xabee9f,'on');});}async['_getImageAsFile'](_0x32028f){const _0x11ae2b=_0x4f7af6['window'],_0x2c2b16=_0x4f7af6['document']['location']['href'],_0x236732=new _0x11ae2b['URL'](_0x32028f['getAttribute']('src'),_0x2c2b16);if('data:'===_0x236732['protocol']){const _0x2f11b5=_0x236732['href']['split'](','),_0x3dabff=_0x2f11b5[0x0]['match'](/:(.*?);/)[0x1],_0x3ff81c=_0x3dabff['split']('/')[0x1],_0x4279db=_0x11ae2b['atob'](_0x2f11b5[_0x2f11b5['length']-0x1]);let _0x3a6279=_0x4279db['length'];const _0x4f8cd2=new _0x11ae2b['Uint8Array'](_0x3a6279);for(;_0x3a6279--;)_0x4f8cd2[_0x3a6279]=_0x4279db['charCodeAt'](_0x3a6279);return new _0x11ae2b['File']([_0x4f8cd2],'image.'+_0x3ff81c,{'type':_0x3dabff});}const _0x4d38d1=_0x236732['href']['split']('/'),_0x3401a7=_0x4d38d1[_0x4d38d1['length']-0x1],_0x40db90=_0x3401a7['split']('.')[0x1];return _0x11ae2b['fetch'](_0x236732['href'])['then'](_0x241de0=>_0x241de0['clone']()['blob']())['then'](_0x2e80ba=>new _0x11ae2b['File']([_0x2e80ba],_0x3401a7,{'type':'image/'+_0x40db90}));}}class Q extends _0x59a1ae{['imageEditController'];static get['requires'](){return[_0xa6cf09];}['_isEditable'];constructor(_0x4ae5b0){super(_0x4ae5b0),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3148b2){const _0x492c33=z(_0x3148b2);return _0x577830=>!(!_0x577830||!_0x577830['is']('element','imageBlock')&&!_0x577830['is']('element','imageInline'))&&(!!_0x577830['hasAttribute']('uploadcareImageId')||!!_0x577830['hasAttribute']('src')&&_0x492c33(_0x577830['getAttribute']('src')));}(_0x4ae5b0['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xaa4ff3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xaa4ff3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5a630f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a630f&&(_0x5a630f['is']('element','imageBlock')||_0x5a630f['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0xa6cf09),_0x5a630f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x59a1ae{['refresh'](){const _0x1b070f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1b070f&&(_0x1b070f['is']('element','imageBlock')||_0x1b070f['is']('element','imageInline')));}['execute'](_0xea383b){const _0x165081=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x120d21=>{_0x120d21['setAttributes'](_0xea383b,_0x165081),_0x120d21['removeAttribute']('srcset',_0x165081),_0x120d21['removeAttribute']('sizes',_0x165081);});}}class m extends _0x4f45c9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xd0c689,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2e01c6}=this;_0x2e01c6['commands']['add']('uploadcareImageEdit',new Q(_0x2e01c6)),_0x2e01c6['commands']['add']('uploadcareImageReplace',new V(_0x2e01c6));}}class g extends _0x4f45c9{['_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 _0x1d5e84=this['editor'];_0x1d5e84['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4eeb86=>{const _0x563258=_0x1d5e84['commands']['get']('uploadcareImageEdit'),_0x5d2feb=new _0x1c3a5b(_0x4eeb86),t=_0x4eeb86['t'];return _0x5d2feb['set']({'icon':_0x144e43,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5d2feb['bind']('isEnabled')['to'](_0x563258),_0x5d2feb['bind']('isOn')['to'](_0x563258,'isActive'),this['listenTo'](_0x5d2feb,'execute',()=>{_0x1d5e84['execute']('uploadcareImageEdit'),_0x1d5e84['editing']['view']['focus']();}),_0x5d2feb;}),this['_initConfig']();}['_initConfig'](){const _0x2b06c8=_0x5ee64f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2b06c8),this['listenTo'](this['editor'],'destroy',()=>{_0x2b06c8['remove']();});}}class et extends _0x4f45c9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x2cf13a,Command as _0x46f6ad}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2fdab6,IconGooglePhotos as _0x5628ad,IconGoogleDrive as _0xb1866d,IconFacebook as _0x3f5b14,IconDropbox as _0x2e6df2,IconUploadcareLink as _0x34906c,IconUploadcareImageUpload as _0x17a9a4,IconError as _0x279a7d,IconUploadcareImageEdit as _0x3da54a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x54eaf0,MenuBarMenuListItemButtonView as _0x3ca89c,View as _0x19ec15,FocusCycler as _0x121575,Dialog as _0x1fb372,DialogViewPosition as _0x537efb,SpinnerView as _0x17d250,IconView as _0x1c2f63,Notification as _0x2a8bc8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x526bed,DomEmitterMixin as _0x3c4eb0,global as _0x5db020,getAncestors as _0x226a00,ObservableMixin as _0x5df921,uid as _0x13dfba,createElement as _0x18589a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x483f69}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4e396f,info as _0x64964e}from'@uploadcare/upload-client';import*as _0x3c7763 from'@uploadcare/file-uploader';var i=function(_0x5ac3a8){return _0x5ac3a8['Local']='local',_0x5ac3a8['URL']='url',_0x5ac3a8['Dropbox']='dropbox',_0x5ac3a8['GDrive']='gdrive',_0x5ac3a8['Facebook']='facebook',_0x5ac3a8['GPhotos']='gphotos',_0x5ac3a8['OneDrive']='onedrive',_0x5ac3a8;}({});function _(_0x13f038,_0x9f826a,_0x329134){const t=_0x13f038['t'],_0x4bead1=_0x13f038['t'];switch(_0x9f826a){case i['Local']:return{'text':_0x4bead1('Insert'===_0x329134?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4bead1('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x329134?_0x4bead1('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4bead1('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x329134?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x329134?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x329134?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x329134?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x329134?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x9f826a;}}class e extends _0x2cf13a{['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 _0x854ce8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x344ab1;for(const _0x405f93 in _0x854ce8){const _0x3785a1=_0x405f93,_0x106d73=_0x854ce8[_0x3785a1];if('uploadcareLicenseKeyValid'==_0x106d73||'uploadcareLicenseKeyInvalid'==_0x106d73||'uploadcareLicenseKeyExpired'==_0x106d73||'uploadcareLicenseKeyDomainLimit'==_0x106d73||'uploadcareLicenseKeyNotAllowed'==_0x106d73||'uploadcareLicenseKeyEvaluationLimit'==_0x106d73||'uploadcareLicenseKeyTrialLimit'==_0x106d73||'uploadcareLicenseKeyUsageLimit'==_0x106d73){delete _0x854ce8[_0x3785a1],_0x344ab1=_0x106d73,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x344ab1&&_0x854ce8['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x344ab1&&_0x854ce8['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x344ab1&&_0x854ce8['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x344ab1&&_0x854ce8['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x344ab1&&_0x854ce8['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x344ab1&&_0x854ce8['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x344ab1&&_0x854ce8['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x18bbdc}=this,_0x177cb8=_0x18bbdc['commands']['get']('uploadcare');if(!_0x177cb8)return;const _0x21ed83=this['_normalizeConfigSourceList'](_0x18bbdc['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x45b77c,_0x4748de)=>{const _0x4748ee=this['_getIntegrationKey'](_0x4748de['type']);return _0x45b77c[_0x4748ee]||(_0x45b77c[_0x4748ee]=[]),_0x45b77c[_0x4748ee]['push'](_0x4748de),_0x45b77c;},{});_0x18bbdc['plugins']['has']('ImageInsertUI')&&_0x18bbdc['commands']['get']('uploadcare')&&Object['entries'](_0x21ed83)['forEach'](([_0xaba372,_0x2acff6])=>{_0x18bbdc['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xaba372,'observable':()=>_0x177cb8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2acff6),'formViewCreator':()=>this['_createDropdownButtons'](_0x2acff6),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2acff6),'override':'assetManager'!==_0xaba372});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x368421){const {locale:_0x21f95d}=this['editor'];return _0x368421['map'](_0x581e5c=>{const _0x233c1d=_(_0x21f95d,_0x581e5c,'Insert');switch(_0x581e5c){case i['Local']:return{'icon':_0x17a9a4,'type':i['Local'],..._0x233c1d};case i['URL']:return{'icon':_0x34906c,'type':i['URL'],..._0x233c1d};case i['Dropbox']:return{'icon':_0x2e6df2,'type':i['Dropbox'],..._0x233c1d};case i['Facebook']:return{'icon':_0x3f5b14,'type':i['Facebook'],..._0x233c1d};case i['GDrive']:return{'icon':_0xb1866d,'type':i['GDrive'],..._0x233c1d};case i['GPhotos']:return{'icon':_0x5628ad,'type':i['GPhotos'],..._0x233c1d};case i['OneDrive']:return{'icon':_0x2fdab6,'type':i['OneDrive'],..._0x233c1d};}});}['_getIntegrationKey'](_0x4ccc0e){switch(_0x4ccc0e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x52951e,_0x26228f){const _0x29e6a2=this['editor'],_0x36986f=new _0x52951e(_0x29e6a2['locale']),_0x4f97d1=_0x29e6a2['commands']['get']('uploadcare');return _0x36986f['bind']('isEnabled')['to'](_0x4f97d1),_0x36986f['on']('execute',()=>{_0x4f97d1['execute'](_0x26228f);}),_0x36986f;}['_createToolbarButton'](_0x480ec5){const {locale:_0x3342a2}=this['editor'],_0x567f05=this['editor']['plugins']['get']('ImageInsertUI'),_0x3c6f73=_0x480ec5[0x0],_0xc9be53=this['_createButton'](_0x54eaf0,_0x3c6f73['type']);return _0xc9be53['icon']=_0x3c6f73['icon'],_0xc9be53['bind']('label')['to'](_0x567f05,'isImageSelected',_0x55f8fb=>_(_0x3342a2,_0x3c6f73['type'],_0x55f8fb?'Replace':'Insert')['text']),_0xc9be53['tooltip']=!0x0,_0xc9be53;}['_createDropdownButtons'](_0x53ea78){const {locale:_0x250d2c}=this['editor'],_0x38d7cf=this['editor']['plugins']['get']('ImageInsertUI');return _0x53ea78['map'](_0x5c924=>{const _0x149516=this['_createButton'](_0x54eaf0,_0x5c924['type']);return _0x149516['withText']=!0x0,_0x149516['icon']=_0x5c924['icon'],_0x149516['bind']('label')['to'](_0x38d7cf,'isImageSelected',_0x48d699=>_(_0x250d2c,_0x5c924['type'],_0x48d699?'Replace':'Insert')['text']),_0x149516;});}['_createMenuBarButtons'](_0x328b0c){return _0x328b0c['map'](_0x3c12fb=>{const _0xb0a459=this['_createButton'](_0x3ca89c,_0x3c12fb['type']);return _0xb0a459['icon']=_0x3c12fb['icon'],_0xb0a459['label']=_0x3c12fb['shortText'],_0xb0a459;});}}class F extends _0x19ec15{['focusTracker'];['focusCycler'];constructor(_0x58f050){super(_0x58f050),this['focusTracker']=new _0x526bed(),this['focusCycler']=new _0x121575({'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 x extends F{constructor(_0x165599,_0x4d6322){super(_0x165599),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-'+_0x4d6322}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x5893fd,_0x21c5ec){const _0xe68e26=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4aae83=>_0x4aae83<=_0x21c5ec)['map'](_0x4e6e4a=>_0x5893fd['replace'](/\/$/,'')+'/-/resize/'+_0x4e6e4a+'x/\x20'+_0x4e6e4a+'w');return{'imageFallbackUrl':_0x5893fd,'imageSources':[{'srcset':_0xe68e26['join'](',\x20'),'sizes':'(max-width:\x20'+_0x21c5ec+'px)\x20100vw,\x20'+_0x21c5ec+'px','type':'image/webp'}]};}function C(_0x34275d,_0xb2327e,_0x3f9278){const _0x540923=_0x34275d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x540923?parseInt(_0x540923[0x1],0xa):_0xb2327e,'height':_0x540923?parseInt(_0x540923[0x2],0xa):_0x3f9278};}function p(_0x3b2084,_0x849118){const _0x3a8c94=new(_0x3c4eb0())(),_0x4ff1a2=_0x3b2084['plugins']['get']('ImageUtils'),_0x1d60fa=_0x3b2084['editing']['mapper']['toViewElement'](_0x849118),_0x481ee0=_0x4ff1a2['findViewImgElement'](_0x1d60fa),_0x4ecc92=_0x3b2084['editing']['view']['domConverter']['viewToDom'](_0x481ee0),_0x4f8e4c=_0x849118['getAttribute']('width'),_0x2c332e=_0x849118['getAttribute']('height'),_0x565669='image-processing';_0x3b2084['editing']['view']['change'](_0x458bc9=>{_0x458bc9['addClass'](_0x565669,_0x1d60fa),_0x458bc9['setStyle']('aspect-ratio',_0x4f8e4c+'/'+_0x2c332e,_0x481ee0);}),_0x3a8c94['listenTo'](_0x4ecc92,'load',()=>{_0x3a8c94['stopListening'](_0x4ecc92,'load'),_0x3b2084['editing']['view']['change'](_0x37fdad=>{_0x37fdad['removeClass'](_0x565669,_0x1d60fa),_0x37fdad['removeStyle']('aspect-ratio',_0x481ee0);});});}function z(_0x5330eb){if(Array['isArray'](_0x5330eb)){const _0x361e4f=_0x5330eb['map'](z);return _0x345a1d=>_0x361e4f['some'](_0x457922=>_0x457922(_0x345a1d));}if('origin'==_0x5330eb){const _0xa9e509=_0x5db020['window']['location']['origin'];return _0x357e9a=>new URL(_0x357e9a,_0x5db020['document']['baseURI'])['origin']==_0xa9e509;}return'function'==typeof _0x5330eb?_0x5330eb:_0x5330eb instanceof RegExp?_0x2ce444=>!(!_0x2ce444['match'](_0x5330eb)&&!_0x2ce444['replace'](/^https?:\/\//,'')['match'](_0x5330eb)):()=>!0x1;}function S(_0x4096c7,_0x308f80){return _0x226a00(_0x4096c7['target'])['includes'](_0x308f80);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x5df921(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x48893a,_0x3f2faf,_0x3a8dc0){super(),this['_editor']=_0x48893a,this['_editing']=_0x3f2faf,this['_dialog']=_0x48893a['plugins']['get'](_0x1fb372),this['_api']=_0x3f2faf['ctxElement']['getAPI'](),this['_type']=_0x3a8dc0,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:_0x30d6e2,model:_0x4254e2}=this['_editor'],_0x4d0221=_0x4254e2['document']['selection']['getSelectedElement'](),_0x28bca9=_0x4d0221&&(_0x4d0221['is']('element','imageBlock')||_0x4d0221['is']('element','imageInline'));this['_formView']=new x(_0x30d6e2,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x17a9a4,'title':_(_0x30d6e2,this['_type'],_0x28bca9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x537efb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d9f70=>!S(_0x5d9f70,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1c9ba7}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2ff4bb=>{const _0x42382c=_0x1c9ba7['length'];for(const _0x267a5b of _0x1c9ba7){const _0x2672f3=_0x267a5b===_0x1c9ba7[_0x42382c-0x1],{cdnUrl:_0x452b20,fileInfo:_0x3a2c9c}=_0x267a5b;if(!_0x452b20||!_0x3a2c9c)continue;const {width:_0x17f94b,height:_0x213ad6}=_0x3a2c9c['imageInfo'],_0x23e680=C(_0x452b20,_0x17f94b,_0x213ad6),_0x4fdc15=k(_0x452b20,_0x23e680['width']),_0x1ac9c3={'id':_0x3a2c9c['uuid'],'type':'image','attributes':{'imageDimension':_0x23e680,..._0x4fdc15}};this['_insertAsset'](_0x1ac9c3,_0x2672f3,_0x2ff4bb);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1a2557=>{'idle'===_0x1a2557['detail']['status']&&!_0x1a2557['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4444c9,_0x32d016,_0x44082b){const _0x148a1a=this['_editor']['model']['document']['selection'],_0x5fc17b=_0x148a1a['getSelectedElement'](),_0x56d16d=!(!_0x5fc17b||!_0x5fc17b['is']('element','imageInline'));_0x44082b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4444c9,_0x56d16d),_0x32d016||_0x44082b['setSelection'](_0x148a1a['getLastPosition']());}['_insertImage'](_0x45121e,_0xfa3faf){const _0x90039c=this['_editor'],{imageDimension:_0x5f1464,imageFallbackUrl:_0x137da9,imageSources:_0x5af647}=_0x45121e['attributes'];_0x90039c['execute']('insertImage',{'imageType':_0xfa3faf?'imageInline':null,'source':{'uploadcareImageId':_0x45121e['id'],'src':_0x137da9,'sources':_0x5af647,..._0x5f1464}});}}class w extends _0x46f6ad{['_editing'];['_controller']=null;static get['requires'](){return[_0x1fb372,o];}constructor(_0x1301a5){super(_0x1301a5),this['_editing']=_0x1301a5['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2e9948){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2e9948);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5a3033,publicKey:_0x45f6a1,signal:_0xae21ca,onProgress:_0x257e1d}){return _0x4e396f(_0x5a3033,{'publicKey':_0x45f6a1,'store':'auto','signal':_0xae21ca,'onProgress':_0x257e1d});}static['getInfo'](_0x9ef49d,_0x1f8f47){return _0x64964e(_0x9ef49d,_0x1f8f47);}}class f extends _0x2cf13a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x483f69,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1e1ffd=this['editor'];if(!!!_0x1e1ffd['config']['get']('uploadcare'))return;_0x1e1ffd['plugins']['get'](_0x483f69)['createUploadAdapter']=_0x4b7a09=>new A(_0x4b7a09,_0x1e1ffd),_0x1e1ffd['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4ab8ce,{imageElement:_0x2a5d01,data:_0x48797c})=>{_0x1e1ffd['model']['change'](_0xf1eb08=>{_0xf1eb08['setAttribute']('uploadcareImageId',_0x48797c['uploadcareImageId'],_0x2a5d01);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x160730,_0x21e562){this['loader']=_0x160730,this['editor']=_0x21e562,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2f08f9=this['editor']['config']['get']('uploadcare.pubkey'),_0x430ac4=await this['loader']['file'];return j['upload']({'file':_0x430ac4,'publicKey':_0x2f08f9,'signal':this['controller']['signal'],'onProgress':_0x3ab792=>{_0x3ab792&&_0x3ab792['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3ab792['value']);}})['then'](async _0x312d37=>{const {imageFallbackUrl:_0x17ca1e,imageSources:_0x373c32}=k(_0x312d37['cdnUrl'],_0x312d37['imageInfo']['width']);return{'uploadcareImageId':_0x312d37['uuid'],'default':_0x17ca1e,'sources':_0x373c32};})['catch'](()=>{const _0x24c8d5=t('Cannot\x20upload\x20file:')+('\x20'+_0x430ac4['name']+'.');return Promise['reject'](_0x24c8d5);});}['abort'](){this['controller']['abort']();}}class o extends _0x2cf13a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1fb372];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3f9846){super(_0x3f9846),this['ucContextId']=_0x13dfba();}['init'](){const _0x4a2519=this['editor'];_0x4a2519['commands']['add']('uploadcare',new w(_0x4a2519));}['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 _0x52e0ab=_0x5db020['document']['querySelector']('input[uploadcare-file-input]');_0x52e0ab&&_0x52e0ab['remove']();}),async function(_0x43786a){const _0xa765dd=_0x43656b([0x45,0x43,0x34,0x55,0x69,0x35,0x4c,0x71,0x65,0x6f,0x41,0x33,0x36,0x74,0x68,0x67,0x53,0x44,0x75,0x79,0x4b,0x32,0x6c,0x5a,0x66,0x78,0x52,0x6a,0x7a,0x49,0x58,0x56,0x47,0x42,0x6e,0x54,0x46,0x59,0x39,0x30,0x38,0x62,0x4a,0x4d,0x76,0x73,0x57,0x6b,0x70,0x72,0x77,0x4f,0x50,0x48,0x31,0x64,0x6d,0x63,0x61,0x37,0x4e,0x51]),_0x3cde35=0x9ff086f,_0x8904a1=0x9f86797^_0x3cde35,_0x1891fb=window[_0x43656b([0x44,0x61,0x74,0x65])][_0x43656b([0x6e,0x6f,0x77])](),_0x4b7fc2=_0x43786a[_0x43656b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd3cb34=new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57cd73=>{_0x4b7fc2[_0x43656b([0x6f,0x6e,0x63,0x65])](_0x43656b([0x72,0x65,0x61,0x64,0x79]),_0x57cd73);}),_0x3f0416={[_0x43656b([0x6b,0x74,0x79])]:_0x43656b([0x45,0x43]),[_0x43656b([0x75,0x73,0x65])]:_0x43656b([0x73,0x69,0x67]),[_0x43656b([0x63,0x72,0x76])]:_0x43656b([0x50,0x2d,0x32,0x35,0x36]),[_0x43656b([0x78])]:_0x43656b([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]),[_0x43656b([0x79])]:_0x43656b([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]),[_0x43656b([0x61,0x6c,0x67])]:_0x43656b([0x45,0x53,0x32,0x35,0x36])},_0x9f8af1=_0x4b7fc2[_0x43656b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43656b([0x67,0x65,0x74])](_0x43656b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd8f75(){let _0x15a0d2,_0x1fe725=null,_0x41e89b=null;try{if(_0x9f8af1==_0x43656b([0x47,0x50,0x4c]))return _0x43656b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15a0d2=_0x70eac9(),!_0x15a0d2)return _0x43656b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15a0d2[_0x43656b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41e89b=_0x1a6b9f(_0x15a0d2[_0x43656b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15a0d2[_0x43656b([0x6a,0x74,0x69])])),await _0x50816b()?_0xecb46e()?_0x3c05aa()?_0x43656b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x592ce7()?(_0x15a0d2[_0x43656b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43656b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fe725=_0x44c40b(_0x43656b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x15a0d2[_0x43656b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43656b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1fe725=_0x44c40b(_0x43656b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37b087()):_0x43656b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43656b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43656b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x43656b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c05aa(){const _0x4c94d4=[_0x43656b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43656b([0x74,0x72,0x69,0x61,0x6c])][_0x43656b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15a0d2[_0x43656b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1891fb/0x3e8:0xe10*_0x8904a1;return _0x15a0d2[_0x43656b([0x65,0x78,0x70])]<_0x4c94d4;}function _0xecb46e(){const _0x5479aa=_0x15a0d2[_0x43656b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5479aa&&(!!_0x5479aa[_0x43656b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43656b([0x2a]))||!!_0x5479aa[_0x43656b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43656b([0x55,0x50,0x4c,0x43])));}function _0x592ce7(){const _0x61880c=_0x15a0d2[_0x43656b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x61880c||0x0==_0x61880c[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5952f4}=new URL(window[_0x43656b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x61880c[_0x43656b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5952f4))return!0x0;const _0x4a62a8=_0x5952f4[_0x43656b([0x73,0x70,0x6c,0x69,0x74])](_0x43656b([0x2e]));return _0x61880c[_0x43656b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xff2754=>_0xff2754[_0x43656b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43656b([0x2a])))[_0x43656b([0x6d,0x61,0x70])](_0x5d9a85=>_0x5d9a85[_0x43656b([0x73,0x70,0x6c,0x69,0x74])](_0x43656b([0x2e])))[_0x43656b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b0ad1=>_0x5b0ad1[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a62a8[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x43656b([0x6d,0x61,0x70])](_0x162088=>Array(_0x4a62a8[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x162088[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x43656b([0x66,0x69,0x6c,0x6c])](_0x162088[0x0]===_0x43656b([0x2a])?_0x43656b([0x2a]):'')[_0x43656b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x162088))[_0x43656b([0x73,0x6f,0x6d,0x65])](_0x83c0c4=>_0x4a62a8[_0x43656b([0x65,0x76,0x65,0x72,0x79])]((_0x11d826,_0xc2b9f)=>_0x83c0c4[_0xc2b9f]===_0x11d826||_0x83c0c4[_0xc2b9f]===_0x43656b([0x2a])));}function _0x37b087(){return _0x1fe725&&_0x41e89b?new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x276d84,_0x1abf3a)=>{_0x1fe725[_0x43656b([0x74,0x68,0x65,0x6e])](_0x276d84,_0x1abf3a),_0x41e89b[_0x43656b([0x74,0x68,0x65,0x6e])](_0x1b3659=>{_0x1b3659!=_0x43656b([0x56,0x61,0x6c,0x69,0x64])&&_0x276d84(_0x1b3659);},_0x1abf3a);}):_0x1fe725||_0x41e89b||_0x43656b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a6b9f(_0x467443,_0x35a33c){return new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5435a1=>{if(_0x1c75d0())return _0x5435a1(_0x43656b([0x56,0x61,0x6c,0x69,0x64]));_0x2db518(),_0x4b7fc2[_0x43656b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43656b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x29ed14=!0x1;const _0x4c113f=_0x13dfba();function _0x4a230a(_0x3037b8){return!!_0x3037b8&&(typeof _0x3037b8===_0x43656b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3037b8===_0x43656b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3037b8[_0x43656b([0x74,0x68,0x65,0x6e])]===_0x43656b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3037b8[_0x43656b([0x63,0x61,0x74,0x63,0x68])]===_0x43656b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a46f9(_0xef5a58){_0x41d1ce(_0xef5a58)[_0x43656b([0x74,0x68,0x65,0x6e])](_0x2fce02=>{if(!_0x2fce02||_0x2fce02[_0x43656b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43656b([0x6f,0x6b]))return _0x43656b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x400c45(_0x4d503d(_0x4c113f+_0x35a33c))!=_0x2fce02[_0x43656b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43656b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43656b([0x56,0x61,0x6c,0x69,0x64]);})[_0x43656b([0x74,0x68,0x65,0x6e])](_0x4b1ffc=>(_0x41ab67(),_0x4b1ffc),()=>{const _0x2021ad=_0x4d4a92();return null==_0x2021ad?(_0x41ab67(),_0x43656b([0x56,0x61,0x6c,0x69,0x64])):_0x43656b(_0x1891fb-_0x2021ad>(0x2df38c6f^_0x3cde35)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43656b([0x74,0x68,0x65,0x6e])](_0x5435a1)[_0x43656b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5435a1(_0x43656b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x89c47d=0x9c9e6ef^_0x3cde35;function _0x41ab67(){const _0x350af7=_0x43656b([0x6c,0x6c,0x63,0x74,0x2d])+_0x400c45(_0x4d503d(_0x467443)),_0x169485=_0x5c4cac(_0x400c45(window[_0x43656b([0x4d,0x61,0x74,0x68])][_0x43656b([0x63,0x65,0x69,0x6c])](_0x1891fb/_0x89c47d)));window[_0x43656b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43656b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x350af7,_0x169485);}function _0x4d4a92(){const _0x48ea2e=_0x43656b([0x6c,0x6c,0x63,0x74,0x2d])+_0x400c45(_0x4d503d(_0x467443)),_0x1a0e13=window[_0x43656b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43656b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48ea2e);return _0x1a0e13?window[_0x43656b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c4cac(_0x1a0e13),0x10)*_0x89c47d:null;}function _0x41d1ce(_0x4663c4){return new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x478211,_0x51791b)=>{_0x4663c4[_0x43656b([0x74,0x68,0x65,0x6e])](_0x478211,_0x51791b),window[_0x43656b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51791b,0x9fedcaf^_0x3cde35);});}}_0x4b7fc2[_0x43656b([0x6f,0x6e])](_0x43656b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5338a7,_0x37d0eb)=>{if(_0x37d0eb[0x0]!=_0x467443)return _0x5435a1(_0x43656b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37d0eb[0x1]={..._0x37d0eb[0x1],[_0x43656b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c113f};},{[_0x43656b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43656b([0x68,0x69,0x67,0x68])}),_0x4b7fc2[_0x43656b([0x6f,0x6e])](_0x43656b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55fe5c=>{_0x4a230a(_0x55fe5c[_0x43656b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x29ed14=!0x0,_0x5a46f9(_0x55fe5c[_0x43656b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43656b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43656b([0x6c,0x6f,0x77])}),_0xd3cb34[_0x43656b([0x74,0x68,0x65,0x6e])](()=>{_0x29ed14||_0x5435a1(_0x43656b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c75d0(){return _0x4b7fc2[_0x43656b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43656b([0x76,0x69,0x65,0x77])][_0x43656b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43656b([0x61,0x75,0x74,0x6f]);}function _0x2db518(){_0x4b7fc2[_0x43656b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43656b([0x76,0x69,0x65,0x77])][_0x43656b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43656b([0x61,0x75,0x74,0x6f]);}}function _0x44c40b(_0xb8d5a2){const _0x3130fc=[new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c9a10=>setTimeout(_0x5c9a10,0x9f636a3^_0x3cde35)),_0xd3cb34[_0x43656b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5aac15=>{let _0x309899=0x0;_0x4b7fc2[_0x43656b([0x6d,0x6f,0x64,0x65,0x6c])][_0x43656b([0x6f,0x6e])](_0x43656b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x302731,_0x1c89b7)=>{_0x1c89b7[0x0][_0x43656b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x309899++,_0x309899==(0x9ff0997^_0x3cde35)&&(_0x5aac15(),_0x302731[_0x43656b([0x6f,0x66,0x66])]());});}))];return window[_0x43656b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43656b([0x72,0x61,0x63,0x65])](_0x3130fc)[_0x43656b([0x74,0x68,0x65,0x6e])](()=>_0xb8d5a2);}async function _0x440d3e(){await _0xd3cb34,_0x4b7fc2[_0x43656b([0x6d,0x6f,0x64,0x65,0x6c])][_0x43656b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53afc8,_0x4b7fc2[_0x43656b([0x6d,0x6f,0x64,0x65,0x6c])][_0x43656b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53afc8,_0x4b7fc2[_0x43656b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43656b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39dceb(_0xf486fe){const _0x17586d=_0x6437c2();_0x4b7fc2[_0x17586d]=_0x43656b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf486fe,_0xf486fe!=_0x43656b([0x56,0x61,0x6c,0x69,0x64])&&_0x440d3e();}function _0x6437c2(){const _0x54852c=window[_0x43656b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43656b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43656b([0x6e,0x6f,0x77])]())[_0x43656b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43656b([0x2e]),'');let _0x16fa56=_0x43656b([0x45]);for(let _0x350b7c=0x0;_0x350b7c<_0x54852c[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x350b7c+=0x2){let _0x8774a3=window[_0x43656b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54852c[_0x43656b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x350b7c,_0x350b7c+0x2));_0x8774a3>=_0xa765dd[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x8774a3-=_0xa765dd[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16fa56+=_0xa765dd[_0x8774a3];}return _0x16fa56;}function _0x70eac9(){const _0x516a8d=_0x9f8af1[_0x43656b([0x73,0x70,0x6c,0x69,0x74])](_0x43656b([0x2e]));if(0x3!=_0x516a8d[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa808a7(_0x516a8d[0x1]);function _0xa808a7(_0x3868a6){const _0x539f93=_0x5c0961(_0x3868a6);return _0x539f93&&_0x414bbe()?_0x539f93:null;function _0x414bbe(){const _0x57ccd9=_0x539f93[_0x43656b([0x6a,0x74,0x69])],_0x66e813=window[_0x43656b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57ccd9[_0x43656b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57ccd9[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x485bba={..._0x539f93,[_0x43656b([0x6a,0x74,0x69])]:_0x57ccd9[_0x43656b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57ccd9[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x485bba[_0x43656b([0x76,0x63])],_0x4d503d(_0x485bba)==_0x66e813;}}}async function _0x50816b(){let _0xaa2c69=!0x0;try{const _0x1eb25a=_0x9f8af1[_0x43656b([0x73,0x70,0x6c,0x69,0x74])](_0x43656b([0x2e])),[_0x2ab9c3,_0x1bca09,_0x2ec29a]=_0x1eb25a;return _0x1187a1(_0x2ab9c3),await _0x43b3d3(_0x2ab9c3,_0x1bca09,_0x2ec29a),_0xaa2c69;}catch{return!0x1;}function _0x1187a1(_0x16b98b){const _0x408cea=_0x5c0961(_0x16b98b);_0x408cea&&_0x408cea[_0x43656b([0x61,0x6c,0x67])]==_0x43656b([0x45,0x53,0x32,0x35,0x36])||(_0xaa2c69=!0x1);}async function _0x43b3d3(_0xdb35c4,_0x50a654,_0x4f278b){const _0x14794d=window[_0x43656b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43656b([0x66,0x72,0x6f,0x6d])](_0x4a8234(_0x4f278b),_0x4e53d0=>_0x4e53d0[_0x43656b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fc243=new window[(_0x43656b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43656b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xdb35c4+_0x43656b([0x2e])+_0x50a654),_0x61e286=window[_0x43656b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43656b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x61e286)return;const _0x2793cd=await _0x61e286[_0x43656b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43656b([0x6a,0x77,0x6b]),_0x3f0416,{[_0x43656b([0x6e,0x61,0x6d,0x65])]:_0x43656b([0x45,0x43,0x44,0x53,0x41]),[_0x43656b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43656b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43656b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x61e286[_0x43656b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43656b([0x6e,0x61,0x6d,0x65])]:_0x43656b([0x45,0x43,0x44,0x53,0x41]),[_0x43656b([0x68,0x61,0x73,0x68])]:{[_0x43656b([0x6e,0x61,0x6d,0x65])]:_0x43656b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2793cd,_0x14794d,_0x2fc243)||(_0xaa2c69=!0x1);}}function _0x5c0961(_0x561da1){return _0x561da1[_0x43656b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43656b([0x65,0x79]))?JSON[_0x43656b([0x70,0x61,0x72,0x73,0x65])](_0x4a8234(_0x561da1)):null;}function _0x4a8234(_0x27c3ff){return window[_0x43656b([0x61,0x74,0x6f,0x62])](_0x27c3ff[_0x43656b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43656b([0x2b]))[_0x43656b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43656b([0x2f])));}function _0x4d503d(_0x2d2f25){let _0x4c58dc=0x1505;function _0x4fd9d1(_0x1d4d0c){for(let _0x22a5a1=0x0;_0x22a5a1<_0x1d4d0c[_0x43656b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22a5a1++){const _0x402c34=_0x1d4d0c[_0x43656b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x22a5a1);_0x4c58dc=(_0x4c58dc<<0x5)+_0x4c58dc+_0x402c34,_0x4c58dc&=_0x4c58dc;}}function _0x1ad783(_0x4dae1c){Array[_0x43656b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4dae1c)?_0x4dae1c[_0x43656b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ad783):_0x4dae1c&&typeof _0x4dae1c==_0x43656b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43656b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4dae1c)[_0x43656b([0x73,0x6f,0x72,0x74])]()[_0x43656b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x371ac1,_0x5e3d03])=>{_0x4fd9d1(_0x371ac1),_0x1ad783(_0x5e3d03);}):_0x4fd9d1(window[_0x43656b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4dae1c));}return _0x1ad783(_0x2d2f25),_0x4c58dc>>>0x0;}function _0x400c45(_0x50520c){return _0x50520c[_0x43656b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43656b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43656b([0x30]));}function _0x5c4cac(_0xc13279){return _0xc13279[_0x43656b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43656b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43656b([0x6a,0x6f,0x69,0x6e])]('');}function _0x53afc8(){}function _0x43656b(_0x460680){return _0x460680['map'](_0x3671e3=>String['fromCharCode'](_0x3671e3))['join']('');}_0x39dceb(await _0xd8f75());}(this);}['_initSchema'](){const _0x50523d=this['editor']['model']['schema'];_0x50523d['isRegistered']('imageBlock')&&_0x50523d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x50523d['isRegistered']('imageInline')&&_0x50523d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2407a4=this['editor'];_0x2407a4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2407a4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4bcab5=>_0x4bcab5['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57b71=_0x2407a4['commands']['get']('replaceImageSource');_0x57b71&&this['listenTo'](_0x57b71,'cleanupImage',(_0x2652bd,[_0x1d1944,_0x5627ff])=>{_0x1d1944['removeAttribute']('uploadcareImageId',_0x5627ff);});}['_initConfig'](){const _0x16544d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x47635a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x18589a(_0x5db020['document'],'uc-config',{..._0x16544d,'pubkey':_0x47635a,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x4740cd=>{if('closeMax'==_0x4740cd)return'#uc-icon-arrow-down';},_0x5db020['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x18589a(_0x5db020['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5db020['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x51d5ea=this['editor']['commands']['get']('insertImage');_0x51d5ea&&this['listenTo'](_0x51d5ea,'execute',()=>{const _0x507749=this['editor']['model']['document']['selection']['getSelectedElement']();_0x507749&&_0x507749['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x507749);});});const _0x4dc536=this['editor']['commands']['get']('uploadcareImageReplace');_0x4dc536&&this['listenTo'](_0x4dc536,'execute',()=>{const _0x3764c9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3764c9&&_0x3764c9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3764c9);});});}}class tt extends _0x2cf13a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ac30b){super(_0x3ac30b),_0x3ac30b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3c7763['defineComponents'](_0x3c7763);}}class ii extends _0x19ec15{constructor(_0x3e5747){super(_0x3e5747);const t=_0x3e5747['t'],_0x5a7125=this['bindTemplate'],_0x280470=new _0x17d250();_0x280470['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':[_0x280470,{'text':_0x5a7125['to']('imageUploadProgress',_0x46244b=>t('Loading\x20image...')+'\x20('+(_0x46244b||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 ti extends _0x19ec15{constructor(_0x62fcff){super(_0x62fcff);const t=_0x62fcff['t'];this['set']('errorType',null);const _0x50b5de=new _0x54eaf0(_0x62fcff);_0x50b5de['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x50b5de['withText']=!0x0,_0x50b5de['class']='ck-button-action',_0x50b5de['on']('execute',()=>{this['fire']('retry');}),_0x50b5de['bind']('isVisible')['to'](this,'errorType',_0x17234e=>'NotFound'!==_0x17234e);const _0xb81072=new _0x1c2f63();_0xb81072['content']=_0x279a7d,_0xb81072['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x17735e=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':[_0xb81072,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x17735e['to']('errorType',_0x373dd7=>t('NotFound'!==_0x373dd7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x50b5de]},{'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 ei extends _0x19ec15{constructor(_0x56b0d0,_0x5810ba){super(_0x56b0d0);const _0x1ac924=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5810ba,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1ac924['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2d4571,_0x3aa452,_0x185665){super(_0x2d4571),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2d4571),this['_errorView']=new ti(_0x2d4571),this['_editingView']=new ei(_0x2d4571,_0x185665),this['_focusableView']=new _0x19ec15(_0x2d4571),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3aa452),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'],_0x1e22f5=>{this['_addUploadcareImageEditorListeners'](_0x1e22f5);});}),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'](_0x3f5752,_0x1b427f){const _0x17c1f1='uc-cloud-image-editor',_0x52f40d=_0x3f5752['querySelector'](_0x17c1f1);if(_0x52f40d)return _0x1b427f(_0x52f40d);const _0x1ccad8=new MutationObserver(_0x24d4e6=>{const _0x2446f0=_0x24d4e6['filter'](_0x180d8d=>_0x180d8d['target']===_0x3f5752&&_0x180d8d['addedNodes']['length']>0x0&&_0x180d8d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x17c1f1);_0x2446f0['length']&&(_0x1ccad8['disconnect'](),_0x1b427f(_0x2446f0[0x0]['addedNodes'][0x0]));});_0x1ccad8['observe'](_0x3f5752,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xfffebd){_0xfffebd['addEventListener']('apply',_0x2709cb=>{this['fire']('apply',{'imageSrc':_0x2709cb['detail']['cdnUrl']});}),_0xfffebd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
+ _0x5df921(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5240f5,_0x15ce37,_0x2a1c91){super(),this['_editor']=_0x5240f5,this['_dialog']=_0x15ce37,this['_imageElement']=_0x2a1c91,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 _0x4d01fe=this['_imageElement'],_0x5cf550=_0x4d01fe['getAttribute']('uploadcareImageId'),_0x52f1b0=_0x4d01fe['getAttribute']('src');if(_0x5cf550)await this['_loadImageInfo'](_0x5cf550,_0x52f1b0);else{if(this['_imageCache']['has'](_0x52f1b0)){const _0xf042c2=this['_imageCache']['get'](_0x52f1b0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf042c2['url'],this['imageDimension']=_0xf042c2['dimension'],this['imageId']=_0xf042c2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1ae352}=this['_editor'],t=_0x1ae352['t'],_0x474ada=new X(_0x1ae352,this['imageStatus'],this['_attributes']);_0x474ada['bind']('status')['to'](this,'imageStatus'),_0x474ada['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x474ada['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x474ada['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x474ada,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3da54a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x474ada,'position':_0x537efb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x474ada['focus']();},'onHide':()=>{_0x474ada['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f0e3a=>!S(_0x3f0e3a,_0x474ada['element'])}});}['_loadImageInfo'](_0x3bd2cb,_0x4ac55a){return j['getInfo'](_0x3bd2cb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3ad55a=>{const {width:_0x53bc80,height:_0x4d8255}=_0x3ad55a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ac55a,this['imageDimension']={'width':_0x53bc80,'height':_0x4d8255},this['imageId']=_0x3bd2cb;})['catch'](_0x2d93b6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d93b6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x37d41f,_0x4f1a29){return this['_getImageAsFile'](_0x37d41f)['then'](_0x33b965=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4f1a29['signal'],'file':_0x33b965,'onProgress':_0x51798b=>{_0x51798b&&_0x51798b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x51798b['value']));}}))['then'](_0x5f3766=>{const {width:_0x47ab8c,height:_0x489ed2}=_0x5f3766['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5f3766['cdnUrl'],this['imageDimension']={'width':_0x47ab8c,'height':_0x489ed2},this['imageId']=_0x5f3766['uuid'],this['imageUploadProgress']=null;const _0x2b8298=_0x37d41f['getAttribute']('src');this['_imageCache']['set'](_0x2b8298,{'id':_0x5f3766['uuid'],'url':_0x5f3766['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x59489c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x59489c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x14a9ea,_0x9d8df0){_0x14a9ea['on']('apply',(_0x19609c,_0x1fd0f2)=>{this['_replaceImage'](_0x9d8df0,_0x1fd0f2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x14a9ea['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x14a9ea['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x760689,_0x3e084a,_0x1139ce){const _0x2a6587=this['_editor'],{width:_0x19e56c,height:_0x1bf488}=C(_0x3e084a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x57dd66,imageSources:_0x43d76c}=k(_0x3e084a,_0x19e56c);_0x2a6587['model']['change'](_0x124d50=>{if('$graveyard'===_0x760689['root']['rootName']){_0x2a6587['execute']('insertImage',{'imageType':_0x760689['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x760689['getAttributes']()),'uploadcareImageId':_0x1139ce,'src':_0x57dd66,'sources':_0x43d76c,'width':_0x19e56c,'height':_0x1bf488}});const _0x3e16c2=_0x760689['getChildren']();_0x760689=_0x2a6587['model']['document']['selection']['getSelectedElement']();for(const _0x4df713 of _0x3e16c2)_0x124d50['append'](_0x124d50['cloneElement'](_0x4df713),_0x760689);}else _0x124d50['setSelection'](_0x760689,'on'),_0x2a6587['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x760689['getAttributes']()),'uploadcareImageId':_0x1139ce,'src':_0x57dd66,'sources':_0x43d76c,'width':_0x19e56c,'height':_0x1bf488},_0x760689);_0x124d50['setSelection'](_0x760689,'on');});}async['_getImageAsFile'](_0x44ed6d){const _0xe089b7=_0x5db020['window'],_0x181a4c=_0x5db020['document']['location']['href'],_0x4316e4=new _0xe089b7['URL'](_0x44ed6d['getAttribute']('src'),_0x181a4c);if('data:'===_0x4316e4['protocol']){const _0x356784=_0x4316e4['href']['split'](','),_0x56362f=_0x356784[0x0]['match'](/:(.*?);/)[0x1],_0x56396f=_0x56362f['split']('/')[0x1],_0x434f7e=_0xe089b7['atob'](_0x356784[_0x356784['length']-0x1]);let _0x43cda4=_0x434f7e['length'];const _0x5d60f7=new _0xe089b7['Uint8Array'](_0x43cda4);for(;_0x43cda4--;)_0x5d60f7[_0x43cda4]=_0x434f7e['charCodeAt'](_0x43cda4);return new _0xe089b7['File']([_0x5d60f7],'image.'+_0x56396f,{'type':_0x56362f});}const _0xcd52=_0x4316e4['href']['split']('/'),_0x2a2311=_0xcd52[_0xcd52['length']-0x1],_0x47418b=_0x2a2311['split']('.')[0x1];return _0xe089b7['fetch'](_0x4316e4['href'])['then'](_0x34f524=>_0x34f524['clone']()['blob']())['then'](_0x17c73d=>new _0xe089b7['File']([_0x17c73d],_0x2a2311,{'type':'image/'+_0x47418b}));}}class Q extends _0x46f6ad{['imageEditController'];static get['requires'](){return[_0x1fb372];}['_isEditable'];constructor(_0x5b569a){super(_0x5b569a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x39ca2a){const _0x34dae5=z(_0x39ca2a);return _0x1d3ca3=>!(!_0x1d3ca3||!_0x1d3ca3['is']('element','imageBlock')&&!_0x1d3ca3['is']('element','imageInline'))&&(!!_0x1d3ca3['hasAttribute']('uploadcareImageId')||!!_0x1d3ca3['hasAttribute']('src')&&_0x34dae5(_0x1d3ca3['getAttribute']('src')));}(_0x5b569a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2cfbd0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2cfbd0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x384b44=this['editor']['model']['document']['selection']['getSelectedElement']();_0x384b44&&(_0x384b44['is']('element','imageBlock')||_0x384b44['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x1fb372),_0x384b44),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x46f6ad{['refresh'](){const _0x500bbc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x500bbc&&(_0x500bbc['is']('element','imageBlock')||_0x500bbc['is']('element','imageInline')));}['execute'](_0xc04652){const _0x353909=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4eef2d=>{_0x4eef2d['setAttributes'](_0xc04652,_0x353909),_0x4eef2d['removeAttribute']('srcset',_0x353909),_0x4eef2d['removeAttribute']('sizes',_0x353909);});}}class m extends _0x2cf13a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2a8bc8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ea926}=this;_0x4ea926['commands']['add']('uploadcareImageEdit',new Q(_0x4ea926)),_0x4ea926['commands']['add']('uploadcareImageReplace',new V(_0x4ea926));}}class g extends _0x2cf13a{['_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 _0x2f1efe=this['editor'];_0x2f1efe['ui']['componentFactory']['add']('uploadcareImageEdit',_0x56f87e=>{const _0x55ce46=_0x2f1efe['commands']['get']('uploadcareImageEdit'),_0x428554=new _0x54eaf0(_0x56f87e),t=_0x56f87e['t'];return _0x428554['set']({'icon':_0x3da54a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x428554['bind']('isEnabled')['to'](_0x55ce46),_0x428554['bind']('isOn')['to'](_0x55ce46,'isActive'),this['listenTo'](_0x428554,'execute',()=>{_0x2f1efe['execute']('uploadcareImageEdit'),_0x2f1efe['editing']['view']['focus']();}),_0x428554;}),this['_initConfig']();}['_initConfig'](){const _0x42eeaa=_0x18589a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x42eeaa),this['listenTo'](this['editor'],'destroy',()=>{_0x42eeaa['remove']();});}}class et extends _0x2cf13a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "46.0.1-alpha.10",
3
+ "version": "46.0.1-alpha.12",
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": "46.0.1-alpha.10",
27
- "@ckeditor/ckeditor5-icons": "46.0.1-alpha.10",
28
- "@ckeditor/ckeditor5-image": "46.0.1-alpha.10",
29
- "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.10",
30
- "@ckeditor/ckeditor5-ui": "46.0.1-alpha.10",
31
- "@ckeditor/ckeditor5-upload": "46.0.1-alpha.10",
32
- "@ckeditor/ckeditor5-utils": "46.0.1-alpha.10",
33
- "ckeditor5": "46.0.1-alpha.10",
26
+ "@ckeditor/ckeditor5-core": "46.0.1-alpha.12",
27
+ "@ckeditor/ckeditor5-icons": "46.0.1-alpha.12",
28
+ "@ckeditor/ckeditor5-image": "46.0.1-alpha.12",
29
+ "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.12",
30
+ "@ckeditor/ckeditor5-ui": "46.0.1-alpha.12",
31
+ "@ckeditor/ckeditor5-upload": "46.0.1-alpha.12",
32
+ "@ckeditor/ckeditor5-utils": "46.0.1-alpha.12",
33
+ "ckeditor5": "46.0.1-alpha.12",
34
34
  "@uploadcare/file-uploader": "1.17.1",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4874dc=_0x5ad0;(function(_0x54800c,_0x103b6d){const _0x5c98bb=_0x5ad0,_0x2fceff=_0x54800c();while(!![]){try{const _0x594ba2=-parseInt(_0x5c98bb(0xd1))/0x1+parseInt(_0x5c98bb(0xc4))/0x2*(parseInt(_0x5c98bb(0xda))/0x3)+-parseInt(_0x5c98bb(0xa9))/0x4*(-parseInt(_0x5c98bb(0xb0))/0x5)+-parseInt(_0x5c98bb(0xdc))/0x6+parseInt(_0x5c98bb(0xb8))/0x7*(parseInt(_0x5c98bb(0xb9))/0x8)+-parseInt(_0x5c98bb(0xbb))/0x9+parseInt(_0x5c98bb(0xd4))/0xa;if(_0x594ba2===_0x103b6d)break;else _0x2fceff['push'](_0x2fceff['shift']());}catch(_0x5de99a){_0x2fceff['push'](_0x2fceff['shift']());}}}(_0x5dc7,0xbaddf));import{Plugin as _0x5473f7}from'ckeditor5/src/core.js';import{Dialog as _0x287a1d}from'ckeditor5/src/ui.js';import{createElement as _0x1d8043,global as _0x2cada8,uid as _0x543a01}from'ckeditor5/src/utils.js';function _0x5dc7(){const _0x565a06=['getAttribute','isRegistered','7699780kvJMtl','model','attributeToAttribute','editing','commands','isPremiumPlugin','201966SUznni','_configElement','3930954ukNNqh','uploadcareImageReplace','iconHrefResolver','afterInit','replaceImageSource','_initSchema','uploader-','view','schema','href','uploadcareImageId','add','true','UploadcareEditing','data-uc-image-id','document','isOfficialPlugin','elementToAttribute','input[uploadcare-file-input]','_initConversion','uploadcare.pubkey','init','querySelector','downcast','for','contentLanguage','cleanupImage','_initConfig','_initCtx','_ctxElement','uc-config','insertImage','get','map','236KDWePQ','getSelectedElement','_initImageProcessingIndicator','destroy','locale','conversion','ctxElement','96820PISTVV','#uc-icon-arrow-down','PictureEditing','upcast','uc-upload-ctx-provider','\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','remove','uploadcare.uploader','20762USuUVY','3464ePTyXR','ucContextId','6705027sRVydY','removeAttribute','requires','fromCharCode','render','join','uploadcare','listenTo','extend','4qjKoFJ','config','execute','body','pluginName','once','configElement','imageInline','closeMax','imageBlock','appendChild','selection','editor','1165807WnBwhJ'];_0x5dc7=function(){return _0x565a06;};return _0x5dc7();}function _0x5ad0(_0x3c8ad2,_0x2f141d){const _0x5dc7dc=_0x5dc7();return _0x5ad0=function(_0x5ad03a,_0x442950){_0x5ad03a=_0x5ad03a-0x93;let _0x48dc71=_0x5dc7dc[_0x5ad03a];return _0x48dc71;},_0x5ad0(_0x3c8ad2,_0x2f141d);}import{UploadcareCommand as _0x124e76}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3b8bdc}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2bf7ac}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5473f7{[_0x4874dc(0xdb)]=null;[_0x4874dc(0xa4)]=null;static get[_0x4874dc(0xc8)](){const _0x2ba52f=_0x4874dc;return _0x2ba52f(0x94);}static get[_0x4874dc(0xbd)](){const _0x5bd2d7=_0x4874dc;return[_0x5bd2d7(0xb2),_0x3b8bdc,_0x287a1d];}static get[_0x4874dc(0x97)](){return!0x0;}static get[_0x4874dc(0xd9)](){return!0x0;}[_0x4874dc(0xba)];get[_0x4874dc(0xca)](){const _0x83e72d=_0x4874dc;return this[_0x83e72d(0xdb)];}get[_0x4874dc(0xaf)](){const _0x70524a=_0x4874dc;return this[_0x70524a(0xa4)];}constructor(_0x4c1ef4){const _0x233ce9=_0x4874dc;super(_0x4c1ef4),this[_0x233ce9(0xba)]=_0x543a01();}[_0x4874dc(0x9c)](){const _0x136d06=_0x4874dc,_0x406f32=this[_0x136d06(0xd0)];_0x406f32[_0x136d06(0xd8)][_0x136d06(0xe7)](_0x136d06(0xc1),new _0x124e76(_0x406f32));}[_0x4874dc(0xdf)](){const _0x7c18d9=_0x4874dc;this[_0x7c18d9(0xe1)](),this[_0x7c18d9(0x9a)](),this[_0x7c18d9(0xa2)](),this[_0x7c18d9(0xa3)](),this[_0x7c18d9(0xab)](),this[_0x7c18d9(0xc2)](this[_0x7c18d9(0xd0)],_0x7c18d9(0xac),()=>{const _0x13dcbe=_0x7c18d9;this[_0x13dcbe(0xdb)]&&(this[_0x13dcbe(0xdb)][_0x13dcbe(0xb6)](),this[_0x13dcbe(0xdb)]=null),this[_0x13dcbe(0xa4)]&&(this[_0x13dcbe(0xa4)][_0x13dcbe(0xb6)](),this[_0x13dcbe(0xa4)]=null);const _0x1d6736=_0x2cada8[_0x13dcbe(0x96)][_0x13dcbe(0x9d)](_0x13dcbe(0x99));_0x1d6736&&_0x1d6736[_0x13dcbe(0xb6)]();}),async function(_0x253355){const _0x2350bc=_0xe642c1([0x73,0x6f,0x70,0x41,0x76,0x47,0x64,0x45,0x42,0x49,0x4a,0x36,0x57,0x6b,0x67,0x61,0x62,0x48,0x55,0x71,0x31,0x44,0x37,0x63,0x50,0x7a,0x68,0x4c,0x43,0x34,0x72,0x4f,0x35,0x5a,0x54,0x6d,0x38,0x52,0x33,0x56,0x32,0x77,0x75,0x79,0x53,0x51,0x4e,0x39,0x6a,0x4b,0x46,0x4d,0x66,0x58,0x30,0x59,0x69,0x65,0x6e,0x78,0x74,0x6c]),_0x43eb0a=0x50e52eeb,_0x47f13d=0x50e24123^_0x43eb0a,_0xb507c8=window[_0xe642c1([0x44,0x61,0x74,0x65])][_0xe642c1([0x6e,0x6f,0x77])](),_0x4e88d8=_0x253355[_0xe642c1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x391376=new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58c5d4=>{_0x4e88d8[_0xe642c1([0x6f,0x6e,0x63,0x65])](_0xe642c1([0x72,0x65,0x61,0x64,0x79]),_0x58c5d4);}),_0x1d4fe5={[_0xe642c1([0x6b,0x74,0x79])]:_0xe642c1([0x45,0x43]),[_0xe642c1([0x75,0x73,0x65])]:_0xe642c1([0x73,0x69,0x67]),[_0xe642c1([0x63,0x72,0x76])]:_0xe642c1([0x50,0x2d,0x32,0x35,0x36]),[_0xe642c1([0x78])]:_0xe642c1([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]),[_0xe642c1([0x79])]:_0xe642c1([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]),[_0xe642c1([0x61,0x6c,0x67])]:_0xe642c1([0x45,0x53,0x32,0x35,0x36])},_0x894da8=_0x4e88d8[_0xe642c1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe642c1([0x67,0x65,0x74])](_0xe642c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2dbe33(){let _0x1608cc,_0xc9df04=null,_0x5982f2=null;try{if(_0x894da8==_0xe642c1([0x47,0x50,0x4c]))return _0xe642c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1608cc=_0x51be45(),!_0x1608cc)return _0xe642c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1608cc[_0xe642c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5982f2=_0x281472(_0x1608cc[_0xe642c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1608cc[_0xe642c1([0x6a,0x74,0x69])])),await _0x24ba5c()?_0x57858a()?_0x5d3149()?_0xe642c1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x516a1d()?(_0x1608cc[_0xe642c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe642c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc9df04=_0x2145e4(_0xe642c1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1608cc[_0xe642c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe642c1([0x74,0x72,0x69,0x61,0x6c])&&(_0xc9df04=_0x2145e4(_0xe642c1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x432324()):_0xe642c1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe642c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe642c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe642c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d3149(){const _0x535247=[_0xe642c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe642c1([0x74,0x72,0x69,0x61,0x6c])][_0xe642c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1608cc[_0xe642c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb507c8/0x3e8:0xe10*_0x47f13d;return _0x1608cc[_0xe642c1([0x65,0x78,0x70])]<_0x535247;}function _0x57858a(){const _0x70bc0f=_0x1608cc[_0xe642c1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x70bc0f&&(!!_0x70bc0f[_0xe642c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe642c1([0x2a]))||!!_0x70bc0f[_0xe642c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe642c1([0x55,0x50,0x4c,0x43])));}function _0x516a1d(){const _0x4d2a2c=_0x5ad0,_0x47c9b4=_0x1608cc[_0xe642c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47c9b4||0x0==_0x47c9b4[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10b192}=new URL(window[_0xe642c1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4d2a2c(0xe5)]);if(_0x47c9b4[_0xe642c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10b192))return!0x0;const _0x5d850e=_0x10b192[_0xe642c1([0x73,0x70,0x6c,0x69,0x74])](_0xe642c1([0x2e]));return _0x47c9b4[_0xe642c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xad09bd=>_0xad09bd[_0xe642c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe642c1([0x2a])))[_0xe642c1([0x6d,0x61,0x70])](_0x59d5e6=>_0x59d5e6[_0xe642c1([0x73,0x70,0x6c,0x69,0x74])](_0xe642c1([0x2e])))[_0xe642c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16b22d=>_0x16b22d[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d850e[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe642c1([0x6d,0x61,0x70])](_0x230267=>Array(_0x5d850e[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x230267[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe642c1([0x66,0x69,0x6c,0x6c])](_0x230267[0x0]===_0xe642c1([0x2a])?_0xe642c1([0x2a]):'')[_0xe642c1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x230267))[_0xe642c1([0x73,0x6f,0x6d,0x65])](_0x596a58=>_0x5d850e[_0xe642c1([0x65,0x76,0x65,0x72,0x79])]((_0x47ac42,_0xfa46e5)=>_0x596a58[_0xfa46e5]===_0x47ac42||_0x596a58[_0xfa46e5]===_0xe642c1([0x2a])));}function _0x432324(){return _0xc9df04&&_0x5982f2?new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cd794,_0x5ed769)=>{_0xc9df04[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x2cd794,_0x5ed769),_0x5982f2[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x45ec4a=>{_0x45ec4a!=_0xe642c1([0x56,0x61,0x6c,0x69,0x64])&&_0x2cd794(_0x45ec4a);},_0x5ed769);}):_0xc9df04||_0x5982f2||_0xe642c1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x281472(_0xf16665,_0x398b9b){return new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f972f=>{if(_0x185c36())return _0x2f972f(_0xe642c1([0x56,0x61,0x6c,0x69,0x64]));_0x32c644(),_0x4e88d8[_0xe642c1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe642c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa958a6=!0x1;const _0x4bd042=_0x543a01();function _0x1f304c(_0x42d2cc){return!!_0x42d2cc&&(typeof _0x42d2cc===_0xe642c1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x42d2cc===_0xe642c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x42d2cc[_0xe642c1([0x74,0x68,0x65,0x6e])]===_0xe642c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x42d2cc[_0xe642c1([0x63,0x61,0x74,0x63,0x68])]===_0xe642c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c1743(_0x4e22f7){_0x54147c(_0x4e22f7)[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x5af657=>{if(!_0x5af657||_0x5af657[_0xe642c1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe642c1([0x6f,0x6b]))return _0xe642c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22e0a9(_0x4bc84f(_0x4bd042+_0x398b9b))!=_0x5af657[_0xe642c1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe642c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe642c1([0x56,0x61,0x6c,0x69,0x64]);})[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x9b5f24=>(_0x123e08(),_0x9b5f24),()=>{const _0x1a5f55=_0x10cd66();return null==_0x1a5f55?(_0x123e08(),_0xe642c1([0x56,0x61,0x6c,0x69,0x64])):_0xe642c1(_0xb507c8-_0x1a5f55>(0x74e9aaeb^_0x43eb0a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x2f972f)[_0xe642c1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f972f(_0xe642c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x282991=0x50d3c06b^_0x43eb0a;function _0x123e08(){const _0x4b412f=_0xe642c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x22e0a9(_0x4bc84f(_0xf16665)),_0xb514da=_0xdaf2bd(_0x22e0a9(window[_0xe642c1([0x4d,0x61,0x74,0x68])][_0xe642c1([0x63,0x65,0x69,0x6c])](_0xb507c8/_0x282991)));window[_0xe642c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe642c1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b412f,_0xb514da);}function _0x10cd66(){const _0x539edc=_0xe642c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x22e0a9(_0x4bc84f(_0xf16665)),_0x45ac52=window[_0xe642c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe642c1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x539edc);return _0x45ac52?window[_0xe642c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdaf2bd(_0x45ac52),0x10)*_0x282991:null;}function _0x54147c(_0x55ab80){return new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f44af,_0x17b3d6)=>{_0x55ab80[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x4f44af,_0x17b3d6),window[_0xe642c1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17b3d6,0x50e4fa2b^_0x43eb0a);});}}_0x4e88d8[_0xe642c1([0x6f,0x6e])](_0xe642c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c507c,_0x17327b)=>{if(_0x17327b[0x0]!=_0xf16665)return _0x2f972f(_0xe642c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17327b[0x1]={..._0x17327b[0x1],[_0xe642c1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4bd042};},{[_0xe642c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe642c1([0x68,0x69,0x67,0x68])}),_0x4e88d8[_0xe642c1([0x6f,0x6e])](_0xe642c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5925d0=>{_0x1f304c(_0x5925d0[_0xe642c1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa958a6=!0x0,_0x2c1743(_0x5925d0[_0xe642c1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe642c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe642c1([0x6c,0x6f,0x77])}),_0x391376[_0xe642c1([0x74,0x68,0x65,0x6e])](()=>{_0xa958a6||_0x2f972f(_0xe642c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x185c36(){return _0x4e88d8[_0xe642c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe642c1([0x76,0x69,0x65,0x77])][_0xe642c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe642c1([0x61,0x75,0x74,0x6f]);}function _0x32c644(){_0x4e88d8[_0xe642c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe642c1([0x76,0x69,0x65,0x77])][_0xe642c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe642c1([0x61,0x75,0x74,0x6f]);}}function _0x2145e4(_0x396a83){const _0x35d098=[new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x494dd2=>setTimeout(_0x494dd2,0x50ec1027^_0x43eb0a)),_0x391376[_0xe642c1([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe1fe86=>{let _0x9a43f2=0x0;_0x4e88d8[_0xe642c1([0x6d,0x6f,0x64,0x65,0x6c])][_0xe642c1([0x6f,0x6e])](_0xe642c1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4091e6,_0x1a9925)=>{_0x1a9925[0x0][_0xe642c1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9a43f2++,_0x9a43f2==(0x50e52f13^_0x43eb0a)&&(_0xe1fe86(),_0x4091e6[_0xe642c1([0x6f,0x66,0x66])]());});}))];return window[_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe642c1([0x72,0x61,0x63,0x65])](_0x35d098)[_0xe642c1([0x74,0x68,0x65,0x6e])](()=>_0x396a83);}async function _0x283476(){await _0x391376,_0x4e88d8[_0xe642c1([0x6d,0x6f,0x64,0x65,0x6c])][_0xe642c1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42a53c,_0x4e88d8[_0xe642c1([0x6d,0x6f,0x64,0x65,0x6c])][_0xe642c1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42a53c,_0x4e88d8[_0xe642c1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe642c1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x30fc0e(_0x324a01){const _0x45530b=_0x325429();_0x4e88d8[_0x45530b]=_0xe642c1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x324a01,_0x324a01!=_0xe642c1([0x56,0x61,0x6c,0x69,0x64])&&_0x283476();}function _0x325429(){const _0x2b5089=window[_0xe642c1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe642c1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe642c1([0x6e,0x6f,0x77])]())[_0xe642c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe642c1([0x2e]),'');let _0x54c02f=_0xe642c1([0x73]);for(let _0x109b9f=0x0;_0x109b9f<_0x2b5089[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109b9f+=0x2){let _0x3afa3b=window[_0xe642c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b5089[_0xe642c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x109b9f,_0x109b9f+0x2));_0x3afa3b>=_0x2350bc[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3afa3b-=_0x2350bc[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54c02f+=_0x2350bc[_0x3afa3b];}return _0x54c02f;}function _0x51be45(){const _0x13c628=_0x894da8[_0xe642c1([0x73,0x70,0x6c,0x69,0x74])](_0xe642c1([0x2e]));if(0x3!=_0x13c628[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ee1f7(_0x13c628[0x1]);function _0x3ee1f7(_0x46fa61){const _0x28656f=_0x330a48(_0x46fa61);return _0x28656f&&_0x235ded()?_0x28656f:null;function _0x235ded(){const _0x5d68f2=_0x28656f[_0xe642c1([0x6a,0x74,0x69])],_0x447070=window[_0xe642c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d68f2[_0xe642c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d68f2[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f3c8b={..._0x28656f,[_0xe642c1([0x6a,0x74,0x69])]:_0x5d68f2[_0xe642c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d68f2[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f3c8b[_0xe642c1([0x76,0x63])],_0x4bc84f(_0x3f3c8b)==_0x447070;}}}async function _0x24ba5c(){let _0x80cdf8=!0x0;try{const _0x2db3ee=_0x894da8[_0xe642c1([0x73,0x70,0x6c,0x69,0x74])](_0xe642c1([0x2e])),[_0x3623ab,_0x29799c,_0x2937e1]=_0x2db3ee;return _0x48c90c(_0x3623ab),await _0x6462c0(_0x3623ab,_0x29799c,_0x2937e1),_0x80cdf8;}catch{return!0x1;}function _0x48c90c(_0x11e3d4){const _0x555702=_0x330a48(_0x11e3d4);_0x555702&&_0x555702[_0xe642c1([0x61,0x6c,0x67])]==_0xe642c1([0x45,0x53,0x32,0x35,0x36])||(_0x80cdf8=!0x1);}async function _0x6462c0(_0x518b94,_0x2bf4fa,_0x674865){const _0x23b614=window[_0xe642c1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe642c1([0x66,0x72,0x6f,0x6d])](_0x4a59a2(_0x674865),_0x66abe4=>_0x66abe4[_0xe642c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3cc707=new window[(_0xe642c1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe642c1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x518b94+_0xe642c1([0x2e])+_0x2bf4fa),_0x2cffc6=window[_0xe642c1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe642c1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cffc6)return;const _0x3dd765=await _0x2cffc6[_0xe642c1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe642c1([0x6a,0x77,0x6b]),_0x1d4fe5,{[_0xe642c1([0x6e,0x61,0x6d,0x65])]:_0xe642c1([0x45,0x43,0x44,0x53,0x41]),[_0xe642c1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe642c1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe642c1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cffc6[_0xe642c1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe642c1([0x6e,0x61,0x6d,0x65])]:_0xe642c1([0x45,0x43,0x44,0x53,0x41]),[_0xe642c1([0x68,0x61,0x73,0x68])]:{[_0xe642c1([0x6e,0x61,0x6d,0x65])]:_0xe642c1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3dd765,_0x23b614,_0x3cc707)||(_0x80cdf8=!0x1);}}function _0x330a48(_0x26d9ff){return _0x26d9ff[_0xe642c1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe642c1([0x65,0x79]))?JSON[_0xe642c1([0x70,0x61,0x72,0x73,0x65])](_0x4a59a2(_0x26d9ff)):null;}function _0x4a59a2(_0x3e9576){return window[_0xe642c1([0x61,0x74,0x6f,0x62])](_0x3e9576[_0xe642c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe642c1([0x2b]))[_0xe642c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe642c1([0x2f])));}function _0x4bc84f(_0x10d39d){let _0x38453b=0x1505;function _0x28c376(_0x1d1778){for(let _0x1e5206=0x0;_0x1e5206<_0x1d1778[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e5206++){const _0x1bab63=_0x1d1778[_0xe642c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e5206);_0x38453b=(_0x38453b<<0x5)+_0x38453b+_0x1bab63,_0x38453b&=_0x38453b;}}function _0xa31589(_0x3c3cb6){Array[_0xe642c1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c3cb6)?_0x3c3cb6[_0xe642c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa31589):_0x3c3cb6&&typeof _0x3c3cb6==_0xe642c1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe642c1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c3cb6)[_0xe642c1([0x73,0x6f,0x72,0x74])]()[_0xe642c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x376eee,_0x162fc7])=>{_0x28c376(_0x376eee),_0xa31589(_0x162fc7);}):_0x28c376(window[_0xe642c1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c3cb6));}return _0xa31589(_0x10d39d),_0x38453b>>>0x0;}function _0x22e0a9(_0x22c483){return _0x22c483[_0xe642c1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe642c1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe642c1([0x30]));}function _0xdaf2bd(_0x2c71d7){return _0x2c71d7[_0xe642c1([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe642c1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe642c1([0x6a,0x6f,0x69,0x6e])]('');}function _0x42a53c(){}function _0xe642c1(_0x135ace){const _0x46b492=_0x5ad0;return _0x135ace[_0x46b492(0xa8)](_0x3d634c=>String[_0x46b492(0xbe)](_0x3d634c))[_0x46b492(0xc0)]('');}_0x30fc0e(await _0x2dbe33());}(this);}[_0x4874dc(0xe1)](){const _0x24dfe2=_0x4874dc,_0x5332d0=this[_0x24dfe2(0xd0)][_0x24dfe2(0xd5)][_0x24dfe2(0xe4)];_0x5332d0[_0x24dfe2(0xd3)](_0x24dfe2(0xcd))&&_0x5332d0[_0x24dfe2(0xc3)](_0x24dfe2(0xcd),{'allowAttributes':[_0x24dfe2(0xe6)]}),_0x5332d0[_0x24dfe2(0xd3)](_0x24dfe2(0xcb))&&_0x5332d0[_0x24dfe2(0xc3)](_0x24dfe2(0xcb),{'allowAttributes':[_0x24dfe2(0xe6)]});}[_0x4874dc(0x9a)](){const _0x415da4=_0x4874dc,_0x119663=this[_0x415da4(0xd0)];_0x119663[_0x415da4(0xae)][_0x415da4(0x9f)](_0x415da4(0x9e))[_0x415da4(0xd6)]({'model':_0x415da4(0xe6),'view':_0x415da4(0x95)}),_0x119663[_0x415da4(0xae)][_0x415da4(0x9f)](_0x415da4(0xb3))[_0x415da4(0x98)]({'model':{'key':_0x415da4(0xe6),'value':_0x45adc2=>_0x45adc2[_0x415da4(0xd2)](_0x415da4(0x95))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4c8382=_0x119663[_0x415da4(0xd8)][_0x415da4(0xa7)](_0x415da4(0xe0));_0x4c8382&&this[_0x415da4(0xc2)](_0x4c8382,_0x415da4(0xa1),(_0x58b3dd,[_0x558852,_0x2e560a])=>{const _0x1fe8ad=_0x415da4;_0x558852[_0x1fe8ad(0xbc)](_0x1fe8ad(0xe6),_0x2e560a);});}[_0x4874dc(0xa2)](){const _0x210296=_0x4874dc,_0x547e6c=this[_0x210296(0xd0)][_0x210296(0xc5)][_0x210296(0xa7)](_0x210296(0xb7))||{},_0x4ec83c=this[_0x210296(0xd0)][_0x210296(0xc5)][_0x210296(0xa7)](_0x210296(0x9b))||'';this[_0x210296(0xdb)]=_0x1d8043(_0x2cada8[_0x210296(0x96)],_0x210296(0xa5),{..._0x547e6c,'pubkey':_0x4ec83c,'ctx-name':_0x210296(0xe2)+this[_0x210296(0xba)],'sourceList':'','imgOnly':_0x210296(0x93),'removeCopyright':_0x210296(0x93),'localeName':this[_0x210296(0xd0)][_0x210296(0xad)][_0x210296(0xa0)],'externalSourcesEmbedCss':_0x210296(0xb5)}),this[_0x210296(0xdb)][_0x210296(0xde)]=_0x3ef0e6=>{const _0x3117c6=_0x210296;if(_0x3117c6(0xcc)==_0x3ef0e6)return _0x3117c6(0xb1);},_0x2cada8[_0x210296(0x96)][_0x210296(0xc7)][_0x210296(0xce)](this[_0x210296(0xdb)]);}[_0x4874dc(0xa3)](){const _0x5564bd=_0x4874dc;this[_0x5564bd(0xa4)]=_0x1d8043(_0x2cada8[_0x5564bd(0x96)],_0x5564bd(0xb4),{'ctx-name':_0x5564bd(0xe2)+this[_0x5564bd(0xba)]}),_0x2cada8[_0x5564bd(0x96)][_0x5564bd(0xc7)][_0x5564bd(0xce)](this[_0x5564bd(0xa4)]);}[_0x4874dc(0xab)](){const _0x1b657f=_0x4874dc,_0x54599d=this[_0x1b657f(0xd0)][_0x1b657f(0xd8)][_0x1b657f(0xa7)](_0x1b657f(0xa6));_0x54599d&&this[_0x1b657f(0xc2)](_0x54599d,_0x1b657f(0xc6),()=>{const _0x3c8bce=_0x1b657f,_0x3bf3e4=this[_0x3c8bce(0xd0)][_0x3c8bce(0xd5)][_0x3c8bce(0x96)][_0x3c8bce(0xcf)][_0x3c8bce(0xaa)]();_0x3bf3e4&&_0x3bf3e4[_0x3c8bce(0xd2)](_0x3c8bce(0xe6))&&this[_0x3c8bce(0xd0)][_0x3c8bce(0xd7)][_0x3c8bce(0xe3)][_0x3c8bce(0xc9)](_0x3c8bce(0xbf),()=>{const _0xd0223d=_0x3c8bce;_0x2bf7ac(this[_0xd0223d(0xd0)],_0x3bf3e4);});});const _0x4df084=this[_0x1b657f(0xd0)][_0x1b657f(0xd8)][_0x1b657f(0xa7)](_0x1b657f(0xdd));_0x4df084&&this[_0x1b657f(0xc2)](_0x4df084,_0x1b657f(0xc6),()=>{const _0x115744=_0x1b657f,_0x42e5a7=this[_0x115744(0xd0)][_0x115744(0xd5)][_0x115744(0x96)][_0x115744(0xcf)][_0x115744(0xaa)]();_0x42e5a7&&_0x42e5a7[_0x115744(0xd2)](_0x115744(0xe6))&&this[_0x115744(0xd0)][_0x115744(0xd7)][_0x115744(0xe3)][_0x115744(0xc9)](_0x115744(0xbf),()=>{const _0x4c2f7a=_0x115744;_0x2bf7ac(this[_0x4c2f7a(0xd0)],_0x42e5a7);});});}}
23
+ const _0x30fc21=_0x543e;(function(_0x48fc69,_0x3a98d1){const _0x21a50f=_0x543e,_0x528bc7=_0x48fc69();while(!![]){try{const _0x54e312=-parseInt(_0x21a50f(0x174))/0x1+-parseInt(_0x21a50f(0x18c))/0x2+parseInt(_0x21a50f(0x194))/0x3*(parseInt(_0x21a50f(0x1b3))/0x4)+-parseInt(_0x21a50f(0x192))/0x5+-parseInt(_0x21a50f(0x19e))/0x6*(-parseInt(_0x21a50f(0x18a))/0x7)+parseInt(_0x21a50f(0x16c))/0x8+parseInt(_0x21a50f(0x1b2))/0x9;if(_0x54e312===_0x3a98d1)break;else _0x528bc7['push'](_0x528bc7['shift']());}catch(_0x539899){_0x528bc7['push'](_0x528bc7['shift']());}}}(_0x3b95,0xa6564));function _0x543e(_0x3eeb89,_0x3a8b19){const _0x3b950a=_0x3b95();return _0x543e=function(_0x543e7a,_0xd4961){_0x543e7a=_0x543e7a-0x16b;let _0x1f5386=_0x3b950a[_0x543e7a];return _0x1f5386;},_0x543e(_0x3eeb89,_0x3a8b19);}import{Plugin as _0x270e92}from'ckeditor5/src/core.js';import{Dialog as _0x1caf48}from'ckeditor5/src/ui.js';import{createElement as _0x3c9af7,global as _0x57462c,uid as _0x2bef6e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x37846e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x28338c}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xeab640}from'./utils/editingutils.js';function _0x3b95(){const _0x4315d5=['_initConfig','uploadcare.uploader','2405165usNPIP','_initConversion','3wsudoB','join','true','_initCtx','UploadcareEditing','editor','view','removeAttribute','body','data-uc-image-id','145542iGsBJP','editing','uploadcareImageId','add','imageInline','isOfficialPlugin','attributeToAttribute','_ctxElement','_configElement','imageBlock','isPremiumPlugin','contentLanguage','locale','config','closeMax','insertImage','selection','upcast','for','document','770454dyRWYE','5062048VIxvCa','map','render','querySelector','configElement','conversion','requires','once','execute','fromCharCode','afterInit','isRegistered','\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','1150736HQVWqv','cleanupImage','PictureEditing','ctxElement','uploadcareImageReplace','listenTo','_initSchema','elementToAttribute','51709OJTDFV','pluginName','init','appendChild','_initImageProcessingIndicator','remove','commands','get','input[uploadcare-file-input]','downcast','destroy','ucContextId','iconHrefResolver','href','model','uc-config','schema','uploader-','extend','replaceImageSource','#uc-icon-arrow-down','getAttribute','28coFBMb','uc-upload-ctx-provider','755860osIwCK','getSelectedElement','uploadcare','uploadcare.pubkey'];_0x3b95=function(){return _0x4315d5;};return _0x3b95();}export class UploadcareEditing extends _0x270e92{[_0x30fc21(0x1a6)]=null;[_0x30fc21(0x1a5)]=null;static get[_0x30fc21(0x175)](){const _0x1337e6=_0x30fc21;return _0x1337e6(0x198);}static get[_0x30fc21(0x1b9)](){const _0x535951=_0x30fc21;return[_0x535951(0x16e),_0x28338c,_0x1caf48];}static get[_0x30fc21(0x1a3)](){return!0x0;}static get[_0x30fc21(0x1a8)](){return!0x0;}[_0x30fc21(0x17f)];get[_0x30fc21(0x1b7)](){const _0x8fbf08=_0x30fc21;return this[_0x8fbf08(0x1a6)];}get[_0x30fc21(0x16f)](){const _0x3b73eb=_0x30fc21;return this[_0x3b73eb(0x1a5)];}constructor(_0x4f91b2){const _0x2ebb58=_0x30fc21;super(_0x4f91b2),this[_0x2ebb58(0x17f)]=_0x2bef6e();}[_0x30fc21(0x176)](){const _0x1f50bb=_0x30fc21,_0x1f1007=this[_0x1f50bb(0x199)];_0x1f1007[_0x1f50bb(0x17a)][_0x1f50bb(0x1a1)](_0x1f50bb(0x18e),new _0x37846e(_0x1f1007));}[_0x30fc21(0x1bd)](){const _0x16b7c7=_0x30fc21;this[_0x16b7c7(0x172)](),this[_0x16b7c7(0x193)](),this[_0x16b7c7(0x190)](),this[_0x16b7c7(0x197)](),this[_0x16b7c7(0x178)](),this[_0x16b7c7(0x171)](this[_0x16b7c7(0x199)],_0x16b7c7(0x17e),()=>{const _0x1c6dee=_0x16b7c7;this[_0x1c6dee(0x1a6)]&&(this[_0x1c6dee(0x1a6)][_0x1c6dee(0x179)](),this[_0x1c6dee(0x1a6)]=null),this[_0x1c6dee(0x1a5)]&&(this[_0x1c6dee(0x1a5)][_0x1c6dee(0x179)](),this[_0x1c6dee(0x1a5)]=null);const _0x54a348=_0x57462c[_0x1c6dee(0x1b1)][_0x1c6dee(0x1b6)](_0x1c6dee(0x17c));_0x54a348&&_0x54a348[_0x1c6dee(0x179)]();}),async function(_0x37a488){const _0x235d7f=_0x1aaefc([0x45,0x43,0x34,0x55,0x69,0x35,0x4c,0x71,0x65,0x6f,0x41,0x33,0x36,0x74,0x68,0x67,0x53,0x44,0x75,0x79,0x4b,0x32,0x6c,0x5a,0x66,0x78,0x52,0x6a,0x7a,0x49,0x58,0x56,0x47,0x42,0x6e,0x54,0x46,0x59,0x39,0x30,0x38,0x62,0x4a,0x4d,0x76,0x73,0x57,0x6b,0x70,0x72,0x77,0x4f,0x50,0x48,0x31,0x64,0x6d,0x63,0x61,0x37,0x4e,0x51]),_0x40f94f=0x9ff086f,_0x31c540=0x9f86797^_0x40f94f,_0xe206d9=window[_0x1aaefc([0x44,0x61,0x74,0x65])][_0x1aaefc([0x6e,0x6f,0x77])](),_0x9ada83=_0x37a488[_0x1aaefc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x396af9=new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff2af=>{_0x9ada83[_0x1aaefc([0x6f,0x6e,0x63,0x65])](_0x1aaefc([0x72,0x65,0x61,0x64,0x79]),_0x1ff2af);}),_0x339f51={[_0x1aaefc([0x6b,0x74,0x79])]:_0x1aaefc([0x45,0x43]),[_0x1aaefc([0x75,0x73,0x65])]:_0x1aaefc([0x73,0x69,0x67]),[_0x1aaefc([0x63,0x72,0x76])]:_0x1aaefc([0x50,0x2d,0x32,0x35,0x36]),[_0x1aaefc([0x78])]:_0x1aaefc([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]),[_0x1aaefc([0x79])]:_0x1aaefc([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]),[_0x1aaefc([0x61,0x6c,0x67])]:_0x1aaefc([0x45,0x53,0x32,0x35,0x36])},_0x580cef=_0x9ada83[_0x1aaefc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1aaefc([0x67,0x65,0x74])](_0x1aaefc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31f8f4(){let _0x55c7bd,_0x33a6fb=null,_0x3b06c9=null;try{if(_0x580cef==_0x1aaefc([0x47,0x50,0x4c]))return _0x1aaefc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55c7bd=_0x2e7a16(),!_0x55c7bd)return _0x1aaefc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55c7bd[_0x1aaefc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b06c9=_0x1b428a(_0x55c7bd[_0x1aaefc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55c7bd[_0x1aaefc([0x6a,0x74,0x69])])),await _0x2c8a21()?_0x3c5b29()?_0x2fa1f2()?_0x1aaefc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a0bae()?(_0x55c7bd[_0x1aaefc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1aaefc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33a6fb=_0x5404f9(_0x1aaefc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55c7bd[_0x1aaefc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1aaefc([0x74,0x72,0x69,0x61,0x6c])&&(_0x33a6fb=_0x5404f9(_0x1aaefc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f7a5b()):_0x1aaefc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1aaefc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1aaefc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1aaefc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2fa1f2(){const _0xc5762f=[_0x1aaefc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1aaefc([0x74,0x72,0x69,0x61,0x6c])][_0x1aaefc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55c7bd[_0x1aaefc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe206d9/0x3e8:0xe10*_0x31c540;return _0x55c7bd[_0x1aaefc([0x65,0x78,0x70])]<_0xc5762f;}function _0x3c5b29(){const _0x4fb4e7=_0x55c7bd[_0x1aaefc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4fb4e7&&(!!_0x4fb4e7[_0x1aaefc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aaefc([0x2a]))||!!_0x4fb4e7[_0x1aaefc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aaefc([0x55,0x50,0x4c,0x43])));}function _0x5a0bae(){const _0x3d7d59=_0x543e,_0x563327=_0x55c7bd[_0x1aaefc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x563327||0x0==_0x563327[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x596da4}=new URL(window[_0x1aaefc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3d7d59(0x181)]);if(_0x563327[_0x1aaefc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x596da4))return!0x0;const _0x5b11d9=_0x596da4[_0x1aaefc([0x73,0x70,0x6c,0x69,0x74])](_0x1aaefc([0x2e]));return _0x563327[_0x1aaefc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32ff=>_0x32ff[_0x1aaefc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aaefc([0x2a])))[_0x1aaefc([0x6d,0x61,0x70])](_0x389e8e=>_0x389e8e[_0x1aaefc([0x73,0x70,0x6c,0x69,0x74])](_0x1aaefc([0x2e])))[_0x1aaefc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e41bd=>_0x5e41bd[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b11d9[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1aaefc([0x6d,0x61,0x70])](_0x542ad2=>Array(_0x5b11d9[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x542ad2[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1aaefc([0x66,0x69,0x6c,0x6c])](_0x542ad2[0x0]===_0x1aaefc([0x2a])?_0x1aaefc([0x2a]):'')[_0x1aaefc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x542ad2))[_0x1aaefc([0x73,0x6f,0x6d,0x65])](_0x21a6b3=>_0x5b11d9[_0x1aaefc([0x65,0x76,0x65,0x72,0x79])]((_0x2e1e49,_0x4ffc7e)=>_0x21a6b3[_0x4ffc7e]===_0x2e1e49||_0x21a6b3[_0x4ffc7e]===_0x1aaefc([0x2a])));}function _0x1f7a5b(){return _0x33a6fb&&_0x3b06c9?new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x94681e,_0xadcbe3)=>{_0x33a6fb[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x94681e,_0xadcbe3),_0x3b06c9[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x240f90=>{_0x240f90!=_0x1aaefc([0x56,0x61,0x6c,0x69,0x64])&&_0x94681e(_0x240f90);},_0xadcbe3);}):_0x33a6fb||_0x3b06c9||_0x1aaefc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b428a(_0x3ec9a6,_0x32c10d){return new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27bed0=>{if(_0x3fa9fd())return _0x27bed0(_0x1aaefc([0x56,0x61,0x6c,0x69,0x64]));_0x4dbd2c(),_0x9ada83[_0x1aaefc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1aaefc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bbd7d=!0x1;const _0x32c226=_0x2bef6e();function _0x26de21(_0x227c37){return!!_0x227c37&&(typeof _0x227c37===_0x1aaefc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x227c37===_0x1aaefc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x227c37[_0x1aaefc([0x74,0x68,0x65,0x6e])]===_0x1aaefc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x227c37[_0x1aaefc([0x63,0x61,0x74,0x63,0x68])]===_0x1aaefc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1df05b(_0x544ea6){_0x25f5d4(_0x544ea6)[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x22f4e7=>{if(!_0x22f4e7||_0x22f4e7[_0x1aaefc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1aaefc([0x6f,0x6b]))return _0x1aaefc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x130d26(_0x53f649(_0x32c226+_0x32c10d))!=_0x22f4e7[_0x1aaefc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1aaefc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1aaefc([0x56,0x61,0x6c,0x69,0x64]);})[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x101c83=>(_0xc5f409(),_0x101c83),()=>{const _0x4f248c=_0x424eb8();return null==_0x4f248c?(_0xc5f409(),_0x1aaefc([0x56,0x61,0x6c,0x69,0x64])):_0x1aaefc(_0xe206d9-_0x4f248c>(0x2df38c6f^_0x40f94f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x27bed0)[_0x1aaefc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27bed0(_0x1aaefc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x195124=0x9c9e6ef^_0x40f94f;function _0xc5f409(){const _0xd0819f=_0x1aaefc([0x6c,0x6c,0x63,0x74,0x2d])+_0x130d26(_0x53f649(_0x3ec9a6)),_0x966f60=_0x52b72b(_0x130d26(window[_0x1aaefc([0x4d,0x61,0x74,0x68])][_0x1aaefc([0x63,0x65,0x69,0x6c])](_0xe206d9/_0x195124)));window[_0x1aaefc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1aaefc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd0819f,_0x966f60);}function _0x424eb8(){const _0x1ee928=_0x1aaefc([0x6c,0x6c,0x63,0x74,0x2d])+_0x130d26(_0x53f649(_0x3ec9a6)),_0x3919a3=window[_0x1aaefc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1aaefc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ee928);return _0x3919a3?window[_0x1aaefc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52b72b(_0x3919a3),0x10)*_0x195124:null;}function _0x25f5d4(_0x2238c2){return new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22f3a1,_0x34f6f6)=>{_0x2238c2[_0x1aaefc([0x74,0x68,0x65,0x6e])](_0x22f3a1,_0x34f6f6),window[_0x1aaefc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x34f6f6,0x9fedcaf^_0x40f94f);});}}_0x9ada83[_0x1aaefc([0x6f,0x6e])](_0x1aaefc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bfdeb,_0x2218a8)=>{if(_0x2218a8[0x0]!=_0x3ec9a6)return _0x27bed0(_0x1aaefc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2218a8[0x1]={..._0x2218a8[0x1],[_0x1aaefc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32c226};},{[_0x1aaefc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1aaefc([0x68,0x69,0x67,0x68])}),_0x9ada83[_0x1aaefc([0x6f,0x6e])](_0x1aaefc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d59b0=>{_0x26de21(_0x1d59b0[_0x1aaefc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bbd7d=!0x0,_0x1df05b(_0x1d59b0[_0x1aaefc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1aaefc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1aaefc([0x6c,0x6f,0x77])}),_0x396af9[_0x1aaefc([0x74,0x68,0x65,0x6e])](()=>{_0x3bbd7d||_0x27bed0(_0x1aaefc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fa9fd(){return _0x9ada83[_0x1aaefc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1aaefc([0x76,0x69,0x65,0x77])][_0x1aaefc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1aaefc([0x61,0x75,0x74,0x6f]);}function _0x4dbd2c(){_0x9ada83[_0x1aaefc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1aaefc([0x76,0x69,0x65,0x77])][_0x1aaefc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1aaefc([0x61,0x75,0x74,0x6f]);}}function _0x5404f9(_0x2d2f37){const _0xffa955=[new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ece6=>setTimeout(_0x57ece6,0x9f636a3^_0x40f94f)),_0x396af9[_0x1aaefc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26a575=>{let _0x1e4414=0x0;_0x9ada83[_0x1aaefc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1aaefc([0x6f,0x6e])](_0x1aaefc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x228d4d,_0x53dd55)=>{_0x53dd55[0x0][_0x1aaefc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e4414++,_0x1e4414==(0x9ff0997^_0x40f94f)&&(_0x26a575(),_0x228d4d[_0x1aaefc([0x6f,0x66,0x66])]());});}))];return window[_0x1aaefc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1aaefc([0x72,0x61,0x63,0x65])](_0xffa955)[_0x1aaefc([0x74,0x68,0x65,0x6e])](()=>_0x2d2f37);}async function _0x2e0707(){await _0x396af9,_0x9ada83[_0x1aaefc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1aaefc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25c643,_0x9ada83[_0x1aaefc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1aaefc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25c643,_0x9ada83[_0x1aaefc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1aaefc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44ea0e(_0x51b7ca){const _0x355114=_0x3ba0f2();_0x9ada83[_0x355114]=_0x1aaefc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51b7ca,_0x51b7ca!=_0x1aaefc([0x56,0x61,0x6c,0x69,0x64])&&_0x2e0707();}function _0x3ba0f2(){const _0x26a108=window[_0x1aaefc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1aaefc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1aaefc([0x6e,0x6f,0x77])]())[_0x1aaefc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1aaefc([0x2e]),'');let _0x582a94=_0x1aaefc([0x45]);for(let _0x285e88=0x0;_0x285e88<_0x26a108[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x285e88+=0x2){let _0x4e9693=window[_0x1aaefc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26a108[_0x1aaefc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x285e88,_0x285e88+0x2));_0x4e9693>=_0x235d7f[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e9693-=_0x235d7f[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x582a94+=_0x235d7f[_0x4e9693];}return _0x582a94;}function _0x2e7a16(){const _0xcfbe30=_0x580cef[_0x1aaefc([0x73,0x70,0x6c,0x69,0x74])](_0x1aaefc([0x2e]));if(0x3!=_0xcfbe30[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fc5f7(_0xcfbe30[0x1]);function _0x4fc5f7(_0x3aea41){const _0x46e8d7=_0x5ba3b7(_0x3aea41);return _0x46e8d7&&_0x1ae69a()?_0x46e8d7:null;function _0x1ae69a(){const _0x263477=_0x46e8d7[_0x1aaefc([0x6a,0x74,0x69])],_0x4d89e7=window[_0x1aaefc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x263477[_0x1aaefc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x263477[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5802e2={..._0x46e8d7,[_0x1aaefc([0x6a,0x74,0x69])]:_0x263477[_0x1aaefc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x263477[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5802e2[_0x1aaefc([0x76,0x63])],_0x53f649(_0x5802e2)==_0x4d89e7;}}}async function _0x2c8a21(){let _0x35b717=!0x0;try{const _0x1ebf06=_0x580cef[_0x1aaefc([0x73,0x70,0x6c,0x69,0x74])](_0x1aaefc([0x2e])),[_0x537152,_0x1c16f0,_0x34db33]=_0x1ebf06;return _0x5bfce4(_0x537152),await _0x4b171a(_0x537152,_0x1c16f0,_0x34db33),_0x35b717;}catch{return!0x1;}function _0x5bfce4(_0x4e595b){const _0x4b2e68=_0x5ba3b7(_0x4e595b);_0x4b2e68&&_0x4b2e68[_0x1aaefc([0x61,0x6c,0x67])]==_0x1aaefc([0x45,0x53,0x32,0x35,0x36])||(_0x35b717=!0x1);}async function _0x4b171a(_0x426a26,_0x345c64,_0x497ea7){const _0x305636=window[_0x1aaefc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1aaefc([0x66,0x72,0x6f,0x6d])](_0x1ff36f(_0x497ea7),_0xd5ae7c=>_0xd5ae7c[_0x1aaefc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57ccdf=new window[(_0x1aaefc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1aaefc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x426a26+_0x1aaefc([0x2e])+_0x345c64),_0x583dbe=window[_0x1aaefc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1aaefc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x583dbe)return;const _0x48aaa3=await _0x583dbe[_0x1aaefc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1aaefc([0x6a,0x77,0x6b]),_0x339f51,{[_0x1aaefc([0x6e,0x61,0x6d,0x65])]:_0x1aaefc([0x45,0x43,0x44,0x53,0x41]),[_0x1aaefc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1aaefc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1aaefc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x583dbe[_0x1aaefc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1aaefc([0x6e,0x61,0x6d,0x65])]:_0x1aaefc([0x45,0x43,0x44,0x53,0x41]),[_0x1aaefc([0x68,0x61,0x73,0x68])]:{[_0x1aaefc([0x6e,0x61,0x6d,0x65])]:_0x1aaefc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48aaa3,_0x305636,_0x57ccdf)||(_0x35b717=!0x1);}}function _0x5ba3b7(_0x23272e){return _0x23272e[_0x1aaefc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1aaefc([0x65,0x79]))?JSON[_0x1aaefc([0x70,0x61,0x72,0x73,0x65])](_0x1ff36f(_0x23272e)):null;}function _0x1ff36f(_0x1012c2){return window[_0x1aaefc([0x61,0x74,0x6f,0x62])](_0x1012c2[_0x1aaefc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1aaefc([0x2b]))[_0x1aaefc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1aaefc([0x2f])));}function _0x53f649(_0xa9f1dc){let _0x4fd215=0x1505;function _0x104d9c(_0x28cf93){for(let _0x596432=0x0;_0x596432<_0x28cf93[_0x1aaefc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x596432++){const _0x17becf=_0x28cf93[_0x1aaefc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x596432);_0x4fd215=(_0x4fd215<<0x5)+_0x4fd215+_0x17becf,_0x4fd215&=_0x4fd215;}}function _0x44ef91(_0x5dc319){Array[_0x1aaefc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5dc319)?_0x5dc319[_0x1aaefc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44ef91):_0x5dc319&&typeof _0x5dc319==_0x1aaefc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1aaefc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5dc319)[_0x1aaefc([0x73,0x6f,0x72,0x74])]()[_0x1aaefc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b555e,_0x2b9777])=>{_0x104d9c(_0x4b555e),_0x44ef91(_0x2b9777);}):_0x104d9c(window[_0x1aaefc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5dc319));}return _0x44ef91(_0xa9f1dc),_0x4fd215>>>0x0;}function _0x130d26(_0x5c6f5f){return _0x5c6f5f[_0x1aaefc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1aaefc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1aaefc([0x30]));}function _0x52b72b(_0x39fbe8){return _0x39fbe8[_0x1aaefc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1aaefc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1aaefc([0x6a,0x6f,0x69,0x6e])]('');}function _0x25c643(){}function _0x1aaefc(_0x511d57){const _0x38d9a7=_0x543e;return _0x511d57[_0x38d9a7(0x1b4)](_0x521ea3=>String[_0x38d9a7(0x1bc)](_0x521ea3))[_0x38d9a7(0x195)]('');}_0x44ea0e(await _0x31f8f4());}(this);}[_0x30fc21(0x172)](){const _0x4a068e=_0x30fc21,_0x22f36d=this[_0x4a068e(0x199)][_0x4a068e(0x182)][_0x4a068e(0x184)];_0x22f36d[_0x4a068e(0x1be)](_0x4a068e(0x1a7))&&_0x22f36d[_0x4a068e(0x186)](_0x4a068e(0x1a7),{'allowAttributes':[_0x4a068e(0x1a0)]}),_0x22f36d[_0x4a068e(0x1be)](_0x4a068e(0x1a2))&&_0x22f36d[_0x4a068e(0x186)](_0x4a068e(0x1a2),{'allowAttributes':[_0x4a068e(0x1a0)]});}[_0x30fc21(0x193)](){const _0x943cd9=_0x30fc21,_0x2e4da5=this[_0x943cd9(0x199)];_0x2e4da5[_0x943cd9(0x1b8)][_0x943cd9(0x1b0)](_0x943cd9(0x17d))[_0x943cd9(0x1a4)]({'model':_0x943cd9(0x1a0),'view':_0x943cd9(0x19d)}),_0x2e4da5[_0x943cd9(0x1b8)][_0x943cd9(0x1b0)](_0x943cd9(0x1af))[_0x943cd9(0x173)]({'model':{'key':_0x943cd9(0x1a0),'value':_0x3f7cab=>_0x3f7cab[_0x943cd9(0x189)](_0x943cd9(0x19d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x31bb73=_0x2e4da5[_0x943cd9(0x17a)][_0x943cd9(0x17b)](_0x943cd9(0x187));_0x31bb73&&this[_0x943cd9(0x171)](_0x31bb73,_0x943cd9(0x16d),(_0x26cf21,[_0x40de24,_0x2fbc25])=>{const _0x3f68bb=_0x943cd9;_0x40de24[_0x3f68bb(0x19b)](_0x3f68bb(0x1a0),_0x2fbc25);});}[_0x30fc21(0x190)](){const _0x1b0c8b=_0x30fc21,_0x31325a=this[_0x1b0c8b(0x199)][_0x1b0c8b(0x1ab)][_0x1b0c8b(0x17b)](_0x1b0c8b(0x191))||{},_0x4f4c28=this[_0x1b0c8b(0x199)][_0x1b0c8b(0x1ab)][_0x1b0c8b(0x17b)](_0x1b0c8b(0x18f))||'';this[_0x1b0c8b(0x1a6)]=_0x3c9af7(_0x57462c[_0x1b0c8b(0x1b1)],_0x1b0c8b(0x183),{..._0x31325a,'pubkey':_0x4f4c28,'ctx-name':_0x1b0c8b(0x185)+this[_0x1b0c8b(0x17f)],'sourceList':'','imgOnly':_0x1b0c8b(0x196),'removeCopyright':_0x1b0c8b(0x196),'localeName':this[_0x1b0c8b(0x199)][_0x1b0c8b(0x1aa)][_0x1b0c8b(0x1a9)],'externalSourcesEmbedCss':_0x1b0c8b(0x16b)}),this[_0x1b0c8b(0x1a6)][_0x1b0c8b(0x180)]=_0xb55261=>{const _0x21d9cd=_0x1b0c8b;if(_0x21d9cd(0x1ac)==_0xb55261)return _0x21d9cd(0x188);},_0x57462c[_0x1b0c8b(0x1b1)][_0x1b0c8b(0x19c)][_0x1b0c8b(0x177)](this[_0x1b0c8b(0x1a6)]);}[_0x30fc21(0x197)](){const _0x47905f=_0x30fc21;this[_0x47905f(0x1a5)]=_0x3c9af7(_0x57462c[_0x47905f(0x1b1)],_0x47905f(0x18b),{'ctx-name':_0x47905f(0x185)+this[_0x47905f(0x17f)]}),_0x57462c[_0x47905f(0x1b1)][_0x47905f(0x19c)][_0x47905f(0x177)](this[_0x47905f(0x1a5)]);}[_0x30fc21(0x178)](){const _0x51ccb8=_0x30fc21,_0x4835f8=this[_0x51ccb8(0x199)][_0x51ccb8(0x17a)][_0x51ccb8(0x17b)](_0x51ccb8(0x1ad));_0x4835f8&&this[_0x51ccb8(0x171)](_0x4835f8,_0x51ccb8(0x1bb),()=>{const _0x5b3462=_0x51ccb8,_0x3f8962=this[_0x5b3462(0x199)][_0x5b3462(0x182)][_0x5b3462(0x1b1)][_0x5b3462(0x1ae)][_0x5b3462(0x18d)]();_0x3f8962&&_0x3f8962[_0x5b3462(0x189)](_0x5b3462(0x1a0))&&this[_0x5b3462(0x199)][_0x5b3462(0x19f)][_0x5b3462(0x19a)][_0x5b3462(0x1ba)](_0x5b3462(0x1b5),()=>{const _0x3b17db=_0x5b3462;_0xeab640(this[_0x3b17db(0x199)],_0x3f8962);});});const _0x136ef8=this[_0x51ccb8(0x199)][_0x51ccb8(0x17a)][_0x51ccb8(0x17b)](_0x51ccb8(0x170));_0x136ef8&&this[_0x51ccb8(0x171)](_0x136ef8,_0x51ccb8(0x1bb),()=>{const _0x341fff=_0x51ccb8,_0x39c611=this[_0x341fff(0x199)][_0x341fff(0x182)][_0x341fff(0x1b1)][_0x341fff(0x1ae)][_0x341fff(0x18d)]();_0x39c611&&_0x39c611[_0x341fff(0x189)](_0x341fff(0x1a0))&&this[_0x341fff(0x199)][_0x341fff(0x19f)][_0x341fff(0x19a)][_0x341fff(0x1ba)](_0x341fff(0x1b5),()=>{const _0x2f8d64=_0x341fff;_0xeab640(this[_0x2f8d64(0x199)],_0x39c611);});});}}