@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250308.0 → 0.0.0-nightly-20250310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xbc8058,Command as _0x336aec}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x6f68c2,IconGooglePhotos as _0x982ca5,IconGoogleDrive as _0x38a55d,IconFacebook as _0x350576,IconDropbox as _0xe1bfca,IconUploadcareLink as _0x4d4a27,IconUploadcareImageUpload as _0x384eed,IconError as et,IconUploadcareImageEdit as _0x52835b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3ed062,MenuBarMenuListItemButtonView as _0x4a72d5,View as _0x4d8b61,FocusCycler as _0x19f36c,Dialog as _0x5d37fd,DialogViewPosition as _0x44ea18,SpinnerView as _0x5e160b,IconView as at,Notification as _0x1260f9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x398b94,DomEmitterMixin as _0x1716a1,global as _0x14a388,getAncestors as _0x52e8f0,ObservableMixin as _0x14aa6c,createElement as _0x49f3d4,uid as _0x1cf6da}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x521633}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1b4860,info as _0x5dc61c}from'@uploadcare/upload-client';import*as _0xb5e1a from'@uploadcare/file-uploader';var o=function(_0x36ee28){return _0x36ee28['Local']='local',_0x36ee28['URL']='url',_0x36ee28['Dropbox']='dropbox',_0x36ee28['GDrive']='gdrive',_0x36ee28['Facebook']='facebook',_0x36ee28['GPhotos']='gphotos',_0x36ee28['OneDrive']='onedrive',_0x36ee28;}({});function _(_0x441f18,_0x367fef,_0x36c3a7){const t=_0x441f18['t'],_0x24b66b=_0x441f18['t'];switch(_0x367fef){case o['Local']:return{'text':_0x24b66b('Insert'===_0x36c3a7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x24b66b('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x36c3a7?_0x24b66b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x24b66b('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x36c3a7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x36c3a7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x36c3a7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x36c3a7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x36c3a7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x367fef;}}class e extends _0xbc8058{['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 _0x17d309=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b5784;for(const _0x2b3fae in _0x17d309){const _0xaad958=_0x2b3fae,_0x1dda0a=_0x17d309[_0xaad958];if('uploadcareLicenseKeyValid'==_0x1dda0a||'uploadcareLicenseKeyInvalid'==_0x1dda0a||'uploadcareLicenseKeyExpired'==_0x1dda0a||'uploadcareLicenseKeyDomainLimit'==_0x1dda0a||'uploadcareLicenseKeyNotAllowed'==_0x1dda0a||'uploadcareLicenseKeyEvaluationLimit'==_0x1dda0a||'uploadcareLicenseKeyTrialLimit'==_0x1dda0a||'uploadcareLicenseKeyUsageLimit'==_0x1dda0a){delete _0x17d309[_0xaad958],_0x4b5784=_0x1dda0a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4b5784&&_0x17d309['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4b5784&&_0x17d309['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4b5784&&_0x17d309['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4b5784&&_0x17d309['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4b5784&&_0x17d309['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4b5784&&_0x17d309['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4b5784&&_0x17d309['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x24d317}=this,_0x2f788f=_0x24d317['commands']['get']('uploadcare');if(!_0x2f788f)return;const _0x3f5c3d=this['_normalizeConfigSourceList'](_0x24d317['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5c7543,_0x24a1eb)=>{const _0x2f8905=this['_getIntegrationKey'](_0x24a1eb['type']);return _0x5c7543[_0x2f8905]||(_0x5c7543[_0x2f8905]=[]),_0x5c7543[_0x2f8905]['push'](_0x24a1eb),_0x5c7543;},{});_0x24d317['plugins']['has']('ImageInsertUI')&&_0x24d317['commands']['get']('uploadcare')&&Object['entries'](_0x3f5c3d)['forEach'](([_0x1477aa,_0x4b6fec])=>{_0x24d317['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1477aa,'observable':()=>_0x2f788f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4b6fec),'formViewCreator':()=>this['_createDropdownButtons'](_0x4b6fec),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4b6fec),'override':'assetManager'!==_0x1477aa});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x856182){const {locale:_0x50bdc7}=this['editor'];return _0x856182['map'](_0x304305=>{const _0x40f8ba=_(_0x50bdc7,_0x304305,'Insert');switch(_0x304305){case o['Local']:return{'icon':_0x384eed,'type':o['Local'],..._0x40f8ba};case o['URL']:return{'icon':_0x4d4a27,'type':o['URL'],..._0x40f8ba};case o['Dropbox']:return{'icon':_0xe1bfca,'type':o['Dropbox'],..._0x40f8ba};case o['Facebook']:return{'icon':_0x350576,'type':o['Facebook'],..._0x40f8ba};case o['GDrive']:return{'icon':_0x38a55d,'type':o['GDrive'],..._0x40f8ba};case o['GPhotos']:return{'icon':_0x982ca5,'type':o['GPhotos'],..._0x40f8ba};case o['OneDrive']:return{'icon':_0x6f68c2,'type':o['OneDrive'],..._0x40f8ba};}});}['_getIntegrationKey'](_0x35ad7f){switch(_0x35ad7f){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x47f40e,_0x440744){const _0x3b3a8d=this['editor'],_0x21fb29=new _0x47f40e(_0x3b3a8d['locale']),_0xd80ee1=_0x3b3a8d['commands']['get']('uploadcare');return _0x21fb29['bind']('isEnabled')['to'](_0xd80ee1),_0x21fb29['on']('execute',()=>{_0xd80ee1['execute'](_0x440744);}),_0x21fb29;}['_createToolbarButton'](_0x73a0e7){const {locale:_0x266dbd}=this['editor'],_0x425ac8=this['editor']['plugins']['get']('ImageInsertUI'),_0x293bbf=_0x73a0e7[0x0],_0x32743b=this['_createButton'](_0x3ed062,_0x293bbf['type']);return _0x32743b['icon']=_0x293bbf['icon'],_0x32743b['bind']('label')['to'](_0x425ac8,'isImageSelected',_0x5c6685=>_(_0x266dbd,_0x293bbf['type'],_0x5c6685?'Replace':'Insert')['text']),_0x32743b['tooltip']=!0x0,_0x32743b;}['_createDropdownButtons'](_0x3a43fe){const {locale:_0x313ebb}=this['editor'],_0x4d009b=this['editor']['plugins']['get']('ImageInsertUI');return _0x3a43fe['map'](_0x36064f=>{const _0x15c5ac=this['_createButton'](_0x3ed062,_0x36064f['type']);return _0x15c5ac['withText']=!0x0,_0x15c5ac['icon']=_0x36064f['icon'],_0x15c5ac['bind']('label')['to'](_0x4d009b,'isImageSelected',_0xa618dd=>_(_0x313ebb,_0x36064f['type'],_0xa618dd?'Replace':'Insert')['text']),_0x15c5ac;});}['_createMenuBarButtons'](_0x57d86f){return _0x57d86f['map'](_0x42915f=>{const _0x440de4=this['_createButton'](_0x4a72d5,_0x42915f['type']);return _0x440de4['icon']=_0x42915f['icon'],_0x440de4['label']=_0x42915f['shortText'],_0x440de4;});}}class q extends _0x4d8b61{['focusTracker'];['focusCycler'];constructor(_0x57bf66){super(_0x57bf66),this['focusTracker']=new _0x398b94(),this['focusCycler']=new _0x19f36c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x2dd4be){super(_0x2dd4be),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x26e49c,_0x5ba0fa){const _0x3ae4f4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x290254=>_0x290254<=_0x5ba0fa)['map'](_0x610f35=>_0x26e49c['replace'](/\/$/,'')+'/-/resize/'+_0x610f35+'x/\x20'+_0x610f35+'w');return{'imageFallbackUrl':_0x26e49c,'imageSources':[{'srcset':_0x3ae4f4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5ba0fa+'px)\x20100vw,\x20'+_0x5ba0fa+'px','type':'image/webp'}]};}function A(_0x2a1f6a,_0x55b7e8,_0x3878f2){const _0xef39c7=_0x2a1f6a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xef39c7?parseInt(_0xef39c7[0x1],0xa):_0x55b7e8,'height':_0xef39c7?parseInt(_0xef39c7[0x2],0xa):_0x3878f2};}function m(_0x39efc4,_0x31f797){const _0x4400b6=Object['create'](_0x1716a1),_0x2fb03c=_0x39efc4['plugins']['get']('ImageUtils'),_0x37d69d=_0x39efc4['editing']['mapper']['toViewElement'](_0x31f797),_0x1a2608=_0x2fb03c['findViewImgElement'](_0x37d69d),_0x5bd5e1=_0x39efc4['editing']['view']['domConverter']['viewToDom'](_0x1a2608),_0x456193=_0x31f797['getAttribute']('width'),_0x1f0ff7=_0x31f797['getAttribute']('height'),_0x5bd535='image-processing';_0x39efc4['editing']['view']['change'](_0x502ea4=>{_0x502ea4['addClass'](_0x5bd535,_0x37d69d),_0x502ea4['setStyle']('aspect-ratio',_0x456193+'/'+_0x1f0ff7,_0x1a2608);}),_0x4400b6['listenTo'](_0x5bd5e1,'load',()=>{_0x4400b6['stopListening'](_0x5bd5e1,'load'),_0x39efc4['editing']['view']['change'](_0x373871=>{_0x373871['removeClass'](_0x5bd535,_0x37d69d),_0x373871['removeStyle']('aspect-ratio',_0x1a2608);});});}function V(_0x2065ed){if(Array['isArray'](_0x2065ed)){const _0x4c97ed=_0x2065ed['map'](V);return _0x4afcfe=>_0x4c97ed['some'](_0x2bbfd9=>_0x2bbfd9(_0x4afcfe));}if('origin'==_0x2065ed){const _0x11a43b=_0x14a388['window']['location']['origin'];return _0x412280=>new URL(_0x412280,_0x14a388['document']['baseURI'])['origin']==_0x11a43b;}return'function'==typeof _0x2065ed?_0x2065ed:_0x2065ed instanceof RegExp?_0x67cd35=>!(!_0x67cd35['match'](_0x2065ed)&&!_0x67cd35['replace'](/^https?:\/\//,'')['match'](_0x2065ed)):()=>!0x1;}function F(_0x45e27c,_0xdf425b){return _0x52e8f0(_0x45e27c['target'])['includes'](_0xdf425b);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x14aa6c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4601ee,_0x4e9580,_0x5e7703){super(),this['_editor']=_0x4601ee,this['_editing']=_0x4e9580,this['_dialog']=_0x4601ee['plugins']['get'](_0x5d37fd),this['_api']=_0x4e9580['ctxElement']['getAPI'](),this['_type']=_0x5e7703,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:_0x39653b,model:_0x259088}=this['_editor'],_0x2ab26f=_0x259088['document']['selection']['getSelectedElement'](),_0x560f82=_0x2ab26f&&(_0x2ab26f['is']('element','imageBlock')||_0x2ab26f['is']('element','imageInline'));this['_formView']=new S(_0x39653b),this['_dialog']['show']({'id':'uploadCare','icon':_0x384eed,'title':_(_0x39653b,this['_type'],_0x560f82?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x44ea18['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49054f=>!F(_0x49054f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3bb983}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x218673=>{const _0x8111a7=_0x3bb983['length'];for(const _0x248877 of _0x3bb983){const _0x545fec=_0x248877===_0x3bb983[_0x8111a7-0x1],{cdnUrl:_0x166a27,fileInfo:_0x739d13}=_0x248877;if(!_0x166a27||!_0x739d13)continue;const {width:_0x449e2f,height:_0x15958a}=_0x739d13['imageInfo'],_0xf7f3e6=A(_0x166a27,_0x449e2f,_0x15958a),_0x3012d8=E(_0x166a27,_0xf7f3e6['width']),_0x39e017={'id':_0x739d13['uuid'],'type':'image','attributes':{'imageDimension':_0xf7f3e6,..._0x3012d8}};this['_insertAsset'](_0x39e017,_0x545fec,_0x218673);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3e55e1=>{'idle'===_0x3e55e1['detail']['status']&&!_0x3e55e1['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4cdcc0,_0x366e1c,_0x140585){const _0x72fbbc=this['_editor']['model']['document']['selection'],_0x46537a=_0x72fbbc['getSelectedElement'](),_0x24d77b=!(!_0x46537a||!_0x46537a['is']('element','imageInline'));_0x140585['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4cdcc0,_0x24d77b),_0x366e1c||_0x140585['setSelection'](_0x72fbbc['getLastPosition']());}['_insertImage'](_0x19ee53,_0x224556){const _0x490626=this['_editor'],{imageDimension:_0x5c8e97,imageFallbackUrl:_0x2a65c7,imageSources:_0x5a9487}=_0x19ee53['attributes'];_0x490626['execute']('insertImage',{'imageType':_0x224556?'imageInline':null,'source':{'uploadcareImageId':_0x19ee53['id'],'src':_0x2a65c7,'sources':_0x5a9487,..._0x5c8e97}});}}class n extends _0x336aec{['_editing'];['_controller']=null;static get['requires'](){return[_0x5d37fd,i];}constructor(_0x4488da){super(_0x4488da),this['_editing']=_0x4488da['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x314999){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x314999);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x28dc2b,publicKey:_0x202d51,signal:_0x3903fe,onProgress:_0x2346c5}){return _0x1b4860(_0x28dc2b,{'publicKey':_0x202d51,'store':'auto','signal':_0x3903fe,'onProgress':_0x2346c5});}static['getInfo'](_0x465740,_0xe4d3c8){return _0x5dc61c(_0x465740,_0xe4d3c8);}}class p extends _0xbc8058{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x521633,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4843c7=this['editor'];if(!!!_0x4843c7['config']['get']('uploadcare'))return;_0x4843c7['plugins']['get'](_0x521633)['createUploadAdapter']=_0x6af875=>new x(_0x6af875,_0x4843c7),_0x4843c7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x19c662,{imageElement:_0x15cd44,data:_0x32e5cb})=>{_0x4843c7['model']['change'](_0x51f31b=>{_0x51f31b['setAttribute']('uploadcareImageId',_0x32e5cb['uploadcareImageId'],_0x15cd44);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x12e888,_0x592c51){this['loader']=_0x12e888,this['editor']=_0x592c51,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3ea0ac=this['editor']['config']['get']('uploadcare.pubkey'),_0x465a67=await this['loader']['file'];return C['upload']({'file':_0x465a67,'publicKey':_0x3ea0ac,'signal':this['controller']['signal'],'onProgress':_0x36e56c=>{_0x36e56c&&_0x36e56c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x36e56c['value']);}})['then'](async _0x2388e4=>{const {imageFallbackUrl:_0xafae94,imageSources:_0x1028bb}=E(_0x2388e4['cdnUrl'],_0x2388e4['imageInfo']['width']);return{'uploadcareImageId':_0x2388e4['uuid'],'default':_0xafae94,'sources':_0x1028bb};})['catch'](()=>{const _0x807c4a=t('Cannot\x20upload\x20file:')+('\x20'+_0x465a67['name']+'.');return Promise['reject'](_0x807c4a);});}['abort'](){this['controller']['abort']();}}class i extends _0xbc8058{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5d37fd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x35d14e=this['editor'];_0x35d14e['commands']['add']('uploadcare',new n(_0x35d14e));}['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 _0x44edf9=_0x14a388['document']['querySelector']('input[uploadcare-file-input]');_0x44edf9&&_0x44edf9['remove']();}),async function(_0x1ada3b){const _0x3aa87e=_0x12d5e9([0x33,0x66,0x6f,0x4e,0x63,0x6d,0x5a,0x58,0x46,0x37,0x4f,0x64,0x76,0x42,0x31,0x34,0x4b,0x79,0x49,0x59,0x54,0x4d,0x75,0x67,0x30,0x4a,0x56,0x69,0x4c,0x55,0x72,0x6e,0x6c,0x44,0x70,0x52,0x6b,0x51,0x71,0x7a,0x45,0x73,0x41,0x78,0x6a,0x53,0x32,0x36,0x68,0x38,0x50,0x57,0x77,0x61,0x43,0x65,0x47,0x48,0x39,0x74,0x35,0x62]),_0x539cd5=0x3aa37f3f,_0x378506=0x3aa41eb7^_0x539cd5,_0x4e00a6=window[_0x12d5e9([0x44,0x61,0x74,0x65])][_0x12d5e9([0x6e,0x6f,0x77])](),_0x5491ac=_0x1ada3b[_0x12d5e9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59096c=new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ad71f=>{_0x5491ac[_0x12d5e9([0x6f,0x6e,0x63,0x65])](_0x12d5e9([0x72,0x65,0x61,0x64,0x79]),_0x1ad71f);}),_0x579549={[_0x12d5e9([0x6b,0x74,0x79])]:_0x12d5e9([0x45,0x43]),[_0x12d5e9([0x75,0x73,0x65])]:_0x12d5e9([0x73,0x69,0x67]),[_0x12d5e9([0x63,0x72,0x76])]:_0x12d5e9([0x50,0x2d,0x32,0x35,0x36]),[_0x12d5e9([0x78])]:_0x12d5e9([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]),[_0x12d5e9([0x79])]:_0x12d5e9([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]),[_0x12d5e9([0x61,0x6c,0x67])]:_0x12d5e9([0x45,0x53,0x32,0x35,0x36])},_0x550b89=_0x5491ac[_0x12d5e9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12d5e9([0x67,0x65,0x74])](_0x12d5e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23b041(){let _0xb0157d,_0x48449b=null,_0x4bb0d0=null;try{if(_0x550b89==_0x12d5e9([0x47,0x50,0x4c]))return _0x12d5e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb0157d=_0x133c6b(),!_0xb0157d)return _0x12d5e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb0157d[_0x12d5e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4bb0d0=_0x4afef3(_0xb0157d[_0x12d5e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb0157d[_0x12d5e9([0x6a,0x74,0x69])])),await _0x38605d()?_0x4fa37a()?_0x25f816()?_0x12d5e9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x718f2b()?(_0xb0157d[_0x12d5e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12d5e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48449b=_0x21cddd(_0x12d5e9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xb0157d[_0x12d5e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12d5e9([0x74,0x72,0x69,0x61,0x6c])&&(_0x48449b=_0x21cddd(_0x12d5e9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x454336()):_0x12d5e9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12d5e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12d5e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4306a9){return _0x12d5e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25f816(){const _0x3913f2=[_0x12d5e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12d5e9([0x74,0x72,0x69,0x61,0x6c])][_0x12d5e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb0157d[_0x12d5e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e00a6/0x3e8:0xe10*_0x378506;return _0xb0157d[_0x12d5e9([0x65,0x78,0x70])]<_0x3913f2;}function _0x4fa37a(){const _0x947ef3=_0xb0157d[_0x12d5e9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x947ef3&&(!!_0x947ef3[_0x12d5e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d5e9([0x2a]))||!!_0x947ef3[_0x12d5e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d5e9([0x55,0x50,0x4c,0x43])));}function _0x718f2b(){const _0x468138=_0xb0157d[_0x12d5e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x468138||0x0==_0x468138[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e0268}=new URL(window[_0x12d5e9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x468138[_0x12d5e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e0268))return!0x0;const _0x4f6a82=_0x4e0268[_0x12d5e9([0x73,0x70,0x6c,0x69,0x74])](_0x12d5e9([0x2e]));return _0x468138[_0x12d5e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e7589=>_0x1e7589[_0x12d5e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12d5e9([0x2a])))[_0x12d5e9([0x6d,0x61,0x70])](_0x1f09b7=>_0x1f09b7[_0x12d5e9([0x73,0x70,0x6c,0x69,0x74])](_0x12d5e9([0x2e])))[_0x12d5e9([0x73,0x6f,0x6d,0x65])](_0x2c2fda=>_0x4f6a82[_0x12d5e9([0x65,0x76,0x65,0x72,0x79])]((_0x44a8d0,_0x128247)=>_0x2c2fda[_0x128247]===_0x44a8d0||_0x2c2fda[_0x128247]===_0x12d5e9([0x2a])));}function _0x454336(){return _0x48449b&&_0x4bb0d0?new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f731b,_0x243872)=>{_0x48449b[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0x4f731b,_0x243872),_0x4bb0d0[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0x16c43b=>{_0x16c43b!=_0x12d5e9([0x56,0x61,0x6c,0x69,0x64])&&_0x4f731b(_0x16c43b);},_0x243872);}):_0x48449b||_0x4bb0d0||_0x12d5e9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4afef3(_0x3e46ee,_0x4b59c6){return new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3af72d=>{if(_0x27067d())return _0x3af72d(_0x12d5e9([0x56,0x61,0x6c,0x69,0x64]));_0x15fb28(),_0x5491ac[_0x12d5e9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12d5e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b6fb4=!0x1;const _0x5c4255=_0x1cf6da();function _0x29f69e(_0x584b35){return!!_0x584b35&&(typeof _0x584b35===_0x12d5e9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x584b35===_0x12d5e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x584b35[_0x12d5e9([0x74,0x68,0x65,0x6e])]===_0x12d5e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x584b35[_0x12d5e9([0x63,0x61,0x74,0x63,0x68])]===_0x12d5e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x383da6(_0x19280f){_0x3486e8(_0x19280f)[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0x4e57ce=>{if(!_0x4e57ce||_0x4e57ce[_0x12d5e9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12d5e9([0x6f,0x6b]))return _0x12d5e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e3698(_0xf03971(_0x5c4255+_0x4b59c6))!=_0x4e57ce[_0x12d5e9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12d5e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12d5e9([0x56,0x61,0x6c,0x69,0x64]);})[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0x1c0550=>(_0x19bfa6(),_0x1c0550),()=>{const _0x2e995d=_0x1f2b72();return null==_0x2e995d?(_0x19bfa6(),_0x12d5e9([0x56,0x61,0x6c,0x69,0x64])):_0x12d5e9(_0x4e00a6-_0x2e995d>(0x1eaffb3f^_0x539cd5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0x3af72d)[_0x12d5e9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3af72d(_0x12d5e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5df0ce=0x3a9591bf^_0x539cd5;function _0x19bfa6(){const _0x590e33=_0x12d5e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e3698(_0xf03971(_0x3e46ee)),_0x6514cc=_0x5abf32(_0x4e3698(window[_0x12d5e9([0x4d,0x61,0x74,0x68])][_0x12d5e9([0x63,0x65,0x69,0x6c])](_0x4e00a6/_0x5df0ce)));window[_0x12d5e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12d5e9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x590e33,_0x6514cc);}function _0x1f2b72(){const _0x34fdb6=_0x12d5e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e3698(_0xf03971(_0x3e46ee)),_0x57fb38=window[_0x12d5e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12d5e9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34fdb6);return _0x57fb38?window[_0x12d5e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5abf32(_0x57fb38),0x10)*_0x5df0ce:null;}function _0x3486e8(_0x2fc78a){return new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xed26d0,_0x3929c1)=>{_0x2fc78a[_0x12d5e9([0x74,0x68,0x65,0x6e])](_0xed26d0,_0x3929c1),window[_0x12d5e9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3929c1,0x3aa2abff^_0x539cd5);});}}_0x5491ac[_0x12d5e9([0x6f,0x6e])](_0x12d5e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f6bea,_0x22697c)=>{if(_0x22697c[0x0]!=_0x3e46ee)return _0x3af72d(_0x12d5e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22697c[0x1]={..._0x22697c[0x1],[_0x12d5e9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c4255};},{[_0x12d5e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12d5e9([0x68,0x69,0x67,0x68])}),_0x5491ac[_0x12d5e9([0x6f,0x6e])](_0x12d5e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9e71ac=>{_0x29f69e(_0x9e71ac[_0x12d5e9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b6fb4=!0x0,_0x383da6(_0x9e71ac[_0x12d5e9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12d5e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12d5e9([0x6c,0x6f,0x77])}),_0x59096c[_0x12d5e9([0x74,0x68,0x65,0x6e])](()=>{_0x5b6fb4||_0x3af72d(_0x12d5e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27067d(){return _0x5491ac[_0x12d5e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12d5e9([0x76,0x69,0x65,0x77])][_0x12d5e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12d5e9([0x61,0x75,0x74,0x6f]);}function _0x15fb28(){_0x5491ac[_0x12d5e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12d5e9([0x76,0x69,0x65,0x77])][_0x12d5e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12d5e9([0x61,0x75,0x74,0x6f]);}}function _0x21cddd(_0x167177){const _0x41a953=[new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c9f79=>setTimeout(_0x2c9f79,0x3aaa41f3^_0x539cd5)),_0x59096c[_0x12d5e9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x250fc3=>{let _0x25c00a=0x0;_0x5491ac[_0x12d5e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d5e9([0x6f,0x6e])](_0x12d5e9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1960a0,_0x1fe53f)=>{_0x1fe53f[0x0][_0x12d5e9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25c00a++,_0x25c00a==(0x3aa37ec7^_0x539cd5)&&(_0x250fc3(),_0x1960a0[_0x12d5e9([0x6f,0x66,0x66])]());});}))];return window[_0x12d5e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12d5e9([0x72,0x61,0x63,0x65])](_0x41a953)[_0x12d5e9([0x74,0x68,0x65,0x6e])](()=>_0x167177);}async function _0x5d7bb6(){await _0x59096c,_0x5491ac[_0x12d5e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d5e9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf3e5d5,_0x5491ac[_0x12d5e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x12d5e9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf3e5d5,_0x5491ac[_0x12d5e9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12d5e9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24bb28(_0x5c57f5){const _0xdbc579=_0x3ab636();_0x5491ac[_0xdbc579]=_0x12d5e9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c57f5,_0x5c57f5!=_0x12d5e9([0x56,0x61,0x6c,0x69,0x64])&&_0x5d7bb6();}function _0x3ab636(){const _0x2ffaa3=window[_0x12d5e9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12d5e9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12d5e9([0x6e,0x6f,0x77])]())[_0x12d5e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12d5e9([0x2e]),'');let _0x4f3d5a=_0x12d5e9([0x66]);for(let _0x30ae56=0x0;_0x30ae56<_0x2ffaa3[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30ae56+=0x2){let _0x1324f7=window[_0x12d5e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ffaa3[_0x12d5e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30ae56,_0x30ae56+0x2));_0x1324f7>=_0x3aa87e[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1324f7-=_0x3aa87e[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f3d5a+=_0x3aa87e[_0x1324f7];}return _0x4f3d5a;}function _0x133c6b(){const _0x426895=_0x550b89[_0x12d5e9([0x73,0x70,0x6c,0x69,0x74])](_0x12d5e9([0x2e]));if(0x3!=_0x426895[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x298d6d(_0x426895[0x1]);function _0x298d6d(_0xd8f292){const _0x39a21f=_0x375871(_0xd8f292);return _0x39a21f&&_0x4b02f1()?_0x39a21f:null;function _0x4b02f1(){const _0x48a807=_0x39a21f[_0x12d5e9([0x6a,0x74,0x69])],_0x19d0bc=window[_0x12d5e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48a807[_0x12d5e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48a807[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x421143={..._0x39a21f,[_0x12d5e9([0x6a,0x74,0x69])]:_0x48a807[_0x12d5e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48a807[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x421143[_0x12d5e9([0x76,0x63])],_0xf03971(_0x421143)==_0x19d0bc;}}}async function _0x38605d(){let _0x495c9=!0x0;try{const _0x4e6936=_0x550b89[_0x12d5e9([0x73,0x70,0x6c,0x69,0x74])](_0x12d5e9([0x2e])),[_0x4ac5d6,_0x4e4269,_0x2a2f3e]=_0x4e6936;return _0x22bc4a(_0x4ac5d6),await _0xcc07c2(_0x4ac5d6,_0x4e4269,_0x2a2f3e),_0x495c9;}catch(_0x4b5c0d){return!0x1;}function _0x22bc4a(_0x8e961d){const _0x17ccbd=_0x375871(_0x8e961d);_0x17ccbd&&_0x17ccbd[_0x12d5e9([0x61,0x6c,0x67])]==_0x12d5e9([0x45,0x53,0x32,0x35,0x36])||(_0x495c9=!0x1);}async function _0xcc07c2(_0x37700d,_0x16e210,_0x2fcf3c){const _0x1eea0e=window[_0x12d5e9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12d5e9([0x66,0x72,0x6f,0x6d])](_0x420486(_0x2fcf3c),_0x402b27=>_0x402b27[_0x12d5e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4899e8=new window[(_0x12d5e9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12d5e9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37700d+_0x12d5e9([0x2e])+_0x16e210),_0x27cf78=window[_0x12d5e9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12d5e9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27cf78)return;const _0x5763fa=await _0x27cf78[_0x12d5e9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12d5e9([0x6a,0x77,0x6b]),_0x579549,{[_0x12d5e9([0x6e,0x61,0x6d,0x65])]:_0x12d5e9([0x45,0x43,0x44,0x53,0x41]),[_0x12d5e9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12d5e9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12d5e9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27cf78[_0x12d5e9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12d5e9([0x6e,0x61,0x6d,0x65])]:_0x12d5e9([0x45,0x43,0x44,0x53,0x41]),[_0x12d5e9([0x68,0x61,0x73,0x68])]:{[_0x12d5e9([0x6e,0x61,0x6d,0x65])]:_0x12d5e9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5763fa,_0x1eea0e,_0x4899e8)||(_0x495c9=!0x1);}}function _0x375871(_0x2f8ff9){return _0x2f8ff9[_0x12d5e9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12d5e9([0x65,0x79]))?JSON[_0x12d5e9([0x70,0x61,0x72,0x73,0x65])](_0x420486(_0x2f8ff9)):null;}function _0x420486(_0x464296){return window[_0x12d5e9([0x61,0x74,0x6f,0x62])](_0x464296[_0x12d5e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12d5e9([0x2b]))[_0x12d5e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12d5e9([0x2f])));}function _0xf03971(_0x21e918){let _0x1c5e34=0x1505;function _0x3030af(_0x5a7322){for(let _0x579fc6=0x0;_0x579fc6<_0x5a7322[_0x12d5e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x579fc6++){const _0x63ad08=_0x5a7322[_0x12d5e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x579fc6);_0x1c5e34=(_0x1c5e34<<0x5)+_0x1c5e34+_0x63ad08,_0x1c5e34&=_0x1c5e34;}}function _0x138c25(_0x3b4898){Array[_0x12d5e9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b4898)?_0x3b4898[_0x12d5e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x138c25):_0x3b4898&&typeof _0x3b4898==_0x12d5e9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12d5e9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b4898)[_0x12d5e9([0x73,0x6f,0x72,0x74])]()[_0x12d5e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c4016,_0x38f51e])=>{_0x3030af(_0x5c4016),_0x138c25(_0x38f51e);}):_0x3030af(window[_0x12d5e9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b4898));}return _0x138c25(_0x21e918),_0x1c5e34>>>0x0;}function _0x4e3698(_0x5e6410){return _0x5e6410[_0x12d5e9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12d5e9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12d5e9([0x30]));}function _0x5abf32(_0x5da6e7){return _0x5da6e7[_0x12d5e9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12d5e9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12d5e9([0x6a,0x6f,0x69,0x6e])]('');}function _0xf3e5d5(){}function _0x12d5e9(_0x3c761d){return _0x3c761d['map'](_0x3c6642=>String['fromCharCode'](_0x3c6642))['join']('');}_0x24bb28(await _0x23b041());}(this);}['_initSchema'](){const _0x107171=this['editor']['model']['schema'];_0x107171['isRegistered']('imageBlock')&&_0x107171['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x107171['isRegistered']('imageInline')&&_0x107171['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x54658c=this['editor'];_0x54658c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x54658c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x89e6bf=>_0x89e6bf['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1351eb=_0x54658c['commands']['get']('replaceImageSource');_0x1351eb&&this['listenTo'](_0x1351eb,'cleanupImage',(_0x4c1fbe,[_0x38a181,_0x383928])=>{_0x38a181['removeAttribute']('uploadcareImageId',_0x383928);});}['_initConfig'](){const _0x53fc05=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5e7964=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x49f3d4(_0x14a388['document'],'uc-config',{..._0x53fc05,'pubkey':_0x5e7964,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x117417=>{if('closeMax'==_0x117417)return'#uc-icon-arrow-down';},_0x14a388['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x49f3d4(_0x14a388['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x14a388['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2fd604=this['editor']['commands']['get']('insertImage');_0x2fd604&&this['listenTo'](_0x2fd604,'execute',()=>{const _0xa5288=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa5288&&_0xa5288['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xa5288);});});const _0x3c8016=this['editor']['commands']['get']('uploadcareImageReplace');_0x3c8016&&this['listenTo'](_0x3c8016,'execute',()=>{const _0x5829e0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5829e0&&_0x5829e0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5829e0);});});}}class u extends _0xbc8058{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26e14f){super(_0x26e14f),_0x26e14f['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xb5e1a['defineComponents'](_0xb5e1a);}}class ta extends _0x4d8b61{constructor(_0x1c7d3b){super(_0x1c7d3b);const t=_0x1c7d3b['t'],_0x207641=this['bindTemplate'],_0x208fc3=new _0x5e160b();_0x208fc3['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':[_0x208fc3,{'text':_0x207641['to']('imageUploadProgress',_0x42390a=>t('Loading\x20image...')+'\x20('+(_0x42390a||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x4d8b61{constructor(_0x5aaffe){super(_0x5aaffe);const t=_0x5aaffe['t'];this['set']('errorType',null);const _0x4facf2=new _0x3ed062(_0x5aaffe);_0x4facf2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4facf2['withText']=!0x0,_0x4facf2['class']='ck-button-action',_0x4facf2['on']('execute',()=>{this['fire']('retry');}),_0x4facf2['bind']('isVisible')['to'](this,'errorType',_0xcd4f0a=>'NotFound'!==_0xcd4f0a);const _0x4b1123=new at();_0x4b1123['content']=et,_0x4b1123['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x271699=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':[_0x4b1123,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x271699['to']('errorType',_0x11d27d=>t('NotFound'!==_0x11d27d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4facf2]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x4d8b61{constructor(_0x469bcc,_0x554219){super(_0x469bcc);const _0x4da80c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x554219,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4da80c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2b32d1,_0x3731b4,_0x4174af){super(_0x2b32d1),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2b32d1),this['_errorView']=new rt(_0x2b32d1),this['_editingView']=new tt(_0x2b32d1,_0x4174af),this['_focusableView']=new _0x4d8b61(_0x2b32d1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3731b4),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'],_0x4f0929=>{this['_addUploadcareImageEditorListeners'](_0x4f0929);});}),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'](_0x28f40b,_0x1d908b){const _0xcdb28c='uc-cloud-image-editor',_0x1b9e19=_0x28f40b['querySelector'](_0xcdb28c);if(_0x1b9e19)return _0x1d908b(_0x1b9e19);const _0xa781e3=new MutationObserver(_0x5b247a=>{const _0x5ad1aa=_0x5b247a['filter'](_0x59b888=>_0x59b888['target']===_0x28f40b&&_0x59b888['addedNodes']['length']>0x0&&_0x59b888['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xcdb28c);_0x5ad1aa['length']&&(_0xa781e3['disconnect'](),_0x1d908b(_0x5ad1aa[0x0]['addedNodes'][0x0]));});_0xa781e3['observe'](_0x28f40b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2c2552){_0x2c2552['addEventListener']('apply',_0x39919f=>{this['fire']('apply',{'imageSrc':_0x39919f['detail']['cdnUrl']});}),_0x2c2552['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x14aa6c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x52a459,_0x736e0a,_0x40eba1){super(),this['_editor']=_0x52a459,this['_dialog']=_0x736e0a,this['_imageElement']=_0x40eba1,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 _0x49344b=this['_imageElement'],_0x18945f=_0x49344b['getAttribute']('uploadcareImageId'),_0x9439ba=_0x49344b['getAttribute']('src');if(_0x18945f)await this['_loadImageInfo'](_0x18945f,_0x9439ba);else{if(this['_imageCache']['has'](_0x9439ba)){const _0x29065a=this['_imageCache']['get'](_0x9439ba);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29065a['url'],this['imageDimension']=_0x29065a['dimension'],this['imageId']=_0x29065a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1958e2}=this['_editor'],t=_0x1958e2['t'],_0x625fde=new Z(_0x1958e2,this['imageStatus'],this['_attributes']);_0x625fde['bind']('status')['to'](this,'imageStatus'),_0x625fde['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x625fde['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x625fde['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x625fde,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x52835b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x625fde,'position':_0x44ea18['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x625fde['focus']();},'onHide':()=>{_0x625fde['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x500cad=>!F(_0x500cad,_0x625fde['element'])}});}['_loadImageInfo'](_0x21f014,_0x45c2cb){return C['getInfo'](_0x21f014,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x158a49=>{const {width:_0x58a43e,height:_0x102cc3}=_0x158a49['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x45c2cb,this['imageDimension']={'width':_0x58a43e,'height':_0x102cc3},this['imageId']=_0x21f014;})['catch'](_0x1a85e9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a85e9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x47f362,_0x38271d){return this['_getImageAsFile'](_0x47f362)['then'](_0x4b5460=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x38271d['signal'],'file':_0x4b5460,'onProgress':_0x360958=>{_0x360958&&_0x360958['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x360958['value']));}}))['then'](_0x1b429d=>{const {width:_0x3bd1ae,height:_0x2c18ce}=_0x1b429d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b429d['cdnUrl'],this['imageDimension']={'width':_0x3bd1ae,'height':_0x2c18ce},this['imageId']=_0x1b429d['uuid'],this['imageUploadProgress']=null;const _0x3ea6ba=_0x47f362['getAttribute']('src');this['_imageCache']['set'](_0x3ea6ba,{'id':_0x1b429d['uuid'],'url':_0x1b429d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1708d7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1708d7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x538632,_0x5299a9){_0x538632['on']('apply',(_0x4f59ec,_0x371b57)=>{this['_replaceImage'](_0x5299a9,_0x371b57['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x538632['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x538632['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x6dcee1,_0x5c7276,_0x3065d0){const _0xec03d6=this['_editor'],{width:_0x26801c,height:_0x3b85fe}=A(_0x5c7276,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5e282b,imageSources:_0x4c60dd}=E(_0x5c7276,_0x26801c);_0xec03d6['model']['change'](_0x4b0f81=>{if('$graveyard'===_0x6dcee1['root']['rootName']){_0xec03d6['execute']('insertImage',{'imageType':_0x6dcee1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x6dcee1['getAttributes']()),'uploadcareImageId':_0x3065d0,'src':_0x5e282b,'sources':_0x4c60dd,'width':_0x26801c,'height':_0x3b85fe}});const _0x408050=_0x6dcee1['getChildren']();_0x6dcee1=_0xec03d6['model']['document']['selection']['getSelectedElement']();for(const _0x11c1c2 of _0x408050)_0x4b0f81['append'](_0x4b0f81['cloneElement'](_0x11c1c2),_0x6dcee1);}else _0x4b0f81['setSelection'](_0x6dcee1,'on'),_0xec03d6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x6dcee1['getAttributes']()),'uploadcareImageId':_0x3065d0,'src':_0x5e282b,'sources':_0x4c60dd,'width':_0x26801c,'height':_0x3b85fe},_0x6dcee1);_0x4b0f81['setSelection'](_0x6dcee1,'on');});}async['_getImageAsFile'](_0x33b761){const _0x1c96ca=_0x14a388['window'],_0x40e52f=_0x14a388['document']['location']['href'],_0x3744f7=new _0x1c96ca['URL'](_0x33b761['getAttribute']('src'),_0x40e52f);if('data:'===_0x3744f7['protocol']){const _0x5c7a6b=_0x3744f7['href']['split'](','),_0x1c014e=_0x5c7a6b[0x0]['match'](/:(.*?);/)[0x1],_0x180d87=_0x1c014e['split']('/')[0x1],_0x14e9a9=_0x1c96ca['atob'](_0x5c7a6b[_0x5c7a6b['length']-0x1]);let _0x465b89=_0x14e9a9['length'];const _0xc5e6f3=new _0x1c96ca['Uint8Array'](_0x465b89);for(;_0x465b89--;)_0xc5e6f3[_0x465b89]=_0x14e9a9['charCodeAt'](_0x465b89);return new _0x1c96ca['File']([_0xc5e6f3],'image.'+_0x180d87,{'type':_0x1c014e});}const _0x14148d=_0x3744f7['href']['split']('/'),_0x425df0=_0x14148d[_0x14148d['length']-0x1],_0x471cdb=_0x425df0['split']('.')[0x1];return _0x1c96ca['fetch'](_0x3744f7['href'])['then'](_0x5c6657=>_0x5c6657['clone']()['blob']())['then'](_0x259b1a=>new _0x1c96ca['File']([_0x259b1a],_0x425df0,{'type':'image/'+_0x471cdb}));}}class J extends _0x336aec{['imageEditController'];static get['requires'](){return[_0x5d37fd];}['_isEditable'];constructor(_0x490f3f){super(_0x490f3f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5ddf9c){const _0xcd568a=V(_0x5ddf9c);return _0x558ce1=>!(!_0x558ce1||!_0x558ce1['is']('element','imageBlock')&&!_0x558ce1['is']('element','imageInline'))&&(!!_0x558ce1['hasAttribute']('uploadcareImageId')||!!_0x558ce1['hasAttribute']('src')&&_0xcd568a(_0x558ce1['getAttribute']('src')));}(_0x490f3f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5c1b5f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5c1b5f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x40a191=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40a191&&(_0x40a191['is']('element','imageBlock')||_0x40a191['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x5d37fd),_0x40a191),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x336aec{['refresh'](){const _0x5ca9f3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ca9f3&&(_0x5ca9f3['is']('element','imageBlock')||_0x5ca9f3['is']('element','imageInline')));}['execute'](_0x5505fd){const _0x1404b6=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xf6e6ef=>{_0xf6e6ef['setAttributes'](_0x5505fd,_0x1404b6),_0xf6e6ef['removeAttribute']('srcset',_0x1404b6),_0xf6e6ef['removeAttribute']('sizes',_0x1404b6);});}}class g extends _0xbc8058{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x1260f9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x434573}=this;_0x434573['commands']['add']('uploadcareImageEdit',new J(_0x434573)),_0x434573['commands']['add']('uploadcareImageReplace',new O(_0x434573));}}class j extends _0xbc8058{['_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 _0x323be3=this['editor'];_0x323be3['ui']['componentFactory']['add']('uploadcareImageEdit',_0x267085=>{const _0x31a842=_0x323be3['commands']['get']('uploadcareImageEdit'),_0x119b63=new _0x3ed062(_0x267085),t=_0x267085['t'];return _0x119b63['set']({'icon':_0x52835b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x119b63['bind']('isEnabled')['to'](_0x31a842),_0x119b63['bind']('isOn')['to'](_0x31a842,'isActive'),this['listenTo'](_0x119b63,'execute',()=>{_0x323be3['execute']('uploadcareImageEdit'),_0x323be3['editing']['view']['focus']();}),_0x119b63;}),this['_initConfig']();}['_initConfig'](){const _0x117374=_0x49f3d4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x117374),this['listenTo'](this['editor'],'destroy',()=>{_0x117374['remove']();});}}class P extends _0xbc8058{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x5aea69,Command as _0x243e2b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x297164,IconGooglePhotos as _0x47ed98,IconGoogleDrive as _0x289ddd,IconFacebook as _0x5d9779,IconDropbox as _0x3bafa7,IconUploadcareLink as _0x2f70d1,IconUploadcareImageUpload as _0x4acfba,IconError as et,IconUploadcareImageEdit as _0x16b2cc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x257fcd,MenuBarMenuListItemButtonView as _0x56a0ff,View as _0x3e4732,FocusCycler as _0xcbd689,Dialog as _0x2058c5,DialogViewPosition as _0x3fe094,SpinnerView as _0x58c44c,IconView as at,Notification as _0x490f6c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x580e0e,DomEmitterMixin as _0x7d43fd,global as _0x37058b,getAncestors as _0x1694d3,ObservableMixin as _0xa08b67,createElement as _0x325cdd,uid as _0x6fc19b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4d87c7}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2a6a0c,info as _0x3a15af}from'@uploadcare/upload-client';import*as _0x3bb2bc from'@uploadcare/file-uploader';var o=function(_0xf08f28){return _0xf08f28['Local']='local',_0xf08f28['URL']='url',_0xf08f28['Dropbox']='dropbox',_0xf08f28['GDrive']='gdrive',_0xf08f28['Facebook']='facebook',_0xf08f28['GPhotos']='gphotos',_0xf08f28['OneDrive']='onedrive',_0xf08f28;}({});function _(_0x1b3ab6,_0x227046,_0x243664){const t=_0x1b3ab6['t'],_0x348d78=_0x1b3ab6['t'];switch(_0x227046){case o['Local']:return{'text':_0x348d78('Insert'===_0x243664?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x348d78('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x243664?_0x348d78('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x348d78('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x243664?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x243664?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x243664?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x243664?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x243664?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x227046;}}class e extends _0x5aea69{['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 _0x3804e7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x242ed8;for(const _0xeb23e3 in _0x3804e7){const _0x35673e=_0xeb23e3,_0x4d98b2=_0x3804e7[_0x35673e];if('uploadcareLicenseKeyValid'==_0x4d98b2||'uploadcareLicenseKeyInvalid'==_0x4d98b2||'uploadcareLicenseKeyExpired'==_0x4d98b2||'uploadcareLicenseKeyDomainLimit'==_0x4d98b2||'uploadcareLicenseKeyNotAllowed'==_0x4d98b2||'uploadcareLicenseKeyEvaluationLimit'==_0x4d98b2||'uploadcareLicenseKeyTrialLimit'==_0x4d98b2||'uploadcareLicenseKeyUsageLimit'==_0x4d98b2){delete _0x3804e7[_0x35673e],_0x242ed8=_0x4d98b2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x242ed8&&_0x3804e7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x242ed8&&_0x3804e7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x242ed8&&_0x3804e7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x242ed8&&_0x3804e7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x242ed8&&_0x3804e7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x242ed8&&_0x3804e7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x242ed8&&_0x3804e7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4f07b1}=this,_0x78b8e1=_0x4f07b1['commands']['get']('uploadcare');if(!_0x78b8e1)return;const _0x23a76f=this['_normalizeConfigSourceList'](_0x4f07b1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3ff91a,_0x1f6233)=>{const _0x431750=this['_getIntegrationKey'](_0x1f6233['type']);return _0x3ff91a[_0x431750]||(_0x3ff91a[_0x431750]=[]),_0x3ff91a[_0x431750]['push'](_0x1f6233),_0x3ff91a;},{});_0x4f07b1['plugins']['has']('ImageInsertUI')&&_0x4f07b1['commands']['get']('uploadcare')&&Object['entries'](_0x23a76f)['forEach'](([_0x43fab7,_0xb47065])=>{_0x4f07b1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x43fab7,'observable':()=>_0x78b8e1,'buttonViewCreator':()=>this['_createToolbarButton'](_0xb47065),'formViewCreator':()=>this['_createDropdownButtons'](_0xb47065),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xb47065),'override':'assetManager'!==_0x43fab7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4e9d08){const {locale:_0x2d5d75}=this['editor'];return _0x4e9d08['map'](_0x23c3c9=>{const _0x52fa7c=_(_0x2d5d75,_0x23c3c9,'Insert');switch(_0x23c3c9){case o['Local']:return{'icon':_0x4acfba,'type':o['Local'],..._0x52fa7c};case o['URL']:return{'icon':_0x2f70d1,'type':o['URL'],..._0x52fa7c};case o['Dropbox']:return{'icon':_0x3bafa7,'type':o['Dropbox'],..._0x52fa7c};case o['Facebook']:return{'icon':_0x5d9779,'type':o['Facebook'],..._0x52fa7c};case o['GDrive']:return{'icon':_0x289ddd,'type':o['GDrive'],..._0x52fa7c};case o['GPhotos']:return{'icon':_0x47ed98,'type':o['GPhotos'],..._0x52fa7c};case o['OneDrive']:return{'icon':_0x297164,'type':o['OneDrive'],..._0x52fa7c};}});}['_getIntegrationKey'](_0x24890d){switch(_0x24890d){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4d2e8b,_0x54d6e0){const _0x3a8d61=this['editor'],_0x556163=new _0x4d2e8b(_0x3a8d61['locale']),_0x22996f=_0x3a8d61['commands']['get']('uploadcare');return _0x556163['bind']('isEnabled')['to'](_0x22996f),_0x556163['on']('execute',()=>{_0x22996f['execute'](_0x54d6e0);}),_0x556163;}['_createToolbarButton'](_0x5d8a48){const {locale:_0x36e6f2}=this['editor'],_0x123141=this['editor']['plugins']['get']('ImageInsertUI'),_0x2d66ac=_0x5d8a48[0x0],_0x35c10a=this['_createButton'](_0x257fcd,_0x2d66ac['type']);return _0x35c10a['icon']=_0x2d66ac['icon'],_0x35c10a['bind']('label')['to'](_0x123141,'isImageSelected',_0xd35335=>_(_0x36e6f2,_0x2d66ac['type'],_0xd35335?'Replace':'Insert')['text']),_0x35c10a['tooltip']=!0x0,_0x35c10a;}['_createDropdownButtons'](_0x3303f){const {locale:_0x2873e4}=this['editor'],_0x4ed8a8=this['editor']['plugins']['get']('ImageInsertUI');return _0x3303f['map'](_0x4af8d4=>{const _0x409d68=this['_createButton'](_0x257fcd,_0x4af8d4['type']);return _0x409d68['withText']=!0x0,_0x409d68['icon']=_0x4af8d4['icon'],_0x409d68['bind']('label')['to'](_0x4ed8a8,'isImageSelected',_0x4fca63=>_(_0x2873e4,_0x4af8d4['type'],_0x4fca63?'Replace':'Insert')['text']),_0x409d68;});}['_createMenuBarButtons'](_0xacd6a9){return _0xacd6a9['map'](_0x11f0d4=>{const _0x43b0b5=this['_createButton'](_0x56a0ff,_0x11f0d4['type']);return _0x43b0b5['icon']=_0x11f0d4['icon'],_0x43b0b5['label']=_0x11f0d4['shortText'],_0x43b0b5;});}}class q extends _0x3e4732{['focusTracker'];['focusCycler'];constructor(_0x1b4401){super(_0x1b4401),this['focusTracker']=new _0x580e0e(),this['focusCycler']=new _0xcbd689({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x4f09c6){super(_0x4f09c6),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x24dd89,_0x19f116){const _0x326eb2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2b08e7=>_0x2b08e7<=_0x19f116)['map'](_0x4e88eb=>_0x24dd89['replace'](/\/$/,'')+'/-/resize/'+_0x4e88eb+'x/\x20'+_0x4e88eb+'w');return{'imageFallbackUrl':_0x24dd89,'imageSources':[{'srcset':_0x326eb2['join'](',\x20'),'sizes':'(max-width:\x20'+_0x19f116+'px)\x20100vw,\x20'+_0x19f116+'px','type':'image/webp'}]};}function A(_0x2027b9,_0x595a6f,_0xb2871c){const _0x44327a=_0x2027b9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x44327a?parseInt(_0x44327a[0x1],0xa):_0x595a6f,'height':_0x44327a?parseInt(_0x44327a[0x2],0xa):_0xb2871c};}function m(_0x343283,_0x240561){const _0x4e33b1=Object['create'](_0x7d43fd),_0x5aa745=_0x343283['plugins']['get']('ImageUtils'),_0x50bb18=_0x343283['editing']['mapper']['toViewElement'](_0x240561),_0x40da04=_0x5aa745['findViewImgElement'](_0x50bb18),_0x139318=_0x343283['editing']['view']['domConverter']['viewToDom'](_0x40da04),_0x14b5b2=_0x240561['getAttribute']('width'),_0x5634b2=_0x240561['getAttribute']('height'),_0x8fa9ca='image-processing';_0x343283['editing']['view']['change'](_0x374522=>{_0x374522['addClass'](_0x8fa9ca,_0x50bb18),_0x374522['setStyle']('aspect-ratio',_0x14b5b2+'/'+_0x5634b2,_0x40da04);}),_0x4e33b1['listenTo'](_0x139318,'load',()=>{_0x4e33b1['stopListening'](_0x139318,'load'),_0x343283['editing']['view']['change'](_0x1111b1=>{_0x1111b1['removeClass'](_0x8fa9ca,_0x50bb18),_0x1111b1['removeStyle']('aspect-ratio',_0x40da04);});});}function V(_0x14c25e){if(Array['isArray'](_0x14c25e)){const _0x20a291=_0x14c25e['map'](V);return _0x1ea8ca=>_0x20a291['some'](_0xa8011b=>_0xa8011b(_0x1ea8ca));}if('origin'==_0x14c25e){const _0x7a487b=_0x37058b['window']['location']['origin'];return _0x444bfd=>new URL(_0x444bfd,_0x37058b['document']['baseURI'])['origin']==_0x7a487b;}return'function'==typeof _0x14c25e?_0x14c25e:_0x14c25e instanceof RegExp?_0x4d98e8=>!(!_0x4d98e8['match'](_0x14c25e)&&!_0x4d98e8['replace'](/^https?:\/\//,'')['match'](_0x14c25e)):()=>!0x1;}function F(_0x159fc7,_0x4b05af){return _0x1694d3(_0x159fc7['target'])['includes'](_0x4b05af);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xa08b67(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x578489,_0x80f406,_0x46c6f8){super(),this['_editor']=_0x578489,this['_editing']=_0x80f406,this['_dialog']=_0x578489['plugins']['get'](_0x2058c5),this['_api']=_0x80f406['ctxElement']['getAPI'](),this['_type']=_0x46c6f8,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:_0x53e169,model:_0x1640d8}=this['_editor'],_0x46b63c=_0x1640d8['document']['selection']['getSelectedElement'](),_0x4591b7=_0x46b63c&&(_0x46b63c['is']('element','imageBlock')||_0x46b63c['is']('element','imageInline'));this['_formView']=new S(_0x53e169),this['_dialog']['show']({'id':'uploadCare','icon':_0x4acfba,'title':_(_0x53e169,this['_type'],_0x4591b7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3fe094['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x240fe2=>!F(_0x240fe2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xf4f0af}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x541336=>{const _0x2a97da=_0xf4f0af['length'];for(const _0x1e9796 of _0xf4f0af){const _0x48e120=_0x1e9796===_0xf4f0af[_0x2a97da-0x1],{cdnUrl:_0x851a40,fileInfo:_0x50fe4d}=_0x1e9796;if(!_0x851a40||!_0x50fe4d)continue;const {width:_0x2cd034,height:_0x973e88}=_0x50fe4d['imageInfo'],_0x477f68=A(_0x851a40,_0x2cd034,_0x973e88),_0x4aec61=E(_0x851a40,_0x477f68['width']),_0x2f2607={'id':_0x50fe4d['uuid'],'type':'image','attributes':{'imageDimension':_0x477f68,..._0x4aec61}};this['_insertAsset'](_0x2f2607,_0x48e120,_0x541336);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x576be7=>{'idle'===_0x576be7['detail']['status']&&!_0x576be7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x14f7ee,_0x44caa3,_0x5e4329){const _0x105a48=this['_editor']['model']['document']['selection'],_0x10b6bc=_0x105a48['getSelectedElement'](),_0x1a0134=!(!_0x10b6bc||!_0x10b6bc['is']('element','imageInline'));_0x5e4329['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x14f7ee,_0x1a0134),_0x44caa3||_0x5e4329['setSelection'](_0x105a48['getLastPosition']());}['_insertImage'](_0x4d49f0,_0x1389d0){const _0x33c7c9=this['_editor'],{imageDimension:_0x207033,imageFallbackUrl:_0x2b0961,imageSources:_0x5df371}=_0x4d49f0['attributes'];_0x33c7c9['execute']('insertImage',{'imageType':_0x1389d0?'imageInline':null,'source':{'uploadcareImageId':_0x4d49f0['id'],'src':_0x2b0961,'sources':_0x5df371,..._0x207033}});}}class n extends _0x243e2b{['_editing'];['_controller']=null;static get['requires'](){return[_0x2058c5,i];}constructor(_0x4da787){super(_0x4da787),this['_editing']=_0x4da787['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x347384){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x347384);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5aa105,publicKey:_0x122926,signal:_0x283d59,onProgress:_0x499d7a}){return _0x2a6a0c(_0x5aa105,{'publicKey':_0x122926,'store':'auto','signal':_0x283d59,'onProgress':_0x499d7a});}static['getInfo'](_0x23145e,_0x4d1451){return _0x3a15af(_0x23145e,_0x4d1451);}}class p extends _0x5aea69{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4d87c7,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2e1e64=this['editor'];if(!!!_0x2e1e64['config']['get']('uploadcare'))return;_0x2e1e64['plugins']['get'](_0x4d87c7)['createUploadAdapter']=_0x5af705=>new x(_0x5af705,_0x2e1e64),_0x2e1e64['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2ca654,{imageElement:_0x25ba3d,data:_0x3475b3})=>{_0x2e1e64['model']['change'](_0x1b331f=>{_0x1b331f['setAttribute']('uploadcareImageId',_0x3475b3['uploadcareImageId'],_0x25ba3d);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4ca8b5,_0x15f968){this['loader']=_0x4ca8b5,this['editor']=_0x15f968,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x186758=this['editor']['config']['get']('uploadcare.pubkey'),_0x56f725=await this['loader']['file'];return C['upload']({'file':_0x56f725,'publicKey':_0x186758,'signal':this['controller']['signal'],'onProgress':_0x494331=>{_0x494331&&_0x494331['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x494331['value']);}})['then'](async _0x125102=>{const {imageFallbackUrl:_0x6a9328,imageSources:_0x53eaee}=E(_0x125102['cdnUrl'],_0x125102['imageInfo']['width']);return{'uploadcareImageId':_0x125102['uuid'],'default':_0x6a9328,'sources':_0x53eaee};})['catch'](()=>{const _0x16f9cf=t('Cannot\x20upload\x20file:')+('\x20'+_0x56f725['name']+'.');return Promise['reject'](_0x16f9cf);});}['abort'](){this['controller']['abort']();}}class i extends _0x5aea69{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2058c5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x25b292=this['editor'];_0x25b292['commands']['add']('uploadcare',new n(_0x25b292));}['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 _0x3b13b9=_0x37058b['document']['querySelector']('input[uploadcare-file-input]');_0x3b13b9&&_0x3b13b9['remove']();}),async function(_0x2075f3){const _0x351234=_0x59e1dc([0x63,0x74,0x72,0x32,0x5a,0x79,0x42,0x6f,0x57,0x37,0x33,0x77,0x53,0x41,0x35,0x49,0x4e,0x61,0x6c,0x66,0x4b,0x36,0x62,0x70,0x76,0x6a,0x43,0x4f,0x55,0x6e,0x58,0x45,0x6b,0x4a,0x39,0x30,0x69,0x31,0x64,0x73,0x54,0x78,0x68,0x75,0x59,0x65,0x48,0x34,0x71,0x50,0x6d,0x46,0x51,0x56,0x67,0x4c,0x7a,0x38,0x4d,0x52,0x47,0x44]),_0x3e3669=0x77330a77,_0x4ab477=0x77346bcf^_0x3e3669,_0x53d557=window[_0x59e1dc([0x44,0x61,0x74,0x65])][_0x59e1dc([0x6e,0x6f,0x77])](),_0x1d9cc2=_0x2075f3[_0x59e1dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x252192=new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c7c2f=>{_0x1d9cc2[_0x59e1dc([0x6f,0x6e,0x63,0x65])](_0x59e1dc([0x72,0x65,0x61,0x64,0x79]),_0x2c7c2f);}),_0x35b9ba={[_0x59e1dc([0x6b,0x74,0x79])]:_0x59e1dc([0x45,0x43]),[_0x59e1dc([0x75,0x73,0x65])]:_0x59e1dc([0x73,0x69,0x67]),[_0x59e1dc([0x63,0x72,0x76])]:_0x59e1dc([0x50,0x2d,0x32,0x35,0x36]),[_0x59e1dc([0x78])]:_0x59e1dc([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]),[_0x59e1dc([0x79])]:_0x59e1dc([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]),[_0x59e1dc([0x61,0x6c,0x67])]:_0x59e1dc([0x45,0x53,0x32,0x35,0x36])},_0x5c2ea1=_0x1d9cc2[_0x59e1dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59e1dc([0x67,0x65,0x74])](_0x59e1dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3de2ea(){let _0x4e6a59,_0x4489d3=null,_0x1f52ec=null;try{if(_0x5c2ea1==_0x59e1dc([0x47,0x50,0x4c]))return _0x59e1dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e6a59=_0x312cbc(),!_0x4e6a59)return _0x59e1dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e6a59[_0x59e1dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f52ec=_0x19765c(_0x4e6a59[_0x59e1dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e6a59[_0x59e1dc([0x6a,0x74,0x69])])),await _0x4e8c8d()?_0xd18cf7()?_0x13effe()?_0x59e1dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xac420c()?(_0x4e6a59[_0x59e1dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59e1dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4489d3=_0x16f951(_0x59e1dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e6a59[_0x59e1dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59e1dc([0x74,0x72,0x69,0x61,0x6c])&&(_0x4489d3=_0x16f951(_0x59e1dc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x159818()):_0x59e1dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59e1dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59e1dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4f5364){return _0x59e1dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13effe(){const _0xfc1760=[_0x59e1dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59e1dc([0x74,0x72,0x69,0x61,0x6c])][_0x59e1dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e6a59[_0x59e1dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53d557/0x3e8:0xe10*_0x4ab477;return _0x4e6a59[_0x59e1dc([0x65,0x78,0x70])]<_0xfc1760;}function _0xd18cf7(){const _0x1c2fa3=_0x4e6a59[_0x59e1dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c2fa3&&(!!_0x1c2fa3[_0x59e1dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e1dc([0x2a]))||!!_0x1c2fa3[_0x59e1dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e1dc([0x55,0x50,0x4c,0x43])));}function _0xac420c(){const _0x4accf0=_0x4e6a59[_0x59e1dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4accf0||0x0==_0x4accf0[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24b324}=new URL(window[_0x59e1dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4accf0[_0x59e1dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24b324))return!0x0;const _0x65be01=_0x24b324[_0x59e1dc([0x73,0x70,0x6c,0x69,0x74])](_0x59e1dc([0x2e]));return _0x4accf0[_0x59e1dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35779e=>_0x35779e[_0x59e1dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e1dc([0x2a])))[_0x59e1dc([0x6d,0x61,0x70])](_0x5c87af=>_0x5c87af[_0x59e1dc([0x73,0x70,0x6c,0x69,0x74])](_0x59e1dc([0x2e])))[_0x59e1dc([0x73,0x6f,0x6d,0x65])](_0x510847=>_0x65be01[_0x59e1dc([0x65,0x76,0x65,0x72,0x79])]((_0x4e01a5,_0x900f78)=>_0x510847[_0x900f78]===_0x4e01a5||_0x510847[_0x900f78]===_0x59e1dc([0x2a])));}function _0x159818(){return _0x4489d3&&_0x1f52ec?new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b7bb4,_0x3f1003)=>{_0x4489d3[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0x2b7bb4,_0x3f1003),_0x1f52ec[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0x14b882=>{_0x14b882!=_0x59e1dc([0x56,0x61,0x6c,0x69,0x64])&&_0x2b7bb4(_0x14b882);},_0x3f1003);}):_0x4489d3||_0x1f52ec||_0x59e1dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19765c(_0x4f6c37,_0x2ecfba){return new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c2758=>{if(_0x5ef8f8())return _0x3c2758(_0x59e1dc([0x56,0x61,0x6c,0x69,0x64]));_0x4e62f2(),_0x1d9cc2[_0x59e1dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59e1dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x53b21e=!0x1;const _0x26aa27=_0x6fc19b();function _0x37bbbd(_0xd317de){return!!_0xd317de&&(typeof _0xd317de===_0x59e1dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd317de===_0x59e1dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd317de[_0x59e1dc([0x74,0x68,0x65,0x6e])]===_0x59e1dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd317de[_0x59e1dc([0x63,0x61,0x74,0x63,0x68])]===_0x59e1dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1559cc(_0x17d991){_0x3943d0(_0x17d991)[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0xff1680=>{if(!_0xff1680||_0xff1680[_0x59e1dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59e1dc([0x6f,0x6b]))return _0x59e1dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x218fee(_0x292d72(_0x26aa27+_0x2ecfba))!=_0xff1680[_0x59e1dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59e1dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59e1dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0x80c684=>(_0x2649d0(),_0x80c684),()=>{const _0x1c3298=_0x4d2c1f();return null==_0x1c3298?(_0x2649d0(),_0x59e1dc([0x56,0x61,0x6c,0x69,0x64])):_0x59e1dc(_0x53d557-_0x1c3298>(0x533f8e77^_0x3e3669)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0x3c2758)[_0x59e1dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c2758(_0x59e1dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e830a=0x7705e4f7^_0x3e3669;function _0x2649d0(){const _0x301f02=_0x59e1dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x218fee(_0x292d72(_0x4f6c37)),_0x13e6c2=_0x7ea5e7(_0x218fee(window[_0x59e1dc([0x4d,0x61,0x74,0x68])][_0x59e1dc([0x63,0x65,0x69,0x6c])](_0x53d557/_0x4e830a)));window[_0x59e1dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59e1dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x301f02,_0x13e6c2);}function _0x4d2c1f(){const _0x40a44c=_0x59e1dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x218fee(_0x292d72(_0x4f6c37)),_0x595410=window[_0x59e1dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59e1dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40a44c);return _0x595410?window[_0x59e1dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7ea5e7(_0x595410),0x10)*_0x4e830a:null;}function _0x3943d0(_0x5b922d){return new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50bb35,_0x487cea)=>{_0x5b922d[_0x59e1dc([0x74,0x68,0x65,0x6e])](_0x50bb35,_0x487cea),window[_0x59e1dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x487cea,0x7732deb7^_0x3e3669);});}}_0x1d9cc2[_0x59e1dc([0x6f,0x6e])](_0x59e1dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x23e33f,_0xde60a3)=>{if(_0xde60a3[0x0]!=_0x4f6c37)return _0x3c2758(_0x59e1dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xde60a3[0x1]={..._0xde60a3[0x1],[_0x59e1dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26aa27};},{[_0x59e1dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59e1dc([0x68,0x69,0x67,0x68])}),_0x1d9cc2[_0x59e1dc([0x6f,0x6e])](_0x59e1dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10a5dc=>{_0x37bbbd(_0x10a5dc[_0x59e1dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x53b21e=!0x0,_0x1559cc(_0x10a5dc[_0x59e1dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59e1dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59e1dc([0x6c,0x6f,0x77])}),_0x252192[_0x59e1dc([0x74,0x68,0x65,0x6e])](()=>{_0x53b21e||_0x3c2758(_0x59e1dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ef8f8(){return _0x1d9cc2[_0x59e1dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59e1dc([0x76,0x69,0x65,0x77])][_0x59e1dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59e1dc([0x61,0x75,0x74,0x6f]);}function _0x4e62f2(){_0x1d9cc2[_0x59e1dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59e1dc([0x76,0x69,0x65,0x77])][_0x59e1dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59e1dc([0x61,0x75,0x74,0x6f]);}}function _0x16f951(_0x2f73d7){const _0x5edd32=[new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x441020=>setTimeout(_0x441020,0x773a34bb^_0x3e3669)),_0x252192[_0x59e1dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35292a=>{let _0x28a922=0x0;_0x1d9cc2[_0x59e1dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e1dc([0x6f,0x6e])](_0x59e1dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4401f8,_0x218374)=>{_0x218374[0x0][_0x59e1dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28a922++,_0x28a922==(0x77330b8f^_0x3e3669)&&(_0x35292a(),_0x4401f8[_0x59e1dc([0x6f,0x66,0x66])]());});}))];return window[_0x59e1dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59e1dc([0x72,0x61,0x63,0x65])](_0x5edd32)[_0x59e1dc([0x74,0x68,0x65,0x6e])](()=>_0x2f73d7);}async function _0x742445(){await _0x252192,_0x1d9cc2[_0x59e1dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e1dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x310e04,_0x1d9cc2[_0x59e1dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e1dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x310e04,_0x1d9cc2[_0x59e1dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59e1dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4458f5(_0x397d0b){const _0x2abfd0=_0x558b2a();_0x1d9cc2[_0x2abfd0]=_0x59e1dc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x397d0b,_0x397d0b!=_0x59e1dc([0x56,0x61,0x6c,0x69,0x64])&&_0x742445();}function _0x558b2a(){const _0xe7c18a=window[_0x59e1dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59e1dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59e1dc([0x6e,0x6f,0x77])]())[_0x59e1dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59e1dc([0x2e]),'');let _0x5a1c79=_0x59e1dc([0x63]);for(let _0x42cc70=0x0;_0x42cc70<_0xe7c18a[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42cc70+=0x2){let _0x1655d8=window[_0x59e1dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe7c18a[_0x59e1dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42cc70,_0x42cc70+0x2));_0x1655d8>=_0x351234[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1655d8-=_0x351234[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a1c79+=_0x351234[_0x1655d8];}return _0x5a1c79;}function _0x312cbc(){const _0x589b5e=_0x5c2ea1[_0x59e1dc([0x73,0x70,0x6c,0x69,0x74])](_0x59e1dc([0x2e]));if(0x3!=_0x589b5e[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x386901(_0x589b5e[0x1]);function _0x386901(_0x272ee2){const _0x5764d8=_0x1b5eb2(_0x272ee2);return _0x5764d8&&_0xf86541()?_0x5764d8:null;function _0xf86541(){const _0x33de28=_0x5764d8[_0x59e1dc([0x6a,0x74,0x69])],_0x41acb7=window[_0x59e1dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33de28[_0x59e1dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33de28[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x202627={..._0x5764d8,[_0x59e1dc([0x6a,0x74,0x69])]:_0x33de28[_0x59e1dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33de28[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x202627[_0x59e1dc([0x76,0x63])],_0x292d72(_0x202627)==_0x41acb7;}}}async function _0x4e8c8d(){let _0x2d1439=!0x0;try{const _0x2fc7d9=_0x5c2ea1[_0x59e1dc([0x73,0x70,0x6c,0x69,0x74])](_0x59e1dc([0x2e])),[_0x9f2fa7,_0x5c9a31,_0x28806b]=_0x2fc7d9;return _0x4c74b5(_0x9f2fa7),await _0x5935ab(_0x9f2fa7,_0x5c9a31,_0x28806b),_0x2d1439;}catch(_0x517c95){return!0x1;}function _0x4c74b5(_0x571509){const _0x338d8e=_0x1b5eb2(_0x571509);_0x338d8e&&_0x338d8e[_0x59e1dc([0x61,0x6c,0x67])]==_0x59e1dc([0x45,0x53,0x32,0x35,0x36])||(_0x2d1439=!0x1);}async function _0x5935ab(_0x410f07,_0x420d80,_0x3f3f18){const _0x3c9476=window[_0x59e1dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59e1dc([0x66,0x72,0x6f,0x6d])](_0x40192c(_0x3f3f18),_0x529a19=>_0x529a19[_0x59e1dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3183ba=new window[(_0x59e1dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59e1dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x410f07+_0x59e1dc([0x2e])+_0x420d80),_0x2687ca=window[_0x59e1dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59e1dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2687ca)return;const _0x2dd995=await _0x2687ca[_0x59e1dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59e1dc([0x6a,0x77,0x6b]),_0x35b9ba,{[_0x59e1dc([0x6e,0x61,0x6d,0x65])]:_0x59e1dc([0x45,0x43,0x44,0x53,0x41]),[_0x59e1dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59e1dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59e1dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2687ca[_0x59e1dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59e1dc([0x6e,0x61,0x6d,0x65])]:_0x59e1dc([0x45,0x43,0x44,0x53,0x41]),[_0x59e1dc([0x68,0x61,0x73,0x68])]:{[_0x59e1dc([0x6e,0x61,0x6d,0x65])]:_0x59e1dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2dd995,_0x3c9476,_0x3183ba)||(_0x2d1439=!0x1);}}function _0x1b5eb2(_0x297fcc){return _0x297fcc[_0x59e1dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59e1dc([0x65,0x79]))?JSON[_0x59e1dc([0x70,0x61,0x72,0x73,0x65])](_0x40192c(_0x297fcc)):null;}function _0x40192c(_0x41a405){return window[_0x59e1dc([0x61,0x74,0x6f,0x62])](_0x41a405[_0x59e1dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59e1dc([0x2b]))[_0x59e1dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59e1dc([0x2f])));}function _0x292d72(_0x3014ef){let _0x1e494d=0x1505;function _0x532800(_0x21e86f){for(let _0x39369e=0x0;_0x39369e<_0x21e86f[_0x59e1dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39369e++){const _0x989a1c=_0x21e86f[_0x59e1dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x39369e);_0x1e494d=(_0x1e494d<<0x5)+_0x1e494d+_0x989a1c,_0x1e494d&=_0x1e494d;}}function _0x333859(_0x254be9){Array[_0x59e1dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x254be9)?_0x254be9[_0x59e1dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x333859):_0x254be9&&typeof _0x254be9==_0x59e1dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59e1dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x254be9)[_0x59e1dc([0x73,0x6f,0x72,0x74])]()[_0x59e1dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x369e08,_0x21ca0d])=>{_0x532800(_0x369e08),_0x333859(_0x21ca0d);}):_0x532800(window[_0x59e1dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x254be9));}return _0x333859(_0x3014ef),_0x1e494d>>>0x0;}function _0x218fee(_0x566865){return _0x566865[_0x59e1dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59e1dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59e1dc([0x30]));}function _0x7ea5e7(_0x4426e2){return _0x4426e2[_0x59e1dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59e1dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59e1dc([0x6a,0x6f,0x69,0x6e])]('');}function _0x310e04(){}function _0x59e1dc(_0x1a9e07){return _0x1a9e07['map'](_0x1ef9c6=>String['fromCharCode'](_0x1ef9c6))['join']('');}_0x4458f5(await _0x3de2ea());}(this);}['_initSchema'](){const _0x4bef76=this['editor']['model']['schema'];_0x4bef76['isRegistered']('imageBlock')&&_0x4bef76['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4bef76['isRegistered']('imageInline')&&_0x4bef76['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xae2cf=this['editor'];_0xae2cf['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xae2cf['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x47714f=>_0x47714f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x488808=_0xae2cf['commands']['get']('replaceImageSource');_0x488808&&this['listenTo'](_0x488808,'cleanupImage',(_0x1c7b6a,[_0x185033,_0x4432eb])=>{_0x185033['removeAttribute']('uploadcareImageId',_0x4432eb);});}['_initConfig'](){const _0x251ac6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x34257e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x325cdd(_0x37058b['document'],'uc-config',{..._0x251ac6,'pubkey':_0x34257e,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x3d5b3e=>{if('closeMax'==_0x3d5b3e)return'#uc-icon-arrow-down';},_0x37058b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x325cdd(_0x37058b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x37058b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4b61da=this['editor']['commands']['get']('insertImage');_0x4b61da&&this['listenTo'](_0x4b61da,'execute',()=>{const _0x2fe0bc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2fe0bc&&_0x2fe0bc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2fe0bc);});});const _0x26b8d2=this['editor']['commands']['get']('uploadcareImageReplace');_0x26b8d2&&this['listenTo'](_0x26b8d2,'execute',()=>{const _0x176643=this['editor']['model']['document']['selection']['getSelectedElement']();_0x176643&&_0x176643['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x176643);});});}}class u extends _0x5aea69{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52b58b){super(_0x52b58b),_0x52b58b['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3bb2bc['defineComponents'](_0x3bb2bc);}}class ta extends _0x3e4732{constructor(_0x5d6fde){super(_0x5d6fde);const t=_0x5d6fde['t'],_0x3f2a6b=this['bindTemplate'],_0x5af538=new _0x58c44c();_0x5af538['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':[_0x5af538,{'text':_0x3f2a6b['to']('imageUploadProgress',_0x22b0b3=>t('Loading\x20image...')+'\x20('+(_0x22b0b3||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x3e4732{constructor(_0x51e605){super(_0x51e605);const t=_0x51e605['t'];this['set']('errorType',null);const _0xc211ea=new _0x257fcd(_0x51e605);_0xc211ea['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xc211ea['withText']=!0x0,_0xc211ea['class']='ck-button-action',_0xc211ea['on']('execute',()=>{this['fire']('retry');}),_0xc211ea['bind']('isVisible')['to'](this,'errorType',_0x5de293=>'NotFound'!==_0x5de293);const _0x550e49=new at();_0x550e49['content']=et,_0x550e49['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3559f6=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':[_0x550e49,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3559f6['to']('errorType',_0x58a3c4=>t('NotFound'!==_0x58a3c4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xc211ea]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x3e4732{constructor(_0x276d4c,_0x3c4120){super(_0x276d4c);const _0x2d15e8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3c4120,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2d15e8['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5ca15f,_0xf5e03d,_0x59af2b){super(_0x5ca15f),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5ca15f),this['_errorView']=new rt(_0x5ca15f),this['_editingView']=new tt(_0x5ca15f,_0x59af2b),this['_focusableView']=new _0x3e4732(_0x5ca15f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xf5e03d),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'],_0x111375=>{this['_addUploadcareImageEditorListeners'](_0x111375);});}),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'](_0x19b182,_0x54957b){const _0x1a7b0c='uc-cloud-image-editor',_0x568dba=_0x19b182['querySelector'](_0x1a7b0c);if(_0x568dba)return _0x54957b(_0x568dba);const _0x2a190f=new MutationObserver(_0x4dc16d=>{const _0x54c4c8=_0x4dc16d['filter'](_0x440377=>_0x440377['target']===_0x19b182&&_0x440377['addedNodes']['length']>0x0&&_0x440377['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1a7b0c);_0x54c4c8['length']&&(_0x2a190f['disconnect'](),_0x54957b(_0x54c4c8[0x0]['addedNodes'][0x0]));});_0x2a190f['observe'](_0x19b182,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x135f92){_0x135f92['addEventListener']('apply',_0x3649a9=>{this['fire']('apply',{'imageSrc':_0x3649a9['detail']['cdnUrl']});}),_0x135f92['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xa08b67(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xfa82af,_0x5f0a4b,_0x2e193a){super(),this['_editor']=_0xfa82af,this['_dialog']=_0x5f0a4b,this['_imageElement']=_0x2e193a,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 _0x715266=this['_imageElement'],_0x231d7f=_0x715266['getAttribute']('uploadcareImageId'),_0x3961d9=_0x715266['getAttribute']('src');if(_0x231d7f)await this['_loadImageInfo'](_0x231d7f,_0x3961d9);else{if(this['_imageCache']['has'](_0x3961d9)){const _0x7cdbe4=this['_imageCache']['get'](_0x3961d9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7cdbe4['url'],this['imageDimension']=_0x7cdbe4['dimension'],this['imageId']=_0x7cdbe4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3fc8d5}=this['_editor'],t=_0x3fc8d5['t'],_0x174724=new Z(_0x3fc8d5,this['imageStatus'],this['_attributes']);_0x174724['bind']('status')['to'](this,'imageStatus'),_0x174724['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x174724['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x174724['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x174724,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x16b2cc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x174724,'position':_0x3fe094['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x174724['focus']();},'onHide':()=>{_0x174724['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b33ee=>!F(_0x3b33ee,_0x174724['element'])}});}['_loadImageInfo'](_0x4b76d7,_0x51682a){return C['getInfo'](_0x4b76d7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x416013=>{const {width:_0x7b0f5f,height:_0x57137e}=_0x416013['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51682a,this['imageDimension']={'width':_0x7b0f5f,'height':_0x57137e},this['imageId']=_0x4b76d7;})['catch'](_0x130de9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x130de9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x53ddd0,_0x4f5069){return this['_getImageAsFile'](_0x53ddd0)['then'](_0xb94bfa=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4f5069['signal'],'file':_0xb94bfa,'onProgress':_0x56cd12=>{_0x56cd12&&_0x56cd12['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x56cd12['value']));}}))['then'](_0x5ed720=>{const {width:_0x570533,height:_0x5217ee}=_0x5ed720['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ed720['cdnUrl'],this['imageDimension']={'width':_0x570533,'height':_0x5217ee},this['imageId']=_0x5ed720['uuid'],this['imageUploadProgress']=null;const _0x148ed1=_0x53ddd0['getAttribute']('src');this['_imageCache']['set'](_0x148ed1,{'id':_0x5ed720['uuid'],'url':_0x5ed720['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x45061d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x45061d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x80c5a4,_0x8fa787){_0x80c5a4['on']('apply',(_0x58b0a7,_0x585a34)=>{this['_replaceImage'](_0x8fa787,_0x585a34['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x80c5a4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x80c5a4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xee8de9,_0x37a27a,_0x22ff99){const _0x3a6eda=this['_editor'],{width:_0x4d962f,height:_0x3aaee3}=A(_0x37a27a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f189c,imageSources:_0x56f2f7}=E(_0x37a27a,_0x4d962f);_0x3a6eda['model']['change'](_0x5e47ee=>{if('$graveyard'===_0xee8de9['root']['rootName']){_0x3a6eda['execute']('insertImage',{'imageType':_0xee8de9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xee8de9['getAttributes']()),'uploadcareImageId':_0x22ff99,'src':_0x4f189c,'sources':_0x56f2f7,'width':_0x4d962f,'height':_0x3aaee3}});const _0x74aca6=_0xee8de9['getChildren']();_0xee8de9=_0x3a6eda['model']['document']['selection']['getSelectedElement']();for(const _0x318b7e of _0x74aca6)_0x5e47ee['append'](_0x5e47ee['cloneElement'](_0x318b7e),_0xee8de9);}else _0x5e47ee['setSelection'](_0xee8de9,'on'),_0x3a6eda['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xee8de9['getAttributes']()),'uploadcareImageId':_0x22ff99,'src':_0x4f189c,'sources':_0x56f2f7,'width':_0x4d962f,'height':_0x3aaee3},_0xee8de9);_0x5e47ee['setSelection'](_0xee8de9,'on');});}async['_getImageAsFile'](_0x46bee3){const _0x4b5f2d=_0x37058b['window'],_0x23aa59=_0x37058b['document']['location']['href'],_0x14b741=new _0x4b5f2d['URL'](_0x46bee3['getAttribute']('src'),_0x23aa59);if('data:'===_0x14b741['protocol']){const _0x4769e5=_0x14b741['href']['split'](','),_0x1d0825=_0x4769e5[0x0]['match'](/:(.*?);/)[0x1],_0x379858=_0x1d0825['split']('/')[0x1],_0x5b514d=_0x4b5f2d['atob'](_0x4769e5[_0x4769e5['length']-0x1]);let _0x1f87fc=_0x5b514d['length'];const _0x5294bd=new _0x4b5f2d['Uint8Array'](_0x1f87fc);for(;_0x1f87fc--;)_0x5294bd[_0x1f87fc]=_0x5b514d['charCodeAt'](_0x1f87fc);return new _0x4b5f2d['File']([_0x5294bd],'image.'+_0x379858,{'type':_0x1d0825});}const _0x57e1ee=_0x14b741['href']['split']('/'),_0x76d982=_0x57e1ee[_0x57e1ee['length']-0x1],_0x322a1a=_0x76d982['split']('.')[0x1];return _0x4b5f2d['fetch'](_0x14b741['href'])['then'](_0xcae714=>_0xcae714['clone']()['blob']())['then'](_0x53cc8b=>new _0x4b5f2d['File']([_0x53cc8b],_0x76d982,{'type':'image/'+_0x322a1a}));}}class J extends _0x243e2b{['imageEditController'];static get['requires'](){return[_0x2058c5];}['_isEditable'];constructor(_0x385c17){super(_0x385c17),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xe1494f){const _0x1e28cc=V(_0xe1494f);return _0x2ef6ab=>!(!_0x2ef6ab||!_0x2ef6ab['is']('element','imageBlock')&&!_0x2ef6ab['is']('element','imageInline'))&&(!!_0x2ef6ab['hasAttribute']('uploadcareImageId')||!!_0x2ef6ab['hasAttribute']('src')&&_0x1e28cc(_0x2ef6ab['getAttribute']('src')));}(_0x385c17['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16ff6c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16ff6c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4e7497=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e7497&&(_0x4e7497['is']('element','imageBlock')||_0x4e7497['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x2058c5),_0x4e7497),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x243e2b{['refresh'](){const _0x51db3b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x51db3b&&(_0x51db3b['is']('element','imageBlock')||_0x51db3b['is']('element','imageInline')));}['execute'](_0x1f7e25){const _0xf20c1e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4c6f65=>{_0x4c6f65['setAttributes'](_0x1f7e25,_0xf20c1e),_0x4c6f65['removeAttribute']('srcset',_0xf20c1e),_0x4c6f65['removeAttribute']('sizes',_0xf20c1e);});}}class g extends _0x5aea69{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x490f6c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32ab02}=this;_0x32ab02['commands']['add']('uploadcareImageEdit',new J(_0x32ab02)),_0x32ab02['commands']['add']('uploadcareImageReplace',new O(_0x32ab02));}}class j extends _0x5aea69{['_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 _0x38c67c=this['editor'];_0x38c67c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5f3179=>{const _0x3ced91=_0x38c67c['commands']['get']('uploadcareImageEdit'),_0x4dcd38=new _0x257fcd(_0x5f3179),t=_0x5f3179['t'];return _0x4dcd38['set']({'icon':_0x16b2cc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4dcd38['bind']('isEnabled')['to'](_0x3ced91),_0x4dcd38['bind']('isOn')['to'](_0x3ced91,'isActive'),this['listenTo'](_0x4dcd38,'execute',()=>{_0x38c67c['execute']('uploadcareImageEdit'),_0x38c67c['editing']['view']['focus']();}),_0x4dcd38;}),this['_initConfig']();}['_initConfig'](){const _0x2ba8e6=_0x325cdd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2ba8e6),this['listenTo'](this['editor'],'destroy',()=>{_0x2ba8e6['remove']();});}}class P extends _0x5aea69{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250310.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250310.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250310.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250310.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250310.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250310.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250310.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250310.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250310.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27d297=_0x2602;function _0x2602(_0x5e10bd,_0x169327){const _0x5e1052=_0x5e10();return _0x2602=function(_0x260246,_0x277a60){_0x260246=_0x260246-0xfb;let _0x4ed01e=_0x5e1052[_0x260246];return _0x4ed01e;},_0x2602(_0x5e10bd,_0x169327);}(function(_0x5d1ade,_0x427916){const _0x2ec551=_0x2602,_0x3dd788=_0x5d1ade();while(!![]){try{const _0x373c76=-parseInt(_0x2ec551(0x14d))/0x1+parseInt(_0x2ec551(0x135))/0x2+parseInt(_0x2ec551(0x140))/0x3*(-parseInt(_0x2ec551(0x10e))/0x4)+parseInt(_0x2ec551(0x13c))/0x5+parseInt(_0x2ec551(0x12a))/0x6+parseInt(_0x2ec551(0x147))/0x7+-parseInt(_0x2ec551(0x144))/0x8*(parseInt(_0x2ec551(0x123))/0x9);if(_0x373c76===_0x427916)break;else _0x3dd788['push'](_0x3dd788['shift']());}catch(_0x5aac13){_0x3dd788['push'](_0x3dd788['shift']());}}}(_0x5e10,0x50ebf));import{Plugin as _0x2f59cf}from'ckeditor5/src/core.js';import{Dialog as _0x3ddc25}from'ckeditor5/src/ui.js';import{createElement as _0x2b3f02,global as _0x3a49da,uid as _0x30767a}from'ckeditor5/src/utils.js';import _0x51d642 from'./uploadcarecommand.js';import _0x29d348 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4928a5}from'./utils/editingutils.js';function _0x5e10(){const _0x33c5f4=['querySelector','uc-upload-ctx-provider','_ctxElement','conversion','get','cleanupImage','uploadcareImageReplace','view','editing','init','add','downcast','imageBlock','5922LfdjlM','fromCharCode','upcast','isPremiumPlugin','pluginName','map','commands','2612706TmSZKB','replaceImageSource','PictureEditing','true','getSelectedElement','data-uc-image-id','uc-config','listenTo','for','extend','render','1215752qgGSoh','uploadcare','attributeToAttribute','document','config','destroy','imageInline','2346375rOWkXG','uploadcare.pubkey','_configElement','model','177yuQtdq','_initConfig','_initCtx','removeAttribute','16480PZUOYJ','uploader','editor','3468612BFrwVJ','once','closeMax','UploadcareEditing','ctxElement','uploadcare.uploader','131734jeQoKr','afterInit','selection','appendChild','_initConversion','requires','execute','isOfficialPlugin','getAttribute','isRegistered','configElement','remove','join','uploadcareImageId','href','\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','insertImage','body','_initImageProcessingIndicator','locale','12844ZUtghS','_initSchema','#uc-icon-arrow-down','contentLanguage','input[uploadcare-file-input]','iconHrefResolver','schema','elementToAttribute'];_0x5e10=function(){return _0x33c5f4;};return _0x5e10();}export default class i extends _0x2f59cf{[_0x27d297(0x13e)]=null;[_0x27d297(0x118)]=null;static get[_0x27d297(0x127)](){const _0x4da875=_0x27d297;return _0x4da875(0x14a);}static get[_0x27d297(0xff)](){const _0x490d45=_0x27d297;return[_0x490d45(0x12c),_0x29d348,_0x3ddc25];}static get[_0x27d297(0x101)](){return!0x0;}static get[_0x27d297(0x126)](){return!0x0;}get[_0x27d297(0x104)](){const _0x367296=_0x27d297;return this[_0x367296(0x13e)];}get[_0x27d297(0x14b)](){const _0x183d62=_0x27d297;return this[_0x183d62(0x118)];}[_0x27d297(0x11f)](){const _0x15a6d5=_0x27d297,_0x1b7409=this[_0x15a6d5(0x146)];_0x1b7409[_0x15a6d5(0x129)][_0x15a6d5(0x120)](_0x15a6d5(0x136),new _0x51d642(_0x1b7409));}[_0x27d297(0xfb)](){const _0x1e3a43=_0x27d297;this[_0x1e3a43(0x10f)](),this[_0x1e3a43(0xfe)](),this[_0x1e3a43(0x141)](),this[_0x1e3a43(0x142)](),this[_0x1e3a43(0x10c)](),this[_0x1e3a43(0x131)](this[_0x1e3a43(0x146)],_0x1e3a43(0x13a),()=>{const _0x2d2d02=_0x1e3a43;this[_0x2d2d02(0x13e)]&&(this[_0x2d2d02(0x13e)][_0x2d2d02(0x105)](),this[_0x2d2d02(0x13e)]=null),this[_0x2d2d02(0x118)]&&(this[_0x2d2d02(0x118)][_0x2d2d02(0x105)](),this[_0x2d2d02(0x118)]=null);const _0x13aaf5=_0x3a49da[_0x2d2d02(0x138)][_0x2d2d02(0x116)](_0x2d2d02(0x112));_0x13aaf5&&_0x13aaf5[_0x2d2d02(0x105)]();}),async function(_0x24553f){const _0x4457df=_0x52850f([0x33,0x66,0x6f,0x4e,0x63,0x6d,0x5a,0x58,0x46,0x37,0x4f,0x64,0x76,0x42,0x31,0x34,0x4b,0x79,0x49,0x59,0x54,0x4d,0x75,0x67,0x30,0x4a,0x56,0x69,0x4c,0x55,0x72,0x6e,0x6c,0x44,0x70,0x52,0x6b,0x51,0x71,0x7a,0x45,0x73,0x41,0x78,0x6a,0x53,0x32,0x36,0x68,0x38,0x50,0x57,0x77,0x61,0x43,0x65,0x47,0x48,0x39,0x74,0x35,0x62]),_0x5098a5=0x3aa37f3f,_0xd002e6=0x3aa41eb7^_0x5098a5,_0x58decd=window[_0x52850f([0x44,0x61,0x74,0x65])][_0x52850f([0x6e,0x6f,0x77])](),_0x373e75=_0x24553f[_0x52850f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12ca4e=new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36d915=>{_0x373e75[_0x52850f([0x6f,0x6e,0x63,0x65])](_0x52850f([0x72,0x65,0x61,0x64,0x79]),_0x36d915);}),_0x7c1f54={[_0x52850f([0x6b,0x74,0x79])]:_0x52850f([0x45,0x43]),[_0x52850f([0x75,0x73,0x65])]:_0x52850f([0x73,0x69,0x67]),[_0x52850f([0x63,0x72,0x76])]:_0x52850f([0x50,0x2d,0x32,0x35,0x36]),[_0x52850f([0x78])]:_0x52850f([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]),[_0x52850f([0x79])]:_0x52850f([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]),[_0x52850f([0x61,0x6c,0x67])]:_0x52850f([0x45,0x53,0x32,0x35,0x36])},_0x16bd7a=_0x373e75[_0x52850f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52850f([0x67,0x65,0x74])](_0x52850f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x101738(){let _0x2d2d85,_0x5ce12a=null,_0x3f086f=null;try{if(_0x16bd7a==_0x52850f([0x47,0x50,0x4c]))return _0x52850f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d2d85=_0x4d7570(),!_0x2d2d85)return _0x52850f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d2d85[_0x52850f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f086f=_0x394fbe(_0x2d2d85[_0x52850f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d2d85[_0x52850f([0x6a,0x74,0x69])])),await _0xeea0cc()?_0x196c3b()?_0x2a289c()?_0x52850f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22f2ab()?(_0x2d2d85[_0x52850f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52850f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ce12a=_0x1a3012(_0x52850f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d2d85[_0x52850f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52850f([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ce12a=_0x1a3012(_0x52850f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a6d07()):_0x52850f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52850f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52850f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1754f3){return _0x52850f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a289c(){const _0x4ea04b=[_0x52850f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52850f([0x74,0x72,0x69,0x61,0x6c])][_0x52850f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d2d85[_0x52850f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58decd/0x3e8:0xe10*_0xd002e6;return _0x2d2d85[_0x52850f([0x65,0x78,0x70])]<_0x4ea04b;}function _0x196c3b(){const _0x1c971f=_0x2d2d85[_0x52850f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c971f&&(!!_0x1c971f[_0x52850f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52850f([0x2a]))||!!_0x1c971f[_0x52850f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52850f([0x55,0x50,0x4c,0x43])));}function _0x22f2ab(){const _0x15eadb=_0x2602,_0x54181d=_0x2d2d85[_0x52850f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54181d||0x0==_0x54181d[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ea0eb}=new URL(window[_0x52850f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x15eadb(0x108)]);if(_0x54181d[_0x52850f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ea0eb))return!0x0;const _0x57e9cd=_0x1ea0eb[_0x52850f([0x73,0x70,0x6c,0x69,0x74])](_0x52850f([0x2e]));return _0x54181d[_0x52850f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x282d82=>_0x282d82[_0x52850f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52850f([0x2a])))[_0x52850f([0x6d,0x61,0x70])](_0xce9c22=>_0xce9c22[_0x52850f([0x73,0x70,0x6c,0x69,0x74])](_0x52850f([0x2e])))[_0x52850f([0x73,0x6f,0x6d,0x65])](_0x3d943c=>_0x57e9cd[_0x52850f([0x65,0x76,0x65,0x72,0x79])]((_0x193405,_0x55a101)=>_0x3d943c[_0x55a101]===_0x193405||_0x3d943c[_0x55a101]===_0x52850f([0x2a])));}function _0x2a6d07(){return _0x5ce12a&&_0x3f086f?new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x362057,_0xbe9448)=>{_0x5ce12a[_0x52850f([0x74,0x68,0x65,0x6e])](_0x362057,_0xbe9448),_0x3f086f[_0x52850f([0x74,0x68,0x65,0x6e])](_0x2281a9=>{_0x2281a9!=_0x52850f([0x56,0x61,0x6c,0x69,0x64])&&_0x362057(_0x2281a9);},_0xbe9448);}):_0x5ce12a||_0x3f086f||_0x52850f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x394fbe(_0x2743a0,_0x288215){return new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20fac3=>{if(_0x71beb2())return _0x20fac3(_0x52850f([0x56,0x61,0x6c,0x69,0x64]));_0x4eddad(),_0x373e75[_0x52850f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52850f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a6a30=!0x1;const _0x255539=_0x30767a();function _0x18ee3b(_0xfbe04c){return!!_0xfbe04c&&(typeof _0xfbe04c===_0x52850f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xfbe04c===_0x52850f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xfbe04c[_0x52850f([0x74,0x68,0x65,0x6e])]===_0x52850f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xfbe04c[_0x52850f([0x63,0x61,0x74,0x63,0x68])]===_0x52850f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27b8df(_0x248b85){_0x468774(_0x248b85)[_0x52850f([0x74,0x68,0x65,0x6e])](_0x5eabd7=>{if(!_0x5eabd7||_0x5eabd7[_0x52850f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52850f([0x6f,0x6b]))return _0x52850f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1945c1(_0x3ccf45(_0x255539+_0x288215))!=_0x5eabd7[_0x52850f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52850f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52850f([0x56,0x61,0x6c,0x69,0x64]);})[_0x52850f([0x74,0x68,0x65,0x6e])](_0x4abdc0=>(_0x11f2a4(),_0x4abdc0),()=>{const _0x841df8=_0x130437();return null==_0x841df8?(_0x11f2a4(),_0x52850f([0x56,0x61,0x6c,0x69,0x64])):_0x52850f(_0x58decd-_0x841df8>(0x1eaffb3f^_0x5098a5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52850f([0x74,0x68,0x65,0x6e])](_0x20fac3)[_0x52850f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20fac3(_0x52850f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3646eb=0x3a9591bf^_0x5098a5;function _0x11f2a4(){const _0x15b99c=_0x52850f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1945c1(_0x3ccf45(_0x2743a0)),_0x9f2cdc=_0x5e3460(_0x1945c1(window[_0x52850f([0x4d,0x61,0x74,0x68])][_0x52850f([0x63,0x65,0x69,0x6c])](_0x58decd/_0x3646eb)));window[_0x52850f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52850f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15b99c,_0x9f2cdc);}function _0x130437(){const _0x451468=_0x52850f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1945c1(_0x3ccf45(_0x2743a0)),_0x548609=window[_0x52850f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52850f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x451468);return _0x548609?window[_0x52850f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e3460(_0x548609),0x10)*_0x3646eb:null;}function _0x468774(_0x4ba066){return new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49b0c2,_0x186ea8)=>{_0x4ba066[_0x52850f([0x74,0x68,0x65,0x6e])](_0x49b0c2,_0x186ea8),window[_0x52850f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x186ea8,0x3aa2abff^_0x5098a5);});}}_0x373e75[_0x52850f([0x6f,0x6e])](_0x52850f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ead47,_0x490c44)=>{if(_0x490c44[0x0]!=_0x2743a0)return _0x20fac3(_0x52850f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x490c44[0x1]={..._0x490c44[0x1],[_0x52850f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x255539};},{[_0x52850f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52850f([0x68,0x69,0x67,0x68])}),_0x373e75[_0x52850f([0x6f,0x6e])](_0x52850f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x351df9=>{_0x18ee3b(_0x351df9[_0x52850f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a6a30=!0x0,_0x27b8df(_0x351df9[_0x52850f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52850f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52850f([0x6c,0x6f,0x77])}),_0x12ca4e[_0x52850f([0x74,0x68,0x65,0x6e])](()=>{_0x2a6a30||_0x20fac3(_0x52850f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x71beb2(){return _0x373e75[_0x52850f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52850f([0x76,0x69,0x65,0x77])][_0x52850f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52850f([0x61,0x75,0x74,0x6f]);}function _0x4eddad(){_0x373e75[_0x52850f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52850f([0x76,0x69,0x65,0x77])][_0x52850f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52850f([0x61,0x75,0x74,0x6f]);}}function _0x1a3012(_0x4d35ad){const _0x4ad196=[new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4551b4=>setTimeout(_0x4551b4,0x3aaa41f3^_0x5098a5)),_0x12ca4e[_0x52850f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1718d8=>{let _0x147ab4=0x0;_0x373e75[_0x52850f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52850f([0x6f,0x6e])](_0x52850f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x307880,_0x1bd212)=>{_0x1bd212[0x0][_0x52850f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x147ab4++,_0x147ab4==(0x3aa37ec7^_0x5098a5)&&(_0x1718d8(),_0x307880[_0x52850f([0x6f,0x66,0x66])]());});}))];return window[_0x52850f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52850f([0x72,0x61,0x63,0x65])](_0x4ad196)[_0x52850f([0x74,0x68,0x65,0x6e])](()=>_0x4d35ad);}async function _0x800dfb(){await _0x12ca4e,_0x373e75[_0x52850f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52850f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58ccf4,_0x373e75[_0x52850f([0x6d,0x6f,0x64,0x65,0x6c])][_0x52850f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58ccf4,_0x373e75[_0x52850f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52850f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b3e2c(_0x1dc7ee){const _0x495c2d=_0x16d3d0();_0x373e75[_0x495c2d]=_0x52850f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1dc7ee,_0x1dc7ee!=_0x52850f([0x56,0x61,0x6c,0x69,0x64])&&_0x800dfb();}function _0x16d3d0(){const _0x53e8c9=window[_0x52850f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52850f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52850f([0x6e,0x6f,0x77])]())[_0x52850f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52850f([0x2e]),'');let _0x2bc8dc=_0x52850f([0x66]);for(let _0xa04f60=0x0;_0xa04f60<_0x53e8c9[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa04f60+=0x2){let _0x27abd0=window[_0x52850f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53e8c9[_0x52850f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa04f60,_0xa04f60+0x2));_0x27abd0>=_0x4457df[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27abd0-=_0x4457df[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bc8dc+=_0x4457df[_0x27abd0];}return _0x2bc8dc;}function _0x4d7570(){const _0x14a83c=_0x16bd7a[_0x52850f([0x73,0x70,0x6c,0x69,0x74])](_0x52850f([0x2e]));if(0x3!=_0x14a83c[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5719d1(_0x14a83c[0x1]);function _0x5719d1(_0x43c0d8){const _0x3d1a69=_0x3a7584(_0x43c0d8);return _0x3d1a69&&_0xf99985()?_0x3d1a69:null;function _0xf99985(){const _0x4b9312=_0x3d1a69[_0x52850f([0x6a,0x74,0x69])],_0x157364=window[_0x52850f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b9312[_0x52850f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b9312[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7c5204={..._0x3d1a69,[_0x52850f([0x6a,0x74,0x69])]:_0x4b9312[_0x52850f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b9312[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7c5204[_0x52850f([0x76,0x63])],_0x3ccf45(_0x7c5204)==_0x157364;}}}async function _0xeea0cc(){let _0x3aac35=!0x0;try{const _0x189190=_0x16bd7a[_0x52850f([0x73,0x70,0x6c,0x69,0x74])](_0x52850f([0x2e])),[_0x11e311,_0x21eb1f,_0x638139]=_0x189190;return _0x69c6a4(_0x11e311),await _0x5bcadf(_0x11e311,_0x21eb1f,_0x638139),_0x3aac35;}catch(_0x2813fd){return!0x1;}function _0x69c6a4(_0x14fe9d){const _0x542812=_0x3a7584(_0x14fe9d);_0x542812&&_0x542812[_0x52850f([0x61,0x6c,0x67])]==_0x52850f([0x45,0x53,0x32,0x35,0x36])||(_0x3aac35=!0x1);}async function _0x5bcadf(_0x2dcd32,_0x265e8f,_0x1bbacb){const _0x124719=window[_0x52850f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52850f([0x66,0x72,0x6f,0x6d])](_0x4009e(_0x1bbacb),_0x924b43=>_0x924b43[_0x52850f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dd5a8=new window[(_0x52850f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52850f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2dcd32+_0x52850f([0x2e])+_0x265e8f),_0x36c65a=window[_0x52850f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52850f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36c65a)return;const _0x1a5c49=await _0x36c65a[_0x52850f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52850f([0x6a,0x77,0x6b]),_0x7c1f54,{[_0x52850f([0x6e,0x61,0x6d,0x65])]:_0x52850f([0x45,0x43,0x44,0x53,0x41]),[_0x52850f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52850f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52850f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36c65a[_0x52850f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52850f([0x6e,0x61,0x6d,0x65])]:_0x52850f([0x45,0x43,0x44,0x53,0x41]),[_0x52850f([0x68,0x61,0x73,0x68])]:{[_0x52850f([0x6e,0x61,0x6d,0x65])]:_0x52850f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a5c49,_0x124719,_0x4dd5a8)||(_0x3aac35=!0x1);}}function _0x3a7584(_0x484ecb){return _0x484ecb[_0x52850f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52850f([0x65,0x79]))?JSON[_0x52850f([0x70,0x61,0x72,0x73,0x65])](_0x4009e(_0x484ecb)):null;}function _0x4009e(_0xad7514){return window[_0x52850f([0x61,0x74,0x6f,0x62])](_0xad7514[_0x52850f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52850f([0x2b]))[_0x52850f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52850f([0x2f])));}function _0x3ccf45(_0x354700){let _0x22c845=0x1505;function _0x4a250d(_0x40991b){for(let _0x300329=0x0;_0x300329<_0x40991b[_0x52850f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x300329++){const _0x73f202=_0x40991b[_0x52850f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x300329);_0x22c845=(_0x22c845<<0x5)+_0x22c845+_0x73f202,_0x22c845&=_0x22c845;}}function _0x40b53b(_0x416ea9){Array[_0x52850f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x416ea9)?_0x416ea9[_0x52850f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40b53b):_0x416ea9&&typeof _0x416ea9==_0x52850f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52850f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x416ea9)[_0x52850f([0x73,0x6f,0x72,0x74])]()[_0x52850f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x386189,_0xfe18fb])=>{_0x4a250d(_0x386189),_0x40b53b(_0xfe18fb);}):_0x4a250d(window[_0x52850f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x416ea9));}return _0x40b53b(_0x354700),_0x22c845>>>0x0;}function _0x1945c1(_0x508802){return _0x508802[_0x52850f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52850f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52850f([0x30]));}function _0x5e3460(_0xf928bf){return _0xf928bf[_0x52850f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52850f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52850f([0x6a,0x6f,0x69,0x6e])]('');}function _0x58ccf4(){}function _0x52850f(_0x16c000){const _0x276f56=_0x2602;return _0x16c000[_0x276f56(0x128)](_0x9fab96=>String[_0x276f56(0x124)](_0x9fab96))[_0x276f56(0x106)]('');}_0x3b3e2c(await _0x101738());}(this);}[_0x27d297(0x10f)](){const _0x34c061=_0x27d297,_0x468865=this[_0x34c061(0x146)][_0x34c061(0x13f)][_0x34c061(0x114)];_0x468865[_0x34c061(0x103)](_0x34c061(0x122))&&_0x468865[_0x34c061(0x133)](_0x34c061(0x122),{'allowAttributes':[_0x34c061(0x107)]}),_0x468865[_0x34c061(0x103)](_0x34c061(0x13b))&&_0x468865[_0x34c061(0x133)](_0x34c061(0x13b),{'allowAttributes':[_0x34c061(0x107)]});}[_0x27d297(0xfe)](){const _0x57a908=_0x27d297,_0x1f555a=this[_0x57a908(0x146)];_0x1f555a[_0x57a908(0x119)][_0x57a908(0x132)](_0x57a908(0x121))[_0x57a908(0x137)]({'model':_0x57a908(0x107),'view':_0x57a908(0x12f)}),_0x1f555a[_0x57a908(0x119)][_0x57a908(0x132)](_0x57a908(0x125))[_0x57a908(0x115)]({'model':{'key':_0x57a908(0x107),'value':_0x55cbd9=>_0x55cbd9[_0x57a908(0x102)](_0x57a908(0x12f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4732de=_0x1f555a[_0x57a908(0x129)][_0x57a908(0x11a)](_0x57a908(0x12b));_0x4732de&&this[_0x57a908(0x131)](_0x4732de,_0x57a908(0x11b),(_0x39bb5b,[_0x4d32bb,_0x59360e])=>{const _0x4f8395=_0x57a908;_0x4d32bb[_0x4f8395(0x143)](_0x4f8395(0x107),_0x59360e);});}[_0x27d297(0x141)](){const _0x289c88=_0x27d297,_0x215a21=this[_0x289c88(0x146)][_0x289c88(0x139)][_0x289c88(0x11a)](_0x289c88(0x14c))||{},_0x44cdde=this[_0x289c88(0x146)][_0x289c88(0x139)][_0x289c88(0x11a)](_0x289c88(0x13d))||'';this[_0x289c88(0x13e)]=_0x2b3f02(_0x3a49da[_0x289c88(0x138)],_0x289c88(0x130),{..._0x215a21,'pubkey':_0x44cdde,'ctx-name':_0x289c88(0x145),'sourceList':'','imgOnly':_0x289c88(0x12d),'removeCopyright':_0x289c88(0x12d),'localeName':this[_0x289c88(0x146)][_0x289c88(0x10d)][_0x289c88(0x111)],'externalSourcesEmbedCss':_0x289c88(0x109)}),this[_0x289c88(0x13e)][_0x289c88(0x113)]=_0x15978b=>{const _0x3a66e6=_0x289c88;if(_0x3a66e6(0x149)==_0x15978b)return _0x3a66e6(0x110);},_0x3a49da[_0x289c88(0x138)][_0x289c88(0x10b)][_0x289c88(0xfd)](this[_0x289c88(0x13e)]);}[_0x27d297(0x142)](){const _0x20267f=_0x27d297;this[_0x20267f(0x118)]=_0x2b3f02(_0x3a49da[_0x20267f(0x138)],_0x20267f(0x117),{'ctx-name':_0x20267f(0x145)}),_0x3a49da[_0x20267f(0x138)][_0x20267f(0x10b)][_0x20267f(0xfd)](this[_0x20267f(0x118)]);}[_0x27d297(0x10c)](){const _0x43ce2e=_0x27d297,_0x5a15d9=this[_0x43ce2e(0x146)][_0x43ce2e(0x129)][_0x43ce2e(0x11a)](_0x43ce2e(0x10a));_0x5a15d9&&this[_0x43ce2e(0x131)](_0x5a15d9,_0x43ce2e(0x100),()=>{const _0x44a524=_0x43ce2e,_0x1a8132=this[_0x44a524(0x146)][_0x44a524(0x13f)][_0x44a524(0x138)][_0x44a524(0xfc)][_0x44a524(0x12e)]();_0x1a8132&&_0x1a8132[_0x44a524(0x102)](_0x44a524(0x107))&&this[_0x44a524(0x146)][_0x44a524(0x11e)][_0x44a524(0x11d)][_0x44a524(0x148)](_0x44a524(0x134),()=>{const _0x5c7d25=_0x44a524;_0x4928a5(this[_0x5c7d25(0x146)],_0x1a8132);});});const _0x45a0f2=this[_0x43ce2e(0x146)][_0x43ce2e(0x129)][_0x43ce2e(0x11a)](_0x43ce2e(0x11c));_0x45a0f2&&this[_0x43ce2e(0x131)](_0x45a0f2,_0x43ce2e(0x100),()=>{const _0x178aa9=_0x43ce2e,_0x39a867=this[_0x178aa9(0x146)][_0x178aa9(0x13f)][_0x178aa9(0x138)][_0x178aa9(0xfc)][_0x178aa9(0x12e)]();_0x39a867&&_0x39a867[_0x178aa9(0x102)](_0x178aa9(0x107))&&this[_0x178aa9(0x146)][_0x178aa9(0x11e)][_0x178aa9(0x11d)][_0x178aa9(0x148)](_0x178aa9(0x134),()=>{const _0x5e9a34=_0x178aa9;_0x4928a5(this[_0x5e9a34(0x146)],_0x39a867);});});}}
|
|
23
|
+
const _0x3b7e13=_0x5d3e;(function(_0x4badf7,_0x24d0ef){const _0x24a301=_0x5d3e,_0x493032=_0x4badf7();while(!![]){try{const _0x2026b0=parseInt(_0x24a301(0xdc))/0x1*(-parseInt(_0x24a301(0xc5))/0x2)+-parseInt(_0x24a301(0xf1))/0x3*(-parseInt(_0x24a301(0xf6))/0x4)+parseInt(_0x24a301(0xbb))/0x5*(parseInt(_0x24a301(0xb7))/0x6)+-parseInt(_0x24a301(0xca))/0x7+-parseInt(_0x24a301(0xe1))/0x8*(-parseInt(_0x24a301(0xe7))/0x9)+-parseInt(_0x24a301(0xc3))/0xa+parseInt(_0x24a301(0xdf))/0xb;if(_0x2026b0===_0x24d0ef)break;else _0x493032['push'](_0x493032['shift']());}catch(_0x1792a4){_0x493032['push'](_0x493032['shift']());}}}(_0x4448,0xcd6c2));import{Plugin as _0x358e2c}from'ckeditor5/src/core.js';function _0x5d3e(_0x46b3c3,_0x2ac23e){const _0x4448f9=_0x4448();return _0x5d3e=function(_0x5d3e8c,_0x2a3ded){_0x5d3e8c=_0x5d3e8c-0xa6;let _0x1c128c=_0x4448f9[_0x5d3e8c];return _0x1c128c;},_0x5d3e(_0x46b3c3,_0x2ac23e);}import{Dialog as _0x4370bd}from'ckeditor5/src/ui.js';import{createElement as _0x2ef530,global as _0x2aa1a7,uid as _0x20eddc}from'ckeditor5/src/utils.js';import _0xb8ef2b from'./uploadcarecommand.js';import _0x134c0b from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3cb9e4}from'./utils/editingutils.js';export default class i extends _0x358e2c{[_0x3b7e13(0xb1)]=null;[_0x3b7e13(0xc1)]=null;static get[_0x3b7e13(0xaa)](){const _0x4aa6d0=_0x3b7e13;return _0x4aa6d0(0xa9);}static get[_0x3b7e13(0xf9)](){const _0x505eea=_0x3b7e13;return[_0x505eea(0xae),_0x134c0b,_0x4370bd];}static get[_0x3b7e13(0xfa)](){return!0x0;}static get[_0x3b7e13(0xc2)](){return!0x0;}get[_0x3b7e13(0xe2)](){const _0x402bd2=_0x3b7e13;return this[_0x402bd2(0xb1)];}get[_0x3b7e13(0xe9)](){const _0x21cbd7=_0x3b7e13;return this[_0x21cbd7(0xc1)];}[_0x3b7e13(0xcf)](){const _0x401118=_0x3b7e13,_0x21705d=this[_0x401118(0xb2)];_0x21705d[_0x401118(0xbe)][_0x401118(0xee)](_0x401118(0xf8),new _0xb8ef2b(_0x21705d));}[_0x3b7e13(0xec)](){const _0x6106a4=_0x3b7e13;this[_0x6106a4(0xf0)](),this[_0x6106a4(0xef)](),this[_0x6106a4(0xb8)](),this[_0x6106a4(0xd7)](),this[_0x6106a4(0xac)](),this[_0x6106a4(0xd2)](this[_0x6106a4(0xb2)],_0x6106a4(0xf7),()=>{const _0x4358e8=_0x6106a4;this[_0x4358e8(0xb1)]&&(this[_0x4358e8(0xb1)][_0x4358e8(0xbd)](),this[_0x4358e8(0xb1)]=null),this[_0x4358e8(0xc1)]&&(this[_0x4358e8(0xc1)][_0x4358e8(0xbd)](),this[_0x4358e8(0xc1)]=null);const _0x480069=_0x2aa1a7[_0x4358e8(0xc9)][_0x4358e8(0xf4)](_0x4358e8(0xc0));_0x480069&&_0x480069[_0x4358e8(0xbd)]();}),async function(_0x3de5b0){const _0x2b6f1f=_0x96ab7([0x63,0x74,0x72,0x32,0x5a,0x79,0x42,0x6f,0x57,0x37,0x33,0x77,0x53,0x41,0x35,0x49,0x4e,0x61,0x6c,0x66,0x4b,0x36,0x62,0x70,0x76,0x6a,0x43,0x4f,0x55,0x6e,0x58,0x45,0x6b,0x4a,0x39,0x30,0x69,0x31,0x64,0x73,0x54,0x78,0x68,0x75,0x59,0x65,0x48,0x34,0x71,0x50,0x6d,0x46,0x51,0x56,0x67,0x4c,0x7a,0x38,0x4d,0x52,0x47,0x44]),_0x33fe22=0x77330a77,_0x4b2aec=0x77346bcf^_0x33fe22,_0x1eba21=window[_0x96ab7([0x44,0x61,0x74,0x65])][_0x96ab7([0x6e,0x6f,0x77])](),_0x7e4c2a=_0x3de5b0[_0x96ab7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a49ac=new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5641b4=>{_0x7e4c2a[_0x96ab7([0x6f,0x6e,0x63,0x65])](_0x96ab7([0x72,0x65,0x61,0x64,0x79]),_0x5641b4);}),_0x327341={[_0x96ab7([0x6b,0x74,0x79])]:_0x96ab7([0x45,0x43]),[_0x96ab7([0x75,0x73,0x65])]:_0x96ab7([0x73,0x69,0x67]),[_0x96ab7([0x63,0x72,0x76])]:_0x96ab7([0x50,0x2d,0x32,0x35,0x36]),[_0x96ab7([0x78])]:_0x96ab7([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]),[_0x96ab7([0x79])]:_0x96ab7([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]),[_0x96ab7([0x61,0x6c,0x67])]:_0x96ab7([0x45,0x53,0x32,0x35,0x36])},_0x2dae61=_0x7e4c2a[_0x96ab7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x96ab7([0x67,0x65,0x74])](_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x549e34(){let _0x11fa64,_0x3968f1=null,_0x396afd=null;try{if(_0x2dae61==_0x96ab7([0x47,0x50,0x4c]))return _0x96ab7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11fa64=_0x1552d3(),!_0x11fa64)return _0x96ab7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11fa64[_0x96ab7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x396afd=_0x530a41(_0x11fa64[_0x96ab7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11fa64[_0x96ab7([0x6a,0x74,0x69])])),await _0x199b20()?_0x4f09f2()?_0x6475c3()?_0x96ab7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf7bb28()?(_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x96ab7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3968f1=_0x2f670c(_0x96ab7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x96ab7([0x74,0x72,0x69,0x61,0x6c])&&(_0x3968f1=_0x2f670c(_0x96ab7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ca60a()):_0x96ab7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x96ab7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x96ab7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x8186e9){return _0x96ab7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6475c3(){const _0x4ffaa0=[_0x96ab7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x96ab7([0x74,0x72,0x69,0x61,0x6c])][_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1eba21/0x3e8:0xe10*_0x4b2aec;return _0x11fa64[_0x96ab7([0x65,0x78,0x70])]<_0x4ffaa0;}function _0x4f09f2(){const _0x569653=_0x11fa64[_0x96ab7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x569653&&(!!_0x569653[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96ab7([0x2a]))||!!_0x569653[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96ab7([0x55,0x50,0x4c,0x43])));}function _0xf7bb28(){const _0x27d975=_0x5d3e,_0x4f3857=_0x11fa64[_0x96ab7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f3857||0x0==_0x4f3857[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4915c2}=new URL(window[_0x96ab7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x27d975(0xd3)]);if(_0x4f3857[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4915c2))return!0x0;const _0x2f9164=_0x4915c2[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e]));return _0x4f3857[_0x96ab7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e85b5=>_0x5e85b5[_0x96ab7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96ab7([0x2a])))[_0x96ab7([0x6d,0x61,0x70])](_0x4c2404=>_0x4c2404[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e])))[_0x96ab7([0x73,0x6f,0x6d,0x65])](_0x3620bc=>_0x2f9164[_0x96ab7([0x65,0x76,0x65,0x72,0x79])]((_0x3a38b3,_0x5b9415)=>_0x3620bc[_0x5b9415]===_0x3a38b3||_0x3620bc[_0x5b9415]===_0x96ab7([0x2a])));}function _0x1ca60a(){return _0x3968f1&&_0x396afd?new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35d6ab,_0x5bcf79)=>{_0x3968f1[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x35d6ab,_0x5bcf79),_0x396afd[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x40d363=>{_0x40d363!=_0x96ab7([0x56,0x61,0x6c,0x69,0x64])&&_0x35d6ab(_0x40d363);},_0x5bcf79);}):_0x3968f1||_0x396afd||_0x96ab7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x530a41(_0x2a2388,_0x2496f8){return new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56fb2e=>{if(_0x4fe381())return _0x56fb2e(_0x96ab7([0x56,0x61,0x6c,0x69,0x64]));_0xfe5682(),_0x7e4c2a[_0x96ab7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x96ab7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf2ec9e=!0x1;const _0x20f8b8=_0x20eddc();function _0x4442a0(_0x5b26cc){return!!_0x5b26cc&&(typeof _0x5b26cc===_0x96ab7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b26cc===_0x96ab7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b26cc[_0x96ab7([0x74,0x68,0x65,0x6e])]===_0x96ab7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b26cc[_0x96ab7([0x63,0x61,0x74,0x63,0x68])]===_0x96ab7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c9621(_0x2b42da){_0x3cb7b6(_0x2b42da)[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x5ad6a3=>{if(!_0x5ad6a3||_0x5ad6a3[_0x96ab7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x96ab7([0x6f,0x6b]))return _0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x360fc6(_0x21f94e(_0x20f8b8+_0x2496f8))!=_0x5ad6a3[_0x96ab7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x96ab7([0x56,0x61,0x6c,0x69,0x64]);})[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x217ee3=>(_0x538a49(),_0x217ee3),()=>{const _0x52c4bd=_0x24cc3b();return null==_0x52c4bd?(_0x538a49(),_0x96ab7([0x56,0x61,0x6c,0x69,0x64])):_0x96ab7(_0x1eba21-_0x52c4bd>(0x533f8e77^_0x33fe22)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x56fb2e)[_0x96ab7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x56fb2e(_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4de3fd=0x7705e4f7^_0x33fe22;function _0x538a49(){const _0x400489=_0x96ab7([0x6c,0x6c,0x63,0x74,0x2d])+_0x360fc6(_0x21f94e(_0x2a2388)),_0x2b62e=_0x2a5c1b(_0x360fc6(window[_0x96ab7([0x4d,0x61,0x74,0x68])][_0x96ab7([0x63,0x65,0x69,0x6c])](_0x1eba21/_0x4de3fd)));window[_0x96ab7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x96ab7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x400489,_0x2b62e);}function _0x24cc3b(){const _0x560078=_0x96ab7([0x6c,0x6c,0x63,0x74,0x2d])+_0x360fc6(_0x21f94e(_0x2a2388)),_0x5d09f5=window[_0x96ab7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x96ab7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x560078);return _0x5d09f5?window[_0x96ab7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a5c1b(_0x5d09f5),0x10)*_0x4de3fd:null;}function _0x3cb7b6(_0x322229){return new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44dc62,_0x397b9c)=>{_0x322229[_0x96ab7([0x74,0x68,0x65,0x6e])](_0x44dc62,_0x397b9c),window[_0x96ab7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x397b9c,0x7732deb7^_0x33fe22);});}}_0x7e4c2a[_0x96ab7([0x6f,0x6e])](_0x96ab7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c9cac,_0x326692)=>{if(_0x326692[0x0]!=_0x2a2388)return _0x56fb2e(_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x326692[0x1]={..._0x326692[0x1],[_0x96ab7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20f8b8};},{[_0x96ab7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x96ab7([0x68,0x69,0x67,0x68])}),_0x7e4c2a[_0x96ab7([0x6f,0x6e])](_0x96ab7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x169a69=>{_0x4442a0(_0x169a69[_0x96ab7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf2ec9e=!0x0,_0x3c9621(_0x169a69[_0x96ab7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x96ab7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x96ab7([0x6c,0x6f,0x77])}),_0x3a49ac[_0x96ab7([0x74,0x68,0x65,0x6e])](()=>{_0xf2ec9e||_0x56fb2e(_0x96ab7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4fe381(){return _0x7e4c2a[_0x96ab7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x96ab7([0x76,0x69,0x65,0x77])][_0x96ab7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x96ab7([0x61,0x75,0x74,0x6f]);}function _0xfe5682(){_0x7e4c2a[_0x96ab7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x96ab7([0x76,0x69,0x65,0x77])][_0x96ab7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x96ab7([0x61,0x75,0x74,0x6f]);}}function _0x2f670c(_0x4b20b0){const _0x262318=[new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd007=>setTimeout(_0x3dd007,0x773a34bb^_0x33fe22)),_0x3a49ac[_0x96ab7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19fba0=>{let _0x516502=0x0;_0x7e4c2a[_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c])][_0x96ab7([0x6f,0x6e])](_0x96ab7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x377185,_0x2c327f)=>{_0x2c327f[0x0][_0x96ab7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x516502++,_0x516502==(0x77330b8f^_0x33fe22)&&(_0x19fba0(),_0x377185[_0x96ab7([0x6f,0x66,0x66])]());});}))];return window[_0x96ab7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x96ab7([0x72,0x61,0x63,0x65])](_0x262318)[_0x96ab7([0x74,0x68,0x65,0x6e])](()=>_0x4b20b0);}async function _0x5dc1ec(){await _0x3a49ac,_0x7e4c2a[_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c])][_0x96ab7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x125886,_0x7e4c2a[_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c])][_0x96ab7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x125886,_0x7e4c2a[_0x96ab7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x96ab7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c014c(_0x1f551a){const _0x538259=_0x320814();_0x7e4c2a[_0x538259]=_0x96ab7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f551a,_0x1f551a!=_0x96ab7([0x56,0x61,0x6c,0x69,0x64])&&_0x5dc1ec();}function _0x320814(){const _0x19be3b=window[_0x96ab7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x96ab7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x96ab7([0x6e,0x6f,0x77])]())[_0x96ab7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x96ab7([0x2e]),'');let _0x3c5f55=_0x96ab7([0x63]);for(let _0x5d422c=0x0;_0x5d422c<_0x19be3b[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d422c+=0x2){let _0x1b8a42=window[_0x96ab7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19be3b[_0x96ab7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d422c,_0x5d422c+0x2));_0x1b8a42>=_0x2b6f1f[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b8a42-=_0x2b6f1f[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c5f55+=_0x2b6f1f[_0x1b8a42];}return _0x3c5f55;}function _0x1552d3(){const _0x1ddc0a=_0x2dae61[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e]));if(0x3!=_0x1ddc0a[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41a005(_0x1ddc0a[0x1]);function _0x41a005(_0x1bc835){const _0x2393f6=_0x44abf6(_0x1bc835);return _0x2393f6&&_0x18f150()?_0x2393f6:null;function _0x18f150(){const _0x37e013=_0x2393f6[_0x96ab7([0x6a,0x74,0x69])],_0x4e2f0a=window[_0x96ab7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37e013[_0x96ab7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37e013[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ccf3c={..._0x2393f6,[_0x96ab7([0x6a,0x74,0x69])]:_0x37e013[_0x96ab7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37e013[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ccf3c[_0x96ab7([0x76,0x63])],_0x21f94e(_0x1ccf3c)==_0x4e2f0a;}}}async function _0x199b20(){let _0x578469=!0x0;try{const _0x5e1a0f=_0x2dae61[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])](_0x96ab7([0x2e])),[_0xe5d5d5,_0x54494a,_0x59e63b]=_0x5e1a0f;return _0x2dc3f7(_0xe5d5d5),await _0x5877eb(_0xe5d5d5,_0x54494a,_0x59e63b),_0x578469;}catch(_0x232165){return!0x1;}function _0x2dc3f7(_0xcaa564){const _0x1201c1=_0x44abf6(_0xcaa564);_0x1201c1&&_0x1201c1[_0x96ab7([0x61,0x6c,0x67])]==_0x96ab7([0x45,0x53,0x32,0x35,0x36])||(_0x578469=!0x1);}async function _0x5877eb(_0x624592,_0x5aaf27,_0x34a30f){const _0x27c06c=window[_0x96ab7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x96ab7([0x66,0x72,0x6f,0x6d])](_0x382b02(_0x34a30f),_0x35f502=>_0x35f502[_0x96ab7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1daf62=new window[(_0x96ab7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x96ab7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x624592+_0x96ab7([0x2e])+_0x5aaf27),_0x483393=window[_0x96ab7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x96ab7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x483393)return;const _0xe79865=await _0x483393[_0x96ab7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x96ab7([0x6a,0x77,0x6b]),_0x327341,{[_0x96ab7([0x6e,0x61,0x6d,0x65])]:_0x96ab7([0x45,0x43,0x44,0x53,0x41]),[_0x96ab7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x96ab7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x96ab7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x483393[_0x96ab7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x96ab7([0x6e,0x61,0x6d,0x65])]:_0x96ab7([0x45,0x43,0x44,0x53,0x41]),[_0x96ab7([0x68,0x61,0x73,0x68])]:{[_0x96ab7([0x6e,0x61,0x6d,0x65])]:_0x96ab7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe79865,_0x27c06c,_0x1daf62)||(_0x578469=!0x1);}}function _0x44abf6(_0x3bfa60){return _0x3bfa60[_0x96ab7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x96ab7([0x65,0x79]))?JSON[_0x96ab7([0x70,0x61,0x72,0x73,0x65])](_0x382b02(_0x3bfa60)):null;}function _0x382b02(_0x1fb3c5){return window[_0x96ab7([0x61,0x74,0x6f,0x62])](_0x1fb3c5[_0x96ab7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x96ab7([0x2b]))[_0x96ab7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x96ab7([0x2f])));}function _0x21f94e(_0x40ada9){let _0x143c5d=0x1505;function _0x20ceb1(_0x55ee01){for(let _0x4cde13=0x0;_0x4cde13<_0x55ee01[_0x96ab7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cde13++){const _0x278a98=_0x55ee01[_0x96ab7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cde13);_0x143c5d=(_0x143c5d<<0x5)+_0x143c5d+_0x278a98,_0x143c5d&=_0x143c5d;}}function _0x379b46(_0x167c14){Array[_0x96ab7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x167c14)?_0x167c14[_0x96ab7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x379b46):_0x167c14&&typeof _0x167c14==_0x96ab7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x96ab7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x167c14)[_0x96ab7([0x73,0x6f,0x72,0x74])]()[_0x96ab7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5451b9,_0x1ee490])=>{_0x20ceb1(_0x5451b9),_0x379b46(_0x1ee490);}):_0x20ceb1(window[_0x96ab7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x167c14));}return _0x379b46(_0x40ada9),_0x143c5d>>>0x0;}function _0x360fc6(_0x587821){return _0x587821[_0x96ab7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x96ab7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x96ab7([0x30]));}function _0x2a5c1b(_0xdddbd4){return _0xdddbd4[_0x96ab7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x96ab7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x96ab7([0x6a,0x6f,0x69,0x6e])]('');}function _0x125886(){}function _0x96ab7(_0x4fa218){const _0xd668ef=_0x5d3e;return _0x4fa218[_0xd668ef(0xdd)](_0x2c7cc2=>String[_0xd668ef(0xbc)](_0x2c7cc2))[_0xd668ef(0xeb)]('');}_0x5c014c(await _0x549e34());}(this);}[_0x3b7e13(0xf0)](){const _0xf76300=_0x3b7e13,_0x2e813e=this[_0xf76300(0xb2)][_0xf76300(0xcd)][_0xf76300(0xf2)];_0x2e813e[_0xf76300(0xab)](_0xf76300(0xe0))&&_0x2e813e[_0xf76300(0xd9)](_0xf76300(0xe0),{'allowAttributes':[_0xf76300(0xf5)]}),_0x2e813e[_0xf76300(0xab)](_0xf76300(0xc4))&&_0x2e813e[_0xf76300(0xd9)](_0xf76300(0xc4),{'allowAttributes':[_0xf76300(0xf5)]});}[_0x3b7e13(0xef)](){const _0x98501b=_0x3b7e13,_0x2cb0fe=this[_0x98501b(0xb2)];_0x2cb0fe[_0x98501b(0xcc)][_0x98501b(0xc6)](_0x98501b(0xb5))[_0x98501b(0xea)]({'model':_0x98501b(0xf5),'view':_0x98501b(0xaf)}),_0x2cb0fe[_0x98501b(0xcc)][_0x98501b(0xc6)](_0x98501b(0xd4))[_0x98501b(0xda)]({'model':{'key':_0x98501b(0xf5),'value':_0x17697d=>_0x17697d[_0x98501b(0xd0)](_0x98501b(0xaf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x17ccd1=_0x2cb0fe[_0x98501b(0xbe)][_0x98501b(0xd5)](_0x98501b(0xc7));_0x17ccd1&&this[_0x98501b(0xd2)](_0x17ccd1,_0x98501b(0xa6),(_0x2154f3,[_0x3ce53a,_0x2251a4])=>{const _0x3359e2=_0x98501b;_0x3ce53a[_0x3359e2(0xf3)](_0x3359e2(0xf5),_0x2251a4);});}[_0x3b7e13(0xb8)](){const _0x5c41e2=_0x3b7e13,_0x400adc=this[_0x5c41e2(0xb2)][_0x5c41e2(0xba)][_0x5c41e2(0xd5)](_0x5c41e2(0xce))||{},_0x14804d=this[_0x5c41e2(0xb2)][_0x5c41e2(0xba)][_0x5c41e2(0xd5)](_0x5c41e2(0xed))||'';this[_0x5c41e2(0xb1)]=_0x2ef530(_0x2aa1a7[_0x5c41e2(0xc9)],_0x5c41e2(0xe5),{..._0x400adc,'pubkey':_0x14804d,'ctx-name':_0x5c41e2(0xbf),'sourceList':'','imgOnly':_0x5c41e2(0xe3),'removeCopyright':_0x5c41e2(0xe3),'localeName':this[_0x5c41e2(0xb2)][_0x5c41e2(0xe4)][_0x5c41e2(0xb3)],'externalSourcesEmbedCss':_0x5c41e2(0xd6)}),this[_0x5c41e2(0xb1)][_0x5c41e2(0xd8)]=_0xa61bf4=>{const _0x13845a=_0x5c41e2;if(_0x13845a(0xe8)==_0xa61bf4)return _0x13845a(0xb9);},_0x2aa1a7[_0x5c41e2(0xc9)][_0x5c41e2(0xdb)][_0x5c41e2(0xad)](this[_0x5c41e2(0xb1)]);}[_0x3b7e13(0xd7)](){const _0x30ef14=_0x3b7e13;this[_0x30ef14(0xc1)]=_0x2ef530(_0x2aa1a7[_0x30ef14(0xc9)],_0x30ef14(0xb0),{'ctx-name':_0x30ef14(0xbf)}),_0x2aa1a7[_0x30ef14(0xc9)][_0x30ef14(0xdb)][_0x30ef14(0xad)](this[_0x30ef14(0xc1)]);}[_0x3b7e13(0xac)](){const _0x4bafdd=_0x3b7e13,_0x13b8fc=this[_0x4bafdd(0xb2)][_0x4bafdd(0xbe)][_0x4bafdd(0xd5)](_0x4bafdd(0xa7));_0x13b8fc&&this[_0x4bafdd(0xd2)](_0x13b8fc,_0x4bafdd(0xe6),()=>{const _0x1f20a2=_0x4bafdd,_0x4fbe67=this[_0x1f20a2(0xb2)][_0x1f20a2(0xcd)][_0x1f20a2(0xc9)][_0x1f20a2(0xa8)][_0x1f20a2(0xcb)]();_0x4fbe67&&_0x4fbe67[_0x1f20a2(0xd0)](_0x1f20a2(0xf5))&&this[_0x1f20a2(0xb2)][_0x1f20a2(0xc8)][_0x1f20a2(0xd1)][_0x1f20a2(0xde)](_0x1f20a2(0xb4),()=>{const _0x1cb1d4=_0x1f20a2;_0x3cb9e4(this[_0x1cb1d4(0xb2)],_0x4fbe67);});});const _0x88d381=this[_0x4bafdd(0xb2)][_0x4bafdd(0xbe)][_0x4bafdd(0xd5)](_0x4bafdd(0xb6));_0x88d381&&this[_0x4bafdd(0xd2)](_0x88d381,_0x4bafdd(0xe6),()=>{const _0x377d7b=_0x4bafdd,_0x2ab313=this[_0x377d7b(0xb2)][_0x377d7b(0xcd)][_0x377d7b(0xc9)][_0x377d7b(0xa8)][_0x377d7b(0xcb)]();_0x2ab313&&_0x2ab313[_0x377d7b(0xd0)](_0x377d7b(0xf5))&&this[_0x377d7b(0xb2)][_0x377d7b(0xc8)][_0x377d7b(0xd1)][_0x377d7b(0xde)](_0x377d7b(0xb4),()=>{const _0x3e864f=_0x377d7b;_0x3cb9e4(this[_0x3e864f(0xb2)],_0x2ab313);});});}}function _0x4448(){const _0x3b90fd=['config','650MJmEGH','fromCharCode','remove','commands','uploader','input[uploadcare-file-input]','_ctxElement','isPremiumPlugin','11931190XWCcOh','imageInline','2IUujBN','for','replaceImageSource','editing','document','10147816flNYCr','getSelectedElement','conversion','model','uploadcare.uploader','init','getAttribute','view','listenTo','href','upcast','get','\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','_initCtx','iconHrefResolver','extend','elementToAttribute','body','541285FjmQWu','map','once','18420138ODziaB','imageBlock','8WeoDFp','configElement','true','locale','uc-config','execute','13166649hdJXLk','closeMax','ctxElement','attributeToAttribute','join','afterInit','uploadcare.pubkey','add','_initConversion','_initSchema','3AvPxsf','schema','removeAttribute','querySelector','uploadcareImageId','3483812LeUDQa','destroy','uploadcare','requires','isOfficialPlugin','cleanupImage','insertImage','selection','UploadcareEditing','pluginName','isRegistered','_initImageProcessingIndicator','appendChild','PictureEditing','data-uc-image-id','uc-upload-ctx-provider','_configElement','editor','contentLanguage','render','downcast','uploadcareImageReplace','786vnAtDH','_initConfig','#uc-icon-arrow-down'];_0x4448=function(){return _0x3b90fd;};return _0x4448();}
|