@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250619.0 → 0.0.0-nightly-20250620.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/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2c88ff,Command as _0x5d4826}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x37a08f,IconGooglePhotos as _0x410eca,IconGoogleDrive as _0x59251c,IconFacebook as _0x129144,IconDropbox as _0x1d2a7d,IconUploadcareLink as _0x4b94e5,IconUploadcareImageUpload as _0xc9c387,IconError as _0x352e5d,IconUploadcareImageEdit as _0x9dea16}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2b5452,MenuBarMenuListItemButtonView as _0x325206,View as _0x258d69,FocusCycler as _0x2c3c6e,Dialog as _0x48111a,DialogViewPosition as _0x12813e,SpinnerView as _0x12a9ea,IconView as _0x34ba7c,Notification as _0x4d24c3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5f3997,DomEmitterMixin as _0x5000db,global as _0x4bdf66,getAncestors as _0xf4f5f6,ObservableMixin as _0x5482f1,uid as _0x5ad672,createElement as _0x78e887}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xea7249}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x203f72,info as _0xf3189f}from'@uploadcare/upload-client';import*as _0x30c460 from'@uploadcare/file-uploader';var i=function(_0x3e92d1){return _0x3e92d1['Local']='local',_0x3e92d1['URL']='url',_0x3e92d1['Dropbox']='dropbox',_0x3e92d1['GDrive']='gdrive',_0x3e92d1['Facebook']='facebook',_0x3e92d1['GPhotos']='gphotos',_0x3e92d1['OneDrive']='onedrive',_0x3e92d1;}({});function _(_0x49cb10,_0x30a237,_0x4fccac){const t=_0x49cb10['t'],_0x38060b=_0x49cb10['t'];switch(_0x30a237){case i['Local']:return{'text':_0x38060b('Insert'===_0x4fccac?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x38060b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4fccac?_0x38060b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x38060b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4fccac?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4fccac?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4fccac?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4fccac?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4fccac?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x30a237;}}class e extends _0x2c88ff{['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 _0x55c051=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f8823;for(const _0xd1439a in _0x55c051){const _0x5851c2=_0xd1439a,_0x53966f=_0x55c051[_0x5851c2];if('uploadcareLicenseKeyValid'==_0x53966f||'uploadcareLicenseKeyInvalid'==_0x53966f||'uploadcareLicenseKeyExpired'==_0x53966f||'uploadcareLicenseKeyDomainLimit'==_0x53966f||'uploadcareLicenseKeyNotAllowed'==_0x53966f||'uploadcareLicenseKeyEvaluationLimit'==_0x53966f||'uploadcareLicenseKeyTrialLimit'==_0x53966f||'uploadcareLicenseKeyUsageLimit'==_0x53966f){delete _0x55c051[_0x5851c2],_0x1f8823=_0x53966f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1f8823&&_0x55c051['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1f8823&&_0x55c051['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1f8823&&_0x55c051['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1f8823&&_0x55c051['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1f8823&&_0x55c051['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1f8823&&_0x55c051['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1f8823&&_0x55c051['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe341c3}=this,_0x34fb81=_0xe341c3['commands']['get']('uploadcare');if(!_0x34fb81)return;const _0x2d07ba=this['_normalizeConfigSourceList'](_0xe341c3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x59cefe,_0x59cd04)=>{const _0x4b5b01=this['_getIntegrationKey'](_0x59cd04['type']);return _0x59cefe[_0x4b5b01]||(_0x59cefe[_0x4b5b01]=[]),_0x59cefe[_0x4b5b01]['push'](_0x59cd04),_0x59cefe;},{});_0xe341c3['plugins']['has']('ImageInsertUI')&&_0xe341c3['commands']['get']('uploadcare')&&Object['entries'](_0x2d07ba)['forEach'](([_0x24f19f,_0x2cde03])=>{_0xe341c3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x24f19f,'observable':()=>_0x34fb81,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2cde03),'formViewCreator':()=>this['_createDropdownButtons'](_0x2cde03),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2cde03),'override':'assetManager'!==_0x24f19f});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xca4192){const {locale:_0x332fc7}=this['editor'];return _0xca4192['map'](_0x1aa6be=>{const _0x1f2eba=_(_0x332fc7,_0x1aa6be,'Insert');switch(_0x1aa6be){case i['Local']:return{'icon':_0xc9c387,'type':i['Local'],..._0x1f2eba};case i['URL']:return{'icon':_0x4b94e5,'type':i['URL'],..._0x1f2eba};case i['Dropbox']:return{'icon':_0x1d2a7d,'type':i['Dropbox'],..._0x1f2eba};case i['Facebook']:return{'icon':_0x129144,'type':i['Facebook'],..._0x1f2eba};case i['GDrive']:return{'icon':_0x59251c,'type':i['GDrive'],..._0x1f2eba};case i['GPhotos']:return{'icon':_0x410eca,'type':i['GPhotos'],..._0x1f2eba};case i['OneDrive']:return{'icon':_0x37a08f,'type':i['OneDrive'],..._0x1f2eba};}});}['_getIntegrationKey'](_0x257718){switch(_0x257718){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4d8c72,_0x4d65d5){const _0x220a67=this['editor'],_0x5259f9=new _0x4d8c72(_0x220a67['locale']),_0x1c2342=_0x220a67['commands']['get']('uploadcare');return _0x5259f9['bind']('isEnabled')['to'](_0x1c2342),_0x5259f9['on']('execute',()=>{_0x1c2342['execute'](_0x4d65d5);}),_0x5259f9;}['_createToolbarButton'](_0x490047){const {locale:_0x5f119e}=this['editor'],_0x170c26=this['editor']['plugins']['get']('ImageInsertUI'),_0x52388b=_0x490047[0x0],_0x28015c=this['_createButton'](_0x2b5452,_0x52388b['type']);return _0x28015c['icon']=_0x52388b['icon'],_0x28015c['bind']('label')['to'](_0x170c26,'isImageSelected',_0x5ebd22=>_(_0x5f119e,_0x52388b['type'],_0x5ebd22?'Replace':'Insert')['text']),_0x28015c['tooltip']=!0x0,_0x28015c;}['_createDropdownButtons'](_0xe7bbec){const {locale:_0x5c5ff1}=this['editor'],_0x4497fc=this['editor']['plugins']['get']('ImageInsertUI');return _0xe7bbec['map'](_0x12d410=>{const _0x1e51ad=this['_createButton'](_0x2b5452,_0x12d410['type']);return _0x1e51ad['withText']=!0x0,_0x1e51ad['icon']=_0x12d410['icon'],_0x1e51ad['bind']('label')['to'](_0x4497fc,'isImageSelected',_0x56340c=>_(_0x5c5ff1,_0x12d410['type'],_0x56340c?'Replace':'Insert')['text']),_0x1e51ad;});}['_createMenuBarButtons'](_0x1b6881){return _0x1b6881['map'](_0x108014=>{const _0x5937d1=this['_createButton'](_0x325206,_0x108014['type']);return _0x5937d1['icon']=_0x108014['icon'],_0x5937d1['label']=_0x108014['shortText'],_0x5937d1;});}}class F extends _0x258d69{['focusTracker'];['focusCycler'];constructor(_0x57a82c){super(_0x57a82c),this['focusTracker']=new _0x5f3997(),this['focusCycler']=new _0x2c3c6e({'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(_0x38b05b,_0x521594){super(_0x38b05b),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-'+_0x521594}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x101d38,_0x34f102){const _0x408a26=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x471bd8=>_0x471bd8<=_0x34f102)['map'](_0xb2b91=>_0x101d38['replace'](/\/$/,'')+'/-/resize/'+_0xb2b91+'x/\x20'+_0xb2b91+'w');return{'imageFallbackUrl':_0x101d38,'imageSources':[{'srcset':_0x408a26['join'](',\x20'),'sizes':'(max-width:\x20'+_0x34f102+'px)\x20100vw,\x20'+_0x34f102+'px','type':'image/webp'}]};}function C(_0x2e5ee0,_0x450bd4,_0x1ae19d){const _0x3c223f=_0x2e5ee0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3c223f?parseInt(_0x3c223f[0x1],0xa):_0x450bd4,'height':_0x3c223f?parseInt(_0x3c223f[0x2],0xa):_0x1ae19d};}function p(_0x55c500,_0x409325){const _0x34247f=new(_0x5000db())(),_0x14a4a7=_0x55c500['plugins']['get']('ImageUtils'),_0xfdea16=_0x55c500['editing']['mapper']['toViewElement'](_0x409325),_0x1ca880=_0x14a4a7['findViewImgElement'](_0xfdea16),_0x5321a8=_0x55c500['editing']['view']['domConverter']['viewToDom'](_0x1ca880),_0x5c3f8f=_0x409325['getAttribute']('width'),_0x4fbfe5=_0x409325['getAttribute']('height'),_0x2fd7b7='image-processing';_0x55c500['editing']['view']['change'](_0x740695=>{_0x740695['addClass'](_0x2fd7b7,_0xfdea16),_0x740695['setStyle']('aspect-ratio',_0x5c3f8f+'/'+_0x4fbfe5,_0x1ca880);}),_0x34247f['listenTo'](_0x5321a8,'load',()=>{_0x34247f['stopListening'](_0x5321a8,'load'),_0x55c500['editing']['view']['change'](_0x515f33=>{_0x515f33['removeClass'](_0x2fd7b7,_0xfdea16),_0x515f33['removeStyle']('aspect-ratio',_0x1ca880);});});}function G(_0x247342){if(Array['isArray'](_0x247342)){const _0x246649=_0x247342['map'](G);return _0x152666=>_0x246649['some'](_0x3e6eb1=>_0x3e6eb1(_0x152666));}if('origin'==_0x247342){const _0x450472=_0x4bdf66['window']['location']['origin'];return _0x1c0937=>new URL(_0x1c0937,_0x4bdf66['document']['baseURI'])['origin']==_0x450472;}return'function'==typeof _0x247342?_0x247342:_0x247342 instanceof RegExp?_0xc31654=>!(!_0xc31654['match'](_0x247342)&&!_0xc31654['replace'](/^https?:\/\//,'')['match'](_0x247342)):()=>!0x1;}function S(_0xfb6d6d,_0x3bc294){return _0xf4f5f6(_0xfb6d6d['target'])['includes'](_0x3bc294);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5482f1(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3df0b7,_0x4dac73,_0x7a44f8){super(),this['_editor']=_0x3df0b7,this['_editing']=_0x4dac73,this['_dialog']=_0x3df0b7['plugins']['get'](_0x48111a),this['_api']=_0x4dac73['ctxElement']['getAPI'](),this['_type']=_0x7a44f8,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:_0x22c584,model:_0x196aba}=this['_editor'],_0x334840=_0x196aba['document']['selection']['getSelectedElement'](),_0x50dcbb=_0x334840&&(_0x334840['is']('element','imageBlock')||_0x334840['is']('element','imageInline'));this['_formView']=new x(_0x22c584,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xc9c387,'title':_(_0x22c584,this['_type'],_0x50dcbb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x12813e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xf9254a=>!S(_0xf9254a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x30d795}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x454abd=>{const _0x3f7f1e=_0x30d795['length'];for(const _0x4642c2 of _0x30d795){const _0x531054=_0x4642c2===_0x30d795[_0x3f7f1e-0x1],{cdnUrl:_0x23656f,fileInfo:_0x1367a5}=_0x4642c2;if(!_0x23656f||!_0x1367a5)continue;const {width:_0x1b47bd,height:_0x515c24}=_0x1367a5['imageInfo'],_0x5be1ba=C(_0x23656f,_0x1b47bd,_0x515c24),_0x597282=k(_0x23656f,_0x5be1ba['width']),_0x40a00f={'id':_0x1367a5['uuid'],'type':'image','attributes':{'imageDimension':_0x5be1ba,..._0x597282}};this['_insertAsset'](_0x40a00f,_0x531054,_0x454abd);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4a5a3b=>{'idle'===_0x4a5a3b['detail']['status']&&!_0x4a5a3b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x429f9a,_0x4c4e22,_0x3a0d41){const _0x142425=this['_editor']['model']['document']['selection'],_0xb95de1=_0x142425['getSelectedElement'](),_0x5af105=!(!_0xb95de1||!_0xb95de1['is']('element','imageInline'));_0x3a0d41['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x429f9a,_0x5af105),_0x4c4e22||_0x3a0d41['setSelection'](_0x142425['getLastPosition']());}['_insertImage'](_0x195a2e,_0xd4159d){const _0x53d7cd=this['_editor'],{imageDimension:_0x40138d,imageFallbackUrl:_0x5b815e,imageSources:_0x11ad56}=_0x195a2e['attributes'];_0x53d7cd['execute']('insertImage',{'imageType':_0xd4159d?'imageInline':null,'source':{'uploadcareImageId':_0x195a2e['id'],'src':_0x5b815e,'sources':_0x11ad56,..._0x40138d}});}}class w extends _0x5d4826{['_editing'];['_controller']=null;static get['requires'](){return[_0x48111a,o];}constructor(_0x40fdea){super(_0x40fdea),this['_editing']=_0x40fdea['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xf209c3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xf209c3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x57957b,publicKey:_0x1bd41e,signal:_0x2716b7,onProgress:_0x48ecb4}){return _0x203f72(_0x57957b,{'publicKey':_0x1bd41e,'store':'auto','signal':_0x2716b7,'onProgress':_0x48ecb4});}static['getInfo'](_0x12caa1,_0x1f81b3){return _0xf3189f(_0x12caa1,_0x1f81b3);}}class f extends _0x2c88ff{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xea7249,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x80731c=this['editor'];if(!!!_0x80731c['config']['get']('uploadcare'))return;_0x80731c['plugins']['get'](_0xea7249)['createUploadAdapter']=_0xda573=>new A(_0xda573,_0x80731c),_0x80731c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x10817a,{imageElement:_0x7e3cf0,data:_0x7719e7})=>{_0x80731c['model']['change'](_0x2e6982=>{_0x2e6982['setAttribute']('uploadcareImageId',_0x7719e7['uploadcareImageId'],_0x7e3cf0);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x4e1d97,_0x408067){this['loader']=_0x4e1d97,this['editor']=_0x408067,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x16bcaa=this['editor']['config']['get']('uploadcare.pubkey'),_0x25e442=await this['loader']['file'];return j['upload']({'file':_0x25e442,'publicKey':_0x16bcaa,'signal':this['controller']['signal'],'onProgress':_0x9ac584=>{_0x9ac584&&_0x9ac584['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x9ac584['value']);}})['then'](async _0x118bf9=>{const {imageFallbackUrl:_0x5f4859,imageSources:_0x16d84d}=k(_0x118bf9['cdnUrl'],_0x118bf9['imageInfo']['width']);return{'uploadcareImageId':_0x118bf9['uuid'],'default':_0x5f4859,'sources':_0x16d84d};})['catch'](()=>{const _0x5e7ecf=t('Cannot\x20upload\x20file:')+('\x20'+_0x25e442['name']+'.');return Promise['reject'](_0x5e7ecf);});}['abort'](){this['controller']['abort']();}}class o extends _0x2c88ff{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x48111a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x234bd7){super(_0x234bd7),this['ucContextId']=_0x5ad672();}['init'](){const _0x20da17=this['editor'];_0x20da17['commands']['add']('uploadcare',new w(_0x20da17));}['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 _0x2d6f40=_0x4bdf66['document']['querySelector']('input[uploadcare-file-input]');_0x2d6f40&&_0x2d6f40['remove']();}),async function(_0xe756f4){const _0xf3819c=_0x1f3dce([0x38,0x31,0x41,0x74,0x45,0x42,0x58,0x56,0x4a,0x48,0x63,0x76,0x73,0x4d,0x59,0x6b,0x67,0x54,0x39,0x46,0x6f,0x64,0x43,0x50,0x35,0x44,0x4e,0x6c,0x72,0x7a,0x5a,0x51,0x55,0x6e,0x6d,0x33,0x36,0x77,0x6a,0x69,0x32,0x68,0x70,0x30,0x75,0x61,0x47,0x66,0x4f,0x71,0x52,0x78,0x57,0x62,0x34,0x79,0x4b,0x53,0x37,0x65,0x49,0x4c]),_0x80e084=0x2fc52870,_0x3b984f=0x2fc24340^_0x80e084,_0x1ee9ea=window[_0x1f3dce([0x44,0x61,0x74,0x65])][_0x1f3dce([0x6e,0x6f,0x77])](),_0x3627ae=_0xe756f4[_0x1f3dce([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x325c9d=new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x797feb=>{_0x3627ae[_0x1f3dce([0x6f,0x6e,0x63,0x65])](_0x1f3dce([0x72,0x65,0x61,0x64,0x79]),_0x797feb);}),_0x3d0cfd={[_0x1f3dce([0x6b,0x74,0x79])]:_0x1f3dce([0x45,0x43]),[_0x1f3dce([0x75,0x73,0x65])]:_0x1f3dce([0x73,0x69,0x67]),[_0x1f3dce([0x63,0x72,0x76])]:_0x1f3dce([0x50,0x2d,0x32,0x35,0x36]),[_0x1f3dce([0x78])]:_0x1f3dce([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]),[_0x1f3dce([0x79])]:_0x1f3dce([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]),[_0x1f3dce([0x61,0x6c,0x67])]:_0x1f3dce([0x45,0x53,0x32,0x35,0x36])},_0xa888de=_0x3627ae[_0x1f3dce([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f3dce([0x67,0x65,0x74])](_0x1f3dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e4df4(){let _0x71357f,_0x26982e=null,_0x13a901=null;try{if(_0xa888de==_0x1f3dce([0x47,0x50,0x4c]))return _0x1f3dce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x71357f=_0x22bc1a(),!_0x71357f)return _0x1f3dce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x71357f[_0x1f3dce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13a901=_0x254419(_0x71357f[_0x1f3dce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x71357f[_0x1f3dce([0x6a,0x74,0x69])])),await _0x49f40d()?_0xd51a4c()?_0x514e87()?_0x1f3dce([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cb79d()?(_0x71357f[_0x1f3dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f3dce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26982e=_0x106e26(_0x1f3dce([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x71357f[_0x1f3dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f3dce([0x74,0x72,0x69,0x61,0x6c])&&(_0x26982e=_0x106e26(_0x1f3dce([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x27fd49()):_0x1f3dce([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f3dce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f3dce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f3dce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x514e87(){const _0x563567=[_0x1f3dce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f3dce([0x74,0x72,0x69,0x61,0x6c])][_0x1f3dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71357f[_0x1f3dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ee9ea/0x3e8:0xe10*_0x3b984f;return _0x71357f[_0x1f3dce([0x65,0x78,0x70])]<_0x563567;}function _0xd51a4c(){const _0x210789=_0x71357f[_0x1f3dce([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x210789&&(!!_0x210789[_0x1f3dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f3dce([0x2a]))||!!_0x210789[_0x1f3dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f3dce([0x55,0x50,0x4c,0x43])));}function _0x3cb79d(){const _0x3c41ac=_0x71357f[_0x1f3dce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c41ac||0x0==_0x3c41ac[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3bc12f}=new URL(window[_0x1f3dce([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c41ac[_0x1f3dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc12f))return!0x0;const _0x527be1=_0x3bc12f[_0x1f3dce([0x73,0x70,0x6c,0x69,0x74])](_0x1f3dce([0x2e]));return _0x3c41ac[_0x1f3dce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fdc82=>_0x2fdc82[_0x1f3dce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f3dce([0x2a])))[_0x1f3dce([0x6d,0x61,0x70])](_0x1cd6ec=>_0x1cd6ec[_0x1f3dce([0x73,0x70,0x6c,0x69,0x74])](_0x1f3dce([0x2e])))[_0x1f3dce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d8595=>_0x1d8595[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x527be1[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f3dce([0x6d,0x61,0x70])](_0x5dda8c=>Array(_0x527be1[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5dda8c[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f3dce([0x66,0x69,0x6c,0x6c])](_0x5dda8c[0x0]===_0x1f3dce([0x2a])?_0x1f3dce([0x2a]):'')[_0x1f3dce([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5dda8c))[_0x1f3dce([0x73,0x6f,0x6d,0x65])](_0x4f1e36=>_0x527be1[_0x1f3dce([0x65,0x76,0x65,0x72,0x79])]((_0x58eaf6,_0x6756b6)=>_0x4f1e36[_0x6756b6]===_0x58eaf6||_0x4f1e36[_0x6756b6]===_0x1f3dce([0x2a])));}function _0x27fd49(){return _0x26982e&&_0x13a901?new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x399710,_0x24ba73)=>{_0x26982e[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x399710,_0x24ba73),_0x13a901[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x1fd3ed=>{_0x1fd3ed!=_0x1f3dce([0x56,0x61,0x6c,0x69,0x64])&&_0x399710(_0x1fd3ed);},_0x24ba73);}):_0x26982e||_0x13a901||_0x1f3dce([0x56,0x61,0x6c,0x69,0x64]);}}function _0x254419(_0x11b0c8,_0x5feb){return new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1597d9=>{if(_0x123d13())return _0x1597d9(_0x1f3dce([0x56,0x61,0x6c,0x69,0x64]));_0x50799c(),_0x3627ae[_0x1f3dce([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f3dce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x41df4d=!0x1;const _0x338f04=_0x5ad672();function _0x12921c(_0x508c71){return!!_0x508c71&&(typeof _0x508c71===_0x1f3dce([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x508c71===_0x1f3dce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x508c71[_0x1f3dce([0x74,0x68,0x65,0x6e])]===_0x1f3dce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x508c71[_0x1f3dce([0x63,0x61,0x74,0x63,0x68])]===_0x1f3dce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a236f(_0x18aa45){_0x595073(_0x18aa45)[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x238a98=>{if(!_0x238a98||_0x238a98[_0x1f3dce([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f3dce([0x6f,0x6b]))return _0x1f3dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ee024(_0x1a5968(_0x338f04+_0x5feb))!=_0x238a98[_0x1f3dce([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f3dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f3dce([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x4c2325=>(_0x4d9319(),_0x4c2325),()=>{const _0x425bce=_0x406bf1();return null==_0x425bce?(_0x4d9319(),_0x1f3dce([0x56,0x61,0x6c,0x69,0x64])):_0x1f3dce(_0x1ee9ea-_0x425bce>(0xbc9ac70^_0x80e084)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x1597d9)[_0x1f3dce([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1597d9(_0x1f3dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e3055=0x2ff3c6f0^_0x80e084;function _0x4d9319(){const _0x5ec0f4=_0x1f3dce([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ee024(_0x1a5968(_0x11b0c8)),_0x33ea2a=_0xa68cf6(_0x1ee024(window[_0x1f3dce([0x4d,0x61,0x74,0x68])][_0x1f3dce([0x63,0x65,0x69,0x6c])](_0x1ee9ea/_0x4e3055)));window[_0x1f3dce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f3dce([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ec0f4,_0x33ea2a);}function _0x406bf1(){const _0x5328ee=_0x1f3dce([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ee024(_0x1a5968(_0x11b0c8)),_0x5e16aa=window[_0x1f3dce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f3dce([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5328ee);return _0x5e16aa?window[_0x1f3dce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa68cf6(_0x5e16aa),0x10)*_0x4e3055:null;}function _0x595073(_0x3c8354){return new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fc14c,_0x3a1e1c)=>{_0x3c8354[_0x1f3dce([0x74,0x68,0x65,0x6e])](_0x1fc14c,_0x3a1e1c),window[_0x1f3dce([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a1e1c,0x2fc4fcb0^_0x80e084);});}}_0x3627ae[_0x1f3dce([0x6f,0x6e])](_0x1f3dce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bfac3,_0x5b5509)=>{if(_0x5b5509[0x0]!=_0x11b0c8)return _0x1597d9(_0x1f3dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b5509[0x1]={..._0x5b5509[0x1],[_0x1f3dce([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x338f04};},{[_0x1f3dce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f3dce([0x68,0x69,0x67,0x68])}),_0x3627ae[_0x1f3dce([0x6f,0x6e])](_0x1f3dce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x406e0a=>{_0x12921c(_0x406e0a[_0x1f3dce([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x41df4d=!0x0,_0x4a236f(_0x406e0a[_0x1f3dce([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f3dce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f3dce([0x6c,0x6f,0x77])}),_0x325c9d[_0x1f3dce([0x74,0x68,0x65,0x6e])](()=>{_0x41df4d||_0x1597d9(_0x1f3dce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x123d13(){return _0x3627ae[_0x1f3dce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f3dce([0x76,0x69,0x65,0x77])][_0x1f3dce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f3dce([0x61,0x75,0x74,0x6f]);}function _0x50799c(){_0x3627ae[_0x1f3dce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f3dce([0x76,0x69,0x65,0x77])][_0x1f3dce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f3dce([0x61,0x75,0x74,0x6f]);}}function _0x106e26(_0x297c73){const _0x1d2606=[new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ae3af=>setTimeout(_0x3ae3af,0x2fcc16bc^_0x80e084)),_0x325c9d[_0x1f3dce([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cfcd8=>{let _0x309d72=0x0;_0x3627ae[_0x1f3dce([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f3dce([0x6f,0x6e])](_0x1f3dce([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x394ecc,_0x68abb8)=>{_0x68abb8[0x0][_0x1f3dce([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x309d72++,_0x309d72==(0x2fc52988^_0x80e084)&&(_0x2cfcd8(),_0x394ecc[_0x1f3dce([0x6f,0x66,0x66])]());});}))];return window[_0x1f3dce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f3dce([0x72,0x61,0x63,0x65])](_0x1d2606)[_0x1f3dce([0x74,0x68,0x65,0x6e])](()=>_0x297c73);}async function _0x343c8e(){await _0x325c9d,_0x3627ae[_0x1f3dce([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f3dce([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5bcfb7,_0x3627ae[_0x1f3dce([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f3dce([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5bcfb7,_0x3627ae[_0x1f3dce([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f3dce([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb53639(_0x2be4c9){const _0x228a09=_0x1862ce();_0x3627ae[_0x228a09]=_0x1f3dce([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2be4c9,_0x2be4c9!=_0x1f3dce([0x56,0x61,0x6c,0x69,0x64])&&_0x343c8e();}function _0x1862ce(){const _0x34b74e=window[_0x1f3dce([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f3dce([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f3dce([0x6e,0x6f,0x77])]())[_0x1f3dce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f3dce([0x2e]),'');let _0x16bdf1=_0x1f3dce([0x41]);for(let _0xcd9b63=0x0;_0xcd9b63<_0x34b74e[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcd9b63+=0x2){let _0x94c516=window[_0x1f3dce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34b74e[_0x1f3dce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcd9b63,_0xcd9b63+0x2));_0x94c516>=_0xf3819c[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x94c516-=_0xf3819c[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16bdf1+=_0xf3819c[_0x94c516];}return _0x16bdf1;}function _0x22bc1a(){const _0x3f411d=_0xa888de[_0x1f3dce([0x73,0x70,0x6c,0x69,0x74])](_0x1f3dce([0x2e]));if(0x3!=_0x3f411d[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5dcaba(_0x3f411d[0x1]);function _0x5dcaba(_0xd4861f){const _0x60e706=_0x3b44b6(_0xd4861f);return _0x60e706&&_0x3f18a9()?_0x60e706:null;function _0x3f18a9(){const _0x7280e7=_0x60e706[_0x1f3dce([0x6a,0x74,0x69])],_0x5846c8=window[_0x1f3dce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7280e7[_0x1f3dce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7280e7[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a7b2d={..._0x60e706,[_0x1f3dce([0x6a,0x74,0x69])]:_0x7280e7[_0x1f3dce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7280e7[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a7b2d[_0x1f3dce([0x76,0x63])],_0x1a5968(_0x1a7b2d)==_0x5846c8;}}}async function _0x49f40d(){let _0x3d0379=!0x0;try{const _0x313785=_0xa888de[_0x1f3dce([0x73,0x70,0x6c,0x69,0x74])](_0x1f3dce([0x2e])),[_0x55b8f2,_0x39130a,_0x518404]=_0x313785;return _0x16644e(_0x55b8f2),await _0x291042(_0x55b8f2,_0x39130a,_0x518404),_0x3d0379;}catch{return!0x1;}function _0x16644e(_0x42989b){const _0x4b8055=_0x3b44b6(_0x42989b);_0x4b8055&&_0x4b8055[_0x1f3dce([0x61,0x6c,0x67])]==_0x1f3dce([0x45,0x53,0x32,0x35,0x36])||(_0x3d0379=!0x1);}async function _0x291042(_0x3d54d8,_0x18179d,_0x1a35f1){const _0x5f139d=window[_0x1f3dce([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f3dce([0x66,0x72,0x6f,0x6d])](_0x436502(_0x1a35f1),_0x3c321e=>_0x3c321e[_0x1f3dce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x442667=new window[(_0x1f3dce([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f3dce([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d54d8+_0x1f3dce([0x2e])+_0x18179d),_0x3a7ec4=window[_0x1f3dce([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f3dce([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a7ec4)return;const _0x1a692d=await _0x3a7ec4[_0x1f3dce([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f3dce([0x6a,0x77,0x6b]),_0x3d0cfd,{[_0x1f3dce([0x6e,0x61,0x6d,0x65])]:_0x1f3dce([0x45,0x43,0x44,0x53,0x41]),[_0x1f3dce([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f3dce([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f3dce([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a7ec4[_0x1f3dce([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f3dce([0x6e,0x61,0x6d,0x65])]:_0x1f3dce([0x45,0x43,0x44,0x53,0x41]),[_0x1f3dce([0x68,0x61,0x73,0x68])]:{[_0x1f3dce([0x6e,0x61,0x6d,0x65])]:_0x1f3dce([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a692d,_0x5f139d,_0x442667)||(_0x3d0379=!0x1);}}function _0x3b44b6(_0x2a0ea7){return _0x2a0ea7[_0x1f3dce([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f3dce([0x65,0x79]))?JSON[_0x1f3dce([0x70,0x61,0x72,0x73,0x65])](_0x436502(_0x2a0ea7)):null;}function _0x436502(_0x39dcb3){return window[_0x1f3dce([0x61,0x74,0x6f,0x62])](_0x39dcb3[_0x1f3dce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f3dce([0x2b]))[_0x1f3dce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f3dce([0x2f])));}function _0x1a5968(_0xf2d9fd){let _0x2b0140=0x1505;function _0x30fdad(_0x447371){for(let _0x56eece=0x0;_0x56eece<_0x447371[_0x1f3dce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56eece++){const _0x57c63e=_0x447371[_0x1f3dce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56eece);_0x2b0140=(_0x2b0140<<0x5)+_0x2b0140+_0x57c63e,_0x2b0140&=_0x2b0140;}}function _0x5a0933(_0x29912e){Array[_0x1f3dce([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29912e)?_0x29912e[_0x1f3dce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a0933):_0x29912e&&typeof _0x29912e==_0x1f3dce([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f3dce([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29912e)[_0x1f3dce([0x73,0x6f,0x72,0x74])]()[_0x1f3dce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x308190,_0x14cd8c])=>{_0x30fdad(_0x308190),_0x5a0933(_0x14cd8c);}):_0x30fdad(window[_0x1f3dce([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29912e));}return _0x5a0933(_0xf2d9fd),_0x2b0140>>>0x0;}function _0x1ee024(_0x1d1697){return _0x1d1697[_0x1f3dce([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f3dce([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f3dce([0x30]));}function _0xa68cf6(_0x333ea7){return _0x333ea7[_0x1f3dce([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f3dce([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f3dce([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bcfb7(){}function _0x1f3dce(_0x5904f7){return _0x5904f7['map'](_0x4ad573=>String['fromCharCode'](_0x4ad573))['join']('');}_0xb53639(await _0x3e4df4());}(this);}['_initSchema'](){const _0x37aebd=this['editor']['model']['schema'];_0x37aebd['isRegistered']('imageBlock')&&_0x37aebd['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x37aebd['isRegistered']('imageInline')&&_0x37aebd['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1842e0=this['editor'];_0x1842e0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1842e0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2b2bcd=>_0x2b2bcd['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1c8fe5=_0x1842e0['commands']['get']('replaceImageSource');_0x1c8fe5&&this['listenTo'](_0x1c8fe5,'cleanupImage',(_0xf651e2,[_0x11beaf,_0x163ab8])=>{_0x11beaf['removeAttribute']('uploadcareImageId',_0x163ab8);});}['_initConfig'](){const _0x4fa218=this['editor']['config']['get']('uploadcare.uploader')||{},_0xf1f7ad=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x78e887(_0x4bdf66['document'],'uc-config',{..._0x4fa218,'pubkey':_0xf1f7ad,'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']=_0x272791=>{if('closeMax'==_0x272791)return'#uc-icon-arrow-down';},_0x4bdf66['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x78e887(_0x4bdf66['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4bdf66['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3619e7=this['editor']['commands']['get']('insertImage');_0x3619e7&&this['listenTo'](_0x3619e7,'execute',()=>{const _0x49df8d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49df8d&&_0x49df8d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x49df8d);});});const _0x20fc5c=this['editor']['commands']['get']('uploadcareImageReplace');_0x20fc5c&&this['listenTo'](_0x20fc5c,'execute',()=>{const _0x38e5b6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x38e5b6&&_0x38e5b6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x38e5b6);});});}}class tt extends _0x2c88ff{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x416071){super(_0x416071),_0x416071['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x30c460['defineComponents'](_0x30c460);}}class ii extends _0x258d69{constructor(_0x5a864c){super(_0x5a864c);const t=_0x5a864c['t'],_0x50e0f3=this['bindTemplate'],_0x45b863=new _0x12a9ea();_0x45b863['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':[_0x45b863,{'text':_0x50e0f3['to']('imageUploadProgress',_0x327583=>t('Loading\x20image...')+'\x20('+(_0x327583||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 _0x258d69{constructor(_0x5b0f6d){super(_0x5b0f6d);const t=_0x5b0f6d['t'];this['set']('errorType',null);const _0x25fe25=new _0x2b5452(_0x5b0f6d);_0x25fe25['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x25fe25['withText']=!0x0,_0x25fe25['class']='ck-button-action',_0x25fe25['on']('execute',()=>{this['fire']('retry');}),_0x25fe25['bind']('isVisible')['to'](this,'errorType',_0x56cadf=>'NotFound'!==_0x56cadf);const _0x3e2bf2=new _0x34ba7c();_0x3e2bf2['content']=_0x352e5d,_0x3e2bf2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4f00a4=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':[_0x3e2bf2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4f00a4['to']('errorType',_0x1fa22f=>t('NotFound'!==_0x1fa22f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x25fe25]},{'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 _0x258d69{constructor(_0x1f6e70,_0x323b21){super(_0x1f6e70);const _0x1ea940=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x323b21,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1ea940['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x31bba4,_0x6d41b6,_0x3f92d6){super(_0x31bba4),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x31bba4),this['_errorView']=new ti(_0x31bba4),this['_editingView']=new ei(_0x31bba4,_0x3f92d6),this['_focusableView']=new _0x258d69(_0x31bba4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x6d41b6),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'],_0x11ed1b=>{this['_addUploadcareImageEditorListeners'](_0x11ed1b);});}),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'](_0x2f1d0b,_0x34a416){const _0x27af11='uc-cloud-image-editor',_0x143422=_0x2f1d0b['querySelector'](_0x27af11);if(_0x143422)return _0x34a416(_0x143422);const _0x2e610d=new MutationObserver(_0x4975ff=>{const _0xbfab26=_0x4975ff['filter'](_0xa6d2f2=>_0xa6d2f2['target']===_0x2f1d0b&&_0xa6d2f2['addedNodes']['length']>0x0&&_0xa6d2f2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x27af11);_0xbfab26['length']&&(_0x2e610d['disconnect'](),_0x34a416(_0xbfab26[0x0]['addedNodes'][0x0]));});_0x2e610d['observe'](_0x2f1d0b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x58da77){_0x58da77['addEventListener']('apply',_0x840c51=>{this['fire']('apply',{'imageSrc':_0x840c51['detail']['cdnUrl']});}),_0x58da77['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5482f1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4ff08f,_0x133368,_0xca5446){super(),this['_editor']=_0x4ff08f,this['_dialog']=_0x133368,this['_imageElement']=_0xca5446,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 _0x1b8b1a=this['_imageElement'],_0x314d48=_0x1b8b1a['getAttribute']('uploadcareImageId'),_0x55b98b=_0x1b8b1a['getAttribute']('src');if(_0x314d48)await this['_loadImageInfo'](_0x314d48,_0x55b98b);else{if(this['_imageCache']['has'](_0x55b98b)){const _0x527a22=this['_imageCache']['get'](_0x55b98b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x527a22['url'],this['imageDimension']=_0x527a22['dimension'],this['imageId']=_0x527a22['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2563bc}=this['_editor'],t=_0x2563bc['t'],_0x5a5907=new X(_0x2563bc,this['imageStatus'],this['_attributes']);_0x5a5907['bind']('status')['to'](this,'imageStatus'),_0x5a5907['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5a5907['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5a5907['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5a5907,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x9dea16,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5a5907,'position':_0x12813e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5a5907['focus']();},'onHide':()=>{_0x5a5907['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1329af=>!S(_0x1329af,_0x5a5907['element'])}});}['_loadImageInfo'](_0x32463d,_0x288726){return j['getInfo'](_0x32463d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3dc01a=>{const {width:_0x1b1862,height:_0x3d57b5}=_0x3dc01a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x288726,this['imageDimension']={'width':_0x1b1862,'height':_0x3d57b5},this['imageId']=_0x32463d;})['catch'](_0x4d681d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d681d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1acd65,_0x2d5425){return this['_getImageAsFile'](_0x1acd65)['then'](_0x42e9d4=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2d5425['signal'],'file':_0x42e9d4,'onProgress':_0x46b602=>{_0x46b602&&_0x46b602['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x46b602['value']));}}))['then'](_0x582de6=>{const {width:_0x21c9ed,height:_0x5e2c25}=_0x582de6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x582de6['cdnUrl'],this['imageDimension']={'width':_0x21c9ed,'height':_0x5e2c25},this['imageId']=_0x582de6['uuid'],this['imageUploadProgress']=null;const _0x818f99=_0x1acd65['getAttribute']('src');this['_imageCache']['set'](_0x818f99,{'id':_0x582de6['uuid'],'url':_0x582de6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x30ac1a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x30ac1a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3f75b7,_0x38ccb7){_0x3f75b7['on']('apply',(_0x21e94e,_0x108169)=>{this['_replaceImage'](_0x38ccb7,_0x108169['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3f75b7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3f75b7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x154e66,_0x105195,_0x38004d){const _0x573bd9=this['_editor'],{width:_0x4e6e6f,height:_0x25c55d}=C(_0x105195,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2f292b,imageSources:_0x2f3e8d}=k(_0x105195,_0x4e6e6f);_0x573bd9['model']['change'](_0x44fb5b=>{if('$graveyard'===_0x154e66['root']['rootName']){_0x573bd9['execute']('insertImage',{'imageType':_0x154e66['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x154e66['getAttributes']()),'uploadcareImageId':_0x38004d,'src':_0x2f292b,'sources':_0x2f3e8d,'width':_0x4e6e6f,'height':_0x25c55d}});const _0x9b60da=_0x154e66['getChildren']();_0x154e66=_0x573bd9['model']['document']['selection']['getSelectedElement']();for(const _0xae6da1 of _0x9b60da)_0x44fb5b['append'](_0x44fb5b['cloneElement'](_0xae6da1),_0x154e66);}else _0x44fb5b['setSelection'](_0x154e66,'on'),_0x573bd9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x154e66['getAttributes']()),'uploadcareImageId':_0x38004d,'src':_0x2f292b,'sources':_0x2f3e8d,'width':_0x4e6e6f,'height':_0x25c55d},_0x154e66);_0x44fb5b['setSelection'](_0x154e66,'on');});}async['_getImageAsFile'](_0x58c75f){const _0x333231=_0x4bdf66['window'],_0x1f1b36=_0x4bdf66['document']['location']['href'],_0x2aa39b=new _0x333231['URL'](_0x58c75f['getAttribute']('src'),_0x1f1b36);if('data:'===_0x2aa39b['protocol']){const _0x46f1f9=_0x2aa39b['href']['split'](','),_0x4a9399=_0x46f1f9[0x0]['match'](/:(.*?);/)[0x1],_0x4cc36a=_0x4a9399['split']('/')[0x1],_0x24805c=_0x333231['atob'](_0x46f1f9[_0x46f1f9['length']-0x1]);let _0x4f7ea7=_0x24805c['length'];const _0x51203a=new _0x333231['Uint8Array'](_0x4f7ea7);for(;_0x4f7ea7--;)_0x51203a[_0x4f7ea7]=_0x24805c['charCodeAt'](_0x4f7ea7);return new _0x333231['File']([_0x51203a],'image.'+_0x4cc36a,{'type':_0x4a9399});}const _0x4c5751=_0x2aa39b['href']['split']('/'),_0x14b64a=_0x4c5751[_0x4c5751['length']-0x1],_0x1d009b=_0x14b64a['split']('.')[0x1];return _0x333231['fetch'](_0x2aa39b['href'])['then'](_0x197d16=>_0x197d16['clone']()['blob']())['then'](_0x332eac=>new _0x333231['File']([_0x332eac],_0x14b64a,{'type':'image/'+_0x1d009b}));}}class O extends _0x5d4826{['imageEditController'];static get['requires'](){return[_0x48111a];}['_isEditable'];constructor(_0x3a56b8){super(_0x3a56b8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3ba4d3){const _0x1458d7=G(_0x3ba4d3);return _0x11b25d=>!(!_0x11b25d||!_0x11b25d['is']('element','imageBlock')&&!_0x11b25d['is']('element','imageInline'))&&(!!_0x11b25d['hasAttribute']('uploadcareImageId')||!!_0x11b25d['hasAttribute']('src')&&_0x1458d7(_0x11b25d['getAttribute']('src')));}(_0x3a56b8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xe7e696=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xe7e696);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x49a594=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49a594&&(_0x49a594['is']('element','imageBlock')||_0x49a594['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x48111a),_0x49a594),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x5d4826{['refresh'](){const _0x540267=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x540267&&(_0x540267['is']('element','imageBlock')||_0x540267['is']('element','imageInline')));}['execute'](_0x4fef36){const _0x511013=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5b58ca=>{_0x5b58ca['setAttributes'](_0x4fef36,_0x511013),_0x5b58ca['removeAttribute']('srcset',_0x511013),_0x5b58ca['removeAttribute']('sizes',_0x511013);});}}class m extends _0x2c88ff{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4d24c3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2400df}=this;_0x2400df['commands']['add']('uploadcareImageEdit',new O(_0x2400df)),_0x2400df['commands']['add']('uploadcareImageReplace',new R(_0x2400df));}}class g extends _0x2c88ff{['_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 _0x43a634=this['editor'];_0x43a634['ui']['componentFactory']['add']('uploadcareImageEdit',_0x73a36b=>{const _0x393d28=_0x43a634['commands']['get']('uploadcareImageEdit'),_0x3f057b=new _0x2b5452(_0x73a36b),t=_0x73a36b['t'];return _0x3f057b['set']({'icon':_0x9dea16,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3f057b['bind']('isEnabled')['to'](_0x393d28),_0x3f057b['bind']('isOn')['to'](_0x393d28,'isActive'),this['listenTo'](_0x3f057b,'execute',()=>{_0x43a634['execute']('uploadcareImageEdit'),_0x43a634['editing']['view']['focus']();}),_0x3f057b;}),this['_initConfig']();}['_initConfig'](){const _0x4d0504=_0x78e887(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d0504),this['listenTo'](this['editor'],'destroy',()=>{_0x4d0504['remove']();});}}class et extends _0x2c88ff{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,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x18952f,Command as _0x38b82b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x58dc0d,IconGooglePhotos as _0x3df652,IconGoogleDrive as _0x133faf,IconFacebook as _0x684e5f,IconDropbox as _0x25314c,IconUploadcareLink as _0x56c9ce,IconUploadcareImageUpload as _0x2e8149,IconError as _0x44ace3,IconUploadcareImageEdit as _0x3333a3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21dbfd,MenuBarMenuListItemButtonView as _0x49dc54,View as _0x636533,FocusCycler as _0x4e40ac,Dialog as _0x187092,DialogViewPosition as _0x189a1d,SpinnerView as _0x77302f,IconView as _0x450025,Notification as _0x46bd46}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3a08c9,DomEmitterMixin as _0x58ef83,global as _0x9ab865,getAncestors as _0x55d6f2,ObservableMixin as _0x4a1c60,uid as _0x3227e0,createElement as _0x211b53}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x374520}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x17bf1e,info as _0x8443a4}from'@uploadcare/upload-client';import*as _0x59180e from'@uploadcare/file-uploader';var i=function(_0x1fb08a){return _0x1fb08a['Local']='local',_0x1fb08a['URL']='url',_0x1fb08a['Dropbox']='dropbox',_0x1fb08a['GDrive']='gdrive',_0x1fb08a['Facebook']='facebook',_0x1fb08a['GPhotos']='gphotos',_0x1fb08a['OneDrive']='onedrive',_0x1fb08a;}({});function _(_0x5040e8,_0x2362ed,_0x427a22){const t=_0x5040e8['t'],_0x47263e=_0x5040e8['t'];switch(_0x2362ed){case i['Local']:return{'text':_0x47263e('Insert'===_0x427a22?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x47263e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x427a22?_0x47263e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x47263e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x427a22?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x427a22?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x427a22?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x427a22?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x427a22?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2362ed;}}class e extends _0x18952f{['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 _0x51e721=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2d609b;for(const _0x136f46 in _0x51e721){const _0x43c674=_0x136f46,_0x2941f6=_0x51e721[_0x43c674];if('uploadcareLicenseKeyValid'==_0x2941f6||'uploadcareLicenseKeyInvalid'==_0x2941f6||'uploadcareLicenseKeyExpired'==_0x2941f6||'uploadcareLicenseKeyDomainLimit'==_0x2941f6||'uploadcareLicenseKeyNotAllowed'==_0x2941f6||'uploadcareLicenseKeyEvaluationLimit'==_0x2941f6||'uploadcareLicenseKeyTrialLimit'==_0x2941f6||'uploadcareLicenseKeyUsageLimit'==_0x2941f6){delete _0x51e721[_0x43c674],_0x2d609b=_0x2941f6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2d609b&&_0x51e721['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2d609b&&_0x51e721['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2d609b&&_0x51e721['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2d609b&&_0x51e721['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2d609b&&_0x51e721['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2d609b&&_0x51e721['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2d609b&&_0x51e721['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5126d5}=this,_0x2832c9=_0x5126d5['commands']['get']('uploadcare');if(!_0x2832c9)return;const _0x180448=this['_normalizeConfigSourceList'](_0x5126d5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x569161,_0x38de82)=>{const _0x1619f6=this['_getIntegrationKey'](_0x38de82['type']);return _0x569161[_0x1619f6]||(_0x569161[_0x1619f6]=[]),_0x569161[_0x1619f6]['push'](_0x38de82),_0x569161;},{});_0x5126d5['plugins']['has']('ImageInsertUI')&&_0x5126d5['commands']['get']('uploadcare')&&Object['entries'](_0x180448)['forEach'](([_0x3c4ba5,_0x3bd8c7])=>{_0x5126d5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3c4ba5,'observable':()=>_0x2832c9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3bd8c7),'formViewCreator':()=>this['_createDropdownButtons'](_0x3bd8c7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3bd8c7),'override':'assetManager'!==_0x3c4ba5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x33b91f){const {locale:_0x1d5cb4}=this['editor'];return _0x33b91f['map'](_0xeadc85=>{const _0x5968dd=_(_0x1d5cb4,_0xeadc85,'Insert');switch(_0xeadc85){case i['Local']:return{'icon':_0x2e8149,'type':i['Local'],..._0x5968dd};case i['URL']:return{'icon':_0x56c9ce,'type':i['URL'],..._0x5968dd};case i['Dropbox']:return{'icon':_0x25314c,'type':i['Dropbox'],..._0x5968dd};case i['Facebook']:return{'icon':_0x684e5f,'type':i['Facebook'],..._0x5968dd};case i['GDrive']:return{'icon':_0x133faf,'type':i['GDrive'],..._0x5968dd};case i['GPhotos']:return{'icon':_0x3df652,'type':i['GPhotos'],..._0x5968dd};case i['OneDrive']:return{'icon':_0x58dc0d,'type':i['OneDrive'],..._0x5968dd};}});}['_getIntegrationKey'](_0x33a07e){switch(_0x33a07e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3af319,_0x40474b){const _0x362f64=this['editor'],_0x219aec=new _0x3af319(_0x362f64['locale']),_0x4335a1=_0x362f64['commands']['get']('uploadcare');return _0x219aec['bind']('isEnabled')['to'](_0x4335a1),_0x219aec['on']('execute',()=>{_0x4335a1['execute'](_0x40474b);}),_0x219aec;}['_createToolbarButton'](_0x2756ce){const {locale:_0x3141a3}=this['editor'],_0xef2d27=this['editor']['plugins']['get']('ImageInsertUI'),_0x2a315a=_0x2756ce[0x0],_0x1b9de2=this['_createButton'](_0x21dbfd,_0x2a315a['type']);return _0x1b9de2['icon']=_0x2a315a['icon'],_0x1b9de2['bind']('label')['to'](_0xef2d27,'isImageSelected',_0xdd58a1=>_(_0x3141a3,_0x2a315a['type'],_0xdd58a1?'Replace':'Insert')['text']),_0x1b9de2['tooltip']=!0x0,_0x1b9de2;}['_createDropdownButtons'](_0x43ad02){const {locale:_0x2f963b}=this['editor'],_0x2a9864=this['editor']['plugins']['get']('ImageInsertUI');return _0x43ad02['map'](_0x4ddb63=>{const _0x3bd7de=this['_createButton'](_0x21dbfd,_0x4ddb63['type']);return _0x3bd7de['withText']=!0x0,_0x3bd7de['icon']=_0x4ddb63['icon'],_0x3bd7de['bind']('label')['to'](_0x2a9864,'isImageSelected',_0x4bead5=>_(_0x2f963b,_0x4ddb63['type'],_0x4bead5?'Replace':'Insert')['text']),_0x3bd7de;});}['_createMenuBarButtons'](_0x301ebc){return _0x301ebc['map'](_0x15464a=>{const _0x2154a3=this['_createButton'](_0x49dc54,_0x15464a['type']);return _0x2154a3['icon']=_0x15464a['icon'],_0x2154a3['label']=_0x15464a['shortText'],_0x2154a3;});}}class F extends _0x636533{['focusTracker'];['focusCycler'];constructor(_0x2e0e84){super(_0x2e0e84),this['focusTracker']=new _0x3a08c9(),this['focusCycler']=new _0x4e40ac({'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(_0x4b1d8a,_0x5bfa18){super(_0x4b1d8a),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-'+_0x5bfa18}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x39f506,_0x474a93){const _0x2d155f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x115a2a=>_0x115a2a<=_0x474a93)['map'](_0x42a6c4=>_0x39f506['replace'](/\/$/,'')+'/-/resize/'+_0x42a6c4+'x/\x20'+_0x42a6c4+'w');return{'imageFallbackUrl':_0x39f506,'imageSources':[{'srcset':_0x2d155f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x474a93+'px)\x20100vw,\x20'+_0x474a93+'px','type':'image/webp'}]};}function C(_0x1afb04,_0x1d0231,_0x15ef05){const _0x2fb4e3=_0x1afb04['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2fb4e3?parseInt(_0x2fb4e3[0x1],0xa):_0x1d0231,'height':_0x2fb4e3?parseInt(_0x2fb4e3[0x2],0xa):_0x15ef05};}function p(_0x1769cd,_0x1e2d10){const _0x294a1e=new(_0x58ef83())(),_0x174c19=_0x1769cd['plugins']['get']('ImageUtils'),_0xe00582=_0x1769cd['editing']['mapper']['toViewElement'](_0x1e2d10),_0x26522d=_0x174c19['findViewImgElement'](_0xe00582),_0x51b592=_0x1769cd['editing']['view']['domConverter']['viewToDom'](_0x26522d),_0x1bd502=_0x1e2d10['getAttribute']('width'),_0x54e101=_0x1e2d10['getAttribute']('height'),_0x300d42='image-processing';_0x1769cd['editing']['view']['change'](_0x2a23c1=>{_0x2a23c1['addClass'](_0x300d42,_0xe00582),_0x2a23c1['setStyle']('aspect-ratio',_0x1bd502+'/'+_0x54e101,_0x26522d);}),_0x294a1e['listenTo'](_0x51b592,'load',()=>{_0x294a1e['stopListening'](_0x51b592,'load'),_0x1769cd['editing']['view']['change'](_0x43639d=>{_0x43639d['removeClass'](_0x300d42,_0xe00582),_0x43639d['removeStyle']('aspect-ratio',_0x26522d);});});}function G(_0xb915de){if(Array['isArray'](_0xb915de)){const _0x1ec771=_0xb915de['map'](G);return _0x15d4d6=>_0x1ec771['some'](_0x185e16=>_0x185e16(_0x15d4d6));}if('origin'==_0xb915de){const _0x9ecc6e=_0x9ab865['window']['location']['origin'];return _0x321009=>new URL(_0x321009,_0x9ab865['document']['baseURI'])['origin']==_0x9ecc6e;}return'function'==typeof _0xb915de?_0xb915de:_0xb915de instanceof RegExp?_0x3efaf5=>!(!_0x3efaf5['match'](_0xb915de)&&!_0x3efaf5['replace'](/^https?:\/\//,'')['match'](_0xb915de)):()=>!0x1;}function S(_0x5d0d9d,_0x329fcd){return _0x55d6f2(_0x5d0d9d['target'])['includes'](_0x329fcd);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4a1c60(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x252170,_0x4c65d8,_0x2c3261){super(),this['_editor']=_0x252170,this['_editing']=_0x4c65d8,this['_dialog']=_0x252170['plugins']['get'](_0x187092),this['_api']=_0x4c65d8['ctxElement']['getAPI'](),this['_type']=_0x2c3261,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:_0x18958f,model:_0x591b3e}=this['_editor'],_0x4ec3aa=_0x591b3e['document']['selection']['getSelectedElement'](),_0x3559e1=_0x4ec3aa&&(_0x4ec3aa['is']('element','imageBlock')||_0x4ec3aa['is']('element','imageInline'));this['_formView']=new x(_0x18958f,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2e8149,'title':_(_0x18958f,this['_type'],_0x3559e1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x189a1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2457a5=>!S(_0x2457a5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4f7c13}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4fa65f=>{const _0x20448d=_0x4f7c13['length'];for(const _0x49220a of _0x4f7c13){const _0x353542=_0x49220a===_0x4f7c13[_0x20448d-0x1],{cdnUrl:_0x32b52e,fileInfo:_0x4392d3}=_0x49220a;if(!_0x32b52e||!_0x4392d3)continue;const {width:_0x4ad3e6,height:_0x5ab400}=_0x4392d3['imageInfo'],_0x3d7417=C(_0x32b52e,_0x4ad3e6,_0x5ab400),_0x4d7ac3=k(_0x32b52e,_0x3d7417['width']),_0x17f58b={'id':_0x4392d3['uuid'],'type':'image','attributes':{'imageDimension':_0x3d7417,..._0x4d7ac3}};this['_insertAsset'](_0x17f58b,_0x353542,_0x4fa65f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x563c02=>{'idle'===_0x563c02['detail']['status']&&!_0x563c02['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xcc2069,_0x30ff90,_0x52bd5b){const _0x23fe5b=this['_editor']['model']['document']['selection'],_0x224b5c=_0x23fe5b['getSelectedElement'](),_0x345e1b=!(!_0x224b5c||!_0x224b5c['is']('element','imageInline'));_0x52bd5b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xcc2069,_0x345e1b),_0x30ff90||_0x52bd5b['setSelection'](_0x23fe5b['getLastPosition']());}['_insertImage'](_0x4eb279,_0x2c472d){const _0x599fcc=this['_editor'],{imageDimension:_0x1b98b2,imageFallbackUrl:_0x2c206c,imageSources:_0x55b22d}=_0x4eb279['attributes'];_0x599fcc['execute']('insertImage',{'imageType':_0x2c472d?'imageInline':null,'source':{'uploadcareImageId':_0x4eb279['id'],'src':_0x2c206c,'sources':_0x55b22d,..._0x1b98b2}});}}class w extends _0x38b82b{['_editing'];['_controller']=null;static get['requires'](){return[_0x187092,o];}constructor(_0x47e541){super(_0x47e541),this['_editing']=_0x47e541['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x32dab2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x32dab2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x41ebcd,publicKey:_0x5a53c0,signal:_0x4674e8,onProgress:_0x10664b}){return _0x17bf1e(_0x41ebcd,{'publicKey':_0x5a53c0,'store':'auto','signal':_0x4674e8,'onProgress':_0x10664b});}static['getInfo'](_0xa20712,_0x43c90f){return _0x8443a4(_0xa20712,_0x43c90f);}}class f extends _0x18952f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x374520,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x361a16=this['editor'];if(!!!_0x361a16['config']['get']('uploadcare'))return;_0x361a16['plugins']['get'](_0x374520)['createUploadAdapter']=_0x4ac13f=>new A(_0x4ac13f,_0x361a16),_0x361a16['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3c5df5,{imageElement:_0x51f28d,data:_0x53b14b})=>{_0x361a16['model']['change'](_0x591e75=>{_0x591e75['setAttribute']('uploadcareImageId',_0x53b14b['uploadcareImageId'],_0x51f28d);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x22df9c,_0xd897ab){this['loader']=_0x22df9c,this['editor']=_0xd897ab,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x23957e=this['editor']['config']['get']('uploadcare.pubkey'),_0x1a6c61=await this['loader']['file'];return j['upload']({'file':_0x1a6c61,'publicKey':_0x23957e,'signal':this['controller']['signal'],'onProgress':_0x30c258=>{_0x30c258&&_0x30c258['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x30c258['value']);}})['then'](async _0x28a68b=>{const {imageFallbackUrl:_0x27e7f2,imageSources:_0x38966f}=k(_0x28a68b['cdnUrl'],_0x28a68b['imageInfo']['width']);return{'uploadcareImageId':_0x28a68b['uuid'],'default':_0x27e7f2,'sources':_0x38966f};})['catch'](()=>{const _0x2c7474=t('Cannot\x20upload\x20file:')+('\x20'+_0x1a6c61['name']+'.');return Promise['reject'](_0x2c7474);});}['abort'](){this['controller']['abort']();}}class o extends _0x18952f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x187092];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x291b3a){super(_0x291b3a),this['ucContextId']=_0x3227e0();}['init'](){const _0x4e4adf=this['editor'];_0x4e4adf['commands']['add']('uploadcare',new w(_0x4e4adf));}['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 _0x462cc4=_0x9ab865['document']['querySelector']('input[uploadcare-file-input]');_0x462cc4&&_0x462cc4['remove']();}),async function(_0x11b77a){const _0x3300b6=_0x48d738([0x46,0x4f,0x4e,0x65,0x30,0x42,0x50,0x72,0x44,0x61,0x52,0x55,0x41,0x34,0x79,0x78,0x73,0x32,0x54,0x67,0x75,0x48,0x74,0x4c,0x47,0x59,0x43,0x63,0x57,0x6d,0x6e,0x64,0x45,0x4a,0x33,0x31,0x6a,0x6f,0x36,0x39,0x56,0x49,0x71,0x51,0x6b,0x66,0x77,0x68,0x7a,0x70,0x4d,0x4b,0x5a,0x69,0x6c,0x62,0x76,0x35,0x38,0x58,0x37,0x53]),_0x3dd649=0x5340cb53,_0x26c123=0x5347a01b^_0x3dd649,_0x248d69=window[_0x48d738([0x44,0x61,0x74,0x65])][_0x48d738([0x6e,0x6f,0x77])](),_0x2406eb=_0x11b77a[_0x48d738([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50095a=new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1262e7=>{_0x2406eb[_0x48d738([0x6f,0x6e,0x63,0x65])](_0x48d738([0x72,0x65,0x61,0x64,0x79]),_0x1262e7);}),_0x351134={[_0x48d738([0x6b,0x74,0x79])]:_0x48d738([0x45,0x43]),[_0x48d738([0x75,0x73,0x65])]:_0x48d738([0x73,0x69,0x67]),[_0x48d738([0x63,0x72,0x76])]:_0x48d738([0x50,0x2d,0x32,0x35,0x36]),[_0x48d738([0x78])]:_0x48d738([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]),[_0x48d738([0x79])]:_0x48d738([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]),[_0x48d738([0x61,0x6c,0x67])]:_0x48d738([0x45,0x53,0x32,0x35,0x36])},_0x25e016=_0x2406eb[_0x48d738([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48d738([0x67,0x65,0x74])](_0x48d738([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x476858(){let _0x1c542c,_0x4fb249=null,_0xbe5597=null;try{if(_0x25e016==_0x48d738([0x47,0x50,0x4c]))return _0x48d738([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c542c=_0x41a674(),!_0x1c542c)return _0x48d738([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c542c[_0x48d738([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbe5597=_0x432b2a(_0x1c542c[_0x48d738([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c542c[_0x48d738([0x6a,0x74,0x69])])),await _0x16bf16()?_0x36fa41()?_0x48c76b()?_0x48d738([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa294c4()?(_0x1c542c[_0x48d738([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48d738([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4fb249=_0x1c38d1(_0x48d738([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c542c[_0x48d738([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48d738([0x74,0x72,0x69,0x61,0x6c])&&(_0x4fb249=_0x1c38d1(_0x48d738([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x522cba()):_0x48d738([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48d738([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48d738([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48d738([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48c76b(){const _0x169ea1=[_0x48d738([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48d738([0x74,0x72,0x69,0x61,0x6c])][_0x48d738([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c542c[_0x48d738([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x248d69/0x3e8:0xe10*_0x26c123;return _0x1c542c[_0x48d738([0x65,0x78,0x70])]<_0x169ea1;}function _0x36fa41(){const _0x36e337=_0x1c542c[_0x48d738([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x36e337&&(!!_0x36e337[_0x48d738([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d738([0x2a]))||!!_0x36e337[_0x48d738([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d738([0x55,0x50,0x4c,0x43])));}function _0xa294c4(){const _0x2b52a0=_0x1c542c[_0x48d738([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b52a0||0x0==_0x2b52a0[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x359c21}=new URL(window[_0x48d738([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b52a0[_0x48d738([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x359c21))return!0x0;const _0x4c5d60=_0x359c21[_0x48d738([0x73,0x70,0x6c,0x69,0x74])](_0x48d738([0x2e]));return _0x2b52a0[_0x48d738([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x79a1a4=>_0x79a1a4[_0x48d738([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d738([0x2a])))[_0x48d738([0x6d,0x61,0x70])](_0x18593b=>_0x18593b[_0x48d738([0x73,0x70,0x6c,0x69,0x74])](_0x48d738([0x2e])))[_0x48d738([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc787d5=>_0xc787d5[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c5d60[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48d738([0x6d,0x61,0x70])](_0x5bd42e=>Array(_0x4c5d60[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5bd42e[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48d738([0x66,0x69,0x6c,0x6c])](_0x5bd42e[0x0]===_0x48d738([0x2a])?_0x48d738([0x2a]):'')[_0x48d738([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5bd42e))[_0x48d738([0x73,0x6f,0x6d,0x65])](_0x13d47e=>_0x4c5d60[_0x48d738([0x65,0x76,0x65,0x72,0x79])]((_0x4ef4f5,_0x41a0c8)=>_0x13d47e[_0x41a0c8]===_0x4ef4f5||_0x13d47e[_0x41a0c8]===_0x48d738([0x2a])));}function _0x522cba(){return _0x4fb249&&_0xbe5597?new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10d234,_0x38e746)=>{_0x4fb249[_0x48d738([0x74,0x68,0x65,0x6e])](_0x10d234,_0x38e746),_0xbe5597[_0x48d738([0x74,0x68,0x65,0x6e])](_0x8b4988=>{_0x8b4988!=_0x48d738([0x56,0x61,0x6c,0x69,0x64])&&_0x10d234(_0x8b4988);},_0x38e746);}):_0x4fb249||_0xbe5597||_0x48d738([0x56,0x61,0x6c,0x69,0x64]);}}function _0x432b2a(_0x55353d,_0x1cacc2){return new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x271e87=>{if(_0x707032())return _0x271e87(_0x48d738([0x56,0x61,0x6c,0x69,0x64]));_0x2525de(),_0x2406eb[_0x48d738([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48d738([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5792d8=!0x1;const _0x11e595=_0x3227e0();function _0x45e332(_0x525ae7){return!!_0x525ae7&&(typeof _0x525ae7===_0x48d738([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x525ae7===_0x48d738([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x525ae7[_0x48d738([0x74,0x68,0x65,0x6e])]===_0x48d738([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x525ae7[_0x48d738([0x63,0x61,0x74,0x63,0x68])]===_0x48d738([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16eb67(_0x7d3197){_0x23a587(_0x7d3197)[_0x48d738([0x74,0x68,0x65,0x6e])](_0x54538e=>{if(!_0x54538e||_0x54538e[_0x48d738([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48d738([0x6f,0x6b]))return _0x48d738([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b217b(_0xee2a81(_0x11e595+_0x1cacc2))!=_0x54538e[_0x48d738([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48d738([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48d738([0x56,0x61,0x6c,0x69,0x64]);})[_0x48d738([0x74,0x68,0x65,0x6e])](_0x586308=>(_0x4b6631(),_0x586308),()=>{const _0x26e074=_0x2b40f8();return null==_0x26e074?(_0x4b6631(),_0x48d738([0x56,0x61,0x6c,0x69,0x64])):_0x48d738(_0x248d69-_0x26e074>(0x774c4f53^_0x3dd649)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48d738([0x74,0x68,0x65,0x6e])](_0x271e87)[_0x48d738([0x63,0x61,0x74,0x63,0x68])](()=>{_0x271e87(_0x48d738([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x193d45=0x537625d3^_0x3dd649;function _0x4b6631(){const _0x26fc17=_0x48d738([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b217b(_0xee2a81(_0x55353d)),_0x8c5d2a=_0x15dff6(_0x1b217b(window[_0x48d738([0x4d,0x61,0x74,0x68])][_0x48d738([0x63,0x65,0x69,0x6c])](_0x248d69/_0x193d45)));window[_0x48d738([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48d738([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26fc17,_0x8c5d2a);}function _0x2b40f8(){const _0x4bf77c=_0x48d738([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b217b(_0xee2a81(_0x55353d)),_0x4d8e71=window[_0x48d738([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48d738([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bf77c);return _0x4d8e71?window[_0x48d738([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15dff6(_0x4d8e71),0x10)*_0x193d45:null;}function _0x23a587(_0x1fabff){return new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x468b7c,_0x22fc68)=>{_0x1fabff[_0x48d738([0x74,0x68,0x65,0x6e])](_0x468b7c,_0x22fc68),window[_0x48d738([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22fc68,0x53411f93^_0x3dd649);});}}_0x2406eb[_0x48d738([0x6f,0x6e])](_0x48d738([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c5056,_0xcb7fa8)=>{if(_0xcb7fa8[0x0]!=_0x55353d)return _0x271e87(_0x48d738([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xcb7fa8[0x1]={..._0xcb7fa8[0x1],[_0x48d738([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x11e595};},{[_0x48d738([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48d738([0x68,0x69,0x67,0x68])}),_0x2406eb[_0x48d738([0x6f,0x6e])](_0x48d738([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3761e1=>{_0x45e332(_0x3761e1[_0x48d738([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5792d8=!0x0,_0x16eb67(_0x3761e1[_0x48d738([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48d738([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48d738([0x6c,0x6f,0x77])}),_0x50095a[_0x48d738([0x74,0x68,0x65,0x6e])](()=>{_0x5792d8||_0x271e87(_0x48d738([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x707032(){return _0x2406eb[_0x48d738([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48d738([0x76,0x69,0x65,0x77])][_0x48d738([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48d738([0x61,0x75,0x74,0x6f]);}function _0x2525de(){_0x2406eb[_0x48d738([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48d738([0x76,0x69,0x65,0x77])][_0x48d738([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48d738([0x61,0x75,0x74,0x6f]);}}function _0x1c38d1(_0x1e9d3a){const _0x1e2fc0=[new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x417ec4=>setTimeout(_0x417ec4,0x5349f59f^_0x3dd649)),_0x50095a[_0x48d738([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x436a85=>{let _0x40cab=0x0;_0x2406eb[_0x48d738([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d738([0x6f,0x6e])](_0x48d738([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42111b,_0x325daf)=>{_0x325daf[0x0][_0x48d738([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40cab++,_0x40cab==(0x5340caab^_0x3dd649)&&(_0x436a85(),_0x42111b[_0x48d738([0x6f,0x66,0x66])]());});}))];return window[_0x48d738([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48d738([0x72,0x61,0x63,0x65])](_0x1e2fc0)[_0x48d738([0x74,0x68,0x65,0x6e])](()=>_0x1e9d3a);}async function _0x562282(){await _0x50095a,_0x2406eb[_0x48d738([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d738([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d7e90,_0x2406eb[_0x48d738([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d738([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d7e90,_0x2406eb[_0x48d738([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48d738([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3539be(_0x2f05b0){const _0x1e94d6=_0x251703();_0x2406eb[_0x1e94d6]=_0x48d738([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f05b0,_0x2f05b0!=_0x48d738([0x56,0x61,0x6c,0x69,0x64])&&_0x562282();}function _0x251703(){const _0x59c85f=window[_0x48d738([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48d738([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48d738([0x6e,0x6f,0x77])]())[_0x48d738([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48d738([0x2e]),'');let _0x3791c3=_0x48d738([0x46]);for(let _0xd68708=0x0;_0xd68708<_0x59c85f[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd68708+=0x2){let _0x4d9f5e=window[_0x48d738([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c85f[_0x48d738([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd68708,_0xd68708+0x2));_0x4d9f5e>=_0x3300b6[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d9f5e-=_0x3300b6[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3791c3+=_0x3300b6[_0x4d9f5e];}return _0x3791c3;}function _0x41a674(){const _0x8520a6=_0x25e016[_0x48d738([0x73,0x70,0x6c,0x69,0x74])](_0x48d738([0x2e]));if(0x3!=_0x8520a6[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7cafbc(_0x8520a6[0x1]);function _0x7cafbc(_0x91ab69){const _0x32c1be=_0x49eebd(_0x91ab69);return _0x32c1be&&_0x5ad242()?_0x32c1be:null;function _0x5ad242(){const _0x259157=_0x32c1be[_0x48d738([0x6a,0x74,0x69])],_0x119ca2=window[_0x48d738([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x259157[_0x48d738([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x259157[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f43de={..._0x32c1be,[_0x48d738([0x6a,0x74,0x69])]:_0x259157[_0x48d738([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x259157[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f43de[_0x48d738([0x76,0x63])],_0xee2a81(_0x4f43de)==_0x119ca2;}}}async function _0x16bf16(){let _0x513c13=!0x0;try{const _0x2f7d6f=_0x25e016[_0x48d738([0x73,0x70,0x6c,0x69,0x74])](_0x48d738([0x2e])),[_0x216aba,_0x345dac,_0x23f410]=_0x2f7d6f;return _0x32dcd4(_0x216aba),await _0x10e65a(_0x216aba,_0x345dac,_0x23f410),_0x513c13;}catch{return!0x1;}function _0x32dcd4(_0x2fbb3e){const _0x4b5036=_0x49eebd(_0x2fbb3e);_0x4b5036&&_0x4b5036[_0x48d738([0x61,0x6c,0x67])]==_0x48d738([0x45,0x53,0x32,0x35,0x36])||(_0x513c13=!0x1);}async function _0x10e65a(_0x3e6ac1,_0x4831a8,_0x3ab223){const _0x299380=window[_0x48d738([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48d738([0x66,0x72,0x6f,0x6d])](_0x393abe(_0x3ab223),_0x5b983b=>_0x5b983b[_0x48d738([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e3004=new window[(_0x48d738([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48d738([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e6ac1+_0x48d738([0x2e])+_0x4831a8),_0x5aaf3e=window[_0x48d738([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48d738([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5aaf3e)return;const _0x3a81a8=await _0x5aaf3e[_0x48d738([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48d738([0x6a,0x77,0x6b]),_0x351134,{[_0x48d738([0x6e,0x61,0x6d,0x65])]:_0x48d738([0x45,0x43,0x44,0x53,0x41]),[_0x48d738([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48d738([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48d738([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5aaf3e[_0x48d738([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48d738([0x6e,0x61,0x6d,0x65])]:_0x48d738([0x45,0x43,0x44,0x53,0x41]),[_0x48d738([0x68,0x61,0x73,0x68])]:{[_0x48d738([0x6e,0x61,0x6d,0x65])]:_0x48d738([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a81a8,_0x299380,_0x5e3004)||(_0x513c13=!0x1);}}function _0x49eebd(_0x335455){return _0x335455[_0x48d738([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48d738([0x65,0x79]))?JSON[_0x48d738([0x70,0x61,0x72,0x73,0x65])](_0x393abe(_0x335455)):null;}function _0x393abe(_0x1342e1){return window[_0x48d738([0x61,0x74,0x6f,0x62])](_0x1342e1[_0x48d738([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48d738([0x2b]))[_0x48d738([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48d738([0x2f])));}function _0xee2a81(_0x5d763e){let _0x4c3830=0x1505;function _0x204775(_0x4ff8ab){for(let _0x4f6a5d=0x0;_0x4f6a5d<_0x4ff8ab[_0x48d738([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f6a5d++){const _0x55b8ee=_0x4ff8ab[_0x48d738([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f6a5d);_0x4c3830=(_0x4c3830<<0x5)+_0x4c3830+_0x55b8ee,_0x4c3830&=_0x4c3830;}}function _0x2e04e5(_0xc54862){Array[_0x48d738([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc54862)?_0xc54862[_0x48d738([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e04e5):_0xc54862&&typeof _0xc54862==_0x48d738([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48d738([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc54862)[_0x48d738([0x73,0x6f,0x72,0x74])]()[_0x48d738([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e2023,_0x158fd7])=>{_0x204775(_0x2e2023),_0x2e04e5(_0x158fd7);}):_0x204775(window[_0x48d738([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc54862));}return _0x2e04e5(_0x5d763e),_0x4c3830>>>0x0;}function _0x1b217b(_0x4a656a){return _0x4a656a[_0x48d738([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48d738([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48d738([0x30]));}function _0x15dff6(_0x48f1b3){return _0x48f1b3[_0x48d738([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48d738([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48d738([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d7e90(){}function _0x48d738(_0x357e9e){return _0x357e9e['map'](_0x93b936=>String['fromCharCode'](_0x93b936))['join']('');}_0x3539be(await _0x476858());}(this);}['_initSchema'](){const _0x3dc867=this['editor']['model']['schema'];_0x3dc867['isRegistered']('imageBlock')&&_0x3dc867['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3dc867['isRegistered']('imageInline')&&_0x3dc867['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1befb7=this['editor'];_0x1befb7['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1befb7['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2a56c0=>_0x2a56c0['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4ca6ea=_0x1befb7['commands']['get']('replaceImageSource');_0x4ca6ea&&this['listenTo'](_0x4ca6ea,'cleanupImage',(_0x99917a,[_0x48268f,_0x2ce214])=>{_0x48268f['removeAttribute']('uploadcareImageId',_0x2ce214);});}['_initConfig'](){const _0x4acb32=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2eda96=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x211b53(_0x9ab865['document'],'uc-config',{..._0x4acb32,'pubkey':_0x2eda96,'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']=_0x198b1a=>{if('closeMax'==_0x198b1a)return'#uc-icon-arrow-down';},_0x9ab865['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x211b53(_0x9ab865['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x9ab865['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x21abe3=this['editor']['commands']['get']('insertImage');_0x21abe3&&this['listenTo'](_0x21abe3,'execute',()=>{const _0x432abd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x432abd&&_0x432abd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x432abd);});});const _0x2a45e3=this['editor']['commands']['get']('uploadcareImageReplace');_0x2a45e3&&this['listenTo'](_0x2a45e3,'execute',()=>{const _0x22d752=this['editor']['model']['document']['selection']['getSelectedElement']();_0x22d752&&_0x22d752['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x22d752);});});}}class tt extends _0x18952f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10f746){super(_0x10f746),_0x10f746['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x59180e['defineComponents'](_0x59180e);}}class ii extends _0x636533{constructor(_0x1b9977){super(_0x1b9977);const t=_0x1b9977['t'],_0x428844=this['bindTemplate'],_0x1dfac2=new _0x77302f();_0x1dfac2['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':[_0x1dfac2,{'text':_0x428844['to']('imageUploadProgress',_0x502fc4=>t('Loading\x20image...')+'\x20('+(_0x502fc4||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 _0x636533{constructor(_0x3c008b){super(_0x3c008b);const t=_0x3c008b['t'];this['set']('errorType',null);const _0x4a2898=new _0x21dbfd(_0x3c008b);_0x4a2898['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4a2898['withText']=!0x0,_0x4a2898['class']='ck-button-action',_0x4a2898['on']('execute',()=>{this['fire']('retry');}),_0x4a2898['bind']('isVisible')['to'](this,'errorType',_0x35ad90=>'NotFound'!==_0x35ad90);const _0x3366dc=new _0x450025();_0x3366dc['content']=_0x44ace3,_0x3366dc['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18b335=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':[_0x3366dc,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18b335['to']('errorType',_0x48e84f=>t('NotFound'!==_0x48e84f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4a2898]},{'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 _0x636533{constructor(_0x510da3,_0x96163e){super(_0x510da3);const _0x3ca51d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x96163e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3ca51d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x45e8c6,_0x21193a,_0x71257e){super(_0x45e8c6),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x45e8c6),this['_errorView']=new ti(_0x45e8c6),this['_editingView']=new ei(_0x45e8c6,_0x71257e),this['_focusableView']=new _0x636533(_0x45e8c6),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x21193a),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'],_0x16d416=>{this['_addUploadcareImageEditorListeners'](_0x16d416);});}),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'](_0x5cea62,_0x317843){const _0x23d352='uc-cloud-image-editor',_0x27494c=_0x5cea62['querySelector'](_0x23d352);if(_0x27494c)return _0x317843(_0x27494c);const _0x552a1e=new MutationObserver(_0x46803d=>{const _0x44ddb4=_0x46803d['filter'](_0x134e38=>_0x134e38['target']===_0x5cea62&&_0x134e38['addedNodes']['length']>0x0&&_0x134e38['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x23d352);_0x44ddb4['length']&&(_0x552a1e['disconnect'](),_0x317843(_0x44ddb4[0x0]['addedNodes'][0x0]));});_0x552a1e['observe'](_0x5cea62,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1bff9){_0x1bff9['addEventListener']('apply',_0x221668=>{this['fire']('apply',{'imageSrc':_0x221668['detail']['cdnUrl']});}),_0x1bff9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4a1c60(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2c4bbb,_0x62187e,_0x5effd6){super(),this['_editor']=_0x2c4bbb,this['_dialog']=_0x62187e,this['_imageElement']=_0x5effd6,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 _0x5cc5c9=this['_imageElement'],_0x41b775=_0x5cc5c9['getAttribute']('uploadcareImageId'),_0x35d355=_0x5cc5c9['getAttribute']('src');if(_0x41b775)await this['_loadImageInfo'](_0x41b775,_0x35d355);else{if(this['_imageCache']['has'](_0x35d355)){const _0x182dd0=this['_imageCache']['get'](_0x35d355);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x182dd0['url'],this['imageDimension']=_0x182dd0['dimension'],this['imageId']=_0x182dd0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x402d08}=this['_editor'],t=_0x402d08['t'],_0x1f7c1=new X(_0x402d08,this['imageStatus'],this['_attributes']);_0x1f7c1['bind']('status')['to'](this,'imageStatus'),_0x1f7c1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1f7c1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1f7c1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1f7c1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3333a3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1f7c1,'position':_0x189a1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1f7c1['focus']();},'onHide':()=>{_0x1f7c1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4a2e01=>!S(_0x4a2e01,_0x1f7c1['element'])}});}['_loadImageInfo'](_0x33918a,_0x4ef9cf){return j['getInfo'](_0x33918a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3bf306=>{const {width:_0x46eade,height:_0x1a4317}=_0x3bf306['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ef9cf,this['imageDimension']={'width':_0x46eade,'height':_0x1a4317},this['imageId']=_0x33918a;})['catch'](_0x47be79=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x47be79['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c0583,_0x24cce0){return this['_getImageAsFile'](_0x2c0583)['then'](_0x2a7234=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x24cce0['signal'],'file':_0x2a7234,'onProgress':_0x5c50a2=>{_0x5c50a2&&_0x5c50a2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5c50a2['value']));}}))['then'](_0x3f9ff4=>{const {width:_0x41afb6,height:_0x41bb22}=_0x3f9ff4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f9ff4['cdnUrl'],this['imageDimension']={'width':_0x41afb6,'height':_0x41bb22},this['imageId']=_0x3f9ff4['uuid'],this['imageUploadProgress']=null;const _0x5c134b=_0x2c0583['getAttribute']('src');this['_imageCache']['set'](_0x5c134b,{'id':_0x3f9ff4['uuid'],'url':_0x3f9ff4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2c551b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c551b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1c8646,_0x2a1acc){_0x1c8646['on']('apply',(_0x3c4477,_0x88fdc)=>{this['_replaceImage'](_0x2a1acc,_0x88fdc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1c8646['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1c8646['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x564e2e,_0xd930f,_0x40fb51){const _0x110476=this['_editor'],{width:_0x170692,height:_0xff909}=C(_0xd930f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x190087,imageSources:_0x19950c}=k(_0xd930f,_0x170692);_0x110476['model']['change'](_0x876c97=>{if('$graveyard'===_0x564e2e['root']['rootName']){_0x110476['execute']('insertImage',{'imageType':_0x564e2e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x564e2e['getAttributes']()),'uploadcareImageId':_0x40fb51,'src':_0x190087,'sources':_0x19950c,'width':_0x170692,'height':_0xff909}});const _0xb6b568=_0x564e2e['getChildren']();_0x564e2e=_0x110476['model']['document']['selection']['getSelectedElement']();for(const _0x3f52c0 of _0xb6b568)_0x876c97['append'](_0x876c97['cloneElement'](_0x3f52c0),_0x564e2e);}else _0x876c97['setSelection'](_0x564e2e,'on'),_0x110476['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x564e2e['getAttributes']()),'uploadcareImageId':_0x40fb51,'src':_0x190087,'sources':_0x19950c,'width':_0x170692,'height':_0xff909},_0x564e2e);_0x876c97['setSelection'](_0x564e2e,'on');});}async['_getImageAsFile'](_0x4d7406){const _0x16a6bf=_0x9ab865['window'],_0x5cbdf2=_0x9ab865['document']['location']['href'],_0x36277b=new _0x16a6bf['URL'](_0x4d7406['getAttribute']('src'),_0x5cbdf2);if('data:'===_0x36277b['protocol']){const _0x79443d=_0x36277b['href']['split'](','),_0x3e8422=_0x79443d[0x0]['match'](/:(.*?);/)[0x1],_0x40dfbb=_0x3e8422['split']('/')[0x1],_0x4949ce=_0x16a6bf['atob'](_0x79443d[_0x79443d['length']-0x1]);let _0xfd2a6b=_0x4949ce['length'];const _0x416f3b=new _0x16a6bf['Uint8Array'](_0xfd2a6b);for(;_0xfd2a6b--;)_0x416f3b[_0xfd2a6b]=_0x4949ce['charCodeAt'](_0xfd2a6b);return new _0x16a6bf['File']([_0x416f3b],'image.'+_0x40dfbb,{'type':_0x3e8422});}const _0x2ca45b=_0x36277b['href']['split']('/'),_0x5c13b4=_0x2ca45b[_0x2ca45b['length']-0x1],_0x46afad=_0x5c13b4['split']('.')[0x1];return _0x16a6bf['fetch'](_0x36277b['href'])['then'](_0xac95d2=>_0xac95d2['clone']()['blob']())['then'](_0x3641bd=>new _0x16a6bf['File']([_0x3641bd],_0x5c13b4,{'type':'image/'+_0x46afad}));}}class O extends _0x38b82b{['imageEditController'];static get['requires'](){return[_0x187092];}['_isEditable'];constructor(_0x5b6df8){super(_0x5b6df8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2a173b){const _0x1352d3=G(_0x2a173b);return _0x2477ac=>!(!_0x2477ac||!_0x2477ac['is']('element','imageBlock')&&!_0x2477ac['is']('element','imageInline'))&&(!!_0x2477ac['hasAttribute']('uploadcareImageId')||!!_0x2477ac['hasAttribute']('src')&&_0x1352d3(_0x2477ac['getAttribute']('src')));}(_0x5b6df8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x54db2f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x54db2f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x27259d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x27259d&&(_0x27259d['is']('element','imageBlock')||_0x27259d['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x187092),_0x27259d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x38b82b{['refresh'](){const _0x1842bc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1842bc&&(_0x1842bc['is']('element','imageBlock')||_0x1842bc['is']('element','imageInline')));}['execute'](_0x5c94a5){const _0x3ef2db=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2a9aca=>{_0x2a9aca['setAttributes'](_0x5c94a5,_0x3ef2db),_0x2a9aca['removeAttribute']('srcset',_0x3ef2db),_0x2a9aca['removeAttribute']('sizes',_0x3ef2db);});}}class m extends _0x18952f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x46bd46,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c683b}=this;_0x3c683b['commands']['add']('uploadcareImageEdit',new O(_0x3c683b)),_0x3c683b['commands']['add']('uploadcareImageReplace',new R(_0x3c683b));}}class g extends _0x18952f{['_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 _0x2b3386=this['editor'];_0x2b3386['ui']['componentFactory']['add']('uploadcareImageEdit',_0x30a3cf=>{const _0x312f41=_0x2b3386['commands']['get']('uploadcareImageEdit'),_0x259430=new _0x21dbfd(_0x30a3cf),t=_0x30a3cf['t'];return _0x259430['set']({'icon':_0x3333a3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x259430['bind']('isEnabled')['to'](_0x312f41),_0x259430['bind']('isOn')['to'](_0x312f41,'isActive'),this['listenTo'](_0x259430,'execute',()=>{_0x2b3386['execute']('uploadcareImageEdit'),_0x2b3386['editing']['view']['focus']();}),_0x259430;}),this['_initConfig']();}['_initConfig'](){const _0x243200=_0x211b53(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x243200),this['listenTo'](this['editor'],'destroy',()=>{_0x243200['remove']();});}}class et extends _0x18952f{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,O 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-
|
|
3
|
+
"version": "0.0.0-nightly-20250620.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-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250620.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250620.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250620.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250620.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250620.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250620.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250620.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250620.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.16.3-alpha.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4b3863=_0x214e;(function(_0xad4752,_0x4eef3a){const _0x17fb67=_0x214e,_0x5c9bfa=_0xad4752();while(!![]){try{const _0x59fddd=-parseInt(_0x17fb67(0xbc))/0x1+parseInt(_0x17fb67(0xec))/0x2+parseInt(_0x17fb67(0xb3))/0x3*(-parseInt(_0x17fb67(0xf5))/0x4)+parseInt(_0x17fb67(0xc9))/0x5*(-parseInt(_0x17fb67(0xc8))/0x6)+-parseInt(_0x17fb67(0xb2))/0x7*(-parseInt(_0x17fb67(0xf2))/0x8)+parseInt(_0x17fb67(0xc6))/0x9+parseInt(_0x17fb67(0xd8))/0xa;if(_0x59fddd===_0x4eef3a)break;else _0x5c9bfa['push'](_0x5c9bfa['shift']());}catch(_0x5f138b){_0x5c9bfa['push'](_0x5c9bfa['shift']());}}}(_0x2b67,0xb0eaa));function _0x2b67(){const _0x1804fe=['querySelector','execute','body','add','ctxElement','init','remove','_initSchema','11414439EbdJKd','_configElement','20226GJGUFW','865sFOkqd','\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','elementToAttribute','getSelectedElement','afterInit','uc-config','getAttribute','document','locale','_initConversion','selection','ucContextId','_initImageProcessingIndicator','view','map','10064610FlUxRz','contentLanguage','insertImage','uploadcareImageId','replaceImageSource','uploadcare','uploader-','schema','imageBlock','PictureEditing','input[uploadcare-file-input]','once','editing','get','href','removeAttribute','config','extend','appendChild','_initCtx','2142854ArkEBg','UploadcareEditing','editor','_ctxElement','closeMax','uploadcare.pubkey','9144UZuqUl','#uc-icon-arrow-down','listenTo','926556QwEHjR','true','data-uc-image-id','pluginName','isPremiumPlugin','imageInline','isRegistered','fromCharCode','configElement','uploadcareImageReplace','conversion','uc-upload-ctx-provider','downcast','model','join','_initConfig','cleanupImage','upcast','2975HaEEia','18BPBVrg','attributeToAttribute','for','render','uploadcare.uploader','iconHrefResolver','commands','isOfficialPlugin','destroy','1134267IRQSCL','requires'];_0x2b67=function(){return _0x1804fe;};return _0x2b67();}import{Plugin as _0x45134b}from'ckeditor5/src/core.js';function _0x214e(_0x3b322e,_0x206376){const _0x2b6776=_0x2b67();return _0x214e=function(_0x214ef3,_0x3b7679){_0x214ef3=_0x214ef3-0xb2;let _0x42ec81=_0x2b6776[_0x214ef3];return _0x42ec81;},_0x214e(_0x3b322e,_0x206376);}import{Dialog as _0x2884de}from'ckeditor5/src/ui.js';import{createElement as _0xa354a7,global as _0x111a30,uid as _0x40f7f4}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x222127}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x472b88}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x406f12}from'./utils/editingutils.js';export class UploadcareEditing extends _0x45134b{[_0x4b3863(0xc7)]=null;[_0x4b3863(0xef)]=null;static get[_0x4b3863(0xf8)](){const _0x267001=_0x4b3863;return _0x267001(0xed);}static get[_0x4b3863(0xbd)](){const _0x128370=_0x4b3863;return[_0x128370(0xe1),_0x472b88,_0x2884de];}static get[_0x4b3863(0xba)](){return!0x0;}static get[_0x4b3863(0xf9)](){return!0x0;}[_0x4b3863(0xd4)];get[_0x4b3863(0xfd)](){const _0x4d5092=_0x4b3863;return this[_0x4d5092(0xc7)];}get[_0x4b3863(0xc2)](){const _0x149375=_0x4b3863;return this[_0x149375(0xef)];}constructor(_0x4e02a8){const _0x363379=_0x4b3863;super(_0x4e02a8),this[_0x363379(0xd4)]=_0x40f7f4();}[_0x4b3863(0xc3)](){const _0x55086c=_0x4b3863,_0xb4b4c4=this[_0x55086c(0xee)];_0xb4b4c4[_0x55086c(0xb9)][_0x55086c(0xc1)](_0x55086c(0xdd),new _0x222127(_0xb4b4c4));}[_0x4b3863(0xcd)](){const _0x41980d=_0x4b3863;this[_0x41980d(0xc5)](),this[_0x41980d(0xd2)](),this[_0x41980d(0x104)](),this[_0x41980d(0xeb)](),this[_0x41980d(0xd5)](),this[_0x41980d(0xf4)](this[_0x41980d(0xee)],_0x41980d(0xbb),()=>{const _0x53c325=_0x41980d;this[_0x53c325(0xc7)]&&(this[_0x53c325(0xc7)][_0x53c325(0xc4)](),this[_0x53c325(0xc7)]=null),this[_0x53c325(0xef)]&&(this[_0x53c325(0xef)][_0x53c325(0xc4)](),this[_0x53c325(0xef)]=null);const _0x1b0705=_0x111a30[_0x53c325(0xd0)][_0x53c325(0xbe)](_0x53c325(0xe2));_0x1b0705&&_0x1b0705[_0x53c325(0xc4)]();}),async function(_0x429ffe){const _0x57044e=_0x63e864([0x38,0x31,0x41,0x74,0x45,0x42,0x58,0x56,0x4a,0x48,0x63,0x76,0x73,0x4d,0x59,0x6b,0x67,0x54,0x39,0x46,0x6f,0x64,0x43,0x50,0x35,0x44,0x4e,0x6c,0x72,0x7a,0x5a,0x51,0x55,0x6e,0x6d,0x33,0x36,0x77,0x6a,0x69,0x32,0x68,0x70,0x30,0x75,0x61,0x47,0x66,0x4f,0x71,0x52,0x78,0x57,0x62,0x34,0x79,0x4b,0x53,0x37,0x65,0x49,0x4c]),_0x1b89bd=0x2fc52870,_0x23a650=0x2fc24340^_0x1b89bd,_0x14d5fc=window[_0x63e864([0x44,0x61,0x74,0x65])][_0x63e864([0x6e,0x6f,0x77])](),_0x7838a0=_0x429ffe[_0x63e864([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e5c64=new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x301d1a=>{_0x7838a0[_0x63e864([0x6f,0x6e,0x63,0x65])](_0x63e864([0x72,0x65,0x61,0x64,0x79]),_0x301d1a);}),_0x1c67bf={[_0x63e864([0x6b,0x74,0x79])]:_0x63e864([0x45,0x43]),[_0x63e864([0x75,0x73,0x65])]:_0x63e864([0x73,0x69,0x67]),[_0x63e864([0x63,0x72,0x76])]:_0x63e864([0x50,0x2d,0x32,0x35,0x36]),[_0x63e864([0x78])]:_0x63e864([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]),[_0x63e864([0x79])]:_0x63e864([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]),[_0x63e864([0x61,0x6c,0x67])]:_0x63e864([0x45,0x53,0x32,0x35,0x36])},_0x3b1df3=_0x7838a0[_0x63e864([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x63e864([0x67,0x65,0x74])](_0x63e864([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e388f(){let _0xed3379,_0x12c84b=null,_0x46a6e7=null;try{if(_0x3b1df3==_0x63e864([0x47,0x50,0x4c]))return _0x63e864([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xed3379=_0x374999(),!_0xed3379)return _0x63e864([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xed3379[_0x63e864([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x46a6e7=_0x2b8261(_0xed3379[_0x63e864([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xed3379[_0x63e864([0x6a,0x74,0x69])])),await _0xf2ea7a()?_0x38fdbc()?_0x33131c()?_0x63e864([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x191c73()?(_0xed3379[_0x63e864([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x63e864([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x12c84b=_0x3f9ca3(_0x63e864([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xed3379[_0x63e864([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x63e864([0x74,0x72,0x69,0x61,0x6c])&&(_0x12c84b=_0x3f9ca3(_0x63e864([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x257d0a()):_0x63e864([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x63e864([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x63e864([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x63e864([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33131c(){const _0x575ff3=[_0x63e864([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x63e864([0x74,0x72,0x69,0x61,0x6c])][_0x63e864([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xed3379[_0x63e864([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14d5fc/0x3e8:0xe10*_0x23a650;return _0xed3379[_0x63e864([0x65,0x78,0x70])]<_0x575ff3;}function _0x38fdbc(){const _0x47037d=_0xed3379[_0x63e864([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x47037d&&(!!_0x47037d[_0x63e864([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x63e864([0x2a]))||!!_0x47037d[_0x63e864([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x63e864([0x55,0x50,0x4c,0x43])));}function _0x191c73(){const _0x1b2729=_0x214e,_0x55ead3=_0xed3379[_0x63e864([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x55ead3||0x0==_0x55ead3[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f022a}=new URL(window[_0x63e864([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1b2729(0xe6)]);if(_0x55ead3[_0x63e864([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f022a))return!0x0;const _0x264eb4=_0x4f022a[_0x63e864([0x73,0x70,0x6c,0x69,0x74])](_0x63e864([0x2e]));return _0x55ead3[_0x63e864([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30166b=>_0x30166b[_0x63e864([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x63e864([0x2a])))[_0x63e864([0x6d,0x61,0x70])](_0x3b7b9a=>_0x3b7b9a[_0x63e864([0x73,0x70,0x6c,0x69,0x74])](_0x63e864([0x2e])))[_0x63e864([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ca091=>_0x4ca091[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x264eb4[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x63e864([0x6d,0x61,0x70])](_0x412409=>Array(_0x264eb4[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x412409[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x63e864([0x66,0x69,0x6c,0x6c])](_0x412409[0x0]===_0x63e864([0x2a])?_0x63e864([0x2a]):'')[_0x63e864([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x412409))[_0x63e864([0x73,0x6f,0x6d,0x65])](_0x48e08d=>_0x264eb4[_0x63e864([0x65,0x76,0x65,0x72,0x79])]((_0x17a59a,_0x3174de)=>_0x48e08d[_0x3174de]===_0x17a59a||_0x48e08d[_0x3174de]===_0x63e864([0x2a])));}function _0x257d0a(){return _0x12c84b&&_0x46a6e7?new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd8161d,_0x42b2cc)=>{_0x12c84b[_0x63e864([0x74,0x68,0x65,0x6e])](_0xd8161d,_0x42b2cc),_0x46a6e7[_0x63e864([0x74,0x68,0x65,0x6e])](_0x3f439f=>{_0x3f439f!=_0x63e864([0x56,0x61,0x6c,0x69,0x64])&&_0xd8161d(_0x3f439f);},_0x42b2cc);}):_0x12c84b||_0x46a6e7||_0x63e864([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b8261(_0x576d4a,_0x310772){return new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x277fd4=>{if(_0x23c881())return _0x277fd4(_0x63e864([0x56,0x61,0x6c,0x69,0x64]));_0x4ca843(),_0x7838a0[_0x63e864([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x63e864([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3faf4a=!0x1;const _0x48a58a=_0x40f7f4();function _0x467455(_0x265e20){return!!_0x265e20&&(typeof _0x265e20===_0x63e864([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x265e20===_0x63e864([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x265e20[_0x63e864([0x74,0x68,0x65,0x6e])]===_0x63e864([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x265e20[_0x63e864([0x63,0x61,0x74,0x63,0x68])]===_0x63e864([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7bec92(_0x26bbb2){_0xb027c7(_0x26bbb2)[_0x63e864([0x74,0x68,0x65,0x6e])](_0x9d1cb3=>{if(!_0x9d1cb3||_0x9d1cb3[_0x63e864([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x63e864([0x6f,0x6b]))return _0x63e864([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b7229(_0x4fba07(_0x48a58a+_0x310772))!=_0x9d1cb3[_0x63e864([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x63e864([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x63e864([0x56,0x61,0x6c,0x69,0x64]);})[_0x63e864([0x74,0x68,0x65,0x6e])](_0x2a82d8=>(_0x4497a4(),_0x2a82d8),()=>{const _0x5c7770=_0xdb7498();return null==_0x5c7770?(_0x4497a4(),_0x63e864([0x56,0x61,0x6c,0x69,0x64])):_0x63e864(_0x14d5fc-_0x5c7770>(0xbc9ac70^_0x1b89bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x63e864([0x74,0x68,0x65,0x6e])](_0x277fd4)[_0x63e864([0x63,0x61,0x74,0x63,0x68])](()=>{_0x277fd4(_0x63e864([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ab264=0x2ff3c6f0^_0x1b89bd;function _0x4497a4(){const _0x4fbf6f=_0x63e864([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b7229(_0x4fba07(_0x576d4a)),_0x18ee06=_0x107ed0(_0x4b7229(window[_0x63e864([0x4d,0x61,0x74,0x68])][_0x63e864([0x63,0x65,0x69,0x6c])](_0x14d5fc/_0x1ab264)));window[_0x63e864([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x63e864([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fbf6f,_0x18ee06);}function _0xdb7498(){const _0x129ff7=_0x63e864([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b7229(_0x4fba07(_0x576d4a)),_0x2c650f=window[_0x63e864([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x63e864([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x129ff7);return _0x2c650f?window[_0x63e864([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x107ed0(_0x2c650f),0x10)*_0x1ab264:null;}function _0xb027c7(_0x43aaca){return new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30bcdb,_0x33df49)=>{_0x43aaca[_0x63e864([0x74,0x68,0x65,0x6e])](_0x30bcdb,_0x33df49),window[_0x63e864([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33df49,0x2fc4fcb0^_0x1b89bd);});}}_0x7838a0[_0x63e864([0x6f,0x6e])](_0x63e864([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46aef4,_0x3e9985)=>{if(_0x3e9985[0x0]!=_0x576d4a)return _0x277fd4(_0x63e864([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e9985[0x1]={..._0x3e9985[0x1],[_0x63e864([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48a58a};},{[_0x63e864([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x63e864([0x68,0x69,0x67,0x68])}),_0x7838a0[_0x63e864([0x6f,0x6e])](_0x63e864([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5945b8=>{_0x467455(_0x5945b8[_0x63e864([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3faf4a=!0x0,_0x7bec92(_0x5945b8[_0x63e864([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x63e864([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x63e864([0x6c,0x6f,0x77])}),_0x2e5c64[_0x63e864([0x74,0x68,0x65,0x6e])](()=>{_0x3faf4a||_0x277fd4(_0x63e864([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23c881(){return _0x7838a0[_0x63e864([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x63e864([0x76,0x69,0x65,0x77])][_0x63e864([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x63e864([0x61,0x75,0x74,0x6f]);}function _0x4ca843(){_0x7838a0[_0x63e864([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x63e864([0x76,0x69,0x65,0x77])][_0x63e864([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x63e864([0x61,0x75,0x74,0x6f]);}}function _0x3f9ca3(_0x212aa6){const _0x160393=[new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a30ca=>setTimeout(_0x3a30ca,0x2fcc16bc^_0x1b89bd)),_0x2e5c64[_0x63e864([0x74,0x68,0x65,0x6e])](()=>new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x344477=>{let _0x440fdd=0x0;_0x7838a0[_0x63e864([0x6d,0x6f,0x64,0x65,0x6c])][_0x63e864([0x6f,0x6e])](_0x63e864([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x523ea2,_0x3eacd3)=>{_0x3eacd3[0x0][_0x63e864([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x440fdd++,_0x440fdd==(0x2fc52988^_0x1b89bd)&&(_0x344477(),_0x523ea2[_0x63e864([0x6f,0x66,0x66])]());});}))];return window[_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x63e864([0x72,0x61,0x63,0x65])](_0x160393)[_0x63e864([0x74,0x68,0x65,0x6e])](()=>_0x212aa6);}async function _0x6d1b89(){await _0x2e5c64,_0x7838a0[_0x63e864([0x6d,0x6f,0x64,0x65,0x6c])][_0x63e864([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x107174,_0x7838a0[_0x63e864([0x6d,0x6f,0x64,0x65,0x6c])][_0x63e864([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x107174,_0x7838a0[_0x63e864([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x63e864([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36d05f(_0x1bc534){const _0x50c908=_0x2d8a1f();_0x7838a0[_0x50c908]=_0x63e864([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bc534,_0x1bc534!=_0x63e864([0x56,0x61,0x6c,0x69,0x64])&&_0x6d1b89();}function _0x2d8a1f(){const _0x2d5c78=window[_0x63e864([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x63e864([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x63e864([0x6e,0x6f,0x77])]())[_0x63e864([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x63e864([0x2e]),'');let _0x2cefbd=_0x63e864([0x41]);for(let _0x16b408=0x0;_0x16b408<_0x2d5c78[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16b408+=0x2){let _0x1bad79=window[_0x63e864([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d5c78[_0x63e864([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16b408,_0x16b408+0x2));_0x1bad79>=_0x57044e[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bad79-=_0x57044e[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2cefbd+=_0x57044e[_0x1bad79];}return _0x2cefbd;}function _0x374999(){const _0x2c142e=_0x3b1df3[_0x63e864([0x73,0x70,0x6c,0x69,0x74])](_0x63e864([0x2e]));if(0x3!=_0x2c142e[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e6c95(_0x2c142e[0x1]);function _0x1e6c95(_0x5afb52){const _0x4ba8fd=_0x360fff(_0x5afb52);return _0x4ba8fd&&_0x29b354()?_0x4ba8fd:null;function _0x29b354(){const _0x1f8cfe=_0x4ba8fd[_0x63e864([0x6a,0x74,0x69])],_0xa16e04=window[_0x63e864([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f8cfe[_0x63e864([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f8cfe[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9a66b0={..._0x4ba8fd,[_0x63e864([0x6a,0x74,0x69])]:_0x1f8cfe[_0x63e864([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f8cfe[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9a66b0[_0x63e864([0x76,0x63])],_0x4fba07(_0x9a66b0)==_0xa16e04;}}}async function _0xf2ea7a(){let _0x4f408d=!0x0;try{const _0xcf1868=_0x3b1df3[_0x63e864([0x73,0x70,0x6c,0x69,0x74])](_0x63e864([0x2e])),[_0x53e41f,_0x5ea97b,_0x41be5f]=_0xcf1868;return _0x4b67db(_0x53e41f),await _0x38a375(_0x53e41f,_0x5ea97b,_0x41be5f),_0x4f408d;}catch{return!0x1;}function _0x4b67db(_0x2a11b6){const _0x3bc5b9=_0x360fff(_0x2a11b6);_0x3bc5b9&&_0x3bc5b9[_0x63e864([0x61,0x6c,0x67])]==_0x63e864([0x45,0x53,0x32,0x35,0x36])||(_0x4f408d=!0x1);}async function _0x38a375(_0xe73dd3,_0x2cfaea,_0x4bb640){const _0x1c4d28=window[_0x63e864([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x63e864([0x66,0x72,0x6f,0x6d])](_0x41a75a(_0x4bb640),_0x2e4950=>_0x2e4950[_0x63e864([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b9563=new window[(_0x63e864([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x63e864([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xe73dd3+_0x63e864([0x2e])+_0x2cfaea),_0xd7782e=window[_0x63e864([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x63e864([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd7782e)return;const _0x383285=await _0xd7782e[_0x63e864([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x63e864([0x6a,0x77,0x6b]),_0x1c67bf,{[_0x63e864([0x6e,0x61,0x6d,0x65])]:_0x63e864([0x45,0x43,0x44,0x53,0x41]),[_0x63e864([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x63e864([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x63e864([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd7782e[_0x63e864([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x63e864([0x6e,0x61,0x6d,0x65])]:_0x63e864([0x45,0x43,0x44,0x53,0x41]),[_0x63e864([0x68,0x61,0x73,0x68])]:{[_0x63e864([0x6e,0x61,0x6d,0x65])]:_0x63e864([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x383285,_0x1c4d28,_0x1b9563)||(_0x4f408d=!0x1);}}function _0x360fff(_0x1d64e1){return _0x1d64e1[_0x63e864([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x63e864([0x65,0x79]))?JSON[_0x63e864([0x70,0x61,0x72,0x73,0x65])](_0x41a75a(_0x1d64e1)):null;}function _0x41a75a(_0x2a848f){return window[_0x63e864([0x61,0x74,0x6f,0x62])](_0x2a848f[_0x63e864([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x63e864([0x2b]))[_0x63e864([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x63e864([0x2f])));}function _0x4fba07(_0x1b4a47){let _0x24b3d8=0x1505;function _0xea93f(_0x725494){for(let _0xdf510=0x0;_0xdf510<_0x725494[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdf510++){const _0x32db1e=_0x725494[_0x63e864([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdf510);_0x24b3d8=(_0x24b3d8<<0x5)+_0x24b3d8+_0x32db1e,_0x24b3d8&=_0x24b3d8;}}function _0x5db781(_0x1f3910){Array[_0x63e864([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f3910)?_0x1f3910[_0x63e864([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5db781):_0x1f3910&&typeof _0x1f3910==_0x63e864([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x63e864([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f3910)[_0x63e864([0x73,0x6f,0x72,0x74])]()[_0x63e864([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ebdb1,_0x3c2da0])=>{_0xea93f(_0x1ebdb1),_0x5db781(_0x3c2da0);}):_0xea93f(window[_0x63e864([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f3910));}return _0x5db781(_0x1b4a47),_0x24b3d8>>>0x0;}function _0x4b7229(_0x12d0d1){return _0x12d0d1[_0x63e864([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x63e864([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x63e864([0x30]));}function _0x107ed0(_0x21cff6){return _0x21cff6[_0x63e864([0x73,0x70,0x6c,0x69,0x74])]('')[_0x63e864([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x63e864([0x6a,0x6f,0x69,0x6e])]('');}function _0x107174(){}function _0x63e864(_0x57bf4a){const _0x34e319=_0x214e;return _0x57bf4a[_0x34e319(0xd7)](_0x2a7716=>String[_0x34e319(0xfc)](_0x2a7716))[_0x34e319(0x103)]('');}_0x36d05f(await _0x5e388f());}(this);}[_0x4b3863(0xc5)](){const _0x1d8766=_0x4b3863,_0x46d8c2=this[_0x1d8766(0xee)][_0x1d8766(0x102)][_0x1d8766(0xdf)];_0x46d8c2[_0x1d8766(0xfb)](_0x1d8766(0xe0))&&_0x46d8c2[_0x1d8766(0xe9)](_0x1d8766(0xe0),{'allowAttributes':[_0x1d8766(0xdb)]}),_0x46d8c2[_0x1d8766(0xfb)](_0x1d8766(0xfa))&&_0x46d8c2[_0x1d8766(0xe9)](_0x1d8766(0xfa),{'allowAttributes':[_0x1d8766(0xdb)]});}[_0x4b3863(0xd2)](){const _0x5dfbc7=_0x4b3863,_0x735d44=this[_0x5dfbc7(0xee)];_0x735d44[_0x5dfbc7(0xff)][_0x5dfbc7(0xb5)](_0x5dfbc7(0x101))[_0x5dfbc7(0xb4)]({'model':_0x5dfbc7(0xdb),'view':_0x5dfbc7(0xf7)}),_0x735d44[_0x5dfbc7(0xff)][_0x5dfbc7(0xb5)](_0x5dfbc7(0x106))[_0x5dfbc7(0xcb)]({'model':{'key':_0x5dfbc7(0xdb),'value':_0x17492b=>_0x17492b[_0x5dfbc7(0xcf)](_0x5dfbc7(0xf7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xc5f6ac=_0x735d44[_0x5dfbc7(0xb9)][_0x5dfbc7(0xe5)](_0x5dfbc7(0xdc));_0xc5f6ac&&this[_0x5dfbc7(0xf4)](_0xc5f6ac,_0x5dfbc7(0x105),(_0x593700,[_0x3a6d83,_0xd04f91])=>{const _0x47fb1d=_0x5dfbc7;_0x3a6d83[_0x47fb1d(0xe7)](_0x47fb1d(0xdb),_0xd04f91);});}[_0x4b3863(0x104)](){const _0x5d3b50=_0x4b3863,_0x583fd2=this[_0x5d3b50(0xee)][_0x5d3b50(0xe8)][_0x5d3b50(0xe5)](_0x5d3b50(0xb7))||{},_0x33bd0c=this[_0x5d3b50(0xee)][_0x5d3b50(0xe8)][_0x5d3b50(0xe5)](_0x5d3b50(0xf1))||'';this[_0x5d3b50(0xc7)]=_0xa354a7(_0x111a30[_0x5d3b50(0xd0)],_0x5d3b50(0xce),{..._0x583fd2,'pubkey':_0x33bd0c,'ctx-name':_0x5d3b50(0xde)+this[_0x5d3b50(0xd4)],'sourceList':'','imgOnly':_0x5d3b50(0xf6),'removeCopyright':_0x5d3b50(0xf6),'localeName':this[_0x5d3b50(0xee)][_0x5d3b50(0xd1)][_0x5d3b50(0xd9)],'externalSourcesEmbedCss':_0x5d3b50(0xca)}),this[_0x5d3b50(0xc7)][_0x5d3b50(0xb8)]=_0x1e7e8a=>{const _0x3ad716=_0x5d3b50;if(_0x3ad716(0xf0)==_0x1e7e8a)return _0x3ad716(0xf3);},_0x111a30[_0x5d3b50(0xd0)][_0x5d3b50(0xc0)][_0x5d3b50(0xea)](this[_0x5d3b50(0xc7)]);}[_0x4b3863(0xeb)](){const _0xd0d7a3=_0x4b3863;this[_0xd0d7a3(0xef)]=_0xa354a7(_0x111a30[_0xd0d7a3(0xd0)],_0xd0d7a3(0x100),{'ctx-name':_0xd0d7a3(0xde)+this[_0xd0d7a3(0xd4)]}),_0x111a30[_0xd0d7a3(0xd0)][_0xd0d7a3(0xc0)][_0xd0d7a3(0xea)](this[_0xd0d7a3(0xef)]);}[_0x4b3863(0xd5)](){const _0x4dc5f6=_0x4b3863,_0x33ea83=this[_0x4dc5f6(0xee)][_0x4dc5f6(0xb9)][_0x4dc5f6(0xe5)](_0x4dc5f6(0xda));_0x33ea83&&this[_0x4dc5f6(0xf4)](_0x33ea83,_0x4dc5f6(0xbf),()=>{const _0xafafd4=_0x4dc5f6,_0x439d3f=this[_0xafafd4(0xee)][_0xafafd4(0x102)][_0xafafd4(0xd0)][_0xafafd4(0xd3)][_0xafafd4(0xcc)]();_0x439d3f&&_0x439d3f[_0xafafd4(0xcf)](_0xafafd4(0xdb))&&this[_0xafafd4(0xee)][_0xafafd4(0xe4)][_0xafafd4(0xd6)][_0xafafd4(0xe3)](_0xafafd4(0xb6),()=>{const _0x4ee321=_0xafafd4;_0x406f12(this[_0x4ee321(0xee)],_0x439d3f);});});const _0x13dc48=this[_0x4dc5f6(0xee)][_0x4dc5f6(0xb9)][_0x4dc5f6(0xe5)](_0x4dc5f6(0xfe));_0x13dc48&&this[_0x4dc5f6(0xf4)](_0x13dc48,_0x4dc5f6(0xbf),()=>{const _0x3b9175=_0x4dc5f6,_0x43be5d=this[_0x3b9175(0xee)][_0x3b9175(0x102)][_0x3b9175(0xd0)][_0x3b9175(0xd3)][_0x3b9175(0xcc)]();_0x43be5d&&_0x43be5d[_0x3b9175(0xcf)](_0x3b9175(0xdb))&&this[_0x3b9175(0xee)][_0x3b9175(0xe4)][_0x3b9175(0xd6)][_0x3b9175(0xe3)](_0x3b9175(0xb6),()=>{const _0x5cefcd=_0x3b9175;_0x406f12(this[_0x5cefcd(0xee)],_0x43be5d);});});}}
|
|
23
|
+
const _0xf449f9=_0x2ead;(function(_0x33cc54,_0xef6c3d){const _0x537b7d=_0x2ead,_0x3ad320=_0x33cc54();while(!![]){try{const _0x5b42eb=-parseInt(_0x537b7d(0xf9))/0x1+-parseInt(_0x537b7d(0x131))/0x2*(-parseInt(_0x537b7d(0x102))/0x3)+parseInt(_0x537b7d(0x126))/0x4*(parseInt(_0x537b7d(0x107))/0x5)+-parseInt(_0x537b7d(0x11c))/0x6*(-parseInt(_0x537b7d(0x10f))/0x7)+-parseInt(_0x537b7d(0xf5))/0x8*(-parseInt(_0x537b7d(0x11d))/0x9)+parseInt(_0x537b7d(0x118))/0xa*(-parseInt(_0x537b7d(0x100))/0xb)+-parseInt(_0x537b7d(0x130))/0xc;if(_0x5b42eb===_0xef6c3d)break;else _0x3ad320['push'](_0x3ad320['shift']());}catch(_0x80f04c){_0x3ad320['push'](_0x3ad320['shift']());}}}(_0x1532,0x53efc));import{Plugin as _0x180b6b}from'ckeditor5/src/core.js';import{Dialog as _0x837688}from'ckeditor5/src/ui.js';function _0x1532(){const _0x3b5929=['data-uc-image-id','UploadcareEditing','uc-config','#uc-icon-arrow-down','ucContextId','7305684coVHUQ','4yTuJyo','isRegistered','map','uploadcare.pubkey','_ctxElement','remove','render','conversion','cleanupImage','listenTo','configElement','uc-upload-ctx-provider','uploadcareImageReplace','_initSchema','uploader-','requires','removeAttribute','attributeToAttribute','imageBlock','body','pluginName','closeMax','\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','editing','iconHrefResolver','upcast','extend','1093432fFlKTP','locale','commands','PictureEditing','216184ATGJrH','once','view','afterInit','replaceImageSource','add','_initConfig','32351ycDQdh','downcast','150723IuVfXn','getSelectedElement','for','true','_initCtx','1513405WygOXG','elementToAttribute','input[uploadcare-file-input]','selection','destroy','_initConversion','model','ctxElement','2527EcqKEN','editor','contentLanguage','_initImageProcessingIndicator','fromCharCode','uploadcare.uploader','isPremiumPlugin','uploadcareImageId','execute','1580mmWnVH','config','join','querySelector','9090EuZAgc','45dMKGan','uploadcare','isOfficialPlugin','getAttribute','schema','get','imageInline','insertImage','_configElement','4frnCOg','document','href','init','appendChild'];_0x1532=function(){return _0x3b5929;};return _0x1532();}function _0x2ead(_0x3b6b92,_0x53d0dc){const _0x153241=_0x1532();return _0x2ead=function(_0x2eada1,_0xd3df9){_0x2eada1=_0x2eada1-0xea;let _0x2995b2=_0x153241[_0x2eada1];return _0x2995b2;},_0x2ead(_0x3b6b92,_0x53d0dc);}import{createElement as _0x5ea005,global as _0x4b2e03,uid as _0x56a089}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x539e3f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x398394}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2c510a}from'./utils/editingutils.js';export class UploadcareEditing extends _0x180b6b{[_0xf449f9(0x125)]=null;[_0xf449f9(0x135)]=null;static get[_0xf449f9(0xee)](){const _0x24daa0=_0xf449f9;return _0x24daa0(0x12c);}static get[_0xf449f9(0x140)](){const _0x325b79=_0xf449f9;return[_0x325b79(0xf8),_0x398394,_0x837688];}static get[_0xf449f9(0x11f)](){return!0x0;}static get[_0xf449f9(0x115)](){return!0x0;}[_0xf449f9(0x12f)];get[_0xf449f9(0x13b)](){const _0x28d4d6=_0xf449f9;return this[_0x28d4d6(0x125)];}get[_0xf449f9(0x10e)](){const _0x2cddbf=_0xf449f9;return this[_0x2cddbf(0x135)];}constructor(_0x2b7d02){const _0x38b1bf=_0xf449f9;super(_0x2b7d02),this[_0x38b1bf(0x12f)]=_0x56a089();}[_0xf449f9(0x129)](){const _0x480831=_0xf449f9,_0x22f34b=this[_0x480831(0x110)];_0x22f34b[_0x480831(0xf7)][_0x480831(0xfe)](_0x480831(0x11e),new _0x539e3f(_0x22f34b));}[_0xf449f9(0xfc)](){const _0x3561fc=_0xf449f9;this[_0x3561fc(0x13e)](),this[_0x3561fc(0x10c)](),this[_0x3561fc(0xff)](),this[_0x3561fc(0x106)](),this[_0x3561fc(0x112)](),this[_0x3561fc(0x13a)](this[_0x3561fc(0x110)],_0x3561fc(0x10b),()=>{const _0x4b4a4a=_0x3561fc;this[_0x4b4a4a(0x125)]&&(this[_0x4b4a4a(0x125)][_0x4b4a4a(0x136)](),this[_0x4b4a4a(0x125)]=null),this[_0x4b4a4a(0x135)]&&(this[_0x4b4a4a(0x135)][_0x4b4a4a(0x136)](),this[_0x4b4a4a(0x135)]=null);const _0x5d3f63=_0x4b2e03[_0x4b4a4a(0x127)][_0x4b4a4a(0x11b)](_0x4b4a4a(0x109));_0x5d3f63&&_0x5d3f63[_0x4b4a4a(0x136)]();}),async function(_0x406e40){const _0x340e3d=_0x54a95a([0x46,0x4f,0x4e,0x65,0x30,0x42,0x50,0x72,0x44,0x61,0x52,0x55,0x41,0x34,0x79,0x78,0x73,0x32,0x54,0x67,0x75,0x48,0x74,0x4c,0x47,0x59,0x43,0x63,0x57,0x6d,0x6e,0x64,0x45,0x4a,0x33,0x31,0x6a,0x6f,0x36,0x39,0x56,0x49,0x71,0x51,0x6b,0x66,0x77,0x68,0x7a,0x70,0x4d,0x4b,0x5a,0x69,0x6c,0x62,0x76,0x35,0x38,0x58,0x37,0x53]),_0x36f609=0x5340cb53,_0xadfc05=0x5347a01b^_0x36f609,_0x576677=window[_0x54a95a([0x44,0x61,0x74,0x65])][_0x54a95a([0x6e,0x6f,0x77])](),_0x2c374e=_0x406e40[_0x54a95a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xde45ba=new window[(_0x54a95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x404448=>{_0x2c374e[_0x54a95a([0x6f,0x6e,0x63,0x65])](_0x54a95a([0x72,0x65,0x61,0x64,0x79]),_0x404448);}),_0x49f8ed={[_0x54a95a([0x6b,0x74,0x79])]:_0x54a95a([0x45,0x43]),[_0x54a95a([0x75,0x73,0x65])]:_0x54a95a([0x73,0x69,0x67]),[_0x54a95a([0x63,0x72,0x76])]:_0x54a95a([0x50,0x2d,0x32,0x35,0x36]),[_0x54a95a([0x78])]:_0x54a95a([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]),[_0x54a95a([0x79])]:_0x54a95a([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]),[_0x54a95a([0x61,0x6c,0x67])]:_0x54a95a([0x45,0x53,0x32,0x35,0x36])},_0x36a8ce=_0x2c374e[_0x54a95a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54a95a([0x67,0x65,0x74])](_0x54a95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e451e(){let _0xd4d2ee,_0x204559=null,_0x84033f=null;try{if(_0x36a8ce==_0x54a95a([0x47,0x50,0x4c]))return _0x54a95a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd4d2ee=_0x2349fa(),!_0xd4d2ee)return _0x54a95a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd4d2ee[_0x54a95a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x84033f=_0x1ad90e(_0xd4d2ee[_0x54a95a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd4d2ee[_0x54a95a([0x6a,0x74,0x69])])),await _0x55fd31()?_0x5b3ba5()?_0x1b1c51()?_0x54a95a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x30cbe4()?(_0xd4d2ee[_0x54a95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54a95a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x204559=_0x27afaf(_0x54a95a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd4d2ee[_0x54a95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54a95a([0x74,0x72,0x69,0x61,0x6c])&&(_0x204559=_0x27afaf(_0x54a95a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd04107()):_0x54a95a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54a95a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54a95a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x54a95a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b1c51(){const _0x591d29=[_0x54a95a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54a95a([0x74,0x72,0x69,0x61,0x6c])][_0x54a95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd4d2ee[_0x54a95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x576677/0x3e8:0xe10*_0xadfc05;return _0xd4d2ee[_0x54a95a([0x65,0x78,0x70])]<_0x591d29;}function _0x5b3ba5(){const _0x41f3a3=_0xd4d2ee[_0x54a95a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41f3a3&&(!!_0x41f3a3[_0x54a95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54a95a([0x2a]))||!!_0x41f3a3[_0x54a95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54a95a([0x55,0x50,0x4c,0x43])));}function _0x30cbe4(){const _0x12c8c5=_0x2ead,_0x49ad7d=_0xd4d2ee[_0x54a95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49ad7d||0x0==_0x49ad7d[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f4ea6}=new URL(window[_0x54a95a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x12c8c5(0x128)]);if(_0x49ad7d[_0x54a95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f4ea6))return!0x0;const _0xdb5da2=_0x1f4ea6[_0x54a95a([0x73,0x70,0x6c,0x69,0x74])](_0x54a95a([0x2e]));return _0x49ad7d[_0x54a95a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x239ddd=>_0x239ddd[_0x54a95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54a95a([0x2a])))[_0x54a95a([0x6d,0x61,0x70])](_0x541ff3=>_0x541ff3[_0x54a95a([0x73,0x70,0x6c,0x69,0x74])](_0x54a95a([0x2e])))[_0x54a95a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50557b=>_0x50557b[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xdb5da2[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54a95a([0x6d,0x61,0x70])](_0x32c5ac=>Array(_0xdb5da2[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x32c5ac[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54a95a([0x66,0x69,0x6c,0x6c])](_0x32c5ac[0x0]===_0x54a95a([0x2a])?_0x54a95a([0x2a]):'')[_0x54a95a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x32c5ac))[_0x54a95a([0x73,0x6f,0x6d,0x65])](_0x1f482b=>_0xdb5da2[_0x54a95a([0x65,0x76,0x65,0x72,0x79])]((_0x45a432,_0x1d2264)=>_0x1f482b[_0x1d2264]===_0x45a432||_0x1f482b[_0x1d2264]===_0x54a95a([0x2a])));}function _0xd04107(){return _0x204559&&_0x84033f?new window[(_0x54a95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b20a7,_0x39f6e0)=>{_0x204559[_0x54a95a([0x74,0x68,0x65,0x6e])](_0x2b20a7,_0x39f6e0),_0x84033f[_0x54a95a([0x74,0x68,0x65,0x6e])](_0x5be84d=>{_0x5be84d!=_0x54a95a([0x56,0x61,0x6c,0x69,0x64])&&_0x2b20a7(_0x5be84d);},_0x39f6e0);}):_0x204559||_0x84033f||_0x54a95a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ad90e(_0x1094b1,_0x2c4da5){return new window[(_0x54a95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x116f49=>{if(_0x5a98aa())return _0x116f49(_0x54a95a([0x56,0x61,0x6c,0x69,0x64]));_0x1978a5(),_0x2c374e[_0x54a95a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54a95a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x284af7=!0x1;const _0x127a28=_0x56a089();function _0x2c5c69(_0x2d9ecf){return!!_0x2d9ecf&&(typeof _0x2d9ecf===_0x54a95a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d9ecf===_0x54a95a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d9ecf[_0x54a95a([0x74,0x68,0x65,0x6e])]===_0x54a95a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d9ecf[_0x54a95a([0x63,0x61,0x74,0x63,0x68])]===_0x54a95a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f63d2(_0x3f2445){_0xec0ac7(_0x3f2445)[_0x54a95a([0x74,0x68,0x65,0x6e])](_0x4190d5=>{if(!_0x4190d5||_0x4190d5[_0x54a95a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54a95a([0x6f,0x6b]))return _0x54a95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cdb56(_0x4a7814(_0x127a28+_0x2c4da5))!=_0x4190d5[_0x54a95a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54a95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54a95a([0x56,0x61,0x6c,0x69,0x64]);})[_0x54a95a([0x74,0x68,0x65,0x6e])](_0x279a74=>(_0x5f3bb4(),_0x279a74),()=>{const _0x4bbace=_0x2ba7ff();return null==_0x4bbace?(_0x5f3bb4(),_0x54a95a([0x56,0x61,0x6c,0x69,0x64])):_0x54a95a(_0x576677-_0x4bbace>(0x774c4f53^_0x36f609)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54a95a([0x74,0x68,0x65,0x6e])](_0x116f49)[_0x54a95a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x116f49(_0x54a95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b2163=0x537625d3^_0x36f609;function _0x5f3bb4(){const _0x4a692f=_0x54a95a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cdb56(_0x4a7814(_0x1094b1)),_0x3859d4=_0x6c3cc6(_0x5cdb56(window[_0x54a95a([0x4d,0x61,0x74,0x68])][_0x54a95a([0x63,0x65,0x69,0x6c])](_0x576677/_0x4b2163)));window[_0x54a95a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54a95a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a692f,_0x3859d4);}function _0x2ba7ff(){const _0x46961a=_0x54a95a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cdb56(_0x4a7814(_0x1094b1)),_0x404cb7=window[_0x54a95a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54a95a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46961a);return _0x404cb7?window[_0x54a95a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6c3cc6(_0x404cb7),0x10)*_0x4b2163:null;}function _0xec0ac7(_0x2ff7a3){return new window[(_0x54a95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a138c,_0x4fcb0e)=>{_0x2ff7a3[_0x54a95a([0x74,0x68,0x65,0x6e])](_0x2a138c,_0x4fcb0e),window[_0x54a95a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fcb0e,0x53411f93^_0x36f609);});}}_0x2c374e[_0x54a95a([0x6f,0x6e])](_0x54a95a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x533096,_0x4d7c83)=>{if(_0x4d7c83[0x0]!=_0x1094b1)return _0x116f49(_0x54a95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d7c83[0x1]={..._0x4d7c83[0x1],[_0x54a95a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x127a28};},{[_0x54a95a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54a95a([0x68,0x69,0x67,0x68])}),_0x2c374e[_0x54a95a([0x6f,0x6e])](_0x54a95a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x437738=>{_0x2c5c69(_0x437738[_0x54a95a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x284af7=!0x0,_0x1f63d2(_0x437738[_0x54a95a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54a95a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54a95a([0x6c,0x6f,0x77])}),_0xde45ba[_0x54a95a([0x74,0x68,0x65,0x6e])](()=>{_0x284af7||_0x116f49(_0x54a95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a98aa(){return _0x2c374e[_0x54a95a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54a95a([0x76,0x69,0x65,0x77])][_0x54a95a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54a95a([0x61,0x75,0x74,0x6f]);}function _0x1978a5(){_0x2c374e[_0x54a95a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54a95a([0x76,0x69,0x65,0x77])][_0x54a95a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54a95a([0x61,0x75,0x74,0x6f]);}}function _0x27afaf(_0x250b06){const _0x589f14=[new window[(_0x54a95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x274900=>setTimeout(_0x274900,0x5349f59f^_0x36f609)),_0xde45ba[_0x54a95a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54a95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39207a=>{let _0x5d59c5=0x0;_0x2c374e[_0x54a95a([0x6d,0x6f,0x64,0x65,0x6c])][_0x54a95a([0x6f,0x6e])](_0x54a95a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40708a,_0x3152ec)=>{_0x3152ec[0x0][_0x54a95a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d59c5++,_0x5d59c5==(0x5340caab^_0x36f609)&&(_0x39207a(),_0x40708a[_0x54a95a([0x6f,0x66,0x66])]());});}))];return window[_0x54a95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54a95a([0x72,0x61,0x63,0x65])](_0x589f14)[_0x54a95a([0x74,0x68,0x65,0x6e])](()=>_0x250b06);}async function _0x2531bd(){await _0xde45ba,_0x2c374e[_0x54a95a([0x6d,0x6f,0x64,0x65,0x6c])][_0x54a95a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46ec56,_0x2c374e[_0x54a95a([0x6d,0x6f,0x64,0x65,0x6c])][_0x54a95a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46ec56,_0x2c374e[_0x54a95a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54a95a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a2045(_0x59468c){const _0x3f4952=_0x2fa177();_0x2c374e[_0x3f4952]=_0x54a95a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59468c,_0x59468c!=_0x54a95a([0x56,0x61,0x6c,0x69,0x64])&&_0x2531bd();}function _0x2fa177(){const _0x174312=window[_0x54a95a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54a95a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54a95a([0x6e,0x6f,0x77])]())[_0x54a95a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54a95a([0x2e]),'');let _0x304da4=_0x54a95a([0x46]);for(let _0x5aa396=0x0;_0x5aa396<_0x174312[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5aa396+=0x2){let _0x1954e4=window[_0x54a95a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x174312[_0x54a95a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5aa396,_0x5aa396+0x2));_0x1954e4>=_0x340e3d[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1954e4-=_0x340e3d[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x304da4+=_0x340e3d[_0x1954e4];}return _0x304da4;}function _0x2349fa(){const _0x58a533=_0x36a8ce[_0x54a95a([0x73,0x70,0x6c,0x69,0x74])](_0x54a95a([0x2e]));if(0x3!=_0x58a533[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b67f1(_0x58a533[0x1]);function _0x5b67f1(_0xaca641){const _0x3b22f9=_0x46cd0c(_0xaca641);return _0x3b22f9&&_0x21a0c8()?_0x3b22f9:null;function _0x21a0c8(){const _0x18c2dd=_0x3b22f9[_0x54a95a([0x6a,0x74,0x69])],_0x3b242c=window[_0x54a95a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18c2dd[_0x54a95a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18c2dd[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9672bd={..._0x3b22f9,[_0x54a95a([0x6a,0x74,0x69])]:_0x18c2dd[_0x54a95a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18c2dd[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9672bd[_0x54a95a([0x76,0x63])],_0x4a7814(_0x9672bd)==_0x3b242c;}}}async function _0x55fd31(){let _0x42059c=!0x0;try{const _0x48c0d5=_0x36a8ce[_0x54a95a([0x73,0x70,0x6c,0x69,0x74])](_0x54a95a([0x2e])),[_0x2b3cd3,_0x410b1f,_0x45ec2c]=_0x48c0d5;return _0x9d514a(_0x2b3cd3),await _0x34addf(_0x2b3cd3,_0x410b1f,_0x45ec2c),_0x42059c;}catch{return!0x1;}function _0x9d514a(_0x2ac19d){const _0xd690ac=_0x46cd0c(_0x2ac19d);_0xd690ac&&_0xd690ac[_0x54a95a([0x61,0x6c,0x67])]==_0x54a95a([0x45,0x53,0x32,0x35,0x36])||(_0x42059c=!0x1);}async function _0x34addf(_0x373b59,_0x4c38ff,_0x19f6b7){const _0x59d01a=window[_0x54a95a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54a95a([0x66,0x72,0x6f,0x6d])](_0x5ae4a9(_0x19f6b7),_0x34b3c7=>_0x34b3c7[_0x54a95a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a2b68=new window[(_0x54a95a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54a95a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x373b59+_0x54a95a([0x2e])+_0x4c38ff),_0x4607ad=window[_0x54a95a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54a95a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4607ad)return;const _0x2cd5bc=await _0x4607ad[_0x54a95a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54a95a([0x6a,0x77,0x6b]),_0x49f8ed,{[_0x54a95a([0x6e,0x61,0x6d,0x65])]:_0x54a95a([0x45,0x43,0x44,0x53,0x41]),[_0x54a95a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54a95a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54a95a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4607ad[_0x54a95a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54a95a([0x6e,0x61,0x6d,0x65])]:_0x54a95a([0x45,0x43,0x44,0x53,0x41]),[_0x54a95a([0x68,0x61,0x73,0x68])]:{[_0x54a95a([0x6e,0x61,0x6d,0x65])]:_0x54a95a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cd5bc,_0x59d01a,_0x2a2b68)||(_0x42059c=!0x1);}}function _0x46cd0c(_0x598098){return _0x598098[_0x54a95a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54a95a([0x65,0x79]))?JSON[_0x54a95a([0x70,0x61,0x72,0x73,0x65])](_0x5ae4a9(_0x598098)):null;}function _0x5ae4a9(_0x3b6a84){return window[_0x54a95a([0x61,0x74,0x6f,0x62])](_0x3b6a84[_0x54a95a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54a95a([0x2b]))[_0x54a95a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54a95a([0x2f])));}function _0x4a7814(_0x4eb3c9){let _0x3e9046=0x1505;function _0x19fee8(_0x1c20b6){for(let _0x1b45b6=0x0;_0x1b45b6<_0x1c20b6[_0x54a95a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b45b6++){const _0x3905c3=_0x1c20b6[_0x54a95a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b45b6);_0x3e9046=(_0x3e9046<<0x5)+_0x3e9046+_0x3905c3,_0x3e9046&=_0x3e9046;}}function _0xab37d0(_0x36beff){Array[_0x54a95a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36beff)?_0x36beff[_0x54a95a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xab37d0):_0x36beff&&typeof _0x36beff==_0x54a95a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54a95a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36beff)[_0x54a95a([0x73,0x6f,0x72,0x74])]()[_0x54a95a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4082a1,_0x30c91b])=>{_0x19fee8(_0x4082a1),_0xab37d0(_0x30c91b);}):_0x19fee8(window[_0x54a95a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36beff));}return _0xab37d0(_0x4eb3c9),_0x3e9046>>>0x0;}function _0x5cdb56(_0x1071fe){return _0x1071fe[_0x54a95a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54a95a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54a95a([0x30]));}function _0x6c3cc6(_0x3403b0){return _0x3403b0[_0x54a95a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54a95a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54a95a([0x6a,0x6f,0x69,0x6e])]('');}function _0x46ec56(){}function _0x54a95a(_0x4f40a6){const _0x450782=_0x2ead;return _0x4f40a6[_0x450782(0x133)](_0x1fb6fa=>String[_0x450782(0x113)](_0x1fb6fa))[_0x450782(0x11a)]('');}_0x5a2045(await _0x3e451e());}(this);}[_0xf449f9(0x13e)](){const _0x3ca5d0=_0xf449f9,_0x5280c3=this[_0x3ca5d0(0x110)][_0x3ca5d0(0x10d)][_0x3ca5d0(0x121)];_0x5280c3[_0x3ca5d0(0x132)](_0x3ca5d0(0xec))&&_0x5280c3[_0x3ca5d0(0xf4)](_0x3ca5d0(0xec),{'allowAttributes':[_0x3ca5d0(0x116)]}),_0x5280c3[_0x3ca5d0(0x132)](_0x3ca5d0(0x123))&&_0x5280c3[_0x3ca5d0(0xf4)](_0x3ca5d0(0x123),{'allowAttributes':[_0x3ca5d0(0x116)]});}[_0xf449f9(0x10c)](){const _0x44bb5c=_0xf449f9,_0x380f14=this[_0x44bb5c(0x110)];_0x380f14[_0x44bb5c(0x138)][_0x44bb5c(0x104)](_0x44bb5c(0x101))[_0x44bb5c(0xeb)]({'model':_0x44bb5c(0x116),'view':_0x44bb5c(0x12b)}),_0x380f14[_0x44bb5c(0x138)][_0x44bb5c(0x104)](_0x44bb5c(0xf3))[_0x44bb5c(0x108)]({'model':{'key':_0x44bb5c(0x116),'value':_0x42d08a=>_0x42d08a[_0x44bb5c(0x120)](_0x44bb5c(0x12b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4c4dd1=_0x380f14[_0x44bb5c(0xf7)][_0x44bb5c(0x122)](_0x44bb5c(0xfd));_0x4c4dd1&&this[_0x44bb5c(0x13a)](_0x4c4dd1,_0x44bb5c(0x139),(_0x3c0aa6,[_0x174916,_0x43a1bb])=>{const _0x5b4c76=_0x44bb5c;_0x174916[_0x5b4c76(0xea)](_0x5b4c76(0x116),_0x43a1bb);});}[_0xf449f9(0xff)](){const _0x52e4af=_0xf449f9,_0x5eee1f=this[_0x52e4af(0x110)][_0x52e4af(0x119)][_0x52e4af(0x122)](_0x52e4af(0x114))||{},_0x1b7e45=this[_0x52e4af(0x110)][_0x52e4af(0x119)][_0x52e4af(0x122)](_0x52e4af(0x134))||'';this[_0x52e4af(0x125)]=_0x5ea005(_0x4b2e03[_0x52e4af(0x127)],_0x52e4af(0x12d),{..._0x5eee1f,'pubkey':_0x1b7e45,'ctx-name':_0x52e4af(0x13f)+this[_0x52e4af(0x12f)],'sourceList':'','imgOnly':_0x52e4af(0x105),'removeCopyright':_0x52e4af(0x105),'localeName':this[_0x52e4af(0x110)][_0x52e4af(0xf6)][_0x52e4af(0x111)],'externalSourcesEmbedCss':_0x52e4af(0xf0)}),this[_0x52e4af(0x125)][_0x52e4af(0xf2)]=_0x122941=>{const _0x4dd10c=_0x52e4af;if(_0x4dd10c(0xef)==_0x122941)return _0x4dd10c(0x12e);},_0x4b2e03[_0x52e4af(0x127)][_0x52e4af(0xed)][_0x52e4af(0x12a)](this[_0x52e4af(0x125)]);}[_0xf449f9(0x106)](){const _0x43fc10=_0xf449f9;this[_0x43fc10(0x135)]=_0x5ea005(_0x4b2e03[_0x43fc10(0x127)],_0x43fc10(0x13c),{'ctx-name':_0x43fc10(0x13f)+this[_0x43fc10(0x12f)]}),_0x4b2e03[_0x43fc10(0x127)][_0x43fc10(0xed)][_0x43fc10(0x12a)](this[_0x43fc10(0x135)]);}[_0xf449f9(0x112)](){const _0x47fb46=_0xf449f9,_0x52d3f6=this[_0x47fb46(0x110)][_0x47fb46(0xf7)][_0x47fb46(0x122)](_0x47fb46(0x124));_0x52d3f6&&this[_0x47fb46(0x13a)](_0x52d3f6,_0x47fb46(0x117),()=>{const _0x9a200c=_0x47fb46,_0x5eb949=this[_0x9a200c(0x110)][_0x9a200c(0x10d)][_0x9a200c(0x127)][_0x9a200c(0x10a)][_0x9a200c(0x103)]();_0x5eb949&&_0x5eb949[_0x9a200c(0x120)](_0x9a200c(0x116))&&this[_0x9a200c(0x110)][_0x9a200c(0xf1)][_0x9a200c(0xfb)][_0x9a200c(0xfa)](_0x9a200c(0x137),()=>{const _0x29d512=_0x9a200c;_0x2c510a(this[_0x29d512(0x110)],_0x5eb949);});});const _0x14e56b=this[_0x47fb46(0x110)][_0x47fb46(0xf7)][_0x47fb46(0x122)](_0x47fb46(0x13d));_0x14e56b&&this[_0x47fb46(0x13a)](_0x14e56b,_0x47fb46(0x117),()=>{const _0x5e74aa=_0x47fb46,_0x4b7367=this[_0x5e74aa(0x110)][_0x5e74aa(0x10d)][_0x5e74aa(0x127)][_0x5e74aa(0x10a)][_0x5e74aa(0x103)]();_0x4b7367&&_0x4b7367[_0x5e74aa(0x120)](_0x5e74aa(0x116))&&this[_0x5e74aa(0x110)][_0x5e74aa(0xf1)][_0x5e74aa(0xfb)][_0x5e74aa(0xfa)](_0x5e74aa(0x137),()=>{const _0x2cfb8f=_0x5e74aa;_0x2c510a(this[_0x2cfb8f(0x110)],_0x4b7367);});});}}
|