@ckeditor/ckeditor5-uploadcare 47.4.0-alpha.5 → 47.4.0-alpha.6
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 _0x411dee,Command as _0x15449d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1b5dbb,IconGooglePhotos as _0x181f5c,IconGoogleDrive as _0x1a8aeb,IconFacebook as _0x157386,IconDropbox as _0x2f9d9a,IconUploadcareLink as _0x416241,IconUploadcareImageUpload as _0x51efa9,IconError as _0x1ad462,IconUploadcareImageEdit as _0x5de24c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x42d1da,MenuBarMenuListItemButtonView as _0xe46c93,View as _0x4d5da4,FocusCycler as _0x8b1b18,Dialog as _0x30d816,DialogViewPosition as _0x3b7cc4,SpinnerView as _0xd95576,IconView as _0x43d08b,Notification as _0x347fdc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x52cdec,DomEmitterMixin as _0x3a8364,global as _0x408f9f,getAncestors as _0x129f8b,ObservableMixin as _0x18582d,uid as _0x2c301d,createElement as _0xad3329}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x14c527}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5afc42,info as _0x13b9fa}from'@uploadcare/upload-client';import*as _0x4236ab from'@uploadcare/file-uploader';var i=function(_0x205e6f){return _0x205e6f['Local']='local',_0x205e6f['URL']='url',_0x205e6f['Dropbox']='dropbox',_0x205e6f['GDrive']='gdrive',_0x205e6f['Facebook']='facebook',_0x205e6f['GPhotos']='gphotos',_0x205e6f['OneDrive']='onedrive',_0x205e6f;}({});function _(_0x2e67d2,_0xed626,_0x153ae2){const t=_0x2e67d2['t'],_0x3ce1ce=_0x2e67d2['t'];switch(_0xed626){case i['Local']:return{'text':_0x3ce1ce('Insert'===_0x153ae2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3ce1ce('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x153ae2?_0x3ce1ce('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3ce1ce('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x153ae2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x153ae2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x153ae2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x153ae2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x153ae2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xed626;}}class e extends _0x411dee{['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 _0x41b4ca=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x16d5e5;for(const _0x1f984c in _0x41b4ca){const _0x38bc2a=_0x1f984c,_0x1a3c83=_0x41b4ca[_0x38bc2a];if('uploadcareLicenseKeyValid'==_0x1a3c83||'uploadcareLicenseKeyInvalid'==_0x1a3c83||'uploadcareLicenseKeyExpired'==_0x1a3c83||'uploadcareLicenseKeyDomainLimit'==_0x1a3c83||'uploadcareLicenseKeyNotAllowed'==_0x1a3c83||'uploadcareLicenseKeyEvaluationLimit'==_0x1a3c83||'uploadcareLicenseKeyUsageLimit'==_0x1a3c83){delete _0x41b4ca[_0x38bc2a],_0x16d5e5=_0x1a3c83,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x16d5e5&&_0x41b4ca['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xa8e30d}=this,_0x484f7e=_0xa8e30d['commands']['get']('uploadcare');if(!_0x484f7e)return;const _0x7f75d4=this['_normalizeConfigSourceList'](_0xa8e30d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1b4cd5,_0x402acc)=>{const _0x17de21=this['_getIntegrationKey'](_0x402acc['type']);return _0x1b4cd5[_0x17de21]||(_0x1b4cd5[_0x17de21]=[]),_0x1b4cd5[_0x17de21]['push'](_0x402acc),_0x1b4cd5;},{});_0xa8e30d['plugins']['has']('ImageInsertUI')&&_0xa8e30d['commands']['get']('uploadcare')&&Object['entries'](_0x7f75d4)['forEach'](([_0x3df5c6,_0x1aadac])=>{_0xa8e30d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3df5c6,'observable':()=>_0x484f7e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1aadac),'formViewCreator':()=>this['_createDropdownButtons'](_0x1aadac),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1aadac),'override':'assetManager'!==_0x3df5c6});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x903086){const {locale:_0x240b7d}=this['editor'];return _0x903086['map'](_0x3751f7=>{const _0x4c4d5a=_(_0x240b7d,_0x3751f7,'Insert');switch(_0x3751f7){case i['Local']:return{'icon':_0x51efa9,'type':i['Local'],..._0x4c4d5a};case i['URL']:return{'icon':_0x416241,'type':i['URL'],..._0x4c4d5a};case i['Dropbox']:return{'icon':_0x2f9d9a,'type':i['Dropbox'],..._0x4c4d5a};case i['Facebook']:return{'icon':_0x157386,'type':i['Facebook'],..._0x4c4d5a};case i['GDrive']:return{'icon':_0x1a8aeb,'type':i['GDrive'],..._0x4c4d5a};case i['GPhotos']:return{'icon':_0x181f5c,'type':i['GPhotos'],..._0x4c4d5a};case i['OneDrive']:return{'icon':_0x1b5dbb,'type':i['OneDrive'],..._0x4c4d5a};}});}['_getIntegrationKey'](_0xe2be59){switch(_0xe2be59){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x16bf9e,_0x6a447d){const _0x37738b=this['editor'],_0x2d34d3=new _0x16bf9e(_0x37738b['locale']),_0x316f15=_0x37738b['commands']['get']('uploadcare');return _0x2d34d3['bind']('isEnabled')['to'](_0x316f15),_0x2d34d3['on']('execute',()=>{_0x316f15['execute'](_0x6a447d);}),_0x2d34d3;}['_createToolbarButton'](_0x3315b6){const {locale:_0x157832}=this['editor'],_0x3e1ce8=this['editor']['plugins']['get']('ImageInsertUI'),_0x468af3=_0x3315b6[0x0],_0x3a068e=this['_createButton'](_0x42d1da,_0x468af3['type']);return _0x3a068e['icon']=_0x468af3['icon'],_0x3a068e['bind']('label')['to'](_0x3e1ce8,'isImageSelected',_0x503845=>_(_0x157832,_0x468af3['type'],_0x503845?'Replace':'Insert')['text']),_0x3a068e['tooltip']=!0x0,_0x3a068e;}['_createDropdownButtons'](_0x48bf2e){const {locale:_0x52b1f8}=this['editor'],_0x2f2e9c=this['editor']['plugins']['get']('ImageInsertUI');return _0x48bf2e['map'](_0x22d65d=>{const _0x1d47e4=this['_createButton'](_0x42d1da,_0x22d65d['type']);return _0x1d47e4['withText']=!0x0,_0x1d47e4['icon']=_0x22d65d['icon'],_0x1d47e4['bind']('label')['to'](_0x2f2e9c,'isImageSelected',_0x241d43=>_(_0x52b1f8,_0x22d65d['type'],_0x241d43?'Replace':'Insert')['text']),_0x1d47e4;});}['_createMenuBarButtons'](_0x2d885c){return _0x2d885c['map'](_0x1320ea=>{const _0x45029b=this['_createButton'](_0xe46c93,_0x1320ea['type']);return _0x45029b['icon']=_0x1320ea['icon'],_0x45029b['label']=_0x1320ea['shortText'],_0x45029b;});}}class F extends _0x4d5da4{['focusTracker'];['focusCycler'];constructor(_0x324c1c){super(_0x324c1c),this['focusTracker']=new _0x52cdec(),this['focusCycler']=new _0x8b1b18({'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(_0x26daf7,_0x22a4ec){super(_0x26daf7),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-'+_0x22a4ec}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x21e24f,_0x1c5964){const _0x27d5bc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c8366=>_0x2c8366<=_0x1c5964)['map'](_0x1b14ed=>_0x21e24f['replace'](/\/$/,'')+'/-/resize/'+_0x1b14ed+'x/\x20'+_0x1b14ed+'w');return{'imageFallbackUrl':_0x21e24f,'imageSources':[{'srcset':_0x27d5bc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1c5964+'px)\x20100vw,\x20'+_0x1c5964+'px','type':'image/webp'}]};}function S(_0x4d24b3,_0x239e68,_0x244c92){const _0x44f3e3=_0x4d24b3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x44f3e3?parseInt(_0x44f3e3[0x1],0xa):_0x239e68,'height':_0x44f3e3?parseInt(_0x44f3e3[0x2],0xa):_0x244c92};}function p(_0x49824c,_0xa26db){const _0x44feb4=new(_0x3a8364())(),_0x1f3cc3=_0x49824c['plugins']['get']('ImageUtils'),_0x1b6235=_0x49824c['editing']['mapper']['toViewElement'](_0xa26db),_0x49fd21=_0x1f3cc3['findViewImgElement'](_0x1b6235),_0x6ccf21=_0x49824c['editing']['view']['domConverter']['viewToDom'](_0x49fd21),_0x2df581=_0xa26db['getAttribute']('width'),_0x236634=_0xa26db['getAttribute']('height'),_0x94c700='image-processing';_0x49824c['editing']['view']['change'](_0x2ac5f3=>{_0x2ac5f3['addClass'](_0x94c700,_0x1b6235),_0x2ac5f3['setStyle']('aspect-ratio',_0x2df581+'/'+_0x236634,_0x49fd21);}),_0x44feb4['listenTo'](_0x6ccf21,'load',()=>{_0x44feb4['stopListening'](_0x6ccf21,'load'),_0x49824c['editing']['view']['change'](_0x4f2937=>{_0x4f2937['removeClass'](_0x94c700,_0x1b6235),_0x4f2937['removeStyle']('aspect-ratio',_0x49fd21);});});}function G(_0x41e22d){if(Array['isArray'](_0x41e22d)){const _0x100c81=_0x41e22d['map'](G);return _0x2d3a8f=>_0x100c81['some'](_0x337a6c=>_0x337a6c(_0x2d3a8f));}if('origin'==_0x41e22d){const _0x350832=_0x408f9f['window']['location']['origin'];return _0x123dfe=>new URL(_0x123dfe,_0x408f9f['document']['baseURI'])['origin']==_0x350832;}return'function'==typeof _0x41e22d?_0x41e22d:_0x41e22d instanceof RegExp?_0x4f8f2f=>!(!_0x4f8f2f['match'](_0x41e22d)&&!_0x4f8f2f['replace'](/^https?:\/\//,'')['match'](_0x41e22d)):()=>!0x1;}function A(_0x5b8fcb,_0x37c18c){return _0x129f8b(_0x5b8fcb['target'])['includes'](_0x37c18c);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x18582d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b148c,_0x2dee44,_0x29bc3f){super(),this['_editor']=_0x4b148c,this['_editing']=_0x2dee44,this['_dialog']=_0x4b148c['plugins']['get'](_0x30d816),this['_api']=_0x2dee44['ctxElement']['getAPI'](),this['_type']=_0x29bc3f,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:_0x5c788b,model:_0x44b679}=this['_editor'],_0x3b0c08=_0x44b679['document']['selection']['getSelectedElement'](),_0x14848c=_0x3b0c08&&(_0x3b0c08['is']('element','imageBlock')||_0x3b0c08['is']('element','imageInline'));this['_formView']=new x(_0x5c788b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x51efa9,'title':_(_0x5c788b,this['_type'],_0x14848c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3b7cc4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a4753=>!A(_0x5a4753,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x37b47a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2396a4=>{const _0x486a0c=_0x37b47a['length'];for(const _0x37ee6e of _0x37b47a){const _0x28927e=_0x37ee6e===_0x37b47a[_0x486a0c-0x1],{cdnUrl:_0x109fd8,fileInfo:_0x5f41c4}=_0x37ee6e;if(!_0x109fd8||!_0x5f41c4)continue;const {width:_0x330857,height:_0x13d48c}=_0x5f41c4['imageInfo'],_0x38e469=S(_0x109fd8,_0x330857,_0x13d48c),_0x3456be=C(_0x109fd8,_0x38e469['width']),_0x4fd538={'id':_0x5f41c4['uuid'],'type':'image','attributes':{'imageDimension':_0x38e469,..._0x3456be}};this['_insertAsset'](_0x4fd538,_0x28927e,_0x2396a4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x26b0f9=>{'idle'===_0x26b0f9['detail']['status']&&!_0x26b0f9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x58f5d6,_0x30b04,_0x319546){const _0x5b088c=this['_editor']['model']['document']['selection'],_0x3e0396=_0x5b088c['getSelectedElement'](),_0x27b720=!(!_0x3e0396||!_0x3e0396['is']('element','imageInline'));_0x319546['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x58f5d6,_0x27b720),_0x30b04||_0x319546['setSelection'](_0x5b088c['getLastPosition']());}['_insertImage'](_0x15f5de,_0x315d64){const _0x4e468e=this['_editor'],{imageDimension:_0x2b9648,imageFallbackUrl:_0xcb9100,imageSources:_0x41459f}=_0x15f5de['attributes'];_0x4e468e['execute']('insertImage',{'imageType':_0x315d64?'imageInline':null,'source':{'uploadcareImageId':_0x15f5de['id'],'src':_0xcb9100,'sources':_0x41459f,..._0x2b9648}});}}class w extends _0x15449d{['_editing'];['_controller']=null;static get['requires'](){return[_0x30d816,o];}constructor(_0x48d8a3){super(_0x48d8a3),this['_editing']=_0x48d8a3['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1b919e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1b919e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xe47ed7,..._0x3c90f3}){return _0x5afc42(_0xe47ed7,_0x3c90f3);}static['getInfo'](_0x1eeeb7,_0x448c42){return _0x13b9fa(_0x1eeeb7,_0x448c42);}}class f extends _0x411dee{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x14c527,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x51433f=this['editor'];if(!!!_0x51433f['config']['get']('uploadcare'))return;_0x51433f['plugins']['get'](_0x14c527)['createUploadAdapter']=_0x53ce04=>new k(_0x53ce04,_0x51433f),_0x51433f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1ecdb9,{imageElement:_0x32a753,data:_0x5a0317})=>{_0x51433f['model']['change'](_0x5996b4=>{_0x5996b4['setAttribute']('uploadcareImageId',_0x5a0317['uploadcareImageId'],_0x32a753);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x38d63f,_0x96e525){this['loader']=_0x38d63f,this['editor']=_0x96e525,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4620e1=await this['loader']['file'];return j['upload']({'file':_0x4620e1,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x57257e=>{_0x57257e&&_0x57257e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x57257e['value']);}})['then'](async _0x15734a=>{const {imageFallbackUrl:_0x401754,imageSources:_0x2fc252}=C(_0x15734a['cdnUrl'],_0x15734a['imageInfo']['width']);return{'uploadcareImageId':_0x15734a['uuid'],'default':_0x401754,'sources':_0x2fc252};})['catch'](()=>{const _0x12130b=t('Cannot\x20upload\x20file:')+('\x20'+_0x4620e1['name']+'.');return Promise['reject'](_0x12130b);});}['abort'](){this['controller']['abort']();}}class o extends _0x411dee{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x30d816];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2716e1){super(_0x2716e1),this['ucContextId']=_0x2c301d();}['init'](){const _0x18a4c5=this['editor'];_0x18a4c5['commands']['add']('uploadcare',new w(_0x18a4c5));}['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 _0x3a80cf=_0x408f9f['document']['querySelector']('input[uploadcare-file-input]');_0x3a80cf&&_0x3a80cf['remove']();}),async function(_0x2097ee){const _0x2462a4=_0x267bc6([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x190da2=0x535f8c3a,_0x143cc3=0x5358f28a^_0x190da2,_0x798415=window[_0x267bc6([0x44,0x61,0x74,0x65])][_0x267bc6([0x6e,0x6f,0x77])](),_0x2d45a5=_0x2097ee[_0x267bc6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x426c3b=new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x430d1a=>{_0x2d45a5[_0x267bc6([0x6f,0x6e,0x63,0x65])](_0x267bc6([0x72,0x65,0x61,0x64,0x79]),_0x430d1a);}),_0x3fd26b={[_0x267bc6([0x6b,0x74,0x79])]:_0x267bc6([0x45,0x43]),[_0x267bc6([0x75,0x73,0x65])]:_0x267bc6([0x73,0x69,0x67]),[_0x267bc6([0x63,0x72,0x76])]:_0x267bc6([0x50,0x2d,0x32,0x35,0x36]),[_0x267bc6([0x78])]:_0x267bc6([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]),[_0x267bc6([0x79])]:_0x267bc6([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]),[_0x267bc6([0x61,0x6c,0x67])]:_0x267bc6([0x45,0x53,0x32,0x35,0x36])},_0x115a7a=_0x2d45a5[_0x267bc6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x267bc6([0x67,0x65,0x74])](_0x267bc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x161728(){let _0x2709f2,_0x55e7b9=null,_0x1bc950=null;try{if(_0x115a7a==_0x267bc6([0x47,0x50,0x4c]))return _0x267bc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2709f2=_0x9d3c33(),!_0x2709f2)return _0x267bc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2709f2[_0x267bc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bc950=_0x1f1fab(_0x2709f2[_0x267bc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2709f2[_0x267bc6([0x6a,0x74,0x69])])),await _0x5f4fb1()?_0x4cd9b9()?_0x1c238d()?_0x267bc6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x159860()?(_0x2709f2[_0x267bc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x267bc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55e7b9=_0x94c320(_0x267bc6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17490e()):_0x267bc6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x267bc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x267bc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x267bc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c238d(){const _0x372e76=[_0x267bc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x267bc6([0x74,0x72,0x69,0x61,0x6c])][_0x267bc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2709f2[_0x267bc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x798415/0x3e8:0xe10*_0x143cc3;return _0x2709f2[_0x267bc6([0x65,0x78,0x70])]<_0x372e76;}function _0x4cd9b9(){const _0xaac06c=_0x2709f2[_0x267bc6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xaac06c&&(!!_0xaac06c[_0x267bc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x267bc6([0x2a]))||!!_0xaac06c[_0x267bc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x267bc6([0x55,0x50,0x4c,0x43])));}function _0x159860(){const _0x2f61ae=_0x2709f2[_0x267bc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f61ae||0x0==_0x2f61ae[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d0256}=new URL(window[_0x267bc6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f61ae[_0x267bc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d0256))return!0x0;const _0x204a1a=_0x5d0256[_0x267bc6([0x73,0x70,0x6c,0x69,0x74])](_0x267bc6([0x2e]));return _0x2f61ae[_0x267bc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54f796=>_0x54f796[_0x267bc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x267bc6([0x2a])))[_0x267bc6([0x6d,0x61,0x70])](_0x5acf50=>_0x5acf50[_0x267bc6([0x73,0x70,0x6c,0x69,0x74])](_0x267bc6([0x2e])))[_0x267bc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2bd6c1=>_0x2bd6c1[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x204a1a[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x267bc6([0x6d,0x61,0x70])](_0x724e3=>Array(_0x204a1a[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x724e3[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x267bc6([0x66,0x69,0x6c,0x6c])](_0x724e3[0x0]===_0x267bc6([0x2a])?_0x267bc6([0x2a]):'')[_0x267bc6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x724e3))[_0x267bc6([0x73,0x6f,0x6d,0x65])](_0x1b7f50=>_0x204a1a[_0x267bc6([0x65,0x76,0x65,0x72,0x79])]((_0x109b7c,_0x360f9c)=>_0x1b7f50[_0x360f9c]===_0x109b7c||_0x1b7f50[_0x360f9c]===_0x267bc6([0x2a])));}function _0x17490e(){return _0x55e7b9&&_0x1bc950?new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f0cdc,_0x52d101)=>{_0x55e7b9[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x3f0cdc,_0x52d101),_0x1bc950[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x496feb=>{_0x496feb!=_0x267bc6([0x56,0x61,0x6c,0x69,0x64])&&_0x3f0cdc(_0x496feb);},_0x52d101);}):_0x55e7b9||_0x1bc950||_0x267bc6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f1fab(_0x32d6db,_0x1383cb){return new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x227bbc=>{if(_0x1ffffd())return _0x227bbc(_0x267bc6([0x56,0x61,0x6c,0x69,0x64]));_0x48d598(),_0x2d45a5[_0x267bc6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x267bc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc984b3=!0x1;const _0x4b777e=_0x2c301d();function _0x41d22d(_0x1e3833){return!!_0x1e3833&&(typeof _0x1e3833===_0x267bc6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e3833===_0x267bc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e3833[_0x267bc6([0x74,0x68,0x65,0x6e])]===_0x267bc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e3833[_0x267bc6([0x63,0x61,0x74,0x63,0x68])]===_0x267bc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19597e(_0x456d3a){_0x4e6261(_0x456d3a)[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x12e956=>{if(!_0x12e956||_0x12e956[_0x267bc6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x267bc6([0x6f,0x6b]))return _0x267bc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ac1ac(_0x8d23b5(_0x4b777e+_0x1383cb))!=_0x12e956[_0x267bc6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x267bc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x267bc6([0x56,0x61,0x6c,0x69,0x64]);})[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x2be1fb=>(_0x3023b2(),_0x2be1fb),()=>{const _0x2785b1=_0x5c8ea1();return null==_0x2785b1?(_0x3023b2(),_0x267bc6([0x56,0x61,0x6c,0x69,0x64])):_0x267bc6(_0x798415-_0x2785b1>(0x7753083a^_0x190da2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x227bbc)[_0x267bc6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x227bbc(_0x267bc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3bd858=0x536962ba^_0x190da2;function _0x3023b2(){const _0x489a4d=_0x267bc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ac1ac(_0x8d23b5(_0x32d6db)),_0x39d5e5=_0x10961f(_0x3ac1ac(window[_0x267bc6([0x4d,0x61,0x74,0x68])][_0x267bc6([0x63,0x65,0x69,0x6c])](_0x798415/_0x3bd858)));window[_0x267bc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x267bc6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x489a4d,_0x39d5e5);}function _0x5c8ea1(){const _0x38c8fb=_0x267bc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ac1ac(_0x8d23b5(_0x32d6db)),_0x15db3a=window[_0x267bc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x267bc6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38c8fb);return _0x15db3a?window[_0x267bc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10961f(_0x15db3a),0x10)*_0x3bd858:null;}function _0x4e6261(_0x3da40f){return new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x148148,_0x16782a)=>{_0x3da40f[_0x267bc6([0x74,0x68,0x65,0x6e])](_0x148148,_0x16782a),window[_0x267bc6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16782a,0x535e58fa^_0x190da2);});}}_0x2d45a5[_0x267bc6([0x6f,0x6e])](_0x267bc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2578a3,_0x5a328d)=>{if(_0x5a328d[0x0]!=_0x32d6db)return _0x227bbc(_0x267bc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a328d[0x1]={..._0x5a328d[0x1],[_0x267bc6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b777e};},{[_0x267bc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x267bc6([0x68,0x69,0x67,0x68])}),_0x2d45a5[_0x267bc6([0x6f,0x6e])](_0x267bc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38e807=>{_0x41d22d(_0x38e807[_0x267bc6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc984b3=!0x0,_0x19597e(_0x38e807[_0x267bc6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x267bc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x267bc6([0x6c,0x6f,0x77])}),_0x426c3b[_0x267bc6([0x74,0x68,0x65,0x6e])](()=>{_0xc984b3||_0x227bbc(_0x267bc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ffffd(){return _0x2d45a5[_0x267bc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x267bc6([0x76,0x69,0x65,0x77])][_0x267bc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x267bc6([0x61,0x75,0x74,0x6f]);}function _0x48d598(){_0x2d45a5[_0x267bc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x267bc6([0x76,0x69,0x65,0x77])][_0x267bc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x267bc6([0x61,0x75,0x74,0x6f]);}}function _0x94c320(_0x26b57b){const _0x48ec95=[new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2314=>setTimeout(_0x3d2314,0x5356b2f6^_0x190da2)),_0x426c3b[_0x267bc6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3710de=>{let _0xf25b16=0x0;_0x2d45a5[_0x267bc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x267bc6([0x6f,0x6e])](_0x267bc6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5add8e,_0x3421bd)=>{_0x3421bd[0x0][_0x267bc6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf25b16++,_0xf25b16==(0x535f89d2^_0x190da2)&&(_0x3710de(),_0x5add8e[_0x267bc6([0x6f,0x66,0x66])]());});}))];return window[_0x267bc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x267bc6([0x72,0x61,0x63,0x65])](_0x48ec95)[_0x267bc6([0x74,0x68,0x65,0x6e])](()=>_0x26b57b);}async function _0x49b388(){await _0x426c3b,_0x2d45a5[_0x267bc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x267bc6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1de8fa,_0x2d45a5[_0x267bc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x267bc6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1de8fa,_0x2d45a5[_0x267bc6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x267bc6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2491c6(_0x350071){const _0x3ead58=_0x8bfb57();_0x2d45a5[_0x3ead58]=_0x267bc6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x350071,_0x350071!=_0x267bc6([0x56,0x61,0x6c,0x69,0x64])&&_0x49b388();}function _0x8bfb57(){const _0x5723e3=window[_0x267bc6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x267bc6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x267bc6([0x6e,0x6f,0x77])]())[_0x267bc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x267bc6([0x2e]),'');let _0x5a55bf=_0x267bc6([0x68]);for(let _0x33f680=0x0;_0x33f680<_0x5723e3[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33f680+=0x2){let _0x3b6e4f=window[_0x267bc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5723e3[_0x267bc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33f680,_0x33f680+0x2));_0x3b6e4f>=_0x2462a4[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b6e4f-=_0x2462a4[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a55bf+=_0x2462a4[_0x3b6e4f];}return _0x5a55bf;}function _0x9d3c33(){const _0x960d0a=_0x115a7a[_0x267bc6([0x73,0x70,0x6c,0x69,0x74])](_0x267bc6([0x2e]));if(0x3!=_0x960d0a[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ee976(_0x960d0a[0x1]);function _0x2ee976(_0x4bf4c1){const _0x113308=_0xaa2c35(_0x4bf4c1);return _0x113308&&_0x3a5de0()?_0x113308:null;function _0x3a5de0(){const _0x358220=_0x113308[_0x267bc6([0x6a,0x74,0x69])],_0xb67f85=window[_0x267bc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x358220[_0x267bc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x358220[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26fbb1={..._0x113308,[_0x267bc6([0x6a,0x74,0x69])]:_0x358220[_0x267bc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x358220[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26fbb1[_0x267bc6([0x76,0x63])],_0x8d23b5(_0x26fbb1)==_0xb67f85;}}}async function _0x5f4fb1(){let _0x2cc6f0=!0x0;try{const _0x548485=_0x115a7a[_0x267bc6([0x73,0x70,0x6c,0x69,0x74])](_0x267bc6([0x2e])),[_0x45ac3e,_0x29c060,_0x225954]=_0x548485;return _0x876ae4(_0x45ac3e),await _0x3e72f5(_0x45ac3e,_0x29c060,_0x225954),_0x2cc6f0;}catch{return!0x1;}function _0x876ae4(_0x2e2fe1){const _0x5ab220=_0xaa2c35(_0x2e2fe1);_0x5ab220&&_0x5ab220[_0x267bc6([0x61,0x6c,0x67])]==_0x267bc6([0x45,0x53,0x32,0x35,0x36])||(_0x2cc6f0=!0x1);}async function _0x3e72f5(_0x58ed69,_0x107499,_0xfeb023){const _0x57e378=window[_0x267bc6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x267bc6([0x66,0x72,0x6f,0x6d])](_0x32cf9e(_0xfeb023),_0x296ae8=>_0x296ae8[_0x267bc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2cb1a6=new window[(_0x267bc6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x267bc6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58ed69+_0x267bc6([0x2e])+_0x107499),_0x59d6a9=window[_0x267bc6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x267bc6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59d6a9)return;const _0x4de49b=await _0x59d6a9[_0x267bc6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x267bc6([0x6a,0x77,0x6b]),_0x3fd26b,{[_0x267bc6([0x6e,0x61,0x6d,0x65])]:_0x267bc6([0x45,0x43,0x44,0x53,0x41]),[_0x267bc6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x267bc6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x267bc6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59d6a9[_0x267bc6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x267bc6([0x6e,0x61,0x6d,0x65])]:_0x267bc6([0x45,0x43,0x44,0x53,0x41]),[_0x267bc6([0x68,0x61,0x73,0x68])]:{[_0x267bc6([0x6e,0x61,0x6d,0x65])]:_0x267bc6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4de49b,_0x57e378,_0x2cb1a6)||(_0x2cc6f0=!0x1);}}function _0xaa2c35(_0x4205ab){return _0x4205ab[_0x267bc6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x267bc6([0x65,0x79]))?JSON[_0x267bc6([0x70,0x61,0x72,0x73,0x65])](_0x32cf9e(_0x4205ab)):null;}function _0x32cf9e(_0x105fbc){return window[_0x267bc6([0x61,0x74,0x6f,0x62])](_0x105fbc[_0x267bc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x267bc6([0x2b]))[_0x267bc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x267bc6([0x2f])));}function _0x8d23b5(_0x59b568){let _0x54443d=0x1505;function _0x503430(_0xd34ae0){for(let _0x135276=0x0;_0x135276<_0xd34ae0[_0x267bc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x135276++){const _0x177d1d=_0xd34ae0[_0x267bc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x135276);_0x54443d=(_0x54443d<<0x5)+_0x54443d+_0x177d1d,_0x54443d&=_0x54443d;}}function _0x2318f1(_0x27a1b1){Array[_0x267bc6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27a1b1)?_0x27a1b1[_0x267bc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2318f1):_0x27a1b1&&typeof _0x27a1b1==_0x267bc6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x267bc6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27a1b1)[_0x267bc6([0x73,0x6f,0x72,0x74])]()[_0x267bc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x106872,_0x467b84])=>{_0x503430(_0x106872),_0x2318f1(_0x467b84);}):_0x503430(window[_0x267bc6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27a1b1));}return _0x2318f1(_0x59b568),_0x54443d>>>0x0;}function _0x3ac1ac(_0x711895){return _0x711895[_0x267bc6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x267bc6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x267bc6([0x30]));}function _0x10961f(_0x244553){return _0x244553[_0x267bc6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x267bc6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x267bc6([0x6a,0x6f,0x69,0x6e])]('');}function _0x1de8fa(){}function _0x267bc6(_0x40564d){return _0x40564d['map'](_0x5bc2d9=>String['fromCharCode'](_0x5bc2d9))['join']('');}_0x2491c6(await _0x161728());}(this);}['_initSchema'](){const _0x19e09d=this['editor']['model']['schema'];_0x19e09d['isRegistered']('imageBlock')&&_0x19e09d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x19e09d['isRegistered']('imageInline')&&_0x19e09d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3b20a=this['editor'];_0x3b20a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3b20a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x30ee0d=>_0x30ee0d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x37ee89=_0x3b20a['commands']['get']('replaceImageSource');_0x37ee89&&this['listenTo'](_0x37ee89,'cleanupImage',(_0x3b443d,[_0x48ec23,_0x7ff63e])=>{_0x48ec23['removeAttribute']('uploadcareImageId',_0x7ff63e);});}['_initConfig'](){const _0x29ac94=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5d8c40=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xad3329(_0x408f9f['document'],'uc-config',{..._0x29ac94,'pubkey':_0x5d8c40,'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']=_0x45d363=>{if('closeMax'==_0x45d363)return'#uc-icon-arrow-down';},_0x408f9f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xad3329(_0x408f9f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x408f9f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2fa0b1=this['editor']['commands']['get']('insertImage');_0x2fa0b1&&this['listenTo'](_0x2fa0b1,'execute',()=>{const _0x3cfb8d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3cfb8d&&_0x3cfb8d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3cfb8d);});});const _0x636b6a=this['editor']['commands']['get']('uploadcareImageReplace');_0x636b6a&&this['listenTo'](_0x636b6a,'execute',()=>{const _0x1cd35b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1cd35b&&_0x1cd35b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1cd35b);});});}}class tt extends _0x411dee{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e0ad0){super(_0x2e0ad0),_0x2e0ad0['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4236ab['defineComponents'](_0x4236ab),this['_defineLocale']();}['_defineLocale'](){const _0x55f958=this['editor']['config']['get']('uploadcare.locale'),_0x4dea78=this['editor']['locale']['contentLanguage'];_0x55f958&&_0x4236ab['defineLocale'](_0x4dea78,_0x55f958);}}class ii extends _0x4d5da4{constructor(_0x502c4f){super(_0x502c4f);const t=_0x502c4f['t'],_0x3c7d87=this['bindTemplate'],_0x6f07c7=new _0xd95576();_0x6f07c7['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':[_0x6f07c7,{'text':_0x3c7d87['to']('imageUploadProgress',_0x238d61=>t('Loading\x20image...')+'\x20('+(_0x238d61||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 _0x4d5da4{constructor(_0x4475e1){super(_0x4475e1);const t=_0x4475e1['t'];this['set']('errorType',null);const _0x59462e=new _0x42d1da(_0x4475e1);_0x59462e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x59462e['withText']=!0x0,_0x59462e['class']='ck-button-action',_0x59462e['on']('execute',()=>{this['fire']('retry');}),_0x59462e['bind']('isVisible')['to'](this,'errorType',_0x589272=>'NotFound'!==_0x589272);const _0x45be71=new _0x43d08b();_0x45be71['content']=_0x1ad462,_0x45be71['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xa562f2=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':[_0x45be71,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xa562f2['to']('errorType',_0xe159e8=>t('NotFound'!==_0xe159e8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x59462e]},{'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 _0x4d5da4{constructor(_0x124bc4,_0x4be6fd){super(_0x124bc4);const _0xdc5eef=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4be6fd,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xdc5eef['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4f4727,_0x7bd428,_0xe52ec5){super(_0x4f4727),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4f4727),this['_errorView']=new ti(_0x4f4727),this['_editingView']=new ei(_0x4f4727,_0xe52ec5),this['_focusableView']=new _0x4d5da4(_0x4f4727),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x7bd428),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'],_0x3f53a9=>{this['_addUploadcareImageEditorListeners'](_0x3f53a9);});}),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'](_0x1ba8a7,_0x3ec229){const _0x7cae15='uc-cloud-image-editor',_0x53c882=_0x1ba8a7['querySelector'](_0x7cae15);if(_0x53c882)return _0x3ec229(_0x53c882);const _0x21bd01=new MutationObserver(_0x22af92=>{const _0x12f214=_0x22af92['filter'](_0x32c8f4=>_0x32c8f4['target']===_0x1ba8a7&&_0x32c8f4['addedNodes']['length']>0x0&&_0x32c8f4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x7cae15);_0x12f214['length']&&(_0x21bd01['disconnect'](),_0x3ec229(_0x12f214[0x0]['addedNodes'][0x0]));});_0x21bd01['observe'](_0x1ba8a7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x454e9e){_0x454e9e['addEventListener']('apply',_0x23f66e=>{this['fire']('apply',{'imageSrc':_0x23f66e['detail']['cdnUrl']});}),_0x454e9e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x18582d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x8fc032,_0x898716,_0xf87d0c){super(),this['_editor']=_0x8fc032,this['_dialog']=_0x898716,this['_imageElement']=_0xf87d0c,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 _0x396ede=this['_imageElement'],_0x5c77c2=_0x396ede['getAttribute']('uploadcareImageId'),_0x2a4eb5=_0x396ede['getAttribute']('src');if(_0x5c77c2)await this['_loadImageInfo'](_0x5c77c2,_0x2a4eb5);else{if(this['_imageCache']['has'](_0x2a4eb5)){const _0x1d6db0=this['_imageCache']['get'](_0x2a4eb5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d6db0['url'],this['imageDimension']=_0x1d6db0['dimension'],this['imageId']=_0x1d6db0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x48bc7d}=this['_editor'],t=_0x48bc7d['t'],_0x5bdfc7=new X(_0x48bc7d,this['imageStatus'],this['_attributes']);_0x5bdfc7['bind']('status')['to'](this,'imageStatus'),_0x5bdfc7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5bdfc7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5bdfc7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5bdfc7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5de24c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5bdfc7,'position':_0x3b7cc4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5bdfc7['focus']();},'onHide':()=>{_0x5bdfc7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x710314=>!A(_0x710314,_0x5bdfc7['element'])}});}['_loadImageInfo'](_0xff2cc9,_0x5954c4){return j['getInfo'](_0xff2cc9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x533132=>{const {width:_0x1fd739,height:_0x4c0f7e}=_0x533132['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5954c4,this['imageDimension']={'width':_0x1fd739,'height':_0x4c0f7e},this['imageId']=_0xff2cc9;})['catch'](_0x4f119a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f119a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2f9caf,_0x353767){return this['_getImageAsFile'](_0x2f9caf)['then'](_0x397eee=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x353767['signal'],'file':_0x397eee,'onProgress':_0x1f9057=>{_0x1f9057&&_0x1f9057['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1f9057['value']));}}))['then'](_0x319dd5=>{const {width:_0x261875,height:_0x4b6035}=_0x319dd5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x319dd5['cdnUrl'],this['imageDimension']={'width':_0x261875,'height':_0x4b6035},this['imageId']=_0x319dd5['uuid'],this['imageUploadProgress']=null;const _0x2507e2=_0x2f9caf['getAttribute']('src');this['_imageCache']['set'](_0x2507e2,{'id':_0x319dd5['uuid'],'url':_0x319dd5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x551d89=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x551d89['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1af79e,_0xec925e){_0x1af79e['on']('apply',(_0x416d50,_0x1400f8)=>{this['_replaceImage'](_0xec925e,_0x1400f8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1af79e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1af79e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x51e8ed,_0x1d56c9,_0x9aec3e){const _0x26adb0=this['_editor'],{width:_0x5c92a5,height:_0x2bb773}=S(_0x1d56c9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4457a5,imageSources:_0x25fb1e}=C(_0x1d56c9,_0x5c92a5);_0x26adb0['model']['change'](_0x4a9174=>{if('$graveyard'===_0x51e8ed['root']['rootName']){_0x26adb0['execute']('insertImage',{'imageType':_0x51e8ed['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x51e8ed['getAttributes']()),'uploadcareImageId':_0x9aec3e,'src':_0x4457a5,'sources':_0x25fb1e,'width':_0x5c92a5,'height':_0x2bb773}});const _0x540a7f=_0x51e8ed['getChildren']();_0x51e8ed=_0x26adb0['model']['document']['selection']['getSelectedElement']();for(const _0x48c3c6 of _0x540a7f)_0x4a9174['append'](_0x4a9174['cloneElement'](_0x48c3c6),_0x51e8ed);}else _0x4a9174['setSelection'](_0x51e8ed,'on'),_0x26adb0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x51e8ed['getAttributes']()),'uploadcareImageId':_0x9aec3e,'src':_0x4457a5,'sources':_0x25fb1e,'width':_0x5c92a5,'height':_0x2bb773},_0x51e8ed);_0x4a9174['setSelection'](_0x51e8ed,'on');});}async['_getImageAsFile'](_0x314b1d){const _0x4fbce5=_0x408f9f['window'],_0x438d28=_0x408f9f['document']['location']['href'],_0x1a712d=new _0x4fbce5['URL'](_0x314b1d['getAttribute']('src'),_0x438d28);if('data:'===_0x1a712d['protocol']){const _0x3d49da=_0x1a712d['href']['split'](','),_0x2d0661=_0x3d49da[0x0]['match'](/:(.*?);/)[0x1],_0x29cc81=_0x2d0661['split']('/')[0x1],_0x7ca8b0=_0x4fbce5['atob'](_0x3d49da[_0x3d49da['length']-0x1]);let _0x37c4e6=_0x7ca8b0['length'];const _0x5651ce=new _0x4fbce5['Uint8Array'](_0x37c4e6);for(;_0x37c4e6--;)_0x5651ce[_0x37c4e6]=_0x7ca8b0['charCodeAt'](_0x37c4e6);return new _0x4fbce5['File']([_0x5651ce],'image.'+_0x29cc81,{'type':_0x2d0661});}const _0x5c19df=_0x1a712d['href']['split']('/'),_0x2dabda=_0x5c19df[_0x5c19df['length']-0x1],_0x31df96=_0x2dabda['split']('.')[0x1];return _0x4fbce5['fetch'](_0x1a712d['href'])['then'](_0x1149a7=>_0x1149a7['clone']()['blob']())['then'](_0x3a36f6=>new _0x4fbce5['File']([_0x3a36f6],_0x2dabda,{'type':'image/'+_0x31df96}));}}class O extends _0x15449d{['imageEditController'];static get['requires'](){return[_0x30d816];}['_isEditable'];constructor(_0x3dd3b8){super(_0x3dd3b8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3cf87b){const _0x1248df=G(_0x3cf87b);return _0x5b36cf=>!(!_0x5b36cf||!_0x5b36cf['is']('element','imageBlock')&&!_0x5b36cf['is']('element','imageInline'))&&(!!_0x5b36cf['hasAttribute']('uploadcareImageId')||!!_0x5b36cf['hasAttribute']('src')&&_0x1248df(_0x5b36cf['getAttribute']('src')));}(_0x3dd3b8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e1197=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e1197);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x19e687=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19e687&&(_0x19e687['is']('element','imageBlock')||_0x19e687['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x30d816),_0x19e687),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x15449d{['refresh'](){const _0x253c7d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x253c7d&&(_0x253c7d['is']('element','imageBlock')||_0x253c7d['is']('element','imageInline')));}['execute'](_0xb53bae){const _0x10aeac=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2c624d=>{_0x2c624d['setAttributes'](_0xb53bae,_0x10aeac),_0x2c624d['removeAttribute']('srcset',_0x10aeac),_0x2c624d['removeAttribute']('sizes',_0x10aeac);});}}class m extends _0x411dee{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x347fdc,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e19c7}=this;_0x4e19c7['commands']['add']('uploadcareImageEdit',new O(_0x4e19c7)),_0x4e19c7['commands']['add']('uploadcareImageReplace',new R(_0x4e19c7));}}class g extends _0x411dee{['_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 _0x5e4264=this['editor'];_0x5e4264['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4bb046=>{const _0x5182d2=_0x5e4264['commands']['get']('uploadcareImageEdit'),_0x47bd88=new _0x42d1da(_0x4bb046),t=_0x4bb046['t'];return _0x47bd88['set']({'icon':_0x5de24c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x47bd88['bind']('isEnabled')['to'](_0x5182d2),_0x47bd88['bind']('isOn')['to'](_0x5182d2,'isActive'),this['listenTo'](_0x47bd88,'execute',()=>{_0x5e4264['execute']('uploadcareImageEdit'),_0x5e4264['editing']['view']['focus']();}),_0x47bd88;}),this['_initConfig']();}['_initConfig'](){const _0x139747=_0xad3329(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x139747),this['listenTo'](this['editor'],'destroy',()=>{_0x139747['remove']();});}}class et extends _0x411dee{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 _0x5f1d3a,Command as _0x512a03}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x14887e,IconGooglePhotos as _0x258bfb,IconGoogleDrive as _0x3eef38,IconFacebook as _0x1277a7,IconDropbox as _0x3f57dd,IconUploadcareLink as _0x56f26b,IconUploadcareImageUpload as _0x2c917c,IconError as _0x1587eb,IconUploadcareImageEdit as _0x20fc75}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x175c42,MenuBarMenuListItemButtonView as _0x344512,View as _0x6e9ead,FocusCycler as _0x501c8b,Dialog as _0x201559,DialogViewPosition as _0x2142c3,SpinnerView as _0x17ea9b,IconView as _0x5cbe71,Notification as _0x57d1cd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x536c2d,DomEmitterMixin as _0x2dae2a,global as _0x4a8320,getAncestors as _0x10fe1b,ObservableMixin as _0x1f9be8,uid as _0x3c884e,createElement as _0x55549f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3f5118}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x557b9d,info as _0x553f7a}from'@uploadcare/upload-client';import*as _0x2a7d39 from'@uploadcare/file-uploader';var i=function(_0xb7f314){return _0xb7f314['Local']='local',_0xb7f314['URL']='url',_0xb7f314['Dropbox']='dropbox',_0xb7f314['GDrive']='gdrive',_0xb7f314['Facebook']='facebook',_0xb7f314['GPhotos']='gphotos',_0xb7f314['OneDrive']='onedrive',_0xb7f314;}({});function _(_0x13f19e,_0x26b141,_0xaf8861){const t=_0x13f19e['t'],_0x502a86=_0x13f19e['t'];switch(_0x26b141){case i['Local']:return{'text':_0x502a86('Insert'===_0xaf8861?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x502a86('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xaf8861?_0x502a86('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x502a86('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xaf8861?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xaf8861?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xaf8861?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xaf8861?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xaf8861?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x26b141;}}class e extends _0x5f1d3a{['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 _0xac55d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x378a29;for(const _0x965c8f in _0xac55d3){const _0x112998=_0x965c8f,_0x309da3=_0xac55d3[_0x112998];if('uploadcareLicenseKeyValid'==_0x309da3||'uploadcareLicenseKeyInvalid'==_0x309da3||'uploadcareLicenseKeyExpired'==_0x309da3||'uploadcareLicenseKeyDomainLimit'==_0x309da3||'uploadcareLicenseKeyNotAllowed'==_0x309da3||'uploadcareLicenseKeyEvaluationLimit'==_0x309da3||'uploadcareLicenseKeyUsageLimit'==_0x309da3){delete _0xac55d3[_0x112998],_0x378a29=_0x309da3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x378a29&&_0xac55d3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x378a29&&_0xac55d3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x378a29&&_0xac55d3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x378a29&&_0xac55d3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x378a29&&_0xac55d3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x378a29&&_0xac55d3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xb9b8bf}=this,_0x43fe51=_0xb9b8bf['commands']['get']('uploadcare');if(!_0x43fe51)return;const _0x514bd4=this['_normalizeConfigSourceList'](_0xb9b8bf['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2e4943,_0x46b72e)=>{const _0x13976c=this['_getIntegrationKey'](_0x46b72e['type']);return _0x2e4943[_0x13976c]||(_0x2e4943[_0x13976c]=[]),_0x2e4943[_0x13976c]['push'](_0x46b72e),_0x2e4943;},{});_0xb9b8bf['plugins']['has']('ImageInsertUI')&&_0xb9b8bf['commands']['get']('uploadcare')&&Object['entries'](_0x514bd4)['forEach'](([_0x255478,_0x5bab1a])=>{_0xb9b8bf['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x255478,'observable':()=>_0x43fe51,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5bab1a),'formViewCreator':()=>this['_createDropdownButtons'](_0x5bab1a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5bab1a),'override':'assetManager'!==_0x255478});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x25942c){const {locale:_0x59bc56}=this['editor'];return _0x25942c['map'](_0xa74095=>{const _0x10777a=_(_0x59bc56,_0xa74095,'Insert');switch(_0xa74095){case i['Local']:return{'icon':_0x2c917c,'type':i['Local'],..._0x10777a};case i['URL']:return{'icon':_0x56f26b,'type':i['URL'],..._0x10777a};case i['Dropbox']:return{'icon':_0x3f57dd,'type':i['Dropbox'],..._0x10777a};case i['Facebook']:return{'icon':_0x1277a7,'type':i['Facebook'],..._0x10777a};case i['GDrive']:return{'icon':_0x3eef38,'type':i['GDrive'],..._0x10777a};case i['GPhotos']:return{'icon':_0x258bfb,'type':i['GPhotos'],..._0x10777a};case i['OneDrive']:return{'icon':_0x14887e,'type':i['OneDrive'],..._0x10777a};}});}['_getIntegrationKey'](_0x24e024){switch(_0x24e024){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x54d80b,_0x4e7640){const _0x307663=this['editor'],_0xb2458b=new _0x54d80b(_0x307663['locale']),_0xd06fee=_0x307663['commands']['get']('uploadcare');return _0xb2458b['bind']('isEnabled')['to'](_0xd06fee),_0xb2458b['on']('execute',()=>{_0xd06fee['execute'](_0x4e7640);}),_0xb2458b;}['_createToolbarButton'](_0x400301){const {locale:_0x18f631}=this['editor'],_0x50eef7=this['editor']['plugins']['get']('ImageInsertUI'),_0x5efc22=_0x400301[0x0],_0x4aa0ae=this['_createButton'](_0x175c42,_0x5efc22['type']);return _0x4aa0ae['icon']=_0x5efc22['icon'],_0x4aa0ae['bind']('label')['to'](_0x50eef7,'isImageSelected',_0xaa714=>_(_0x18f631,_0x5efc22['type'],_0xaa714?'Replace':'Insert')['text']),_0x4aa0ae['tooltip']=!0x0,_0x4aa0ae;}['_createDropdownButtons'](_0x2fd370){const {locale:_0x8facc1}=this['editor'],_0x5af26b=this['editor']['plugins']['get']('ImageInsertUI');return _0x2fd370['map'](_0x4f0d25=>{const _0x1a6772=this['_createButton'](_0x175c42,_0x4f0d25['type']);return _0x1a6772['withText']=!0x0,_0x1a6772['icon']=_0x4f0d25['icon'],_0x1a6772['bind']('label')['to'](_0x5af26b,'isImageSelected',_0x37b3db=>_(_0x8facc1,_0x4f0d25['type'],_0x37b3db?'Replace':'Insert')['text']),_0x1a6772;});}['_createMenuBarButtons'](_0x10a773){return _0x10a773['map'](_0xc3035a=>{const _0x13621d=this['_createButton'](_0x344512,_0xc3035a['type']);return _0x13621d['icon']=_0xc3035a['icon'],_0x13621d['label']=_0xc3035a['shortText'],_0x13621d;});}}class F extends _0x6e9ead{['focusTracker'];['focusCycler'];constructor(_0x1852ba){super(_0x1852ba),this['focusTracker']=new _0x536c2d(),this['focusCycler']=new _0x501c8b({'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(_0x1fc793,_0x28f250){super(_0x1fc793),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-'+_0x28f250}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x44345b,_0x1aef10){const _0x69aac4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2ccf76=>_0x2ccf76<=_0x1aef10)['map'](_0x1edf82=>_0x44345b['replace'](/\/$/,'')+'/-/resize/'+_0x1edf82+'x/\x20'+_0x1edf82+'w');return{'imageFallbackUrl':_0x44345b,'imageSources':[{'srcset':_0x69aac4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1aef10+'px)\x20100vw,\x20'+_0x1aef10+'px','type':'image/webp'}]};}function S(_0x456d66,_0x49cf51,_0xec9399){const _0x10e0ea=_0x456d66['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x10e0ea?parseInt(_0x10e0ea[0x1],0xa):_0x49cf51,'height':_0x10e0ea?parseInt(_0x10e0ea[0x2],0xa):_0xec9399};}function p(_0x2003a3,_0x3db8e8){const _0x19a6a3=new(_0x2dae2a())(),_0x324baf=_0x2003a3['plugins']['get']('ImageUtils'),_0x36ffc9=_0x2003a3['editing']['mapper']['toViewElement'](_0x3db8e8),_0x2bc152=_0x324baf['findViewImgElement'](_0x36ffc9),_0x10682d=_0x2003a3['editing']['view']['domConverter']['viewToDom'](_0x2bc152),_0x1ad7d4=_0x3db8e8['getAttribute']('width'),_0x52cfaf=_0x3db8e8['getAttribute']('height'),_0x2c327d='image-processing';_0x2003a3['editing']['view']['change'](_0x357e3c=>{_0x357e3c['addClass'](_0x2c327d,_0x36ffc9),_0x357e3c['setStyle']('aspect-ratio',_0x1ad7d4+'/'+_0x52cfaf,_0x2bc152);}),_0x19a6a3['listenTo'](_0x10682d,'load',()=>{_0x19a6a3['stopListening'](_0x10682d,'load'),_0x2003a3['editing']['view']['change'](_0xc94b52=>{_0xc94b52['removeClass'](_0x2c327d,_0x36ffc9),_0xc94b52['removeStyle']('aspect-ratio',_0x2bc152);});});}function G(_0x35c15f){if(Array['isArray'](_0x35c15f)){const _0x300289=_0x35c15f['map'](G);return _0x5a3aa5=>_0x300289['some'](_0x4c487d=>_0x4c487d(_0x5a3aa5));}if('origin'==_0x35c15f){const _0x19711b=_0x4a8320['window']['location']['origin'];return _0x4116c1=>new URL(_0x4116c1,_0x4a8320['document']['baseURI'])['origin']==_0x19711b;}return'function'==typeof _0x35c15f?_0x35c15f:_0x35c15f instanceof RegExp?_0x5a5089=>!(!_0x5a5089['match'](_0x35c15f)&&!_0x5a5089['replace'](/^https?:\/\//,'')['match'](_0x35c15f)):()=>!0x1;}function A(_0x4c5e51,_0x142034){return _0x10fe1b(_0x4c5e51['target'])['includes'](_0x142034);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f9be8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4e002b,_0x509084,_0x457bb6){super(),this['_editor']=_0x4e002b,this['_editing']=_0x509084,this['_dialog']=_0x4e002b['plugins']['get'](_0x201559),this['_api']=_0x509084['ctxElement']['getAPI'](),this['_type']=_0x457bb6,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:_0x524bd3,model:_0x53af28}=this['_editor'],_0x49c89b=_0x53af28['document']['selection']['getSelectedElement'](),_0x298f41=_0x49c89b&&(_0x49c89b['is']('element','imageBlock')||_0x49c89b['is']('element','imageInline'));this['_formView']=new x(_0x524bd3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2c917c,'title':_(_0x524bd3,this['_type'],_0x298f41?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2142c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x267996=>!A(_0x267996,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3f4e98}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x17a9f7=>{const _0x45ed4f=_0x3f4e98['length'];for(const _0x54bf54 of _0x3f4e98){const _0xcec784=_0x54bf54===_0x3f4e98[_0x45ed4f-0x1],{cdnUrl:_0x27ffd1,fileInfo:_0x4d3423}=_0x54bf54;if(!_0x27ffd1||!_0x4d3423)continue;const {width:_0x3b27d3,height:_0x3c5889}=_0x4d3423['imageInfo'],_0x9f10b3=S(_0x27ffd1,_0x3b27d3,_0x3c5889),_0x13bab8=C(_0x27ffd1,_0x9f10b3['width']),_0x51b8a5={'id':_0x4d3423['uuid'],'type':'image','attributes':{'imageDimension':_0x9f10b3,..._0x13bab8}};this['_insertAsset'](_0x51b8a5,_0xcec784,_0x17a9f7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3e00f4=>{'idle'===_0x3e00f4['detail']['status']&&!_0x3e00f4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5a550d,_0x4a0398,_0x36d6a6){const _0x3297d7=this['_editor']['model']['document']['selection'],_0x5d6a74=_0x3297d7['getSelectedElement'](),_0x339199=!(!_0x5d6a74||!_0x5d6a74['is']('element','imageInline'));_0x36d6a6['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5a550d,_0x339199),_0x4a0398||_0x36d6a6['setSelection'](_0x3297d7['getLastPosition']());}['_insertImage'](_0x2efafe,_0x302f80){const _0x8a9dae=this['_editor'],{imageDimension:_0x114c4b,imageFallbackUrl:_0x4a20cf,imageSources:_0x429710}=_0x2efafe['attributes'];_0x8a9dae['execute']('insertImage',{'imageType':_0x302f80?'imageInline':null,'source':{'uploadcareImageId':_0x2efafe['id'],'src':_0x4a20cf,'sources':_0x429710,..._0x114c4b}});}}class w extends _0x512a03{['_editing'];['_controller']=null;static get['requires'](){return[_0x201559,o];}constructor(_0x2db35f){super(_0x2db35f),this['_editing']=_0x2db35f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x130959){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x130959);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2f7bf6,..._0x1617d7}){return _0x557b9d(_0x2f7bf6,_0x1617d7);}static['getInfo'](_0x1d2b53,_0x37259f){return _0x553f7a(_0x1d2b53,_0x37259f);}}class f extends _0x5f1d3a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3f5118,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x580115=this['editor'];if(!!!_0x580115['config']['get']('uploadcare'))return;_0x580115['plugins']['get'](_0x3f5118)['createUploadAdapter']=_0x1d685a=>new k(_0x1d685a,_0x580115),_0x580115['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1ad917,{imageElement:_0x15dca1,data:_0x39ca32})=>{_0x580115['model']['change'](_0x642c97=>{_0x642c97['setAttribute']('uploadcareImageId',_0x39ca32['uploadcareImageId'],_0x15dca1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1e37bd,_0x3dcd61){this['loader']=_0x1e37bd,this['editor']=_0x3dcd61,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x33b040=await this['loader']['file'];return j['upload']({'file':_0x33b040,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1115d1=>{_0x1115d1&&_0x1115d1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1115d1['value']);}})['then'](async _0x24f33b=>{const {imageFallbackUrl:_0x2b6092,imageSources:_0x2ceeaf}=C(_0x24f33b['cdnUrl'],_0x24f33b['imageInfo']['width']);return{'uploadcareImageId':_0x24f33b['uuid'],'default':_0x2b6092,'sources':_0x2ceeaf};})['catch'](()=>{const _0x304897=t('Cannot\x20upload\x20file:')+('\x20'+_0x33b040['name']+'.');return Promise['reject'](_0x304897);});}['abort'](){this['controller']['abort']();}}class o extends _0x5f1d3a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x201559];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x37b971){super(_0x37b971),this['ucContextId']=_0x3c884e();}['init'](){const _0x4269fc=this['editor'];_0x4269fc['commands']['add']('uploadcare',new w(_0x4269fc));}['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 _0x52ea35=_0x4a8320['document']['querySelector']('input[uploadcare-file-input]');_0x52ea35&&_0x52ea35['remove']();}),async function(_0xa6ed73){const _0x14379b=_0x1e8121([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x30dc3c=0x535f8c3a,_0x4f6db6=0x5358f2f2^_0x30dc3c,_0x53aa7f=window[_0x1e8121([0x44,0x61,0x74,0x65])][_0x1e8121([0x6e,0x6f,0x77])](),_0x27a199=_0xa6ed73[_0x1e8121([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x153f35=new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51d43c=>{_0x27a199[_0x1e8121([0x6f,0x6e,0x63,0x65])](_0x1e8121([0x72,0x65,0x61,0x64,0x79]),_0x51d43c);}),_0xd1fb58={[_0x1e8121([0x6b,0x74,0x79])]:_0x1e8121([0x45,0x43]),[_0x1e8121([0x75,0x73,0x65])]:_0x1e8121([0x73,0x69,0x67]),[_0x1e8121([0x63,0x72,0x76])]:_0x1e8121([0x50,0x2d,0x32,0x35,0x36]),[_0x1e8121([0x78])]:_0x1e8121([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]),[_0x1e8121([0x79])]:_0x1e8121([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]),[_0x1e8121([0x61,0x6c,0x67])]:_0x1e8121([0x45,0x53,0x32,0x35,0x36])},_0x50ae39=_0x27a199[_0x1e8121([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e8121([0x67,0x65,0x74])](_0x1e8121([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cffc1(){let _0x2f6ee8,_0x231466=null,_0x4849ba=null;try{if(_0x50ae39==_0x1e8121([0x47,0x50,0x4c]))return _0x1e8121([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f6ee8=_0x1bcd66(),!_0x2f6ee8)return _0x1e8121([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f6ee8[_0x1e8121([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4849ba=_0x3b8778(_0x2f6ee8[_0x1e8121([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f6ee8[_0x1e8121([0x6a,0x74,0x69])])),await _0x11f18c()?_0x40ac7e()?_0x53024b()?_0x1e8121([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1319e0()?(_0x2f6ee8[_0x1e8121([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e8121([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x231466=_0x52385d(_0x1e8121([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50125f()):_0x1e8121([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e8121([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e8121([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e8121([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x53024b(){const _0x31f281=[_0x1e8121([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e8121([0x74,0x72,0x69,0x61,0x6c])][_0x1e8121([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6ee8[_0x1e8121([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53aa7f/0x3e8:0xe10*_0x4f6db6;return _0x2f6ee8[_0x1e8121([0x65,0x78,0x70])]<_0x31f281;}function _0x40ac7e(){const _0x4382fb=_0x2f6ee8[_0x1e8121([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4382fb&&(!!_0x4382fb[_0x1e8121([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e8121([0x2a]))||!!_0x4382fb[_0x1e8121([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e8121([0x55,0x50,0x4c,0x43])));}function _0x1319e0(){const _0x17217e=_0x2f6ee8[_0x1e8121([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x17217e||0x0==_0x17217e[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfeac3f}=new URL(window[_0x1e8121([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x17217e[_0x1e8121([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfeac3f))return!0x0;const _0x1f4304=_0xfeac3f[_0x1e8121([0x73,0x70,0x6c,0x69,0x74])](_0x1e8121([0x2e]));return _0x17217e[_0x1e8121([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37a3e8=>_0x37a3e8[_0x1e8121([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e8121([0x2a])))[_0x1e8121([0x6d,0x61,0x70])](_0x42d8d5=>_0x42d8d5[_0x1e8121([0x73,0x70,0x6c,0x69,0x74])](_0x1e8121([0x2e])))[_0x1e8121([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51332e=>_0x51332e[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f4304[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e8121([0x6d,0x61,0x70])](_0x54b170=>Array(_0x1f4304[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54b170[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e8121([0x66,0x69,0x6c,0x6c])](_0x54b170[0x0]===_0x1e8121([0x2a])?_0x1e8121([0x2a]):'')[_0x1e8121([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54b170))[_0x1e8121([0x73,0x6f,0x6d,0x65])](_0x30a377=>_0x1f4304[_0x1e8121([0x65,0x76,0x65,0x72,0x79])]((_0x385316,_0x295328)=>_0x30a377[_0x295328]===_0x385316||_0x30a377[_0x295328]===_0x1e8121([0x2a])));}function _0x50125f(){return _0x231466&&_0x4849ba?new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51324d,_0x182a53)=>{_0x231466[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x51324d,_0x182a53),_0x4849ba[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x7479f9=>{_0x7479f9!=_0x1e8121([0x56,0x61,0x6c,0x69,0x64])&&_0x51324d(_0x7479f9);},_0x182a53);}):_0x231466||_0x4849ba||_0x1e8121([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b8778(_0x2254e5,_0x2071ce){return new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57c1ee=>{if(_0x3db89a())return _0x57c1ee(_0x1e8121([0x56,0x61,0x6c,0x69,0x64]));_0x36116d(),_0x27a199[_0x1e8121([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e8121([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x218d2b=!0x1;const _0x2d2bb0=_0x3c884e();function _0x3d867c(_0x524a5d){return!!_0x524a5d&&(typeof _0x524a5d===_0x1e8121([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x524a5d===_0x1e8121([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x524a5d[_0x1e8121([0x74,0x68,0x65,0x6e])]===_0x1e8121([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x524a5d[_0x1e8121([0x63,0x61,0x74,0x63,0x68])]===_0x1e8121([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xae84f4(_0x20f2f1){_0x45f263(_0x20f2f1)[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x2306ef=>{if(!_0x2306ef||_0x2306ef[_0x1e8121([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e8121([0x6f,0x6b]))return _0x1e8121([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5dbb85(_0x287721(_0x2d2bb0+_0x2071ce))!=_0x2306ef[_0x1e8121([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e8121([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e8121([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x2a0607=>(_0x1cfb71(),_0x2a0607),()=>{const _0x595bbf=_0x307ed0();return null==_0x595bbf?(_0x1cfb71(),_0x1e8121([0x56,0x61,0x6c,0x69,0x64])):_0x1e8121(_0x53aa7f-_0x595bbf>(0x7753083a^_0x30dc3c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x57c1ee)[_0x1e8121([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57c1ee(_0x1e8121([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x378a68=0x536962ba^_0x30dc3c;function _0x1cfb71(){const _0x1c66e3=_0x1e8121([0x6c,0x6c,0x63,0x74,0x2d])+_0x5dbb85(_0x287721(_0x2254e5)),_0x42daed=_0x262dd8(_0x5dbb85(window[_0x1e8121([0x4d,0x61,0x74,0x68])][_0x1e8121([0x63,0x65,0x69,0x6c])](_0x53aa7f/_0x378a68)));window[_0x1e8121([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e8121([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c66e3,_0x42daed);}function _0x307ed0(){const _0x3f93fb=_0x1e8121([0x6c,0x6c,0x63,0x74,0x2d])+_0x5dbb85(_0x287721(_0x2254e5)),_0xeff91a=window[_0x1e8121([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e8121([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f93fb);return _0xeff91a?window[_0x1e8121([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x262dd8(_0xeff91a),0x10)*_0x378a68:null;}function _0x45f263(_0xc54310){return new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f59f4,_0x4fe48c)=>{_0xc54310[_0x1e8121([0x74,0x68,0x65,0x6e])](_0x2f59f4,_0x4fe48c),window[_0x1e8121([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fe48c,0x535e58fa^_0x30dc3c);});}}_0x27a199[_0x1e8121([0x6f,0x6e])](_0x1e8121([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1011ab,_0x1cd4d5)=>{if(_0x1cd4d5[0x0]!=_0x2254e5)return _0x57c1ee(_0x1e8121([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cd4d5[0x1]={..._0x1cd4d5[0x1],[_0x1e8121([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d2bb0};},{[_0x1e8121([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e8121([0x68,0x69,0x67,0x68])}),_0x27a199[_0x1e8121([0x6f,0x6e])](_0x1e8121([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x32d8dc=>{_0x3d867c(_0x32d8dc[_0x1e8121([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x218d2b=!0x0,_0xae84f4(_0x32d8dc[_0x1e8121([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e8121([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e8121([0x6c,0x6f,0x77])}),_0x153f35[_0x1e8121([0x74,0x68,0x65,0x6e])](()=>{_0x218d2b||_0x57c1ee(_0x1e8121([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3db89a(){return _0x27a199[_0x1e8121([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e8121([0x76,0x69,0x65,0x77])][_0x1e8121([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e8121([0x61,0x75,0x74,0x6f]);}function _0x36116d(){_0x27a199[_0x1e8121([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e8121([0x76,0x69,0x65,0x77])][_0x1e8121([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e8121([0x61,0x75,0x74,0x6f]);}}function _0x52385d(_0xe3859){const _0x460590=[new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49f257=>setTimeout(_0x49f257,0x5356b2f6^_0x30dc3c)),_0x153f35[_0x1e8121([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x142673=>{let _0x371313=0x0;_0x27a199[_0x1e8121([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e8121([0x6f,0x6e])](_0x1e8121([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x150dfd,_0xeb5727)=>{_0xeb5727[0x0][_0x1e8121([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x371313++,_0x371313==(0x535f89d2^_0x30dc3c)&&(_0x142673(),_0x150dfd[_0x1e8121([0x6f,0x66,0x66])]());});}))];return window[_0x1e8121([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e8121([0x72,0x61,0x63,0x65])](_0x460590)[_0x1e8121([0x74,0x68,0x65,0x6e])](()=>_0xe3859);}async function _0x3200fc(){await _0x153f35,_0x27a199[_0x1e8121([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e8121([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x443cc7,_0x27a199[_0x1e8121([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e8121([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x443cc7,_0x27a199[_0x1e8121([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e8121([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d0680(_0x5636cd){const _0x1d3e4c=_0x3ccf97();_0x27a199[_0x1d3e4c]=_0x1e8121([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5636cd,_0x5636cd!=_0x1e8121([0x56,0x61,0x6c,0x69,0x64])&&_0x3200fc();}function _0x3ccf97(){const _0x5fc664=window[_0x1e8121([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e8121([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e8121([0x6e,0x6f,0x77])]())[_0x1e8121([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e8121([0x2e]),'');let _0x26b255=_0x1e8121([0x68]);for(let _0x26757d=0x0;_0x26757d<_0x5fc664[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26757d+=0x2){let _0x32c914=window[_0x1e8121([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5fc664[_0x1e8121([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26757d,_0x26757d+0x2));_0x32c914>=_0x14379b[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32c914-=_0x14379b[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26b255+=_0x14379b[_0x32c914];}return _0x26b255;}function _0x1bcd66(){const _0x83a2d=_0x50ae39[_0x1e8121([0x73,0x70,0x6c,0x69,0x74])](_0x1e8121([0x2e]));if(0x3!=_0x83a2d[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bca15(_0x83a2d[0x1]);function _0x1bca15(_0x120c6e){const _0x15ad03=_0x10855d(_0x120c6e);return _0x15ad03&&_0x2100e0()?_0x15ad03:null;function _0x2100e0(){const _0x447352=_0x15ad03[_0x1e8121([0x6a,0x74,0x69])],_0x81d92c=window[_0x1e8121([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x447352[_0x1e8121([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x447352[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f5319={..._0x15ad03,[_0x1e8121([0x6a,0x74,0x69])]:_0x447352[_0x1e8121([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x447352[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f5319[_0x1e8121([0x76,0x63])],_0x287721(_0x4f5319)==_0x81d92c;}}}async function _0x11f18c(){let _0x26961a=!0x0;try{const _0x2fb459=_0x50ae39[_0x1e8121([0x73,0x70,0x6c,0x69,0x74])](_0x1e8121([0x2e])),[_0x3e9476,_0x22119a,_0x43498f]=_0x2fb459;return _0x572ad2(_0x3e9476),await _0x77b148(_0x3e9476,_0x22119a,_0x43498f),_0x26961a;}catch{return!0x1;}function _0x572ad2(_0xa244da){const _0x4c84c3=_0x10855d(_0xa244da);_0x4c84c3&&_0x4c84c3[_0x1e8121([0x61,0x6c,0x67])]==_0x1e8121([0x45,0x53,0x32,0x35,0x36])||(_0x26961a=!0x1);}async function _0x77b148(_0x2a0c5a,_0x4d6bb4,_0x25c559){const _0x554c26=window[_0x1e8121([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e8121([0x66,0x72,0x6f,0x6d])](_0x475973(_0x25c559),_0x322e06=>_0x322e06[_0x1e8121([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x559e92=new window[(_0x1e8121([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e8121([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a0c5a+_0x1e8121([0x2e])+_0x4d6bb4),_0x3f0475=window[_0x1e8121([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e8121([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f0475)return;const _0x51f22b=await _0x3f0475[_0x1e8121([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e8121([0x6a,0x77,0x6b]),_0xd1fb58,{[_0x1e8121([0x6e,0x61,0x6d,0x65])]:_0x1e8121([0x45,0x43,0x44,0x53,0x41]),[_0x1e8121([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e8121([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e8121([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f0475[_0x1e8121([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e8121([0x6e,0x61,0x6d,0x65])]:_0x1e8121([0x45,0x43,0x44,0x53,0x41]),[_0x1e8121([0x68,0x61,0x73,0x68])]:{[_0x1e8121([0x6e,0x61,0x6d,0x65])]:_0x1e8121([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51f22b,_0x554c26,_0x559e92)||(_0x26961a=!0x1);}}function _0x10855d(_0x24048f){return _0x24048f[_0x1e8121([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e8121([0x65,0x79]))?JSON[_0x1e8121([0x70,0x61,0x72,0x73,0x65])](_0x475973(_0x24048f)):null;}function _0x475973(_0x4f3b92){return window[_0x1e8121([0x61,0x74,0x6f,0x62])](_0x4f3b92[_0x1e8121([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e8121([0x2b]))[_0x1e8121([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e8121([0x2f])));}function _0x287721(_0x3ab913){let _0x2a1d0d=0x1505;function _0x42004f(_0x277c2a){for(let _0xbe7dd5=0x0;_0xbe7dd5<_0x277c2a[_0x1e8121([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbe7dd5++){const _0x3e0137=_0x277c2a[_0x1e8121([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xbe7dd5);_0x2a1d0d=(_0x2a1d0d<<0x5)+_0x2a1d0d+_0x3e0137,_0x2a1d0d&=_0x2a1d0d;}}function _0x25795a(_0x466fa1){Array[_0x1e8121([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x466fa1)?_0x466fa1[_0x1e8121([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25795a):_0x466fa1&&typeof _0x466fa1==_0x1e8121([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e8121([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x466fa1)[_0x1e8121([0x73,0x6f,0x72,0x74])]()[_0x1e8121([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfedb34,_0x203dd0])=>{_0x42004f(_0xfedb34),_0x25795a(_0x203dd0);}):_0x42004f(window[_0x1e8121([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x466fa1));}return _0x25795a(_0x3ab913),_0x2a1d0d>>>0x0;}function _0x5dbb85(_0xab0f5c){return _0xab0f5c[_0x1e8121([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e8121([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e8121([0x30]));}function _0x262dd8(_0xb45690){return _0xb45690[_0x1e8121([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e8121([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e8121([0x6a,0x6f,0x69,0x6e])]('');}function _0x443cc7(){}function _0x1e8121(_0x358866){return _0x358866['map'](_0x1b4391=>String['fromCharCode'](_0x1b4391))['join']('');}_0x1d0680(await _0x5cffc1());}(this);}['_initSchema'](){const _0x5c37cc=this['editor']['model']['schema'];_0x5c37cc['isRegistered']('imageBlock')&&_0x5c37cc['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5c37cc['isRegistered']('imageInline')&&_0x5c37cc['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4f39dc=this['editor'];_0x4f39dc['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4f39dc['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x322740=>_0x322740['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3785c7=_0x4f39dc['commands']['get']('replaceImageSource');_0x3785c7&&this['listenTo'](_0x3785c7,'cleanupImage',(_0x346dff,[_0x482d46,_0x20e05e])=>{_0x482d46['removeAttribute']('uploadcareImageId',_0x20e05e);});}['_initConfig'](){const _0xb9cb62=this['editor']['config']['get']('uploadcare.uploader')||{},_0x528fa9=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x55549f(_0x4a8320['document'],'uc-config',{..._0xb9cb62,'pubkey':_0x528fa9,'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']=_0x2362bb=>{if('closeMax'==_0x2362bb)return'#uc-icon-arrow-down';},_0x4a8320['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x55549f(_0x4a8320['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4a8320['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x363d90=this['editor']['commands']['get']('insertImage');_0x363d90&&this['listenTo'](_0x363d90,'execute',()=>{const _0x30441b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30441b&&_0x30441b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x30441b);});});const _0x319b74=this['editor']['commands']['get']('uploadcareImageReplace');_0x319b74&&this['listenTo'](_0x319b74,'execute',()=>{const _0x14560f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x14560f&&_0x14560f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x14560f);});});}}class tt extends _0x5f1d3a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32e024){super(_0x32e024),_0x32e024['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2a7d39['defineComponents'](_0x2a7d39),this['_defineLocale']();}['_defineLocale'](){const _0x444a80=this['editor']['config']['get']('uploadcare.locale'),_0x3f6308=this['editor']['locale']['contentLanguage'];_0x444a80&&_0x2a7d39['defineLocale'](_0x3f6308,_0x444a80);}}class ii extends _0x6e9ead{constructor(_0x892850){super(_0x892850);const t=_0x892850['t'],_0x106348=this['bindTemplate'],_0x69863c=new _0x17ea9b();_0x69863c['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':[_0x69863c,{'text':_0x106348['to']('imageUploadProgress',_0x4ad7f2=>t('Loading\x20image...')+'\x20('+(_0x4ad7f2||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 _0x6e9ead{constructor(_0x5f1e6c){super(_0x5f1e6c);const t=_0x5f1e6c['t'];this['set']('errorType',null);const _0x3ab283=new _0x175c42(_0x5f1e6c);_0x3ab283['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3ab283['withText']=!0x0,_0x3ab283['class']='ck-button-action',_0x3ab283['on']('execute',()=>{this['fire']('retry');}),_0x3ab283['bind']('isVisible')['to'](this,'errorType',_0x508337=>'NotFound'!==_0x508337);const _0x32d911=new _0x5cbe71();_0x32d911['content']=_0x1587eb,_0x32d911['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x177945=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':[_0x32d911,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x177945['to']('errorType',_0x148aef=>t('NotFound'!==_0x148aef?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3ab283]},{'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 _0x6e9ead{constructor(_0x553185,_0x59c963){super(_0x553185);const _0x29c65c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x59c963,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x29c65c['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x437d05,_0x30a4cc,_0x123f26){super(_0x437d05),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x437d05),this['_errorView']=new ti(_0x437d05),this['_editingView']=new ei(_0x437d05,_0x123f26),this['_focusableView']=new _0x6e9ead(_0x437d05),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x30a4cc),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'],_0xa9c9fa=>{this['_addUploadcareImageEditorListeners'](_0xa9c9fa);});}),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'](_0x5e6a12,_0x4e3e28){const _0x1d7144='uc-cloud-image-editor',_0x2fe607=_0x5e6a12['querySelector'](_0x1d7144);if(_0x2fe607)return _0x4e3e28(_0x2fe607);const _0x39d972=new MutationObserver(_0x3fbf22=>{const _0x570ca4=_0x3fbf22['filter'](_0x10ab3c=>_0x10ab3c['target']===_0x5e6a12&&_0x10ab3c['addedNodes']['length']>0x0&&_0x10ab3c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1d7144);_0x570ca4['length']&&(_0x39d972['disconnect'](),_0x4e3e28(_0x570ca4[0x0]['addedNodes'][0x0]));});_0x39d972['observe'](_0x5e6a12,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x54a913){_0x54a913['addEventListener']('apply',_0x43b19b=>{this['fire']('apply',{'imageSrc':_0x43b19b['detail']['cdnUrl']});}),_0x54a913['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1f9be8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x13831f,_0x24d45e,_0x1be246){super(),this['_editor']=_0x13831f,this['_dialog']=_0x24d45e,this['_imageElement']=_0x1be246,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 _0x2e1432=this['_imageElement'],_0x50b1c2=_0x2e1432['getAttribute']('uploadcareImageId'),_0x46d663=_0x2e1432['getAttribute']('src');if(_0x50b1c2)await this['_loadImageInfo'](_0x50b1c2,_0x46d663);else{if(this['_imageCache']['has'](_0x46d663)){const _0x9a56ca=this['_imageCache']['get'](_0x46d663);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x9a56ca['url'],this['imageDimension']=_0x9a56ca['dimension'],this['imageId']=_0x9a56ca['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x468eaa}=this['_editor'],t=_0x468eaa['t'],_0x591965=new X(_0x468eaa,this['imageStatus'],this['_attributes']);_0x591965['bind']('status')['to'](this,'imageStatus'),_0x591965['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x591965['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x591965['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x591965,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x20fc75,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x591965,'position':_0x2142c3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x591965['focus']();},'onHide':()=>{_0x591965['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f5389=>!A(_0x3f5389,_0x591965['element'])}});}['_loadImageInfo'](_0x5bbe54,_0x1a9d56){return j['getInfo'](_0x5bbe54,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x43fe99=>{const {width:_0x38af13,height:_0x1f9223}=_0x43fe99['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a9d56,this['imageDimension']={'width':_0x38af13,'height':_0x1f9223},this['imageId']=_0x5bbe54;})['catch'](_0x2d690b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d690b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x111c71,_0x4dd884){return this['_getImageAsFile'](_0x111c71)['then'](_0x10ea96=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4dd884['signal'],'file':_0x10ea96,'onProgress':_0x4ec768=>{_0x4ec768&&_0x4ec768['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ec768['value']));}}))['then'](_0xf867a5=>{const {width:_0x123ca5,height:_0x26a5f6}=_0xf867a5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf867a5['cdnUrl'],this['imageDimension']={'width':_0x123ca5,'height':_0x26a5f6},this['imageId']=_0xf867a5['uuid'],this['imageUploadProgress']=null;const _0x2a09f9=_0x111c71['getAttribute']('src');this['_imageCache']['set'](_0x2a09f9,{'id':_0xf867a5['uuid'],'url':_0xf867a5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x654457=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x654457['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3a33de,_0x36496a){_0x3a33de['on']('apply',(_0x28d619,_0x59c763)=>{this['_replaceImage'](_0x36496a,_0x59c763['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3a33de['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3a33de['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5602b5,_0x15ad20,_0x590212){const _0x449ce0=this['_editor'],{width:_0x5ceac6,height:_0x5f2de1}=S(_0x15ad20,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x45c554,imageSources:_0x87d5dc}=C(_0x15ad20,_0x5ceac6);_0x449ce0['model']['change'](_0x2ef6e5=>{if('$graveyard'===_0x5602b5['root']['rootName']){_0x449ce0['execute']('insertImage',{'imageType':_0x5602b5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5602b5['getAttributes']()),'uploadcareImageId':_0x590212,'src':_0x45c554,'sources':_0x87d5dc,'width':_0x5ceac6,'height':_0x5f2de1}});const _0x2faaa5=_0x5602b5['getChildren']();_0x5602b5=_0x449ce0['model']['document']['selection']['getSelectedElement']();for(const _0x529402 of _0x2faaa5)_0x2ef6e5['append'](_0x2ef6e5['cloneElement'](_0x529402),_0x5602b5);}else _0x2ef6e5['setSelection'](_0x5602b5,'on'),_0x449ce0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5602b5['getAttributes']()),'uploadcareImageId':_0x590212,'src':_0x45c554,'sources':_0x87d5dc,'width':_0x5ceac6,'height':_0x5f2de1},_0x5602b5);_0x2ef6e5['setSelection'](_0x5602b5,'on');});}async['_getImageAsFile'](_0x9251bc){const _0x1fb933=_0x4a8320['window'],_0x2fd0c7=_0x4a8320['document']['location']['href'],_0x221c01=new _0x1fb933['URL'](_0x9251bc['getAttribute']('src'),_0x2fd0c7);if('data:'===_0x221c01['protocol']){const _0x2eb36b=_0x221c01['href']['split'](','),_0x3764da=_0x2eb36b[0x0]['match'](/:(.*?);/)[0x1],_0x3cfd4f=_0x3764da['split']('/')[0x1],_0x4e843d=_0x1fb933['atob'](_0x2eb36b[_0x2eb36b['length']-0x1]);let _0x44e5f6=_0x4e843d['length'];const _0x4a6c81=new _0x1fb933['Uint8Array'](_0x44e5f6);for(;_0x44e5f6--;)_0x4a6c81[_0x44e5f6]=_0x4e843d['charCodeAt'](_0x44e5f6);return new _0x1fb933['File']([_0x4a6c81],'image.'+_0x3cfd4f,{'type':_0x3764da});}const _0x25ceed=_0x221c01['href']['split']('/'),_0x43d27d=_0x25ceed[_0x25ceed['length']-0x1],_0x4e0564=_0x43d27d['split']('.')[0x1];return _0x1fb933['fetch'](_0x221c01['href'])['then'](_0x5552f1=>_0x5552f1['clone']()['blob']())['then'](_0xa14f0b=>new _0x1fb933['File']([_0xa14f0b],_0x43d27d,{'type':'image/'+_0x4e0564}));}}class O extends _0x512a03{['imageEditController'];static get['requires'](){return[_0x201559];}['_isEditable'];constructor(_0x477491){super(_0x477491),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5a17e1){const _0x5006fa=G(_0x5a17e1);return _0x23c309=>!(!_0x23c309||!_0x23c309['is']('element','imageBlock')&&!_0x23c309['is']('element','imageInline'))&&(!!_0x23c309['hasAttribute']('uploadcareImageId')||!!_0x23c309['hasAttribute']('src')&&_0x5006fa(_0x23c309['getAttribute']('src')));}(_0x477491['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x438923=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x438923);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xe6a5ac=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe6a5ac&&(_0xe6a5ac['is']('element','imageBlock')||_0xe6a5ac['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x201559),_0xe6a5ac),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x512a03{['refresh'](){const _0x24a3cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x24a3cd&&(_0x24a3cd['is']('element','imageBlock')||_0x24a3cd['is']('element','imageInline')));}['execute'](_0x3c00e8){const _0x515ceb=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1f726f=>{_0x1f726f['setAttributes'](_0x3c00e8,_0x515ceb),_0x1f726f['removeAttribute']('srcset',_0x515ceb),_0x1f726f['removeAttribute']('sizes',_0x515ceb);});}}class m extends _0x5f1d3a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x57d1cd,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3aa7f1}=this;_0x3aa7f1['commands']['add']('uploadcareImageEdit',new O(_0x3aa7f1)),_0x3aa7f1['commands']['add']('uploadcareImageReplace',new R(_0x3aa7f1));}}class g extends _0x5f1d3a{['_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 _0x427e94=this['editor'];_0x427e94['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39dd8a=>{const _0x4adbf3=_0x427e94['commands']['get']('uploadcareImageEdit'),_0x4158d9=new _0x175c42(_0x39dd8a),t=_0x39dd8a['t'];return _0x4158d9['set']({'icon':_0x20fc75,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4158d9['bind']('isEnabled')['to'](_0x4adbf3),_0x4158d9['bind']('isOn')['to'](_0x4adbf3,'isActive'),this['listenTo'](_0x4158d9,'execute',()=>{_0x427e94['execute']('uploadcareImageEdit'),_0x427e94['editing']['view']['focus']();}),_0x4158d9;}),this['_initConfig']();}['_initConfig'](){const _0x522a45=_0x55549f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x522a45),this['listenTo'](this['editor'],'destroy',()=>{_0x522a45['remove']();});}}class et extends _0x5f1d3a{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": "47.4.0-alpha.
|
|
3
|
+
"version": "47.4.0-alpha.6",
|
|
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": "47.4.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "47.4.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "47.4.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.
|
|
33
|
-
"ckeditor5": "47.4.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.4.0-alpha.6",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.6",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "47.4.0-alpha.6",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.6",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.6",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "47.4.0-alpha.6",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.6",
|
|
33
|
+
"ckeditor5": "47.4.0-alpha.6",
|
|
34
34
|
"@uploadcare/file-uploader": "1.24.5",
|
|
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 _0x42d854=_0x169f;function _0x2bea(){const _0x3b1dcc=['82591TFBkon','1047060hhDiQf','imageInline','isPremiumPlugin','_initConfig','destroy','_initCtx','22615875zwkdVa','render','uploadcareImageId','\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','imageBlock','once','add','extend','data-uc-image-id','fromCharCode','listenTo','schema','#uc-icon-arrow-down','isOfficialPlugin','closeMax','editing','model','getAttribute','ctxElement','querySelector','document','href','428555SmQsZA','commands','requires','afterInit','map','UploadcareEditing','true','3398382zqxtJb','ucContextId','_initSchema','init','uc-config','appendChild','uc-upload-ctx-provider','remove','conversion','selection','input[uploadcare-file-input]','for','insertImage','upcast','580824SDukws','removeAttribute','iconHrefResolver','elementToAttribute','configElement','_initConversion','join','cleanupImage','_initImageProcessingIndicator','get','body','pluginName','2672775KAKcxn','_configElement','uploadcareImageReplace','replaceImageSource','10lXhfOc','getSelectedElement','uploadcare.uploader','config','isRegistered','execute','attributeToAttribute','_ctxElement','20chfWYD','uploadcare.pubkey','PictureEditing','contentLanguage','editor','uploadcare','uploader-','downcast','locale','view'];_0x2bea=function(){return _0x3b1dcc;};return _0x2bea();}(function(_0x4f5634,_0x1bba59){const _0x5baa4f=_0x169f,_0x5daa86=_0x4f5634();while(!![]){try{const _0x1c285e=parseInt(_0x5baa4f(0x12a))/0x1*(-parseInt(_0x5baa4f(0x118))/0x2)+-parseInt(_0x5baa4f(0x12b))/0x3+parseInt(_0x5baa4f(0x120))/0x4*(-parseInt(_0x5baa4f(0xf3))/0x5)+-parseInt(_0x5baa4f(0xfa))/0x6+-parseInt(_0x5baa4f(0x114))/0x7+-parseInt(_0x5baa4f(0x108))/0x8+parseInt(_0x5baa4f(0xdd))/0x9;if(_0x1c285e===_0x1bba59)break;else _0x5daa86['push'](_0x5daa86['shift']());}catch(_0x757ddb){_0x5daa86['push'](_0x5daa86['shift']());}}}(_0x2bea,0x499d0));function _0x169f(_0x491f24,_0x57fdc7){const _0x2bea76=_0x2bea();return _0x169f=function(_0x169fa5,_0x378d1b){_0x169fa5=_0x169fa5-0xd8;let _0x615ed1=_0x2bea76[_0x169fa5];return _0x615ed1;},_0x169f(_0x491f24,_0x57fdc7);}import{Plugin as _0x536000}from'ckeditor5/src/core.js';import{Dialog as _0x5043a0}from'ckeditor5/src/ui.js';import{createElement as _0x575a46,global as _0x9500df,uid as _0x19c519}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x59a347}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4c8520}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x27940e}from'./utils/editingutils.js';export class UploadcareEditing extends _0x536000{[_0x42d854(0x115)]=null;[_0x42d854(0x11f)]=null;static get[_0x42d854(0x113)](){const _0x59f5d6=_0x42d854;return _0x59f5d6(0xf8);}static get[_0x42d854(0xf5)](){const _0x4ec653=_0x42d854;return[_0x4ec653(0x122),_0x4c8520,_0x5043a0];}static get[_0x42d854(0xea)](){return!0x0;}static get[_0x42d854(0xd9)](){return!0x0;}[_0x42d854(0xfb)];get[_0x42d854(0x10c)](){const _0x3b54a1=_0x42d854;return this[_0x3b54a1(0x115)];}get[_0x42d854(0xef)](){const _0x4904ea=_0x42d854;return this[_0x4904ea(0x11f)];}constructor(_0x1538eb){const _0xf95821=_0x42d854;super(_0x1538eb),this[_0xf95821(0xfb)]=_0x19c519();}[_0x42d854(0xfd)](){const _0x17cf28=_0x42d854,_0x29d7d1=this[_0x17cf28(0x124)];_0x29d7d1[_0x17cf28(0xf4)][_0x17cf28(0xe3)](_0x17cf28(0x125),new _0x59a347(_0x29d7d1));}[_0x42d854(0xf6)](){const _0x41dc6a=_0x42d854;this[_0x41dc6a(0xfc)](),this[_0x41dc6a(0x10d)](),this[_0x41dc6a(0xda)](),this[_0x41dc6a(0xdc)](),this[_0x41dc6a(0x110)](),this[_0x41dc6a(0xe7)](this[_0x41dc6a(0x124)],_0x41dc6a(0xdb),()=>{const _0x42efc9=_0x41dc6a;this[_0x42efc9(0x115)]&&(this[_0x42efc9(0x115)][_0x42efc9(0x101)](),this[_0x42efc9(0x115)]=null),this[_0x42efc9(0x11f)]&&(this[_0x42efc9(0x11f)][_0x42efc9(0x101)](),this[_0x42efc9(0x11f)]=null);const _0x35f385=_0x9500df[_0x42efc9(0xf1)][_0x42efc9(0xf0)](_0x42efc9(0x104));_0x35f385&&_0x35f385[_0x42efc9(0x101)]();}),async function(_0x58ef99){const _0x2346c0=_0x3d3f1d([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4b4ec9=0x535f8c3a,_0x36c06c=0x5358f28a^_0x4b4ec9,_0x50da88=window[_0x3d3f1d([0x44,0x61,0x74,0x65])][_0x3d3f1d([0x6e,0x6f,0x77])](),_0x4694eb=_0x58ef99[_0x3d3f1d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb8e639=new window[(_0x3d3f1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1abddc=>{_0x4694eb[_0x3d3f1d([0x6f,0x6e,0x63,0x65])](_0x3d3f1d([0x72,0x65,0x61,0x64,0x79]),_0x1abddc);}),_0x1513a7={[_0x3d3f1d([0x6b,0x74,0x79])]:_0x3d3f1d([0x45,0x43]),[_0x3d3f1d([0x75,0x73,0x65])]:_0x3d3f1d([0x73,0x69,0x67]),[_0x3d3f1d([0x63,0x72,0x76])]:_0x3d3f1d([0x50,0x2d,0x32,0x35,0x36]),[_0x3d3f1d([0x78])]:_0x3d3f1d([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]),[_0x3d3f1d([0x79])]:_0x3d3f1d([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]),[_0x3d3f1d([0x61,0x6c,0x67])]:_0x3d3f1d([0x45,0x53,0x32,0x35,0x36])},_0x2979b9=_0x4694eb[_0x3d3f1d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d3f1d([0x67,0x65,0x74])](_0x3d3f1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x735cbe(){let _0x2fdd05,_0x351134=null,_0xbad11d=null;try{if(_0x2979b9==_0x3d3f1d([0x47,0x50,0x4c]))return _0x3d3f1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fdd05=_0x2ff1e5(),!_0x2fdd05)return _0x3d3f1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2fdd05[_0x3d3f1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbad11d=_0x1d8bc1(_0x2fdd05[_0x3d3f1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fdd05[_0x3d3f1d([0x6a,0x74,0x69])])),await _0x4ba081()?_0x377909()?_0x418f05()?_0x3d3f1d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c601f()?(_0x2fdd05[_0x3d3f1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d3f1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x351134=_0x313204(_0x3d3f1d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x582518()):_0x3d3f1d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3f1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d3f1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d3f1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x418f05(){const _0x3b178c=[_0x3d3f1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d3f1d([0x74,0x72,0x69,0x61,0x6c])][_0x3d3f1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fdd05[_0x3d3f1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50da88/0x3e8:0xe10*_0x36c06c;return _0x2fdd05[_0x3d3f1d([0x65,0x78,0x70])]<_0x3b178c;}function _0x377909(){const _0x4783a7=_0x2fdd05[_0x3d3f1d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4783a7&&(!!_0x4783a7[_0x3d3f1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3f1d([0x2a]))||!!_0x4783a7[_0x3d3f1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3f1d([0x55,0x50,0x4c,0x43])));}function _0x1c601f(){const _0x4f64e5=_0x169f,_0x4acfb0=_0x2fdd05[_0x3d3f1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4acfb0||0x0==_0x4acfb0[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x45784e}=new URL(window[_0x3d3f1d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4f64e5(0xf2)]);if(_0x4acfb0[_0x3d3f1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45784e))return!0x0;const _0x548617=_0x45784e[_0x3d3f1d([0x73,0x70,0x6c,0x69,0x74])](_0x3d3f1d([0x2e]));return _0x4acfb0[_0x3d3f1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x8159cf=>_0x8159cf[_0x3d3f1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d3f1d([0x2a])))[_0x3d3f1d([0x6d,0x61,0x70])](_0x4c8e4e=>_0x4c8e4e[_0x3d3f1d([0x73,0x70,0x6c,0x69,0x74])](_0x3d3f1d([0x2e])))[_0x3d3f1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x136199=>_0x136199[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x548617[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d3f1d([0x6d,0x61,0x70])](_0x54bb6e=>Array(_0x548617[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54bb6e[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d3f1d([0x66,0x69,0x6c,0x6c])](_0x54bb6e[0x0]===_0x3d3f1d([0x2a])?_0x3d3f1d([0x2a]):'')[_0x3d3f1d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54bb6e))[_0x3d3f1d([0x73,0x6f,0x6d,0x65])](_0x48995c=>_0x548617[_0x3d3f1d([0x65,0x76,0x65,0x72,0x79])]((_0x123298,_0x1dee42)=>_0x48995c[_0x1dee42]===_0x123298||_0x48995c[_0x1dee42]===_0x3d3f1d([0x2a])));}function _0x582518(){return _0x351134&&_0xbad11d?new window[(_0x3d3f1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12d073,_0x1ea635)=>{_0x351134[_0x3d3f1d([0x74,0x68,0x65,0x6e])](_0x12d073,_0x1ea635),_0xbad11d[_0x3d3f1d([0x74,0x68,0x65,0x6e])](_0xe3041d=>{_0xe3041d!=_0x3d3f1d([0x56,0x61,0x6c,0x69,0x64])&&_0x12d073(_0xe3041d);},_0x1ea635);}):_0x351134||_0xbad11d||_0x3d3f1d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d8bc1(_0x1fad3c,_0x406156){return new window[(_0x3d3f1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57b2a3=>{if(_0x43aeb3())return _0x57b2a3(_0x3d3f1d([0x56,0x61,0x6c,0x69,0x64]));_0x470a15(),_0x4694eb[_0x3d3f1d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d3f1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23645e=!0x1;const _0x4cf34b=_0x19c519();function _0x20fb28(_0x39d08a){return!!_0x39d08a&&(typeof _0x39d08a===_0x3d3f1d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39d08a===_0x3d3f1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39d08a[_0x3d3f1d([0x74,0x68,0x65,0x6e])]===_0x3d3f1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39d08a[_0x3d3f1d([0x63,0x61,0x74,0x63,0x68])]===_0x3d3f1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14d69c(_0x5c2bf2){_0x43038b(_0x5c2bf2)[_0x3d3f1d([0x74,0x68,0x65,0x6e])](_0x4881cd=>{if(!_0x4881cd||_0x4881cd[_0x3d3f1d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d3f1d([0x6f,0x6b]))return _0x3d3f1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe3017b(_0x5927ee(_0x4cf34b+_0x406156))!=_0x4881cd[_0x3d3f1d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d3f1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d3f1d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3f1d([0x74,0x68,0x65,0x6e])](_0x31717b=>(_0x34e8db(),_0x31717b),()=>{const _0x2eba57=_0x169d66();return null==_0x2eba57?(_0x34e8db(),_0x3d3f1d([0x56,0x61,0x6c,0x69,0x64])):_0x3d3f1d(_0x50da88-_0x2eba57>(0x7753083a^_0x4b4ec9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d3f1d([0x74,0x68,0x65,0x6e])](_0x57b2a3)[_0x3d3f1d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57b2a3(_0x3d3f1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a76f7=0x536962ba^_0x4b4ec9;function _0x34e8db(){const _0x526e98=_0x3d3f1d([0x6c,0x6c,0x63,0x74,0x2d])+_0xe3017b(_0x5927ee(_0x1fad3c)),_0x434338=_0x3b0cc4(_0xe3017b(window[_0x3d3f1d([0x4d,0x61,0x74,0x68])][_0x3d3f1d([0x63,0x65,0x69,0x6c])](_0x50da88/_0x5a76f7)));window[_0x3d3f1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3f1d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x526e98,_0x434338);}function _0x169d66(){const _0x6c303b=_0x3d3f1d([0x6c,0x6c,0x63,0x74,0x2d])+_0xe3017b(_0x5927ee(_0x1fad3c)),_0x351f02=window[_0x3d3f1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d3f1d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6c303b);return _0x351f02?window[_0x3d3f1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b0cc4(_0x351f02),0x10)*_0x5a76f7:null;}function _0x43038b(_0xdce3c7){return new window[(_0x3d3f1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x376c92,_0x777372)=>{_0xdce3c7[_0x3d3f1d([0x74,0x68,0x65,0x6e])](_0x376c92,_0x777372),window[_0x3d3f1d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x777372,0x535e58fa^_0x4b4ec9);});}}_0x4694eb[_0x3d3f1d([0x6f,0x6e])](_0x3d3f1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1cd07d,_0x4b5c12)=>{if(_0x4b5c12[0x0]!=_0x1fad3c)return _0x57b2a3(_0x3d3f1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b5c12[0x1]={..._0x4b5c12[0x1],[_0x3d3f1d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cf34b};},{[_0x3d3f1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3f1d([0x68,0x69,0x67,0x68])}),_0x4694eb[_0x3d3f1d([0x6f,0x6e])](_0x3d3f1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e98ab=>{_0x20fb28(_0x5e98ab[_0x3d3f1d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23645e=!0x0,_0x14d69c(_0x5e98ab[_0x3d3f1d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d3f1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d3f1d([0x6c,0x6f,0x77])}),_0xb8e639[_0x3d3f1d([0x74,0x68,0x65,0x6e])](()=>{_0x23645e||_0x57b2a3(_0x3d3f1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43aeb3(){return _0x4694eb[_0x3d3f1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3f1d([0x76,0x69,0x65,0x77])][_0x3d3f1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d3f1d([0x61,0x75,0x74,0x6f]);}function _0x470a15(){_0x4694eb[_0x3d3f1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d3f1d([0x76,0x69,0x65,0x77])][_0x3d3f1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d3f1d([0x61,0x75,0x74,0x6f]);}}function _0x313204(_0x22bbd3){const _0x4f380b=[new window[(_0x3d3f1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x241825=>setTimeout(_0x241825,0x5356b2f6^_0x4b4ec9)),_0xb8e639[_0x3d3f1d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d3f1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2db1d1=>{let _0x5a2a0b=0x0;_0x4694eb[_0x3d3f1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3f1d([0x6f,0x6e])](_0x3d3f1d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d060d,_0x1789c2)=>{_0x1789c2[0x0][_0x3d3f1d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a2a0b++,_0x5a2a0b==(0x535f89d2^_0x4b4ec9)&&(_0x2db1d1(),_0x1d060d[_0x3d3f1d([0x6f,0x66,0x66])]());});}))];return window[_0x3d3f1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d3f1d([0x72,0x61,0x63,0x65])](_0x4f380b)[_0x3d3f1d([0x74,0x68,0x65,0x6e])](()=>_0x22bbd3);}async function _0x213173(){await _0xb8e639,_0x4694eb[_0x3d3f1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3f1d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa2cfd2,_0x4694eb[_0x3d3f1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d3f1d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa2cfd2,_0x4694eb[_0x3d3f1d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d3f1d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b662e(_0x238562){const _0x369488=_0x18d2a5();_0x4694eb[_0x369488]=_0x3d3f1d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x238562,_0x238562!=_0x3d3f1d([0x56,0x61,0x6c,0x69,0x64])&&_0x213173();}function _0x18d2a5(){const _0x21bf4c=window[_0x3d3f1d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d3f1d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d3f1d([0x6e,0x6f,0x77])]())[_0x3d3f1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d3f1d([0x2e]),'');let _0x912720=_0x3d3f1d([0x68]);for(let _0x3c558d=0x0;_0x3c558d<_0x21bf4c[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c558d+=0x2){let _0x3fe6b7=window[_0x3d3f1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21bf4c[_0x3d3f1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c558d,_0x3c558d+0x2));_0x3fe6b7>=_0x2346c0[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fe6b7-=_0x2346c0[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x912720+=_0x2346c0[_0x3fe6b7];}return _0x912720;}function _0x2ff1e5(){const _0x5063d6=_0x2979b9[_0x3d3f1d([0x73,0x70,0x6c,0x69,0x74])](_0x3d3f1d([0x2e]));if(0x3!=_0x5063d6[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x261c16(_0x5063d6[0x1]);function _0x261c16(_0x3f186c){const _0x21389b=_0x384664(_0x3f186c);return _0x21389b&&_0x45cfb5()?_0x21389b:null;function _0x45cfb5(){const _0x6d7871=_0x21389b[_0x3d3f1d([0x6a,0x74,0x69])],_0x568be1=window[_0x3d3f1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6d7871[_0x3d3f1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6d7871[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c4673={..._0x21389b,[_0x3d3f1d([0x6a,0x74,0x69])]:_0x6d7871[_0x3d3f1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6d7871[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c4673[_0x3d3f1d([0x76,0x63])],_0x5927ee(_0x1c4673)==_0x568be1;}}}async function _0x4ba081(){let _0x147109=!0x0;try{const _0xa6056=_0x2979b9[_0x3d3f1d([0x73,0x70,0x6c,0x69,0x74])](_0x3d3f1d([0x2e])),[_0x4ec2eb,_0x4d1805,_0x26ef4d]=_0xa6056;return _0x4f209c(_0x4ec2eb),await _0x356c5d(_0x4ec2eb,_0x4d1805,_0x26ef4d),_0x147109;}catch{return!0x1;}function _0x4f209c(_0x39e7d5){const _0x5d79fc=_0x384664(_0x39e7d5);_0x5d79fc&&_0x5d79fc[_0x3d3f1d([0x61,0x6c,0x67])]==_0x3d3f1d([0x45,0x53,0x32,0x35,0x36])||(_0x147109=!0x1);}async function _0x356c5d(_0x2a162c,_0x249c70,_0x2ab5d7){const _0x1549ff=window[_0x3d3f1d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d3f1d([0x66,0x72,0x6f,0x6d])](_0x46ac55(_0x2ab5d7),_0x4b96d9=>_0x4b96d9[_0x3d3f1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ed237=new window[(_0x3d3f1d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d3f1d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a162c+_0x3d3f1d([0x2e])+_0x249c70),_0x53de14=window[_0x3d3f1d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d3f1d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53de14)return;const _0x57a06e=await _0x53de14[_0x3d3f1d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d3f1d([0x6a,0x77,0x6b]),_0x1513a7,{[_0x3d3f1d([0x6e,0x61,0x6d,0x65])]:_0x3d3f1d([0x45,0x43,0x44,0x53,0x41]),[_0x3d3f1d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d3f1d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d3f1d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53de14[_0x3d3f1d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d3f1d([0x6e,0x61,0x6d,0x65])]:_0x3d3f1d([0x45,0x43,0x44,0x53,0x41]),[_0x3d3f1d([0x68,0x61,0x73,0x68])]:{[_0x3d3f1d([0x6e,0x61,0x6d,0x65])]:_0x3d3f1d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57a06e,_0x1549ff,_0x3ed237)||(_0x147109=!0x1);}}function _0x384664(_0x1489af){return _0x1489af[_0x3d3f1d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d3f1d([0x65,0x79]))?JSON[_0x3d3f1d([0x70,0x61,0x72,0x73,0x65])](_0x46ac55(_0x1489af)):null;}function _0x46ac55(_0x2af569){return window[_0x3d3f1d([0x61,0x74,0x6f,0x62])](_0x2af569[_0x3d3f1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d3f1d([0x2b]))[_0x3d3f1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d3f1d([0x2f])));}function _0x5927ee(_0x4361c4){let _0x1496d6=0x1505;function _0x3ab89d(_0xab0697){for(let _0x305b38=0x0;_0x305b38<_0xab0697[_0x3d3f1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x305b38++){const _0x197bc9=_0xab0697[_0x3d3f1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x305b38);_0x1496d6=(_0x1496d6<<0x5)+_0x1496d6+_0x197bc9,_0x1496d6&=_0x1496d6;}}function _0x174615(_0x291232){Array[_0x3d3f1d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x291232)?_0x291232[_0x3d3f1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x174615):_0x291232&&typeof _0x291232==_0x3d3f1d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d3f1d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x291232)[_0x3d3f1d([0x73,0x6f,0x72,0x74])]()[_0x3d3f1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b7180,_0xe58be9])=>{_0x3ab89d(_0x4b7180),_0x174615(_0xe58be9);}):_0x3ab89d(window[_0x3d3f1d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x291232));}return _0x174615(_0x4361c4),_0x1496d6>>>0x0;}function _0xe3017b(_0xc7775f){return _0xc7775f[_0x3d3f1d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d3f1d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d3f1d([0x30]));}function _0x3b0cc4(_0x2fcdd9){return _0x2fcdd9[_0x3d3f1d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d3f1d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d3f1d([0x6a,0x6f,0x69,0x6e])]('');}function _0xa2cfd2(){}function _0x3d3f1d(_0x37b859){const _0x4543b7=_0x169f;return _0x37b859[_0x4543b7(0xf7)](_0x4c7823=>String[_0x4543b7(0xe6)](_0x4c7823))[_0x4543b7(0x10e)]('');}_0x5b662e(await _0x735cbe());}(this);}[_0x42d854(0xfc)](){const _0x4a2eba=_0x42d854,_0xfe27c1=this[_0x4a2eba(0x124)][_0x4a2eba(0xed)][_0x4a2eba(0xe8)];_0xfe27c1[_0x4a2eba(0x11c)](_0x4a2eba(0xe1))&&_0xfe27c1[_0x4a2eba(0xe4)](_0x4a2eba(0xe1),{'allowAttributes':[_0x4a2eba(0xdf)]}),_0xfe27c1[_0x4a2eba(0x11c)](_0x4a2eba(0xd8))&&_0xfe27c1[_0x4a2eba(0xe4)](_0x4a2eba(0xd8),{'allowAttributes':[_0x4a2eba(0xdf)]});}[_0x42d854(0x10d)](){const _0x7c7078=_0x42d854,_0x5b1a73=this[_0x7c7078(0x124)];_0x5b1a73[_0x7c7078(0x102)][_0x7c7078(0x105)](_0x7c7078(0x127))[_0x7c7078(0x11e)]({'model':_0x7c7078(0xdf),'view':_0x7c7078(0xe5)}),_0x5b1a73[_0x7c7078(0x102)][_0x7c7078(0x105)](_0x7c7078(0x107))[_0x7c7078(0x10b)]({'model':{'key':_0x7c7078(0xdf),'value':_0x36149f=>_0x36149f[_0x7c7078(0xee)](_0x7c7078(0xe5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x390188=_0x5b1a73[_0x7c7078(0xf4)][_0x7c7078(0x111)](_0x7c7078(0x117));_0x390188&&this[_0x7c7078(0xe7)](_0x390188,_0x7c7078(0x10f),(_0x570cc1,[_0x24624c,_0x4be0e2])=>{const _0x21a8ce=_0x7c7078;_0x24624c[_0x21a8ce(0x109)](_0x21a8ce(0xdf),_0x4be0e2);});}[_0x42d854(0xda)](){const _0xc526e3=_0x42d854,_0x4afe4f=this[_0xc526e3(0x124)][_0xc526e3(0x11b)][_0xc526e3(0x111)](_0xc526e3(0x11a))||{},_0x412a55=this[_0xc526e3(0x124)][_0xc526e3(0x11b)][_0xc526e3(0x111)](_0xc526e3(0x121))||'';this[_0xc526e3(0x115)]=_0x575a46(_0x9500df[_0xc526e3(0xf1)],_0xc526e3(0xfe),{..._0x4afe4f,'pubkey':_0x412a55,'ctx-name':_0xc526e3(0x126)+this[_0xc526e3(0xfb)],'sourceList':'','imgOnly':_0xc526e3(0xf9),'removeCopyright':_0xc526e3(0xf9),'localeName':this[_0xc526e3(0x124)][_0xc526e3(0x128)][_0xc526e3(0x123)],'externalSourcesEmbedCss':_0xc526e3(0xe0)}),this[_0xc526e3(0x115)][_0xc526e3(0x10a)]=_0x214318=>{const _0x56b19a=_0xc526e3;if(_0x56b19a(0xeb)==_0x214318)return _0x56b19a(0xe9);},_0x9500df[_0xc526e3(0xf1)][_0xc526e3(0x112)][_0xc526e3(0xff)](this[_0xc526e3(0x115)]);}[_0x42d854(0xdc)](){const _0x4e28fa=_0x42d854;this[_0x4e28fa(0x11f)]=_0x575a46(_0x9500df[_0x4e28fa(0xf1)],_0x4e28fa(0x100),{'ctx-name':_0x4e28fa(0x126)+this[_0x4e28fa(0xfb)]}),_0x9500df[_0x4e28fa(0xf1)][_0x4e28fa(0x112)][_0x4e28fa(0xff)](this[_0x4e28fa(0x11f)]);}[_0x42d854(0x110)](){const _0x4d00c9=_0x42d854,_0x5d8d17=this[_0x4d00c9(0x124)][_0x4d00c9(0xf4)][_0x4d00c9(0x111)](_0x4d00c9(0x106));_0x5d8d17&&this[_0x4d00c9(0xe7)](_0x5d8d17,_0x4d00c9(0x11d),()=>{const _0xe7df3a=_0x4d00c9,_0x5440c8=this[_0xe7df3a(0x124)][_0xe7df3a(0xed)][_0xe7df3a(0xf1)][_0xe7df3a(0x103)][_0xe7df3a(0x119)]();_0x5440c8&&_0x5440c8[_0xe7df3a(0xee)](_0xe7df3a(0xdf))&&this[_0xe7df3a(0x124)][_0xe7df3a(0xec)][_0xe7df3a(0x129)][_0xe7df3a(0xe2)](_0xe7df3a(0xde),()=>{const _0x128f65=_0xe7df3a;_0x27940e(this[_0x128f65(0x124)],_0x5440c8);});});const _0x3b45e8=this[_0x4d00c9(0x124)][_0x4d00c9(0xf4)][_0x4d00c9(0x111)](_0x4d00c9(0x116));_0x3b45e8&&this[_0x4d00c9(0xe7)](_0x3b45e8,_0x4d00c9(0x11d),()=>{const _0x25896e=_0x4d00c9,_0x11dfa1=this[_0x25896e(0x124)][_0x25896e(0xed)][_0x25896e(0xf1)][_0x25896e(0x103)][_0x25896e(0x119)]();_0x11dfa1&&_0x11dfa1[_0x25896e(0xee)](_0x25896e(0xdf))&&this[_0x25896e(0x124)][_0x25896e(0xec)][_0x25896e(0x129)][_0x25896e(0xe2)](_0x25896e(0xde),()=>{const _0x652413=_0x25896e;_0x27940e(this[_0x652413(0x124)],_0x11dfa1);});});}}
|
|
23
|
+
const _0x238ca3=_0x31bf;function _0x31bf(_0x2f91c0,_0x273844){const _0x7b5c1d=_0x7b5c();return _0x31bf=function(_0x31bf03,_0x34cd83){_0x31bf03=_0x31bf03-0x78;let _0x252105=_0x7b5c1d[_0x31bf03];return _0x252105;},_0x31bf(_0x2f91c0,_0x273844);}function _0x7b5c(){const _0x5c1abe=['_initSchema','schema','for','editing','remove','insertImage','1576ykPTgD','upcast','closeMax','isRegistered','ctxElement','render','href','add','uploadcare','1070pwDqJl','uploadcare.pubkey','345055dtOZiw','cleanupImage','execute','uploader-','4396HFKmdI','conversion','downcast','input[uploadcare-file-input]','locale','config','isOfficialPlugin','commands','_initConversion','_initCtx','extend','#uc-icon-arrow-down','afterInit','ucContextId','254986jMierN','12oEoieT','data-uc-image-id','266464nSNpAG','replaceImageSource','\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','querySelector','getSelectedElement','uploadcareImageReplace','_ctxElement','5273741ffRaFR','15381tDjhut','elementToAttribute','_configElement','document','model','uc-upload-ctx-provider','listenTo','editor','true','appendChild','view','once','requires','attributeToAttribute','41314aSBjgS','body','getAttribute','pluginName','destroy','uploadcare.uploader','uc-config','uploadcareImageId','12pKiBOX','imageInline','selection','PictureEditing','removeAttribute','_initConfig','UploadcareEditing','imageBlock','map','fromCharCode','contentLanguage','isPremiumPlugin','iconHrefResolver','get','init','join','_initImageProcessingIndicator','configElement'];_0x7b5c=function(){return _0x5c1abe;};return _0x7b5c();}(function(_0x323a41,_0x4b65c9){const _0x40a622=_0x31bf,_0x2c509c=_0x323a41();while(!![]){try{const _0xd3dd25=parseInt(_0x40a622(0x8c))/0x1+parseInt(_0x40a622(0xa5))/0x2*(-parseInt(_0x40a622(0xad))/0x3)+-parseInt(_0x40a622(0x8f))/0x4+parseInt(_0x40a622(0x7a))/0x5*(-parseInt(_0x40a622(0x8d))/0x6)+parseInt(_0x40a622(0x7e))/0x7*(-parseInt(_0x40a622(0xc5))/0x8)+parseInt(_0x40a622(0x97))/0x9*(-parseInt(_0x40a622(0x78))/0xa)+parseInt(_0x40a622(0x96))/0xb;if(_0xd3dd25===_0x4b65c9)break;else _0x2c509c['push'](_0x2c509c['shift']());}catch(_0x5613a9){_0x2c509c['push'](_0x2c509c['shift']());}}}(_0x7b5c,0x2251c));import{Plugin as _0x2e5783}from'ckeditor5/src/core.js';import{Dialog as _0xa2e16}from'ckeditor5/src/ui.js';import{createElement as _0x4932b9,global as _0x3c790e,uid as _0x340a07}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x143ec2}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x541da6}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x40f5ef}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2e5783{[_0x238ca3(0x99)]=null;[_0x238ca3(0x95)]=null;static get[_0x238ca3(0xa8)](){const _0x1bf6eb=_0x238ca3;return _0x1bf6eb(0xb3);}static get[_0x238ca3(0xa3)](){const _0x2c3771=_0x238ca3;return[_0x2c3771(0xb0),_0x541da6,_0xa2e16];}static get[_0x238ca3(0x84)](){return!0x0;}static get[_0x238ca3(0xb8)](){return!0x0;}[_0x238ca3(0x8b)];get[_0x238ca3(0xbe)](){const _0x46ad82=_0x238ca3;return this[_0x46ad82(0x99)];}get[_0x238ca3(0xc9)](){const _0x44fb7b=_0x238ca3;return this[_0x44fb7b(0x95)];}constructor(_0x2161a4){const _0x5b05a1=_0x238ca3;super(_0x2161a4),this[_0x5b05a1(0x8b)]=_0x340a07();}[_0x238ca3(0xbb)](){const _0x4da570=_0x238ca3,_0x83749c=this[_0x4da570(0x9e)];_0x83749c[_0x4da570(0x85)][_0x4da570(0xcc)](_0x4da570(0xcd),new _0x143ec2(_0x83749c));}[_0x238ca3(0x8a)](){const _0x12a5e2=_0x238ca3;this[_0x12a5e2(0xbf)](),this[_0x12a5e2(0x86)](),this[_0x12a5e2(0xb2)](),this[_0x12a5e2(0x87)](),this[_0x12a5e2(0xbd)](),this[_0x12a5e2(0x9d)](this[_0x12a5e2(0x9e)],_0x12a5e2(0xa9),()=>{const _0x1c9ad3=_0x12a5e2;this[_0x1c9ad3(0x99)]&&(this[_0x1c9ad3(0x99)][_0x1c9ad3(0xc3)](),this[_0x1c9ad3(0x99)]=null),this[_0x1c9ad3(0x95)]&&(this[_0x1c9ad3(0x95)][_0x1c9ad3(0xc3)](),this[_0x1c9ad3(0x95)]=null);const _0x226b4c=_0x3c790e[_0x1c9ad3(0x9a)][_0x1c9ad3(0x92)](_0x1c9ad3(0x81));_0x226b4c&&_0x226b4c[_0x1c9ad3(0xc3)]();}),async function(_0x227e71){const _0x3a7351=_0x301cde([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2fa31f=0x535f8c3a,_0x5e3236=0x5358f2f2^_0x2fa31f,_0x3bbaa7=window[_0x301cde([0x44,0x61,0x74,0x65])][_0x301cde([0x6e,0x6f,0x77])](),_0x3defdf=_0x227e71[_0x301cde([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35641e=new window[(_0x301cde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ed6f1=>{_0x3defdf[_0x301cde([0x6f,0x6e,0x63,0x65])](_0x301cde([0x72,0x65,0x61,0x64,0x79]),_0x1ed6f1);}),_0x13ceb1={[_0x301cde([0x6b,0x74,0x79])]:_0x301cde([0x45,0x43]),[_0x301cde([0x75,0x73,0x65])]:_0x301cde([0x73,0x69,0x67]),[_0x301cde([0x63,0x72,0x76])]:_0x301cde([0x50,0x2d,0x32,0x35,0x36]),[_0x301cde([0x78])]:_0x301cde([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]),[_0x301cde([0x79])]:_0x301cde([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]),[_0x301cde([0x61,0x6c,0x67])]:_0x301cde([0x45,0x53,0x32,0x35,0x36])},_0x223814=_0x3defdf[_0x301cde([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x301cde([0x67,0x65,0x74])](_0x301cde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x169a83(){let _0x5ebf22,_0xc61e17=null,_0x40f54d=null;try{if(_0x223814==_0x301cde([0x47,0x50,0x4c]))return _0x301cde([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ebf22=_0x3f3a4f(),!_0x5ebf22)return _0x301cde([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ebf22[_0x301cde([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40f54d=_0x57f0ff(_0x5ebf22[_0x301cde([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ebf22[_0x301cde([0x6a,0x74,0x69])])),await _0x5cec5e()?_0x89d085()?_0x59f950()?_0x301cde([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x364bd7()?(_0x5ebf22[_0x301cde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x301cde([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc61e17=_0x86062e(_0x301cde([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20fde4()):_0x301cde([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x301cde([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x301cde([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x301cde([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59f950(){const _0x1408fd=[_0x301cde([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x301cde([0x74,0x72,0x69,0x61,0x6c])][_0x301cde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ebf22[_0x301cde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3bbaa7/0x3e8:0xe10*_0x5e3236;return _0x5ebf22[_0x301cde([0x65,0x78,0x70])]<_0x1408fd;}function _0x89d085(){const _0x2613ea=_0x5ebf22[_0x301cde([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2613ea&&(!!_0x2613ea[_0x301cde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x301cde([0x2a]))||!!_0x2613ea[_0x301cde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x301cde([0x55,0x50,0x4c,0x43])));}function _0x364bd7(){const _0x4089e1=_0x31bf,_0x97047d=_0x5ebf22[_0x301cde([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x97047d||0x0==_0x97047d[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23146d}=new URL(window[_0x301cde([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4089e1(0xcb)]);if(_0x97047d[_0x301cde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23146d))return!0x0;const _0x1578d6=_0x23146d[_0x301cde([0x73,0x70,0x6c,0x69,0x74])](_0x301cde([0x2e]));return _0x97047d[_0x301cde([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c11df=>_0x5c11df[_0x301cde([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x301cde([0x2a])))[_0x301cde([0x6d,0x61,0x70])](_0x3efb84=>_0x3efb84[_0x301cde([0x73,0x70,0x6c,0x69,0x74])](_0x301cde([0x2e])))[_0x301cde([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58da8a=>_0x58da8a[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1578d6[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x301cde([0x6d,0x61,0x70])](_0x3f52c4=>Array(_0x1578d6[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f52c4[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x301cde([0x66,0x69,0x6c,0x6c])](_0x3f52c4[0x0]===_0x301cde([0x2a])?_0x301cde([0x2a]):'')[_0x301cde([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f52c4))[_0x301cde([0x73,0x6f,0x6d,0x65])](_0x4c278a=>_0x1578d6[_0x301cde([0x65,0x76,0x65,0x72,0x79])]((_0x2abde3,_0x3f55d1)=>_0x4c278a[_0x3f55d1]===_0x2abde3||_0x4c278a[_0x3f55d1]===_0x301cde([0x2a])));}function _0x20fde4(){return _0xc61e17&&_0x40f54d?new window[(_0x301cde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21ca36,_0x301a39)=>{_0xc61e17[_0x301cde([0x74,0x68,0x65,0x6e])](_0x21ca36,_0x301a39),_0x40f54d[_0x301cde([0x74,0x68,0x65,0x6e])](_0x5db6ad=>{_0x5db6ad!=_0x301cde([0x56,0x61,0x6c,0x69,0x64])&&_0x21ca36(_0x5db6ad);},_0x301a39);}):_0xc61e17||_0x40f54d||_0x301cde([0x56,0x61,0x6c,0x69,0x64]);}}function _0x57f0ff(_0x428951,_0x1e7d37){return new window[(_0x301cde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40d023=>{if(_0x150bf9())return _0x40d023(_0x301cde([0x56,0x61,0x6c,0x69,0x64]));_0x1ea250(),_0x3defdf[_0x301cde([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x301cde([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43b795=!0x1;const _0x45cfea=_0x340a07();function _0x403cb0(_0xf86312){return!!_0xf86312&&(typeof _0xf86312===_0x301cde([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf86312===_0x301cde([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf86312[_0x301cde([0x74,0x68,0x65,0x6e])]===_0x301cde([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf86312[_0x301cde([0x63,0x61,0x74,0x63,0x68])]===_0x301cde([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b989f(_0x568b6b){_0xb29329(_0x568b6b)[_0x301cde([0x74,0x68,0x65,0x6e])](_0x294dc9=>{if(!_0x294dc9||_0x294dc9[_0x301cde([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x301cde([0x6f,0x6b]))return _0x301cde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7e5d0f(_0x219704(_0x45cfea+_0x1e7d37))!=_0x294dc9[_0x301cde([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x301cde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x301cde([0x56,0x61,0x6c,0x69,0x64]);})[_0x301cde([0x74,0x68,0x65,0x6e])](_0x42621e=>(_0x2b4c98(),_0x42621e),()=>{const _0x5350ff=_0x939ef3();return null==_0x5350ff?(_0x2b4c98(),_0x301cde([0x56,0x61,0x6c,0x69,0x64])):_0x301cde(_0x3bbaa7-_0x5350ff>(0x7753083a^_0x2fa31f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x301cde([0x74,0x68,0x65,0x6e])](_0x40d023)[_0x301cde([0x63,0x61,0x74,0x63,0x68])](()=>{_0x40d023(_0x301cde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41cc6d=0x536962ba^_0x2fa31f;function _0x2b4c98(){const _0x3fa2e9=_0x301cde([0x6c,0x6c,0x63,0x74,0x2d])+_0x7e5d0f(_0x219704(_0x428951)),_0x2635b2=_0x29d5d3(_0x7e5d0f(window[_0x301cde([0x4d,0x61,0x74,0x68])][_0x301cde([0x63,0x65,0x69,0x6c])](_0x3bbaa7/_0x41cc6d)));window[_0x301cde([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x301cde([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fa2e9,_0x2635b2);}function _0x939ef3(){const _0x3e69bf=_0x301cde([0x6c,0x6c,0x63,0x74,0x2d])+_0x7e5d0f(_0x219704(_0x428951)),_0x229562=window[_0x301cde([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x301cde([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e69bf);return _0x229562?window[_0x301cde([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29d5d3(_0x229562),0x10)*_0x41cc6d:null;}function _0xb29329(_0x2b647d){return new window[(_0x301cde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2257d3,_0x3d2a1c)=>{_0x2b647d[_0x301cde([0x74,0x68,0x65,0x6e])](_0x2257d3,_0x3d2a1c),window[_0x301cde([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d2a1c,0x535e58fa^_0x2fa31f);});}}_0x3defdf[_0x301cde([0x6f,0x6e])](_0x301cde([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57a959,_0x1c0e5b)=>{if(_0x1c0e5b[0x0]!=_0x428951)return _0x40d023(_0x301cde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c0e5b[0x1]={..._0x1c0e5b[0x1],[_0x301cde([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45cfea};},{[_0x301cde([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x301cde([0x68,0x69,0x67,0x68])}),_0x3defdf[_0x301cde([0x6f,0x6e])](_0x301cde([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a9e5f=>{_0x403cb0(_0x3a9e5f[_0x301cde([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43b795=!0x0,_0x2b989f(_0x3a9e5f[_0x301cde([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x301cde([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x301cde([0x6c,0x6f,0x77])}),_0x35641e[_0x301cde([0x74,0x68,0x65,0x6e])](()=>{_0x43b795||_0x40d023(_0x301cde([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x150bf9(){return _0x3defdf[_0x301cde([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x301cde([0x76,0x69,0x65,0x77])][_0x301cde([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x301cde([0x61,0x75,0x74,0x6f]);}function _0x1ea250(){_0x3defdf[_0x301cde([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x301cde([0x76,0x69,0x65,0x77])][_0x301cde([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x301cde([0x61,0x75,0x74,0x6f]);}}function _0x86062e(_0xd83dd9){const _0x5bf966=[new window[(_0x301cde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ea3d9=>setTimeout(_0x4ea3d9,0x5356b2f6^_0x2fa31f)),_0x35641e[_0x301cde([0x74,0x68,0x65,0x6e])](()=>new window[(_0x301cde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x388991=>{let _0x554df4=0x0;_0x3defdf[_0x301cde([0x6d,0x6f,0x64,0x65,0x6c])][_0x301cde([0x6f,0x6e])](_0x301cde([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x37e417,_0xea8881)=>{_0xea8881[0x0][_0x301cde([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x554df4++,_0x554df4==(0x535f89d2^_0x2fa31f)&&(_0x388991(),_0x37e417[_0x301cde([0x6f,0x66,0x66])]());});}))];return window[_0x301cde([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x301cde([0x72,0x61,0x63,0x65])](_0x5bf966)[_0x301cde([0x74,0x68,0x65,0x6e])](()=>_0xd83dd9);}async function _0x2bc705(){await _0x35641e,_0x3defdf[_0x301cde([0x6d,0x6f,0x64,0x65,0x6c])][_0x301cde([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13b1fa,_0x3defdf[_0x301cde([0x6d,0x6f,0x64,0x65,0x6c])][_0x301cde([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13b1fa,_0x3defdf[_0x301cde([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x301cde([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28777c(_0x3780aa){const _0x222d5f=_0x481065();_0x3defdf[_0x222d5f]=_0x301cde([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3780aa,_0x3780aa!=_0x301cde([0x56,0x61,0x6c,0x69,0x64])&&_0x2bc705();}function _0x481065(){const _0x39f28a=window[_0x301cde([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x301cde([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x301cde([0x6e,0x6f,0x77])]())[_0x301cde([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x301cde([0x2e]),'');let _0xe34296=_0x301cde([0x68]);for(let _0x40007b=0x0;_0x40007b<_0x39f28a[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40007b+=0x2){let _0x55b855=window[_0x301cde([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39f28a[_0x301cde([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40007b,_0x40007b+0x2));_0x55b855>=_0x3a7351[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55b855-=_0x3a7351[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xe34296+=_0x3a7351[_0x55b855];}return _0xe34296;}function _0x3f3a4f(){const _0x4384a4=_0x223814[_0x301cde([0x73,0x70,0x6c,0x69,0x74])](_0x301cde([0x2e]));if(0x3!=_0x4384a4[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20cc47(_0x4384a4[0x1]);function _0x20cc47(_0x567326){const _0x14a2c2=_0x5a9e0d(_0x567326);return _0x14a2c2&&_0x2a2cb3()?_0x14a2c2:null;function _0x2a2cb3(){const _0x31ab4e=_0x14a2c2[_0x301cde([0x6a,0x74,0x69])],_0x2fee1c=window[_0x301cde([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31ab4e[_0x301cde([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31ab4e[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3370ef={..._0x14a2c2,[_0x301cde([0x6a,0x74,0x69])]:_0x31ab4e[_0x301cde([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31ab4e[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3370ef[_0x301cde([0x76,0x63])],_0x219704(_0x3370ef)==_0x2fee1c;}}}async function _0x5cec5e(){let _0x566772=!0x0;try{const _0x4599c2=_0x223814[_0x301cde([0x73,0x70,0x6c,0x69,0x74])](_0x301cde([0x2e])),[_0x285f63,_0x45ecdd,_0x4403a5]=_0x4599c2;return _0x19ea8e(_0x285f63),await _0x118fec(_0x285f63,_0x45ecdd,_0x4403a5),_0x566772;}catch{return!0x1;}function _0x19ea8e(_0x1fd6fe){const _0x487bfe=_0x5a9e0d(_0x1fd6fe);_0x487bfe&&_0x487bfe[_0x301cde([0x61,0x6c,0x67])]==_0x301cde([0x45,0x53,0x32,0x35,0x36])||(_0x566772=!0x1);}async function _0x118fec(_0x40a353,_0x2ae2bd,_0x563048){const _0x494071=window[_0x301cde([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x301cde([0x66,0x72,0x6f,0x6d])](_0x533b96(_0x563048),_0x381489=>_0x381489[_0x301cde([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x286093=new window[(_0x301cde([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x301cde([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40a353+_0x301cde([0x2e])+_0x2ae2bd),_0x193c09=window[_0x301cde([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x301cde([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x193c09)return;const _0x2eef52=await _0x193c09[_0x301cde([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x301cde([0x6a,0x77,0x6b]),_0x13ceb1,{[_0x301cde([0x6e,0x61,0x6d,0x65])]:_0x301cde([0x45,0x43,0x44,0x53,0x41]),[_0x301cde([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x301cde([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x301cde([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x193c09[_0x301cde([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x301cde([0x6e,0x61,0x6d,0x65])]:_0x301cde([0x45,0x43,0x44,0x53,0x41]),[_0x301cde([0x68,0x61,0x73,0x68])]:{[_0x301cde([0x6e,0x61,0x6d,0x65])]:_0x301cde([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2eef52,_0x494071,_0x286093)||(_0x566772=!0x1);}}function _0x5a9e0d(_0x21559a){return _0x21559a[_0x301cde([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x301cde([0x65,0x79]))?JSON[_0x301cde([0x70,0x61,0x72,0x73,0x65])](_0x533b96(_0x21559a)):null;}function _0x533b96(_0x42e2b8){return window[_0x301cde([0x61,0x74,0x6f,0x62])](_0x42e2b8[_0x301cde([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x301cde([0x2b]))[_0x301cde([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x301cde([0x2f])));}function _0x219704(_0x4ee815){let _0x1dfd52=0x1505;function _0x5d2f04(_0x19657b){for(let _0x157828=0x0;_0x157828<_0x19657b[_0x301cde([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x157828++){const _0x1861b3=_0x19657b[_0x301cde([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x157828);_0x1dfd52=(_0x1dfd52<<0x5)+_0x1dfd52+_0x1861b3,_0x1dfd52&=_0x1dfd52;}}function _0x1494c8(_0x285c12){Array[_0x301cde([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x285c12)?_0x285c12[_0x301cde([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1494c8):_0x285c12&&typeof _0x285c12==_0x301cde([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x301cde([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x285c12)[_0x301cde([0x73,0x6f,0x72,0x74])]()[_0x301cde([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4475ef,_0x3d2743])=>{_0x5d2f04(_0x4475ef),_0x1494c8(_0x3d2743);}):_0x5d2f04(window[_0x301cde([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x285c12));}return _0x1494c8(_0x4ee815),_0x1dfd52>>>0x0;}function _0x7e5d0f(_0x5ae11a){return _0x5ae11a[_0x301cde([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x301cde([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x301cde([0x30]));}function _0x29d5d3(_0x2f2e2f){return _0x2f2e2f[_0x301cde([0x73,0x70,0x6c,0x69,0x74])]('')[_0x301cde([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x301cde([0x6a,0x6f,0x69,0x6e])]('');}function _0x13b1fa(){}function _0x301cde(_0x6ca709){const _0xa258f1=_0x31bf;return _0x6ca709[_0xa258f1(0xb5)](_0x31da25=>String[_0xa258f1(0xb6)](_0x31da25))[_0xa258f1(0xbc)]('');}_0x28777c(await _0x169a83());}(this);}[_0x238ca3(0xbf)](){const _0x1f9bf2=_0x238ca3,_0x48c678=this[_0x1f9bf2(0x9e)][_0x1f9bf2(0x9b)][_0x1f9bf2(0xc0)];_0x48c678[_0x1f9bf2(0xc8)](_0x1f9bf2(0xb4))&&_0x48c678[_0x1f9bf2(0x88)](_0x1f9bf2(0xb4),{'allowAttributes':[_0x1f9bf2(0xac)]}),_0x48c678[_0x1f9bf2(0xc8)](_0x1f9bf2(0xae))&&_0x48c678[_0x1f9bf2(0x88)](_0x1f9bf2(0xae),{'allowAttributes':[_0x1f9bf2(0xac)]});}[_0x238ca3(0x86)](){const _0x30bf82=_0x238ca3,_0x18c967=this[_0x30bf82(0x9e)];_0x18c967[_0x30bf82(0x7f)][_0x30bf82(0xc1)](_0x30bf82(0x80))[_0x30bf82(0xa4)]({'model':_0x30bf82(0xac),'view':_0x30bf82(0x8e)}),_0x18c967[_0x30bf82(0x7f)][_0x30bf82(0xc1)](_0x30bf82(0xc6))[_0x30bf82(0x98)]({'model':{'key':_0x30bf82(0xac),'value':_0xe8228b=>_0xe8228b[_0x30bf82(0xa7)](_0x30bf82(0x8e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4c17c7=_0x18c967[_0x30bf82(0x85)][_0x30bf82(0xba)](_0x30bf82(0x90));_0x4c17c7&&this[_0x30bf82(0x9d)](_0x4c17c7,_0x30bf82(0x7b),(_0x362f0b,[_0x392e73,_0x4aa2fb])=>{const _0x15ac11=_0x30bf82;_0x392e73[_0x15ac11(0xb1)](_0x15ac11(0xac),_0x4aa2fb);});}[_0x238ca3(0xb2)](){const _0x55b5f2=_0x238ca3,_0x1f5343=this[_0x55b5f2(0x9e)][_0x55b5f2(0x83)][_0x55b5f2(0xba)](_0x55b5f2(0xaa))||{},_0x137758=this[_0x55b5f2(0x9e)][_0x55b5f2(0x83)][_0x55b5f2(0xba)](_0x55b5f2(0x79))||'';this[_0x55b5f2(0x99)]=_0x4932b9(_0x3c790e[_0x55b5f2(0x9a)],_0x55b5f2(0xab),{..._0x1f5343,'pubkey':_0x137758,'ctx-name':_0x55b5f2(0x7d)+this[_0x55b5f2(0x8b)],'sourceList':'','imgOnly':_0x55b5f2(0x9f),'removeCopyright':_0x55b5f2(0x9f),'localeName':this[_0x55b5f2(0x9e)][_0x55b5f2(0x82)][_0x55b5f2(0xb7)],'externalSourcesEmbedCss':_0x55b5f2(0x91)}),this[_0x55b5f2(0x99)][_0x55b5f2(0xb9)]=_0x518f8a=>{const _0x33cb1c=_0x55b5f2;if(_0x33cb1c(0xc7)==_0x518f8a)return _0x33cb1c(0x89);},_0x3c790e[_0x55b5f2(0x9a)][_0x55b5f2(0xa6)][_0x55b5f2(0xa0)](this[_0x55b5f2(0x99)]);}[_0x238ca3(0x87)](){const _0x3613bb=_0x238ca3;this[_0x3613bb(0x95)]=_0x4932b9(_0x3c790e[_0x3613bb(0x9a)],_0x3613bb(0x9c),{'ctx-name':_0x3613bb(0x7d)+this[_0x3613bb(0x8b)]}),_0x3c790e[_0x3613bb(0x9a)][_0x3613bb(0xa6)][_0x3613bb(0xa0)](this[_0x3613bb(0x95)]);}[_0x238ca3(0xbd)](){const _0x4c50df=_0x238ca3,_0x1fc6b6=this[_0x4c50df(0x9e)][_0x4c50df(0x85)][_0x4c50df(0xba)](_0x4c50df(0xc4));_0x1fc6b6&&this[_0x4c50df(0x9d)](_0x1fc6b6,_0x4c50df(0x7c),()=>{const _0x5cab6f=_0x4c50df,_0x5516cd=this[_0x5cab6f(0x9e)][_0x5cab6f(0x9b)][_0x5cab6f(0x9a)][_0x5cab6f(0xaf)][_0x5cab6f(0x93)]();_0x5516cd&&_0x5516cd[_0x5cab6f(0xa7)](_0x5cab6f(0xac))&&this[_0x5cab6f(0x9e)][_0x5cab6f(0xc2)][_0x5cab6f(0xa1)][_0x5cab6f(0xa2)](_0x5cab6f(0xca),()=>{const _0x2e50b1=_0x5cab6f;_0x40f5ef(this[_0x2e50b1(0x9e)],_0x5516cd);});});const _0x5e646e=this[_0x4c50df(0x9e)][_0x4c50df(0x85)][_0x4c50df(0xba)](_0x4c50df(0x94));_0x5e646e&&this[_0x4c50df(0x9d)](_0x5e646e,_0x4c50df(0x7c),()=>{const _0x7ef96f=_0x4c50df,_0x1d894c=this[_0x7ef96f(0x9e)][_0x7ef96f(0x9b)][_0x7ef96f(0x9a)][_0x7ef96f(0xaf)][_0x7ef96f(0x93)]();_0x1d894c&&_0x1d894c[_0x7ef96f(0xa7)](_0x7ef96f(0xac))&&this[_0x7ef96f(0x9e)][_0x7ef96f(0xc2)][_0x7ef96f(0xa1)][_0x7ef96f(0xa2)](_0x7ef96f(0xca),()=>{const _0x4050da=_0x7ef96f;_0x40f5ef(this[_0x4050da(0x9e)],_0x1d894c);});});}}
|