@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250329.0 → 0.0.0-nightly-20250331.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 _0x1a05d5,Command as _0x596e43}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x55c448,IconGooglePhotos as _0x4e8d2c,IconGoogleDrive as _0x5d7af3,IconFacebook as _0x3fe10b,IconDropbox as _0x21bf0f,IconUploadcareLink as _0x246e00,IconUploadcareImageUpload as _0x895ebc,IconError as et,IconUploadcareImageEdit as _0x2b374f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xd42893,MenuBarMenuListItemButtonView as _0x5b73c0,View as _0xcab268,FocusCycler as _0xf7db89,Dialog as _0x4b6953,DialogViewPosition as _0x5d271d,SpinnerView as _0x2defba,IconView as at,Notification as _0x5bd683}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x343c82,DomEmitterMixin as _0x4886d9,global as _0x3118f5,getAncestors as _0x24c676,ObservableMixin as _0x230d99,createElement as _0x2091cc,uid as _0x224029}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5071ea}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x58b4ed,info as _0x518e70}from'@uploadcare/upload-client';import*as _0x3774a5 from'@uploadcare/file-uploader';var o=function(_0x27605a){return _0x27605a['Local']='local',_0x27605a['URL']='url',_0x27605a['Dropbox']='dropbox',_0x27605a['GDrive']='gdrive',_0x27605a['Facebook']='facebook',_0x27605a['GPhotos']='gphotos',_0x27605a['OneDrive']='onedrive',_0x27605a;}({});function _(_0x12fdde,_0x4f01ea,_0x58f3f6){const t=_0x12fdde['t'],_0x33e6ba=_0x12fdde['t'];switch(_0x4f01ea){case o['Local']:return{'text':_0x33e6ba('Insert'===_0x58f3f6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x33e6ba('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x58f3f6?_0x33e6ba('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x33e6ba('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x58f3f6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x58f3f6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x58f3f6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x58f3f6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x58f3f6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f01ea;}}class e extends _0x1a05d5{['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 _0x2c2323=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x538d71;for(const _0x2ce212 in _0x2c2323){const _0x33e62e=_0x2ce212,_0x46635e=_0x2c2323[_0x33e62e];if('uploadcareLicenseKeyValid'==_0x46635e||'uploadcareLicenseKeyInvalid'==_0x46635e||'uploadcareLicenseKeyExpired'==_0x46635e||'uploadcareLicenseKeyDomainLimit'==_0x46635e||'uploadcareLicenseKeyNotAllowed'==_0x46635e||'uploadcareLicenseKeyEvaluationLimit'==_0x46635e||'uploadcareLicenseKeyTrialLimit'==_0x46635e||'uploadcareLicenseKeyUsageLimit'==_0x46635e){delete _0x2c2323[_0x33e62e],_0x538d71=_0x46635e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x538d71&&_0x2c2323['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x538d71&&_0x2c2323['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x538d71&&_0x2c2323['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x538d71&&_0x2c2323['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x538d71&&_0x2c2323['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x538d71&&_0x2c2323['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x538d71&&_0x2c2323['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2bec99}=this,_0x9001bb=_0x2bec99['commands']['get']('uploadcare');if(!_0x9001bb)return;const _0x523501=this['_normalizeConfigSourceList'](_0x2bec99['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2f2499,_0x4a75d8)=>{const _0xbba1a3=this['_getIntegrationKey'](_0x4a75d8['type']);return _0x2f2499[_0xbba1a3]||(_0x2f2499[_0xbba1a3]=[]),_0x2f2499[_0xbba1a3]['push'](_0x4a75d8),_0x2f2499;},{});_0x2bec99['plugins']['has']('ImageInsertUI')&&_0x2bec99['commands']['get']('uploadcare')&&Object['entries'](_0x523501)['forEach'](([_0x4cd5ac,_0x3f01b8])=>{_0x2bec99['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4cd5ac,'observable':()=>_0x9001bb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3f01b8),'formViewCreator':()=>this['_createDropdownButtons'](_0x3f01b8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3f01b8),'override':'assetManager'!==_0x4cd5ac});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3e4253){const {locale:_0x419da7}=this['editor'];return _0x3e4253['map'](_0x101698=>{const _0x4b0744=_(_0x419da7,_0x101698,'Insert');switch(_0x101698){case o['Local']:return{'icon':_0x895ebc,'type':o['Local'],..._0x4b0744};case o['URL']:return{'icon':_0x246e00,'type':o['URL'],..._0x4b0744};case o['Dropbox']:return{'icon':_0x21bf0f,'type':o['Dropbox'],..._0x4b0744};case o['Facebook']:return{'icon':_0x3fe10b,'type':o['Facebook'],..._0x4b0744};case o['GDrive']:return{'icon':_0x5d7af3,'type':o['GDrive'],..._0x4b0744};case o['GPhotos']:return{'icon':_0x4e8d2c,'type':o['GPhotos'],..._0x4b0744};case o['OneDrive']:return{'icon':_0x55c448,'type':o['OneDrive'],..._0x4b0744};}});}['_getIntegrationKey'](_0x2b4aa3){switch(_0x2b4aa3){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4926be,_0x46d867){const _0x53bc87=this['editor'],_0x35fa6b=new _0x4926be(_0x53bc87['locale']),_0x177a6d=_0x53bc87['commands']['get']('uploadcare');return _0x35fa6b['bind']('isEnabled')['to'](_0x177a6d),_0x35fa6b['on']('execute',()=>{_0x177a6d['execute'](_0x46d867);}),_0x35fa6b;}['_createToolbarButton'](_0x2945d1){const {locale:_0x12ca08}=this['editor'],_0x1788fa=this['editor']['plugins']['get']('ImageInsertUI'),_0x1dda68=_0x2945d1[0x0],_0x1cb1c2=this['_createButton'](_0xd42893,_0x1dda68['type']);return _0x1cb1c2['icon']=_0x1dda68['icon'],_0x1cb1c2['bind']('label')['to'](_0x1788fa,'isImageSelected',_0x45de8a=>_(_0x12ca08,_0x1dda68['type'],_0x45de8a?'Replace':'Insert')['text']),_0x1cb1c2['tooltip']=!0x0,_0x1cb1c2;}['_createDropdownButtons'](_0x4b5e83){const {locale:_0x57983d}=this['editor'],_0x5d8143=this['editor']['plugins']['get']('ImageInsertUI');return _0x4b5e83['map'](_0x25d89c=>{const _0x398c39=this['_createButton'](_0xd42893,_0x25d89c['type']);return _0x398c39['withText']=!0x0,_0x398c39['icon']=_0x25d89c['icon'],_0x398c39['bind']('label')['to'](_0x5d8143,'isImageSelected',_0x3e118c=>_(_0x57983d,_0x25d89c['type'],_0x3e118c?'Replace':'Insert')['text']),_0x398c39;});}['_createMenuBarButtons'](_0x561dd4){return _0x561dd4['map'](_0x149c3d=>{const _0x1e4198=this['_createButton'](_0x5b73c0,_0x149c3d['type']);return _0x1e4198['icon']=_0x149c3d['icon'],_0x1e4198['label']=_0x149c3d['shortText'],_0x1e4198;});}}class q extends _0xcab268{['focusTracker'];['focusCycler'];constructor(_0x459d42){super(_0x459d42),this['focusTracker']=new _0x343c82(),this['focusCycler']=new _0xf7db89({'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(_0x64186d){super(_0x64186d),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(_0x2a9dee,_0x12df1c){const _0x300a32=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5be002=>_0x5be002<=_0x12df1c)['map'](_0x2d6d62=>_0x2a9dee['replace'](/\/$/,'')+'/-/resize/'+_0x2d6d62+'x/\x20'+_0x2d6d62+'w');return{'imageFallbackUrl':_0x2a9dee,'imageSources':[{'srcset':_0x300a32['join'](',\x20'),'sizes':'(max-width:\x20'+_0x12df1c+'px)\x20100vw,\x20'+_0x12df1c+'px','type':'image/webp'}]};}function A(_0x58b1b5,_0x2e981d,_0x57a7e8){const _0x3bbd7e=_0x58b1b5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3bbd7e?parseInt(_0x3bbd7e[0x1],0xa):_0x2e981d,'height':_0x3bbd7e?parseInt(_0x3bbd7e[0x2],0xa):_0x57a7e8};}function m(_0x4d6563,_0x24f2e8){const _0x32aac4=Object['create'](_0x4886d9),_0x11b9c2=_0x4d6563['plugins']['get']('ImageUtils'),_0xc2dca=_0x4d6563['editing']['mapper']['toViewElement'](_0x24f2e8),_0x1b32e9=_0x11b9c2['findViewImgElement'](_0xc2dca),_0x2fd9eb=_0x4d6563['editing']['view']['domConverter']['viewToDom'](_0x1b32e9),_0x14baa9=_0x24f2e8['getAttribute']('width'),_0x1aae25=_0x24f2e8['getAttribute']('height'),_0x4281eb='image-processing';_0x4d6563['editing']['view']['change'](_0x417b8e=>{_0x417b8e['addClass'](_0x4281eb,_0xc2dca),_0x417b8e['setStyle']('aspect-ratio',_0x14baa9+'/'+_0x1aae25,_0x1b32e9);}),_0x32aac4['listenTo'](_0x2fd9eb,'load',()=>{_0x32aac4['stopListening'](_0x2fd9eb,'load'),_0x4d6563['editing']['view']['change'](_0x2b4b4f=>{_0x2b4b4f['removeClass'](_0x4281eb,_0xc2dca),_0x2b4b4f['removeStyle']('aspect-ratio',_0x1b32e9);});});}function V(_0x98c07a){if(Array['isArray'](_0x98c07a)){const _0x1ce0bd=_0x98c07a['map'](V);return _0x29ea42=>_0x1ce0bd['some'](_0xcb053a=>_0xcb053a(_0x29ea42));}if('origin'==_0x98c07a){const _0x282a12=_0x3118f5['window']['location']['origin'];return _0xf9acd5=>new URL(_0xf9acd5,_0x3118f5['document']['baseURI'])['origin']==_0x282a12;}return'function'==typeof _0x98c07a?_0x98c07a:_0x98c07a instanceof RegExp?_0x320b0a=>!(!_0x320b0a['match'](_0x98c07a)&&!_0x320b0a['replace'](/^https?:\/\//,'')['match'](_0x98c07a)):()=>!0x1;}function F(_0x7c7a2f,_0x2df25d){return _0x24c676(_0x7c7a2f['target'])['includes'](_0x2df25d);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x230d99(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x359e56,_0xbd06c2,_0x270dd0){super(),this['_editor']=_0x359e56,this['_editing']=_0xbd06c2,this['_dialog']=_0x359e56['plugins']['get'](_0x4b6953),this['_api']=_0xbd06c2['ctxElement']['getAPI'](),this['_type']=_0x270dd0,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:_0x405ba7,model:_0x2c9b1f}=this['_editor'],_0x18344d=_0x2c9b1f['document']['selection']['getSelectedElement'](),_0x5332bb=_0x18344d&&(_0x18344d['is']('element','imageBlock')||_0x18344d['is']('element','imageInline'));this['_formView']=new S(_0x405ba7),this['_dialog']['show']({'id':'uploadCare','icon':_0x895ebc,'title':_(_0x405ba7,this['_type'],_0x5332bb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5d271d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b8f11=>!F(_0x1b8f11,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5a7260}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2909b9=>{const _0x525c08=_0x5a7260['length'];for(const _0x3bd122 of _0x5a7260){const _0x47792b=_0x3bd122===_0x5a7260[_0x525c08-0x1],{cdnUrl:_0x5bb055,fileInfo:_0x360731}=_0x3bd122;if(!_0x5bb055||!_0x360731)continue;const {width:_0x4fa312,height:_0x3b2a41}=_0x360731['imageInfo'],_0x1a50ed=A(_0x5bb055,_0x4fa312,_0x3b2a41),_0x3f1347=E(_0x5bb055,_0x1a50ed['width']),_0x4d2673={'id':_0x360731['uuid'],'type':'image','attributes':{'imageDimension':_0x1a50ed,..._0x3f1347}};this['_insertAsset'](_0x4d2673,_0x47792b,_0x2909b9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x37b1ab=>{'idle'===_0x37b1ab['detail']['status']&&!_0x37b1ab['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x47896e,_0x351c39,_0x1dbf98){const _0x3dd35d=this['_editor']['model']['document']['selection'],_0x5bb553=_0x3dd35d['getSelectedElement'](),_0x434bf2=!(!_0x5bb553||!_0x5bb553['is']('element','imageInline'));_0x1dbf98['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x47896e,_0x434bf2),_0x351c39||_0x1dbf98['setSelection'](_0x3dd35d['getLastPosition']());}['_insertImage'](_0x172eb6,_0x4ba962){const _0x5c28f0=this['_editor'],{imageDimension:_0x4259e7,imageFallbackUrl:_0x5215bd,imageSources:_0x231954}=_0x172eb6['attributes'];_0x5c28f0['execute']('insertImage',{'imageType':_0x4ba962?'imageInline':null,'source':{'uploadcareImageId':_0x172eb6['id'],'src':_0x5215bd,'sources':_0x231954,..._0x4259e7}});}}class n extends _0x596e43{['_editing'];['_controller']=null;static get['requires'](){return[_0x4b6953,i];}constructor(_0x4ddfac){super(_0x4ddfac),this['_editing']=_0x4ddfac['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4c3972){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4c3972);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3b65b6,publicKey:_0x426559,signal:_0x3eaf7d,onProgress:_0x5046d2}){return _0x58b4ed(_0x3b65b6,{'publicKey':_0x426559,'store':'auto','signal':_0x3eaf7d,'onProgress':_0x5046d2});}static['getInfo'](_0x5adc43,_0x161c74){return _0x518e70(_0x5adc43,_0x161c74);}}class p extends _0x1a05d5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5071ea,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1fb7f3=this['editor'];if(!!!_0x1fb7f3['config']['get']('uploadcare'))return;_0x1fb7f3['plugins']['get'](_0x5071ea)['createUploadAdapter']=_0x31a73f=>new x(_0x31a73f,_0x1fb7f3),_0x1fb7f3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2f6d5c,{imageElement:_0x316ca2,data:_0x5c4d22})=>{_0x1fb7f3['model']['change'](_0x590293=>{_0x590293['setAttribute']('uploadcareImageId',_0x5c4d22['uploadcareImageId'],_0x316ca2);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x365134,_0x55df90){this['loader']=_0x365134,this['editor']=_0x55df90,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1469f2=this['editor']['config']['get']('uploadcare.pubkey'),_0x298817=await this['loader']['file'];return C['upload']({'file':_0x298817,'publicKey':_0x1469f2,'signal':this['controller']['signal'],'onProgress':_0x8a6ebd=>{_0x8a6ebd&&_0x8a6ebd['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x8a6ebd['value']);}})['then'](async _0x54b096=>{const {imageFallbackUrl:_0x3774c1,imageSources:_0x13eba9}=E(_0x54b096['cdnUrl'],_0x54b096['imageInfo']['width']);return{'uploadcareImageId':_0x54b096['uuid'],'default':_0x3774c1,'sources':_0x13eba9};})['catch'](()=>{const _0x16eba8=t('Cannot\x20upload\x20file:')+('\x20'+_0x298817['name']+'.');return Promise['reject'](_0x16eba8);});}['abort'](){this['controller']['abort']();}}class i extends _0x1a05d5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4b6953];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x39e57b=this['editor'];_0x39e57b['commands']['add']('uploadcare',new n(_0x39e57b));}['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 _0xa49ad7=_0x3118f5['document']['querySelector']('input[uploadcare-file-input]');_0xa49ad7&&_0xa49ad7['remove']();}),async function(_0x1da38b){const _0x135c96=_0x4ec4d9([0x47,0x6d,0x45,0x68,0x4b,0x72,0x74,0x54,0x46,0x34,0x30,0x59,0x78,0x66,0x51,0x61,0x7a,0x52,0x69,0x4c,0x6a,0x5a,0x37,0x76,0x79,0x33,0x62,0x75,0x49,0x39,0x4e,0x6c,0x48,0x77,0x6e,0x65,0x71,0x44,0x50,0x4d,0x35,0x56,0x42,0x41,0x36,0x6f,0x63,0x67,0x53,0x4f,0x38,0x64,0x32,0x55,0x31,0x6b,0x70,0x58,0x4a,0x73,0x43,0x57]),_0x25dd8a=0x22527a8e,_0x1ecb41=0x2255190e^_0x25dd8a,_0x373c97=window[_0x4ec4d9([0x44,0x61,0x74,0x65])][_0x4ec4d9([0x6e,0x6f,0x77])](),_0x43b563=_0x1da38b[_0x4ec4d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13c8c0=new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x483410=>{_0x43b563[_0x4ec4d9([0x6f,0x6e,0x63,0x65])](_0x4ec4d9([0x72,0x65,0x61,0x64,0x79]),_0x483410);}),_0xb2125f={[_0x4ec4d9([0x6b,0x74,0x79])]:_0x4ec4d9([0x45,0x43]),[_0x4ec4d9([0x75,0x73,0x65])]:_0x4ec4d9([0x73,0x69,0x67]),[_0x4ec4d9([0x63,0x72,0x76])]:_0x4ec4d9([0x50,0x2d,0x32,0x35,0x36]),[_0x4ec4d9([0x78])]:_0x4ec4d9([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]),[_0x4ec4d9([0x79])]:_0x4ec4d9([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]),[_0x4ec4d9([0x61,0x6c,0x67])]:_0x4ec4d9([0x45,0x53,0x32,0x35,0x36])},_0xca32a3=_0x43b563[_0x4ec4d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ec4d9([0x67,0x65,0x74])](_0x4ec4d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bdaae(){let _0x376fd9,_0x3cc194=null,_0x24dc51=null;try{if(_0xca32a3==_0x4ec4d9([0x47,0x50,0x4c]))return _0x4ec4d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x376fd9=_0x461b79(),!_0x376fd9)return _0x4ec4d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x376fd9[_0x4ec4d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24dc51=_0x172215(_0x376fd9[_0x4ec4d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x376fd9[_0x4ec4d9([0x6a,0x74,0x69])])),await _0x573962()?_0x1b4641()?_0x5ee1be()?_0x4ec4d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36755d()?(_0x376fd9[_0x4ec4d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ec4d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3cc194=_0x823c2d(_0x4ec4d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x376fd9[_0x4ec4d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ec4d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x3cc194=_0x823c2d(_0x4ec4d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14d3e5()):_0x4ec4d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ec4d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ec4d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5cf6a1){return _0x4ec4d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ee1be(){const _0x5d51c7=[_0x4ec4d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ec4d9([0x74,0x72,0x69,0x61,0x6c])][_0x4ec4d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x376fd9[_0x4ec4d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x373c97/0x3e8:0xe10*_0x1ecb41;return _0x376fd9[_0x4ec4d9([0x65,0x78,0x70])]<_0x5d51c7;}function _0x1b4641(){const _0x86a946=_0x376fd9[_0x4ec4d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x86a946&&(!!_0x86a946[_0x4ec4d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ec4d9([0x2a]))||!!_0x86a946[_0x4ec4d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ec4d9([0x55,0x50,0x4c,0x43])));}function _0x36755d(){const _0x227335=_0x376fd9[_0x4ec4d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x227335||0x0==_0x227335[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19f52a}=new URL(window[_0x4ec4d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x227335[_0x4ec4d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19f52a))return!0x0;const _0x23aeb9=_0x19f52a[_0x4ec4d9([0x73,0x70,0x6c,0x69,0x74])](_0x4ec4d9([0x2e]));return _0x227335[_0x4ec4d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32a9c9=>_0x32a9c9[_0x4ec4d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ec4d9([0x2a])))[_0x4ec4d9([0x6d,0x61,0x70])](_0x25526e=>_0x25526e[_0x4ec4d9([0x73,0x70,0x6c,0x69,0x74])](_0x4ec4d9([0x2e])))[_0x4ec4d9([0x73,0x6f,0x6d,0x65])](_0x4000b3=>_0x23aeb9[_0x4ec4d9([0x65,0x76,0x65,0x72,0x79])]((_0x16163a,_0x2d3304)=>_0x4000b3[_0x2d3304]===_0x16163a||_0x4000b3[_0x2d3304]===_0x4ec4d9([0x2a])));}function _0x14d3e5(){return _0x3cc194&&_0x24dc51?new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x514065,_0x4c40a0)=>{_0x3cc194[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0x514065,_0x4c40a0),_0x24dc51[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0x3045cc=>{_0x3045cc!=_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64])&&_0x514065(_0x3045cc);},_0x4c40a0);}):_0x3cc194||_0x24dc51||_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x172215(_0x437823,_0x18f08d){return new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x101897=>{if(_0x7afbe3())return _0x101897(_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64]));_0x53403e(),_0x43b563[_0x4ec4d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ec4d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x62adcf=!0x1;const _0x134c3d=_0x224029();function _0x44f8b2(_0x148315){return!!_0x148315&&(typeof _0x148315===_0x4ec4d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x148315===_0x4ec4d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x148315[_0x4ec4d9([0x74,0x68,0x65,0x6e])]===_0x4ec4d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x148315[_0x4ec4d9([0x63,0x61,0x74,0x63,0x68])]===_0x4ec4d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf96242(_0x3c3a1a){_0x47b748(_0x3c3a1a)[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0x33709f=>{if(!_0x33709f||_0x33709f[_0x4ec4d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ec4d9([0x6f,0x6b]))return _0x4ec4d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e441f(_0x27ede9(_0x134c3d+_0x18f08d))!=_0x33709f[_0x4ec4d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ec4d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0xe538c8=>(_0x3a4f9c(),_0xe538c8),()=>{const _0x42b3fc=_0x5e4851();return null==_0x42b3fc?(_0x3a4f9c(),_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64])):_0x4ec4d9(_0x373c97-_0x42b3fc>(0x65efe8e^_0x25dd8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0x101897)[_0x4ec4d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x101897(_0x4ec4d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x56713e=0x2264940e^_0x25dd8a;function _0x3a4f9c(){const _0x5314af=_0x4ec4d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e441f(_0x27ede9(_0x437823)),_0x2013c7=_0x2bc51e(_0x4e441f(window[_0x4ec4d9([0x4d,0x61,0x74,0x68])][_0x4ec4d9([0x63,0x65,0x69,0x6c])](_0x373c97/_0x56713e)));window[_0x4ec4d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ec4d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5314af,_0x2013c7);}function _0x5e4851(){const _0x452ef8=_0x4ec4d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e441f(_0x27ede9(_0x437823)),_0xa99e3b=window[_0x4ec4d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ec4d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x452ef8);return _0xa99e3b?window[_0x4ec4d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bc51e(_0xa99e3b),0x10)*_0x56713e:null;}function _0x47b748(_0x1af949){return new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ac077,_0x5a8fb2)=>{_0x1af949[_0x4ec4d9([0x74,0x68,0x65,0x6e])](_0x3ac077,_0x5a8fb2),window[_0x4ec4d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a8fb2,0x2253ae4e^_0x25dd8a);});}}_0x43b563[_0x4ec4d9([0x6f,0x6e])](_0x4ec4d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bc614,_0x5bdf56)=>{if(_0x5bdf56[0x0]!=_0x437823)return _0x101897(_0x4ec4d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5bdf56[0x1]={..._0x5bdf56[0x1],[_0x4ec4d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x134c3d};},{[_0x4ec4d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ec4d9([0x68,0x69,0x67,0x68])}),_0x43b563[_0x4ec4d9([0x6f,0x6e])](_0x4ec4d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ca80e=>{_0x44f8b2(_0x5ca80e[_0x4ec4d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x62adcf=!0x0,_0xf96242(_0x5ca80e[_0x4ec4d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ec4d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ec4d9([0x6c,0x6f,0x77])}),_0x13c8c0[_0x4ec4d9([0x74,0x68,0x65,0x6e])](()=>{_0x62adcf||_0x101897(_0x4ec4d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7afbe3(){return _0x43b563[_0x4ec4d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ec4d9([0x76,0x69,0x65,0x77])][_0x4ec4d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ec4d9([0x61,0x75,0x74,0x6f]);}function _0x53403e(){_0x43b563[_0x4ec4d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ec4d9([0x76,0x69,0x65,0x77])][_0x4ec4d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ec4d9([0x61,0x75,0x74,0x6f]);}}function _0x823c2d(_0x5e70e1){const _0x5e496f=[new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107478=>setTimeout(_0x107478,0x225b4442^_0x25dd8a)),_0x13c8c0[_0x4ec4d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x267539=>{let _0x490c35=0x0;_0x43b563[_0x4ec4d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ec4d9([0x6f,0x6e])](_0x4ec4d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b133a,_0x3deda8)=>{_0x3deda8[0x0][_0x4ec4d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x490c35++,_0x490c35==(0x22527b76^_0x25dd8a)&&(_0x267539(),_0x2b133a[_0x4ec4d9([0x6f,0x66,0x66])]());});}))];return window[_0x4ec4d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ec4d9([0x72,0x61,0x63,0x65])](_0x5e496f)[_0x4ec4d9([0x74,0x68,0x65,0x6e])](()=>_0x5e70e1);}async function _0x3d9fa5(){await _0x13c8c0,_0x43b563[_0x4ec4d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ec4d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38620c,_0x43b563[_0x4ec4d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ec4d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38620c,_0x43b563[_0x4ec4d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ec4d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x306bc2(_0x3cfc6e){const _0x434897=_0x531701();_0x43b563[_0x434897]=_0x4ec4d9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3cfc6e,_0x3cfc6e!=_0x4ec4d9([0x56,0x61,0x6c,0x69,0x64])&&_0x3d9fa5();}function _0x531701(){const _0x3d7d3c=window[_0x4ec4d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ec4d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ec4d9([0x6e,0x6f,0x77])]())[_0x4ec4d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ec4d9([0x2e]),'');let _0x72232e=_0x4ec4d9([0x47]);for(let _0x55d2fa=0x0;_0x55d2fa<_0x3d7d3c[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55d2fa+=0x2){let _0x27c209=window[_0x4ec4d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d7d3c[_0x4ec4d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55d2fa,_0x55d2fa+0x2));_0x27c209>=_0x135c96[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27c209-=_0x135c96[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x72232e+=_0x135c96[_0x27c209];}return _0x72232e;}function _0x461b79(){const _0x2e20c0=_0xca32a3[_0x4ec4d9([0x73,0x70,0x6c,0x69,0x74])](_0x4ec4d9([0x2e]));if(0x3!=_0x2e20c0[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13c7b1(_0x2e20c0[0x1]);function _0x13c7b1(_0x3901cd){const _0x2abda2=_0x289049(_0x3901cd);return _0x2abda2&&_0x502788()?_0x2abda2:null;function _0x502788(){const _0x573436=_0x2abda2[_0x4ec4d9([0x6a,0x74,0x69])],_0xd4a59f=window[_0x4ec4d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x573436[_0x4ec4d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x573436[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5333f6={..._0x2abda2,[_0x4ec4d9([0x6a,0x74,0x69])]:_0x573436[_0x4ec4d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x573436[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5333f6[_0x4ec4d9([0x76,0x63])],_0x27ede9(_0x5333f6)==_0xd4a59f;}}}async function _0x573962(){let _0x44a9e0=!0x0;try{const _0x2ce1d2=_0xca32a3[_0x4ec4d9([0x73,0x70,0x6c,0x69,0x74])](_0x4ec4d9([0x2e])),[_0x5a420b,_0x1d2f57,_0x786e02]=_0x2ce1d2;return _0x43f543(_0x5a420b),await _0x543b2e(_0x5a420b,_0x1d2f57,_0x786e02),_0x44a9e0;}catch(_0x5575dd){return!0x1;}function _0x43f543(_0xdda71e){const _0x365968=_0x289049(_0xdda71e);_0x365968&&_0x365968[_0x4ec4d9([0x61,0x6c,0x67])]==_0x4ec4d9([0x45,0x53,0x32,0x35,0x36])||(_0x44a9e0=!0x1);}async function _0x543b2e(_0x496fca,_0x47246a,_0x4e6a41){const _0x3b0f96=window[_0x4ec4d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ec4d9([0x66,0x72,0x6f,0x6d])](_0x12ea68(_0x4e6a41),_0x44b4df=>_0x44b4df[_0x4ec4d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25af3b=new window[(_0x4ec4d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ec4d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x496fca+_0x4ec4d9([0x2e])+_0x47246a),_0x41500c=window[_0x4ec4d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ec4d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41500c)return;const _0x4ad50a=await _0x41500c[_0x4ec4d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ec4d9([0x6a,0x77,0x6b]),_0xb2125f,{[_0x4ec4d9([0x6e,0x61,0x6d,0x65])]:_0x4ec4d9([0x45,0x43,0x44,0x53,0x41]),[_0x4ec4d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ec4d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ec4d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41500c[_0x4ec4d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ec4d9([0x6e,0x61,0x6d,0x65])]:_0x4ec4d9([0x45,0x43,0x44,0x53,0x41]),[_0x4ec4d9([0x68,0x61,0x73,0x68])]:{[_0x4ec4d9([0x6e,0x61,0x6d,0x65])]:_0x4ec4d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ad50a,_0x3b0f96,_0x25af3b)||(_0x44a9e0=!0x1);}}function _0x289049(_0x287245){return _0x287245[_0x4ec4d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ec4d9([0x65,0x79]))?JSON[_0x4ec4d9([0x70,0x61,0x72,0x73,0x65])](_0x12ea68(_0x287245)):null;}function _0x12ea68(_0x2e2795){return window[_0x4ec4d9([0x61,0x74,0x6f,0x62])](_0x2e2795[_0x4ec4d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ec4d9([0x2b]))[_0x4ec4d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ec4d9([0x2f])));}function _0x27ede9(_0x1253e7){let _0x3063f1=0x1505;function _0x584552(_0x3d7f67){for(let _0x29810=0x0;_0x29810<_0x3d7f67[_0x4ec4d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29810++){const _0x528fdc=_0x3d7f67[_0x4ec4d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29810);_0x3063f1=(_0x3063f1<<0x5)+_0x3063f1+_0x528fdc,_0x3063f1&=_0x3063f1;}}function _0x35b8e0(_0x13a799){Array[_0x4ec4d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13a799)?_0x13a799[_0x4ec4d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35b8e0):_0x13a799&&typeof _0x13a799==_0x4ec4d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ec4d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13a799)[_0x4ec4d9([0x73,0x6f,0x72,0x74])]()[_0x4ec4d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c766b,_0xade12c])=>{_0x584552(_0x4c766b),_0x35b8e0(_0xade12c);}):_0x584552(window[_0x4ec4d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13a799));}return _0x35b8e0(_0x1253e7),_0x3063f1>>>0x0;}function _0x4e441f(_0x398d9c){return _0x398d9c[_0x4ec4d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ec4d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ec4d9([0x30]));}function _0x2bc51e(_0x3ac6af){return _0x3ac6af[_0x4ec4d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ec4d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ec4d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x38620c(){}function _0x4ec4d9(_0x3f48d7){return _0x3f48d7['map'](_0x38c681=>String['fromCharCode'](_0x38c681))['join']('');}_0x306bc2(await _0x4bdaae());}(this);}['_initSchema'](){const _0x3b2572=this['editor']['model']['schema'];_0x3b2572['isRegistered']('imageBlock')&&_0x3b2572['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3b2572['isRegistered']('imageInline')&&_0x3b2572['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x33bae0=this['editor'];_0x33bae0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x33bae0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x123bb3=>_0x123bb3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xdb24b4=_0x33bae0['commands']['get']('replaceImageSource');_0xdb24b4&&this['listenTo'](_0xdb24b4,'cleanupImage',(_0x3ba77c,[_0x21302d,_0x340505])=>{_0x21302d['removeAttribute']('uploadcareImageId',_0x340505);});}['_initConfig'](){const _0x341735=this['editor']['config']['get']('uploadcare.uploader')||{},_0x499834=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2091cc(_0x3118f5['document'],'uc-config',{..._0x341735,'pubkey':_0x499834,'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']=_0x2dcf65=>{if('closeMax'==_0x2dcf65)return'#uc-icon-arrow-down';},_0x3118f5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2091cc(_0x3118f5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3118f5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x14e4f3=this['editor']['commands']['get']('insertImage');_0x14e4f3&&this['listenTo'](_0x14e4f3,'execute',()=>{const _0x19baab=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19baab&&_0x19baab['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x19baab);});});const _0x433389=this['editor']['commands']['get']('uploadcareImageReplace');_0x433389&&this['listenTo'](_0x433389,'execute',()=>{const _0xddcf58=this['editor']['model']['document']['selection']['getSelectedElement']();_0xddcf58&&_0xddcf58['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xddcf58);});});}}class u extends _0x1a05d5{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c14f9){super(_0x2c14f9),_0x2c14f9['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3774a5['defineComponents'](_0x3774a5);}}class ta extends _0xcab268{constructor(_0x2efa04){super(_0x2efa04);const t=_0x2efa04['t'],_0x1c940d=this['bindTemplate'],_0x17d4f8=new _0x2defba();_0x17d4f8['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':[_0x17d4f8,{'text':_0x1c940d['to']('imageUploadProgress',_0x5e2585=>t('Loading\x20image...')+'\x20('+(_0x5e2585||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 _0xcab268{constructor(_0x194b1a){super(_0x194b1a);const t=_0x194b1a['t'];this['set']('errorType',null);const _0x9b49c8=new _0xd42893(_0x194b1a);_0x9b49c8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x9b49c8['withText']=!0x0,_0x9b49c8['class']='ck-button-action',_0x9b49c8['on']('execute',()=>{this['fire']('retry');}),_0x9b49c8['bind']('isVisible')['to'](this,'errorType',_0xca8422=>'NotFound'!==_0xca8422);const _0x47f656=new at();_0x47f656['content']=et,_0x47f656['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x31ca9b=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':[_0x47f656,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x31ca9b['to']('errorType',_0xb973e8=>t('NotFound'!==_0xb973e8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x9b49c8]},{'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 _0xcab268{constructor(_0x2a553b,_0x4611dd){super(_0x2a553b);const _0x772ffa=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4611dd,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x772ffa['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4f1403,_0xcae9d4,_0x1836ba){super(_0x4f1403),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4f1403),this['_errorView']=new rt(_0x4f1403),this['_editingView']=new tt(_0x4f1403,_0x1836ba),this['_focusableView']=new _0xcab268(_0x4f1403),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xcae9d4),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'],_0x81d149=>{this['_addUploadcareImageEditorListeners'](_0x81d149);});}),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'](_0x589c3d,_0x30f36e){const _0x47f76b='uc-cloud-image-editor',_0x4938c3=_0x589c3d['querySelector'](_0x47f76b);if(_0x4938c3)return _0x30f36e(_0x4938c3);const _0x2eb0a4=new MutationObserver(_0x54beed=>{const _0x447bb9=_0x54beed['filter'](_0x3fb103=>_0x3fb103['target']===_0x589c3d&&_0x3fb103['addedNodes']['length']>0x0&&_0x3fb103['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x47f76b);_0x447bb9['length']&&(_0x2eb0a4['disconnect'](),_0x30f36e(_0x447bb9[0x0]['addedNodes'][0x0]));});_0x2eb0a4['observe'](_0x589c3d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5aab35){_0x5aab35['addEventListener']('apply',_0x83eb85=>{this['fire']('apply',{'imageSrc':_0x83eb85['detail']['cdnUrl']});}),_0x5aab35['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x230d99(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1b5b0d,_0x52d598,_0x4316a9){super(),this['_editor']=_0x1b5b0d,this['_dialog']=_0x52d598,this['_imageElement']=_0x4316a9,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 _0xbfed4d=this['_imageElement'],_0x1e0cdf=_0xbfed4d['getAttribute']('uploadcareImageId'),_0x1b1d0a=_0xbfed4d['getAttribute']('src');if(_0x1e0cdf)await this['_loadImageInfo'](_0x1e0cdf,_0x1b1d0a);else{if(this['_imageCache']['has'](_0x1b1d0a)){const _0x1b708b=this['_imageCache']['get'](_0x1b1d0a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b708b['url'],this['imageDimension']=_0x1b708b['dimension'],this['imageId']=_0x1b708b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x144b29}=this['_editor'],t=_0x144b29['t'],_0x1c6b1b=new Z(_0x144b29,this['imageStatus'],this['_attributes']);_0x1c6b1b['bind']('status')['to'](this,'imageStatus'),_0x1c6b1b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1c6b1b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1c6b1b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1c6b1b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2b374f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1c6b1b,'position':_0x5d271d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1c6b1b['focus']();},'onHide':()=>{_0x1c6b1b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37f5ba=>!F(_0x37f5ba,_0x1c6b1b['element'])}});}['_loadImageInfo'](_0x358722,_0x4c38b1){return C['getInfo'](_0x358722,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1ac489=>{const {width:_0x2ed0df,height:_0x393944}=_0x1ac489['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c38b1,this['imageDimension']={'width':_0x2ed0df,'height':_0x393944},this['imageId']=_0x358722;})['catch'](_0x13e6a2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13e6a2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x41fa48,_0x530261){return this['_getImageAsFile'](_0x41fa48)['then'](_0x4ca997=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x530261['signal'],'file':_0x4ca997,'onProgress':_0x44ea4d=>{_0x44ea4d&&_0x44ea4d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x44ea4d['value']));}}))['then'](_0x5410b3=>{const {width:_0x1e5c95,height:_0x4f0f34}=_0x5410b3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5410b3['cdnUrl'],this['imageDimension']={'width':_0x1e5c95,'height':_0x4f0f34},this['imageId']=_0x5410b3['uuid'],this['imageUploadProgress']=null;const _0x10121d=_0x41fa48['getAttribute']('src');this['_imageCache']['set'](_0x10121d,{'id':_0x5410b3['uuid'],'url':_0x5410b3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x570782=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x570782['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x216d84,_0x40e338){_0x216d84['on']('apply',(_0x1bb191,_0x3d386a)=>{this['_replaceImage'](_0x40e338,_0x3d386a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x216d84['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x216d84['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2b9a7f,_0x521d3,_0x1680a9){const _0xae7112=this['_editor'],{width:_0x3cf139,height:_0xb20df}=A(_0x521d3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x43dc50,imageSources:_0x4233ec}=E(_0x521d3,_0x3cf139);_0xae7112['model']['change'](_0x2d3be9=>{if('$graveyard'===_0x2b9a7f['root']['rootName']){_0xae7112['execute']('insertImage',{'imageType':_0x2b9a7f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2b9a7f['getAttributes']()),'uploadcareImageId':_0x1680a9,'src':_0x43dc50,'sources':_0x4233ec,'width':_0x3cf139,'height':_0xb20df}});const _0x1d73f6=_0x2b9a7f['getChildren']();_0x2b9a7f=_0xae7112['model']['document']['selection']['getSelectedElement']();for(const _0x3cf97b of _0x1d73f6)_0x2d3be9['append'](_0x2d3be9['cloneElement'](_0x3cf97b),_0x2b9a7f);}else _0x2d3be9['setSelection'](_0x2b9a7f,'on'),_0xae7112['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2b9a7f['getAttributes']()),'uploadcareImageId':_0x1680a9,'src':_0x43dc50,'sources':_0x4233ec,'width':_0x3cf139,'height':_0xb20df},_0x2b9a7f);_0x2d3be9['setSelection'](_0x2b9a7f,'on');});}async['_getImageAsFile'](_0x2e1f49){const _0x303cd1=_0x3118f5['window'],_0x316acd=_0x3118f5['document']['location']['href'],_0x65073b=new _0x303cd1['URL'](_0x2e1f49['getAttribute']('src'),_0x316acd);if('data:'===_0x65073b['protocol']){const _0x160e43=_0x65073b['href']['split'](','),_0x1bbba0=_0x160e43[0x0]['match'](/:(.*?);/)[0x1],_0x4d18d2=_0x1bbba0['split']('/')[0x1],_0x33cf12=_0x303cd1['atob'](_0x160e43[_0x160e43['length']-0x1]);let _0x589b05=_0x33cf12['length'];const _0x50c3d4=new _0x303cd1['Uint8Array'](_0x589b05);for(;_0x589b05--;)_0x50c3d4[_0x589b05]=_0x33cf12['charCodeAt'](_0x589b05);return new _0x303cd1['File']([_0x50c3d4],'image.'+_0x4d18d2,{'type':_0x1bbba0});}const _0x7142d4=_0x65073b['href']['split']('/'),_0xafbb1f=_0x7142d4[_0x7142d4['length']-0x1],_0x176674=_0xafbb1f['split']('.')[0x1];return _0x303cd1['fetch'](_0x65073b['href'])['then'](_0x409fdb=>_0x409fdb['clone']()['blob']())['then'](_0x229afb=>new _0x303cd1['File']([_0x229afb],_0xafbb1f,{'type':'image/'+_0x176674}));}}class J extends _0x596e43{['imageEditController'];static get['requires'](){return[_0x4b6953];}['_isEditable'];constructor(_0xbf71b2){super(_0xbf71b2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x50b963){const _0xbdb4e0=V(_0x50b963);return _0x55cb2b=>!(!_0x55cb2b||!_0x55cb2b['is']('element','imageBlock')&&!_0x55cb2b['is']('element','imageInline'))&&(!!_0x55cb2b['hasAttribute']('uploadcareImageId')||!!_0x55cb2b['hasAttribute']('src')&&_0xbdb4e0(_0x55cb2b['getAttribute']('src')));}(_0xbf71b2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x58e55b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x58e55b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4e56f5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e56f5&&(_0x4e56f5['is']('element','imageBlock')||_0x4e56f5['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4b6953),_0x4e56f5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x596e43{['refresh'](){const _0x3daf17=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3daf17&&(_0x3daf17['is']('element','imageBlock')||_0x3daf17['is']('element','imageInline')));}['execute'](_0x4fb893){const _0x5d817e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x220932=>{_0x220932['setAttributes'](_0x4fb893,_0x5d817e),_0x220932['removeAttribute']('srcset',_0x5d817e),_0x220932['removeAttribute']('sizes',_0x5d817e);});}}class g extends _0x1a05d5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5bd683,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x52c2c7}=this;_0x52c2c7['commands']['add']('uploadcareImageEdit',new J(_0x52c2c7)),_0x52c2c7['commands']['add']('uploadcareImageReplace',new O(_0x52c2c7));}}class j extends _0x1a05d5{['_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 _0x177df5=this['editor'];_0x177df5['ui']['componentFactory']['add']('uploadcareImageEdit',_0xf72a63=>{const _0x32f947=_0x177df5['commands']['get']('uploadcareImageEdit'),_0x2562eb=new _0xd42893(_0xf72a63),t=_0xf72a63['t'];return _0x2562eb['set']({'icon':_0x2b374f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2562eb['bind']('isEnabled')['to'](_0x32f947),_0x2562eb['bind']('isOn')['to'](_0x32f947,'isActive'),this['listenTo'](_0x2562eb,'execute',()=>{_0x177df5['execute']('uploadcareImageEdit'),_0x177df5['editing']['view']['focus']();}),_0x2562eb;}),this['_initConfig']();}['_initConfig'](){const _0x5b95ab=_0x2091cc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5b95ab),this['listenTo'](this['editor'],'destroy',()=>{_0x5b95ab['remove']();});}}class P extends _0x1a05d5{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 _0x4010c7,Command as _0x3dae3e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x11d622,IconGooglePhotos as _0x5f1ded,IconGoogleDrive as _0x5ae396,IconFacebook as _0x4c7b33,IconDropbox as _0x48d373,IconUploadcareLink as _0x368abe,IconUploadcareImageUpload as _0x5832ee,IconError as et,IconUploadcareImageEdit as _0x543862}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2a3021,MenuBarMenuListItemButtonView as _0xaf96a1,View as _0xbb7b63,FocusCycler as _0x16fb38,Dialog as _0x14667d,DialogViewPosition as _0x28b575,SpinnerView as _0x3ccf28,IconView as at,Notification as _0x1aa3f8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x12662f,DomEmitterMixin as _0x131bcd,global as _0x3f3e3b,getAncestors as _0x41d5b4,ObservableMixin as _0x28dff0,createElement as _0x2de6a2,uid as _0xac372b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2d3669}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1a6b96,info as _0x2e38be}from'@uploadcare/upload-client';import*as _0xb7c93a from'@uploadcare/file-uploader';var o=function(_0x363331){return _0x363331['Local']='local',_0x363331['URL']='url',_0x363331['Dropbox']='dropbox',_0x363331['GDrive']='gdrive',_0x363331['Facebook']='facebook',_0x363331['GPhotos']='gphotos',_0x363331['OneDrive']='onedrive',_0x363331;}({});function _(_0x1a7af8,_0x2d6993,_0x1f6fd4){const t=_0x1a7af8['t'],_0x4110d8=_0x1a7af8['t'];switch(_0x2d6993){case o['Local']:return{'text':_0x4110d8('Insert'===_0x1f6fd4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4110d8('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1f6fd4?_0x4110d8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4110d8('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1f6fd4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1f6fd4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1f6fd4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1f6fd4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1f6fd4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2d6993;}}class e extends _0x4010c7{['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 _0x41a3ec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xc5b725;for(const _0x509f71 in _0x41a3ec){const _0x564930=_0x509f71,_0x293808=_0x41a3ec[_0x564930];if('uploadcareLicenseKeyValid'==_0x293808||'uploadcareLicenseKeyInvalid'==_0x293808||'uploadcareLicenseKeyExpired'==_0x293808||'uploadcareLicenseKeyDomainLimit'==_0x293808||'uploadcareLicenseKeyNotAllowed'==_0x293808||'uploadcareLicenseKeyEvaluationLimit'==_0x293808||'uploadcareLicenseKeyTrialLimit'==_0x293808||'uploadcareLicenseKeyUsageLimit'==_0x293808){delete _0x41a3ec[_0x564930],_0xc5b725=_0x293808,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xc5b725&&_0x41a3ec['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xc5b725&&_0x41a3ec['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xc5b725&&_0x41a3ec['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xc5b725&&_0x41a3ec['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xc5b725&&_0x41a3ec['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xc5b725&&_0x41a3ec['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xc5b725&&_0x41a3ec['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x10e24b}=this,_0x34ba9f=_0x10e24b['commands']['get']('uploadcare');if(!_0x34ba9f)return;const _0x54c766=this['_normalizeConfigSourceList'](_0x10e24b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3c19b9,_0x472f08)=>{const _0xfcf802=this['_getIntegrationKey'](_0x472f08['type']);return _0x3c19b9[_0xfcf802]||(_0x3c19b9[_0xfcf802]=[]),_0x3c19b9[_0xfcf802]['push'](_0x472f08),_0x3c19b9;},{});_0x10e24b['plugins']['has']('ImageInsertUI')&&_0x10e24b['commands']['get']('uploadcare')&&Object['entries'](_0x54c766)['forEach'](([_0x34f82c,_0x3058e0])=>{_0x10e24b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x34f82c,'observable':()=>_0x34ba9f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3058e0),'formViewCreator':()=>this['_createDropdownButtons'](_0x3058e0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3058e0),'override':'assetManager'!==_0x34f82c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x357918){const {locale:_0x58be12}=this['editor'];return _0x357918['map'](_0x1ca578=>{const _0x4abd06=_(_0x58be12,_0x1ca578,'Insert');switch(_0x1ca578){case o['Local']:return{'icon':_0x5832ee,'type':o['Local'],..._0x4abd06};case o['URL']:return{'icon':_0x368abe,'type':o['URL'],..._0x4abd06};case o['Dropbox']:return{'icon':_0x48d373,'type':o['Dropbox'],..._0x4abd06};case o['Facebook']:return{'icon':_0x4c7b33,'type':o['Facebook'],..._0x4abd06};case o['GDrive']:return{'icon':_0x5ae396,'type':o['GDrive'],..._0x4abd06};case o['GPhotos']:return{'icon':_0x5f1ded,'type':o['GPhotos'],..._0x4abd06};case o['OneDrive']:return{'icon':_0x11d622,'type':o['OneDrive'],..._0x4abd06};}});}['_getIntegrationKey'](_0x4738b2){switch(_0x4738b2){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x151f9f,_0x4bcbb4){const _0x50c66e=this['editor'],_0x48ceaa=new _0x151f9f(_0x50c66e['locale']),_0x4f89c1=_0x50c66e['commands']['get']('uploadcare');return _0x48ceaa['bind']('isEnabled')['to'](_0x4f89c1),_0x48ceaa['on']('execute',()=>{_0x4f89c1['execute'](_0x4bcbb4);}),_0x48ceaa;}['_createToolbarButton'](_0x425f74){const {locale:_0x346fee}=this['editor'],_0x1a763a=this['editor']['plugins']['get']('ImageInsertUI'),_0x26fb5b=_0x425f74[0x0],_0x14ace9=this['_createButton'](_0x2a3021,_0x26fb5b['type']);return _0x14ace9['icon']=_0x26fb5b['icon'],_0x14ace9['bind']('label')['to'](_0x1a763a,'isImageSelected',_0x3a5101=>_(_0x346fee,_0x26fb5b['type'],_0x3a5101?'Replace':'Insert')['text']),_0x14ace9['tooltip']=!0x0,_0x14ace9;}['_createDropdownButtons'](_0x437e5a){const {locale:_0x29c0b6}=this['editor'],_0x38195a=this['editor']['plugins']['get']('ImageInsertUI');return _0x437e5a['map'](_0x470ca9=>{const _0x42e998=this['_createButton'](_0x2a3021,_0x470ca9['type']);return _0x42e998['withText']=!0x0,_0x42e998['icon']=_0x470ca9['icon'],_0x42e998['bind']('label')['to'](_0x38195a,'isImageSelected',_0x4230b1=>_(_0x29c0b6,_0x470ca9['type'],_0x4230b1?'Replace':'Insert')['text']),_0x42e998;});}['_createMenuBarButtons'](_0x33fd46){return _0x33fd46['map'](_0x412cc5=>{const _0x371ec2=this['_createButton'](_0xaf96a1,_0x412cc5['type']);return _0x371ec2['icon']=_0x412cc5['icon'],_0x371ec2['label']=_0x412cc5['shortText'],_0x371ec2;});}}class q extends _0xbb7b63{['focusTracker'];['focusCycler'];constructor(_0x396f98){super(_0x396f98),this['focusTracker']=new _0x12662f(),this['focusCycler']=new _0x16fb38({'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(_0x472ff0){super(_0x472ff0),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(_0x450b64,_0x28815b){const _0x2733f3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x20338e=>_0x20338e<=_0x28815b)['map'](_0x10560a=>_0x450b64['replace'](/\/$/,'')+'/-/resize/'+_0x10560a+'x/\x20'+_0x10560a+'w');return{'imageFallbackUrl':_0x450b64,'imageSources':[{'srcset':_0x2733f3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x28815b+'px)\x20100vw,\x20'+_0x28815b+'px','type':'image/webp'}]};}function A(_0x1ec631,_0x5f4439,_0x2ee434){const _0x50c9e5=_0x1ec631['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x50c9e5?parseInt(_0x50c9e5[0x1],0xa):_0x5f4439,'height':_0x50c9e5?parseInt(_0x50c9e5[0x2],0xa):_0x2ee434};}function m(_0xb03056,_0x4bd356){const _0x30df8b=Object['create'](_0x131bcd),_0x254b75=_0xb03056['plugins']['get']('ImageUtils'),_0x49b766=_0xb03056['editing']['mapper']['toViewElement'](_0x4bd356),_0x4ed2b2=_0x254b75['findViewImgElement'](_0x49b766),_0x43b7b0=_0xb03056['editing']['view']['domConverter']['viewToDom'](_0x4ed2b2),_0x21b3ec=_0x4bd356['getAttribute']('width'),_0xf072a1=_0x4bd356['getAttribute']('height'),_0x326772='image-processing';_0xb03056['editing']['view']['change'](_0x1a0466=>{_0x1a0466['addClass'](_0x326772,_0x49b766),_0x1a0466['setStyle']('aspect-ratio',_0x21b3ec+'/'+_0xf072a1,_0x4ed2b2);}),_0x30df8b['listenTo'](_0x43b7b0,'load',()=>{_0x30df8b['stopListening'](_0x43b7b0,'load'),_0xb03056['editing']['view']['change'](_0x4ace3f=>{_0x4ace3f['removeClass'](_0x326772,_0x49b766),_0x4ace3f['removeStyle']('aspect-ratio',_0x4ed2b2);});});}function V(_0x5bc2be){if(Array['isArray'](_0x5bc2be)){const _0x6408eb=_0x5bc2be['map'](V);return _0x478fe5=>_0x6408eb['some'](_0x4281c0=>_0x4281c0(_0x478fe5));}if('origin'==_0x5bc2be){const _0x58c216=_0x3f3e3b['window']['location']['origin'];return _0x140bd8=>new URL(_0x140bd8,_0x3f3e3b['document']['baseURI'])['origin']==_0x58c216;}return'function'==typeof _0x5bc2be?_0x5bc2be:_0x5bc2be instanceof RegExp?_0x4a0c7c=>!(!_0x4a0c7c['match'](_0x5bc2be)&&!_0x4a0c7c['replace'](/^https?:\/\//,'')['match'](_0x5bc2be)):()=>!0x1;}function F(_0x5784bc,_0x3b102c){return _0x41d5b4(_0x5784bc['target'])['includes'](_0x3b102c);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x28dff0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3f77aa,_0xa9bf0a,_0x195403){super(),this['_editor']=_0x3f77aa,this['_editing']=_0xa9bf0a,this['_dialog']=_0x3f77aa['plugins']['get'](_0x14667d),this['_api']=_0xa9bf0a['ctxElement']['getAPI'](),this['_type']=_0x195403,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:_0x5026d8,model:_0x10b6e0}=this['_editor'],_0x499c32=_0x10b6e0['document']['selection']['getSelectedElement'](),_0x537f77=_0x499c32&&(_0x499c32['is']('element','imageBlock')||_0x499c32['is']('element','imageInline'));this['_formView']=new S(_0x5026d8),this['_dialog']['show']({'id':'uploadCare','icon':_0x5832ee,'title':_(_0x5026d8,this['_type'],_0x537f77?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x28b575['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28ee70=>!F(_0x28ee70,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x21682a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5098c5=>{const _0x1267d5=_0x21682a['length'];for(const _0x1acbba of _0x21682a){const _0x485243=_0x1acbba===_0x21682a[_0x1267d5-0x1],{cdnUrl:_0x58f839,fileInfo:_0x1294dd}=_0x1acbba;if(!_0x58f839||!_0x1294dd)continue;const {width:_0x5ca2b6,height:_0x1a276b}=_0x1294dd['imageInfo'],_0x2c7919=A(_0x58f839,_0x5ca2b6,_0x1a276b),_0x3fddb2=E(_0x58f839,_0x2c7919['width']),_0x5d1cc5={'id':_0x1294dd['uuid'],'type':'image','attributes':{'imageDimension':_0x2c7919,..._0x3fddb2}};this['_insertAsset'](_0x5d1cc5,_0x485243,_0x5098c5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x411f4c=>{'idle'===_0x411f4c['detail']['status']&&!_0x411f4c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56410e,_0x1ff038,_0x1dbcd9){const _0x2a0ded=this['_editor']['model']['document']['selection'],_0x5d1463=_0x2a0ded['getSelectedElement'](),_0x4ba35d=!(!_0x5d1463||!_0x5d1463['is']('element','imageInline'));_0x1dbcd9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56410e,_0x4ba35d),_0x1ff038||_0x1dbcd9['setSelection'](_0x2a0ded['getLastPosition']());}['_insertImage'](_0x53f58f,_0xf02cfa){const _0x1c9747=this['_editor'],{imageDimension:_0x5e6f0d,imageFallbackUrl:_0x3f9b75,imageSources:_0x194f14}=_0x53f58f['attributes'];_0x1c9747['execute']('insertImage',{'imageType':_0xf02cfa?'imageInline':null,'source':{'uploadcareImageId':_0x53f58f['id'],'src':_0x3f9b75,'sources':_0x194f14,..._0x5e6f0d}});}}class n extends _0x3dae3e{['_editing'];['_controller']=null;static get['requires'](){return[_0x14667d,i];}constructor(_0x582dc8){super(_0x582dc8),this['_editing']=_0x582dc8['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3621f9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x3621f9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3050f6,publicKey:_0x257cff,signal:_0x41566d,onProgress:_0x44f52e}){return _0x1a6b96(_0x3050f6,{'publicKey':_0x257cff,'store':'auto','signal':_0x41566d,'onProgress':_0x44f52e});}static['getInfo'](_0x5b789b,_0x211c70){return _0x2e38be(_0x5b789b,_0x211c70);}}class p extends _0x4010c7{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2d3669,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1ebfc2=this['editor'];if(!!!_0x1ebfc2['config']['get']('uploadcare'))return;_0x1ebfc2['plugins']['get'](_0x2d3669)['createUploadAdapter']=_0x4b6dee=>new x(_0x4b6dee,_0x1ebfc2),_0x1ebfc2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3a0f15,{imageElement:_0x3571a4,data:_0xa5fbb0})=>{_0x1ebfc2['model']['change'](_0x5339e3=>{_0x5339e3['setAttribute']('uploadcareImageId',_0xa5fbb0['uploadcareImageId'],_0x3571a4);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x294557,_0x1a8071){this['loader']=_0x294557,this['editor']=_0x1a8071,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xe47842=this['editor']['config']['get']('uploadcare.pubkey'),_0x253f5a=await this['loader']['file'];return C['upload']({'file':_0x253f5a,'publicKey':_0xe47842,'signal':this['controller']['signal'],'onProgress':_0x28696b=>{_0x28696b&&_0x28696b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x28696b['value']);}})['then'](async _0x3a6628=>{const {imageFallbackUrl:_0x2403e6,imageSources:_0xd274d9}=E(_0x3a6628['cdnUrl'],_0x3a6628['imageInfo']['width']);return{'uploadcareImageId':_0x3a6628['uuid'],'default':_0x2403e6,'sources':_0xd274d9};})['catch'](()=>{const _0xab5baa=t('Cannot\x20upload\x20file:')+('\x20'+_0x253f5a['name']+'.');return Promise['reject'](_0xab5baa);});}['abort'](){this['controller']['abort']();}}class i extends _0x4010c7{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x14667d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xd89f4b=this['editor'];_0xd89f4b['commands']['add']('uploadcare',new n(_0xd89f4b));}['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 _0xd57706=_0x3f3e3b['document']['querySelector']('input[uploadcare-file-input]');_0xd57706&&_0xd57706['remove']();}),async function(_0x16b6ad){const _0x2a0de6=_0x51340f([0x6f,0x72,0x73,0x76,0x69,0x30,0x7a,0x64,0x50,0x79,0x37,0x70,0x59,0x77,0x4e,0x6a,0x43,0x41,0x47,0x57,0x4d,0x4b,0x4c,0x52,0x75,0x4a,0x68,0x6c,0x34,0x56,0x36,0x6d,0x4f,0x74,0x49,0x48,0x63,0x67,0x33,0x78,0x42,0x65,0x44,0x62,0x38,0x51,0x5a,0x32,0x58,0x71,0x45,0x53,0x6e,0x66,0x31,0x46,0x35,0x6b,0x39,0x54,0x55,0x61]),_0x535015=0x88d36db,_0x47c4b2=0x88a556b^_0x535015,_0x545e6d=window[_0x51340f([0x44,0x61,0x74,0x65])][_0x51340f([0x6e,0x6f,0x77])](),_0x305186=_0x16b6ad[_0x51340f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25ecc8=new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f11ee=>{_0x305186[_0x51340f([0x6f,0x6e,0x63,0x65])](_0x51340f([0x72,0x65,0x61,0x64,0x79]),_0x5f11ee);}),_0x4f1bf2={[_0x51340f([0x6b,0x74,0x79])]:_0x51340f([0x45,0x43]),[_0x51340f([0x75,0x73,0x65])]:_0x51340f([0x73,0x69,0x67]),[_0x51340f([0x63,0x72,0x76])]:_0x51340f([0x50,0x2d,0x32,0x35,0x36]),[_0x51340f([0x78])]:_0x51340f([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]),[_0x51340f([0x79])]:_0x51340f([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]),[_0x51340f([0x61,0x6c,0x67])]:_0x51340f([0x45,0x53,0x32,0x35,0x36])},_0x4bb8c9=_0x305186[_0x51340f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51340f([0x67,0x65,0x74])](_0x51340f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59de7e(){let _0x35b007,_0x4d7d08=null,_0x38f910=null;try{if(_0x4bb8c9==_0x51340f([0x47,0x50,0x4c]))return _0x51340f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35b007=_0x976be3(),!_0x35b007)return _0x51340f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35b007[_0x51340f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38f910=_0x5c24ea(_0x35b007[_0x51340f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35b007[_0x51340f([0x6a,0x74,0x69])])),await _0x77fe8()?_0x55d7f3()?_0x3ee5ed()?_0x51340f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x239a6d()?(_0x35b007[_0x51340f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51340f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d7d08=_0x2cf22a(_0x51340f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35b007[_0x51340f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51340f([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d7d08=_0x2cf22a(_0x51340f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a08e0()):_0x51340f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51340f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51340f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4ac637){return _0x51340f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ee5ed(){const _0x54482a=[_0x51340f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51340f([0x74,0x72,0x69,0x61,0x6c])][_0x51340f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35b007[_0x51340f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x545e6d/0x3e8:0xe10*_0x47c4b2;return _0x35b007[_0x51340f([0x65,0x78,0x70])]<_0x54482a;}function _0x55d7f3(){const _0x5856b7=_0x35b007[_0x51340f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5856b7&&(!!_0x5856b7[_0x51340f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51340f([0x2a]))||!!_0x5856b7[_0x51340f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51340f([0x55,0x50,0x4c,0x43])));}function _0x239a6d(){const _0xc46e74=_0x35b007[_0x51340f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc46e74||0x0==_0xc46e74[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56f063}=new URL(window[_0x51340f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc46e74[_0x51340f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f063))return!0x0;const _0x46aa92=_0x56f063[_0x51340f([0x73,0x70,0x6c,0x69,0x74])](_0x51340f([0x2e]));return _0xc46e74[_0x51340f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2721d5=>_0x2721d5[_0x51340f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51340f([0x2a])))[_0x51340f([0x6d,0x61,0x70])](_0x47535e=>_0x47535e[_0x51340f([0x73,0x70,0x6c,0x69,0x74])](_0x51340f([0x2e])))[_0x51340f([0x73,0x6f,0x6d,0x65])](_0x15e3be=>_0x46aa92[_0x51340f([0x65,0x76,0x65,0x72,0x79])]((_0x229f8c,_0x5352ee)=>_0x15e3be[_0x5352ee]===_0x229f8c||_0x15e3be[_0x5352ee]===_0x51340f([0x2a])));}function _0x4a08e0(){return _0x4d7d08&&_0x38f910?new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ed3f2,_0x4e0258)=>{_0x4d7d08[_0x51340f([0x74,0x68,0x65,0x6e])](_0x5ed3f2,_0x4e0258),_0x38f910[_0x51340f([0x74,0x68,0x65,0x6e])](_0x1e9cba=>{_0x1e9cba!=_0x51340f([0x56,0x61,0x6c,0x69,0x64])&&_0x5ed3f2(_0x1e9cba);},_0x4e0258);}):_0x4d7d08||_0x38f910||_0x51340f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c24ea(_0x2d18e2,_0x20debb){return new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110c1c=>{if(_0x2b84b7())return _0x110c1c(_0x51340f([0x56,0x61,0x6c,0x69,0x64]));_0x58d01c(),_0x305186[_0x51340f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51340f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27a3e1=!0x1;const _0x46c16b=_0xac372b();function _0x59852c(_0x284341){return!!_0x284341&&(typeof _0x284341===_0x51340f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x284341===_0x51340f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x284341[_0x51340f([0x74,0x68,0x65,0x6e])]===_0x51340f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x284341[_0x51340f([0x63,0x61,0x74,0x63,0x68])]===_0x51340f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fe969(_0x5320c6){_0x15f936(_0x5320c6)[_0x51340f([0x74,0x68,0x65,0x6e])](_0x3eabea=>{if(!_0x3eabea||_0x3eabea[_0x51340f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51340f([0x6f,0x6b]))return _0x51340f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28a671(_0x54bc9f(_0x46c16b+_0x20debb))!=_0x3eabea[_0x51340f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51340f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51340f([0x56,0x61,0x6c,0x69,0x64]);})[_0x51340f([0x74,0x68,0x65,0x6e])](_0x4771b7=>(_0x19826b(),_0x4771b7),()=>{const _0x12de15=_0x577754();return null==_0x12de15?(_0x19826b(),_0x51340f([0x56,0x61,0x6c,0x69,0x64])):_0x51340f(_0x545e6d-_0x12de15>(0x2c81b2db^_0x535015)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51340f([0x74,0x68,0x65,0x6e])](_0x110c1c)[_0x51340f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x110c1c(_0x51340f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x56616e=0x8bbd85b^_0x535015;function _0x19826b(){const _0x584336=_0x51340f([0x6c,0x6c,0x63,0x74,0x2d])+_0x28a671(_0x54bc9f(_0x2d18e2)),_0x2c642d=_0x5d192e(_0x28a671(window[_0x51340f([0x4d,0x61,0x74,0x68])][_0x51340f([0x63,0x65,0x69,0x6c])](_0x545e6d/_0x56616e)));window[_0x51340f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51340f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x584336,_0x2c642d);}function _0x577754(){const _0x6e122f=_0x51340f([0x6c,0x6c,0x63,0x74,0x2d])+_0x28a671(_0x54bc9f(_0x2d18e2)),_0x4874f4=window[_0x51340f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51340f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6e122f);return _0x4874f4?window[_0x51340f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d192e(_0x4874f4),0x10)*_0x56616e:null;}function _0x15f936(_0x3212e8){return new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7930c9,_0x44e7dc)=>{_0x3212e8[_0x51340f([0x74,0x68,0x65,0x6e])](_0x7930c9,_0x44e7dc),window[_0x51340f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44e7dc,0x88ce21b^_0x535015);});}}_0x305186[_0x51340f([0x6f,0x6e])](_0x51340f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16b787,_0x418144)=>{if(_0x418144[0x0]!=_0x2d18e2)return _0x110c1c(_0x51340f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x418144[0x1]={..._0x418144[0x1],[_0x51340f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46c16b};},{[_0x51340f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51340f([0x68,0x69,0x67,0x68])}),_0x305186[_0x51340f([0x6f,0x6e])](_0x51340f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1bbd94=>{_0x59852c(_0x1bbd94[_0x51340f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27a3e1=!0x0,_0x3fe969(_0x1bbd94[_0x51340f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51340f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51340f([0x6c,0x6f,0x77])}),_0x25ecc8[_0x51340f([0x74,0x68,0x65,0x6e])](()=>{_0x27a3e1||_0x110c1c(_0x51340f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b84b7(){return _0x305186[_0x51340f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51340f([0x76,0x69,0x65,0x77])][_0x51340f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51340f([0x61,0x75,0x74,0x6f]);}function _0x58d01c(){_0x305186[_0x51340f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51340f([0x76,0x69,0x65,0x77])][_0x51340f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51340f([0x61,0x75,0x74,0x6f]);}}function _0x2cf22a(_0x33ab0e){const _0x1c66b8=[new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4491e2=>setTimeout(_0x4491e2,0x8840817^_0x535015)),_0x25ecc8[_0x51340f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d8fba=>{let _0x1723d3=0x0;_0x305186[_0x51340f([0x6d,0x6f,0x64,0x65,0x6c])][_0x51340f([0x6f,0x6e])](_0x51340f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b3464,_0x216780)=>{_0x216780[0x0][_0x51340f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1723d3++,_0x1723d3==(0x88d3723^_0x535015)&&(_0x5d8fba(),_0x2b3464[_0x51340f([0x6f,0x66,0x66])]());});}))];return window[_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51340f([0x72,0x61,0x63,0x65])](_0x1c66b8)[_0x51340f([0x74,0x68,0x65,0x6e])](()=>_0x33ab0e);}async function _0x55f2df(){await _0x25ecc8,_0x305186[_0x51340f([0x6d,0x6f,0x64,0x65,0x6c])][_0x51340f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2de1b4,_0x305186[_0x51340f([0x6d,0x6f,0x64,0x65,0x6c])][_0x51340f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2de1b4,_0x305186[_0x51340f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51340f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bccf8(_0x1737bf){const _0x34fa80=_0x25aeef();_0x305186[_0x34fa80]=_0x51340f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1737bf,_0x1737bf!=_0x51340f([0x56,0x61,0x6c,0x69,0x64])&&_0x55f2df();}function _0x25aeef(){const _0x311520=window[_0x51340f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51340f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51340f([0x6e,0x6f,0x77])]())[_0x51340f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51340f([0x2e]),'');let _0x215804=_0x51340f([0x6f]);for(let _0x48510a=0x0;_0x48510a<_0x311520[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48510a+=0x2){let _0x4881e5=window[_0x51340f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x311520[_0x51340f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48510a,_0x48510a+0x2));_0x4881e5>=_0x2a0de6[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4881e5-=_0x2a0de6[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x215804+=_0x2a0de6[_0x4881e5];}return _0x215804;}function _0x976be3(){const _0x5e0339=_0x4bb8c9[_0x51340f([0x73,0x70,0x6c,0x69,0x74])](_0x51340f([0x2e]));if(0x3!=_0x5e0339[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52ceb9(_0x5e0339[0x1]);function _0x52ceb9(_0x31db83){const _0x5adf66=_0x5e9123(_0x31db83);return _0x5adf66&&_0x35a71c()?_0x5adf66:null;function _0x35a71c(){const _0x1bcb68=_0x5adf66[_0x51340f([0x6a,0x74,0x69])],_0x45460e=window[_0x51340f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bcb68[_0x51340f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bcb68[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f50a8={..._0x5adf66,[_0x51340f([0x6a,0x74,0x69])]:_0x1bcb68[_0x51340f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1bcb68[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f50a8[_0x51340f([0x76,0x63])],_0x54bc9f(_0x4f50a8)==_0x45460e;}}}async function _0x77fe8(){let _0x58acf2=!0x0;try{const _0x3de1e8=_0x4bb8c9[_0x51340f([0x73,0x70,0x6c,0x69,0x74])](_0x51340f([0x2e])),[_0x77386d,_0x565598,_0x58da62]=_0x3de1e8;return _0x4b1fab(_0x77386d),await _0xbfeb6d(_0x77386d,_0x565598,_0x58da62),_0x58acf2;}catch(_0x456af5){return!0x1;}function _0x4b1fab(_0x42d9ef){const _0x3c216b=_0x5e9123(_0x42d9ef);_0x3c216b&&_0x3c216b[_0x51340f([0x61,0x6c,0x67])]==_0x51340f([0x45,0x53,0x32,0x35,0x36])||(_0x58acf2=!0x1);}async function _0xbfeb6d(_0x4768bb,_0x43144c,_0x2c9da7){const _0x401397=window[_0x51340f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51340f([0x66,0x72,0x6f,0x6d])](_0x4546a7(_0x2c9da7),_0xa40ebd=>_0xa40ebd[_0x51340f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2dd9c5=new window[(_0x51340f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51340f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4768bb+_0x51340f([0x2e])+_0x43144c),_0x103d4f=window[_0x51340f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51340f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x103d4f)return;const _0xd90b95=await _0x103d4f[_0x51340f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51340f([0x6a,0x77,0x6b]),_0x4f1bf2,{[_0x51340f([0x6e,0x61,0x6d,0x65])]:_0x51340f([0x45,0x43,0x44,0x53,0x41]),[_0x51340f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51340f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51340f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x103d4f[_0x51340f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51340f([0x6e,0x61,0x6d,0x65])]:_0x51340f([0x45,0x43,0x44,0x53,0x41]),[_0x51340f([0x68,0x61,0x73,0x68])]:{[_0x51340f([0x6e,0x61,0x6d,0x65])]:_0x51340f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd90b95,_0x401397,_0x2dd9c5)||(_0x58acf2=!0x1);}}function _0x5e9123(_0x3fe42c){return _0x3fe42c[_0x51340f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51340f([0x65,0x79]))?JSON[_0x51340f([0x70,0x61,0x72,0x73,0x65])](_0x4546a7(_0x3fe42c)):null;}function _0x4546a7(_0x50c428){return window[_0x51340f([0x61,0x74,0x6f,0x62])](_0x50c428[_0x51340f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51340f([0x2b]))[_0x51340f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51340f([0x2f])));}function _0x54bc9f(_0x4a95b6){let _0x1ba57e=0x1505;function _0x31abec(_0x1e5956){for(let _0x3f2c46=0x0;_0x3f2c46<_0x1e5956[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f2c46++){const _0xb4f375=_0x1e5956[_0x51340f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f2c46);_0x1ba57e=(_0x1ba57e<<0x5)+_0x1ba57e+_0xb4f375,_0x1ba57e&=_0x1ba57e;}}function _0x3303aa(_0x4f7bbc){Array[_0x51340f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f7bbc)?_0x4f7bbc[_0x51340f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3303aa):_0x4f7bbc&&typeof _0x4f7bbc==_0x51340f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51340f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f7bbc)[_0x51340f([0x73,0x6f,0x72,0x74])]()[_0x51340f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e84a4,_0x1fbf83])=>{_0x31abec(_0x1e84a4),_0x3303aa(_0x1fbf83);}):_0x31abec(window[_0x51340f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f7bbc));}return _0x3303aa(_0x4a95b6),_0x1ba57e>>>0x0;}function _0x28a671(_0x425135){return _0x425135[_0x51340f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51340f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51340f([0x30]));}function _0x5d192e(_0x4a7f23){return _0x4a7f23[_0x51340f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51340f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51340f([0x6a,0x6f,0x69,0x6e])]('');}function _0x2de1b4(){}function _0x51340f(_0x44f304){return _0x44f304['map'](_0x42dd22=>String['fromCharCode'](_0x42dd22))['join']('');}_0x3bccf8(await _0x59de7e());}(this);}['_initSchema'](){const _0x552003=this['editor']['model']['schema'];_0x552003['isRegistered']('imageBlock')&&_0x552003['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x552003['isRegistered']('imageInline')&&_0x552003['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x145c8b=this['editor'];_0x145c8b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x145c8b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x185462=>_0x185462['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x17ebd2=_0x145c8b['commands']['get']('replaceImageSource');_0x17ebd2&&this['listenTo'](_0x17ebd2,'cleanupImage',(_0x29079f,[_0x516338,_0x46985d])=>{_0x516338['removeAttribute']('uploadcareImageId',_0x46985d);});}['_initConfig'](){const _0x49c603=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5aa9e5=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2de6a2(_0x3f3e3b['document'],'uc-config',{..._0x49c603,'pubkey':_0x5aa9e5,'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']=_0x166000=>{if('closeMax'==_0x166000)return'#uc-icon-arrow-down';},_0x3f3e3b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2de6a2(_0x3f3e3b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3f3e3b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x7ea9d5=this['editor']['commands']['get']('insertImage');_0x7ea9d5&&this['listenTo'](_0x7ea9d5,'execute',()=>{const _0x5cc8da=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5cc8da&&_0x5cc8da['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5cc8da);});});const _0x1fb8fc=this['editor']['commands']['get']('uploadcareImageReplace');_0x1fb8fc&&this['listenTo'](_0x1fb8fc,'execute',()=>{const _0x159f57=this['editor']['model']['document']['selection']['getSelectedElement']();_0x159f57&&_0x159f57['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x159f57);});});}}class u extends _0x4010c7{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x195ea4){super(_0x195ea4),_0x195ea4['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xb7c93a['defineComponents'](_0xb7c93a);}}class ta extends _0xbb7b63{constructor(_0x2d4bc4){super(_0x2d4bc4);const t=_0x2d4bc4['t'],_0x53ab78=this['bindTemplate'],_0x5bdced=new _0x3ccf28();_0x5bdced['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':[_0x5bdced,{'text':_0x53ab78['to']('imageUploadProgress',_0x5461b7=>t('Loading\x20image...')+'\x20('+(_0x5461b7||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 _0xbb7b63{constructor(_0x5bddce){super(_0x5bddce);const t=_0x5bddce['t'];this['set']('errorType',null);const _0x586ba0=new _0x2a3021(_0x5bddce);_0x586ba0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x586ba0['withText']=!0x0,_0x586ba0['class']='ck-button-action',_0x586ba0['on']('execute',()=>{this['fire']('retry');}),_0x586ba0['bind']('isVisible')['to'](this,'errorType',_0x65b529=>'NotFound'!==_0x65b529);const _0x220067=new at();_0x220067['content']=et,_0x220067['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x41eec6=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':[_0x220067,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x41eec6['to']('errorType',_0x144c8c=>t('NotFound'!==_0x144c8c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x586ba0]},{'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 _0xbb7b63{constructor(_0x41ce69,_0x30665a){super(_0x41ce69);const _0x4c48b9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x30665a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4c48b9['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3f48b9,_0x262b35,_0xac78e1){super(_0x3f48b9),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3f48b9),this['_errorView']=new rt(_0x3f48b9),this['_editingView']=new tt(_0x3f48b9,_0xac78e1),this['_focusableView']=new _0xbb7b63(_0x3f48b9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x262b35),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'],_0x59fc3b=>{this['_addUploadcareImageEditorListeners'](_0x59fc3b);});}),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'](_0x52d051,_0x349f2b){const _0x417bfe='uc-cloud-image-editor',_0x2b8d50=_0x52d051['querySelector'](_0x417bfe);if(_0x2b8d50)return _0x349f2b(_0x2b8d50);const _0x14bfd6=new MutationObserver(_0x4a2efd=>{const _0x4f3d79=_0x4a2efd['filter'](_0x3e9a87=>_0x3e9a87['target']===_0x52d051&&_0x3e9a87['addedNodes']['length']>0x0&&_0x3e9a87['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x417bfe);_0x4f3d79['length']&&(_0x14bfd6['disconnect'](),_0x349f2b(_0x4f3d79[0x0]['addedNodes'][0x0]));});_0x14bfd6['observe'](_0x52d051,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4e0046){_0x4e0046['addEventListener']('apply',_0xa1bf63=>{this['fire']('apply',{'imageSrc':_0xa1bf63['detail']['cdnUrl']});}),_0x4e0046['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x28dff0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb350d2,_0x417e49,_0x591f2d){super(),this['_editor']=_0xb350d2,this['_dialog']=_0x417e49,this['_imageElement']=_0x591f2d,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 _0x4e826b=this['_imageElement'],_0x30a23f=_0x4e826b['getAttribute']('uploadcareImageId'),_0x372712=_0x4e826b['getAttribute']('src');if(_0x30a23f)await this['_loadImageInfo'](_0x30a23f,_0x372712);else{if(this['_imageCache']['has'](_0x372712)){const _0x532e58=this['_imageCache']['get'](_0x372712);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x532e58['url'],this['imageDimension']=_0x532e58['dimension'],this['imageId']=_0x532e58['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x575418}=this['_editor'],t=_0x575418['t'],_0x476b7c=new Z(_0x575418,this['imageStatus'],this['_attributes']);_0x476b7c['bind']('status')['to'](this,'imageStatus'),_0x476b7c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x476b7c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x476b7c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x476b7c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x543862,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x476b7c,'position':_0x28b575['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x476b7c['focus']();},'onHide':()=>{_0x476b7c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3a1f12=>!F(_0x3a1f12,_0x476b7c['element'])}});}['_loadImageInfo'](_0x582964,_0x1568b1){return C['getInfo'](_0x582964,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x32a3db=>{const {width:_0xf5e58,height:_0x5ef370}=_0x32a3db['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1568b1,this['imageDimension']={'width':_0xf5e58,'height':_0x5ef370},this['imageId']=_0x582964;})['catch'](_0x4f049e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f049e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x140c0f,_0x2f7fbb){return this['_getImageAsFile'](_0x140c0f)['then'](_0x46481b=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2f7fbb['signal'],'file':_0x46481b,'onProgress':_0x348a7b=>{_0x348a7b&&_0x348a7b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x348a7b['value']));}}))['then'](_0x3d3e66=>{const {width:_0x5a090e,height:_0x2d47e6}=_0x3d3e66['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d3e66['cdnUrl'],this['imageDimension']={'width':_0x5a090e,'height':_0x2d47e6},this['imageId']=_0x3d3e66['uuid'],this['imageUploadProgress']=null;const _0x563b6e=_0x140c0f['getAttribute']('src');this['_imageCache']['set'](_0x563b6e,{'id':_0x3d3e66['uuid'],'url':_0x3d3e66['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1fde6c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1fde6c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x266e6b,_0x1e29d0){_0x266e6b['on']('apply',(_0x4d44c5,_0xce6865)=>{this['_replaceImage'](_0x1e29d0,_0xce6865['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x266e6b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x266e6b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x198e77,_0x2b0120,_0x4e126f){const _0x4123ff=this['_editor'],{width:_0x4fc347,height:_0x272bfa}=A(_0x2b0120,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5886bf,imageSources:_0xfcd2a7}=E(_0x2b0120,_0x4fc347);_0x4123ff['model']['change'](_0x76ea23=>{if('$graveyard'===_0x198e77['root']['rootName']){_0x4123ff['execute']('insertImage',{'imageType':_0x198e77['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x198e77['getAttributes']()),'uploadcareImageId':_0x4e126f,'src':_0x5886bf,'sources':_0xfcd2a7,'width':_0x4fc347,'height':_0x272bfa}});const _0x31b587=_0x198e77['getChildren']();_0x198e77=_0x4123ff['model']['document']['selection']['getSelectedElement']();for(const _0x2f78df of _0x31b587)_0x76ea23['append'](_0x76ea23['cloneElement'](_0x2f78df),_0x198e77);}else _0x76ea23['setSelection'](_0x198e77,'on'),_0x4123ff['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x198e77['getAttributes']()),'uploadcareImageId':_0x4e126f,'src':_0x5886bf,'sources':_0xfcd2a7,'width':_0x4fc347,'height':_0x272bfa},_0x198e77);_0x76ea23['setSelection'](_0x198e77,'on');});}async['_getImageAsFile'](_0x4a68eb){const _0x400ec3=_0x3f3e3b['window'],_0x5647ba=_0x3f3e3b['document']['location']['href'],_0x5380ef=new _0x400ec3['URL'](_0x4a68eb['getAttribute']('src'),_0x5647ba);if('data:'===_0x5380ef['protocol']){const _0xa0d10=_0x5380ef['href']['split'](','),_0x2f21ca=_0xa0d10[0x0]['match'](/:(.*?);/)[0x1],_0x228c1f=_0x2f21ca['split']('/')[0x1],_0x5586a4=_0x400ec3['atob'](_0xa0d10[_0xa0d10['length']-0x1]);let _0x5f061c=_0x5586a4['length'];const _0x1a438a=new _0x400ec3['Uint8Array'](_0x5f061c);for(;_0x5f061c--;)_0x1a438a[_0x5f061c]=_0x5586a4['charCodeAt'](_0x5f061c);return new _0x400ec3['File']([_0x1a438a],'image.'+_0x228c1f,{'type':_0x2f21ca});}const _0x1c92ca=_0x5380ef['href']['split']('/'),_0x322724=_0x1c92ca[_0x1c92ca['length']-0x1],_0xcd1908=_0x322724['split']('.')[0x1];return _0x400ec3['fetch'](_0x5380ef['href'])['then'](_0x796fda=>_0x796fda['clone']()['blob']())['then'](_0xc3676a=>new _0x400ec3['File']([_0xc3676a],_0x322724,{'type':'image/'+_0xcd1908}));}}class J extends _0x3dae3e{['imageEditController'];static get['requires'](){return[_0x14667d];}['_isEditable'];constructor(_0xeb2880){super(_0xeb2880),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7a8c1){const _0x3c9128=V(_0x7a8c1);return _0x5406d4=>!(!_0x5406d4||!_0x5406d4['is']('element','imageBlock')&&!_0x5406d4['is']('element','imageInline'))&&(!!_0x5406d4['hasAttribute']('uploadcareImageId')||!!_0x5406d4['hasAttribute']('src')&&_0x3c9128(_0x5406d4['getAttribute']('src')));}(_0xeb2880['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x38876f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x38876f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x510dde=this['editor']['model']['document']['selection']['getSelectedElement']();_0x510dde&&(_0x510dde['is']('element','imageBlock')||_0x510dde['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x14667d),_0x510dde),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3dae3e{['refresh'](){const _0xc6ffcd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xc6ffcd&&(_0xc6ffcd['is']('element','imageBlock')||_0xc6ffcd['is']('element','imageInline')));}['execute'](_0x345dc3){const _0x3301f2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe2b438=>{_0xe2b438['setAttributes'](_0x345dc3,_0x3301f2),_0xe2b438['removeAttribute']('srcset',_0x3301f2),_0xe2b438['removeAttribute']('sizes',_0x3301f2);});}}class g extends _0x4010c7{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x1aa3f8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1f2ec0}=this;_0x1f2ec0['commands']['add']('uploadcareImageEdit',new J(_0x1f2ec0)),_0x1f2ec0['commands']['add']('uploadcareImageReplace',new O(_0x1f2ec0));}}class j extends _0x4010c7{['_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 _0x41cbed=this['editor'];_0x41cbed['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4fce74=>{const _0x1e5341=_0x41cbed['commands']['get']('uploadcareImageEdit'),_0x253d16=new _0x2a3021(_0x4fce74),t=_0x4fce74['t'];return _0x253d16['set']({'icon':_0x543862,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x253d16['bind']('isEnabled')['to'](_0x1e5341),_0x253d16['bind']('isOn')['to'](_0x1e5341,'isActive'),this['listenTo'](_0x253d16,'execute',()=>{_0x41cbed['execute']('uploadcareImageEdit'),_0x41cbed['editing']['view']['focus']();}),_0x253d16;}),this['_initConfig']();}['_initConfig'](){const _0x5dcaf4=_0x2de6a2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5dcaf4),this['listenTo'](this['editor'],'destroy',()=>{_0x5dcaf4['remove']();});}}class P extends _0x4010c7{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-20250331.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-20250331.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250331.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250331.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250331.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250331.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250331.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250331.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250331.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
|
-
function _0x4d9f(_0x2c5d38,_0x5dc34a){const _0x545aab=_0x545a();return _0x4d9f=function(_0x4d9ffb,_0x51f695){_0x4d9ffb=_0x4d9ffb-0x6e;let _0x498382=_0x545aab[_0x4d9ffb];return _0x498382;},_0x4d9f(_0x2c5d38,_0x5dc34a);}const _0x5aeb5a=_0x4d9f;(function(_0x5d0b32,_0x439017){const _0x57ae4d=_0x4d9f,_0x4feeb8=_0x5d0b32();while(!![]){try{const _0x112ceb=-parseInt(_0x57ae4d(0xb1))/0x1*(-parseInt(_0x57ae4d(0x77))/0x2)+parseInt(_0x57ae4d(0x6f))/0x3*(-parseInt(_0x57ae4d(0x75))/0x4)+-parseInt(_0x57ae4d(0x6e))/0x5+parseInt(_0x57ae4d(0x7d))/0x6*(parseInt(_0x57ae4d(0xc2))/0x7)+parseInt(_0x57ae4d(0xbd))/0x8*(-parseInt(_0x57ae4d(0xc0))/0x9)+-parseInt(_0x57ae4d(0xb2))/0xa+parseInt(_0x57ae4d(0xa2))/0xb*(parseInt(_0x57ae4d(0x71))/0xc);if(_0x112ceb===_0x439017)break;else _0x4feeb8['push'](_0x4feeb8['shift']());}catch(_0x567616){_0x4feeb8['push'](_0x4feeb8['shift']());}}}(_0x545a,0x61537));import{Plugin as _0x1d1598}from'ckeditor5/src/core.js';function _0x545a(){const _0x5e1544=['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','editor','_configElement','isRegistered','selection','destroy','UploadcareEditing','replaceImageSource','elementToAttribute','13106RPKsJg','4454530mkpMGz','uc-upload-ctx-provider','editing','data-uc-image-id','input[uploadcare-file-input]','removeAttribute','locale','pluginName','fromCharCode','body','uploadcare','700728EBkoAG','_initConfig','config','63VlfALL','uc-config','7bWscxe','conversion','2171670vidOvg','39YVSFJp','getSelectedElement','476616hbyDxE','isOfficialPlugin','appendChild','join','225580FAAkzZ','uploadcare.uploader','28lECRyg','imageInline','_initSchema','init','_initCtx','extend','3208548pVtcgO','uploader','imageBlock','schema','getAttribute','insertImage','isPremiumPlugin','view','model','uploadcare.pubkey','true','upcast','commands','querySelector','contentLanguage','requires','remove','attributeToAttribute','render','iconHrefResolver','get','map','uploadcareImageReplace','closeMax','uploadcareImageId','once','listenTo','#uc-icon-arrow-down','_ctxElement','afterInit','_initConversion','execute','downcast','ctxElement','cleanupImage','configElement','for','528FgcwuM','PictureEditing','_initImageProcessingIndicator','add','document'];_0x545a=function(){return _0x5e1544;};return _0x545a();}import{Dialog as _0x4093c3}from'ckeditor5/src/ui.js';import{createElement as _0x4fc617,global as _0x408251,uid as _0x31bd66}from'ckeditor5/src/utils.js';import _0x3657e0 from'./uploadcarecommand.js';import _0x2d942f from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x28b985}from'./utils/editingutils.js';export default class i extends _0x1d1598{[_0x5aeb5a(0xaa)]=null;[_0x5aeb5a(0x99)]=null;static get[_0x5aeb5a(0xb9)](){const _0x32f401=_0x5aeb5a;return _0x32f401(0xae);}static get[_0x5aeb5a(0x8c)](){const _0x4fb285=_0x5aeb5a;return[_0x4fb285(0xa3),_0x2d942f,_0x4093c3];}static get[_0x5aeb5a(0x72)](){return!0x0;}static get[_0x5aeb5a(0x83)](){return!0x0;}get[_0x5aeb5a(0xa0)](){const _0x17f2d4=_0x5aeb5a;return this[_0x17f2d4(0xaa)];}get[_0x5aeb5a(0x9e)](){const _0x47b535=_0x5aeb5a;return this[_0x47b535(0x99)];}[_0x5aeb5a(0x7a)](){const _0x187f72=_0x5aeb5a,_0x362ded=this[_0x187f72(0xa9)];_0x362ded[_0x187f72(0x89)][_0x187f72(0xa5)](_0x187f72(0xbc),new _0x3657e0(_0x362ded));}[_0x5aeb5a(0x9a)](){const _0x39b0d7=_0x5aeb5a;this[_0x39b0d7(0x79)](),this[_0x39b0d7(0x9b)](),this[_0x39b0d7(0xbe)](),this[_0x39b0d7(0x7b)](),this[_0x39b0d7(0xa4)](),this[_0x39b0d7(0x97)](this[_0x39b0d7(0xa9)],_0x39b0d7(0xad),()=>{const _0xa61980=_0x39b0d7;this[_0xa61980(0xaa)]&&(this[_0xa61980(0xaa)][_0xa61980(0x8d)](),this[_0xa61980(0xaa)]=null),this[_0xa61980(0x99)]&&(this[_0xa61980(0x99)][_0xa61980(0x8d)](),this[_0xa61980(0x99)]=null);const _0x5c9a80=_0x408251[_0xa61980(0xa6)][_0xa61980(0x8a)](_0xa61980(0xb6));_0x5c9a80&&_0x5c9a80[_0xa61980(0x8d)]();}),async function(_0x1187e7){const _0x4e8314=_0x4bcb74([0x47,0x6d,0x45,0x68,0x4b,0x72,0x74,0x54,0x46,0x34,0x30,0x59,0x78,0x66,0x51,0x61,0x7a,0x52,0x69,0x4c,0x6a,0x5a,0x37,0x76,0x79,0x33,0x62,0x75,0x49,0x39,0x4e,0x6c,0x48,0x77,0x6e,0x65,0x71,0x44,0x50,0x4d,0x35,0x56,0x42,0x41,0x36,0x6f,0x63,0x67,0x53,0x4f,0x38,0x64,0x32,0x55,0x31,0x6b,0x70,0x58,0x4a,0x73,0x43,0x57]),_0x9ae6af=0x22527a8e,_0x508039=0x2255190e^_0x9ae6af,_0x2ae567=window[_0x4bcb74([0x44,0x61,0x74,0x65])][_0x4bcb74([0x6e,0x6f,0x77])](),_0x5ab4ad=_0x1187e7[_0x4bcb74([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c45ec=new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aba93=>{_0x5ab4ad[_0x4bcb74([0x6f,0x6e,0x63,0x65])](_0x4bcb74([0x72,0x65,0x61,0x64,0x79]),_0x3aba93);}),_0x50ccc3={[_0x4bcb74([0x6b,0x74,0x79])]:_0x4bcb74([0x45,0x43]),[_0x4bcb74([0x75,0x73,0x65])]:_0x4bcb74([0x73,0x69,0x67]),[_0x4bcb74([0x63,0x72,0x76])]:_0x4bcb74([0x50,0x2d,0x32,0x35,0x36]),[_0x4bcb74([0x78])]:_0x4bcb74([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]),[_0x4bcb74([0x79])]:_0x4bcb74([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]),[_0x4bcb74([0x61,0x6c,0x67])]:_0x4bcb74([0x45,0x53,0x32,0x35,0x36])},_0x1b61f7=_0x5ab4ad[_0x4bcb74([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4bcb74([0x67,0x65,0x74])](_0x4bcb74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d55e9(){let _0x3c4b5a,_0x4893f7=null,_0x48db31=null;try{if(_0x1b61f7==_0x4bcb74([0x47,0x50,0x4c]))return _0x4bcb74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c4b5a=_0x1c6a65(),!_0x3c4b5a)return _0x4bcb74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c4b5a[_0x4bcb74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48db31=_0x520fbe(_0x3c4b5a[_0x4bcb74([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c4b5a[_0x4bcb74([0x6a,0x74,0x69])])),await _0x402536()?_0x3a3a65()?_0x58388c()?_0x4bcb74([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23138f()?(_0x3c4b5a[_0x4bcb74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bcb74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4893f7=_0x710581(_0x4bcb74([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c4b5a[_0x4bcb74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bcb74([0x74,0x72,0x69,0x61,0x6c])&&(_0x4893f7=_0x710581(_0x4bcb74([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1dfd35()):_0x4bcb74([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4bcb74([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4bcb74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x377d96){return _0x4bcb74([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58388c(){const _0x2bb0ce=[_0x4bcb74([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4bcb74([0x74,0x72,0x69,0x61,0x6c])][_0x4bcb74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c4b5a[_0x4bcb74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ae567/0x3e8:0xe10*_0x508039;return _0x3c4b5a[_0x4bcb74([0x65,0x78,0x70])]<_0x2bb0ce;}function _0x3a3a65(){const _0x821c4c=_0x3c4b5a[_0x4bcb74([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x821c4c&&(!!_0x821c4c[_0x4bcb74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bcb74([0x2a]))||!!_0x821c4c[_0x4bcb74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bcb74([0x55,0x50,0x4c,0x43])));}function _0x23138f(){const _0x4dbeca=_0x4d9f,_0x46bd61=_0x3c4b5a[_0x4bcb74([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46bd61||0x0==_0x46bd61[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c8156}=new URL(window[_0x4bcb74([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4dbeca(0xa7)]);if(_0x46bd61[_0x4bcb74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c8156))return!0x0;const _0x940e94=_0x4c8156[_0x4bcb74([0x73,0x70,0x6c,0x69,0x74])](_0x4bcb74([0x2e]));return _0x46bd61[_0x4bcb74([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54ca18=>_0x54ca18[_0x4bcb74([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bcb74([0x2a])))[_0x4bcb74([0x6d,0x61,0x70])](_0x52f6d0=>_0x52f6d0[_0x4bcb74([0x73,0x70,0x6c,0x69,0x74])](_0x4bcb74([0x2e])))[_0x4bcb74([0x73,0x6f,0x6d,0x65])](_0x10f4f4=>_0x940e94[_0x4bcb74([0x65,0x76,0x65,0x72,0x79])]((_0x48240c,_0x59149c)=>_0x10f4f4[_0x59149c]===_0x48240c||_0x10f4f4[_0x59149c]===_0x4bcb74([0x2a])));}function _0x1dfd35(){return _0x4893f7&&_0x48db31?new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf5cf41,_0x2bacb1)=>{_0x4893f7[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0xf5cf41,_0x2bacb1),_0x48db31[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0x1fff9b=>{_0x1fff9b!=_0x4bcb74([0x56,0x61,0x6c,0x69,0x64])&&_0xf5cf41(_0x1fff9b);},_0x2bacb1);}):_0x4893f7||_0x48db31||_0x4bcb74([0x56,0x61,0x6c,0x69,0x64]);}}function _0x520fbe(_0xba75bc,_0x10eb7a){return new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aeb36=>{if(_0x2c1833())return _0x3aeb36(_0x4bcb74([0x56,0x61,0x6c,0x69,0x64]));_0x5864b2(),_0x5ab4ad[_0x4bcb74([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4bcb74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13eecc=!0x1;const _0x1628ad=_0x31bd66();function _0x206c0c(_0x2beae7){return!!_0x2beae7&&(typeof _0x2beae7===_0x4bcb74([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2beae7===_0x4bcb74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2beae7[_0x4bcb74([0x74,0x68,0x65,0x6e])]===_0x4bcb74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2beae7[_0x4bcb74([0x63,0x61,0x74,0x63,0x68])]===_0x4bcb74([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14e5ab(_0x44809d){_0x2f2406(_0x44809d)[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0x781d3e=>{if(!_0x781d3e||_0x781d3e[_0x4bcb74([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4bcb74([0x6f,0x6b]))return _0x4bcb74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x15ba17(_0x5cb608(_0x1628ad+_0x10eb7a))!=_0x781d3e[_0x4bcb74([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4bcb74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4bcb74([0x56,0x61,0x6c,0x69,0x64]);})[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0x571fe5=>(_0x41fe2b(),_0x571fe5),()=>{const _0xc3bb96=_0x4d0d8b();return null==_0xc3bb96?(_0x41fe2b(),_0x4bcb74([0x56,0x61,0x6c,0x69,0x64])):_0x4bcb74(_0x2ae567-_0xc3bb96>(0x65efe8e^_0x9ae6af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0x3aeb36)[_0x4bcb74([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3aeb36(_0x4bcb74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x19fda1=0x2264940e^_0x9ae6af;function _0x41fe2b(){const _0x2592b5=_0x4bcb74([0x6c,0x6c,0x63,0x74,0x2d])+_0x15ba17(_0x5cb608(_0xba75bc)),_0x68b40f=_0x3d826e(_0x15ba17(window[_0x4bcb74([0x4d,0x61,0x74,0x68])][_0x4bcb74([0x63,0x65,0x69,0x6c])](_0x2ae567/_0x19fda1)));window[_0x4bcb74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bcb74([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2592b5,_0x68b40f);}function _0x4d0d8b(){const _0x4be2c0=_0x4bcb74([0x6c,0x6c,0x63,0x74,0x2d])+_0x15ba17(_0x5cb608(_0xba75bc)),_0x3bd838=window[_0x4bcb74([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bcb74([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4be2c0);return _0x3bd838?window[_0x4bcb74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d826e(_0x3bd838),0x10)*_0x19fda1:null;}function _0x2f2406(_0x230c1f){return new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44c545,_0xddfc6c)=>{_0x230c1f[_0x4bcb74([0x74,0x68,0x65,0x6e])](_0x44c545,_0xddfc6c),window[_0x4bcb74([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xddfc6c,0x2253ae4e^_0x9ae6af);});}}_0x5ab4ad[_0x4bcb74([0x6f,0x6e])](_0x4bcb74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29304a,_0x4784cf)=>{if(_0x4784cf[0x0]!=_0xba75bc)return _0x3aeb36(_0x4bcb74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4784cf[0x1]={..._0x4784cf[0x1],[_0x4bcb74([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1628ad};},{[_0x4bcb74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bcb74([0x68,0x69,0x67,0x68])}),_0x5ab4ad[_0x4bcb74([0x6f,0x6e])](_0x4bcb74([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40c3b0=>{_0x206c0c(_0x40c3b0[_0x4bcb74([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13eecc=!0x0,_0x14e5ab(_0x40c3b0[_0x4bcb74([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4bcb74([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bcb74([0x6c,0x6f,0x77])}),_0x1c45ec[_0x4bcb74([0x74,0x68,0x65,0x6e])](()=>{_0x13eecc||_0x3aeb36(_0x4bcb74([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c1833(){return _0x5ab4ad[_0x4bcb74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bcb74([0x76,0x69,0x65,0x77])][_0x4bcb74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4bcb74([0x61,0x75,0x74,0x6f]);}function _0x5864b2(){_0x5ab4ad[_0x4bcb74([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bcb74([0x76,0x69,0x65,0x77])][_0x4bcb74([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4bcb74([0x61,0x75,0x74,0x6f]);}}function _0x710581(_0x4758fb){const _0x3b2eab=[new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bf8c1=>setTimeout(_0x4bf8c1,0x225b4442^_0x9ae6af)),_0x1c45ec[_0x4bcb74([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x117def=>{let _0x58b7a0=0x0;_0x5ab4ad[_0x4bcb74([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bcb74([0x6f,0x6e])](_0x4bcb74([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2fe908,_0x25d17e)=>{_0x25d17e[0x0][_0x4bcb74([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x58b7a0++,_0x58b7a0==(0x22527b76^_0x9ae6af)&&(_0x117def(),_0x2fe908[_0x4bcb74([0x6f,0x66,0x66])]());});}))];return window[_0x4bcb74([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4bcb74([0x72,0x61,0x63,0x65])](_0x3b2eab)[_0x4bcb74([0x74,0x68,0x65,0x6e])](()=>_0x4758fb);}async function _0x50a7e2(){await _0x1c45ec,_0x5ab4ad[_0x4bcb74([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bcb74([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c9054,_0x5ab4ad[_0x4bcb74([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bcb74([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c9054,_0x5ab4ad[_0x4bcb74([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4bcb74([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a337a(_0x572e5e){const _0x4829a6=_0x3d6d97();_0x5ab4ad[_0x4829a6]=_0x4bcb74([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x572e5e,_0x572e5e!=_0x4bcb74([0x56,0x61,0x6c,0x69,0x64])&&_0x50a7e2();}function _0x3d6d97(){const _0x28ed81=window[_0x4bcb74([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4bcb74([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4bcb74([0x6e,0x6f,0x77])]())[_0x4bcb74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4bcb74([0x2e]),'');let _0x4f0a31=_0x4bcb74([0x47]);for(let _0x1c163c=0x0;_0x1c163c<_0x28ed81[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c163c+=0x2){let _0x18b1b5=window[_0x4bcb74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28ed81[_0x4bcb74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c163c,_0x1c163c+0x2));_0x18b1b5>=_0x4e8314[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18b1b5-=_0x4e8314[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f0a31+=_0x4e8314[_0x18b1b5];}return _0x4f0a31;}function _0x1c6a65(){const _0x4b7cae=_0x1b61f7[_0x4bcb74([0x73,0x70,0x6c,0x69,0x74])](_0x4bcb74([0x2e]));if(0x3!=_0x4b7cae[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8dea2b(_0x4b7cae[0x1]);function _0x8dea2b(_0x4087b5){const _0x10337b=_0x41c7f8(_0x4087b5);return _0x10337b&&_0x286c27()?_0x10337b:null;function _0x286c27(){const _0x521b59=_0x10337b[_0x4bcb74([0x6a,0x74,0x69])],_0x58d955=window[_0x4bcb74([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x521b59[_0x4bcb74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x521b59[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c9170={..._0x10337b,[_0x4bcb74([0x6a,0x74,0x69])]:_0x521b59[_0x4bcb74([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x521b59[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c9170[_0x4bcb74([0x76,0x63])],_0x5cb608(_0x2c9170)==_0x58d955;}}}async function _0x402536(){let _0x4bb86c=!0x0;try{const _0x4e309a=_0x1b61f7[_0x4bcb74([0x73,0x70,0x6c,0x69,0x74])](_0x4bcb74([0x2e])),[_0x34b0ff,_0x572df8,_0x224df4]=_0x4e309a;return _0x5f278c(_0x34b0ff),await _0xef17d0(_0x34b0ff,_0x572df8,_0x224df4),_0x4bb86c;}catch(_0x19e161){return!0x1;}function _0x5f278c(_0x4de32c){const _0xf6ddca=_0x41c7f8(_0x4de32c);_0xf6ddca&&_0xf6ddca[_0x4bcb74([0x61,0x6c,0x67])]==_0x4bcb74([0x45,0x53,0x32,0x35,0x36])||(_0x4bb86c=!0x1);}async function _0xef17d0(_0x1bb483,_0x57814a,_0x2cb13c){const _0xecd5f9=window[_0x4bcb74([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4bcb74([0x66,0x72,0x6f,0x6d])](_0x1640f7(_0x2cb13c),_0x30b2f2=>_0x30b2f2[_0x4bcb74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1389fd=new window[(_0x4bcb74([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4bcb74([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bb483+_0x4bcb74([0x2e])+_0x57814a),_0x137ea7=window[_0x4bcb74([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4bcb74([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x137ea7)return;const _0x2fa6e1=await _0x137ea7[_0x4bcb74([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4bcb74([0x6a,0x77,0x6b]),_0x50ccc3,{[_0x4bcb74([0x6e,0x61,0x6d,0x65])]:_0x4bcb74([0x45,0x43,0x44,0x53,0x41]),[_0x4bcb74([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4bcb74([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4bcb74([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x137ea7[_0x4bcb74([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4bcb74([0x6e,0x61,0x6d,0x65])]:_0x4bcb74([0x45,0x43,0x44,0x53,0x41]),[_0x4bcb74([0x68,0x61,0x73,0x68])]:{[_0x4bcb74([0x6e,0x61,0x6d,0x65])]:_0x4bcb74([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fa6e1,_0xecd5f9,_0x1389fd)||(_0x4bb86c=!0x1);}}function _0x41c7f8(_0x9e0e4a){return _0x9e0e4a[_0x4bcb74([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4bcb74([0x65,0x79]))?JSON[_0x4bcb74([0x70,0x61,0x72,0x73,0x65])](_0x1640f7(_0x9e0e4a)):null;}function _0x1640f7(_0x33ab05){return window[_0x4bcb74([0x61,0x74,0x6f,0x62])](_0x33ab05[_0x4bcb74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4bcb74([0x2b]))[_0x4bcb74([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4bcb74([0x2f])));}function _0x5cb608(_0x31d7c4){let _0x567fa5=0x1505;function _0x270699(_0x1fadb1){for(let _0x5183b3=0x0;_0x5183b3<_0x1fadb1[_0x4bcb74([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5183b3++){const _0x463391=_0x1fadb1[_0x4bcb74([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5183b3);_0x567fa5=(_0x567fa5<<0x5)+_0x567fa5+_0x463391,_0x567fa5&=_0x567fa5;}}function _0x2abcc7(_0x513c8b){Array[_0x4bcb74([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x513c8b)?_0x513c8b[_0x4bcb74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2abcc7):_0x513c8b&&typeof _0x513c8b==_0x4bcb74([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4bcb74([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x513c8b)[_0x4bcb74([0x73,0x6f,0x72,0x74])]()[_0x4bcb74([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ac2d8,_0x5b3935])=>{_0x270699(_0x4ac2d8),_0x2abcc7(_0x5b3935);}):_0x270699(window[_0x4bcb74([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x513c8b));}return _0x2abcc7(_0x31d7c4),_0x567fa5>>>0x0;}function _0x15ba17(_0x44cfa4){return _0x44cfa4[_0x4bcb74([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4bcb74([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4bcb74([0x30]));}function _0x3d826e(_0x61a90d){return _0x61a90d[_0x4bcb74([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4bcb74([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4bcb74([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c9054(){}function _0x4bcb74(_0x371ddc){const _0x43d1d9=_0x4d9f;return _0x371ddc[_0x43d1d9(0x92)](_0x46c066=>String[_0x43d1d9(0xba)](_0x46c066))[_0x43d1d9(0x74)]('');}_0x4a337a(await _0x5d55e9());}(this);}[_0x5aeb5a(0x79)](){const _0x49fbab=_0x5aeb5a,_0x5668c9=this[_0x49fbab(0xa9)][_0x49fbab(0x85)][_0x49fbab(0x80)];_0x5668c9[_0x49fbab(0xab)](_0x49fbab(0x7f))&&_0x5668c9[_0x49fbab(0x7c)](_0x49fbab(0x7f),{'allowAttributes':[_0x49fbab(0x95)]}),_0x5668c9[_0x49fbab(0xab)](_0x49fbab(0x78))&&_0x5668c9[_0x49fbab(0x7c)](_0x49fbab(0x78),{'allowAttributes':[_0x49fbab(0x95)]});}[_0x5aeb5a(0x9b)](){const _0x5b7ca3=_0x5aeb5a,_0x446fcb=this[_0x5b7ca3(0xa9)];_0x446fcb[_0x5b7ca3(0xc3)][_0x5b7ca3(0xa1)](_0x5b7ca3(0x9d))[_0x5b7ca3(0x8e)]({'model':_0x5b7ca3(0x95),'view':_0x5b7ca3(0xb5)}),_0x446fcb[_0x5b7ca3(0xc3)][_0x5b7ca3(0xa1)](_0x5b7ca3(0x88))[_0x5b7ca3(0xb0)]({'model':{'key':_0x5b7ca3(0x95),'value':_0x446ddc=>_0x446ddc[_0x5b7ca3(0x81)](_0x5b7ca3(0xb5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x23cc17=_0x446fcb[_0x5b7ca3(0x89)][_0x5b7ca3(0x91)](_0x5b7ca3(0xaf));_0x23cc17&&this[_0x5b7ca3(0x97)](_0x23cc17,_0x5b7ca3(0x9f),(_0xcf40d9,[_0x39178c,_0xd852a1])=>{const _0x563a27=_0x5b7ca3;_0x39178c[_0x563a27(0xb7)](_0x563a27(0x95),_0xd852a1);});}[_0x5aeb5a(0xbe)](){const _0x182a19=_0x5aeb5a,_0x1f9230=this[_0x182a19(0xa9)][_0x182a19(0xbf)][_0x182a19(0x91)](_0x182a19(0x76))||{},_0x27e833=this[_0x182a19(0xa9)][_0x182a19(0xbf)][_0x182a19(0x91)](_0x182a19(0x86))||'';this[_0x182a19(0xaa)]=_0x4fc617(_0x408251[_0x182a19(0xa6)],_0x182a19(0xc1),{..._0x1f9230,'pubkey':_0x27e833,'ctx-name':_0x182a19(0x7e),'sourceList':'','imgOnly':_0x182a19(0x87),'removeCopyright':_0x182a19(0x87),'localeName':this[_0x182a19(0xa9)][_0x182a19(0xb8)][_0x182a19(0x8b)],'externalSourcesEmbedCss':_0x182a19(0xa8)}),this[_0x182a19(0xaa)][_0x182a19(0x90)]=_0x21d069=>{const _0x4b3aa7=_0x182a19;if(_0x4b3aa7(0x94)==_0x21d069)return _0x4b3aa7(0x98);},_0x408251[_0x182a19(0xa6)][_0x182a19(0xbb)][_0x182a19(0x73)](this[_0x182a19(0xaa)]);}[_0x5aeb5a(0x7b)](){const _0x479338=_0x5aeb5a;this[_0x479338(0x99)]=_0x4fc617(_0x408251[_0x479338(0xa6)],_0x479338(0xb3),{'ctx-name':_0x479338(0x7e)}),_0x408251[_0x479338(0xa6)][_0x479338(0xbb)][_0x479338(0x73)](this[_0x479338(0x99)]);}[_0x5aeb5a(0xa4)](){const _0x321835=_0x5aeb5a,_0x1d813c=this[_0x321835(0xa9)][_0x321835(0x89)][_0x321835(0x91)](_0x321835(0x82));_0x1d813c&&this[_0x321835(0x97)](_0x1d813c,_0x321835(0x9c),()=>{const _0x3cb769=_0x321835,_0x430cda=this[_0x3cb769(0xa9)][_0x3cb769(0x85)][_0x3cb769(0xa6)][_0x3cb769(0xac)][_0x3cb769(0x70)]();_0x430cda&&_0x430cda[_0x3cb769(0x81)](_0x3cb769(0x95))&&this[_0x3cb769(0xa9)][_0x3cb769(0xb4)][_0x3cb769(0x84)][_0x3cb769(0x96)](_0x3cb769(0x8f),()=>{const _0x4ea64b=_0x3cb769;_0x28b985(this[_0x4ea64b(0xa9)],_0x430cda);});});const _0x308f21=this[_0x321835(0xa9)][_0x321835(0x89)][_0x321835(0x91)](_0x321835(0x93));_0x308f21&&this[_0x321835(0x97)](_0x308f21,_0x321835(0x9c),()=>{const _0x4eb937=_0x321835,_0xc853d1=this[_0x4eb937(0xa9)][_0x4eb937(0x85)][_0x4eb937(0xa6)][_0x4eb937(0xac)][_0x4eb937(0x70)]();_0xc853d1&&_0xc853d1[_0x4eb937(0x81)](_0x4eb937(0x95))&&this[_0x4eb937(0xa9)][_0x4eb937(0xb4)][_0x4eb937(0x84)][_0x4eb937(0x96)](_0x4eb937(0x8f),()=>{const _0x55bed3=_0x4eb937;_0x28b985(this[_0x55bed3(0xa9)],_0xc853d1);});});}}
|
|
23
|
+
const _0x55af7e=_0x518f;(function(_0x4b3c47,_0x87ceba){const _0x4875d4=_0x518f,_0x5d4c32=_0x4b3c47();while(!![]){try{const _0xab2603=-parseInt(_0x4875d4(0xcb))/0x1+-parseInt(_0x4875d4(0xc9))/0x2+parseInt(_0x4875d4(0x110))/0x3+-parseInt(_0x4875d4(0x103))/0x4+-parseInt(_0x4875d4(0xe3))/0x5+parseInt(_0x4875d4(0xcc))/0x6+parseInt(_0x4875d4(0xe0))/0x7;if(_0xab2603===_0x87ceba)break;else _0x5d4c32['push'](_0x5d4c32['shift']());}catch(_0x30ab5d){_0x5d4c32['push'](_0x5d4c32['shift']());}}}(_0x66a0,0x3827e));import{Plugin as _0x42d22f}from'ckeditor5/src/core.js';import{Dialog as _0x363bda}from'ckeditor5/src/ui.js';function _0x66a0(){const _0x4bb52a=['listenTo','editor','uploader','view','join','PictureEditing','remove','getSelectedElement','_initConversion','conversion','add','selection','schema','_initCtx','querySelector','uc-upload-ctx-provider','render','locale','execute','configElement','requires','upcast','contentLanguage','extend','input[uploadcare-file-input]','UploadcareEditing','ctxElement','uploadcare.uploader','968232tNCtBW','isRegistered','insertImage','appendChild','removeAttribute','pluginName','closeMax','_configElement','elementToAttribute','cleanupImage','getAttribute','imageBlock','_initConfig','712734IlbRwU','_initImageProcessingIndicator','init','downcast','isOfficialPlugin','afterInit','attributeToAttribute','replaceImageSource','isPremiumPlugin','imageInline','824122aAiEse','for','74610rnCDfR','1372842dZKZdk','get','config','model','true','uploadcareImageReplace','data-uc-image-id','commands','once','uc-config','_initSchema','body','uploadcareImageId','document','#uc-icon-arrow-down','editing','iconHrefResolver','destroy','uploadcare.pubkey','\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','4014213rzFMfb','href','uploadcare','405505roDSOb','map','_ctxElement','fromCharCode'];_0x66a0=function(){return _0x4bb52a;};return _0x66a0();}import{createElement as _0x478a41,global as _0x335bf2,uid as _0xdc22e6}from'ckeditor5/src/utils.js';import _0x4c8448 from'./uploadcarecommand.js';import _0x43e216 from'./uploadcareuploadadapter.js';function _0x518f(_0x2602ab,_0x232dd9){const _0x66a033=_0x66a0();return _0x518f=function(_0x518fd5,_0x451e1d){_0x518fd5=_0x518fd5-0xc8;let _0x8a0ed3=_0x66a033[_0x518fd5];return _0x8a0ed3;},_0x518f(_0x2602ab,_0x232dd9);}import{showImageProcessingIndicator as _0xc418a5}from'./utils/editingutils.js';export default class i extends _0x42d22f{[_0x55af7e(0x10a)]=null;[_0x55af7e(0xe5)]=null;static get[_0x55af7e(0x108)](){const _0x4c5297=_0x55af7e;return _0x4c5297(0x100);}static get[_0x55af7e(0xfb)](){const _0x119187=_0x55af7e;return[_0x119187(0xec),_0x43e216,_0x363bda];}static get[_0x55af7e(0x114)](){return!0x0;}static get[_0x55af7e(0x118)](){return!0x0;}get[_0x55af7e(0xfa)](){const _0x4dbf47=_0x55af7e;return this[_0x4dbf47(0x10a)];}get[_0x55af7e(0x101)](){const _0x3dc439=_0x55af7e;return this[_0x3dc439(0xe5)];}[_0x55af7e(0x112)](){const _0x2f192b=_0x55af7e,_0xbce51d=this[_0x2f192b(0xe8)];_0xbce51d[_0x2f192b(0xd3)][_0x2f192b(0xf1)](_0x2f192b(0xe2),new _0x4c8448(_0xbce51d));}[_0x55af7e(0x115)](){const _0x2d9f05=_0x55af7e;this[_0x2d9f05(0xd6)](),this[_0x2d9f05(0xef)](),this[_0x2d9f05(0x10f)](),this[_0x2d9f05(0xf4)](),this[_0x2d9f05(0x111)](),this[_0x2d9f05(0xe7)](this[_0x2d9f05(0xe8)],_0x2d9f05(0xdd),()=>{const _0x245659=_0x2d9f05;this[_0x245659(0x10a)]&&(this[_0x245659(0x10a)][_0x245659(0xed)](),this[_0x245659(0x10a)]=null),this[_0x245659(0xe5)]&&(this[_0x245659(0xe5)][_0x245659(0xed)](),this[_0x245659(0xe5)]=null);const _0x2288f7=_0x335bf2[_0x245659(0xd9)][_0x245659(0xf5)](_0x245659(0xff));_0x2288f7&&_0x2288f7[_0x245659(0xed)]();}),async function(_0x3df11e){const _0x16ab51=_0xc20d88([0x6f,0x72,0x73,0x76,0x69,0x30,0x7a,0x64,0x50,0x79,0x37,0x70,0x59,0x77,0x4e,0x6a,0x43,0x41,0x47,0x57,0x4d,0x4b,0x4c,0x52,0x75,0x4a,0x68,0x6c,0x34,0x56,0x36,0x6d,0x4f,0x74,0x49,0x48,0x63,0x67,0x33,0x78,0x42,0x65,0x44,0x62,0x38,0x51,0x5a,0x32,0x58,0x71,0x45,0x53,0x6e,0x66,0x31,0x46,0x35,0x6b,0x39,0x54,0x55,0x61]),_0x1fb0e3=0x88d36db,_0x32a18a=0x88a556b^_0x1fb0e3,_0x392f2d=window[_0xc20d88([0x44,0x61,0x74,0x65])][_0xc20d88([0x6e,0x6f,0x77])](),_0x5501fa=_0x3df11e[_0xc20d88([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcfac53=new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x524857=>{_0x5501fa[_0xc20d88([0x6f,0x6e,0x63,0x65])](_0xc20d88([0x72,0x65,0x61,0x64,0x79]),_0x524857);}),_0x5ee562={[_0xc20d88([0x6b,0x74,0x79])]:_0xc20d88([0x45,0x43]),[_0xc20d88([0x75,0x73,0x65])]:_0xc20d88([0x73,0x69,0x67]),[_0xc20d88([0x63,0x72,0x76])]:_0xc20d88([0x50,0x2d,0x32,0x35,0x36]),[_0xc20d88([0x78])]:_0xc20d88([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]),[_0xc20d88([0x79])]:_0xc20d88([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]),[_0xc20d88([0x61,0x6c,0x67])]:_0xc20d88([0x45,0x53,0x32,0x35,0x36])},_0x58951a=_0x5501fa[_0xc20d88([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc20d88([0x67,0x65,0x74])](_0xc20d88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14fc7a(){let _0x19aae8,_0x5c9f14=null,_0x6cc70d=null;try{if(_0x58951a==_0xc20d88([0x47,0x50,0x4c]))return _0xc20d88([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19aae8=_0x4ffb0d(),!_0x19aae8)return _0xc20d88([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19aae8[_0xc20d88([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6cc70d=_0xfa4f2d(_0x19aae8[_0xc20d88([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19aae8[_0xc20d88([0x6a,0x74,0x69])])),await _0x152f20()?_0x482620()?_0x99e51a()?_0xc20d88([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29b3e2()?(_0x19aae8[_0xc20d88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc20d88([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c9f14=_0x2efea7(_0xc20d88([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19aae8[_0xc20d88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc20d88([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c9f14=_0x2efea7(_0xc20d88([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d5076()):_0xc20d88([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc20d88([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc20d88([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x131af6){return _0xc20d88([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x99e51a(){const _0x2814aa=[_0xc20d88([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc20d88([0x74,0x72,0x69,0x61,0x6c])][_0xc20d88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19aae8[_0xc20d88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x392f2d/0x3e8:0xe10*_0x32a18a;return _0x19aae8[_0xc20d88([0x65,0x78,0x70])]<_0x2814aa;}function _0x482620(){const _0x4a9e57=_0x19aae8[_0xc20d88([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4a9e57&&(!!_0x4a9e57[_0xc20d88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc20d88([0x2a]))||!!_0x4a9e57[_0xc20d88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc20d88([0x55,0x50,0x4c,0x43])));}function _0x29b3e2(){const _0x4b67a2=_0x518f,_0x1e0e8f=_0x19aae8[_0xc20d88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e0e8f||0x0==_0x1e0e8f[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57a7c9}=new URL(window[_0xc20d88([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4b67a2(0xe1)]);if(_0x1e0e8f[_0xc20d88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57a7c9))return!0x0;const _0x130cdf=_0x57a7c9[_0xc20d88([0x73,0x70,0x6c,0x69,0x74])](_0xc20d88([0x2e]));return _0x1e0e8f[_0xc20d88([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xcbeb0b=>_0xcbeb0b[_0xc20d88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc20d88([0x2a])))[_0xc20d88([0x6d,0x61,0x70])](_0x45e74c=>_0x45e74c[_0xc20d88([0x73,0x70,0x6c,0x69,0x74])](_0xc20d88([0x2e])))[_0xc20d88([0x73,0x6f,0x6d,0x65])](_0x1b61ef=>_0x130cdf[_0xc20d88([0x65,0x76,0x65,0x72,0x79])]((_0x166a67,_0x1e9207)=>_0x1b61ef[_0x1e9207]===_0x166a67||_0x1b61ef[_0x1e9207]===_0xc20d88([0x2a])));}function _0x1d5076(){return _0x5c9f14&&_0x6cc70d?new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x177aed,_0x5ccbc4)=>{_0x5c9f14[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x177aed,_0x5ccbc4),_0x6cc70d[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x3afd92=>{_0x3afd92!=_0xc20d88([0x56,0x61,0x6c,0x69,0x64])&&_0x177aed(_0x3afd92);},_0x5ccbc4);}):_0x5c9f14||_0x6cc70d||_0xc20d88([0x56,0x61,0x6c,0x69,0x64]);}}function _0xfa4f2d(_0x2464e3,_0x4e3624){return new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d5e9c=>{if(_0x5f308d())return _0x2d5e9c(_0xc20d88([0x56,0x61,0x6c,0x69,0x64]));_0x1fb69d(),_0x5501fa[_0xc20d88([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc20d88([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x211751=!0x1;const _0x1e8513=_0xdc22e6();function _0x1132b3(_0x488dd7){return!!_0x488dd7&&(typeof _0x488dd7===_0xc20d88([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x488dd7===_0xc20d88([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x488dd7[_0xc20d88([0x74,0x68,0x65,0x6e])]===_0xc20d88([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x488dd7[_0xc20d88([0x63,0x61,0x74,0x63,0x68])]===_0xc20d88([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27c3a6(_0x3d3d1d){_0x3c4dff(_0x3d3d1d)[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x1fb223=>{if(!_0x1fb223||_0x1fb223[_0xc20d88([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc20d88([0x6f,0x6b]))return _0xc20d88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6ea600(_0x590627(_0x1e8513+_0x4e3624))!=_0x1fb223[_0xc20d88([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc20d88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc20d88([0x56,0x61,0x6c,0x69,0x64]);})[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x17b5ab=>(_0x5acf9a(),_0x17b5ab),()=>{const _0x47bd11=_0x35aea1();return null==_0x47bd11?(_0x5acf9a(),_0xc20d88([0x56,0x61,0x6c,0x69,0x64])):_0xc20d88(_0x392f2d-_0x47bd11>(0x2c81b2db^_0x1fb0e3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x2d5e9c)[_0xc20d88([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d5e9c(_0xc20d88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24818d=0x8bbd85b^_0x1fb0e3;function _0x5acf9a(){const _0x768370=_0xc20d88([0x6c,0x6c,0x63,0x74,0x2d])+_0x6ea600(_0x590627(_0x2464e3)),_0x114138=_0x9bc050(_0x6ea600(window[_0xc20d88([0x4d,0x61,0x74,0x68])][_0xc20d88([0x63,0x65,0x69,0x6c])](_0x392f2d/_0x24818d)));window[_0xc20d88([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc20d88([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x768370,_0x114138);}function _0x35aea1(){const _0x5505f0=_0xc20d88([0x6c,0x6c,0x63,0x74,0x2d])+_0x6ea600(_0x590627(_0x2464e3)),_0x56c796=window[_0xc20d88([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc20d88([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5505f0);return _0x56c796?window[_0xc20d88([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9bc050(_0x56c796),0x10)*_0x24818d:null;}function _0x3c4dff(_0x3710d5){return new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a5c4b,_0x228880)=>{_0x3710d5[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x3a5c4b,_0x228880),window[_0xc20d88([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x228880,0x88ce21b^_0x1fb0e3);});}}_0x5501fa[_0xc20d88([0x6f,0x6e])](_0xc20d88([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4eb03c,_0xa12f25)=>{if(_0xa12f25[0x0]!=_0x2464e3)return _0x2d5e9c(_0xc20d88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa12f25[0x1]={..._0xa12f25[0x1],[_0xc20d88([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e8513};},{[_0xc20d88([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc20d88([0x68,0x69,0x67,0x68])}),_0x5501fa[_0xc20d88([0x6f,0x6e])](_0xc20d88([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x63cd65=>{_0x1132b3(_0x63cd65[_0xc20d88([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x211751=!0x0,_0x27c3a6(_0x63cd65[_0xc20d88([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc20d88([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc20d88([0x6c,0x6f,0x77])}),_0xcfac53[_0xc20d88([0x74,0x68,0x65,0x6e])](()=>{_0x211751||_0x2d5e9c(_0xc20d88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5f308d(){return _0x5501fa[_0xc20d88([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc20d88([0x76,0x69,0x65,0x77])][_0xc20d88([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc20d88([0x61,0x75,0x74,0x6f]);}function _0x1fb69d(){_0x5501fa[_0xc20d88([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc20d88([0x76,0x69,0x65,0x77])][_0xc20d88([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc20d88([0x61,0x75,0x74,0x6f]);}}function _0x2efea7(_0x3a36c3){const _0x4ae9e3=[new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6eca3b=>setTimeout(_0x6eca3b,0x8840817^_0x1fb0e3)),_0xcfac53[_0xc20d88([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e2724=>{let _0x3c967b=0x0;_0x5501fa[_0xc20d88([0x6d,0x6f,0x64,0x65,0x6c])][_0xc20d88([0x6f,0x6e])](_0xc20d88([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42f8c0,_0x1fabd4)=>{_0x1fabd4[0x0][_0xc20d88([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c967b++,_0x3c967b==(0x88d3723^_0x1fb0e3)&&(_0x4e2724(),_0x42f8c0[_0xc20d88([0x6f,0x66,0x66])]());});}))];return window[_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc20d88([0x72,0x61,0x63,0x65])](_0x4ae9e3)[_0xc20d88([0x74,0x68,0x65,0x6e])](()=>_0x3a36c3);}async function _0x55cfc0(){await _0xcfac53,_0x5501fa[_0xc20d88([0x6d,0x6f,0x64,0x65,0x6c])][_0xc20d88([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3029b1,_0x5501fa[_0xc20d88([0x6d,0x6f,0x64,0x65,0x6c])][_0xc20d88([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3029b1,_0x5501fa[_0xc20d88([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc20d88([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13b611(_0x4e6eb9){const _0x5c5227=_0x285607();_0x5501fa[_0x5c5227]=_0xc20d88([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e6eb9,_0x4e6eb9!=_0xc20d88([0x56,0x61,0x6c,0x69,0x64])&&_0x55cfc0();}function _0x285607(){const _0x5f54fb=window[_0xc20d88([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc20d88([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc20d88([0x6e,0x6f,0x77])]())[_0xc20d88([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc20d88([0x2e]),'');let _0x37fb51=_0xc20d88([0x6f]);for(let _0x2645a3=0x0;_0x2645a3<_0x5f54fb[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2645a3+=0x2){let _0x4d3d45=window[_0xc20d88([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f54fb[_0xc20d88([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2645a3,_0x2645a3+0x2));_0x4d3d45>=_0x16ab51[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d3d45-=_0x16ab51[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37fb51+=_0x16ab51[_0x4d3d45];}return _0x37fb51;}function _0x4ffb0d(){const _0x5a0741=_0x58951a[_0xc20d88([0x73,0x70,0x6c,0x69,0x74])](_0xc20d88([0x2e]));if(0x3!=_0x5a0741[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc30169(_0x5a0741[0x1]);function _0xc30169(_0x263bec){const _0x5951c3=_0x11122d(_0x263bec);return _0x5951c3&&_0x390f33()?_0x5951c3:null;function _0x390f33(){const _0x4fe2d7=_0x5951c3[_0xc20d88([0x6a,0x74,0x69])],_0xa31574=window[_0xc20d88([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fe2d7[_0xc20d88([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fe2d7[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ddf2f={..._0x5951c3,[_0xc20d88([0x6a,0x74,0x69])]:_0x4fe2d7[_0xc20d88([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4fe2d7[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ddf2f[_0xc20d88([0x76,0x63])],_0x590627(_0x5ddf2f)==_0xa31574;}}}async function _0x152f20(){let _0x4d8f0c=!0x0;try{const _0x246aa7=_0x58951a[_0xc20d88([0x73,0x70,0x6c,0x69,0x74])](_0xc20d88([0x2e])),[_0x5c8f10,_0x575302,_0x42cbf8]=_0x246aa7;return _0x2ba4ac(_0x5c8f10),await _0xf3f5b2(_0x5c8f10,_0x575302,_0x42cbf8),_0x4d8f0c;}catch(_0x186c1e){return!0x1;}function _0x2ba4ac(_0x5898e7){const _0x35a53a=_0x11122d(_0x5898e7);_0x35a53a&&_0x35a53a[_0xc20d88([0x61,0x6c,0x67])]==_0xc20d88([0x45,0x53,0x32,0x35,0x36])||(_0x4d8f0c=!0x1);}async function _0xf3f5b2(_0x51ef3e,_0x52f771,_0x26b53e){const _0xca65d4=window[_0xc20d88([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc20d88([0x66,0x72,0x6f,0x6d])](_0x3303f2(_0x26b53e),_0x5d22a2=>_0x5d22a2[_0xc20d88([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c9ca8=new window[(_0xc20d88([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc20d88([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51ef3e+_0xc20d88([0x2e])+_0x52f771),_0x50e572=window[_0xc20d88([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc20d88([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50e572)return;const _0x49a38c=await _0x50e572[_0xc20d88([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc20d88([0x6a,0x77,0x6b]),_0x5ee562,{[_0xc20d88([0x6e,0x61,0x6d,0x65])]:_0xc20d88([0x45,0x43,0x44,0x53,0x41]),[_0xc20d88([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc20d88([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc20d88([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50e572[_0xc20d88([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc20d88([0x6e,0x61,0x6d,0x65])]:_0xc20d88([0x45,0x43,0x44,0x53,0x41]),[_0xc20d88([0x68,0x61,0x73,0x68])]:{[_0xc20d88([0x6e,0x61,0x6d,0x65])]:_0xc20d88([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49a38c,_0xca65d4,_0x4c9ca8)||(_0x4d8f0c=!0x1);}}function _0x11122d(_0x31a146){return _0x31a146[_0xc20d88([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc20d88([0x65,0x79]))?JSON[_0xc20d88([0x70,0x61,0x72,0x73,0x65])](_0x3303f2(_0x31a146)):null;}function _0x3303f2(_0x5b1e24){return window[_0xc20d88([0x61,0x74,0x6f,0x62])](_0x5b1e24[_0xc20d88([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc20d88([0x2b]))[_0xc20d88([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc20d88([0x2f])));}function _0x590627(_0x4a5c9b){let _0x510e08=0x1505;function _0x24cae1(_0xc550f6){for(let _0x42a43a=0x0;_0x42a43a<_0xc550f6[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42a43a++){const _0x2b8ddd=_0xc550f6[_0xc20d88([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42a43a);_0x510e08=(_0x510e08<<0x5)+_0x510e08+_0x2b8ddd,_0x510e08&=_0x510e08;}}function _0x4789b0(_0x67fe3){Array[_0xc20d88([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x67fe3)?_0x67fe3[_0xc20d88([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4789b0):_0x67fe3&&typeof _0x67fe3==_0xc20d88([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc20d88([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x67fe3)[_0xc20d88([0x73,0x6f,0x72,0x74])]()[_0xc20d88([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55a8f7,_0x392755])=>{_0x24cae1(_0x55a8f7),_0x4789b0(_0x392755);}):_0x24cae1(window[_0xc20d88([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x67fe3));}return _0x4789b0(_0x4a5c9b),_0x510e08>>>0x0;}function _0x6ea600(_0xca85f3){return _0xca85f3[_0xc20d88([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc20d88([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc20d88([0x30]));}function _0x9bc050(_0x583f85){return _0x583f85[_0xc20d88([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc20d88([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc20d88([0x6a,0x6f,0x69,0x6e])]('');}function _0x3029b1(){}function _0xc20d88(_0x24e1aa){const _0x6a5f53=_0x518f;return _0x24e1aa[_0x6a5f53(0xe4)](_0x46f4af=>String[_0x6a5f53(0xe6)](_0x46f4af))[_0x6a5f53(0xeb)]('');}_0x13b611(await _0x14fc7a());}(this);}[_0x55af7e(0xd6)](){const _0x174ee3=_0x55af7e,_0x212e02=this[_0x174ee3(0xe8)][_0x174ee3(0xcf)][_0x174ee3(0xf3)];_0x212e02[_0x174ee3(0x104)](_0x174ee3(0x10e))&&_0x212e02[_0x174ee3(0xfe)](_0x174ee3(0x10e),{'allowAttributes':[_0x174ee3(0xd8)]}),_0x212e02[_0x174ee3(0x104)](_0x174ee3(0xc8))&&_0x212e02[_0x174ee3(0xfe)](_0x174ee3(0xc8),{'allowAttributes':[_0x174ee3(0xd8)]});}[_0x55af7e(0xef)](){const _0x57d188=_0x55af7e,_0x3ec884=this[_0x57d188(0xe8)];_0x3ec884[_0x57d188(0xf0)][_0x57d188(0xca)](_0x57d188(0x113))[_0x57d188(0x116)]({'model':_0x57d188(0xd8),'view':_0x57d188(0xd2)}),_0x3ec884[_0x57d188(0xf0)][_0x57d188(0xca)](_0x57d188(0xfc))[_0x57d188(0x10b)]({'model':{'key':_0x57d188(0xd8),'value':_0x3765ee=>_0x3765ee[_0x57d188(0x10d)](_0x57d188(0xd2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x16a4d0=_0x3ec884[_0x57d188(0xd3)][_0x57d188(0xcd)](_0x57d188(0x117));_0x16a4d0&&this[_0x57d188(0xe7)](_0x16a4d0,_0x57d188(0x10c),(_0x4cfacb,[_0xf56c45,_0x969b10])=>{const _0x4253df=_0x57d188;_0xf56c45[_0x4253df(0x107)](_0x4253df(0xd8),_0x969b10);});}[_0x55af7e(0x10f)](){const _0xe64f46=_0x55af7e,_0x3dea3d=this[_0xe64f46(0xe8)][_0xe64f46(0xce)][_0xe64f46(0xcd)](_0xe64f46(0x102))||{},_0x27d395=this[_0xe64f46(0xe8)][_0xe64f46(0xce)][_0xe64f46(0xcd)](_0xe64f46(0xde))||'';this[_0xe64f46(0x10a)]=_0x478a41(_0x335bf2[_0xe64f46(0xd9)],_0xe64f46(0xd5),{..._0x3dea3d,'pubkey':_0x27d395,'ctx-name':_0xe64f46(0xe9),'sourceList':'','imgOnly':_0xe64f46(0xd0),'removeCopyright':_0xe64f46(0xd0),'localeName':this[_0xe64f46(0xe8)][_0xe64f46(0xf8)][_0xe64f46(0xfd)],'externalSourcesEmbedCss':_0xe64f46(0xdf)}),this[_0xe64f46(0x10a)][_0xe64f46(0xdc)]=_0x584c75=>{const _0x3422d5=_0xe64f46;if(_0x3422d5(0x109)==_0x584c75)return _0x3422d5(0xda);},_0x335bf2[_0xe64f46(0xd9)][_0xe64f46(0xd7)][_0xe64f46(0x106)](this[_0xe64f46(0x10a)]);}[_0x55af7e(0xf4)](){const _0x406bcf=_0x55af7e;this[_0x406bcf(0xe5)]=_0x478a41(_0x335bf2[_0x406bcf(0xd9)],_0x406bcf(0xf6),{'ctx-name':_0x406bcf(0xe9)}),_0x335bf2[_0x406bcf(0xd9)][_0x406bcf(0xd7)][_0x406bcf(0x106)](this[_0x406bcf(0xe5)]);}[_0x55af7e(0x111)](){const _0x19d60e=_0x55af7e,_0xb70bb3=this[_0x19d60e(0xe8)][_0x19d60e(0xd3)][_0x19d60e(0xcd)](_0x19d60e(0x105));_0xb70bb3&&this[_0x19d60e(0xe7)](_0xb70bb3,_0x19d60e(0xf9),()=>{const _0x4fd96c=_0x19d60e,_0x3cc7a0=this[_0x4fd96c(0xe8)][_0x4fd96c(0xcf)][_0x4fd96c(0xd9)][_0x4fd96c(0xf2)][_0x4fd96c(0xee)]();_0x3cc7a0&&_0x3cc7a0[_0x4fd96c(0x10d)](_0x4fd96c(0xd8))&&this[_0x4fd96c(0xe8)][_0x4fd96c(0xdb)][_0x4fd96c(0xea)][_0x4fd96c(0xd4)](_0x4fd96c(0xf7),()=>{const _0x5853c5=_0x4fd96c;_0xc418a5(this[_0x5853c5(0xe8)],_0x3cc7a0);});});const _0x12eec5=this[_0x19d60e(0xe8)][_0x19d60e(0xd3)][_0x19d60e(0xcd)](_0x19d60e(0xd1));_0x12eec5&&this[_0x19d60e(0xe7)](_0x12eec5,_0x19d60e(0xf9),()=>{const _0x24a9c2=_0x19d60e,_0x1280a2=this[_0x24a9c2(0xe8)][_0x24a9c2(0xcf)][_0x24a9c2(0xd9)][_0x24a9c2(0xf2)][_0x24a9c2(0xee)]();_0x1280a2&&_0x1280a2[_0x24a9c2(0x10d)](_0x24a9c2(0xd8))&&this[_0x24a9c2(0xe8)][_0x24a9c2(0xdb)][_0x24a9c2(0xea)][_0x24a9c2(0xd4)](_0x24a9c2(0xf7),()=>{const _0x2e824e=_0x24a9c2;_0xc418a5(this[_0x2e824e(0xe8)],_0x1280a2);});});}}
|