@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251031.0 → 0.0.0-nightly-20251101.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x19716f,Command as _0x29ef3d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x46df94,IconGooglePhotos as _0x5c8c92,IconGoogleDrive as _0x49da05,IconFacebook as _0x38ee21,IconDropbox as _0x358768,IconUploadcareLink as _0x322385,IconUploadcareImageUpload as _0x5a29f4,IconError as _0x2e7227,IconUploadcareImageEdit as _0x54cf47}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x265a21,MenuBarMenuListItemButtonView as _0x3a92d7,View as _0x455cc3,FocusCycler as _0x171e29,Dialog as _0x32a6c9,DialogViewPosition as _0x1a4cf5,SpinnerView as _0x311818,IconView as _0x70bb5b,Notification as _0x58b960}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x24f142,DomEmitterMixin as _0x22eab5,global as _0x4d0e52,getAncestors as _0x429b4a,ObservableMixin as _0x4ea697,uid as _0x3f9b53,createElement as _0x484b1f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xf53d6a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3b9a80,info as _0x5285dd}from'@uploadcare/upload-client';import*as _0x59dda9 from'@uploadcare/file-uploader';var i=function(_0x4da72f){return _0x4da72f['Local']='local',_0x4da72f['URL']='url',_0x4da72f['Dropbox']='dropbox',_0x4da72f['GDrive']='gdrive',_0x4da72f['Facebook']='facebook',_0x4da72f['GPhotos']='gphotos',_0x4da72f['OneDrive']='onedrive',_0x4da72f;}({});function _(_0x38933e,_0x239398,_0x3d16e8){const t=_0x38933e['t'],_0x4d5b52=_0x38933e['t'];switch(_0x239398){case i['Local']:return{'text':_0x4d5b52('Insert'===_0x3d16e8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d5b52('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3d16e8?_0x4d5b52('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d5b52('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3d16e8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3d16e8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3d16e8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3d16e8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3d16e8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x239398;}}class e extends _0x19716f{['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 _0x149d19=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x132c6f;for(const _0x39f41d in _0x149d19){const _0x44826f=_0x39f41d,_0xe9acb8=_0x149d19[_0x44826f];if('uploadcareLicenseKeyValid'==_0xe9acb8||'uploadcareLicenseKeyInvalid'==_0xe9acb8||'uploadcareLicenseKeyExpired'==_0xe9acb8||'uploadcareLicenseKeyDomainLimit'==_0xe9acb8||'uploadcareLicenseKeyNotAllowed'==_0xe9acb8||'uploadcareLicenseKeyEvaluationLimit'==_0xe9acb8||'uploadcareLicenseKeyTrialLimit'==_0xe9acb8||'uploadcareLicenseKeyUsageLimit'==_0xe9acb8){delete _0x149d19[_0x44826f],_0x132c6f=_0xe9acb8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x132c6f&&_0x149d19['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x132c6f&&_0x149d19['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x132c6f&&_0x149d19['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x132c6f&&_0x149d19['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x132c6f&&_0x149d19['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x132c6f&&_0x149d19['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x132c6f&&_0x149d19['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4308ee}=this,_0xdaedf6=_0x4308ee['commands']['get']('uploadcare');if(!_0xdaedf6)return;const _0xe1cb39=this['_normalizeConfigSourceList'](_0x4308ee['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x503bbd,_0x4522dc)=>{const _0x36c006=this['_getIntegrationKey'](_0x4522dc['type']);return _0x503bbd[_0x36c006]||(_0x503bbd[_0x36c006]=[]),_0x503bbd[_0x36c006]['push'](_0x4522dc),_0x503bbd;},{});_0x4308ee['plugins']['has']('ImageInsertUI')&&_0x4308ee['commands']['get']('uploadcare')&&Object['entries'](_0xe1cb39)['forEach'](([_0x24683d,_0x5cb511])=>{_0x4308ee['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x24683d,'observable':()=>_0xdaedf6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5cb511),'formViewCreator':()=>this['_createDropdownButtons'](_0x5cb511),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5cb511),'override':'assetManager'!==_0x24683d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x45cdd4){const {locale:_0x20b429}=this['editor'];return _0x45cdd4['map'](_0x59d2f6=>{const _0x45317a=_(_0x20b429,_0x59d2f6,'Insert');switch(_0x59d2f6){case i['Local']:return{'icon':_0x5a29f4,'type':i['Local'],..._0x45317a};case i['URL']:return{'icon':_0x322385,'type':i['URL'],..._0x45317a};case i['Dropbox']:return{'icon':_0x358768,'type':i['Dropbox'],..._0x45317a};case i['Facebook']:return{'icon':_0x38ee21,'type':i['Facebook'],..._0x45317a};case i['GDrive']:return{'icon':_0x49da05,'type':i['GDrive'],..._0x45317a};case i['GPhotos']:return{'icon':_0x5c8c92,'type':i['GPhotos'],..._0x45317a};case i['OneDrive']:return{'icon':_0x46df94,'type':i['OneDrive'],..._0x45317a};}});}['_getIntegrationKey'](_0x3aa05d){switch(_0x3aa05d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5345e9,_0x4126c8){const _0x797fd=this['editor'],_0xf25ef0=new _0x5345e9(_0x797fd['locale']),_0x32b52a=_0x797fd['commands']['get']('uploadcare');return _0xf25ef0['bind']('isEnabled')['to'](_0x32b52a),_0xf25ef0['on']('execute',()=>{_0x32b52a['execute'](_0x4126c8);}),_0xf25ef0;}['_createToolbarButton'](_0x161d60){const {locale:_0x159ed7}=this['editor'],_0x34422e=this['editor']['plugins']['get']('ImageInsertUI'),_0x5aed68=_0x161d60[0x0],_0x5eb5e1=this['_createButton'](_0x265a21,_0x5aed68['type']);return _0x5eb5e1['icon']=_0x5aed68['icon'],_0x5eb5e1['bind']('label')['to'](_0x34422e,'isImageSelected',_0x32f1f2=>_(_0x159ed7,_0x5aed68['type'],_0x32f1f2?'Replace':'Insert')['text']),_0x5eb5e1['tooltip']=!0x0,_0x5eb5e1;}['_createDropdownButtons'](_0x980682){const {locale:_0x31daf9}=this['editor'],_0x1fbf13=this['editor']['plugins']['get']('ImageInsertUI');return _0x980682['map'](_0x51f07d=>{const _0x247e64=this['_createButton'](_0x265a21,_0x51f07d['type']);return _0x247e64['withText']=!0x0,_0x247e64['icon']=_0x51f07d['icon'],_0x247e64['bind']('label')['to'](_0x1fbf13,'isImageSelected',_0x499a0e=>_(_0x31daf9,_0x51f07d['type'],_0x499a0e?'Replace':'Insert')['text']),_0x247e64;});}['_createMenuBarButtons'](_0x118779){return _0x118779['map'](_0x274c3b=>{const _0x836165=this['_createButton'](_0x3a92d7,_0x274c3b['type']);return _0x836165['icon']=_0x274c3b['icon'],_0x836165['label']=_0x274c3b['shortText'],_0x836165;});}}class F extends _0x455cc3{['focusTracker'];['focusCycler'];constructor(_0x432f85){super(_0x432f85),this['focusTracker']=new _0x24f142(),this['focusCycler']=new _0x171e29({'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(_0x28211c,_0x314aae){super(_0x28211c),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-'+_0x314aae}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1242af,_0x28ee92){const _0xd3e187=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x55e93b=>_0x55e93b<=_0x28ee92)['map'](_0x44c7d0=>_0x1242af['replace'](/\/$/,'')+'/-/resize/'+_0x44c7d0+'x/\x20'+_0x44c7d0+'w');return{'imageFallbackUrl':_0x1242af,'imageSources':[{'srcset':_0xd3e187['join'](',\x20'),'sizes':'(max-width:\x20'+_0x28ee92+'px)\x20100vw,\x20'+_0x28ee92+'px','type':'image/webp'}]};}function S(_0x428e0e,_0x8e4a00,_0x3ecc37){const _0x231ea1=_0x428e0e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x231ea1?parseInt(_0x231ea1[0x1],0xa):_0x8e4a00,'height':_0x231ea1?parseInt(_0x231ea1[0x2],0xa):_0x3ecc37};}function p(_0xfbc066,_0x18ec43){const _0x445685=new(_0x22eab5())(),_0x4f014a=_0xfbc066['plugins']['get']('ImageUtils'),_0x501f81=_0xfbc066['editing']['mapper']['toViewElement'](_0x18ec43),_0x3eade6=_0x4f014a['findViewImgElement'](_0x501f81),_0x5d692f=_0xfbc066['editing']['view']['domConverter']['viewToDom'](_0x3eade6),_0x322ff5=_0x18ec43['getAttribute']('width'),_0x2af60f=_0x18ec43['getAttribute']('height'),_0x2ec089='image-processing';_0xfbc066['editing']['view']['change'](_0x31978f=>{_0x31978f['addClass'](_0x2ec089,_0x501f81),_0x31978f['setStyle']('aspect-ratio',_0x322ff5+'/'+_0x2af60f,_0x3eade6);}),_0x445685['listenTo'](_0x5d692f,'load',()=>{_0x445685['stopListening'](_0x5d692f,'load'),_0xfbc066['editing']['view']['change'](_0x338833=>{_0x338833['removeClass'](_0x2ec089,_0x501f81),_0x338833['removeStyle']('aspect-ratio',_0x3eade6);});});}function z(_0x243cd5){if(Array['isArray'](_0x243cd5)){const _0x2f7580=_0x243cd5['map'](z);return _0x37ddef=>_0x2f7580['some'](_0x283b31=>_0x283b31(_0x37ddef));}if('origin'==_0x243cd5){const _0x13a95f=_0x4d0e52['window']['location']['origin'];return _0xbc4263=>new URL(_0xbc4263,_0x4d0e52['document']['baseURI'])['origin']==_0x13a95f;}return'function'==typeof _0x243cd5?_0x243cd5:_0x243cd5 instanceof RegExp?_0x1c8251=>!(!_0x1c8251['match'](_0x243cd5)&&!_0x1c8251['replace'](/^https?:\/\//,'')['match'](_0x243cd5)):()=>!0x1;}function A(_0x30ecb1,_0x7342d3){return _0x429b4a(_0x30ecb1['target'])['includes'](_0x7342d3);}class n extends/* #__PURE__ -- @preserve */
24
- _0x4ea697(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x360e9c,_0x5d972b,_0x191bef){super(),this['_editor']=_0x360e9c,this['_editing']=_0x5d972b,this['_dialog']=_0x360e9c['plugins']['get'](_0x32a6c9),this['_api']=_0x5d972b['ctxElement']['getAPI'](),this['_type']=_0x191bef,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:_0x57218e,model:_0x527083}=this['_editor'],_0x7b66e=_0x527083['document']['selection']['getSelectedElement'](),_0x18c4dc=_0x7b66e&&(_0x7b66e['is']('element','imageBlock')||_0x7b66e['is']('element','imageInline'));this['_formView']=new x(_0x57218e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5a29f4,'title':_(_0x57218e,this['_type'],_0x18c4dc?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1a4cf5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51428a=>!A(_0x51428a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3b78f3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5dc1ea=>{const _0x417bbd=_0x3b78f3['length'];for(const _0x106158 of _0x3b78f3){const _0x59bc43=_0x106158===_0x3b78f3[_0x417bbd-0x1],{cdnUrl:_0x37a4ef,fileInfo:_0x47b026}=_0x106158;if(!_0x37a4ef||!_0x47b026)continue;const {width:_0xf95327,height:_0x348d68}=_0x47b026['imageInfo'],_0x1c040e=S(_0x37a4ef,_0xf95327,_0x348d68),_0x3c77ab=C(_0x37a4ef,_0x1c040e['width']),_0x21adee={'id':_0x47b026['uuid'],'type':'image','attributes':{'imageDimension':_0x1c040e,..._0x3c77ab}};this['_insertAsset'](_0x21adee,_0x59bc43,_0x5dc1ea);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x300a96=>{'idle'===_0x300a96['detail']['status']&&!_0x300a96['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x472eac,_0x4e04ec,_0x597eb4){const _0x5ce0ce=this['_editor']['model']['document']['selection'],_0x190fbc=_0x5ce0ce['getSelectedElement'](),_0x4934db=!(!_0x190fbc||!_0x190fbc['is']('element','imageInline'));_0x597eb4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x472eac,_0x4934db),_0x4e04ec||_0x597eb4['setSelection'](_0x5ce0ce['getLastPosition']());}['_insertImage'](_0x50ece8,_0x11c217){const _0x1b9e5c=this['_editor'],{imageDimension:_0xf97c6b,imageFallbackUrl:_0x9d60df,imageSources:_0xe84b10}=_0x50ece8['attributes'];_0x1b9e5c['execute']('insertImage',{'imageType':_0x11c217?'imageInline':null,'source':{'uploadcareImageId':_0x50ece8['id'],'src':_0x9d60df,'sources':_0xe84b10,..._0xf97c6b}});}}class w extends _0x29ef3d{['_editing'];['_controller']=null;static get['requires'](){return[_0x32a6c9,o];}constructor(_0x1bb914){super(_0x1bb914),this['_editing']=_0x1bb914['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xa81d53){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xa81d53);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1ab90b,..._0x40be67}){return _0x3b9a80(_0x1ab90b,_0x40be67);}static['getInfo'](_0x4605c0,_0x54c9c5){return _0x5285dd(_0x4605c0,_0x54c9c5);}}class f extends _0x19716f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xf53d6a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x23d67a=this['editor'];if(!!!_0x23d67a['config']['get']('uploadcare'))return;_0x23d67a['plugins']['get'](_0xf53d6a)['createUploadAdapter']=_0xdc9730=>new k(_0xdc9730,_0x23d67a),_0x23d67a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x10b497,{imageElement:_0x2d0e0f,data:_0x50f526})=>{_0x23d67a['model']['change'](_0x38f1e8=>{_0x38f1e8['setAttribute']('uploadcareImageId',_0x50f526['uploadcareImageId'],_0x2d0e0f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2f365b,_0x54294b){this['loader']=_0x2f365b,this['editor']=_0x54294b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x200c82=await this['loader']['file'];return j['upload']({'file':_0x200c82,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xb36c12=>{_0xb36c12&&_0xb36c12['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xb36c12['value']);}})['then'](async _0x441e73=>{const {imageFallbackUrl:_0x2fd814,imageSources:_0x4b599f}=C(_0x441e73['cdnUrl'],_0x441e73['imageInfo']['width']);return{'uploadcareImageId':_0x441e73['uuid'],'default':_0x2fd814,'sources':_0x4b599f};})['catch'](()=>{const _0x26e627=t('Cannot\x20upload\x20file:')+('\x20'+_0x200c82['name']+'.');return Promise['reject'](_0x26e627);});}['abort'](){this['controller']['abort']();}}class o extends _0x19716f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x32a6c9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2d3dab){super(_0x2d3dab),this['ucContextId']=_0x3f9b53();}['init'](){const _0xa02eb9=this['editor'];_0xa02eb9['commands']['add']('uploadcare',new w(_0xa02eb9));}['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 _0x58da8f=_0x4d0e52['document']['querySelector']('input[uploadcare-file-input]');_0x58da8f&&_0x58da8f['remove']();}),async function(_0xd2f7a9){const _0x2955f7=_0x3d0110([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5163ec=0x535f8c3a,_0x27fee9=0x5358fbfa^_0x5163ec,_0x985110=window[_0x3d0110([0x44,0x61,0x74,0x65])][_0x3d0110([0x6e,0x6f,0x77])](),_0x50e70a=_0xd2f7a9[_0x3d0110([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x24d47a=new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2524dc=>{_0x50e70a[_0x3d0110([0x6f,0x6e,0x63,0x65])](_0x3d0110([0x72,0x65,0x61,0x64,0x79]),_0x2524dc);}),_0x2a09e8={[_0x3d0110([0x6b,0x74,0x79])]:_0x3d0110([0x45,0x43]),[_0x3d0110([0x75,0x73,0x65])]:_0x3d0110([0x73,0x69,0x67]),[_0x3d0110([0x63,0x72,0x76])]:_0x3d0110([0x50,0x2d,0x32,0x35,0x36]),[_0x3d0110([0x78])]:_0x3d0110([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]),[_0x3d0110([0x79])]:_0x3d0110([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]),[_0x3d0110([0x61,0x6c,0x67])]:_0x3d0110([0x45,0x53,0x32,0x35,0x36])},_0x8cc2cf=_0x50e70a[_0x3d0110([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d0110([0x67,0x65,0x74])](_0x3d0110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48aa9b(){let _0xc6b062,_0x36c4b5=null,_0x27ec07=null;try{if(_0x8cc2cf==_0x3d0110([0x47,0x50,0x4c]))return _0x3d0110([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc6b062=_0x579932(),!_0xc6b062)return _0x3d0110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc6b062[_0x3d0110([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27ec07=_0x3bc3c9(_0xc6b062[_0x3d0110([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc6b062[_0x3d0110([0x6a,0x74,0x69])])),await _0x475c38()?_0x310e9c()?_0x1bc91a()?_0x3d0110([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11c033()?(_0xc6b062[_0x3d0110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d0110([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36c4b5=_0x541f11(_0x3d0110([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc6b062[_0x3d0110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d0110([0x74,0x72,0x69,0x61,0x6c])&&(_0x36c4b5=_0x541f11(_0x3d0110([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46507a()):_0x3d0110([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d0110([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d0110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d0110([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1bc91a(){const _0x2b362a=[_0x3d0110([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d0110([0x74,0x72,0x69,0x61,0x6c])][_0x3d0110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc6b062[_0x3d0110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x985110/0x3e8:0xe10*_0x27fee9;return _0xc6b062[_0x3d0110([0x65,0x78,0x70])]<_0x2b362a;}function _0x310e9c(){const _0x296e15=_0xc6b062[_0x3d0110([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x296e15&&(!!_0x296e15[_0x3d0110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0110([0x2a]))||!!_0x296e15[_0x3d0110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0110([0x55,0x50,0x4c,0x43])));}function _0x11c033(){const _0x552593=_0xc6b062[_0x3d0110([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x552593||0x0==_0x552593[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f7373}=new URL(window[_0x3d0110([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x552593[_0x3d0110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f7373))return!0x0;const _0x2f0f83=_0x3f7373[_0x3d0110([0x73,0x70,0x6c,0x69,0x74])](_0x3d0110([0x2e]));return _0x552593[_0x3d0110([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ca5be=>_0x2ca5be[_0x3d0110([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0110([0x2a])))[_0x3d0110([0x6d,0x61,0x70])](_0x1c4faf=>_0x1c4faf[_0x3d0110([0x73,0x70,0x6c,0x69,0x74])](_0x3d0110([0x2e])))[_0x3d0110([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xef65ca=>_0xef65ca[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2f0f83[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d0110([0x6d,0x61,0x70])](_0x542126=>Array(_0x2f0f83[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x542126[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d0110([0x66,0x69,0x6c,0x6c])](_0x542126[0x0]===_0x3d0110([0x2a])?_0x3d0110([0x2a]):'')[_0x3d0110([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x542126))[_0x3d0110([0x73,0x6f,0x6d,0x65])](_0x2f43db=>_0x2f0f83[_0x3d0110([0x65,0x76,0x65,0x72,0x79])]((_0x2c6243,_0x3cbab1)=>_0x2f43db[_0x3cbab1]===_0x2c6243||_0x2f43db[_0x3cbab1]===_0x3d0110([0x2a])));}function _0x46507a(){return _0x36c4b5&&_0x27ec07?new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23e8a5,_0x5d3698)=>{_0x36c4b5[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x23e8a5,_0x5d3698),_0x27ec07[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x320c23=>{_0x320c23!=_0x3d0110([0x56,0x61,0x6c,0x69,0x64])&&_0x23e8a5(_0x320c23);},_0x5d3698);}):_0x36c4b5||_0x27ec07||_0x3d0110([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3bc3c9(_0x14dc85,_0x4e268c){return new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x305cbb=>{if(_0x151429())return _0x305cbb(_0x3d0110([0x56,0x61,0x6c,0x69,0x64]));_0x2b010f(),_0x50e70a[_0x3d0110([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d0110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x359c7e=!0x1;const _0x32bcec=_0x3f9b53();function _0x154ea4(_0x55f771){return!!_0x55f771&&(typeof _0x55f771===_0x3d0110([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x55f771===_0x3d0110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x55f771[_0x3d0110([0x74,0x68,0x65,0x6e])]===_0x3d0110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x55f771[_0x3d0110([0x63,0x61,0x74,0x63,0x68])]===_0x3d0110([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x118ff7(_0x144408){_0x5dd534(_0x144408)[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x185a61=>{if(!_0x185a61||_0x185a61[_0x3d0110([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d0110([0x6f,0x6b]))return _0x3d0110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10c07a(_0x24fb66(_0x32bcec+_0x4e268c))!=_0x185a61[_0x3d0110([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d0110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d0110([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x4a3f06=>(_0x1ebe61(),_0x4a3f06),()=>{const _0x47f8ec=_0x73fd6();return null==_0x47f8ec?(_0x1ebe61(),_0x3d0110([0x56,0x61,0x6c,0x69,0x64])):_0x3d0110(_0x985110-_0x47f8ec>(0x7753083a^_0x5163ec)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x305cbb)[_0x3d0110([0x63,0x61,0x74,0x63,0x68])](()=>{_0x305cbb(_0x3d0110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x489342=0x536962ba^_0x5163ec;function _0x1ebe61(){const _0x327c67=_0x3d0110([0x6c,0x6c,0x63,0x74,0x2d])+_0x10c07a(_0x24fb66(_0x14dc85)),_0x1e6af1=_0x2a8307(_0x10c07a(window[_0x3d0110([0x4d,0x61,0x74,0x68])][_0x3d0110([0x63,0x65,0x69,0x6c])](_0x985110/_0x489342)));window[_0x3d0110([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d0110([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x327c67,_0x1e6af1);}function _0x73fd6(){const _0x3b1c2a=_0x3d0110([0x6c,0x6c,0x63,0x74,0x2d])+_0x10c07a(_0x24fb66(_0x14dc85)),_0x518b62=window[_0x3d0110([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d0110([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b1c2a);return _0x518b62?window[_0x3d0110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a8307(_0x518b62),0x10)*_0x489342:null;}function _0x5dd534(_0x44fd07){return new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48944f,_0x2532a2)=>{_0x44fd07[_0x3d0110([0x74,0x68,0x65,0x6e])](_0x48944f,_0x2532a2),window[_0x3d0110([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2532a2,0x535e58fa^_0x5163ec);});}}_0x50e70a[_0x3d0110([0x6f,0x6e])](_0x3d0110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2604d9,_0x39395f)=>{if(_0x39395f[0x0]!=_0x14dc85)return _0x305cbb(_0x3d0110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39395f[0x1]={..._0x39395f[0x1],[_0x3d0110([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32bcec};},{[_0x3d0110([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d0110([0x68,0x69,0x67,0x68])}),_0x50e70a[_0x3d0110([0x6f,0x6e])](_0x3d0110([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x246f7b=>{_0x154ea4(_0x246f7b[_0x3d0110([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x359c7e=!0x0,_0x118ff7(_0x246f7b[_0x3d0110([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d0110([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d0110([0x6c,0x6f,0x77])}),_0x24d47a[_0x3d0110([0x74,0x68,0x65,0x6e])](()=>{_0x359c7e||_0x305cbb(_0x3d0110([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x151429(){return _0x50e70a[_0x3d0110([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d0110([0x76,0x69,0x65,0x77])][_0x3d0110([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d0110([0x61,0x75,0x74,0x6f]);}function _0x2b010f(){_0x50e70a[_0x3d0110([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d0110([0x76,0x69,0x65,0x77])][_0x3d0110([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d0110([0x61,0x75,0x74,0x6f]);}}function _0x541f11(_0x421ff2){const _0x5dcad0=[new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2653c6=>setTimeout(_0x2653c6,0x5356b2f6^_0x5163ec)),_0x24d47a[_0x3d0110([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45c181=>{let _0x1bcc92=0x0;_0x50e70a[_0x3d0110([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0110([0x6f,0x6e])](_0x3d0110([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a476e,_0x52ff24)=>{_0x52ff24[0x0][_0x3d0110([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1bcc92++,_0x1bcc92==(0x535f8dc2^_0x5163ec)&&(_0x45c181(),_0x1a476e[_0x3d0110([0x6f,0x66,0x66])]());});}))];return window[_0x3d0110([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d0110([0x72,0x61,0x63,0x65])](_0x5dcad0)[_0x3d0110([0x74,0x68,0x65,0x6e])](()=>_0x421ff2);}async function _0x2d7cbd(){await _0x24d47a,_0x50e70a[_0x3d0110([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0110([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x509012,_0x50e70a[_0x3d0110([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0110([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x509012,_0x50e70a[_0x3d0110([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d0110([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36d705(_0x551a21){const _0x624ed6=_0x5c04a3();_0x50e70a[_0x624ed6]=_0x3d0110([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x551a21,_0x551a21!=_0x3d0110([0x56,0x61,0x6c,0x69,0x64])&&_0x2d7cbd();}function _0x5c04a3(){const _0x2d007e=window[_0x3d0110([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d0110([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d0110([0x6e,0x6f,0x77])]())[_0x3d0110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d0110([0x2e]),'');let _0x2efc60=_0x3d0110([0x68]);for(let _0x5e2a6b=0x0;_0x5e2a6b<_0x2d007e[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e2a6b+=0x2){let _0x373c36=window[_0x3d0110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d007e[_0x3d0110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e2a6b,_0x5e2a6b+0x2));_0x373c36>=_0x2955f7[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x373c36-=_0x2955f7[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2efc60+=_0x2955f7[_0x373c36];}return _0x2efc60;}function _0x579932(){const _0x1508a1=_0x8cc2cf[_0x3d0110([0x73,0x70,0x6c,0x69,0x74])](_0x3d0110([0x2e]));if(0x3!=_0x1508a1[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54ee7c(_0x1508a1[0x1]);function _0x54ee7c(_0xcb4c51){const _0x461ee4=_0x118569(_0xcb4c51);return _0x461ee4&&_0x51ab7b()?_0x461ee4:null;function _0x51ab7b(){const _0x26d737=_0x461ee4[_0x3d0110([0x6a,0x74,0x69])],_0x5a7a7a=window[_0x3d0110([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26d737[_0x3d0110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26d737[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32dfab={..._0x461ee4,[_0x3d0110([0x6a,0x74,0x69])]:_0x26d737[_0x3d0110([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26d737[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32dfab[_0x3d0110([0x76,0x63])],_0x24fb66(_0x32dfab)==_0x5a7a7a;}}}async function _0x475c38(){let _0x4994c2=!0x0;try{const _0x56ec3e=_0x8cc2cf[_0x3d0110([0x73,0x70,0x6c,0x69,0x74])](_0x3d0110([0x2e])),[_0x25d3bc,_0x564899,_0x1681cb]=_0x56ec3e;return _0x55c062(_0x25d3bc),await _0x2692b6(_0x25d3bc,_0x564899,_0x1681cb),_0x4994c2;}catch{return!0x1;}function _0x55c062(_0x3451e4){const _0x15ce8b=_0x118569(_0x3451e4);_0x15ce8b&&_0x15ce8b[_0x3d0110([0x61,0x6c,0x67])]==_0x3d0110([0x45,0x53,0x32,0x35,0x36])||(_0x4994c2=!0x1);}async function _0x2692b6(_0x3bfbce,_0x517a4b,_0x771f7a){const _0x31446a=window[_0x3d0110([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d0110([0x66,0x72,0x6f,0x6d])](_0x8ae0ef(_0x771f7a),_0x4258bd=>_0x4258bd[_0x3d0110([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ef38e=new window[(_0x3d0110([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d0110([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3bfbce+_0x3d0110([0x2e])+_0x517a4b),_0x2828b7=window[_0x3d0110([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d0110([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2828b7)return;const _0x3a3112=await _0x2828b7[_0x3d0110([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d0110([0x6a,0x77,0x6b]),_0x2a09e8,{[_0x3d0110([0x6e,0x61,0x6d,0x65])]:_0x3d0110([0x45,0x43,0x44,0x53,0x41]),[_0x3d0110([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d0110([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d0110([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2828b7[_0x3d0110([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d0110([0x6e,0x61,0x6d,0x65])]:_0x3d0110([0x45,0x43,0x44,0x53,0x41]),[_0x3d0110([0x68,0x61,0x73,0x68])]:{[_0x3d0110([0x6e,0x61,0x6d,0x65])]:_0x3d0110([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a3112,_0x31446a,_0x5ef38e)||(_0x4994c2=!0x1);}}function _0x118569(_0x54f355){return _0x54f355[_0x3d0110([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d0110([0x65,0x79]))?JSON[_0x3d0110([0x70,0x61,0x72,0x73,0x65])](_0x8ae0ef(_0x54f355)):null;}function _0x8ae0ef(_0x28a955){return window[_0x3d0110([0x61,0x74,0x6f,0x62])](_0x28a955[_0x3d0110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d0110([0x2b]))[_0x3d0110([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d0110([0x2f])));}function _0x24fb66(_0x3e8741){let _0x5c6c3e=0x1505;function _0xf89ace(_0x13e02d){for(let _0x1f41c5=0x0;_0x1f41c5<_0x13e02d[_0x3d0110([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f41c5++){const _0x577a2f=_0x13e02d[_0x3d0110([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f41c5);_0x5c6c3e=(_0x5c6c3e<<0x5)+_0x5c6c3e+_0x577a2f,_0x5c6c3e&=_0x5c6c3e;}}function _0x3f3b87(_0x38c0cc){Array[_0x3d0110([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38c0cc)?_0x38c0cc[_0x3d0110([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f3b87):_0x38c0cc&&typeof _0x38c0cc==_0x3d0110([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d0110([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38c0cc)[_0x3d0110([0x73,0x6f,0x72,0x74])]()[_0x3d0110([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x553da9,_0x424990])=>{_0xf89ace(_0x553da9),_0x3f3b87(_0x424990);}):_0xf89ace(window[_0x3d0110([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38c0cc));}return _0x3f3b87(_0x3e8741),_0x5c6c3e>>>0x0;}function _0x10c07a(_0x34aadd){return _0x34aadd[_0x3d0110([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d0110([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d0110([0x30]));}function _0x2a8307(_0x19f1ac){return _0x19f1ac[_0x3d0110([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d0110([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d0110([0x6a,0x6f,0x69,0x6e])]('');}function _0x509012(){}function _0x3d0110(_0x2946af){return _0x2946af['map'](_0x2555cd=>String['fromCharCode'](_0x2555cd))['join']('');}_0x36d705(await _0x48aa9b());}(this);}['_initSchema'](){const _0x313b09=this['editor']['model']['schema'];_0x313b09['isRegistered']('imageBlock')&&_0x313b09['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x313b09['isRegistered']('imageInline')&&_0x313b09['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x14c15a=this['editor'];_0x14c15a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x14c15a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3e5ca6=>_0x3e5ca6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44a216=_0x14c15a['commands']['get']('replaceImageSource');_0x44a216&&this['listenTo'](_0x44a216,'cleanupImage',(_0x29308b,[_0x3614b8,_0x3e48c2])=>{_0x3614b8['removeAttribute']('uploadcareImageId',_0x3e48c2);});}['_initConfig'](){const _0x49683c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x18599e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x484b1f(_0x4d0e52['document'],'uc-config',{..._0x49683c,'pubkey':_0x18599e,'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']=_0x21d42b=>{if('closeMax'==_0x21d42b)return'#uc-icon-arrow-down';},_0x4d0e52['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x484b1f(_0x4d0e52['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4d0e52['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x39148a=this['editor']['commands']['get']('insertImage');_0x39148a&&this['listenTo'](_0x39148a,'execute',()=>{const _0x455f94=this['editor']['model']['document']['selection']['getSelectedElement']();_0x455f94&&_0x455f94['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x455f94);});});const _0x4e4178=this['editor']['commands']['get']('uploadcareImageReplace');_0x4e4178&&this['listenTo'](_0x4e4178,'execute',()=>{const _0x3d901a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d901a&&_0x3d901a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3d901a);});});}}class tt extends _0x19716f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e0fc3){super(_0x3e0fc3),_0x3e0fc3['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x59dda9['defineComponents'](_0x59dda9),this['_defineLocale']();}['_defineLocale'](){const _0x2a9984=this['editor']['config']['get']('uploadcare.locale'),_0x1f9f2d=this['editor']['locale']['contentLanguage'];_0x2a9984&&_0x59dda9['defineLocale'](_0x1f9f2d,_0x2a9984);}}class ii extends _0x455cc3{constructor(_0x57cb3d){super(_0x57cb3d);const t=_0x57cb3d['t'],_0x16e38c=this['bindTemplate'],_0x1d0847=new _0x311818();_0x1d0847['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':[_0x1d0847,{'text':_0x16e38c['to']('imageUploadProgress',_0x1fa6e7=>t('Loading\x20image...')+'\x20('+(_0x1fa6e7||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 _0x455cc3{constructor(_0x13843b){super(_0x13843b);const t=_0x13843b['t'];this['set']('errorType',null);const _0x32b715=new _0x265a21(_0x13843b);_0x32b715['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x32b715['withText']=!0x0,_0x32b715['class']='ck-button-action',_0x32b715['on']('execute',()=>{this['fire']('retry');}),_0x32b715['bind']('isVisible')['to'](this,'errorType',_0x653e78=>'NotFound'!==_0x653e78);const _0x270492=new _0x70bb5b();_0x270492['content']=_0x2e7227,_0x270492['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x508a64=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':[_0x270492,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x508a64['to']('errorType',_0x2acb7e=>t('NotFound'!==_0x2acb7e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x32b715]},{'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 _0x455cc3{constructor(_0x2c1b8b,_0x228669){super(_0x2c1b8b);const _0x2ac838=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x228669,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2ac838['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x182ca,_0x35183a,_0x28a832){super(_0x182ca),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x182ca),this['_errorView']=new ti(_0x182ca),this['_editingView']=new ei(_0x182ca,_0x28a832),this['_focusableView']=new _0x455cc3(_0x182ca),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x35183a),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'],_0x43fa44=>{this['_addUploadcareImageEditorListeners'](_0x43fa44);});}),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'](_0xec3b74,_0x4381a1){const _0x30a824='uc-cloud-image-editor',_0x335d21=_0xec3b74['querySelector'](_0x30a824);if(_0x335d21)return _0x4381a1(_0x335d21);const _0x561cad=new MutationObserver(_0x25c06c=>{const _0x597223=_0x25c06c['filter'](_0x3b907d=>_0x3b907d['target']===_0xec3b74&&_0x3b907d['addedNodes']['length']>0x0&&_0x3b907d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x30a824);_0x597223['length']&&(_0x561cad['disconnect'](),_0x4381a1(_0x597223[0x0]['addedNodes'][0x0]));});_0x561cad['observe'](_0xec3b74,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x41917a){_0x41917a['addEventListener']('apply',_0x5499e7=>{this['fire']('apply',{'imageSrc':_0x5499e7['detail']['cdnUrl']});}),_0x41917a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
- _0x4ea697(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4f31d1,_0x55c7c0,_0x2cc323){super(),this['_editor']=_0x4f31d1,this['_dialog']=_0x55c7c0,this['_imageElement']=_0x2cc323,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 _0x7d9a80=this['_imageElement'],_0x5e965c=_0x7d9a80['getAttribute']('uploadcareImageId'),_0x14dbd6=_0x7d9a80['getAttribute']('src');if(_0x5e965c)await this['_loadImageInfo'](_0x5e965c,_0x14dbd6);else{if(this['_imageCache']['has'](_0x14dbd6)){const _0x3ab546=this['_imageCache']['get'](_0x14dbd6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3ab546['url'],this['imageDimension']=_0x3ab546['dimension'],this['imageId']=_0x3ab546['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x9ce917}=this['_editor'],t=_0x9ce917['t'],_0x42f09d=new X(_0x9ce917,this['imageStatus'],this['_attributes']);_0x42f09d['bind']('status')['to'](this,'imageStatus'),_0x42f09d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x42f09d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x42f09d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x42f09d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x54cf47,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x42f09d,'position':_0x1a4cf5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x42f09d['focus']();},'onHide':()=>{_0x42f09d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x385126=>!A(_0x385126,_0x42f09d['element'])}});}['_loadImageInfo'](_0x54f233,_0x1acbef){return j['getInfo'](_0x54f233,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1428fd=>{const {width:_0x34bb3a,height:_0x455a59}=_0x1428fd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1acbef,this['imageDimension']={'width':_0x34bb3a,'height':_0x455a59},this['imageId']=_0x54f233;})['catch'](_0x404eb5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x404eb5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x37acab,_0xa8b834){return this['_getImageAsFile'](_0x37acab)['then'](_0x2c22e2=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xa8b834['signal'],'file':_0x2c22e2,'onProgress':_0x170f0f=>{_0x170f0f&&_0x170f0f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x170f0f['value']));}}))['then'](_0x2033b7=>{const {width:_0x53c0d0,height:_0x1fb414}=_0x2033b7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2033b7['cdnUrl'],this['imageDimension']={'width':_0x53c0d0,'height':_0x1fb414},this['imageId']=_0x2033b7['uuid'],this['imageUploadProgress']=null;const _0xcce19=_0x37acab['getAttribute']('src');this['_imageCache']['set'](_0xcce19,{'id':_0x2033b7['uuid'],'url':_0x2033b7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x66dd02=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x66dd02['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x255712,_0x16dc0f){_0x255712['on']('apply',(_0xc276b3,_0x129afd)=>{this['_replaceImage'](_0x16dc0f,_0x129afd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x255712['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x255712['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1e310a,_0x28a593,_0x48573e){const _0x35bc8e=this['_editor'],{width:_0x1d53d0,height:_0x4c097f}=S(_0x28a593,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4d20de,imageSources:_0x576f7c}=C(_0x28a593,_0x1d53d0);_0x35bc8e['model']['change'](_0x28c614=>{if('$graveyard'===_0x1e310a['root']['rootName']){_0x35bc8e['execute']('insertImage',{'imageType':_0x1e310a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1e310a['getAttributes']()),'uploadcareImageId':_0x48573e,'src':_0x4d20de,'sources':_0x576f7c,'width':_0x1d53d0,'height':_0x4c097f}});const _0x43811b=_0x1e310a['getChildren']();_0x1e310a=_0x35bc8e['model']['document']['selection']['getSelectedElement']();for(const _0x2181ac of _0x43811b)_0x28c614['append'](_0x28c614['cloneElement'](_0x2181ac),_0x1e310a);}else _0x28c614['setSelection'](_0x1e310a,'on'),_0x35bc8e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1e310a['getAttributes']()),'uploadcareImageId':_0x48573e,'src':_0x4d20de,'sources':_0x576f7c,'width':_0x1d53d0,'height':_0x4c097f},_0x1e310a);_0x28c614['setSelection'](_0x1e310a,'on');});}async['_getImageAsFile'](_0x1c7837){const _0x211c3a=_0x4d0e52['window'],_0x43bfaf=_0x4d0e52['document']['location']['href'],_0x4a5688=new _0x211c3a['URL'](_0x1c7837['getAttribute']('src'),_0x43bfaf);if('data:'===_0x4a5688['protocol']){const _0x50bc62=_0x4a5688['href']['split'](','),_0x246027=_0x50bc62[0x0]['match'](/:(.*?);/)[0x1],_0x164eae=_0x246027['split']('/')[0x1],_0x172a70=_0x211c3a['atob'](_0x50bc62[_0x50bc62['length']-0x1]);let _0x5607a3=_0x172a70['length'];const _0x4f40e1=new _0x211c3a['Uint8Array'](_0x5607a3);for(;_0x5607a3--;)_0x4f40e1[_0x5607a3]=_0x172a70['charCodeAt'](_0x5607a3);return new _0x211c3a['File']([_0x4f40e1],'image.'+_0x164eae,{'type':_0x246027});}const _0x133a6f=_0x4a5688['href']['split']('/'),_0x4e28aa=_0x133a6f[_0x133a6f['length']-0x1],_0x107aac=_0x4e28aa['split']('.')[0x1];return _0x211c3a['fetch'](_0x4a5688['href'])['then'](_0x1fab38=>_0x1fab38['clone']()['blob']())['then'](_0x5f3113=>new _0x211c3a['File']([_0x5f3113],_0x4e28aa,{'type':'image/'+_0x107aac}));}}class Q extends _0x29ef3d{['imageEditController'];static get['requires'](){return[_0x32a6c9];}['_isEditable'];constructor(_0x29f561){super(_0x29f561),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x16e9ee){const _0x5b9d7a=z(_0x16e9ee);return _0x1f531a=>!(!_0x1f531a||!_0x1f531a['is']('element','imageBlock')&&!_0x1f531a['is']('element','imageInline'))&&(!!_0x1f531a['hasAttribute']('uploadcareImageId')||!!_0x1f531a['hasAttribute']('src')&&_0x5b9d7a(_0x1f531a['getAttribute']('src')));}(_0x29f561['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5626b9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5626b9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x50bb8f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x50bb8f&&(_0x50bb8f['is']('element','imageBlock')||_0x50bb8f['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x32a6c9),_0x50bb8f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x29ef3d{['refresh'](){const _0x5d5372=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5d5372&&(_0x5d5372['is']('element','imageBlock')||_0x5d5372['is']('element','imageInline')));}['execute'](_0x19747c){const _0x27e80b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xbe656e=>{_0xbe656e['setAttributes'](_0x19747c,_0x27e80b),_0xbe656e['removeAttribute']('srcset',_0x27e80b),_0xbe656e['removeAttribute']('sizes',_0x27e80b);});}}class m extends _0x19716f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x58b960,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b9244}=this;_0x1b9244['commands']['add']('uploadcareImageEdit',new Q(_0x1b9244)),_0x1b9244['commands']['add']('uploadcareImageReplace',new V(_0x1b9244));}}class g extends _0x19716f{['_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 _0x5542b0=this['editor'];_0x5542b0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x102ec7=>{const _0x23e909=_0x5542b0['commands']['get']('uploadcareImageEdit'),_0x28de98=new _0x265a21(_0x102ec7),t=_0x102ec7['t'];return _0x28de98['set']({'icon':_0x54cf47,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x28de98['bind']('isEnabled')['to'](_0x23e909),_0x28de98['bind']('isOn')['to'](_0x23e909,'isActive'),this['listenTo'](_0x28de98,'execute',()=>{_0x5542b0['execute']('uploadcareImageEdit'),_0x5542b0['editing']['view']['focus']();}),_0x28de98;}),this['_initConfig']();}['_initConfig'](){const _0x2ffa99=_0x484b1f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2ffa99),this['listenTo'](this['editor'],'destroy',()=>{_0x2ffa99['remove']();});}}class et extends _0x19716f{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 _0x3ba018,Command as _0x9f6c51}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4fee3b,IconGooglePhotos as _0x1be7fd,IconGoogleDrive as _0x14ad76,IconFacebook as _0x5ffbe3,IconDropbox as _0x26ecdf,IconUploadcareLink as _0xb9a571,IconUploadcareImageUpload as _0x41031d,IconError as _0x5982d1,IconUploadcareImageEdit as _0x492800}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5d53c9,MenuBarMenuListItemButtonView as _0x4b1183,View as _0x4d65b1,FocusCycler as _0x21b020,Dialog as _0x1395c3,DialogViewPosition as _0x2152e4,SpinnerView as _0x391b89,IconView as _0x4f4a55,Notification as _0x34cd1c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x24489b,DomEmitterMixin as _0x4f8bd1,global as _0x11e893,getAncestors as _0x554b32,ObservableMixin as _0x2dfaf0,uid as _0x437ba5,createElement as _0x16c64c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xccc9da}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x40f05e,info as _0x490086}from'@uploadcare/upload-client';import*as _0x214642 from'@uploadcare/file-uploader';var i=function(_0x1ff45d){return _0x1ff45d['Local']='local',_0x1ff45d['URL']='url',_0x1ff45d['Dropbox']='dropbox',_0x1ff45d['GDrive']='gdrive',_0x1ff45d['Facebook']='facebook',_0x1ff45d['GPhotos']='gphotos',_0x1ff45d['OneDrive']='onedrive',_0x1ff45d;}({});function _(_0x3b029f,_0x9ade34,_0x47c27f){const t=_0x3b029f['t'],_0xbac574=_0x3b029f['t'];switch(_0x9ade34){case i['Local']:return{'text':_0xbac574('Insert'===_0x47c27f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xbac574('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x47c27f?_0xbac574('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xbac574('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x9ade34;}}class e extends _0x3ba018{['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 _0x2f384d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e2134;for(const _0x2f0f6c in _0x2f384d){const _0x2b9ba1=_0x2f0f6c,_0x25994c=_0x2f384d[_0x2b9ba1];if('uploadcareLicenseKeyValid'==_0x25994c||'uploadcareLicenseKeyInvalid'==_0x25994c||'uploadcareLicenseKeyExpired'==_0x25994c||'uploadcareLicenseKeyDomainLimit'==_0x25994c||'uploadcareLicenseKeyNotAllowed'==_0x25994c||'uploadcareLicenseKeyEvaluationLimit'==_0x25994c||'uploadcareLicenseKeyTrialLimit'==_0x25994c||'uploadcareLicenseKeyUsageLimit'==_0x25994c){delete _0x2f384d[_0x2b9ba1],_0x4e2134=_0x25994c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4e2134&&_0x2f384d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4e2134&&_0x2f384d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4e2134&&_0x2f384d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe2dae2}=this,_0x4d01ca=_0xe2dae2['commands']['get']('uploadcare');if(!_0x4d01ca)return;const _0x3fd6c0=this['_normalizeConfigSourceList'](_0xe2dae2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b59db,_0x4d4253)=>{const _0x41226f=this['_getIntegrationKey'](_0x4d4253['type']);return _0x5b59db[_0x41226f]||(_0x5b59db[_0x41226f]=[]),_0x5b59db[_0x41226f]['push'](_0x4d4253),_0x5b59db;},{});_0xe2dae2['plugins']['has']('ImageInsertUI')&&_0xe2dae2['commands']['get']('uploadcare')&&Object['entries'](_0x3fd6c0)['forEach'](([_0x19d808,_0x59030a])=>{_0xe2dae2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x19d808,'observable':()=>_0x4d01ca,'buttonViewCreator':()=>this['_createToolbarButton'](_0x59030a),'formViewCreator':()=>this['_createDropdownButtons'](_0x59030a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x59030a),'override':'assetManager'!==_0x19d808});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x339e81){const {locale:_0x128b5e}=this['editor'];return _0x339e81['map'](_0x2bb7ae=>{const _0x5980a9=_(_0x128b5e,_0x2bb7ae,'Insert');switch(_0x2bb7ae){case i['Local']:return{'icon':_0x41031d,'type':i['Local'],..._0x5980a9};case i['URL']:return{'icon':_0xb9a571,'type':i['URL'],..._0x5980a9};case i['Dropbox']:return{'icon':_0x26ecdf,'type':i['Dropbox'],..._0x5980a9};case i['Facebook']:return{'icon':_0x5ffbe3,'type':i['Facebook'],..._0x5980a9};case i['GDrive']:return{'icon':_0x14ad76,'type':i['GDrive'],..._0x5980a9};case i['GPhotos']:return{'icon':_0x1be7fd,'type':i['GPhotos'],..._0x5980a9};case i['OneDrive']:return{'icon':_0x4fee3b,'type':i['OneDrive'],..._0x5980a9};}});}['_getIntegrationKey'](_0xbf0f9f){switch(_0xbf0f9f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4c04ba,_0x16137c){const _0x2dac26=this['editor'],_0x27182d=new _0x4c04ba(_0x2dac26['locale']),_0x24801b=_0x2dac26['commands']['get']('uploadcare');return _0x27182d['bind']('isEnabled')['to'](_0x24801b),_0x27182d['on']('execute',()=>{_0x24801b['execute'](_0x16137c);}),_0x27182d;}['_createToolbarButton'](_0x4a0dc5){const {locale:_0x2143d6}=this['editor'],_0x43edc5=this['editor']['plugins']['get']('ImageInsertUI'),_0x4163c4=_0x4a0dc5[0x0],_0x53b3f8=this['_createButton'](_0x5d53c9,_0x4163c4['type']);return _0x53b3f8['icon']=_0x4163c4['icon'],_0x53b3f8['bind']('label')['to'](_0x43edc5,'isImageSelected',_0x313d53=>_(_0x2143d6,_0x4163c4['type'],_0x313d53?'Replace':'Insert')['text']),_0x53b3f8['tooltip']=!0x0,_0x53b3f8;}['_createDropdownButtons'](_0x3f2cab){const {locale:_0x2b1850}=this['editor'],_0x2a4cb9=this['editor']['plugins']['get']('ImageInsertUI');return _0x3f2cab['map'](_0x530182=>{const _0x2a7efc=this['_createButton'](_0x5d53c9,_0x530182['type']);return _0x2a7efc['withText']=!0x0,_0x2a7efc['icon']=_0x530182['icon'],_0x2a7efc['bind']('label')['to'](_0x2a4cb9,'isImageSelected',_0x3877e0=>_(_0x2b1850,_0x530182['type'],_0x3877e0?'Replace':'Insert')['text']),_0x2a7efc;});}['_createMenuBarButtons'](_0x54bc56){return _0x54bc56['map'](_0x48ea34=>{const _0x1bdf28=this['_createButton'](_0x4b1183,_0x48ea34['type']);return _0x1bdf28['icon']=_0x48ea34['icon'],_0x1bdf28['label']=_0x48ea34['shortText'],_0x1bdf28;});}}class F extends _0x4d65b1{['focusTracker'];['focusCycler'];constructor(_0x472664){super(_0x472664),this['focusTracker']=new _0x24489b(),this['focusCycler']=new _0x21b020({'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(_0xf020b9,_0x27a2e8){super(_0xf020b9),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-'+_0x27a2e8}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x583097,_0x2b7cf7){const _0x43cc7e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5b8474=>_0x5b8474<=_0x2b7cf7)['map'](_0xa41ab5=>_0x583097['replace'](/\/$/,'')+'/-/resize/'+_0xa41ab5+'x/\x20'+_0xa41ab5+'w');return{'imageFallbackUrl':_0x583097,'imageSources':[{'srcset':_0x43cc7e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2b7cf7+'px)\x20100vw,\x20'+_0x2b7cf7+'px','type':'image/webp'}]};}function S(_0x20efcc,_0x188c62,_0x5bc38c){const _0x5f5216=_0x20efcc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5f5216?parseInt(_0x5f5216[0x1],0xa):_0x188c62,'height':_0x5f5216?parseInt(_0x5f5216[0x2],0xa):_0x5bc38c};}function p(_0x590632,_0x24dacb){const _0x247de5=new(_0x4f8bd1())(),_0x1a8563=_0x590632['plugins']['get']('ImageUtils'),_0x2c073e=_0x590632['editing']['mapper']['toViewElement'](_0x24dacb),_0x54f650=_0x1a8563['findViewImgElement'](_0x2c073e),_0x539afa=_0x590632['editing']['view']['domConverter']['viewToDom'](_0x54f650),_0x394ae9=_0x24dacb['getAttribute']('width'),_0x28abef=_0x24dacb['getAttribute']('height'),_0x38e879='image-processing';_0x590632['editing']['view']['change'](_0xbf391a=>{_0xbf391a['addClass'](_0x38e879,_0x2c073e),_0xbf391a['setStyle']('aspect-ratio',_0x394ae9+'/'+_0x28abef,_0x54f650);}),_0x247de5['listenTo'](_0x539afa,'load',()=>{_0x247de5['stopListening'](_0x539afa,'load'),_0x590632['editing']['view']['change'](_0x29bfcb=>{_0x29bfcb['removeClass'](_0x38e879,_0x2c073e),_0x29bfcb['removeStyle']('aspect-ratio',_0x54f650);});});}function z(_0x270cb0){if(Array['isArray'](_0x270cb0)){const _0x27a70c=_0x270cb0['map'](z);return _0x11b037=>_0x27a70c['some'](_0x762df2=>_0x762df2(_0x11b037));}if('origin'==_0x270cb0){const _0x5225e8=_0x11e893['window']['location']['origin'];return _0x363e24=>new URL(_0x363e24,_0x11e893['document']['baseURI'])['origin']==_0x5225e8;}return'function'==typeof _0x270cb0?_0x270cb0:_0x270cb0 instanceof RegExp?_0x53487f=>!(!_0x53487f['match'](_0x270cb0)&&!_0x53487f['replace'](/^https?:\/\//,'')['match'](_0x270cb0)):()=>!0x1;}function A(_0x5e9653,_0x56f315){return _0x554b32(_0x5e9653['target'])['includes'](_0x56f315);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x2dfaf0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5735e9,_0x55d9e7,_0xeb7c14){super(),this['_editor']=_0x5735e9,this['_editing']=_0x55d9e7,this['_dialog']=_0x5735e9['plugins']['get'](_0x1395c3),this['_api']=_0x55d9e7['ctxElement']['getAPI'](),this['_type']=_0xeb7c14,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:_0x26968b,model:_0x46c710}=this['_editor'],_0x32527e=_0x46c710['document']['selection']['getSelectedElement'](),_0x58f54f=_0x32527e&&(_0x32527e['is']('element','imageBlock')||_0x32527e['is']('element','imageInline'));this['_formView']=new x(_0x26968b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x41031d,'title':_(_0x26968b,this['_type'],_0x58f54f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2152e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x622ba4=>!A(_0x622ba4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4c5e51}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x17940f=>{const _0x102c6f=_0x4c5e51['length'];for(const _0xaf208 of _0x4c5e51){const _0x2d4c53=_0xaf208===_0x4c5e51[_0x102c6f-0x1],{cdnUrl:_0x3f1e45,fileInfo:_0x3252b4}=_0xaf208;if(!_0x3f1e45||!_0x3252b4)continue;const {width:_0x3514d2,height:_0x57089d}=_0x3252b4['imageInfo'],_0x1a9804=S(_0x3f1e45,_0x3514d2,_0x57089d),_0x6ca649=C(_0x3f1e45,_0x1a9804['width']),_0x2d069d={'id':_0x3252b4['uuid'],'type':'image','attributes':{'imageDimension':_0x1a9804,..._0x6ca649}};this['_insertAsset'](_0x2d069d,_0x2d4c53,_0x17940f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x15b704=>{'idle'===_0x15b704['detail']['status']&&!_0x15b704['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56d85e,_0x2a92b4,_0x3ac1dd){const _0x43dbce=this['_editor']['model']['document']['selection'],_0x20d894=_0x43dbce['getSelectedElement'](),_0x70053a=!(!_0x20d894||!_0x20d894['is']('element','imageInline'));_0x3ac1dd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56d85e,_0x70053a),_0x2a92b4||_0x3ac1dd['setSelection'](_0x43dbce['getLastPosition']());}['_insertImage'](_0x4915a8,_0x5e41bd){const _0x568342=this['_editor'],{imageDimension:_0x443a41,imageFallbackUrl:_0x56f147,imageSources:_0x273ccc}=_0x4915a8['attributes'];_0x568342['execute']('insertImage',{'imageType':_0x5e41bd?'imageInline':null,'source':{'uploadcareImageId':_0x4915a8['id'],'src':_0x56f147,'sources':_0x273ccc,..._0x443a41}});}}class w extends _0x9f6c51{['_editing'];['_controller']=null;static get['requires'](){return[_0x1395c3,o];}constructor(_0x2b12c5){super(_0x2b12c5),this['_editing']=_0x2b12c5['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1987a2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1987a2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1f15ea,..._0x59b69a}){return _0x40f05e(_0x1f15ea,_0x59b69a);}static['getInfo'](_0x67ebfd,_0x3717e7){return _0x490086(_0x67ebfd,_0x3717e7);}}class f extends _0x3ba018{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xccc9da,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3a5b19=this['editor'];if(!!!_0x3a5b19['config']['get']('uploadcare'))return;_0x3a5b19['plugins']['get'](_0xccc9da)['createUploadAdapter']=_0x52817c=>new k(_0x52817c,_0x3a5b19),_0x3a5b19['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x20eae8,{imageElement:_0x1ccebf,data:_0x252efe})=>{_0x3a5b19['model']['change'](_0x3abe65=>{_0x3abe65['setAttribute']('uploadcareImageId',_0x252efe['uploadcareImageId'],_0x1ccebf);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x45137c,_0x2fc4a5){this['loader']=_0x45137c,this['editor']=_0x2fc4a5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4fd958=await this['loader']['file'];return j['upload']({'file':_0x4fd958,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xf604f1=>{_0xf604f1&&_0xf604f1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xf604f1['value']);}})['then'](async _0x5037a4=>{const {imageFallbackUrl:_0x5dd40c,imageSources:_0x1c8815}=C(_0x5037a4['cdnUrl'],_0x5037a4['imageInfo']['width']);return{'uploadcareImageId':_0x5037a4['uuid'],'default':_0x5dd40c,'sources':_0x1c8815};})['catch'](()=>{const _0x2c0a2a=t('Cannot\x20upload\x20file:')+('\x20'+_0x4fd958['name']+'.');return Promise['reject'](_0x2c0a2a);});}['abort'](){this['controller']['abort']();}}class o extends _0x3ba018{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1395c3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x53b156){super(_0x53b156),this['ucContextId']=_0x437ba5();}['init'](){const _0x2b5598=this['editor'];_0x2b5598['commands']['add']('uploadcare',new w(_0x2b5598));}['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 _0x368cb0=_0x11e893['document']['querySelector']('input[uploadcare-file-input]');_0x368cb0&&_0x368cb0['remove']();}),async function(_0x4e9d41){const _0x247278=_0x5c3eac([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x14b282=0x535f8c3a,_0x3fc548=0x5358fbe2^_0x14b282,_0x269df1=window[_0x5c3eac([0x44,0x61,0x74,0x65])][_0x5c3eac([0x6e,0x6f,0x77])](),_0x4bcb61=_0x4e9d41[_0x5c3eac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x258436=new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad17b=>{_0x4bcb61[_0x5c3eac([0x6f,0x6e,0x63,0x65])](_0x5c3eac([0x72,0x65,0x61,0x64,0x79]),_0x3ad17b);}),_0x32261c={[_0x5c3eac([0x6b,0x74,0x79])]:_0x5c3eac([0x45,0x43]),[_0x5c3eac([0x75,0x73,0x65])]:_0x5c3eac([0x73,0x69,0x67]),[_0x5c3eac([0x63,0x72,0x76])]:_0x5c3eac([0x50,0x2d,0x32,0x35,0x36]),[_0x5c3eac([0x78])]:_0x5c3eac([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]),[_0x5c3eac([0x79])]:_0x5c3eac([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]),[_0x5c3eac([0x61,0x6c,0x67])]:_0x5c3eac([0x45,0x53,0x32,0x35,0x36])},_0x18ab0d=_0x4bcb61[_0x5c3eac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c3eac([0x67,0x65,0x74])](_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe438b3(){let _0x3dbf2b,_0x2e983c=null,_0x4ee266=null;try{if(_0x18ab0d==_0x5c3eac([0x47,0x50,0x4c]))return _0x5c3eac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3dbf2b=_0x4880fa(),!_0x3dbf2b)return _0x5c3eac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3dbf2b[_0x5c3eac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ee266=_0x265635(_0x3dbf2b[_0x5c3eac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3dbf2b[_0x5c3eac([0x6a,0x74,0x69])])),await _0x2c86a8()?_0x474761()?_0x43235e()?_0x5c3eac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25fb28()?(_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c3eac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e983c=_0x2fb57d(_0x5c3eac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c3eac([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e983c=_0x2fb57d(_0x5c3eac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b2112()):_0x5c3eac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c3eac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c3eac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c3eac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43235e(){const _0x1dc692=[_0x5c3eac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c3eac([0x74,0x72,0x69,0x61,0x6c])][_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x269df1/0x3e8:0xe10*_0x3fc548;return _0x3dbf2b[_0x5c3eac([0x65,0x78,0x70])]<_0x1dc692;}function _0x474761(){const _0x4d886c=_0x3dbf2b[_0x5c3eac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d886c&&(!!_0x4d886c[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c3eac([0x2a]))||!!_0x4d886c[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c3eac([0x55,0x50,0x4c,0x43])));}function _0x25fb28(){const _0x21a2d2=_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21a2d2||0x0==_0x21a2d2[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41f4dc}=new URL(window[_0x5c3eac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x21a2d2[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f4dc))return!0x0;const _0x232c45=_0x41f4dc[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e]));return _0x21a2d2[_0x5c3eac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbee62e=>_0xbee62e[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c3eac([0x2a])))[_0x5c3eac([0x6d,0x61,0x70])](_0x5c24eb=>_0x5c24eb[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e])))[_0x5c3eac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32a079=>_0x32a079[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x232c45[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c3eac([0x6d,0x61,0x70])](_0x1bc55c=>Array(_0x232c45[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1bc55c[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c3eac([0x66,0x69,0x6c,0x6c])](_0x1bc55c[0x0]===_0x5c3eac([0x2a])?_0x5c3eac([0x2a]):'')[_0x5c3eac([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1bc55c))[_0x5c3eac([0x73,0x6f,0x6d,0x65])](_0x212013=>_0x232c45[_0x5c3eac([0x65,0x76,0x65,0x72,0x79])]((_0x140f6f,_0x2e5cbf)=>_0x212013[_0x2e5cbf]===_0x140f6f||_0x212013[_0x2e5cbf]===_0x5c3eac([0x2a])));}function _0x3b2112(){return _0x2e983c&&_0x4ee266?new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x443311,_0x4ec2f4)=>{_0x2e983c[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x443311,_0x4ec2f4),_0x4ee266[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x2b9b6e=>{_0x2b9b6e!=_0x5c3eac([0x56,0x61,0x6c,0x69,0x64])&&_0x443311(_0x2b9b6e);},_0x4ec2f4);}):_0x2e983c||_0x4ee266||_0x5c3eac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x265635(_0x3fc632,_0x14a963){return new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2969e3=>{if(_0x1866a9())return _0x2969e3(_0x5c3eac([0x56,0x61,0x6c,0x69,0x64]));_0x4a1b50(),_0x4bcb61[_0x5c3eac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c3eac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52e76e=!0x1;const _0x4a3f44=_0x437ba5();function _0x52f587(_0x2a8504){return!!_0x2a8504&&(typeof _0x2a8504===_0x5c3eac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a8504===_0x5c3eac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a8504[_0x5c3eac([0x74,0x68,0x65,0x6e])]===_0x5c3eac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a8504[_0x5c3eac([0x63,0x61,0x74,0x63,0x68])]===_0x5c3eac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f5a19(_0x252fe0){_0x243539(_0x252fe0)[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x4c9bef=>{if(!_0x4c9bef||_0x4c9bef[_0x5c3eac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c3eac([0x6f,0x6b]))return _0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f437a(_0x1f0b9b(_0x4a3f44+_0x14a963))!=_0x4c9bef[_0x5c3eac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c3eac([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x2fad9f=>(_0x2ea710(),_0x2fad9f),()=>{const _0x119118=_0x1d837a();return null==_0x119118?(_0x2ea710(),_0x5c3eac([0x56,0x61,0x6c,0x69,0x64])):_0x5c3eac(_0x269df1-_0x119118>(0x7753083a^_0x14b282)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x2969e3)[_0x5c3eac([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2969e3(_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4afd76=0x536962ba^_0x14b282;function _0x2ea710(){const _0x2720a1=_0x5c3eac([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f437a(_0x1f0b9b(_0x3fc632)),_0x3935dc=_0x55c320(_0x1f437a(window[_0x5c3eac([0x4d,0x61,0x74,0x68])][_0x5c3eac([0x63,0x65,0x69,0x6c])](_0x269df1/_0x4afd76)));window[_0x5c3eac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c3eac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2720a1,_0x3935dc);}function _0x1d837a(){const _0xb6a1e6=_0x5c3eac([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f437a(_0x1f0b9b(_0x3fc632)),_0x278c8b=window[_0x5c3eac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c3eac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb6a1e6);return _0x278c8b?window[_0x5c3eac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55c320(_0x278c8b),0x10)*_0x4afd76:null;}function _0x243539(_0x57ea7c){return new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3866ee,_0x35fe97)=>{_0x57ea7c[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x3866ee,_0x35fe97),window[_0x5c3eac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35fe97,0x535e58fa^_0x14b282);});}}_0x4bcb61[_0x5c3eac([0x6f,0x6e])](_0x5c3eac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x225b23,_0x4c2fb8)=>{if(_0x4c2fb8[0x0]!=_0x3fc632)return _0x2969e3(_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c2fb8[0x1]={..._0x4c2fb8[0x1],[_0x5c3eac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a3f44};},{[_0x5c3eac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c3eac([0x68,0x69,0x67,0x68])}),_0x4bcb61[_0x5c3eac([0x6f,0x6e])](_0x5c3eac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bcefa=>{_0x52f587(_0x2bcefa[_0x5c3eac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52e76e=!0x0,_0x2f5a19(_0x2bcefa[_0x5c3eac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c3eac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c3eac([0x6c,0x6f,0x77])}),_0x258436[_0x5c3eac([0x74,0x68,0x65,0x6e])](()=>{_0x52e76e||_0x2969e3(_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1866a9(){return _0x4bcb61[_0x5c3eac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c3eac([0x76,0x69,0x65,0x77])][_0x5c3eac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c3eac([0x61,0x75,0x74,0x6f]);}function _0x4a1b50(){_0x4bcb61[_0x5c3eac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c3eac([0x76,0x69,0x65,0x77])][_0x5c3eac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c3eac([0x61,0x75,0x74,0x6f]);}}function _0x2fb57d(_0x126169){const _0x34f92c=[new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x434231=>setTimeout(_0x434231,0x5356b2f6^_0x14b282)),_0x258436[_0x5c3eac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f2d98=>{let _0x4f4f20=0x0;_0x4bcb61[_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c3eac([0x6f,0x6e])](_0x5c3eac([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3da41f,_0x447d91)=>{_0x447d91[0x0][_0x5c3eac([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f4f20++,_0x4f4f20==(0x535f8dc2^_0x14b282)&&(_0x4f2d98(),_0x3da41f[_0x5c3eac([0x6f,0x66,0x66])]());});}))];return window[_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c3eac([0x72,0x61,0x63,0x65])](_0x34f92c)[_0x5c3eac([0x74,0x68,0x65,0x6e])](()=>_0x126169);}async function _0x178e8e(){await _0x258436,_0x4bcb61[_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c3eac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1abb55,_0x4bcb61[_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c3eac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1abb55,_0x4bcb61[_0x5c3eac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x341131(_0x4fb4fe){const _0x3d98b8=_0xb7e01e();_0x4bcb61[_0x3d98b8]=_0x5c3eac([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4fb4fe,_0x4fb4fe!=_0x5c3eac([0x56,0x61,0x6c,0x69,0x64])&&_0x178e8e();}function _0xb7e01e(){const _0x1e4207=window[_0x5c3eac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c3eac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c3eac([0x6e,0x6f,0x77])]())[_0x5c3eac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c3eac([0x2e]),'');let _0x47af30=_0x5c3eac([0x68]);for(let _0x2eda36=0x0;_0x2eda36<_0x1e4207[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eda36+=0x2){let _0x4ee7f2=window[_0x5c3eac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e4207[_0x5c3eac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2eda36,_0x2eda36+0x2));_0x4ee7f2>=_0x247278[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ee7f2-=_0x247278[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47af30+=_0x247278[_0x4ee7f2];}return _0x47af30;}function _0x4880fa(){const _0x4313ed=_0x18ab0d[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e]));if(0x3!=_0x4313ed[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x96d6aa(_0x4313ed[0x1]);function _0x96d6aa(_0x24c6a2){const _0x18af27=_0x10b27c(_0x24c6a2);return _0x18af27&&_0x47f94e()?_0x18af27:null;function _0x47f94e(){const _0x5bc88f=_0x18af27[_0x5c3eac([0x6a,0x74,0x69])],_0x110cec=window[_0x5c3eac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bc88f[_0x5c3eac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bc88f[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x446e1b={..._0x18af27,[_0x5c3eac([0x6a,0x74,0x69])]:_0x5bc88f[_0x5c3eac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bc88f[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x446e1b[_0x5c3eac([0x76,0x63])],_0x1f0b9b(_0x446e1b)==_0x110cec;}}}async function _0x2c86a8(){let _0x5a4991=!0x0;try{const _0x5a1cae=_0x18ab0d[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e])),[_0x52ce4b,_0x2a44e2,_0x59c7a5]=_0x5a1cae;return _0x1a9d25(_0x52ce4b),await _0x4c090f(_0x52ce4b,_0x2a44e2,_0x59c7a5),_0x5a4991;}catch{return!0x1;}function _0x1a9d25(_0x4da29f){const _0x4d0184=_0x10b27c(_0x4da29f);_0x4d0184&&_0x4d0184[_0x5c3eac([0x61,0x6c,0x67])]==_0x5c3eac([0x45,0x53,0x32,0x35,0x36])||(_0x5a4991=!0x1);}async function _0x4c090f(_0x5ceb47,_0x2bf7f2,_0x16a626){const _0x4d0f62=window[_0x5c3eac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c3eac([0x66,0x72,0x6f,0x6d])](_0xdb4d59(_0x16a626),_0x529f5e=>_0x529f5e[_0x5c3eac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a837d=new window[(_0x5c3eac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c3eac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ceb47+_0x5c3eac([0x2e])+_0x2bf7f2),_0x3a871a=window[_0x5c3eac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c3eac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a871a)return;const _0x59e61f=await _0x3a871a[_0x5c3eac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c3eac([0x6a,0x77,0x6b]),_0x32261c,{[_0x5c3eac([0x6e,0x61,0x6d,0x65])]:_0x5c3eac([0x45,0x43,0x44,0x53,0x41]),[_0x5c3eac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c3eac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c3eac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a871a[_0x5c3eac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c3eac([0x6e,0x61,0x6d,0x65])]:_0x5c3eac([0x45,0x43,0x44,0x53,0x41]),[_0x5c3eac([0x68,0x61,0x73,0x68])]:{[_0x5c3eac([0x6e,0x61,0x6d,0x65])]:_0x5c3eac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59e61f,_0x4d0f62,_0x1a837d)||(_0x5a4991=!0x1);}}function _0x10b27c(_0x250ea8){return _0x250ea8[_0x5c3eac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c3eac([0x65,0x79]))?JSON[_0x5c3eac([0x70,0x61,0x72,0x73,0x65])](_0xdb4d59(_0x250ea8)):null;}function _0xdb4d59(_0x13fb9d){return window[_0x5c3eac([0x61,0x74,0x6f,0x62])](_0x13fb9d[_0x5c3eac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c3eac([0x2b]))[_0x5c3eac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c3eac([0x2f])));}function _0x1f0b9b(_0x46f1c0){let _0x5578c7=0x1505;function _0x4bf014(_0x2f608c){for(let _0x567ef7=0x0;_0x567ef7<_0x2f608c[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x567ef7++){const _0x572ae4=_0x2f608c[_0x5c3eac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x567ef7);_0x5578c7=(_0x5578c7<<0x5)+_0x5578c7+_0x572ae4,_0x5578c7&=_0x5578c7;}}function _0x581433(_0x103078){Array[_0x5c3eac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x103078)?_0x103078[_0x5c3eac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x581433):_0x103078&&typeof _0x103078==_0x5c3eac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c3eac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x103078)[_0x5c3eac([0x73,0x6f,0x72,0x74])]()[_0x5c3eac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c200b,_0x5f5471])=>{_0x4bf014(_0x3c200b),_0x581433(_0x5f5471);}):_0x4bf014(window[_0x5c3eac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x103078));}return _0x581433(_0x46f1c0),_0x5578c7>>>0x0;}function _0x1f437a(_0x4c018c){return _0x4c018c[_0x5c3eac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c3eac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c3eac([0x30]));}function _0x55c320(_0x49c772){return _0x49c772[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c3eac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c3eac([0x6a,0x6f,0x69,0x6e])]('');}function _0x1abb55(){}function _0x5c3eac(_0x247a4f){return _0x247a4f['map'](_0x4dd542=>String['fromCharCode'](_0x4dd542))['join']('');}_0x341131(await _0xe438b3());}(this);}['_initSchema'](){const _0x131beb=this['editor']['model']['schema'];_0x131beb['isRegistered']('imageBlock')&&_0x131beb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x131beb['isRegistered']('imageInline')&&_0x131beb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x54f738=this['editor'];_0x54f738['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x54f738['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4e9c3a=>_0x4e9c3a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xa197e0=_0x54f738['commands']['get']('replaceImageSource');_0xa197e0&&this['listenTo'](_0xa197e0,'cleanupImage',(_0x22ed61,[_0x4b251c,_0x159168])=>{_0x4b251c['removeAttribute']('uploadcareImageId',_0x159168);});}['_initConfig'](){const _0x528492=this['editor']['config']['get']('uploadcare.uploader')||{},_0x54408c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x16c64c(_0x11e893['document'],'uc-config',{..._0x528492,'pubkey':_0x54408c,'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']=_0x8514a9=>{if('closeMax'==_0x8514a9)return'#uc-icon-arrow-down';},_0x11e893['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x16c64c(_0x11e893['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x11e893['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x30c762=this['editor']['commands']['get']('insertImage');_0x30c762&&this['listenTo'](_0x30c762,'execute',()=>{const _0x44fc03=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44fc03&&_0x44fc03['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x44fc03);});});const _0xb3160d=this['editor']['commands']['get']('uploadcareImageReplace');_0xb3160d&&this['listenTo'](_0xb3160d,'execute',()=>{const _0x8d0ae4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8d0ae4&&_0x8d0ae4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8d0ae4);});});}}class tt extends _0x3ba018{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4339aa){super(_0x4339aa),_0x4339aa['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x214642['defineComponents'](_0x214642),this['_defineLocale']();}['_defineLocale'](){const _0x681798=this['editor']['config']['get']('uploadcare.locale'),_0xf82b31=this['editor']['locale']['contentLanguage'];_0x681798&&_0x214642['defineLocale'](_0xf82b31,_0x681798);}}class ii extends _0x4d65b1{constructor(_0x4b1d04){super(_0x4b1d04);const t=_0x4b1d04['t'],_0xd38beb=this['bindTemplate'],_0x4db95a=new _0x391b89();_0x4db95a['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':[_0x4db95a,{'text':_0xd38beb['to']('imageUploadProgress',_0x557f76=>t('Loading\x20image...')+'\x20('+(_0x557f76||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 _0x4d65b1{constructor(_0x141d43){super(_0x141d43);const t=_0x141d43['t'];this['set']('errorType',null);const _0x410158=new _0x5d53c9(_0x141d43);_0x410158['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x410158['withText']=!0x0,_0x410158['class']='ck-button-action',_0x410158['on']('execute',()=>{this['fire']('retry');}),_0x410158['bind']('isVisible')['to'](this,'errorType',_0x249b87=>'NotFound'!==_0x249b87);const _0x2db016=new _0x4f4a55();_0x2db016['content']=_0x5982d1,_0x2db016['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x51fcbd=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':[_0x2db016,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x51fcbd['to']('errorType',_0x4d44e6=>t('NotFound'!==_0x4d44e6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x410158]},{'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 _0x4d65b1{constructor(_0x1d2c70,_0x3bf259){super(_0x1d2c70);const _0x129253=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3bf259,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x129253['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1fc96d,_0x3f3dbd,_0x56b957){super(_0x1fc96d),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1fc96d),this['_errorView']=new ti(_0x1fc96d),this['_editingView']=new ei(_0x1fc96d,_0x56b957),this['_focusableView']=new _0x4d65b1(_0x1fc96d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f3dbd),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'],_0x2f5c9c=>{this['_addUploadcareImageEditorListeners'](_0x2f5c9c);});}),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'](_0x1af66c,_0x5defd5){const _0x11b5bb='uc-cloud-image-editor',_0x4cb505=_0x1af66c['querySelector'](_0x11b5bb);if(_0x4cb505)return _0x5defd5(_0x4cb505);const _0x1fc80c=new MutationObserver(_0x3e4ab6=>{const _0x4cd729=_0x3e4ab6['filter'](_0x1623e6=>_0x1623e6['target']===_0x1af66c&&_0x1623e6['addedNodes']['length']>0x0&&_0x1623e6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x11b5bb);_0x4cd729['length']&&(_0x1fc80c['disconnect'](),_0x5defd5(_0x4cd729[0x0]['addedNodes'][0x0]));});_0x1fc80c['observe'](_0x1af66c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x25d7dd){_0x25d7dd['addEventListener']('apply',_0x48b27b=>{this['fire']('apply',{'imageSrc':_0x48b27b['detail']['cdnUrl']});}),_0x25d7dd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
+ _0x2dfaf0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4e1e90,_0x3ddd15,_0x157f20){super(),this['_editor']=_0x4e1e90,this['_dialog']=_0x3ddd15,this['_imageElement']=_0x157f20,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 _0x9f8613=this['_imageElement'],_0x320587=_0x9f8613['getAttribute']('uploadcareImageId'),_0xe9d783=_0x9f8613['getAttribute']('src');if(_0x320587)await this['_loadImageInfo'](_0x320587,_0xe9d783);else{if(this['_imageCache']['has'](_0xe9d783)){const _0x5023d4=this['_imageCache']['get'](_0xe9d783);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5023d4['url'],this['imageDimension']=_0x5023d4['dimension'],this['imageId']=_0x5023d4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3131a5}=this['_editor'],t=_0x3131a5['t'],_0x6ae334=new X(_0x3131a5,this['imageStatus'],this['_attributes']);_0x6ae334['bind']('status')['to'](this,'imageStatus'),_0x6ae334['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x6ae334['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x6ae334['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x6ae334,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x492800,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x6ae334,'position':_0x2152e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x6ae334['focus']();},'onHide':()=>{_0x6ae334['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x200383=>!A(_0x200383,_0x6ae334['element'])}});}['_loadImageInfo'](_0x52fdbd,_0x5e5190){return j['getInfo'](_0x52fdbd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x182afd=>{const {width:_0x28a186,height:_0xb9b658}=_0x182afd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e5190,this['imageDimension']={'width':_0x28a186,'height':_0xb9b658},this['imageId']=_0x52fdbd;})['catch'](_0x5e3c70=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e3c70['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3faf7f,_0x2bebb5){return this['_getImageAsFile'](_0x3faf7f)['then'](_0x58a84b=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2bebb5['signal'],'file':_0x58a84b,'onProgress':_0x9e75ee=>{_0x9e75ee&&_0x9e75ee['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x9e75ee['value']));}}))['then'](_0x56359b=>{const {width:_0x3a8756,height:_0x2dc43e}=_0x56359b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56359b['cdnUrl'],this['imageDimension']={'width':_0x3a8756,'height':_0x2dc43e},this['imageId']=_0x56359b['uuid'],this['imageUploadProgress']=null;const _0x56593a=_0x3faf7f['getAttribute']('src');this['_imageCache']['set'](_0x56593a,{'id':_0x56359b['uuid'],'url':_0x56359b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5d9276=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5d9276['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1eff7a,_0x5a0656){_0x1eff7a['on']('apply',(_0x149e1c,_0x4ca142)=>{this['_replaceImage'](_0x5a0656,_0x4ca142['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1eff7a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1eff7a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x422731,_0x4d3834,_0x1aa30b){const _0x135746=this['_editor'],{width:_0x1e641f,height:_0x40067c}=S(_0x4d3834,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3dae91,imageSources:_0x423214}=C(_0x4d3834,_0x1e641f);_0x135746['model']['change'](_0x2d257b=>{if('$graveyard'===_0x422731['root']['rootName']){_0x135746['execute']('insertImage',{'imageType':_0x422731['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x422731['getAttributes']()),'uploadcareImageId':_0x1aa30b,'src':_0x3dae91,'sources':_0x423214,'width':_0x1e641f,'height':_0x40067c}});const _0x38ccad=_0x422731['getChildren']();_0x422731=_0x135746['model']['document']['selection']['getSelectedElement']();for(const _0x1f91fb of _0x38ccad)_0x2d257b['append'](_0x2d257b['cloneElement'](_0x1f91fb),_0x422731);}else _0x2d257b['setSelection'](_0x422731,'on'),_0x135746['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x422731['getAttributes']()),'uploadcareImageId':_0x1aa30b,'src':_0x3dae91,'sources':_0x423214,'width':_0x1e641f,'height':_0x40067c},_0x422731);_0x2d257b['setSelection'](_0x422731,'on');});}async['_getImageAsFile'](_0x45027f){const _0x2b39bb=_0x11e893['window'],_0x81211c=_0x11e893['document']['location']['href'],_0x9f0edb=new _0x2b39bb['URL'](_0x45027f['getAttribute']('src'),_0x81211c);if('data:'===_0x9f0edb['protocol']){const _0x5def00=_0x9f0edb['href']['split'](','),_0x2cff07=_0x5def00[0x0]['match'](/:(.*?);/)[0x1],_0x29f74b=_0x2cff07['split']('/')[0x1],_0x5b2fcd=_0x2b39bb['atob'](_0x5def00[_0x5def00['length']-0x1]);let _0x2ee950=_0x5b2fcd['length'];const _0x320268=new _0x2b39bb['Uint8Array'](_0x2ee950);for(;_0x2ee950--;)_0x320268[_0x2ee950]=_0x5b2fcd['charCodeAt'](_0x2ee950);return new _0x2b39bb['File']([_0x320268],'image.'+_0x29f74b,{'type':_0x2cff07});}const _0x7c84fa=_0x9f0edb['href']['split']('/'),_0x5065e4=_0x7c84fa[_0x7c84fa['length']-0x1],_0x370856=_0x5065e4['split']('.')[0x1];return _0x2b39bb['fetch'](_0x9f0edb['href'])['then'](_0x4be2fb=>_0x4be2fb['clone']()['blob']())['then'](_0x12525e=>new _0x2b39bb['File']([_0x12525e],_0x5065e4,{'type':'image/'+_0x370856}));}}class Q extends _0x9f6c51{['imageEditController'];static get['requires'](){return[_0x1395c3];}['_isEditable'];constructor(_0x37ffc7){super(_0x37ffc7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2252c8){const _0x5c84a9=z(_0x2252c8);return _0x1ced25=>!(!_0x1ced25||!_0x1ced25['is']('element','imageBlock')&&!_0x1ced25['is']('element','imageInline'))&&(!!_0x1ced25['hasAttribute']('uploadcareImageId')||!!_0x1ced25['hasAttribute']('src')&&_0x5c84a9(_0x1ced25['getAttribute']('src')));}(_0x37ffc7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x583564=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x583564);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xd7703c=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd7703c&&(_0xd7703c['is']('element','imageBlock')||_0xd7703c['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x1395c3),_0xd7703c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x9f6c51{['refresh'](){const _0x31f757=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x31f757&&(_0x31f757['is']('element','imageBlock')||_0x31f757['is']('element','imageInline')));}['execute'](_0x340903){const _0x5269fe=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1b2b23=>{_0x1b2b23['setAttributes'](_0x340903,_0x5269fe),_0x1b2b23['removeAttribute']('srcset',_0x5269fe),_0x1b2b23['removeAttribute']('sizes',_0x5269fe);});}}class m extends _0x3ba018{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x34cd1c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x111cd4}=this;_0x111cd4['commands']['add']('uploadcareImageEdit',new Q(_0x111cd4)),_0x111cd4['commands']['add']('uploadcareImageReplace',new V(_0x111cd4));}}class g extends _0x3ba018{['_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 _0x447e55=this['editor'];_0x447e55['ui']['componentFactory']['add']('uploadcareImageEdit',_0x23071c=>{const _0x309941=_0x447e55['commands']['get']('uploadcareImageEdit'),_0x179c00=new _0x5d53c9(_0x23071c),t=_0x23071c['t'];return _0x179c00['set']({'icon':_0x492800,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x179c00['bind']('isEnabled')['to'](_0x309941),_0x179c00['bind']('isOn')['to'](_0x309941,'isActive'),this['listenTo'](_0x179c00,'execute',()=>{_0x447e55['execute']('uploadcareImageEdit'),_0x447e55['editing']['view']['focus']();}),_0x179c00;}),this['_initConfig']();}['_initConfig'](){const _0x31077c=_0x16c64c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x31077c),this['listenTo'](this['editor'],'destroy',()=>{_0x31077c['remove']();});}}class et extends _0x3ba018{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": "0.0.0-nightly-20251031.0",
3
+ "version": "0.0.0-nightly-20251101.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251031.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251031.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251031.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251031.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251031.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251031.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251031.0",
33
- "ckeditor5": "0.0.0-nightly-20251031.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251101.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251101.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251101.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251101.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251101.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251101.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251101.0",
33
+ "ckeditor5": "0.0.0-nightly-20251101.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d95c3=_0x3d38;(function(_0x1d6a00,_0x211c3f){const _0x1d22d8=_0x3d38,_0x5bbbd9=_0x1d6a00();while(!![]){try{const _0x124555=parseInt(_0x1d22d8(0x126))/0x1+parseInt(_0x1d22d8(0x127))/0x2+-parseInt(_0x1d22d8(0x11e))/0x3*(parseInt(_0x1d22d8(0x132))/0x4)+-parseInt(_0x1d22d8(0x161))/0x5*(-parseInt(_0x1d22d8(0x145))/0x6)+parseInt(_0x1d22d8(0x131))/0x7+parseInt(_0x1d22d8(0x11d))/0x8+-parseInt(_0x1d22d8(0x121))/0x9;if(_0x124555===_0x211c3f)break;else _0x5bbbd9['push'](_0x5bbbd9['shift']());}catch(_0x1aae23){_0x5bbbd9['push'](_0x5bbbd9['shift']());}}}(_0x5509,0x92bea));import{Plugin as _0x1a1657}from'ckeditor5/src/core.js';import{Dialog as _0xd76342}from'ckeditor5/src/ui.js';import{createElement as _0x57f24d,global as _0x38bf59,uid as _0x28603c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3f700e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4c7d0b}from'./uploadcareuploadadapter.js';function _0x5509(){const _0x17a589=['3367182ofPIwz','20nFpBnL','isOfficialPlugin','render','_ctxElement','getSelectedElement','schema','_initConversion','uploader-','upcast','editor','getAttribute','locale','\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','add','uploadcare.uploader','true','removeAttribute','once','editing','6446766jLCRWR','listenTo','_initCtx','contentLanguage','imageInline','remove','downcast','afterInit','join','for','ctxElement','_initImageProcessingIndicator','appendChild','#uc-icon-arrow-down','uc-upload-ctx-provider','UploadcareEditing','querySelector','_configElement','commands','isPremiumPlugin','uploadcareImageReplace','execute','selection','href','attributeToAttribute','ucContextId','init','uc-config','5MxOSrr','input[uploadcare-file-input]','conversion','_initConfig','uploadcare','insertImage','requires','view','configElement','uploadcareImageId','closeMax','document','data-uc-image-id','PictureEditing','cleanupImage','pluginName','17672YMBDlq','527979OSsada','get','map','11181897GXevpm','model','destroy','elementToAttribute','iconHrefResolver','749816kLMxdp','831904NVhHnl','uploadcare.pubkey','replaceImageSource','_initSchema','imageBlock','extend','config','fromCharCode','isRegistered','body'];_0x5509=function(){return _0x17a589;};return _0x5509();}import{showImageProcessingIndicator as _0x174ab5}from'./utils/editingutils.js';function _0x3d38(_0x5328d2,_0x327a99){const _0x55098c=_0x5509();return _0x3d38=function(_0x3d385c,_0x20393b){_0x3d385c=_0x3d385c-0x10f;let _0x539363=_0x55098c[_0x3d385c];return _0x539363;},_0x3d38(_0x5328d2,_0x327a99);}export class UploadcareEditing extends _0x1a1657{[_0x3d95c3(0x156)]=null;[_0x3d95c3(0x135)]=null;static get[_0x3d95c3(0x11c)](){const _0x4a196c=_0x3d95c3;return _0x4a196c(0x154);}static get[_0x3d95c3(0x113)](){const _0x5a6aef=_0x3d95c3;return[_0x5a6aef(0x11a),_0x4c7d0b,_0xd76342];}static get[_0x3d95c3(0x133)](){return!0x0;}static get[_0x3d95c3(0x158)](){return!0x0;}[_0x3d95c3(0x15e)];get[_0x3d95c3(0x115)](){const _0x5e7b5f=_0x3d95c3;return this[_0x5e7b5f(0x156)];}get[_0x3d95c3(0x14f)](){const _0x2292ab=_0x3d95c3;return this[_0x2292ab(0x135)];}constructor(_0x55e880){const _0x2fb118=_0x3d95c3;super(_0x55e880),this[_0x2fb118(0x15e)]=_0x28603c();}[_0x3d95c3(0x15f)](){const _0x21d64e=_0x3d95c3,_0x36add6=this[_0x21d64e(0x13b)];_0x36add6[_0x21d64e(0x157)][_0x21d64e(0x13f)](_0x21d64e(0x111),new _0x3f700e(_0x36add6));}[_0x3d95c3(0x14c)](){const _0x1e93bf=_0x3d95c3;this[_0x1e93bf(0x12a)](),this[_0x1e93bf(0x138)](),this[_0x1e93bf(0x110)](),this[_0x1e93bf(0x147)](),this[_0x1e93bf(0x150)](),this[_0x1e93bf(0x146)](this[_0x1e93bf(0x13b)],_0x1e93bf(0x123),()=>{const _0x514e50=_0x1e93bf;this[_0x514e50(0x156)]&&(this[_0x514e50(0x156)][_0x514e50(0x14a)](),this[_0x514e50(0x156)]=null),this[_0x514e50(0x135)]&&(this[_0x514e50(0x135)][_0x514e50(0x14a)](),this[_0x514e50(0x135)]=null);const _0x330d47=_0x38bf59[_0x514e50(0x118)][_0x514e50(0x155)](_0x514e50(0x162));_0x330d47&&_0x330d47[_0x514e50(0x14a)]();}),async function(_0x6c1a6d){const _0x109c90=_0x46e32b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3f69fb=0x535f8c3a,_0x285e14=0x5358fbfa^_0x3f69fb,_0x456bfb=window[_0x46e32b([0x44,0x61,0x74,0x65])][_0x46e32b([0x6e,0x6f,0x77])](),_0x112f8b=_0x6c1a6d[_0x46e32b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f96c7=new window[(_0x46e32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2c65=>{_0x112f8b[_0x46e32b([0x6f,0x6e,0x63,0x65])](_0x46e32b([0x72,0x65,0x61,0x64,0x79]),_0x5c2c65);}),_0x103814={[_0x46e32b([0x6b,0x74,0x79])]:_0x46e32b([0x45,0x43]),[_0x46e32b([0x75,0x73,0x65])]:_0x46e32b([0x73,0x69,0x67]),[_0x46e32b([0x63,0x72,0x76])]:_0x46e32b([0x50,0x2d,0x32,0x35,0x36]),[_0x46e32b([0x78])]:_0x46e32b([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]),[_0x46e32b([0x79])]:_0x46e32b([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]),[_0x46e32b([0x61,0x6c,0x67])]:_0x46e32b([0x45,0x53,0x32,0x35,0x36])},_0x9bed8=_0x112f8b[_0x46e32b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46e32b([0x67,0x65,0x74])](_0x46e32b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5329f1(){let _0x837151,_0x54200e=null,_0x3c44de=null;try{if(_0x9bed8==_0x46e32b([0x47,0x50,0x4c]))return _0x46e32b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x837151=_0x130c95(),!_0x837151)return _0x46e32b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x837151[_0x46e32b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c44de=_0x3fdae5(_0x837151[_0x46e32b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x837151[_0x46e32b([0x6a,0x74,0x69])])),await _0x340690()?_0x5e7b4b()?_0x325bb3()?_0x46e32b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26bb37()?(_0x837151[_0x46e32b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46e32b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x54200e=_0x4c0012(_0x46e32b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x837151[_0x46e32b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46e32b([0x74,0x72,0x69,0x61,0x6c])&&(_0x54200e=_0x4c0012(_0x46e32b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17cb2a()):_0x46e32b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46e32b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46e32b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x46e32b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x325bb3(){const _0x139101=[_0x46e32b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46e32b([0x74,0x72,0x69,0x61,0x6c])][_0x46e32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x837151[_0x46e32b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x456bfb/0x3e8:0xe10*_0x285e14;return _0x837151[_0x46e32b([0x65,0x78,0x70])]<_0x139101;}function _0x5e7b4b(){const _0x53ca41=_0x837151[_0x46e32b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x53ca41&&(!!_0x53ca41[_0x46e32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46e32b([0x2a]))||!!_0x53ca41[_0x46e32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46e32b([0x55,0x50,0x4c,0x43])));}function _0x26bb37(){const _0x4eb774=_0x3d38,_0x79fd0d=_0x837151[_0x46e32b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x79fd0d||0x0==_0x79fd0d[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e3757}=new URL(window[_0x46e32b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4eb774(0x15c)]);if(_0x79fd0d[_0x46e32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3757))return!0x0;const _0x32f6d9=_0x4e3757[_0x46e32b([0x73,0x70,0x6c,0x69,0x74])](_0x46e32b([0x2e]));return _0x79fd0d[_0x46e32b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6b980=>_0x6b980[_0x46e32b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46e32b([0x2a])))[_0x46e32b([0x6d,0x61,0x70])](_0x1c0d30=>_0x1c0d30[_0x46e32b([0x73,0x70,0x6c,0x69,0x74])](_0x46e32b([0x2e])))[_0x46e32b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x465ac9=>_0x465ac9[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x32f6d9[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46e32b([0x6d,0x61,0x70])](_0x31efc9=>Array(_0x32f6d9[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x31efc9[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46e32b([0x66,0x69,0x6c,0x6c])](_0x31efc9[0x0]===_0x46e32b([0x2a])?_0x46e32b([0x2a]):'')[_0x46e32b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x31efc9))[_0x46e32b([0x73,0x6f,0x6d,0x65])](_0x56a445=>_0x32f6d9[_0x46e32b([0x65,0x76,0x65,0x72,0x79])]((_0x2be5d2,_0x522635)=>_0x56a445[_0x522635]===_0x2be5d2||_0x56a445[_0x522635]===_0x46e32b([0x2a])));}function _0x17cb2a(){return _0x54200e&&_0x3c44de?new window[(_0x46e32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22234f,_0x11a833)=>{_0x54200e[_0x46e32b([0x74,0x68,0x65,0x6e])](_0x22234f,_0x11a833),_0x3c44de[_0x46e32b([0x74,0x68,0x65,0x6e])](_0x596309=>{_0x596309!=_0x46e32b([0x56,0x61,0x6c,0x69,0x64])&&_0x22234f(_0x596309);},_0x11a833);}):_0x54200e||_0x3c44de||_0x46e32b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3fdae5(_0x369437,_0x5af4ce){return new window[(_0x46e32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31e544=>{if(_0x2680b1())return _0x31e544(_0x46e32b([0x56,0x61,0x6c,0x69,0x64]));_0xd2a0b8(),_0x112f8b[_0x46e32b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46e32b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x29579a=!0x1;const _0x1454f2=_0x28603c();function _0x1a2a0c(_0x249163){return!!_0x249163&&(typeof _0x249163===_0x46e32b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x249163===_0x46e32b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x249163[_0x46e32b([0x74,0x68,0x65,0x6e])]===_0x46e32b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x249163[_0x46e32b([0x63,0x61,0x74,0x63,0x68])]===_0x46e32b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9d77b4(_0x4e43b8){_0x470959(_0x4e43b8)[_0x46e32b([0x74,0x68,0x65,0x6e])](_0x43caef=>{if(!_0x43caef||_0x43caef[_0x46e32b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46e32b([0x6f,0x6b]))return _0x46e32b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe9793e(_0x452935(_0x1454f2+_0x5af4ce))!=_0x43caef[_0x46e32b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46e32b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46e32b([0x56,0x61,0x6c,0x69,0x64]);})[_0x46e32b([0x74,0x68,0x65,0x6e])](_0x2aef36=>(_0x4cace8(),_0x2aef36),()=>{const _0x4ae740=_0x25d6f7();return null==_0x4ae740?(_0x4cace8(),_0x46e32b([0x56,0x61,0x6c,0x69,0x64])):_0x46e32b(_0x456bfb-_0x4ae740>(0x7753083a^_0x3f69fb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46e32b([0x74,0x68,0x65,0x6e])](_0x31e544)[_0x46e32b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31e544(_0x46e32b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39c6bf=0x536962ba^_0x3f69fb;function _0x4cace8(){const _0xff1a73=_0x46e32b([0x6c,0x6c,0x63,0x74,0x2d])+_0xe9793e(_0x452935(_0x369437)),_0x22fdd4=_0x14e4d7(_0xe9793e(window[_0x46e32b([0x4d,0x61,0x74,0x68])][_0x46e32b([0x63,0x65,0x69,0x6c])](_0x456bfb/_0x39c6bf)));window[_0x46e32b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46e32b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xff1a73,_0x22fdd4);}function _0x25d6f7(){const _0xb02355=_0x46e32b([0x6c,0x6c,0x63,0x74,0x2d])+_0xe9793e(_0x452935(_0x369437)),_0x24e1cc=window[_0x46e32b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46e32b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb02355);return _0x24e1cc?window[_0x46e32b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14e4d7(_0x24e1cc),0x10)*_0x39c6bf:null;}function _0x470959(_0x193d2d){return new window[(_0x46e32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa61172,_0x46ed78)=>{_0x193d2d[_0x46e32b([0x74,0x68,0x65,0x6e])](_0xa61172,_0x46ed78),window[_0x46e32b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46ed78,0x535e58fa^_0x3f69fb);});}}_0x112f8b[_0x46e32b([0x6f,0x6e])](_0x46e32b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4fffec,_0x1381f6)=>{if(_0x1381f6[0x0]!=_0x369437)return _0x31e544(_0x46e32b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1381f6[0x1]={..._0x1381f6[0x1],[_0x46e32b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1454f2};},{[_0x46e32b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46e32b([0x68,0x69,0x67,0x68])}),_0x112f8b[_0x46e32b([0x6f,0x6e])](_0x46e32b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4289f5=>{_0x1a2a0c(_0x4289f5[_0x46e32b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x29579a=!0x0,_0x9d77b4(_0x4289f5[_0x46e32b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46e32b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46e32b([0x6c,0x6f,0x77])}),_0x2f96c7[_0x46e32b([0x74,0x68,0x65,0x6e])](()=>{_0x29579a||_0x31e544(_0x46e32b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2680b1(){return _0x112f8b[_0x46e32b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46e32b([0x76,0x69,0x65,0x77])][_0x46e32b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46e32b([0x61,0x75,0x74,0x6f]);}function _0xd2a0b8(){_0x112f8b[_0x46e32b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46e32b([0x76,0x69,0x65,0x77])][_0x46e32b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46e32b([0x61,0x75,0x74,0x6f]);}}function _0x4c0012(_0x5bce76){const _0x578c90=[new window[(_0x46e32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa0ef69=>setTimeout(_0xa0ef69,0x5356b2f6^_0x3f69fb)),_0x2f96c7[_0x46e32b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46e32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x331f91=>{let _0x59eb80=0x0;_0x112f8b[_0x46e32b([0x6d,0x6f,0x64,0x65,0x6c])][_0x46e32b([0x6f,0x6e])](_0x46e32b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xeeeae2,_0x2cf34f)=>{_0x2cf34f[0x0][_0x46e32b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59eb80++,_0x59eb80==(0x535f8dc2^_0x3f69fb)&&(_0x331f91(),_0xeeeae2[_0x46e32b([0x6f,0x66,0x66])]());});}))];return window[_0x46e32b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46e32b([0x72,0x61,0x63,0x65])](_0x578c90)[_0x46e32b([0x74,0x68,0x65,0x6e])](()=>_0x5bce76);}async function _0x135d0(){await _0x2f96c7,_0x112f8b[_0x46e32b([0x6d,0x6f,0x64,0x65,0x6c])][_0x46e32b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x428f46,_0x112f8b[_0x46e32b([0x6d,0x6f,0x64,0x65,0x6c])][_0x46e32b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x428f46,_0x112f8b[_0x46e32b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46e32b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32af18(_0x443d3d){const _0x41147d=_0x140e2b();_0x112f8b[_0x41147d]=_0x46e32b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x443d3d,_0x443d3d!=_0x46e32b([0x56,0x61,0x6c,0x69,0x64])&&_0x135d0();}function _0x140e2b(){const _0x2ae11b=window[_0x46e32b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46e32b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46e32b([0x6e,0x6f,0x77])]())[_0x46e32b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46e32b([0x2e]),'');let _0x4e6b01=_0x46e32b([0x68]);for(let _0xcd803f=0x0;_0xcd803f<_0x2ae11b[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcd803f+=0x2){let _0x25341f=window[_0x46e32b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ae11b[_0x46e32b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcd803f,_0xcd803f+0x2));_0x25341f>=_0x109c90[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25341f-=_0x109c90[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e6b01+=_0x109c90[_0x25341f];}return _0x4e6b01;}function _0x130c95(){const _0x38397f=_0x9bed8[_0x46e32b([0x73,0x70,0x6c,0x69,0x74])](_0x46e32b([0x2e]));if(0x3!=_0x38397f[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26413d(_0x38397f[0x1]);function _0x26413d(_0xff0a46){const _0x6de29d=_0x1fec6f(_0xff0a46);return _0x6de29d&&_0x2f41b4()?_0x6de29d:null;function _0x2f41b4(){const _0x2944e3=_0x6de29d[_0x46e32b([0x6a,0x74,0x69])],_0x407724=window[_0x46e32b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2944e3[_0x46e32b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2944e3[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x121000={..._0x6de29d,[_0x46e32b([0x6a,0x74,0x69])]:_0x2944e3[_0x46e32b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2944e3[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x121000[_0x46e32b([0x76,0x63])],_0x452935(_0x121000)==_0x407724;}}}async function _0x340690(){let _0x5c1146=!0x0;try{const _0x484d9b=_0x9bed8[_0x46e32b([0x73,0x70,0x6c,0x69,0x74])](_0x46e32b([0x2e])),[_0x1ef8a5,_0x49b052,_0x4e1a12]=_0x484d9b;return _0x5eac55(_0x1ef8a5),await _0x3cbfbe(_0x1ef8a5,_0x49b052,_0x4e1a12),_0x5c1146;}catch{return!0x1;}function _0x5eac55(_0x50f719){const _0x2143c5=_0x1fec6f(_0x50f719);_0x2143c5&&_0x2143c5[_0x46e32b([0x61,0x6c,0x67])]==_0x46e32b([0x45,0x53,0x32,0x35,0x36])||(_0x5c1146=!0x1);}async function _0x3cbfbe(_0x597f27,_0xb8f08c,_0x5e98c4){const _0x1ea333=window[_0x46e32b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46e32b([0x66,0x72,0x6f,0x6d])](_0x118d57(_0x5e98c4),_0x3190c9=>_0x3190c9[_0x46e32b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13228b=new window[(_0x46e32b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46e32b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x597f27+_0x46e32b([0x2e])+_0xb8f08c),_0x544796=window[_0x46e32b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46e32b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x544796)return;const _0x5a14bd=await _0x544796[_0x46e32b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46e32b([0x6a,0x77,0x6b]),_0x103814,{[_0x46e32b([0x6e,0x61,0x6d,0x65])]:_0x46e32b([0x45,0x43,0x44,0x53,0x41]),[_0x46e32b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46e32b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46e32b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x544796[_0x46e32b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46e32b([0x6e,0x61,0x6d,0x65])]:_0x46e32b([0x45,0x43,0x44,0x53,0x41]),[_0x46e32b([0x68,0x61,0x73,0x68])]:{[_0x46e32b([0x6e,0x61,0x6d,0x65])]:_0x46e32b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a14bd,_0x1ea333,_0x13228b)||(_0x5c1146=!0x1);}}function _0x1fec6f(_0x3e8843){return _0x3e8843[_0x46e32b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46e32b([0x65,0x79]))?JSON[_0x46e32b([0x70,0x61,0x72,0x73,0x65])](_0x118d57(_0x3e8843)):null;}function _0x118d57(_0x3ba02a){return window[_0x46e32b([0x61,0x74,0x6f,0x62])](_0x3ba02a[_0x46e32b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46e32b([0x2b]))[_0x46e32b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46e32b([0x2f])));}function _0x452935(_0x3ddb1c){let _0xf98d2d=0x1505;function _0x1f5e8c(_0x16b24e){for(let _0x1aa568=0x0;_0x1aa568<_0x16b24e[_0x46e32b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1aa568++){const _0x4e8eeb=_0x16b24e[_0x46e32b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1aa568);_0xf98d2d=(_0xf98d2d<<0x5)+_0xf98d2d+_0x4e8eeb,_0xf98d2d&=_0xf98d2d;}}function _0x8990ec(_0x4882fc){Array[_0x46e32b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4882fc)?_0x4882fc[_0x46e32b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8990ec):_0x4882fc&&typeof _0x4882fc==_0x46e32b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46e32b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4882fc)[_0x46e32b([0x73,0x6f,0x72,0x74])]()[_0x46e32b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e1469,_0x2bf99c])=>{_0x1f5e8c(_0x4e1469),_0x8990ec(_0x2bf99c);}):_0x1f5e8c(window[_0x46e32b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4882fc));}return _0x8990ec(_0x3ddb1c),_0xf98d2d>>>0x0;}function _0xe9793e(_0x28012a){return _0x28012a[_0x46e32b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46e32b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46e32b([0x30]));}function _0x14e4d7(_0x36682c){return _0x36682c[_0x46e32b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46e32b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46e32b([0x6a,0x6f,0x69,0x6e])]('');}function _0x428f46(){}function _0x46e32b(_0x2413bc){const _0x393ddd=_0x3d38;return _0x2413bc[_0x393ddd(0x120)](_0x3fecfa=>String[_0x393ddd(0x12e)](_0x3fecfa))[_0x393ddd(0x14d)]('');}_0x32af18(await _0x5329f1());}(this);}[_0x3d95c3(0x12a)](){const _0x329ac1=_0x3d95c3,_0x5e2892=this[_0x329ac1(0x13b)][_0x329ac1(0x122)][_0x329ac1(0x137)];_0x5e2892[_0x329ac1(0x12f)](_0x329ac1(0x12b))&&_0x5e2892[_0x329ac1(0x12c)](_0x329ac1(0x12b),{'allowAttributes':[_0x329ac1(0x116)]}),_0x5e2892[_0x329ac1(0x12f)](_0x329ac1(0x149))&&_0x5e2892[_0x329ac1(0x12c)](_0x329ac1(0x149),{'allowAttributes':[_0x329ac1(0x116)]});}[_0x3d95c3(0x138)](){const _0x2be01e=_0x3d95c3,_0x2d1384=this[_0x2be01e(0x13b)];_0x2d1384[_0x2be01e(0x10f)][_0x2be01e(0x14e)](_0x2be01e(0x14b))[_0x2be01e(0x15d)]({'model':_0x2be01e(0x116),'view':_0x2be01e(0x119)}),_0x2d1384[_0x2be01e(0x10f)][_0x2be01e(0x14e)](_0x2be01e(0x13a))[_0x2be01e(0x124)]({'model':{'key':_0x2be01e(0x116),'value':_0x57f5be=>_0x57f5be[_0x2be01e(0x13c)](_0x2be01e(0x119))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3b47b7=_0x2d1384[_0x2be01e(0x157)][_0x2be01e(0x11f)](_0x2be01e(0x129));_0x3b47b7&&this[_0x2be01e(0x146)](_0x3b47b7,_0x2be01e(0x11b),(_0x1a9b10,[_0x490d0b,_0xe24aa9])=>{const _0xd6cd31=_0x2be01e;_0x490d0b[_0xd6cd31(0x142)](_0xd6cd31(0x116),_0xe24aa9);});}[_0x3d95c3(0x110)](){const _0x32623e=_0x3d95c3,_0x2bd2ec=this[_0x32623e(0x13b)][_0x32623e(0x12d)][_0x32623e(0x11f)](_0x32623e(0x140))||{},_0x8b0531=this[_0x32623e(0x13b)][_0x32623e(0x12d)][_0x32623e(0x11f)](_0x32623e(0x128))||'';this[_0x32623e(0x156)]=_0x57f24d(_0x38bf59[_0x32623e(0x118)],_0x32623e(0x160),{..._0x2bd2ec,'pubkey':_0x8b0531,'ctx-name':_0x32623e(0x139)+this[_0x32623e(0x15e)],'sourceList':'','imgOnly':_0x32623e(0x141),'removeCopyright':_0x32623e(0x141),'localeName':this[_0x32623e(0x13b)][_0x32623e(0x13d)][_0x32623e(0x148)],'externalSourcesEmbedCss':_0x32623e(0x13e)}),this[_0x32623e(0x156)][_0x32623e(0x125)]=_0x51d921=>{const _0x293f5c=_0x32623e;if(_0x293f5c(0x117)==_0x51d921)return _0x293f5c(0x152);},_0x38bf59[_0x32623e(0x118)][_0x32623e(0x130)][_0x32623e(0x151)](this[_0x32623e(0x156)]);}[_0x3d95c3(0x147)](){const _0x4674ad=_0x3d95c3;this[_0x4674ad(0x135)]=_0x57f24d(_0x38bf59[_0x4674ad(0x118)],_0x4674ad(0x153),{'ctx-name':_0x4674ad(0x139)+this[_0x4674ad(0x15e)]}),_0x38bf59[_0x4674ad(0x118)][_0x4674ad(0x130)][_0x4674ad(0x151)](this[_0x4674ad(0x135)]);}[_0x3d95c3(0x150)](){const _0x4407e9=_0x3d95c3,_0x59cd7d=this[_0x4407e9(0x13b)][_0x4407e9(0x157)][_0x4407e9(0x11f)](_0x4407e9(0x112));_0x59cd7d&&this[_0x4407e9(0x146)](_0x59cd7d,_0x4407e9(0x15a),()=>{const _0x58a93d=_0x4407e9,_0x49e8aa=this[_0x58a93d(0x13b)][_0x58a93d(0x122)][_0x58a93d(0x118)][_0x58a93d(0x15b)][_0x58a93d(0x136)]();_0x49e8aa&&_0x49e8aa[_0x58a93d(0x13c)](_0x58a93d(0x116))&&this[_0x58a93d(0x13b)][_0x58a93d(0x144)][_0x58a93d(0x114)][_0x58a93d(0x143)](_0x58a93d(0x134),()=>{const _0x17725a=_0x58a93d;_0x174ab5(this[_0x17725a(0x13b)],_0x49e8aa);});});const _0x2ca271=this[_0x4407e9(0x13b)][_0x4407e9(0x157)][_0x4407e9(0x11f)](_0x4407e9(0x159));_0x2ca271&&this[_0x4407e9(0x146)](_0x2ca271,_0x4407e9(0x15a),()=>{const _0x5e3053=_0x4407e9,_0x32ea5c=this[_0x5e3053(0x13b)][_0x5e3053(0x122)][_0x5e3053(0x118)][_0x5e3053(0x15b)][_0x5e3053(0x136)]();_0x32ea5c&&_0x32ea5c[_0x5e3053(0x13c)](_0x5e3053(0x116))&&this[_0x5e3053(0x13b)][_0x5e3053(0x144)][_0x5e3053(0x114)][_0x5e3053(0x143)](_0x5e3053(0x134),()=>{const _0xc9a1b0=_0x5e3053;_0x174ab5(this[_0xc9a1b0(0x13b)],_0x32ea5c);});});}}
23
+ const _0x42a7ba=_0x54f2;(function(_0x4c2abe,_0x394cf6){const _0x367468=_0x54f2,_0x25db74=_0x4c2abe();while(!![]){try{const _0x14853c=parseInt(_0x367468(0x1e9))/0x1+-parseInt(_0x367468(0x1f0))/0x2+parseInt(_0x367468(0x213))/0x3*(-parseInt(_0x367468(0x22a))/0x4)+parseInt(_0x367468(0x20a))/0x5*(-parseInt(_0x367468(0x222))/0x6)+parseInt(_0x367468(0x21e))/0x7+parseInt(_0x367468(0x227))/0x8+parseInt(_0x367468(0x201))/0x9;if(_0x14853c===_0x394cf6)break;else _0x25db74['push'](_0x25db74['shift']());}catch(_0x5338ad){_0x25db74['push'](_0x25db74['shift']());}}}(_0x1d8a,0x8143c));import{Plugin as _0x1c5e18}from'ckeditor5/src/core.js';function _0x54f2(_0x2d9c9b,_0x1d56eb){const _0x1d8a5c=_0x1d8a();return _0x54f2=function(_0x54f250,_0x4629e3){_0x54f250=_0x54f250-0x1e3;let _0x11519a=_0x1d8a5c[_0x54f250];return _0x11519a;},_0x54f2(_0x2d9c9b,_0x1d56eb);}import{Dialog as _0x1063f3}from'ckeditor5/src/ui.js';import{createElement as _0x532829,global as _0x1a68e8,uid as _0x796596}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x13217f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x28ebfa}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4dd0d7}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1c5e18{[_0x42a7ba(0x1f6)]=null;[_0x42a7ba(0x1ef)]=null;static get[_0x42a7ba(0x214)](){const _0x377ab2=_0x42a7ba;return _0x377ab2(0x21f);}static get[_0x42a7ba(0x21a)](){const _0x26a4b6=_0x42a7ba;return[_0x26a4b6(0x21c),_0x28ebfa,_0x1063f3];}static get[_0x42a7ba(0x203)](){return!0x0;}static get[_0x42a7ba(0x205)](){return!0x0;}[_0x42a7ba(0x208)];get[_0x42a7ba(0x233)](){const _0x107f49=_0x42a7ba;return this[_0x107f49(0x1f6)];}get[_0x42a7ba(0x235)](){const _0x10d858=_0x42a7ba;return this[_0x10d858(0x1ef)];}constructor(_0x531a6d){const _0x339d95=_0x42a7ba;super(_0x531a6d),this[_0x339d95(0x208)]=_0x796596();}[_0x42a7ba(0x20e)](){const _0x30d981=_0x42a7ba,_0x384314=this[_0x30d981(0x1ed)];_0x384314[_0x30d981(0x1ee)][_0x30d981(0x221)](_0x30d981(0x22b),new _0x13217f(_0x384314));}[_0x42a7ba(0x218)](){const _0x25e7c0=_0x42a7ba;this[_0x25e7c0(0x232)](),this[_0x25e7c0(0x1fa)](),this[_0x25e7c0(0x1ec)](),this[_0x25e7c0(0x200)](),this[_0x25e7c0(0x223)](),this[_0x25e7c0(0x1fb)](this[_0x25e7c0(0x1ed)],_0x25e7c0(0x22c),()=>{const _0xad8f11=_0x25e7c0;this[_0xad8f11(0x1f6)]&&(this[_0xad8f11(0x1f6)][_0xad8f11(0x231)](),this[_0xad8f11(0x1f6)]=null),this[_0xad8f11(0x1ef)]&&(this[_0xad8f11(0x1ef)][_0xad8f11(0x231)](),this[_0xad8f11(0x1ef)]=null);const _0xb85659=_0x1a68e8[_0xad8f11(0x207)][_0xad8f11(0x210)](_0xad8f11(0x204));_0xb85659&&_0xb85659[_0xad8f11(0x231)]();}),async function(_0x469a05){const _0x23338e=_0x2f32e3([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x46ce6f=0x535f8c3a,_0x4e43b4=0x5358fbe2^_0x46ce6f,_0x3ef574=window[_0x2f32e3([0x44,0x61,0x74,0x65])][_0x2f32e3([0x6e,0x6f,0x77])](),_0x54f118=_0x469a05[_0x2f32e3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5864a6=new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd980=>{_0x54f118[_0x2f32e3([0x6f,0x6e,0x63,0x65])](_0x2f32e3([0x72,0x65,0x61,0x64,0x79]),_0x4dd980);}),_0x2536da={[_0x2f32e3([0x6b,0x74,0x79])]:_0x2f32e3([0x45,0x43]),[_0x2f32e3([0x75,0x73,0x65])]:_0x2f32e3([0x73,0x69,0x67]),[_0x2f32e3([0x63,0x72,0x76])]:_0x2f32e3([0x50,0x2d,0x32,0x35,0x36]),[_0x2f32e3([0x78])]:_0x2f32e3([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]),[_0x2f32e3([0x79])]:_0x2f32e3([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]),[_0x2f32e3([0x61,0x6c,0x67])]:_0x2f32e3([0x45,0x53,0x32,0x35,0x36])},_0x25e3c3=_0x54f118[_0x2f32e3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f32e3([0x67,0x65,0x74])](_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34c246(){let _0x2fcc9c,_0x4b3f98=null,_0x9e0e42=null;try{if(_0x25e3c3==_0x2f32e3([0x47,0x50,0x4c]))return _0x2f32e3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fcc9c=_0x56f757(),!_0x2fcc9c)return _0x2f32e3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2fcc9c[_0x2f32e3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9e0e42=_0x2ff18c(_0x2fcc9c[_0x2f32e3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fcc9c[_0x2f32e3([0x6a,0x74,0x69])])),await _0x1ba0c5()?_0x28ad79()?_0x39b7a5()?_0x2f32e3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c0481()?(_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f32e3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b3f98=_0x444345(_0x2f32e3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f32e3([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b3f98=_0x444345(_0x2f32e3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2dec01()):_0x2f32e3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f32e3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f32e3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f32e3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39b7a5(){const _0x1953dc=[_0x2f32e3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f32e3([0x74,0x72,0x69,0x61,0x6c])][_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ef574/0x3e8:0xe10*_0x4e43b4;return _0x2fcc9c[_0x2f32e3([0x65,0x78,0x70])]<_0x1953dc;}function _0x28ad79(){const _0x509578=_0x2fcc9c[_0x2f32e3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x509578&&(!!_0x509578[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f32e3([0x2a]))||!!_0x509578[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f32e3([0x55,0x50,0x4c,0x43])));}function _0x5c0481(){const _0xd0191a=_0x54f2,_0x596bda=_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x596bda||0x0==_0x596bda[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x66a83f}=new URL(window[_0x2f32e3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xd0191a(0x209)]);if(_0x596bda[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x66a83f))return!0x0;const _0x1a7597=_0x66a83f[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e]));return _0x596bda[_0x2f32e3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54c472=>_0x54c472[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f32e3([0x2a])))[_0x2f32e3([0x6d,0x61,0x70])](_0x5e80b4=>_0x5e80b4[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e])))[_0x2f32e3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x556765=>_0x556765[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a7597[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f32e3([0x6d,0x61,0x70])](_0xba1fc2=>Array(_0x1a7597[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xba1fc2[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f32e3([0x66,0x69,0x6c,0x6c])](_0xba1fc2[0x0]===_0x2f32e3([0x2a])?_0x2f32e3([0x2a]):'')[_0x2f32e3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xba1fc2))[_0x2f32e3([0x73,0x6f,0x6d,0x65])](_0x516e54=>_0x1a7597[_0x2f32e3([0x65,0x76,0x65,0x72,0x79])]((_0x47a3f2,_0x4a9ae9)=>_0x516e54[_0x4a9ae9]===_0x47a3f2||_0x516e54[_0x4a9ae9]===_0x2f32e3([0x2a])));}function _0x2dec01(){return _0x4b3f98&&_0x9e0e42?new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c4ee0,_0x536cd9)=>{_0x4b3f98[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x3c4ee0,_0x536cd9),_0x9e0e42[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x72dbd2=>{_0x72dbd2!=_0x2f32e3([0x56,0x61,0x6c,0x69,0x64])&&_0x3c4ee0(_0x72dbd2);},_0x536cd9);}):_0x4b3f98||_0x9e0e42||_0x2f32e3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ff18c(_0x2c1525,_0x29c370){return new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x111a5c=>{if(_0x87e117())return _0x111a5c(_0x2f32e3([0x56,0x61,0x6c,0x69,0x64]));_0x2a617d(),_0x54f118[_0x2f32e3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f32e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bdc67=!0x1;const _0x2318a3=_0x796596();function _0x2a7906(_0x2ade0b){return!!_0x2ade0b&&(typeof _0x2ade0b===_0x2f32e3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ade0b===_0x2f32e3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ade0b[_0x2f32e3([0x74,0x68,0x65,0x6e])]===_0x2f32e3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ade0b[_0x2f32e3([0x63,0x61,0x74,0x63,0x68])]===_0x2f32e3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x422549(_0x57d0bc){_0x26a012(_0x57d0bc)[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x40f298=>{if(!_0x40f298||_0x40f298[_0x2f32e3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f32e3([0x6f,0x6b]))return _0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x294e7d(_0x3f9de4(_0x2318a3+_0x29c370))!=_0x40f298[_0x2f32e3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f32e3([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0xa5543b=>(_0x52778a(),_0xa5543b),()=>{const _0xef985e=_0xafc1ac();return null==_0xef985e?(_0x52778a(),_0x2f32e3([0x56,0x61,0x6c,0x69,0x64])):_0x2f32e3(_0x3ef574-_0xef985e>(0x7753083a^_0x46ce6f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x111a5c)[_0x2f32e3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x111a5c(_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52848c=0x536962ba^_0x46ce6f;function _0x52778a(){const _0x2494e7=_0x2f32e3([0x6c,0x6c,0x63,0x74,0x2d])+_0x294e7d(_0x3f9de4(_0x2c1525)),_0x2194ad=_0x114439(_0x294e7d(window[_0x2f32e3([0x4d,0x61,0x74,0x68])][_0x2f32e3([0x63,0x65,0x69,0x6c])](_0x3ef574/_0x52848c)));window[_0x2f32e3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f32e3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2494e7,_0x2194ad);}function _0xafc1ac(){const _0x40d3d6=_0x2f32e3([0x6c,0x6c,0x63,0x74,0x2d])+_0x294e7d(_0x3f9de4(_0x2c1525)),_0x5b8b94=window[_0x2f32e3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f32e3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40d3d6);return _0x5b8b94?window[_0x2f32e3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x114439(_0x5b8b94),0x10)*_0x52848c:null;}function _0x26a012(_0x5e9f0e){return new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c0b2e,_0x36b550)=>{_0x5e9f0e[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x4c0b2e,_0x36b550),window[_0x2f32e3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36b550,0x535e58fa^_0x46ce6f);});}}_0x54f118[_0x2f32e3([0x6f,0x6e])](_0x2f32e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42ab3a,_0x346b4e)=>{if(_0x346b4e[0x0]!=_0x2c1525)return _0x111a5c(_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x346b4e[0x1]={..._0x346b4e[0x1],[_0x2f32e3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2318a3};},{[_0x2f32e3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f32e3([0x68,0x69,0x67,0x68])}),_0x54f118[_0x2f32e3([0x6f,0x6e])](_0x2f32e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1edf9e=>{_0x2a7906(_0x1edf9e[_0x2f32e3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bdc67=!0x0,_0x422549(_0x1edf9e[_0x2f32e3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f32e3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f32e3([0x6c,0x6f,0x77])}),_0x5864a6[_0x2f32e3([0x74,0x68,0x65,0x6e])](()=>{_0x3bdc67||_0x111a5c(_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x87e117(){return _0x54f118[_0x2f32e3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f32e3([0x76,0x69,0x65,0x77])][_0x2f32e3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f32e3([0x61,0x75,0x74,0x6f]);}function _0x2a617d(){_0x54f118[_0x2f32e3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f32e3([0x76,0x69,0x65,0x77])][_0x2f32e3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f32e3([0x61,0x75,0x74,0x6f]);}}function _0x444345(_0x3a8766){const _0x40ec61=[new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c13c4=>setTimeout(_0x5c13c4,0x5356b2f6^_0x46ce6f)),_0x5864a6[_0x2f32e3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2aaf=>{let _0x56f0f1=0x0;_0x54f118[_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f32e3([0x6f,0x6e])](_0x2f32e3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x591156,_0x5d0344)=>{_0x5d0344[0x0][_0x2f32e3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x56f0f1++,_0x56f0f1==(0x535f8dc2^_0x46ce6f)&&(_0x5c2aaf(),_0x591156[_0x2f32e3([0x6f,0x66,0x66])]());});}))];return window[_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f32e3([0x72,0x61,0x63,0x65])](_0x40ec61)[_0x2f32e3([0x74,0x68,0x65,0x6e])](()=>_0x3a8766);}async function _0x3c15b8(){await _0x5864a6,_0x54f118[_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f32e3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53a811,_0x54f118[_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f32e3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53a811,_0x54f118[_0x2f32e3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e9776(_0x45dd96){const _0x53acbf=_0x59cdc3();_0x54f118[_0x53acbf]=_0x2f32e3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45dd96,_0x45dd96!=_0x2f32e3([0x56,0x61,0x6c,0x69,0x64])&&_0x3c15b8();}function _0x59cdc3(){const _0x5aee12=window[_0x2f32e3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f32e3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f32e3([0x6e,0x6f,0x77])]())[_0x2f32e3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f32e3([0x2e]),'');let _0x413bb5=_0x2f32e3([0x68]);for(let _0x29c9cc=0x0;_0x29c9cc<_0x5aee12[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29c9cc+=0x2){let _0x73458=window[_0x2f32e3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5aee12[_0x2f32e3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29c9cc,_0x29c9cc+0x2));_0x73458>=_0x23338e[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x73458-=_0x23338e[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x413bb5+=_0x23338e[_0x73458];}return _0x413bb5;}function _0x56f757(){const _0x3ef0e1=_0x25e3c3[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e]));if(0x3!=_0x3ef0e1[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d8a73(_0x3ef0e1[0x1]);function _0x2d8a73(_0x41da23){const _0x5552a3=_0x49ea0c(_0x41da23);return _0x5552a3&&_0x1e6b1d()?_0x5552a3:null;function _0x1e6b1d(){const _0x520b76=_0x5552a3[_0x2f32e3([0x6a,0x74,0x69])],_0x1b3dfd=window[_0x2f32e3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x520b76[_0x2f32e3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x520b76[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x431bb3={..._0x5552a3,[_0x2f32e3([0x6a,0x74,0x69])]:_0x520b76[_0x2f32e3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x520b76[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x431bb3[_0x2f32e3([0x76,0x63])],_0x3f9de4(_0x431bb3)==_0x1b3dfd;}}}async function _0x1ba0c5(){let _0x38fd89=!0x0;try{const _0x765a4f=_0x25e3c3[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e])),[_0x3cd1f9,_0x381eea,_0x1bf647]=_0x765a4f;return _0x4f3901(_0x3cd1f9),await _0x3ad0fa(_0x3cd1f9,_0x381eea,_0x1bf647),_0x38fd89;}catch{return!0x1;}function _0x4f3901(_0x5993b4){const _0x590605=_0x49ea0c(_0x5993b4);_0x590605&&_0x590605[_0x2f32e3([0x61,0x6c,0x67])]==_0x2f32e3([0x45,0x53,0x32,0x35,0x36])||(_0x38fd89=!0x1);}async function _0x3ad0fa(_0x1853b3,_0x1fea06,_0x254638){const _0x3ec707=window[_0x2f32e3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f32e3([0x66,0x72,0x6f,0x6d])](_0x3481f5(_0x254638),_0x30eadc=>_0x30eadc[_0x2f32e3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39ab28=new window[(_0x2f32e3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f32e3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1853b3+_0x2f32e3([0x2e])+_0x1fea06),_0x3d1e96=window[_0x2f32e3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f32e3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d1e96)return;const _0x2905cc=await _0x3d1e96[_0x2f32e3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f32e3([0x6a,0x77,0x6b]),_0x2536da,{[_0x2f32e3([0x6e,0x61,0x6d,0x65])]:_0x2f32e3([0x45,0x43,0x44,0x53,0x41]),[_0x2f32e3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f32e3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f32e3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d1e96[_0x2f32e3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f32e3([0x6e,0x61,0x6d,0x65])]:_0x2f32e3([0x45,0x43,0x44,0x53,0x41]),[_0x2f32e3([0x68,0x61,0x73,0x68])]:{[_0x2f32e3([0x6e,0x61,0x6d,0x65])]:_0x2f32e3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2905cc,_0x3ec707,_0x39ab28)||(_0x38fd89=!0x1);}}function _0x49ea0c(_0x375fe0){return _0x375fe0[_0x2f32e3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f32e3([0x65,0x79]))?JSON[_0x2f32e3([0x70,0x61,0x72,0x73,0x65])](_0x3481f5(_0x375fe0)):null;}function _0x3481f5(_0x15b41e){return window[_0x2f32e3([0x61,0x74,0x6f,0x62])](_0x15b41e[_0x2f32e3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f32e3([0x2b]))[_0x2f32e3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f32e3([0x2f])));}function _0x3f9de4(_0x54fbcd){let _0xd81fe7=0x1505;function _0x498e96(_0x248614){for(let _0x30603c=0x0;_0x30603c<_0x248614[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30603c++){const _0x5e7842=_0x248614[_0x2f32e3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30603c);_0xd81fe7=(_0xd81fe7<<0x5)+_0xd81fe7+_0x5e7842,_0xd81fe7&=_0xd81fe7;}}function _0x6d2228(_0x450f1c){Array[_0x2f32e3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x450f1c)?_0x450f1c[_0x2f32e3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x6d2228):_0x450f1c&&typeof _0x450f1c==_0x2f32e3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f32e3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x450f1c)[_0x2f32e3([0x73,0x6f,0x72,0x74])]()[_0x2f32e3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35d7fc,_0x344bc0])=>{_0x498e96(_0x35d7fc),_0x6d2228(_0x344bc0);}):_0x498e96(window[_0x2f32e3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x450f1c));}return _0x6d2228(_0x54fbcd),_0xd81fe7>>>0x0;}function _0x294e7d(_0x3786c8){return _0x3786c8[_0x2f32e3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f32e3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f32e3([0x30]));}function _0x114439(_0xbf4d03){return _0xbf4d03[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f32e3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f32e3([0x6a,0x6f,0x69,0x6e])]('');}function _0x53a811(){}function _0x2f32e3(_0x218522){const _0x2313be=_0x54f2;return _0x218522[_0x2313be(0x1e8)](_0x2d2681=>String[_0x2313be(0x228)](_0x2d2681))[_0x2313be(0x212)]('');}_0x3e9776(await _0x34c246());}(this);}[_0x42a7ba(0x232)](){const _0x3300ad=_0x42a7ba,_0x5e61ff=this[_0x3300ad(0x1ed)][_0x3300ad(0x1f8)][_0x3300ad(0x1f2)];_0x5e61ff[_0x3300ad(0x1e5)](_0x3300ad(0x211))&&_0x5e61ff[_0x3300ad(0x1e3)](_0x3300ad(0x211),{'allowAttributes':[_0x3300ad(0x220)]}),_0x5e61ff[_0x3300ad(0x1e5)](_0x3300ad(0x1e7))&&_0x5e61ff[_0x3300ad(0x1e3)](_0x3300ad(0x1e7),{'allowAttributes':[_0x3300ad(0x220)]});}[_0x42a7ba(0x1fa)](){const _0x303b07=_0x42a7ba,_0x54c0d9=this[_0x303b07(0x1ed)];_0x54c0d9[_0x303b07(0x1f1)][_0x303b07(0x230)](_0x303b07(0x1eb))[_0x303b07(0x20f)]({'model':_0x303b07(0x220),'view':_0x303b07(0x202)}),_0x54c0d9[_0x303b07(0x1f1)][_0x303b07(0x230)](_0x303b07(0x22e))[_0x303b07(0x20d)]({'model':{'key':_0x303b07(0x220),'value':_0x28eae6=>_0x28eae6[_0x303b07(0x21b)](_0x303b07(0x202))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x59af56=_0x54c0d9[_0x303b07(0x1ee)][_0x303b07(0x216)](_0x303b07(0x1f7));_0x59af56&&this[_0x303b07(0x1fb)](_0x59af56,_0x303b07(0x225),(_0x7f5ec6,[_0x4af58d,_0x2aac80])=>{const _0x41b56c=_0x303b07;_0x4af58d[_0x41b56c(0x20c)](_0x41b56c(0x220),_0x2aac80);});}[_0x42a7ba(0x1ec)](){const _0x2e882b=_0x42a7ba,_0x1b8cf5=this[_0x2e882b(0x1ed)][_0x2e882b(0x1ea)][_0x2e882b(0x216)](_0x2e882b(0x226))||{},_0x505d9d=this[_0x2e882b(0x1ed)][_0x2e882b(0x1ea)][_0x2e882b(0x216)](_0x2e882b(0x217))||'';this[_0x2e882b(0x1f6)]=_0x532829(_0x1a68e8[_0x2e882b(0x207)],_0x2e882b(0x1ff),{..._0x1b8cf5,'pubkey':_0x505d9d,'ctx-name':_0x2e882b(0x1f9)+this[_0x2e882b(0x208)],'sourceList':'','imgOnly':_0x2e882b(0x1f5),'removeCopyright':_0x2e882b(0x1f5),'localeName':this[_0x2e882b(0x1ed)][_0x2e882b(0x206)][_0x2e882b(0x224)],'externalSourcesEmbedCss':_0x2e882b(0x215)}),this[_0x2e882b(0x1f6)][_0x2e882b(0x22d)]=_0x36a2f9=>{const _0x44f3e2=_0x2e882b;if(_0x44f3e2(0x229)==_0x36a2f9)return _0x44f3e2(0x234);},_0x1a68e8[_0x2e882b(0x207)][_0x2e882b(0x1e4)][_0x2e882b(0x219)](this[_0x2e882b(0x1f6)]);}[_0x42a7ba(0x200)](){const _0x4efd00=_0x42a7ba;this[_0x4efd00(0x1ef)]=_0x532829(_0x1a68e8[_0x4efd00(0x207)],_0x4efd00(0x22f),{'ctx-name':_0x4efd00(0x1f9)+this[_0x4efd00(0x208)]}),_0x1a68e8[_0x4efd00(0x207)][_0x4efd00(0x1e4)][_0x4efd00(0x219)](this[_0x4efd00(0x1ef)]);}[_0x42a7ba(0x223)](){const _0x39a2ff=_0x42a7ba,_0x213e83=this[_0x39a2ff(0x1ed)][_0x39a2ff(0x1ee)][_0x39a2ff(0x216)](_0x39a2ff(0x236));_0x213e83&&this[_0x39a2ff(0x1fb)](_0x213e83,_0x39a2ff(0x1fd),()=>{const _0x518253=_0x39a2ff,_0x3640c8=this[_0x518253(0x1ed)][_0x518253(0x1f8)][_0x518253(0x207)][_0x518253(0x1fc)][_0x518253(0x21d)]();_0x3640c8&&_0x3640c8[_0x518253(0x21b)](_0x518253(0x220))&&this[_0x518253(0x1ed)][_0x518253(0x1fe)][_0x518253(0x1e6)][_0x518253(0x1f4)](_0x518253(0x1f3),()=>{const _0x1ea705=_0x518253;_0x4dd0d7(this[_0x1ea705(0x1ed)],_0x3640c8);});});const _0x63d3e3=this[_0x39a2ff(0x1ed)][_0x39a2ff(0x1ee)][_0x39a2ff(0x216)](_0x39a2ff(0x20b));_0x63d3e3&&this[_0x39a2ff(0x1fb)](_0x63d3e3,_0x39a2ff(0x1fd),()=>{const _0x4f7005=_0x39a2ff,_0x5588f2=this[_0x4f7005(0x1ed)][_0x4f7005(0x1f8)][_0x4f7005(0x207)][_0x4f7005(0x1fc)][_0x4f7005(0x21d)]();_0x5588f2&&_0x5588f2[_0x4f7005(0x21b)](_0x4f7005(0x220))&&this[_0x4f7005(0x1ed)][_0x4f7005(0x1fe)][_0x4f7005(0x1e6)][_0x4f7005(0x1f4)](_0x4f7005(0x1f3),()=>{const _0x54cd7f=_0x4f7005;_0x4dd0d7(this[_0x54cd7f(0x1ed)],_0x5588f2);});});}}function _0x1d8a(){const _0x522478=['downcast','_initConfig','editor','commands','_ctxElement','273080LiTxQa','conversion','schema','render','once','true','_configElement','replaceImageSource','model','uploader-','_initConversion','listenTo','selection','execute','editing','uc-config','_initCtx','7149393ohQjCM','data-uc-image-id','isOfficialPlugin','input[uploadcare-file-input]','isPremiumPlugin','locale','document','ucContextId','href','4759185TFNsWe','uploadcareImageReplace','removeAttribute','elementToAttribute','init','attributeToAttribute','querySelector','imageBlock','join','410415cFSYVn','pluginName','\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','get','uploadcare.pubkey','afterInit','appendChild','requires','getAttribute','PictureEditing','getSelectedElement','2342956JMcGGw','UploadcareEditing','uploadcareImageId','add','6YPANZB','_initImageProcessingIndicator','contentLanguage','cleanupImage','uploadcare.uploader','4320600tyvJUn','fromCharCode','closeMax','28TieRVw','uploadcare','destroy','iconHrefResolver','upcast','uc-upload-ctx-provider','for','remove','_initSchema','configElement','#uc-icon-arrow-down','ctxElement','insertImage','extend','body','isRegistered','view','imageInline','map','906320kjiaqk','config'];_0x1d8a=function(){return _0x522478;};return _0x1d8a();}