@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250302.0 → 0.0.0-nightly-next-20250303.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3c7ecf,Command as _0x5b2234}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3103de,IconGooglePhotos as _0x2c72ca,IconGoogleDrive as _0x578fd9,IconFacebook as _0x1a58d6,IconDropbox as _0x2ebf2c,IconUploadcareLink as _0x41c878,IconUploadcareImageUpload as _0x55275f,IconError as et,IconUploadcareImageEdit as _0x236b3d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1d8670,MenuBarMenuListItemButtonView as _0x9b6d1c,View as _0x212dc7,FocusCycler as _0x7d79e0,Dialog as _0x1dce13,DialogViewPosition as _0x23ce91,SpinnerView as _0x5e8cef,IconView as at,Notification as _0xfc82fc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x45e134,DomEmitterMixin as _0xcb1c3,global as _0x42591f,getAncestors as _0x450b21,ObservableMixin as _0x499df2,createElement as _0x5ef6b0,uid as _0x5df048}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3a259a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x23a7b5,info as _0x33541a}from'@uploadcare/upload-client';import*as _0x2957a5 from'@uploadcare/file-uploader';var o=function(_0x5118e8){return _0x5118e8['Local']='local',_0x5118e8['URL']='url',_0x5118e8['Dropbox']='dropbox',_0x5118e8['GDrive']='gdrive',_0x5118e8['Facebook']='facebook',_0x5118e8['GPhotos']='gphotos',_0x5118e8['OneDrive']='onedrive',_0x5118e8;}({});function _(_0x4b6843,_0x417bd5,_0x280ab6){const t=_0x4b6843['t'],_0x6e9b87=_0x4b6843['t'];switch(_0x417bd5){case o['Local']:return{'text':_0x6e9b87('Insert'===_0x280ab6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x6e9b87('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x280ab6?_0x6e9b87('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x6e9b87('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x280ab6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x280ab6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x280ab6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x280ab6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x280ab6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x417bd5;}}class e extends _0x3c7ecf{['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 _0x172b17=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x491379;for(const _0x4c8d9f in _0x172b17){const _0x4cd880=_0x4c8d9f,_0x56618f=_0x172b17[_0x4cd880];if('uploadcareLicenseKeyValid'==_0x56618f||'uploadcareLicenseKeyInvalid'==_0x56618f||'uploadcareLicenseKeyExpired'==_0x56618f||'uploadcareLicenseKeyDomainLimit'==_0x56618f||'uploadcareLicenseKeyNotAllowed'==_0x56618f||'uploadcareLicenseKeyEvaluationLimit'==_0x56618f||'uploadcareLicenseKeyTrialLimit'==_0x56618f||'uploadcareLicenseKeyUsageLimit'==_0x56618f){delete _0x172b17[_0x4cd880],_0x491379=_0x56618f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x491379&&_0x172b17['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x491379&&_0x172b17['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x491379&&_0x172b17['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x491379&&_0x172b17['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x491379&&_0x172b17['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x491379&&_0x172b17['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x491379&&_0x172b17['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4950c1}=this,_0x153f55=_0x4950c1['commands']['get']('uploadcare');if(!_0x153f55)return;const _0x3aee97=this['_normalizeConfigSourceList'](_0x4950c1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x11e0dd,_0x515fbf)=>{const _0x28f7c3=this['_getIntegrationKey'](_0x515fbf['type']);return _0x11e0dd[_0x28f7c3]||(_0x11e0dd[_0x28f7c3]=[]),_0x11e0dd[_0x28f7c3]['push'](_0x515fbf),_0x11e0dd;},{});_0x4950c1['plugins']['has']('ImageInsertUI')&&_0x4950c1['commands']['get']('uploadcare')&&Object['entries'](_0x3aee97)['forEach'](([_0x516b3b,_0x4aee91])=>{_0x4950c1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x516b3b,'observable':()=>_0x153f55,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4aee91),'formViewCreator':()=>this['_createDropdownButtons'](_0x4aee91),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4aee91),'override':'assetManager'!==_0x516b3b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x49a0e9){const {locale:_0x218a4b}=this['editor'];return _0x49a0e9['map'](_0x18889b=>{const _0x1bb10b=_(_0x218a4b,_0x18889b,'Insert');switch(_0x18889b){case o['Local']:return{'icon':_0x55275f,'type':o['Local'],..._0x1bb10b};case o['URL']:return{'icon':_0x41c878,'type':o['URL'],..._0x1bb10b};case o['Dropbox']:return{'icon':_0x2ebf2c,'type':o['Dropbox'],..._0x1bb10b};case o['Facebook']:return{'icon':_0x1a58d6,'type':o['Facebook'],..._0x1bb10b};case o['GDrive']:return{'icon':_0x578fd9,'type':o['GDrive'],..._0x1bb10b};case o['GPhotos']:return{'icon':_0x2c72ca,'type':o['GPhotos'],..._0x1bb10b};case o['OneDrive']:return{'icon':_0x3103de,'type':o['OneDrive'],..._0x1bb10b};}});}['_getIntegrationKey'](_0x94b39b){switch(_0x94b39b){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4c689a,_0x151394){const _0x589ec2=this['editor'],_0x13ed91=new _0x4c689a(_0x589ec2['locale']),_0x10ef5f=_0x589ec2['commands']['get']('uploadcare');return _0x13ed91['bind']('isEnabled')['to'](_0x10ef5f),_0x13ed91['on']('execute',()=>{_0x10ef5f['execute'](_0x151394);}),_0x13ed91;}['_createToolbarButton'](_0x424016){const {locale:_0x1d3493}=this['editor'],_0x11047b=this['editor']['plugins']['get']('ImageInsertUI'),_0xc59529=_0x424016[0x0],_0x337283=this['_createButton'](_0x1d8670,_0xc59529['type']);return _0x337283['icon']=_0xc59529['icon'],_0x337283['bind']('label')['to'](_0x11047b,'isImageSelected',_0xbae7b6=>_(_0x1d3493,_0xc59529['type'],_0xbae7b6?'Replace':'Insert')['text']),_0x337283['tooltip']=!0x0,_0x337283;}['_createDropdownButtons'](_0x4f3b3b){const {locale:_0x106fd4}=this['editor'],_0x4c882c=this['editor']['plugins']['get']('ImageInsertUI');return _0x4f3b3b['map'](_0xa849db=>{const _0x2587ad=this['_createButton'](_0x1d8670,_0xa849db['type']);return _0x2587ad['withText']=!0x0,_0x2587ad['icon']=_0xa849db['icon'],_0x2587ad['bind']('label')['to'](_0x4c882c,'isImageSelected',_0x355854=>_(_0x106fd4,_0xa849db['type'],_0x355854?'Replace':'Insert')['text']),_0x2587ad;});}['_createMenuBarButtons'](_0x18c8eb){return _0x18c8eb['map'](_0x37d6d7=>{const _0x2d9bd9=this['_createButton'](_0x9b6d1c,_0x37d6d7['type']);return _0x2d9bd9['icon']=_0x37d6d7['icon'],_0x2d9bd9['label']=_0x37d6d7['shortText'],_0x2d9bd9;});}}class q extends _0x212dc7{['focusTracker'];['focusCycler'];constructor(_0x51a964){super(_0x51a964),this['focusTracker']=new _0x45e134(),this['focusCycler']=new _0x7d79e0({'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(_0x235473){super(_0x235473),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(_0x4e4c60,_0x4bc4b2){const _0x48a177=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x70088a=>_0x70088a<=_0x4bc4b2)['map'](_0x595628=>_0x4e4c60['replace'](/\/$/,'')+'/-/resize/'+_0x595628+'x/\x20'+_0x595628+'w');return{'imageFallbackUrl':_0x4e4c60,'imageSources':[{'srcset':_0x48a177['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4bc4b2+'px)\x20100vw,\x20'+_0x4bc4b2+'px','type':'image/webp'}]};}function A(_0x522a64,_0x3cec62,_0xb11951){const _0x378666=_0x522a64['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x378666?parseInt(_0x378666[0x1],0xa):_0x3cec62,'height':_0x378666?parseInt(_0x378666[0x2],0xa):_0xb11951};}function m(_0x16a746,_0x4a6767){const _0x79687=Object['create'](_0xcb1c3),_0x1b877f=_0x16a746['plugins']['get']('ImageUtils'),_0x5ccb76=_0x16a746['editing']['mapper']['toViewElement'](_0x4a6767),_0x2e75f6=_0x1b877f['findViewImgElement'](_0x5ccb76),_0x79943c=_0x16a746['editing']['view']['domConverter']['viewToDom'](_0x2e75f6),_0x316195=_0x4a6767['getAttribute']('width'),_0x287e08=_0x4a6767['getAttribute']('height'),_0xfefc1b='image-processing';_0x16a746['editing']['view']['change'](_0x1ca86d=>{_0x1ca86d['addClass'](_0xfefc1b,_0x5ccb76),_0x1ca86d['setStyle']('aspect-ratio',_0x316195+'/'+_0x287e08,_0x2e75f6);}),_0x79687['listenTo'](_0x79943c,'load',()=>{_0x79687['stopListening'](_0x79943c,'load'),_0x16a746['editing']['view']['change'](_0x1a8a6d=>{_0x1a8a6d['removeClass'](_0xfefc1b,_0x5ccb76),_0x1a8a6d['removeStyle']('aspect-ratio',_0x2e75f6);});});}function V(_0x4de3f5){if(Array['isArray'](_0x4de3f5)){const _0x29129b=_0x4de3f5['map'](V);return _0x14ae44=>_0x29129b['some'](_0x5401f4=>_0x5401f4(_0x14ae44));}if('origin'==_0x4de3f5){const _0x340c8d=_0x42591f['window']['location']['origin'];return _0x5941f7=>new URL(_0x5941f7,_0x42591f['document']['baseURI'])['origin']==_0x340c8d;}return'function'==typeof _0x4de3f5?_0x4de3f5:_0x4de3f5 instanceof RegExp?_0x1091a5=>!(!_0x1091a5['match'](_0x4de3f5)&&!_0x1091a5['replace'](/^https?:\/\//,'')['match'](_0x4de3f5)):()=>!0x1;}function F(_0x316ccb,_0x11d596){return _0x450b21(_0x316ccb['target'])['includes'](_0x11d596);}class l extends/* #__PURE__ -- @preserve */
24
- _0x499df2(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4926c8,_0x98aca9,_0x25b5d0){super(),this['_editor']=_0x4926c8,this['_editing']=_0x98aca9,this['_dialog']=_0x4926c8['plugins']['get'](_0x1dce13),this['_api']=_0x98aca9['ctxElement']['getAPI'](),this['_type']=_0x25b5d0,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:_0xe4333f,model:_0x57e4c8}=this['_editor'],_0x11fac1=_0x57e4c8['document']['selection']['getSelectedElement'](),_0x2bce8a=_0x11fac1&&(_0x11fac1['is']('element','imageBlock')||_0x11fac1['is']('element','imageInline'));this['_formView']=new S(_0xe4333f),this['_dialog']['show']({'id':'uploadCare','icon':_0x55275f,'title':_(_0xe4333f,this['_type'],_0x2bce8a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x23ce91['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x30c4ad=>!F(_0x30c4ad,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1eaa4f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2f71d4=>{const _0x4eb8de=_0x1eaa4f['length'];for(const _0x5bd0b2 of _0x1eaa4f){const _0xde6e37=_0x5bd0b2===_0x1eaa4f[_0x4eb8de-0x1],{cdnUrl:_0x5ba43a,fileInfo:_0x2169ce}=_0x5bd0b2;if(!_0x5ba43a||!_0x2169ce)continue;const {width:_0x5498cc,height:_0x3bfa8d}=_0x2169ce['imageInfo'],_0x5bfed7=A(_0x5ba43a,_0x5498cc,_0x3bfa8d),_0x5af987=E(_0x5ba43a,_0x5bfed7['width']),_0xd6550f={'id':_0x2169ce['uuid'],'type':'image','attributes':{'imageDimension':_0x5bfed7,..._0x5af987}};this['_insertAsset'](_0xd6550f,_0xde6e37,_0x2f71d4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2015cd=>{'idle'===_0x2015cd['detail']['status']&&!_0x2015cd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x74313a,_0x26489a,_0x4faa8f){const _0x14ffe7=this['_editor']['model']['document']['selection'],_0x401c56=_0x14ffe7['getSelectedElement'](),_0x3b8c86=!(!_0x401c56||!_0x401c56['is']('element','imageInline'));_0x4faa8f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x74313a,_0x3b8c86),_0x26489a||_0x4faa8f['setSelection'](_0x14ffe7['getLastPosition']());}['_insertImage'](_0x3b6ee3,_0x3e6b68){const _0x42f3bf=this['_editor'],{imageDimension:_0xc6021a,imageFallbackUrl:_0x520235,imageSources:_0x282591}=_0x3b6ee3['attributes'];_0x42f3bf['execute']('insertImage',{'imageType':_0x3e6b68?'imageInline':null,'source':{'uploadcareImageId':_0x3b6ee3['id'],'src':_0x520235,'sources':_0x282591,..._0xc6021a}});}}class n extends _0x5b2234{['_editing'];['_controller']=null;static get['requires'](){return[_0x1dce13,i];}constructor(_0x436847){super(_0x436847),this['_editing']=_0x436847['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2972d5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2972d5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x22cc6a,publicKey:_0x3ae423,signal:_0x122712,onProgress:_0x4e19a3}){return _0x23a7b5(_0x22cc6a,{'publicKey':_0x3ae423,'store':'auto','signal':_0x122712,'onProgress':_0x4e19a3});}static['getInfo'](_0x5762a3,_0x1c9efd){return _0x33541a(_0x5762a3,_0x1c9efd);}}class p extends _0x3c7ecf{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3a259a,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x463f8d=this['editor'];if(!!!_0x463f8d['config']['get']('uploadcare'))return;_0x463f8d['plugins']['get'](_0x3a259a)['createUploadAdapter']=_0x493c8a=>new x(_0x493c8a,_0x463f8d),_0x463f8d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x99f0ea,{imageElement:_0xd22c91,data:_0x5bc28e})=>{_0x463f8d['model']['change'](_0x52dd7c=>{_0x52dd7c['setAttribute']('uploadcareImageId',_0x5bc28e['uploadcareImageId'],_0xd22c91);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x19e6fe,_0x481fd4){this['loader']=_0x19e6fe,this['editor']=_0x481fd4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xcf390e=this['editor']['config']['get']('uploadcare.pubkey'),_0x5ea347=await this['loader']['file'];return C['upload']({'file':_0x5ea347,'publicKey':_0xcf390e,'signal':this['controller']['signal'],'onProgress':_0x446a95=>{_0x446a95&&_0x446a95['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x446a95['value']);}})['then'](async _0x4bfd19=>{const {imageFallbackUrl:_0x39c1fb,imageSources:_0x34f565}=E(_0x4bfd19['cdnUrl'],_0x4bfd19['imageInfo']['width']);return{'uploadcareImageId':_0x4bfd19['uuid'],'default':_0x39c1fb,'sources':_0x34f565};})['catch'](()=>{const _0x2e912f=t('Cannot\x20upload\x20file:')+('\x20'+_0x5ea347['name']+'.');return Promise['reject'](_0x2e912f);});}['abort'](){this['controller']['abort']();}}class i extends _0x3c7ecf{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1dce13];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x57b0ad=this['editor'];_0x57b0ad['commands']['add']('uploadcare',new n(_0x57b0ad));}['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 _0x36d1bb=_0x42591f['document']['querySelector']('input[uploadcare-file-input]');_0x36d1bb&&_0x36d1bb['remove']();}),async function(_0x53551b){const _0x2bc0d3=_0x19b446([0x66,0x5a,0x47,0x6e,0x6b,0x45,0x6c,0x35,0x4e,0x7a,0x4d,0x58,0x61,0x62,0x34,0x52,0x49,0x4a,0x74,0x59,0x68,0x70,0x30,0x50,0x4b,0x46,0x77,0x33,0x71,0x6d,0x42,0x54,0x79,0x73,0x38,0x53,0x78,0x69,0x4c,0x31,0x51,0x56,0x32,0x4f,0x6f,0x43,0x65,0x36,0x75,0x48,0x6a,0x57,0x63,0x39,0x64,0x55,0x41,0x67,0x44,0x37,0x76,0x72]),_0x404758=0x85e1710,_0x1bdc4b=0x85977e8^_0x404758,_0x4a5393=window[_0x19b446([0x44,0x61,0x74,0x65])][_0x19b446([0x6e,0x6f,0x77])](),_0xc139f1=_0x53551b[_0x19b446([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d175e=new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4db2c0=>{_0xc139f1[_0x19b446([0x6f,0x6e,0x63,0x65])](_0x19b446([0x72,0x65,0x61,0x64,0x79]),_0x4db2c0);}),_0x1627f1={[_0x19b446([0x6b,0x74,0x79])]:_0x19b446([0x45,0x43]),[_0x19b446([0x75,0x73,0x65])]:_0x19b446([0x73,0x69,0x67]),[_0x19b446([0x63,0x72,0x76])]:_0x19b446([0x50,0x2d,0x32,0x35,0x36]),[_0x19b446([0x78])]:_0x19b446([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]),[_0x19b446([0x79])]:_0x19b446([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]),[_0x19b446([0x61,0x6c,0x67])]:_0x19b446([0x45,0x53,0x32,0x35,0x36])},_0xab00f7=_0xc139f1[_0x19b446([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x19b446([0x67,0x65,0x74])](_0x19b446([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x529e22(){let _0x44154e,_0x55442c=null,_0x11c0af=null;try{if(_0xab00f7==_0x19b446([0x47,0x50,0x4c]))return _0x19b446([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44154e=_0x6fdaec(),!_0x44154e)return _0x19b446([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44154e[_0x19b446([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11c0af=_0x5da58a(_0x44154e[_0x19b446([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44154e[_0x19b446([0x6a,0x74,0x69])])),await _0x57b05b()?_0x47669d()?_0x4fb96c()?_0x19b446([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x571b26()?(_0x44154e[_0x19b446([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19b446([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55442c=_0xa78837(_0x19b446([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44154e[_0x19b446([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19b446([0x74,0x72,0x69,0x61,0x6c])&&(_0x55442c=_0xa78837(_0x19b446([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x47ab7f()):_0x19b446([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x19b446([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x19b446([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1e47b2){return _0x19b446([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4fb96c(){const _0x10e3b0=[_0x19b446([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x19b446([0x74,0x72,0x69,0x61,0x6c])][_0x19b446([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44154e[_0x19b446([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a5393/0x3e8:0xe10*_0x1bdc4b;return _0x44154e[_0x19b446([0x65,0x78,0x70])]<_0x10e3b0;}function _0x47669d(){const _0x50f29e=_0x44154e[_0x19b446([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x50f29e&&(!!_0x50f29e[_0x19b446([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b446([0x2a]))||!!_0x50f29e[_0x19b446([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b446([0x55,0x50,0x4c,0x43])));}function _0x571b26(){const _0x18bb15=_0x44154e[_0x19b446([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18bb15||0x0==_0x18bb15[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x540311}=new URL(window[_0x19b446([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18bb15[_0x19b446([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x540311))return!0x0;const _0x4080f2=_0x540311[_0x19b446([0x73,0x70,0x6c,0x69,0x74])](_0x19b446([0x2e]));return _0x18bb15[_0x19b446([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x96b277=>_0x96b277[_0x19b446([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b446([0x2a])))[_0x19b446([0x6d,0x61,0x70])](_0x135c28=>_0x135c28[_0x19b446([0x73,0x70,0x6c,0x69,0x74])](_0x19b446([0x2e])))[_0x19b446([0x73,0x6f,0x6d,0x65])](_0x54eed5=>_0x4080f2[_0x19b446([0x65,0x76,0x65,0x72,0x79])]((_0x422d70,_0x397651)=>_0x54eed5[_0x397651]===_0x422d70||_0x54eed5[_0x397651]===_0x19b446([0x2a])));}function _0x47ab7f(){return _0x55442c&&_0x11c0af?new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35eb86,_0x49f3ad)=>{_0x55442c[_0x19b446([0x74,0x68,0x65,0x6e])](_0x35eb86,_0x49f3ad),_0x11c0af[_0x19b446([0x74,0x68,0x65,0x6e])](_0x4d6b74=>{_0x4d6b74!=_0x19b446([0x56,0x61,0x6c,0x69,0x64])&&_0x35eb86(_0x4d6b74);},_0x49f3ad);}):_0x55442c||_0x11c0af||_0x19b446([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5da58a(_0x90f36d,_0x3f968c){return new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x233e51=>{if(_0x24fc61())return _0x233e51(_0x19b446([0x56,0x61,0x6c,0x69,0x64]));_0x401637(),_0xc139f1[_0x19b446([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x19b446([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x466cb1=!0x1;const _0x3dbb5b=_0x5df048();function _0x2d9893(_0x3dadcb){return!!_0x3dadcb&&(typeof _0x3dadcb===_0x19b446([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3dadcb===_0x19b446([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3dadcb[_0x19b446([0x74,0x68,0x65,0x6e])]===_0x19b446([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3dadcb[_0x19b446([0x63,0x61,0x74,0x63,0x68])]===_0x19b446([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40e628(_0x172148){_0x4208f2(_0x172148)[_0x19b446([0x74,0x68,0x65,0x6e])](_0x34b75b=>{if(!_0x34b75b||_0x34b75b[_0x19b446([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x19b446([0x6f,0x6b]))return _0x19b446([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e1e77(_0x8a388b(_0x3dbb5b+_0x3f968c))!=_0x34b75b[_0x19b446([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x19b446([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x19b446([0x56,0x61,0x6c,0x69,0x64]);})[_0x19b446([0x74,0x68,0x65,0x6e])](_0x5a5874=>(_0x2f2c68(),_0x5a5874),()=>{const _0x23bc46=_0x5aa103();return null==_0x23bc46?(_0x2f2c68(),_0x19b446([0x56,0x61,0x6c,0x69,0x64])):_0x19b446(_0x4a5393-_0x23bc46>(0x2c529310^_0x404758)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x19b446([0x74,0x68,0x65,0x6e])](_0x233e51)[_0x19b446([0x63,0x61,0x74,0x63,0x68])](()=>{_0x233e51(_0x19b446([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ed038=0x868f990^_0x404758;function _0x2f2c68(){const _0xc24624=_0x19b446([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e1e77(_0x8a388b(_0x90f36d)),_0x5730e4=_0x1d1932(_0x5e1e77(window[_0x19b446([0x4d,0x61,0x74,0x68])][_0x19b446([0x63,0x65,0x69,0x6c])](_0x4a5393/_0x1ed038)));window[_0x19b446([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19b446([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc24624,_0x5730e4);}function _0x5aa103(){const _0x2502a4=_0x19b446([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e1e77(_0x8a388b(_0x90f36d)),_0x3635a0=window[_0x19b446([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19b446([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2502a4);return _0x3635a0?window[_0x19b446([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d1932(_0x3635a0),0x10)*_0x1ed038:null;}function _0x4208f2(_0x3259cc){return new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a99a9,_0x38adbd)=>{_0x3259cc[_0x19b446([0x74,0x68,0x65,0x6e])](_0x2a99a9,_0x38adbd),window[_0x19b446([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38adbd,0x85fc3d0^_0x404758);});}}_0xc139f1[_0x19b446([0x6f,0x6e])](_0x19b446([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x335d7d,_0x3ebdcf)=>{if(_0x3ebdcf[0x0]!=_0x90f36d)return _0x233e51(_0x19b446([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ebdcf[0x1]={..._0x3ebdcf[0x1],[_0x19b446([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3dbb5b};},{[_0x19b446([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19b446([0x68,0x69,0x67,0x68])}),_0xc139f1[_0x19b446([0x6f,0x6e])](_0x19b446([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28b15f=>{_0x2d9893(_0x28b15f[_0x19b446([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x466cb1=!0x0,_0x40e628(_0x28b15f[_0x19b446([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x19b446([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19b446([0x6c,0x6f,0x77])}),_0x3d175e[_0x19b446([0x74,0x68,0x65,0x6e])](()=>{_0x466cb1||_0x233e51(_0x19b446([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24fc61(){return _0xc139f1[_0x19b446([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19b446([0x76,0x69,0x65,0x77])][_0x19b446([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x19b446([0x61,0x75,0x74,0x6f]);}function _0x401637(){_0xc139f1[_0x19b446([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19b446([0x76,0x69,0x65,0x77])][_0x19b446([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19b446([0x61,0x75,0x74,0x6f]);}}function _0xa78837(_0x410dd8){const _0x4eeb6c=[new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b3588=>setTimeout(_0x5b3588,0x85729dc^_0x404758)),_0x3d175e[_0x19b446([0x74,0x68,0x65,0x6e])](()=>new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5981c4=>{let _0x46fcae=0x0;_0xc139f1[_0x19b446([0x6d,0x6f,0x64,0x65,0x6c])][_0x19b446([0x6f,0x6e])](_0x19b446([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x115e94,_0x324f2e)=>{_0x324f2e[0x0][_0x19b446([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x46fcae++,_0x46fcae==(0x85e16e8^_0x404758)&&(_0x5981c4(),_0x115e94[_0x19b446([0x6f,0x66,0x66])]());});}))];return window[_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19b446([0x72,0x61,0x63,0x65])](_0x4eeb6c)[_0x19b446([0x74,0x68,0x65,0x6e])](()=>_0x410dd8);}async function _0x3352d0(){await _0x3d175e,_0xc139f1[_0x19b446([0x6d,0x6f,0x64,0x65,0x6c])][_0x19b446([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x11e985,_0xc139f1[_0x19b446([0x6d,0x6f,0x64,0x65,0x6c])][_0x19b446([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x11e985,_0xc139f1[_0x19b446([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x19b446([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a522d(_0x245929){const _0x3c52ae=_0x286963();_0xc139f1[_0x3c52ae]=_0x19b446([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x245929,_0x245929!=_0x19b446([0x56,0x61,0x6c,0x69,0x64])&&_0x3352d0();}function _0x286963(){const _0x7b27fd=window[_0x19b446([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x19b446([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x19b446([0x6e,0x6f,0x77])]())[_0x19b446([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x19b446([0x2e]),'');let _0x38164a=_0x19b446([0x66]);for(let _0x2ab049=0x0;_0x2ab049<_0x7b27fd[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ab049+=0x2){let _0x4f5168=window[_0x19b446([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7b27fd[_0x19b446([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ab049,_0x2ab049+0x2));_0x4f5168>=_0x2bc0d3[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f5168-=_0x2bc0d3[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38164a+=_0x2bc0d3[_0x4f5168];}return _0x38164a;}function _0x6fdaec(){const _0x5a3d1f=_0xab00f7[_0x19b446([0x73,0x70,0x6c,0x69,0x74])](_0x19b446([0x2e]));if(0x3!=_0x5a3d1f[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34333f(_0x5a3d1f[0x1]);function _0x34333f(_0x328421){const _0x4c4fb4=_0x59115d(_0x328421);return _0x4c4fb4&&_0x1d1500()?_0x4c4fb4:null;function _0x1d1500(){const _0x122b45=_0x4c4fb4[_0x19b446([0x6a,0x74,0x69])],_0x54a3c7=window[_0x19b446([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x122b45[_0x19b446([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x122b45[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xeb597d={..._0x4c4fb4,[_0x19b446([0x6a,0x74,0x69])]:_0x122b45[_0x19b446([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x122b45[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xeb597d[_0x19b446([0x76,0x63])],_0x8a388b(_0xeb597d)==_0x54a3c7;}}}async function _0x57b05b(){let _0x50c03d=!0x0;try{const _0x1c427f=_0xab00f7[_0x19b446([0x73,0x70,0x6c,0x69,0x74])](_0x19b446([0x2e])),[_0x31881e,_0x273ecd,_0x5ea14b]=_0x1c427f;return _0x181847(_0x31881e),await _0x1efcfb(_0x31881e,_0x273ecd,_0x5ea14b),_0x50c03d;}catch(_0x3c71ad){return!0x1;}function _0x181847(_0x42f624){const _0x58c45f=_0x59115d(_0x42f624);_0x58c45f&&_0x58c45f[_0x19b446([0x61,0x6c,0x67])]==_0x19b446([0x45,0x53,0x32,0x35,0x36])||(_0x50c03d=!0x1);}async function _0x1efcfb(_0x403bea,_0xe09aa8,_0x1ce8f3){const _0x51aef1=window[_0x19b446([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x19b446([0x66,0x72,0x6f,0x6d])](_0x4daecc(_0x1ce8f3),_0x4bed9f=>_0x4bed9f[_0x19b446([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x190e3a=new window[(_0x19b446([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x19b446([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x403bea+_0x19b446([0x2e])+_0xe09aa8),_0x1bbe44=window[_0x19b446([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x19b446([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1bbe44)return;const _0x5a9583=await _0x1bbe44[_0x19b446([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x19b446([0x6a,0x77,0x6b]),_0x1627f1,{[_0x19b446([0x6e,0x61,0x6d,0x65])]:_0x19b446([0x45,0x43,0x44,0x53,0x41]),[_0x19b446([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x19b446([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x19b446([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1bbe44[_0x19b446([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x19b446([0x6e,0x61,0x6d,0x65])]:_0x19b446([0x45,0x43,0x44,0x53,0x41]),[_0x19b446([0x68,0x61,0x73,0x68])]:{[_0x19b446([0x6e,0x61,0x6d,0x65])]:_0x19b446([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a9583,_0x51aef1,_0x190e3a)||(_0x50c03d=!0x1);}}function _0x59115d(_0x11c675){return _0x11c675[_0x19b446([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x19b446([0x65,0x79]))?JSON[_0x19b446([0x70,0x61,0x72,0x73,0x65])](_0x4daecc(_0x11c675)):null;}function _0x4daecc(_0x2ff671){return window[_0x19b446([0x61,0x74,0x6f,0x62])](_0x2ff671[_0x19b446([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x19b446([0x2b]))[_0x19b446([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x19b446([0x2f])));}function _0x8a388b(_0xe62fd0){let _0x425357=0x1505;function _0xe747fe(_0x52fd14){for(let _0x1e1b60=0x0;_0x1e1b60<_0x52fd14[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e1b60++){const _0x11cbd7=_0x52fd14[_0x19b446([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e1b60);_0x425357=(_0x425357<<0x5)+_0x425357+_0x11cbd7,_0x425357&=_0x425357;}}function _0x32a355(_0x583fa8){Array[_0x19b446([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x583fa8)?_0x583fa8[_0x19b446([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32a355):_0x583fa8&&typeof _0x583fa8==_0x19b446([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x19b446([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x583fa8)[_0x19b446([0x73,0x6f,0x72,0x74])]()[_0x19b446([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46aded,_0x3b24e0])=>{_0xe747fe(_0x46aded),_0x32a355(_0x3b24e0);}):_0xe747fe(window[_0x19b446([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x583fa8));}return _0x32a355(_0xe62fd0),_0x425357>>>0x0;}function _0x5e1e77(_0xabd680){return _0xabd680[_0x19b446([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x19b446([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x19b446([0x30]));}function _0x1d1932(_0x2d021d){return _0x2d021d[_0x19b446([0x73,0x70,0x6c,0x69,0x74])]('')[_0x19b446([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x19b446([0x6a,0x6f,0x69,0x6e])]('');}function _0x11e985(){}function _0x19b446(_0x3601a0){return _0x3601a0['map'](_0x5a36d1=>String['fromCharCode'](_0x5a36d1))['join']('');}_0x4a522d(await _0x529e22());}(this);}['_initSchema'](){const _0x118165=this['editor']['model']['schema'];_0x118165['isRegistered']('imageBlock')&&_0x118165['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x118165['isRegistered']('imageInline')&&_0x118165['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4b967b=this['editor'];_0x4b967b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4b967b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1c0926=>_0x1c0926['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xd7e224=_0x4b967b['commands']['get']('replaceImageSource');_0xd7e224&&this['listenTo'](_0xd7e224,'cleanupImage',(_0x21f822,[_0x351b95,_0x55173d])=>{_0x351b95['removeAttribute']('uploadcareImageId',_0x55173d);});}['_initConfig'](){const _0x2b8074=this['editor']['config']['get']('uploadcare.uploader')||{},_0x59f575=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5ef6b0(_0x42591f['document'],'uc-config',{..._0x2b8074,'pubkey':_0x59f575,'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']=_0x4c95f6=>{if('closeMax'==_0x4c95f6)return'#uc-icon-arrow-down';},_0x42591f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5ef6b0(_0x42591f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x42591f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3a173f=this['editor']['commands']['get']('insertImage');_0x3a173f&&this['listenTo'](_0x3a173f,'execute',()=>{const _0x10cf99=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10cf99&&_0x10cf99['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x10cf99);});});const _0x4bd7ae=this['editor']['commands']['get']('uploadcareImageReplace');_0x4bd7ae&&this['listenTo'](_0x4bd7ae,'execute',()=>{const _0xf3aec3=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf3aec3&&_0xf3aec3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xf3aec3);});});}}class u extends _0x3c7ecf{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41909a){super(_0x41909a),_0x41909a['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2957a5['defineComponents'](_0x2957a5);}}class ta extends _0x212dc7{constructor(_0x5ecf07){super(_0x5ecf07);const t=_0x5ecf07['t'],_0x1ec9bc=this['bindTemplate'],_0x3d4df5=new _0x5e8cef();_0x3d4df5['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':[_0x3d4df5,{'text':_0x1ec9bc['to']('imageUploadProgress',_0x529eae=>t('Loading\x20image...')+'\x20('+(_0x529eae||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 _0x212dc7{constructor(_0x586f55){super(_0x586f55);const t=_0x586f55['t'];this['set']('errorType',null);const _0x87ffd7=new _0x1d8670(_0x586f55);_0x87ffd7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x87ffd7['withText']=!0x0,_0x87ffd7['class']='ck-button-action',_0x87ffd7['on']('execute',()=>{this['fire']('retry');}),_0x87ffd7['bind']('isVisible')['to'](this,'errorType',_0x369011=>'NotFound'!==_0x369011);const _0x18e7b3=new at();_0x18e7b3['content']=et,_0x18e7b3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x7d8d14=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':[_0x18e7b3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x7d8d14['to']('errorType',_0x416cec=>t('NotFound'!==_0x416cec?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x87ffd7]},{'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 _0x212dc7{constructor(_0xdc465c,_0x27efe0){super(_0xdc465c);const _0x32efcd=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x27efe0,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x32efcd['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5afc2a,_0x56bfa8,_0xdc324e){super(_0x5afc2a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5afc2a),this['_errorView']=new rt(_0x5afc2a),this['_editingView']=new tt(_0x5afc2a,_0xdc324e),this['_focusableView']=new _0x212dc7(_0x5afc2a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x56bfa8),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'],_0x237578=>{this['_addUploadcareImageEditorListeners'](_0x237578);});}),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'](_0x4f8b14,_0x64ad6f){const _0x5c107f='uc-cloud-image-editor',_0x3bf589=_0x4f8b14['querySelector'](_0x5c107f);if(_0x3bf589)return _0x64ad6f(_0x3bf589);const _0x47b3af=new MutationObserver(_0x4d4343=>{const _0x264c92=_0x4d4343['filter'](_0x3d55d4=>_0x3d55d4['target']===_0x4f8b14&&_0x3d55d4['addedNodes']['length']>0x0&&_0x3d55d4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5c107f);_0x264c92['length']&&(_0x47b3af['disconnect'](),_0x64ad6f(_0x264c92[0x0]['addedNodes'][0x0]));});_0x47b3af['observe'](_0x4f8b14,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xd19936){_0xd19936['addEventListener']('apply',_0x2495c8=>{this['fire']('apply',{'imageSrc':_0x2495c8['detail']['cdnUrl']});}),_0xd19936['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x499df2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5bc347,_0x27c2e1,_0x35ebc5){super(),this['_editor']=_0x5bc347,this['_dialog']=_0x27c2e1,this['_imageElement']=_0x35ebc5,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 _0x51e7a7=this['_imageElement'],_0x274521=_0x51e7a7['getAttribute']('uploadcareImageId'),_0x5c6a9f=_0x51e7a7['getAttribute']('src');if(_0x274521)await this['_loadImageInfo'](_0x274521,_0x5c6a9f);else{if(this['_imageCache']['has'](_0x5c6a9f)){const _0x4ec251=this['_imageCache']['get'](_0x5c6a9f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ec251['url'],this['imageDimension']=_0x4ec251['dimension'],this['imageId']=_0x4ec251['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x40be7a}=this['_editor'],t=_0x40be7a['t'],_0x2788fe=new Z(_0x40be7a,this['imageStatus'],this['_attributes']);_0x2788fe['bind']('status')['to'](this,'imageStatus'),_0x2788fe['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2788fe['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2788fe['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2788fe,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x236b3d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2788fe,'position':_0x23ce91['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2788fe['focus']();},'onHide':()=>{_0x2788fe['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x252598=>!F(_0x252598,_0x2788fe['element'])}});}['_loadImageInfo'](_0x36f661,_0x1e6f07){return C['getInfo'](_0x36f661,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3770ac=>{const {width:_0x4ffba8,height:_0x31f484}=_0x3770ac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e6f07,this['imageDimension']={'width':_0x4ffba8,'height':_0x31f484},this['imageId']=_0x36f661;})['catch'](_0x361703=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x361703['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x59d85e,_0x57ba60){return this['_getImageAsFile'](_0x59d85e)['then'](_0x4d8d60=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x57ba60['signal'],'file':_0x4d8d60,'onProgress':_0x360a09=>{_0x360a09&&_0x360a09['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x360a09['value']));}}))['then'](_0x2c077d=>{const {width:_0x11aa4d,height:_0x13097d}=_0x2c077d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2c077d['cdnUrl'],this['imageDimension']={'width':_0x11aa4d,'height':_0x13097d},this['imageId']=_0x2c077d['uuid'],this['imageUploadProgress']=null;const _0x399ef5=_0x59d85e['getAttribute']('src');this['_imageCache']['set'](_0x399ef5,{'id':_0x2c077d['uuid'],'url':_0x2c077d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x34a829=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34a829['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1653a0,_0x57adb9){_0x1653a0['on']('apply',(_0x250862,_0x28985d)=>{this['_replaceImage'](_0x57adb9,_0x28985d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1653a0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1653a0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x127f1d,_0x31d370,_0x1e76d8){const _0x279bd4=this['_editor'],{width:_0x4d4f0e,height:_0x2b43c1}=A(_0x31d370,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x227020,imageSources:_0x5eca3f}=E(_0x31d370,_0x4d4f0e);_0x279bd4['model']['change'](_0x51f1c8=>{if('$graveyard'===_0x127f1d['root']['rootName']){_0x279bd4['execute']('insertImage',{'imageType':_0x127f1d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x127f1d['getAttributes']()),'uploadcareImageId':_0x1e76d8,'src':_0x227020,'sources':_0x5eca3f,'width':_0x4d4f0e,'height':_0x2b43c1}});const _0x57ab91=_0x127f1d['getChildren']();_0x127f1d=_0x279bd4['model']['document']['selection']['getSelectedElement']();for(const _0x189f77 of _0x57ab91)_0x51f1c8['append'](_0x51f1c8['cloneElement'](_0x189f77),_0x127f1d);}else _0x51f1c8['setSelection'](_0x127f1d,'on'),_0x279bd4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x127f1d['getAttributes']()),'uploadcareImageId':_0x1e76d8,'src':_0x227020,'sources':_0x5eca3f,'width':_0x4d4f0e,'height':_0x2b43c1},_0x127f1d);_0x51f1c8['setSelection'](_0x127f1d,'on');});}async['_getImageAsFile'](_0x5ec85e){const _0x214c01=_0x42591f['window'],_0x2c8c1c=_0x42591f['document']['location']['href'],_0xb64b02=new _0x214c01['URL'](_0x5ec85e['getAttribute']('src'),_0x2c8c1c);if('data:'===_0xb64b02['protocol']){const _0xc3802b=_0xb64b02['href']['split'](','),_0x3a50f5=_0xc3802b[0x0]['match'](/:(.*?);/)[0x1],_0x5194ad=_0x3a50f5['split']('/')[0x1],_0x486a06=_0x214c01['atob'](_0xc3802b[_0xc3802b['length']-0x1]);let _0x1b7be7=_0x486a06['length'];const _0x318855=new _0x214c01['Uint8Array'](_0x1b7be7);for(;_0x1b7be7--;)_0x318855[_0x1b7be7]=_0x486a06['charCodeAt'](_0x1b7be7);return new _0x214c01['File']([_0x318855],'image.'+_0x5194ad,{'type':_0x3a50f5});}const _0x5a3441=_0xb64b02['href']['split']('/'),_0x17a491=_0x5a3441[_0x5a3441['length']-0x1],_0x77cca=_0x17a491['split']('.')[0x1];return _0x214c01['fetch'](_0xb64b02['href'])['then'](_0x332c0c=>_0x332c0c['clone']()['blob']())['then'](_0x2e5094=>new _0x214c01['File']([_0x2e5094],_0x17a491,{'type':'image/'+_0x77cca}));}}class J extends _0x5b2234{['imageEditController'];static get['requires'](){return[_0x1dce13];}['_isEditable'];constructor(_0x186430){super(_0x186430),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x243385){const _0x4395fb=V(_0x243385);return _0x14e268=>!(!_0x14e268||!_0x14e268['is']('element','imageBlock')&&!_0x14e268['is']('element','imageInline'))&&(!!_0x14e268['hasAttribute']('uploadcareImageId')||!!_0x14e268['hasAttribute']('src')&&_0x4395fb(_0x14e268['getAttribute']('src')));}(_0x186430['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x219f62=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x219f62);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x216c5c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x216c5c&&(_0x216c5c['is']('element','imageBlock')||_0x216c5c['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1dce13),_0x216c5c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5b2234{['refresh'](){const _0x628b04=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x628b04&&(_0x628b04['is']('element','imageBlock')||_0x628b04['is']('element','imageInline')));}['execute'](_0x34f5a1){const _0x4bed10=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xa978a6=>{_0xa978a6['setAttributes'](_0x34f5a1,_0x4bed10),_0xa978a6['removeAttribute']('srcset',_0x4bed10),_0xa978a6['removeAttribute']('sizes',_0x4bed10);});}}class g extends _0x3c7ecf{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xfc82fc,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x18a88e}=this;_0x18a88e['commands']['add']('uploadcareImageEdit',new J(_0x18a88e)),_0x18a88e['commands']['add']('uploadcareImageReplace',new O(_0x18a88e));}}class j extends _0x3c7ecf{['_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 _0x1c7c47=this['editor'];_0x1c7c47['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1b7e2d=>{const _0xfbb89d=_0x1c7c47['commands']['get']('uploadcareImageEdit'),_0x1f7b30=new _0x1d8670(_0x1b7e2d),t=_0x1b7e2d['t'];return _0x1f7b30['set']({'icon':_0x236b3d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1f7b30['bind']('isEnabled')['to'](_0xfbb89d),_0x1f7b30['bind']('isOn')['to'](_0xfbb89d,'isActive'),this['listenTo'](_0x1f7b30,'execute',()=>{_0x1c7c47['execute']('uploadcareImageEdit'),_0x1c7c47['editing']['view']['focus']();}),_0x1f7b30;}),this['_initConfig']();}['_initConfig'](){const _0x120a8b=_0x5ef6b0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x120a8b),this['listenTo'](this['editor'],'destroy',()=>{_0x120a8b['remove']();});}}class P extends _0x3c7ecf{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 _0x3d817d,Command as _0x115035}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4c1195,IconGooglePhotos as _0x4df2a7,IconGoogleDrive as _0x3fbbbf,IconFacebook as _0x5611e7,IconDropbox as _0x2eca92,IconUploadcareLink as _0x266ad5,IconUploadcareImageUpload as _0x157cc5,IconError as et,IconUploadcareImageEdit as _0x443958}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x42595b,MenuBarMenuListItemButtonView as _0x10c145,View as _0x29bc0b,FocusCycler as _0x50c2be,Dialog as _0x27869c,DialogViewPosition as _0x7a98a2,SpinnerView as _0x5cd3c7,IconView as at,Notification as _0x517338}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1a446a,DomEmitterMixin as _0x322422,global as _0xa7671f,getAncestors as _0x313f61,ObservableMixin as _0x5a22c7,createElement as _0x1aa41c,uid as _0x48c7bb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x58646f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x59d836,info as _0x274396}from'@uploadcare/upload-client';import*as _0x442ed8 from'@uploadcare/file-uploader';var o=function(_0x305f75){return _0x305f75['Local']='local',_0x305f75['URL']='url',_0x305f75['Dropbox']='dropbox',_0x305f75['GDrive']='gdrive',_0x305f75['Facebook']='facebook',_0x305f75['GPhotos']='gphotos',_0x305f75['OneDrive']='onedrive',_0x305f75;}({});function _(_0x32d873,_0x42f924,_0x2f602c){const t=_0x32d873['t'],_0x1630f2=_0x32d873['t'];switch(_0x42f924){case o['Local']:return{'text':_0x1630f2('Insert'===_0x2f602c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1630f2('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2f602c?_0x1630f2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1630f2('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2f602c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2f602c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2f602c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2f602c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2f602c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x42f924;}}class e extends _0x3d817d{['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 _0x2c8ff2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x46c828;for(const _0x5dcc8b in _0x2c8ff2){const _0x33cce3=_0x5dcc8b,_0x334077=_0x2c8ff2[_0x33cce3];if('uploadcareLicenseKeyValid'==_0x334077||'uploadcareLicenseKeyInvalid'==_0x334077||'uploadcareLicenseKeyExpired'==_0x334077||'uploadcareLicenseKeyDomainLimit'==_0x334077||'uploadcareLicenseKeyNotAllowed'==_0x334077||'uploadcareLicenseKeyEvaluationLimit'==_0x334077||'uploadcareLicenseKeyTrialLimit'==_0x334077||'uploadcareLicenseKeyUsageLimit'==_0x334077){delete _0x2c8ff2[_0x33cce3],_0x46c828=_0x334077,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x46c828&&_0x2c8ff2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x46c828&&_0x2c8ff2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x46c828&&_0x2c8ff2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x46c828&&_0x2c8ff2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x46c828&&_0x2c8ff2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x46c828&&_0x2c8ff2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x46c828&&_0x2c8ff2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xed83fb}=this,_0x1a5872=_0xed83fb['commands']['get']('uploadcare');if(!_0x1a5872)return;const _0x4a8f36=this['_normalizeConfigSourceList'](_0xed83fb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x349336,_0x188c9b)=>{const _0x3cbe52=this['_getIntegrationKey'](_0x188c9b['type']);return _0x349336[_0x3cbe52]||(_0x349336[_0x3cbe52]=[]),_0x349336[_0x3cbe52]['push'](_0x188c9b),_0x349336;},{});_0xed83fb['plugins']['has']('ImageInsertUI')&&_0xed83fb['commands']['get']('uploadcare')&&Object['entries'](_0x4a8f36)['forEach'](([_0x4ceb27,_0x4f9413])=>{_0xed83fb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4ceb27,'observable':()=>_0x1a5872,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4f9413),'formViewCreator':()=>this['_createDropdownButtons'](_0x4f9413),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4f9413),'override':'assetManager'!==_0x4ceb27});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x58f478){const {locale:_0x33d8de}=this['editor'];return _0x58f478['map'](_0x34eb96=>{const _0x8cbf02=_(_0x33d8de,_0x34eb96,'Insert');switch(_0x34eb96){case o['Local']:return{'icon':_0x157cc5,'type':o['Local'],..._0x8cbf02};case o['URL']:return{'icon':_0x266ad5,'type':o['URL'],..._0x8cbf02};case o['Dropbox']:return{'icon':_0x2eca92,'type':o['Dropbox'],..._0x8cbf02};case o['Facebook']:return{'icon':_0x5611e7,'type':o['Facebook'],..._0x8cbf02};case o['GDrive']:return{'icon':_0x3fbbbf,'type':o['GDrive'],..._0x8cbf02};case o['GPhotos']:return{'icon':_0x4df2a7,'type':o['GPhotos'],..._0x8cbf02};case o['OneDrive']:return{'icon':_0x4c1195,'type':o['OneDrive'],..._0x8cbf02};}});}['_getIntegrationKey'](_0x3acc45){switch(_0x3acc45){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3cbdca,_0x2d3890){const _0x329a08=this['editor'],_0x26d61d=new _0x3cbdca(_0x329a08['locale']),_0x12c06a=_0x329a08['commands']['get']('uploadcare');return _0x26d61d['bind']('isEnabled')['to'](_0x12c06a),_0x26d61d['on']('execute',()=>{_0x12c06a['execute'](_0x2d3890);}),_0x26d61d;}['_createToolbarButton'](_0x23799c){const {locale:_0x3b3fe9}=this['editor'],_0x543865=this['editor']['plugins']['get']('ImageInsertUI'),_0x56da05=_0x23799c[0x0],_0x297dd9=this['_createButton'](_0x42595b,_0x56da05['type']);return _0x297dd9['icon']=_0x56da05['icon'],_0x297dd9['bind']('label')['to'](_0x543865,'isImageSelected',_0x129e6c=>_(_0x3b3fe9,_0x56da05['type'],_0x129e6c?'Replace':'Insert')['text']),_0x297dd9['tooltip']=!0x0,_0x297dd9;}['_createDropdownButtons'](_0x19590b){const {locale:_0x41b3eb}=this['editor'],_0x1c0b6c=this['editor']['plugins']['get']('ImageInsertUI');return _0x19590b['map'](_0x101583=>{const _0x1d9e94=this['_createButton'](_0x42595b,_0x101583['type']);return _0x1d9e94['withText']=!0x0,_0x1d9e94['icon']=_0x101583['icon'],_0x1d9e94['bind']('label')['to'](_0x1c0b6c,'isImageSelected',_0x2719ff=>_(_0x41b3eb,_0x101583['type'],_0x2719ff?'Replace':'Insert')['text']),_0x1d9e94;});}['_createMenuBarButtons'](_0x450e6b){return _0x450e6b['map'](_0x2e021b=>{const _0x557d7c=this['_createButton'](_0x10c145,_0x2e021b['type']);return _0x557d7c['icon']=_0x2e021b['icon'],_0x557d7c['label']=_0x2e021b['shortText'],_0x557d7c;});}}class q extends _0x29bc0b{['focusTracker'];['focusCycler'];constructor(_0xf97448){super(_0xf97448),this['focusTracker']=new _0x1a446a(),this['focusCycler']=new _0x50c2be({'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(_0x245096){super(_0x245096),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(_0x3f5ed8,_0x1d18b6){const _0x54765e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1c76b0=>_0x1c76b0<=_0x1d18b6)['map'](_0x4c79f1=>_0x3f5ed8['replace'](/\/$/,'')+'/-/resize/'+_0x4c79f1+'x/\x20'+_0x4c79f1+'w');return{'imageFallbackUrl':_0x3f5ed8,'imageSources':[{'srcset':_0x54765e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1d18b6+'px)\x20100vw,\x20'+_0x1d18b6+'px','type':'image/webp'}]};}function A(_0x43137b,_0x2d178b,_0x5daa6c){const _0x3923eb=_0x43137b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3923eb?parseInt(_0x3923eb[0x1],0xa):_0x2d178b,'height':_0x3923eb?parseInt(_0x3923eb[0x2],0xa):_0x5daa6c};}function m(_0x5de49a,_0xa3184f){const _0x382c45=Object['create'](_0x322422),_0x7ada4d=_0x5de49a['plugins']['get']('ImageUtils'),_0x2b0205=_0x5de49a['editing']['mapper']['toViewElement'](_0xa3184f),_0xa46b36=_0x7ada4d['findViewImgElement'](_0x2b0205),_0x1efdb1=_0x5de49a['editing']['view']['domConverter']['viewToDom'](_0xa46b36),_0xe2e2d0=_0xa3184f['getAttribute']('width'),_0x5debcc=_0xa3184f['getAttribute']('height'),_0x4094dc='image-processing';_0x5de49a['editing']['view']['change'](_0x5f25ea=>{_0x5f25ea['addClass'](_0x4094dc,_0x2b0205),_0x5f25ea['setStyle']('aspect-ratio',_0xe2e2d0+'/'+_0x5debcc,_0xa46b36);}),_0x382c45['listenTo'](_0x1efdb1,'load',()=>{_0x382c45['stopListening'](_0x1efdb1,'load'),_0x5de49a['editing']['view']['change'](_0x451caa=>{_0x451caa['removeClass'](_0x4094dc,_0x2b0205),_0x451caa['removeStyle']('aspect-ratio',_0xa46b36);});});}function V(_0xe52583){if(Array['isArray'](_0xe52583)){const _0x3b5ab7=_0xe52583['map'](V);return _0x464743=>_0x3b5ab7['some'](_0x29cf2c=>_0x29cf2c(_0x464743));}if('origin'==_0xe52583){const _0x8cc35a=_0xa7671f['window']['location']['origin'];return _0x4350e7=>new URL(_0x4350e7,_0xa7671f['document']['baseURI'])['origin']==_0x8cc35a;}return'function'==typeof _0xe52583?_0xe52583:_0xe52583 instanceof RegExp?_0x56996e=>!(!_0x56996e['match'](_0xe52583)&&!_0x56996e['replace'](/^https?:\/\//,'')['match'](_0xe52583)):()=>!0x1;}function F(_0x4a9435,_0x466af5){return _0x313f61(_0x4a9435['target'])['includes'](_0x466af5);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x5a22c7(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x259bfc,_0x10be46,_0x76e4a0){super(),this['_editor']=_0x259bfc,this['_editing']=_0x10be46,this['_dialog']=_0x259bfc['plugins']['get'](_0x27869c),this['_api']=_0x10be46['ctxElement']['getAPI'](),this['_type']=_0x76e4a0,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:_0x5c4744,model:_0x9bedf5}=this['_editor'],_0x3f20aa=_0x9bedf5['document']['selection']['getSelectedElement'](),_0x4f2c41=_0x3f20aa&&(_0x3f20aa['is']('element','imageBlock')||_0x3f20aa['is']('element','imageInline'));this['_formView']=new S(_0x5c4744),this['_dialog']['show']({'id':'uploadCare','icon':_0x157cc5,'title':_(_0x5c4744,this['_type'],_0x4f2c41?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x7a98a2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x634369=>!F(_0x634369,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x209b4b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x27444d=>{const _0x12f34e=_0x209b4b['length'];for(const _0x224bfc of _0x209b4b){const _0x3fb5a0=_0x224bfc===_0x209b4b[_0x12f34e-0x1],{cdnUrl:_0x2989a8,fileInfo:_0xdbe612}=_0x224bfc;if(!_0x2989a8||!_0xdbe612)continue;const {width:_0x30bd07,height:_0x5b2a32}=_0xdbe612['imageInfo'],_0x2e78d4=A(_0x2989a8,_0x30bd07,_0x5b2a32),_0x28f864=E(_0x2989a8,_0x2e78d4['width']),_0x87bf1d={'id':_0xdbe612['uuid'],'type':'image','attributes':{'imageDimension':_0x2e78d4,..._0x28f864}};this['_insertAsset'](_0x87bf1d,_0x3fb5a0,_0x27444d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cecf2=>{'idle'===_0x5cecf2['detail']['status']&&!_0x5cecf2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x298a36,_0x2bf404,_0x37c3b3){const _0x11bb14=this['_editor']['model']['document']['selection'],_0x25d624=_0x11bb14['getSelectedElement'](),_0x462d61=!(!_0x25d624||!_0x25d624['is']('element','imageInline'));_0x37c3b3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x298a36,_0x462d61),_0x2bf404||_0x37c3b3['setSelection'](_0x11bb14['getLastPosition']());}['_insertImage'](_0xdee1a2,_0x26c150){const _0x4ac61d=this['_editor'],{imageDimension:_0x587392,imageFallbackUrl:_0x59dd9d,imageSources:_0x5e82a0}=_0xdee1a2['attributes'];_0x4ac61d['execute']('insertImage',{'imageType':_0x26c150?'imageInline':null,'source':{'uploadcareImageId':_0xdee1a2['id'],'src':_0x59dd9d,'sources':_0x5e82a0,..._0x587392}});}}class n extends _0x115035{['_editing'];['_controller']=null;static get['requires'](){return[_0x27869c,i];}constructor(_0x4be60d){super(_0x4be60d),this['_editing']=_0x4be60d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5b1a0a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5b1a0a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0xdb37d0,publicKey:_0x3fff09,signal:_0x50bb1e,onProgress:_0x1f7867}){return _0x59d836(_0xdb37d0,{'publicKey':_0x3fff09,'store':'auto','signal':_0x50bb1e,'onProgress':_0x1f7867});}static['getInfo'](_0x1c00c2,_0x1618ee){return _0x274396(_0x1c00c2,_0x1618ee);}}class p extends _0x3d817d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x58646f,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1a44c7=this['editor'];if(!!!_0x1a44c7['config']['get']('uploadcare'))return;_0x1a44c7['plugins']['get'](_0x58646f)['createUploadAdapter']=_0x2b39e0=>new x(_0x2b39e0,_0x1a44c7),_0x1a44c7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x555425,{imageElement:_0x4fd633,data:_0x4465d8})=>{_0x1a44c7['model']['change'](_0x37d7ef=>{_0x37d7ef['setAttribute']('uploadcareImageId',_0x4465d8['uploadcareImageId'],_0x4fd633);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xc65f89,_0x487cf0){this['loader']=_0xc65f89,this['editor']=_0x487cf0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x41abb8=this['editor']['config']['get']('uploadcare.pubkey'),_0x2d62e5=await this['loader']['file'];return C['upload']({'file':_0x2d62e5,'publicKey':_0x41abb8,'signal':this['controller']['signal'],'onProgress':_0x57ed2f=>{_0x57ed2f&&_0x57ed2f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x57ed2f['value']);}})['then'](async _0x413ae7=>{const {imageFallbackUrl:_0x1e7a24,imageSources:_0x323775}=E(_0x413ae7['cdnUrl'],_0x413ae7['imageInfo']['width']);return{'uploadcareImageId':_0x413ae7['uuid'],'default':_0x1e7a24,'sources':_0x323775};})['catch'](()=>{const _0x2882b1=t('Cannot\x20upload\x20file:')+('\x20'+_0x2d62e5['name']+'.');return Promise['reject'](_0x2882b1);});}['abort'](){this['controller']['abort']();}}class i extends _0x3d817d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x27869c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4cf48f=this['editor'];_0x4cf48f['commands']['add']('uploadcare',new n(_0x4cf48f));}['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 _0x5778a2=_0xa7671f['document']['querySelector']('input[uploadcare-file-input]');_0x5778a2&&_0x5778a2['remove']();}),async function(_0x25d762){const _0x1d1c90=_0x520326([0x5a,0x37,0x67,0x54,0x52,0x42,0x57,0x33,0x72,0x36,0x75,0x79,0x58,0x49,0x4e,0x6e,0x6f,0x65,0x51,0x55,0x56,0x4a,0x66,0x45,0x43,0x63,0x47,0x62,0x6d,0x59,0x48,0x32,0x46,0x77,0x69,0x78,0x71,0x30,0x44,0x61,0x6b,0x74,0x50,0x76,0x4f,0x34,0x4c,0x41,0x4b,0x73,0x6c,0x4d,0x70,0x53,0x31,0x68,0x35,0x38,0x7a,0x39,0x6a,0x64]),_0x259ed2=0x54194dc0,_0xdc0633=0x541e2cd0^_0x259ed2,_0x465a8a=window[_0x520326([0x44,0x61,0x74,0x65])][_0x520326([0x6e,0x6f,0x77])](),_0x388b4e=_0x25d762[_0x520326([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d0d73=new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1da29e=>{_0x388b4e[_0x520326([0x6f,0x6e,0x63,0x65])](_0x520326([0x72,0x65,0x61,0x64,0x79]),_0x1da29e);}),_0x18d6ab={[_0x520326([0x6b,0x74,0x79])]:_0x520326([0x45,0x43]),[_0x520326([0x75,0x73,0x65])]:_0x520326([0x73,0x69,0x67]),[_0x520326([0x63,0x72,0x76])]:_0x520326([0x50,0x2d,0x32,0x35,0x36]),[_0x520326([0x78])]:_0x520326([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]),[_0x520326([0x79])]:_0x520326([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]),[_0x520326([0x61,0x6c,0x67])]:_0x520326([0x45,0x53,0x32,0x35,0x36])},_0x377fa3=_0x388b4e[_0x520326([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x520326([0x67,0x65,0x74])](_0x520326([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a527e(){let _0x1d79b8,_0x5c09aa=null,_0x263ed1=null;try{if(_0x377fa3==_0x520326([0x47,0x50,0x4c]))return _0x520326([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d79b8=_0x566ac6(),!_0x1d79b8)return _0x520326([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d79b8[_0x520326([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x263ed1=_0x577751(_0x1d79b8[_0x520326([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d79b8[_0x520326([0x6a,0x74,0x69])])),await _0x181c0f()?_0x5bf52d()?_0x320341()?_0x520326([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d4d54()?(_0x1d79b8[_0x520326([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x520326([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c09aa=_0x5e767e(_0x520326([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d79b8[_0x520326([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x520326([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c09aa=_0x5e767e(_0x520326([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f71ae()):_0x520326([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x520326([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x520326([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x878094){return _0x520326([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x320341(){const _0x1ed3c7=[_0x520326([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x520326([0x74,0x72,0x69,0x61,0x6c])][_0x520326([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d79b8[_0x520326([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x465a8a/0x3e8:0xe10*_0xdc0633;return _0x1d79b8[_0x520326([0x65,0x78,0x70])]<_0x1ed3c7;}function _0x5bf52d(){const _0x57ee48=_0x1d79b8[_0x520326([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x57ee48&&(!!_0x57ee48[_0x520326([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520326([0x2a]))||!!_0x57ee48[_0x520326([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520326([0x55,0x50,0x4c,0x43])));}function _0x2d4d54(){const _0x2b6e0e=_0x1d79b8[_0x520326([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b6e0e||0x0==_0x2b6e0e[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35703c}=new URL(window[_0x520326([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b6e0e[_0x520326([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35703c))return!0x0;const _0x135b47=_0x35703c[_0x520326([0x73,0x70,0x6c,0x69,0x74])](_0x520326([0x2e]));return _0x2b6e0e[_0x520326([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34c8d=>_0x34c8d[_0x520326([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520326([0x2a])))[_0x520326([0x6d,0x61,0x70])](_0x524c53=>_0x524c53[_0x520326([0x73,0x70,0x6c,0x69,0x74])](_0x520326([0x2e])))[_0x520326([0x73,0x6f,0x6d,0x65])](_0x55dae1=>_0x135b47[_0x520326([0x65,0x76,0x65,0x72,0x79])]((_0x335416,_0x1be79f)=>_0x55dae1[_0x1be79f]===_0x335416||_0x55dae1[_0x1be79f]===_0x520326([0x2a])));}function _0x1f71ae(){return _0x5c09aa&&_0x263ed1?new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fa43c,_0x11548a)=>{_0x5c09aa[_0x520326([0x74,0x68,0x65,0x6e])](_0x1fa43c,_0x11548a),_0x263ed1[_0x520326([0x74,0x68,0x65,0x6e])](_0x341fb7=>{_0x341fb7!=_0x520326([0x56,0x61,0x6c,0x69,0x64])&&_0x1fa43c(_0x341fb7);},_0x11548a);}):_0x5c09aa||_0x263ed1||_0x520326([0x56,0x61,0x6c,0x69,0x64]);}}function _0x577751(_0x43afae,_0x5c8f21){return new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403438=>{if(_0x5cb91f())return _0x403438(_0x520326([0x56,0x61,0x6c,0x69,0x64]));_0x60354d(),_0x388b4e[_0x520326([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x520326([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1028b8=!0x1;const _0x2217e6=_0x48c7bb();function _0xb01f16(_0x91fc4c){return!!_0x91fc4c&&(typeof _0x91fc4c===_0x520326([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x91fc4c===_0x520326([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x91fc4c[_0x520326([0x74,0x68,0x65,0x6e])]===_0x520326([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x91fc4c[_0x520326([0x63,0x61,0x74,0x63,0x68])]===_0x520326([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b33f7(_0x4c6787){_0xcd6da6(_0x4c6787)[_0x520326([0x74,0x68,0x65,0x6e])](_0x406124=>{if(!_0x406124||_0x406124[_0x520326([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x520326([0x6f,0x6b]))return _0x520326([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x321923(_0xdf550c(_0x2217e6+_0x5c8f21))!=_0x406124[_0x520326([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x520326([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x520326([0x56,0x61,0x6c,0x69,0x64]);})[_0x520326([0x74,0x68,0x65,0x6e])](_0x623585=>(_0x11e9b9(),_0x623585),()=>{const _0x2d51ab=_0x253a01();return null==_0x2d51ab?(_0x11e9b9(),_0x520326([0x56,0x61,0x6c,0x69,0x64])):_0x520326(_0x465a8a-_0x2d51ab>(0x7015c9c0^_0x259ed2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x520326([0x74,0x68,0x65,0x6e])](_0x403438)[_0x520326([0x63,0x61,0x74,0x63,0x68])](()=>{_0x403438(_0x520326([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x58dde0=0x542fa340^_0x259ed2;function _0x11e9b9(){const _0x22d2ce=_0x520326([0x6c,0x6c,0x63,0x74,0x2d])+_0x321923(_0xdf550c(_0x43afae)),_0x8b24d1=_0x591f28(_0x321923(window[_0x520326([0x4d,0x61,0x74,0x68])][_0x520326([0x63,0x65,0x69,0x6c])](_0x465a8a/_0x58dde0)));window[_0x520326([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x520326([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22d2ce,_0x8b24d1);}function _0x253a01(){const _0x1003e5=_0x520326([0x6c,0x6c,0x63,0x74,0x2d])+_0x321923(_0xdf550c(_0x43afae)),_0x49f11a=window[_0x520326([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x520326([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1003e5);return _0x49f11a?window[_0x520326([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x591f28(_0x49f11a),0x10)*_0x58dde0:null;}function _0xcd6da6(_0x20d4cf){return new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x519b87,_0x350639)=>{_0x20d4cf[_0x520326([0x74,0x68,0x65,0x6e])](_0x519b87,_0x350639),window[_0x520326([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x350639,0x54189900^_0x259ed2);});}}_0x388b4e[_0x520326([0x6f,0x6e])](_0x520326([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c1acb,_0x4cc084)=>{if(_0x4cc084[0x0]!=_0x43afae)return _0x403438(_0x520326([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4cc084[0x1]={..._0x4cc084[0x1],[_0x520326([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2217e6};},{[_0x520326([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x520326([0x68,0x69,0x67,0x68])}),_0x388b4e[_0x520326([0x6f,0x6e])](_0x520326([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x460cac=>{_0xb01f16(_0x460cac[_0x520326([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1028b8=!0x0,_0x4b33f7(_0x460cac[_0x520326([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x520326([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x520326([0x6c,0x6f,0x77])}),_0x2d0d73[_0x520326([0x74,0x68,0x65,0x6e])](()=>{_0x1028b8||_0x403438(_0x520326([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cb91f(){return _0x388b4e[_0x520326([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x520326([0x76,0x69,0x65,0x77])][_0x520326([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x520326([0x61,0x75,0x74,0x6f]);}function _0x60354d(){_0x388b4e[_0x520326([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x520326([0x76,0x69,0x65,0x77])][_0x520326([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x520326([0x61,0x75,0x74,0x6f]);}}function _0x5e767e(_0x2661f8){const _0x50746d=[new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a0ca=>setTimeout(_0x13a0ca,0x5410730c^_0x259ed2)),_0x2d0d73[_0x520326([0x74,0x68,0x65,0x6e])](()=>new window[(_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc4eb92=>{let _0x55daaa=0x0;_0x388b4e[_0x520326([0x6d,0x6f,0x64,0x65,0x6c])][_0x520326([0x6f,0x6e])](_0x520326([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2716e1,_0x5cf83c)=>{_0x5cf83c[0x0][_0x520326([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55daaa++,_0x55daaa==(0x54194c38^_0x259ed2)&&(_0xc4eb92(),_0x2716e1[_0x520326([0x6f,0x66,0x66])]());});}))];return window[_0x520326([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x520326([0x72,0x61,0x63,0x65])](_0x50746d)[_0x520326([0x74,0x68,0x65,0x6e])](()=>_0x2661f8);}async function _0x562883(){await _0x2d0d73,_0x388b4e[_0x520326([0x6d,0x6f,0x64,0x65,0x6c])][_0x520326([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x337ec4,_0x388b4e[_0x520326([0x6d,0x6f,0x64,0x65,0x6c])][_0x520326([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x337ec4,_0x388b4e[_0x520326([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x520326([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35c33c(_0x284d12){const _0x11859c=_0x111346();_0x388b4e[_0x11859c]=_0x520326([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x284d12,_0x284d12!=_0x520326([0x56,0x61,0x6c,0x69,0x64])&&_0x562883();}function _0x111346(){const _0x457036=window[_0x520326([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x520326([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x520326([0x6e,0x6f,0x77])]())[_0x520326([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x520326([0x2e]),'');let _0x53b226=_0x520326([0x5a]);for(let _0x3d5e6c=0x0;_0x3d5e6c<_0x457036[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d5e6c+=0x2){let _0x210c99=window[_0x520326([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x457036[_0x520326([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d5e6c,_0x3d5e6c+0x2));_0x210c99>=_0x1d1c90[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x210c99-=_0x1d1c90[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53b226+=_0x1d1c90[_0x210c99];}return _0x53b226;}function _0x566ac6(){const _0x137a54=_0x377fa3[_0x520326([0x73,0x70,0x6c,0x69,0x74])](_0x520326([0x2e]));if(0x3!=_0x137a54[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x578d00(_0x137a54[0x1]);function _0x578d00(_0x28f70c){const _0x41e8e9=_0x38c96f(_0x28f70c);return _0x41e8e9&&_0x12404b()?_0x41e8e9:null;function _0x12404b(){const _0x3e148f=_0x41e8e9[_0x520326([0x6a,0x74,0x69])],_0x3b044f=window[_0x520326([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e148f[_0x520326([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e148f[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ba416={..._0x41e8e9,[_0x520326([0x6a,0x74,0x69])]:_0x3e148f[_0x520326([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e148f[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ba416[_0x520326([0x76,0x63])],_0xdf550c(_0x2ba416)==_0x3b044f;}}}async function _0x181c0f(){let _0x10eae0=!0x0;try{const _0x5c7673=_0x377fa3[_0x520326([0x73,0x70,0x6c,0x69,0x74])](_0x520326([0x2e])),[_0x8db37d,_0x3effba,_0x1ed525]=_0x5c7673;return _0x458f30(_0x8db37d),await _0x4035ef(_0x8db37d,_0x3effba,_0x1ed525),_0x10eae0;}catch(_0xb70ad7){return!0x1;}function _0x458f30(_0x592e48){const _0x5a6367=_0x38c96f(_0x592e48);_0x5a6367&&_0x5a6367[_0x520326([0x61,0x6c,0x67])]==_0x520326([0x45,0x53,0x32,0x35,0x36])||(_0x10eae0=!0x1);}async function _0x4035ef(_0x2a6f1b,_0x4e8ab5,_0x27b8b1){const _0x48ce54=window[_0x520326([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x520326([0x66,0x72,0x6f,0x6d])](_0x4d68ad(_0x27b8b1),_0x41965a=>_0x41965a[_0x520326([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e738b=new window[(_0x520326([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x520326([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a6f1b+_0x520326([0x2e])+_0x4e8ab5),_0x57c427=window[_0x520326([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x520326([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57c427)return;const _0x368502=await _0x57c427[_0x520326([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x520326([0x6a,0x77,0x6b]),_0x18d6ab,{[_0x520326([0x6e,0x61,0x6d,0x65])]:_0x520326([0x45,0x43,0x44,0x53,0x41]),[_0x520326([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x520326([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x520326([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57c427[_0x520326([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x520326([0x6e,0x61,0x6d,0x65])]:_0x520326([0x45,0x43,0x44,0x53,0x41]),[_0x520326([0x68,0x61,0x73,0x68])]:{[_0x520326([0x6e,0x61,0x6d,0x65])]:_0x520326([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x368502,_0x48ce54,_0x1e738b)||(_0x10eae0=!0x1);}}function _0x38c96f(_0x2cc17e){return _0x2cc17e[_0x520326([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x520326([0x65,0x79]))?JSON[_0x520326([0x70,0x61,0x72,0x73,0x65])](_0x4d68ad(_0x2cc17e)):null;}function _0x4d68ad(_0x2311d4){return window[_0x520326([0x61,0x74,0x6f,0x62])](_0x2311d4[_0x520326([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x520326([0x2b]))[_0x520326([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x520326([0x2f])));}function _0xdf550c(_0x55fb5d){let _0xeff604=0x1505;function _0xcc43fc(_0x32949f){for(let _0x34fc22=0x0;_0x34fc22<_0x32949f[_0x520326([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34fc22++){const _0x6bacb9=_0x32949f[_0x520326([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34fc22);_0xeff604=(_0xeff604<<0x5)+_0xeff604+_0x6bacb9,_0xeff604&=_0xeff604;}}function _0x147dd2(_0x34a6f2){Array[_0x520326([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34a6f2)?_0x34a6f2[_0x520326([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x147dd2):_0x34a6f2&&typeof _0x34a6f2==_0x520326([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x520326([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34a6f2)[_0x520326([0x73,0x6f,0x72,0x74])]()[_0x520326([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x598d67,_0xb36fbd])=>{_0xcc43fc(_0x598d67),_0x147dd2(_0xb36fbd);}):_0xcc43fc(window[_0x520326([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34a6f2));}return _0x147dd2(_0x55fb5d),_0xeff604>>>0x0;}function _0x321923(_0x488dfc){return _0x488dfc[_0x520326([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x520326([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x520326([0x30]));}function _0x591f28(_0x257e77){return _0x257e77[_0x520326([0x73,0x70,0x6c,0x69,0x74])]('')[_0x520326([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x520326([0x6a,0x6f,0x69,0x6e])]('');}function _0x337ec4(){}function _0x520326(_0x410a3c){return _0x410a3c['map'](_0xd9bb5c=>String['fromCharCode'](_0xd9bb5c))['join']('');}_0x35c33c(await _0x5a527e());}(this);}['_initSchema'](){const _0x3a7421=this['editor']['model']['schema'];_0x3a7421['isRegistered']('imageBlock')&&_0x3a7421['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3a7421['isRegistered']('imageInline')&&_0x3a7421['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x639572=this['editor'];_0x639572['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x639572['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1d5500=>_0x1d5500['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x291524=_0x639572['commands']['get']('replaceImageSource');_0x291524&&this['listenTo'](_0x291524,'cleanupImage',(_0x873ac2,[_0x46f9b4,_0x310da2])=>{_0x46f9b4['removeAttribute']('uploadcareImageId',_0x310da2);});}['_initConfig'](){const _0x2cb4c1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4555bd=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1aa41c(_0xa7671f['document'],'uc-config',{..._0x2cb4c1,'pubkey':_0x4555bd,'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']=_0x2b2566=>{if('closeMax'==_0x2b2566)return'#uc-icon-arrow-down';},_0xa7671f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1aa41c(_0xa7671f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xa7671f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x570344=this['editor']['commands']['get']('insertImage');_0x570344&&this['listenTo'](_0x570344,'execute',()=>{const _0x134e2c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x134e2c&&_0x134e2c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x134e2c);});});const _0xaf215c=this['editor']['commands']['get']('uploadcareImageReplace');_0xaf215c&&this['listenTo'](_0xaf215c,'execute',()=>{const _0x58ec6a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58ec6a&&_0x58ec6a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x58ec6a);});});}}class u extends _0x3d817d{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18697c){super(_0x18697c),_0x18697c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x442ed8['defineComponents'](_0x442ed8);}}class ta extends _0x29bc0b{constructor(_0x2d7855){super(_0x2d7855);const t=_0x2d7855['t'],_0x4ec05a=this['bindTemplate'],_0x393454=new _0x5cd3c7();_0x393454['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':[_0x393454,{'text':_0x4ec05a['to']('imageUploadProgress',_0x14fa9e=>t('Loading\x20image...')+'\x20('+(_0x14fa9e||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 _0x29bc0b{constructor(_0x5165aa){super(_0x5165aa);const t=_0x5165aa['t'];this['set']('errorType',null);const _0xc5d503=new _0x42595b(_0x5165aa);_0xc5d503['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xc5d503['withText']=!0x0,_0xc5d503['class']='ck-button-action',_0xc5d503['on']('execute',()=>{this['fire']('retry');}),_0xc5d503['bind']('isVisible')['to'](this,'errorType',_0x21393e=>'NotFound'!==_0x21393e);const _0x36c2cd=new at();_0x36c2cd['content']=et,_0x36c2cd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3e0414=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':[_0x36c2cd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3e0414['to']('errorType',_0x16956b=>t('NotFound'!==_0x16956b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xc5d503]},{'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 _0x29bc0b{constructor(_0x4b8b48,_0x41499b){super(_0x4b8b48);const _0x7bedf1=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x41499b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x7bedf1['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4de8fe,_0x343865,_0x3aa63f){super(_0x4de8fe),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4de8fe),this['_errorView']=new rt(_0x4de8fe),this['_editingView']=new tt(_0x4de8fe,_0x3aa63f),this['_focusableView']=new _0x29bc0b(_0x4de8fe),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x343865),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'],_0x20328c=>{this['_addUploadcareImageEditorListeners'](_0x20328c);});}),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'](_0x2c3eb6,_0x57fd23){const _0x491b1a='uc-cloud-image-editor',_0x872f02=_0x2c3eb6['querySelector'](_0x491b1a);if(_0x872f02)return _0x57fd23(_0x872f02);const _0x4bc035=new MutationObserver(_0x106bb4=>{const _0x46bbad=_0x106bb4['filter'](_0x40eaee=>_0x40eaee['target']===_0x2c3eb6&&_0x40eaee['addedNodes']['length']>0x0&&_0x40eaee['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x491b1a);_0x46bbad['length']&&(_0x4bc035['disconnect'](),_0x57fd23(_0x46bbad[0x0]['addedNodes'][0x0]));});_0x4bc035['observe'](_0x2c3eb6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1163d4){_0x1163d4['addEventListener']('apply',_0x373a3a=>{this['fire']('apply',{'imageSrc':_0x373a3a['detail']['cdnUrl']});}),_0x1163d4['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x5a22c7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xa6bc56,_0x35912e,_0x45704b){super(),this['_editor']=_0xa6bc56,this['_dialog']=_0x35912e,this['_imageElement']=_0x45704b,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 _0x42e3f6=this['_imageElement'],_0x2fb524=_0x42e3f6['getAttribute']('uploadcareImageId'),_0x12f53a=_0x42e3f6['getAttribute']('src');if(_0x2fb524)await this['_loadImageInfo'](_0x2fb524,_0x12f53a);else{if(this['_imageCache']['has'](_0x12f53a)){const _0x4f595a=this['_imageCache']['get'](_0x12f53a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f595a['url'],this['imageDimension']=_0x4f595a['dimension'],this['imageId']=_0x4f595a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5e533c}=this['_editor'],t=_0x5e533c['t'],_0x511c11=new Z(_0x5e533c,this['imageStatus'],this['_attributes']);_0x511c11['bind']('status')['to'](this,'imageStatus'),_0x511c11['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x511c11['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x511c11['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x511c11,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x443958,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x511c11,'position':_0x7a98a2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x511c11['focus']();},'onHide':()=>{_0x511c11['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a4437=>!F(_0x1a4437,_0x511c11['element'])}});}['_loadImageInfo'](_0x2ae744,_0x50ae07){return C['getInfo'](_0x2ae744,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3cacca=>{const {width:_0x359b55,height:_0xb6e5ee}=_0x3cacca['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50ae07,this['imageDimension']={'width':_0x359b55,'height':_0xb6e5ee},this['imageId']=_0x2ae744;})['catch'](_0x342737=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x342737['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5155a4,_0x551089){return this['_getImageAsFile'](_0x5155a4)['then'](_0x390ed8=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x551089['signal'],'file':_0x390ed8,'onProgress':_0x1aea0c=>{_0x1aea0c&&_0x1aea0c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1aea0c['value']));}}))['then'](_0x150a7c=>{const {width:_0x391fd3,height:_0x3033ae}=_0x150a7c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x150a7c['cdnUrl'],this['imageDimension']={'width':_0x391fd3,'height':_0x3033ae},this['imageId']=_0x150a7c['uuid'],this['imageUploadProgress']=null;const _0x2ca3a2=_0x5155a4['getAttribute']('src');this['_imageCache']['set'](_0x2ca3a2,{'id':_0x150a7c['uuid'],'url':_0x150a7c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x40c80a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x40c80a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x210a95,_0x58d119){_0x210a95['on']('apply',(_0x58ff19,_0x3e1198)=>{this['_replaceImage'](_0x58d119,_0x3e1198['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x210a95['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x210a95['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x383465,_0xec83b7,_0x2666e3){const _0x165afa=this['_editor'],{width:_0x326e20,height:_0xd67a1d}=A(_0xec83b7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xaea07f,imageSources:_0x151fac}=E(_0xec83b7,_0x326e20);_0x165afa['model']['change'](_0x1eb954=>{if('$graveyard'===_0x383465['root']['rootName']){_0x165afa['execute']('insertImage',{'imageType':_0x383465['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x383465['getAttributes']()),'uploadcareImageId':_0x2666e3,'src':_0xaea07f,'sources':_0x151fac,'width':_0x326e20,'height':_0xd67a1d}});const _0x102dea=_0x383465['getChildren']();_0x383465=_0x165afa['model']['document']['selection']['getSelectedElement']();for(const _0x5f4c6c of _0x102dea)_0x1eb954['append'](_0x1eb954['cloneElement'](_0x5f4c6c),_0x383465);}else _0x1eb954['setSelection'](_0x383465,'on'),_0x165afa['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x383465['getAttributes']()),'uploadcareImageId':_0x2666e3,'src':_0xaea07f,'sources':_0x151fac,'width':_0x326e20,'height':_0xd67a1d},_0x383465);_0x1eb954['setSelection'](_0x383465,'on');});}async['_getImageAsFile'](_0x1a5bf3){const _0x20c7ca=_0xa7671f['window'],_0x56373d=_0xa7671f['document']['location']['href'],_0x331ff4=new _0x20c7ca['URL'](_0x1a5bf3['getAttribute']('src'),_0x56373d);if('data:'===_0x331ff4['protocol']){const _0x14bc55=_0x331ff4['href']['split'](','),_0x1358ea=_0x14bc55[0x0]['match'](/:(.*?);/)[0x1],_0x21fb79=_0x1358ea['split']('/')[0x1],_0x3b57c2=_0x20c7ca['atob'](_0x14bc55[_0x14bc55['length']-0x1]);let _0x40c72b=_0x3b57c2['length'];const _0x83433f=new _0x20c7ca['Uint8Array'](_0x40c72b);for(;_0x40c72b--;)_0x83433f[_0x40c72b]=_0x3b57c2['charCodeAt'](_0x40c72b);return new _0x20c7ca['File']([_0x83433f],'image.'+_0x21fb79,{'type':_0x1358ea});}const _0x565d61=_0x331ff4['href']['split']('/'),_0x3c5437=_0x565d61[_0x565d61['length']-0x1],_0xa2c10=_0x3c5437['split']('.')[0x1];return _0x20c7ca['fetch'](_0x331ff4['href'])['then'](_0x44e50=>_0x44e50['clone']()['blob']())['then'](_0x1cfc93=>new _0x20c7ca['File']([_0x1cfc93],_0x3c5437,{'type':'image/'+_0xa2c10}));}}class J extends _0x115035{['imageEditController'];static get['requires'](){return[_0x27869c];}['_isEditable'];constructor(_0x5a2f30){super(_0x5a2f30),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xead3b0){const _0x40c806=V(_0xead3b0);return _0x30f4cf=>!(!_0x30f4cf||!_0x30f4cf['is']('element','imageBlock')&&!_0x30f4cf['is']('element','imageInline'))&&(!!_0x30f4cf['hasAttribute']('uploadcareImageId')||!!_0x30f4cf['hasAttribute']('src')&&_0x40c806(_0x30f4cf['getAttribute']('src')));}(_0x5a2f30['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xb75276=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xb75276);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x48c224=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48c224&&(_0x48c224['is']('element','imageBlock')||_0x48c224['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x27869c),_0x48c224),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x115035{['refresh'](){const _0x5ee98e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ee98e&&(_0x5ee98e['is']('element','imageBlock')||_0x5ee98e['is']('element','imageInline')));}['execute'](_0x2eb23d){const _0x42defa=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x408a08=>{_0x408a08['setAttributes'](_0x2eb23d,_0x42defa),_0x408a08['removeAttribute']('srcset',_0x42defa),_0x408a08['removeAttribute']('sizes',_0x42defa);});}}class g extends _0x3d817d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x517338,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x17e8dd}=this;_0x17e8dd['commands']['add']('uploadcareImageEdit',new J(_0x17e8dd)),_0x17e8dd['commands']['add']('uploadcareImageReplace',new O(_0x17e8dd));}}class j extends _0x3d817d{['_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 _0x57720f=this['editor'];_0x57720f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1f84e1=>{const _0x24b64c=_0x57720f['commands']['get']('uploadcareImageEdit'),_0xddce1e=new _0x42595b(_0x1f84e1),t=_0x1f84e1['t'];return _0xddce1e['set']({'icon':_0x443958,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xddce1e['bind']('isEnabled')['to'](_0x24b64c),_0xddce1e['bind']('isOn')['to'](_0x24b64c,'isActive'),this['listenTo'](_0xddce1e,'execute',()=>{_0x57720f['execute']('uploadcareImageEdit'),_0x57720f['editing']['view']['focus']();}),_0xddce1e;}),this['_initConfig']();}['_initConfig'](){const _0x227a32=_0x1aa41c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x227a32),this['listenTo'](this['editor'],'destroy',()=>{_0x227a32['remove']();});}}class P extends _0x3d817d{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-next-20250302.0",
3
+ "version": "0.0.0-nightly-next-20250303.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-next-20250302.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250302.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250302.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250302.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250302.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250302.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250302.0",
33
- "ckeditor5": "0.0.0-nightly-next-20250302.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250303.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250303.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250303.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250303.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250303.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250303.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250303.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20250303.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xd721(_0x2b9c33,_0x20fca7){const _0x4e7782=_0x4e77();return _0xd721=function(_0xd7214d,_0x485695){_0xd7214d=_0xd7214d-0x99;let _0x5b899f=_0x4e7782[_0xd7214d];return _0x5b899f;},_0xd721(_0x2b9c33,_0x20fca7);}const _0x237162=_0xd721;(function(_0x3be282,_0x3e78c8){const _0x297f62=_0xd721,_0x1434b8=_0x3be282();while(!![]){try{const _0x56860b=parseInt(_0x297f62(0xb1))/0x1*(-parseInt(_0x297f62(0xbb))/0x2)+-parseInt(_0x297f62(0xcc))/0x3+-parseInt(_0x297f62(0xc3))/0x4+-parseInt(_0x297f62(0xec))/0x5*(parseInt(_0x297f62(0xa5))/0x6)+parseInt(_0x297f62(0x9c))/0x7*(parseInt(_0x297f62(0x99))/0x8)+parseInt(_0x297f62(0xe6))/0x9*(-parseInt(_0x297f62(0xc6))/0xa)+parseInt(_0x297f62(0xe8))/0xb;if(_0x56860b===_0x3e78c8)break;else _0x1434b8['push'](_0x1434b8['shift']());}catch(_0x3097db){_0x1434b8['push'](_0x1434b8['shift']());}}}(_0x4e77,0xb0e32));import{Plugin as _0x558766}from'ckeditor5/src/core.js';import{Dialog as _0x29622c}from'ckeditor5/src/ui.js';import{createElement as _0x26cb4b,global as _0x286320,uid as _0x5d1cd2}from'ckeditor5/src/utils.js';import _0x3d33e9 from'./uploadcarecommand.js';import _0x2be5ce from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xb57d8c}from'./utils/editingutils.js';export default class i extends _0x558766{[_0x237162(0x9b)]=null;[_0x237162(0xb5)]=null;static get[_0x237162(0xa8)](){const _0x3c94bd=_0x237162;return _0x3c94bd(0xa9);}static get[_0x237162(0xa0)](){const _0x121413=_0x237162;return[_0x121413(0xed),_0x2be5ce,_0x29622c];}static get[_0x237162(0xe1)](){return!0x0;}static get[_0x237162(0xbf)](){return!0x0;}get[_0x237162(0xd9)](){const _0x1f0c2d=_0x237162;return this[_0x1f0c2d(0x9b)];}get[_0x237162(0xe4)](){const _0x364977=_0x237162;return this[_0x364977(0xb5)];}[_0x237162(0xe0)](){const _0xfb8eb9=_0x237162,_0x8df291=this[_0xfb8eb9(0xe7)];_0x8df291[_0xfb8eb9(0xde)][_0xfb8eb9(0xda)](_0xfb8eb9(0xac),new _0x3d33e9(_0x8df291));}[_0x237162(0xea)](){const _0x54c362=_0x237162;this[_0x54c362(0xc2)](),this[_0x54c362(0x9f)](),this[_0x54c362(0xbc)](),this[_0x54c362(0xa3)](),this[_0x54c362(0xd2)](),this[_0x54c362(0xe5)](this[_0x54c362(0xe7)],_0x54c362(0xeb),()=>{const _0x2ed50a=_0x54c362;this[_0x2ed50a(0x9b)]&&(this[_0x2ed50a(0x9b)][_0x2ed50a(0xb0)](),this[_0x2ed50a(0x9b)]=null),this[_0x2ed50a(0xb5)]&&(this[_0x2ed50a(0xb5)][_0x2ed50a(0xb0)](),this[_0x2ed50a(0xb5)]=null);const _0x1b2279=_0x286320[_0x2ed50a(0xb7)][_0x2ed50a(0xb3)](_0x2ed50a(0xdc));_0x1b2279&&_0x1b2279[_0x2ed50a(0xb0)]();}),async function(_0x330268){const _0x282678=_0x5c4493([0x66,0x5a,0x47,0x6e,0x6b,0x45,0x6c,0x35,0x4e,0x7a,0x4d,0x58,0x61,0x62,0x34,0x52,0x49,0x4a,0x74,0x59,0x68,0x70,0x30,0x50,0x4b,0x46,0x77,0x33,0x71,0x6d,0x42,0x54,0x79,0x73,0x38,0x53,0x78,0x69,0x4c,0x31,0x51,0x56,0x32,0x4f,0x6f,0x43,0x65,0x36,0x75,0x48,0x6a,0x57,0x63,0x39,0x64,0x55,0x41,0x67,0x44,0x37,0x76,0x72]),_0x1b6927=0x85e1710,_0x118e12=0x85977e8^_0x1b6927,_0x57f766=window[_0x5c4493([0x44,0x61,0x74,0x65])][_0x5c4493([0x6e,0x6f,0x77])](),_0x130b87=_0x330268[_0x5c4493([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4749c6=new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df75b=>{_0x130b87[_0x5c4493([0x6f,0x6e,0x63,0x65])](_0x5c4493([0x72,0x65,0x61,0x64,0x79]),_0x3df75b);}),_0x4056f3={[_0x5c4493([0x6b,0x74,0x79])]:_0x5c4493([0x45,0x43]),[_0x5c4493([0x75,0x73,0x65])]:_0x5c4493([0x73,0x69,0x67]),[_0x5c4493([0x63,0x72,0x76])]:_0x5c4493([0x50,0x2d,0x32,0x35,0x36]),[_0x5c4493([0x78])]:_0x5c4493([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]),[_0x5c4493([0x79])]:_0x5c4493([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]),[_0x5c4493([0x61,0x6c,0x67])]:_0x5c4493([0x45,0x53,0x32,0x35,0x36])},_0x23a95d=_0x130b87[_0x5c4493([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c4493([0x67,0x65,0x74])](_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x596398(){let _0x2e0b93,_0x42a8cd=null,_0x262762=null;try{if(_0x23a95d==_0x5c4493([0x47,0x50,0x4c]))return _0x5c4493([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e0b93=_0x4024ef(),!_0x2e0b93)return _0x5c4493([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e0b93[_0x5c4493([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x262762=_0x282177(_0x2e0b93[_0x5c4493([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e0b93[_0x5c4493([0x6a,0x74,0x69])])),await _0x5daa17()?_0x14b280()?_0x160d45()?_0x5c4493([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ddb10()?(_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c4493([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42a8cd=_0x4bb2b4(_0x5c4493([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c4493([0x74,0x72,0x69,0x61,0x6c])&&(_0x42a8cd=_0x4bb2b4(_0x5c4493([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x272adb()):_0x5c4493([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c4493([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c4493([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b410b){return _0x5c4493([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x160d45(){const _0x466be1=[_0x5c4493([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c4493([0x74,0x72,0x69,0x61,0x6c])][_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57f766/0x3e8:0xe10*_0x118e12;return _0x2e0b93[_0x5c4493([0x65,0x78,0x70])]<_0x466be1;}function _0x14b280(){const _0xd0b2d8=_0x2e0b93[_0x5c4493([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd0b2d8&&(!!_0xd0b2d8[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c4493([0x2a]))||!!_0xd0b2d8[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c4493([0x55,0x50,0x4c,0x43])));}function _0x4ddb10(){const _0x40ac42=_0xd721,_0x5dac64=_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5dac64||0x0==_0x5dac64[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b2dd2}=new URL(window[_0x5c4493([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x40ac42(0xdf)]);if(_0x5dac64[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b2dd2))return!0x0;const _0x10ee44=_0x5b2dd2[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e]));return _0x5dac64[_0x5c4493([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x530c26=>_0x530c26[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c4493([0x2a])))[_0x5c4493([0x6d,0x61,0x70])](_0x111dfd=>_0x111dfd[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e])))[_0x5c4493([0x73,0x6f,0x6d,0x65])](_0x2e7560=>_0x10ee44[_0x5c4493([0x65,0x76,0x65,0x72,0x79])]((_0x4a5ec2,_0x3ea489)=>_0x2e7560[_0x3ea489]===_0x4a5ec2||_0x2e7560[_0x3ea489]===_0x5c4493([0x2a])));}function _0x272adb(){return _0x42a8cd&&_0x262762?new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa9deb0,_0x9cbe8e)=>{_0x42a8cd[_0x5c4493([0x74,0x68,0x65,0x6e])](_0xa9deb0,_0x9cbe8e),_0x262762[_0x5c4493([0x74,0x68,0x65,0x6e])](_0x5f2cd5=>{_0x5f2cd5!=_0x5c4493([0x56,0x61,0x6c,0x69,0x64])&&_0xa9deb0(_0x5f2cd5);},_0x9cbe8e);}):_0x42a8cd||_0x262762||_0x5c4493([0x56,0x61,0x6c,0x69,0x64]);}}function _0x282177(_0x5b2641,_0x347e61){return new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbcd5e0=>{if(_0x3e9684())return _0xbcd5e0(_0x5c4493([0x56,0x61,0x6c,0x69,0x64]));_0x5ee08a(),_0x130b87[_0x5c4493([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c4493([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3acb0d=!0x1;const _0x3f580e=_0x5d1cd2();function _0x1b6f4b(_0x1ca6b1){return!!_0x1ca6b1&&(typeof _0x1ca6b1===_0x5c4493([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ca6b1===_0x5c4493([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ca6b1[_0x5c4493([0x74,0x68,0x65,0x6e])]===_0x5c4493([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ca6b1[_0x5c4493([0x63,0x61,0x74,0x63,0x68])]===_0x5c4493([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd9a02e(_0x425627){_0x14724f(_0x425627)[_0x5c4493([0x74,0x68,0x65,0x6e])](_0x1c64ac=>{if(!_0x1c64ac||_0x1c64ac[_0x5c4493([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c4493([0x6f,0x6b]))return _0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4afa4b(_0x3a110e(_0x3f580e+_0x347e61))!=_0x1c64ac[_0x5c4493([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c4493([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c4493([0x74,0x68,0x65,0x6e])](_0xdd749=>(_0x4233d6(),_0xdd749),()=>{const _0x3fd8de=_0x2a9c79();return null==_0x3fd8de?(_0x4233d6(),_0x5c4493([0x56,0x61,0x6c,0x69,0x64])):_0x5c4493(_0x57f766-_0x3fd8de>(0x2c529310^_0x1b6927)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c4493([0x74,0x68,0x65,0x6e])](_0xbcd5e0)[_0x5c4493([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbcd5e0(_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d71f5=0x868f990^_0x1b6927;function _0x4233d6(){const _0x52cd62=_0x5c4493([0x6c,0x6c,0x63,0x74,0x2d])+_0x4afa4b(_0x3a110e(_0x5b2641)),_0x1d0999=_0x2cf618(_0x4afa4b(window[_0x5c4493([0x4d,0x61,0x74,0x68])][_0x5c4493([0x63,0x65,0x69,0x6c])](_0x57f766/_0x1d71f5)));window[_0x5c4493([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c4493([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52cd62,_0x1d0999);}function _0x2a9c79(){const _0x42d44d=_0x5c4493([0x6c,0x6c,0x63,0x74,0x2d])+_0x4afa4b(_0x3a110e(_0x5b2641)),_0x2c76b0=window[_0x5c4493([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c4493([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42d44d);return _0x2c76b0?window[_0x5c4493([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cf618(_0x2c76b0),0x10)*_0x1d71f5:null;}function _0x14724f(_0xccbe82){return new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d8108,_0x32b40f)=>{_0xccbe82[_0x5c4493([0x74,0x68,0x65,0x6e])](_0x1d8108,_0x32b40f),window[_0x5c4493([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32b40f,0x85fc3d0^_0x1b6927);});}}_0x130b87[_0x5c4493([0x6f,0x6e])](_0x5c4493([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c8bdb,_0x38514b)=>{if(_0x38514b[0x0]!=_0x5b2641)return _0xbcd5e0(_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38514b[0x1]={..._0x38514b[0x1],[_0x5c4493([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f580e};},{[_0x5c4493([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c4493([0x68,0x69,0x67,0x68])}),_0x130b87[_0x5c4493([0x6f,0x6e])](_0x5c4493([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4dc5e1=>{_0x1b6f4b(_0x4dc5e1[_0x5c4493([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3acb0d=!0x0,_0xd9a02e(_0x4dc5e1[_0x5c4493([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c4493([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c4493([0x6c,0x6f,0x77])}),_0x4749c6[_0x5c4493([0x74,0x68,0x65,0x6e])](()=>{_0x3acb0d||_0xbcd5e0(_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e9684(){return _0x130b87[_0x5c4493([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c4493([0x76,0x69,0x65,0x77])][_0x5c4493([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c4493([0x61,0x75,0x74,0x6f]);}function _0x5ee08a(){_0x130b87[_0x5c4493([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c4493([0x76,0x69,0x65,0x77])][_0x5c4493([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c4493([0x61,0x75,0x74,0x6f]);}}function _0x4bb2b4(_0x30634e){const _0x58e243=[new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6d01=>setTimeout(_0x4e6d01,0x85729dc^_0x1b6927)),_0x4749c6[_0x5c4493([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x850a0b=>{let _0x1d2a88=0x0;_0x130b87[_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c4493([0x6f,0x6e])](_0x5c4493([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x230d86,_0x1d2a12)=>{_0x1d2a12[0x0][_0x5c4493([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d2a88++,_0x1d2a88==(0x85e16e8^_0x1b6927)&&(_0x850a0b(),_0x230d86[_0x5c4493([0x6f,0x66,0x66])]());});}))];return window[_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c4493([0x72,0x61,0x63,0x65])](_0x58e243)[_0x5c4493([0x74,0x68,0x65,0x6e])](()=>_0x30634e);}async function _0x5f4c10(){await _0x4749c6,_0x130b87[_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c4493([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17ef48,_0x130b87[_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c4493([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17ef48,_0x130b87[_0x5c4493([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f9385(_0x55a241){const _0x26150c=_0x662907();_0x130b87[_0x26150c]=_0x5c4493([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55a241,_0x55a241!=_0x5c4493([0x56,0x61,0x6c,0x69,0x64])&&_0x5f4c10();}function _0x662907(){const _0x55ae86=window[_0x5c4493([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c4493([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c4493([0x6e,0x6f,0x77])]())[_0x5c4493([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c4493([0x2e]),'');let _0xb2f8ab=_0x5c4493([0x66]);for(let _0x59b95d=0x0;_0x59b95d<_0x55ae86[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59b95d+=0x2){let _0x11b485=window[_0x5c4493([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55ae86[_0x5c4493([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59b95d,_0x59b95d+0x2));_0x11b485>=_0x282678[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11b485-=_0x282678[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb2f8ab+=_0x282678[_0x11b485];}return _0xb2f8ab;}function _0x4024ef(){const _0xd083cd=_0x23a95d[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e]));if(0x3!=_0xd083cd[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x271649(_0xd083cd[0x1]);function _0x271649(_0x333643){const _0x37cf5e=_0x5613e0(_0x333643);return _0x37cf5e&&_0x430f07()?_0x37cf5e:null;function _0x430f07(){const _0x2de40f=_0x37cf5e[_0x5c4493([0x6a,0x74,0x69])],_0x1736ae=window[_0x5c4493([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2de40f[_0x5c4493([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2de40f[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59e47e={..._0x37cf5e,[_0x5c4493([0x6a,0x74,0x69])]:_0x2de40f[_0x5c4493([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2de40f[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59e47e[_0x5c4493([0x76,0x63])],_0x3a110e(_0x59e47e)==_0x1736ae;}}}async function _0x5daa17(){let _0x2217f2=!0x0;try{const _0x5c8aa9=_0x23a95d[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e])),[_0x800cad,_0xc5e632,_0x3ce5a8]=_0x5c8aa9;return _0x24d6bd(_0x800cad),await _0x2443ce(_0x800cad,_0xc5e632,_0x3ce5a8),_0x2217f2;}catch(_0x436db2){return!0x1;}function _0x24d6bd(_0x229206){const _0x1dc141=_0x5613e0(_0x229206);_0x1dc141&&_0x1dc141[_0x5c4493([0x61,0x6c,0x67])]==_0x5c4493([0x45,0x53,0x32,0x35,0x36])||(_0x2217f2=!0x1);}async function _0x2443ce(_0x55bf8b,_0x3ec209,_0x13deb9){const _0x4e6d28=window[_0x5c4493([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c4493([0x66,0x72,0x6f,0x6d])](_0x25a9aa(_0x13deb9),_0x5626c3=>_0x5626c3[_0x5c4493([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xca070b=new window[(_0x5c4493([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c4493([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55bf8b+_0x5c4493([0x2e])+_0x3ec209),_0x4b1278=window[_0x5c4493([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c4493([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b1278)return;const _0x40c7d9=await _0x4b1278[_0x5c4493([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c4493([0x6a,0x77,0x6b]),_0x4056f3,{[_0x5c4493([0x6e,0x61,0x6d,0x65])]:_0x5c4493([0x45,0x43,0x44,0x53,0x41]),[_0x5c4493([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c4493([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c4493([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b1278[_0x5c4493([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c4493([0x6e,0x61,0x6d,0x65])]:_0x5c4493([0x45,0x43,0x44,0x53,0x41]),[_0x5c4493([0x68,0x61,0x73,0x68])]:{[_0x5c4493([0x6e,0x61,0x6d,0x65])]:_0x5c4493([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40c7d9,_0x4e6d28,_0xca070b)||(_0x2217f2=!0x1);}}function _0x5613e0(_0x498481){return _0x498481[_0x5c4493([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c4493([0x65,0x79]))?JSON[_0x5c4493([0x70,0x61,0x72,0x73,0x65])](_0x25a9aa(_0x498481)):null;}function _0x25a9aa(_0x5716aa){return window[_0x5c4493([0x61,0x74,0x6f,0x62])](_0x5716aa[_0x5c4493([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c4493([0x2b]))[_0x5c4493([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c4493([0x2f])));}function _0x3a110e(_0x2acb12){let _0x1eb5dc=0x1505;function _0x3907ab(_0x38fda9){for(let _0x557019=0x0;_0x557019<_0x38fda9[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x557019++){const _0x5d44ce=_0x38fda9[_0x5c4493([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x557019);_0x1eb5dc=(_0x1eb5dc<<0x5)+_0x1eb5dc+_0x5d44ce,_0x1eb5dc&=_0x1eb5dc;}}function _0x10cee6(_0x9b29fa){Array[_0x5c4493([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9b29fa)?_0x9b29fa[_0x5c4493([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x10cee6):_0x9b29fa&&typeof _0x9b29fa==_0x5c4493([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c4493([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9b29fa)[_0x5c4493([0x73,0x6f,0x72,0x74])]()[_0x5c4493([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e9736,_0x1d2244])=>{_0x3907ab(_0x3e9736),_0x10cee6(_0x1d2244);}):_0x3907ab(window[_0x5c4493([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9b29fa));}return _0x10cee6(_0x2acb12),_0x1eb5dc>>>0x0;}function _0x4afa4b(_0x2d9120){return _0x2d9120[_0x5c4493([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c4493([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c4493([0x30]));}function _0x2cf618(_0x2ef276){return _0x2ef276[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c4493([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c4493([0x6a,0x6f,0x69,0x6e])]('');}function _0x17ef48(){}function _0x5c4493(_0x5bd189){const _0x2c386b=_0xd721;return _0x5bd189[_0x2c386b(0xd1)](_0x27b42b=>String[_0x2c386b(0x9d)](_0x27b42b))[_0x2c386b(0xd4)]('');}_0x4f9385(await _0x596398());}(this);}[_0x237162(0xc2)](){const _0x43915f=_0x237162,_0x3fee76=this[_0x43915f(0xe7)][_0x43915f(0xa7)][_0x43915f(0xcd)];_0x3fee76[_0x43915f(0xca)](_0x43915f(0xdb))&&_0x3fee76[_0x43915f(0xbd)](_0x43915f(0xdb),{'allowAttributes':[_0x43915f(0xe2)]}),_0x3fee76[_0x43915f(0xca)](_0x43915f(0xab))&&_0x3fee76[_0x43915f(0xbd)](_0x43915f(0xab),{'allowAttributes':[_0x43915f(0xe2)]});}[_0x237162(0x9f)](){const _0x51c0da=_0x237162,_0x22ae0e=this[_0x51c0da(0xe7)];_0x22ae0e[_0x51c0da(0xd3)][_0x51c0da(0xa4)](_0x51c0da(0xb8))[_0x51c0da(0xaa)]({'model':_0x51c0da(0xe2),'view':_0x51c0da(0xa2)}),_0x22ae0e[_0x51c0da(0xd3)][_0x51c0da(0xa4)](_0x51c0da(0xd0))[_0x51c0da(0xe3)]({'model':{'key':_0x51c0da(0xe2),'value':_0x422f08=>_0x422f08[_0x51c0da(0xaf)](_0x51c0da(0xa2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x409c9d=_0x22ae0e[_0x51c0da(0xde)][_0x51c0da(0xae)](_0x51c0da(0xba));_0x409c9d&&this[_0x51c0da(0xe5)](_0x409c9d,_0x51c0da(0xc8),(_0x2e7498,[_0x578cda,_0x15fcee])=>{const _0x40d024=_0x51c0da;_0x578cda[_0x40d024(0xc1)](_0x40d024(0xe2),_0x15fcee);});}[_0x237162(0xbc)](){const _0x281ea5=_0x237162,_0x3d7bba=this[_0x281ea5(0xe7)][_0x281ea5(0xb6)][_0x281ea5(0xae)](_0x281ea5(0xc5))||{},_0x2e8363=this[_0x281ea5(0xe7)][_0x281ea5(0xb6)][_0x281ea5(0xae)](_0x281ea5(0xd6))||'';this[_0x281ea5(0x9b)]=_0x26cb4b(_0x286320[_0x281ea5(0xb7)],_0x281ea5(0xa1),{..._0x3d7bba,'pubkey':_0x2e8363,'ctx-name':_0x281ea5(0xd7),'sourceList':'','imgOnly':_0x281ea5(0xcf),'removeCopyright':_0x281ea5(0xcf),'localeName':this[_0x281ea5(0xe7)][_0x281ea5(0xb2)][_0x281ea5(0xd5)],'externalSourcesEmbedCss':_0x281ea5(0x9e)}),this[_0x281ea5(0x9b)][_0x281ea5(0xb9)]=_0x25608c=>{const _0x4c8865=_0x281ea5;if(_0x4c8865(0xdd)==_0x25608c)return _0x4c8865(0xa6);},_0x286320[_0x281ea5(0xb7)][_0x281ea5(0xbe)][_0x281ea5(0xb4)](this[_0x281ea5(0x9b)]);}[_0x237162(0xa3)](){const _0x4af657=_0x237162;this[_0x4af657(0xb5)]=_0x26cb4b(_0x286320[_0x4af657(0xb7)],_0x4af657(0xcb),{'ctx-name':_0x4af657(0xd7)}),_0x286320[_0x4af657(0xb7)][_0x4af657(0xbe)][_0x4af657(0xb4)](this[_0x4af657(0xb5)]);}[_0x237162(0xd2)](){const _0x6e6257=_0x237162,_0x519842=this[_0x6e6257(0xe7)][_0x6e6257(0xde)][_0x6e6257(0xae)](_0x6e6257(0xc0));_0x519842&&this[_0x6e6257(0xe5)](_0x519842,_0x6e6257(0xd8),()=>{const _0x14f6f3=_0x6e6257,_0x5d0365=this[_0x14f6f3(0xe7)][_0x14f6f3(0xa7)][_0x14f6f3(0xb7)][_0x14f6f3(0xc4)][_0x14f6f3(0xad)]();_0x5d0365&&_0x5d0365[_0x14f6f3(0xaf)](_0x14f6f3(0xe2))&&this[_0x14f6f3(0xe7)][_0x14f6f3(0x9a)][_0x14f6f3(0xce)][_0x14f6f3(0xc9)](_0x14f6f3(0xe9),()=>{const _0xfd50cf=_0x14f6f3;_0xb57d8c(this[_0xfd50cf(0xe7)],_0x5d0365);});});const _0x14b9b0=this[_0x6e6257(0xe7)][_0x6e6257(0xde)][_0x6e6257(0xae)](_0x6e6257(0xc7));_0x14b9b0&&this[_0x6e6257(0xe5)](_0x14b9b0,_0x6e6257(0xd8),()=>{const _0x4b1e04=_0x6e6257,_0x54d837=this[_0x4b1e04(0xe7)][_0x4b1e04(0xa7)][_0x4b1e04(0xb7)][_0x4b1e04(0xc4)][_0x4b1e04(0xad)]();_0x54d837&&_0x54d837[_0x4b1e04(0xaf)](_0x4b1e04(0xe2))&&this[_0x4b1e04(0xe7)][_0x4b1e04(0x9a)][_0x4b1e04(0xce)][_0x4b1e04(0xc9)](_0x4b1e04(0xe9),()=>{const _0x430553=_0x4b1e04;_0xb57d8c(this[_0x430553(0xe7)],_0x54d837);});});}}function _0x4e77(){const _0x1979c1=['uploader','execute','configElement','add','imageBlock','input[uploadcare-file-input]','closeMax','commands','href','init','isOfficialPlugin','uploadcareImageId','elementToAttribute','ctxElement','listenTo','339399bwiqYN','editor','50751437bZjPzn','render','afterInit','destroy','50zaCvSD','PictureEditing','96eLwRRV','editing','_configElement','136311gdwUbN','fromCharCode','\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','_initConversion','requires','uc-config','data-uc-image-id','_initCtx','for','305220dIdqaX','#uc-icon-arrow-down','model','pluginName','UploadcareEditing','attributeToAttribute','imageInline','uploadcare','getSelectedElement','get','getAttribute','remove','1yJSXGa','locale','querySelector','appendChild','_ctxElement','config','document','downcast','iconHrefResolver','replaceImageSource','1879310McWVrN','_initConfig','extend','body','isPremiumPlugin','insertImage','removeAttribute','_initSchema','4698892ElPtAw','selection','uploadcare.uploader','50dTHrUi','uploadcareImageReplace','cleanupImage','once','isRegistered','uc-upload-ctx-provider','3933840JHnYLi','schema','view','true','upcast','map','_initImageProcessingIndicator','conversion','join','contentLanguage','uploadcare.pubkey'];_0x4e77=function(){return _0x1979c1;};return _0x4e77();}
23
+ const _0x3dafe3=_0x1ea8;function _0x2993(){const _0x1d2dda=['uploadcareImageReplace','input[uploadcare-file-input]','5zAVUqG','join','schema','execute','uploadcareImageId','document','destroy','contentLanguage','replaceImageSource','locale','_initConfig','572598xeSWcc','selection','cleanupImage','imageInline','isRegistered','_initConversion','getSelectedElement','uc-upload-ctx-provider','2490vYzwpV','236608ahtECA','config','once','true','commands','remove','configElement','insertImage','ctxElement','appendChild','uc-config','attributeToAttribute','pluginName','body','closeMax','get','uploadcare','afterInit','editing','181932sMDeUR','conversion','init','href','iconHrefResolver','uploadcare.pubkey','listenTo','model','174905MgUror','isPremiumPlugin','isOfficialPlugin','1316410uNYjGE','extend','add','4585TlJyyD','_initSchema','_ctxElement','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','_initCtx','downcast','PictureEditing','editor','fromCharCode','view','removeAttribute','3GQPMca','_configElement','requires','UploadcareEditing','uploader','render','_initImageProcessingIndicator','map','uploadcare.uploader','#uc-icon-arrow-down','1192084dfYDvQ','data-uc-image-id','imageBlock','getAttribute','for','elementToAttribute','upcast','querySelector'];_0x2993=function(){return _0x1d2dda;};return _0x2993();}function _0x1ea8(_0x4dea3a,_0x49eecf){const _0x2993c1=_0x2993();return _0x1ea8=function(_0x1ea821,_0x9aa2cf){_0x1ea821=_0x1ea821-0x96;let _0x58e1c3=_0x2993c1[_0x1ea821];return _0x58e1c3;},_0x1ea8(_0x4dea3a,_0x49eecf);}(function(_0x482ea2,_0x4c6788){const _0x4a26ec=_0x1ea8,_0x2f7a72=_0x482ea2();while(!![]){try{const _0x332c9f=parseInt(_0x4a26ec(0x9c))/0x1+-parseInt(_0x4a26ec(0xe8))/0x2*(parseInt(_0x4a26ec(0xad))/0x3)+-parseInt(_0x4a26ec(0xb7))/0x4*(-parseInt(_0x4a26ec(0xc1))/0x5)+parseInt(_0x4a26ec(0xd4))/0x6*(-parseInt(_0x4a26ec(0xa2))/0x7)+parseInt(_0x4a26ec(0xd5))/0x8+-parseInt(_0x4a26ec(0xcc))/0x9+parseInt(_0x4a26ec(0x9f))/0xa;if(_0x332c9f===_0x4c6788)break;else _0x2f7a72['push'](_0x2f7a72['shift']());}catch(_0x5eb740){_0x2f7a72['push'](_0x2f7a72['shift']());}}}(_0x2993,0x32b72));import{Plugin as _0x2606d5}from'ckeditor5/src/core.js';import{Dialog as _0x2ca371}from'ckeditor5/src/ui.js';import{createElement as _0x3b3e5c,global as _0x3d29f5,uid as _0x25c6f6}from'ckeditor5/src/utils.js';import _0x2b27f2 from'./uploadcarecommand.js';import _0x1600ed from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2b50d9}from'./utils/editingutils.js';export default class i extends _0x2606d5{[_0x3dafe3(0xae)]=null;[_0x3dafe3(0xa4)]=null;static get[_0x3dafe3(0xe1)](){const _0x543fc3=_0x3dafe3;return _0x543fc3(0xb0);}static get[_0x3dafe3(0xaf)](){const _0x71446=_0x3dafe3;return[_0x71446(0xa8),_0x1600ed,_0x2ca371];}static get[_0x3dafe3(0x9e)](){return!0x0;}static get[_0x3dafe3(0x9d)](){return!0x0;}get[_0x3dafe3(0xdb)](){const _0x31538a=_0x3dafe3;return this[_0x31538a(0xae)];}get[_0x3dafe3(0xdd)](){const _0x441f3f=_0x3dafe3;return this[_0x441f3f(0xa4)];}[_0x3dafe3(0x96)](){const _0x127a81=_0x3dafe3,_0x12256e=this[_0x127a81(0xa9)];_0x12256e[_0x127a81(0xd9)][_0x127a81(0xa1)](_0x127a81(0xe5),new _0x2b27f2(_0x12256e));}[_0x3dafe3(0xe6)](){const _0x2b21c1=_0x3dafe3;this[_0x2b21c1(0xa3)](),this[_0x2b21c1(0xd1)](),this[_0x2b21c1(0xcb)](),this[_0x2b21c1(0xa6)](),this[_0x2b21c1(0xb3)](),this[_0x2b21c1(0x9a)](this[_0x2b21c1(0xa9)],_0x2b21c1(0xc7),()=>{const _0x50ca21=_0x2b21c1;this[_0x50ca21(0xae)]&&(this[_0x50ca21(0xae)][_0x50ca21(0xda)](),this[_0x50ca21(0xae)]=null),this[_0x50ca21(0xa4)]&&(this[_0x50ca21(0xa4)][_0x50ca21(0xda)](),this[_0x50ca21(0xa4)]=null);const _0x72de3=_0x3d29f5[_0x50ca21(0xc6)][_0x50ca21(0xbe)](_0x50ca21(0xc0));_0x72de3&&_0x72de3[_0x50ca21(0xda)]();}),async function(_0x11827f){const _0x555c19=_0x2270d9([0x5a,0x37,0x67,0x54,0x52,0x42,0x57,0x33,0x72,0x36,0x75,0x79,0x58,0x49,0x4e,0x6e,0x6f,0x65,0x51,0x55,0x56,0x4a,0x66,0x45,0x43,0x63,0x47,0x62,0x6d,0x59,0x48,0x32,0x46,0x77,0x69,0x78,0x71,0x30,0x44,0x61,0x6b,0x74,0x50,0x76,0x4f,0x34,0x4c,0x41,0x4b,0x73,0x6c,0x4d,0x70,0x53,0x31,0x68,0x35,0x38,0x7a,0x39,0x6a,0x64]),_0xe5ed90=0x54194dc0,_0x340945=0x541e2cd0^_0xe5ed90,_0x1fa3bf=window[_0x2270d9([0x44,0x61,0x74,0x65])][_0x2270d9([0x6e,0x6f,0x77])](),_0x3ebbc6=_0x11827f[_0x2270d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fcfe0=new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27a2df=>{_0x3ebbc6[_0x2270d9([0x6f,0x6e,0x63,0x65])](_0x2270d9([0x72,0x65,0x61,0x64,0x79]),_0x27a2df);}),_0x149c2e={[_0x2270d9([0x6b,0x74,0x79])]:_0x2270d9([0x45,0x43]),[_0x2270d9([0x75,0x73,0x65])]:_0x2270d9([0x73,0x69,0x67]),[_0x2270d9([0x63,0x72,0x76])]:_0x2270d9([0x50,0x2d,0x32,0x35,0x36]),[_0x2270d9([0x78])]:_0x2270d9([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]),[_0x2270d9([0x79])]:_0x2270d9([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]),[_0x2270d9([0x61,0x6c,0x67])]:_0x2270d9([0x45,0x53,0x32,0x35,0x36])},_0x337cd9=_0x3ebbc6[_0x2270d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2270d9([0x67,0x65,0x74])](_0x2270d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x99eae8(){let _0x1cb58a,_0x59774f=null,_0x289517=null;try{if(_0x337cd9==_0x2270d9([0x47,0x50,0x4c]))return _0x2270d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cb58a=_0x55836b(),!_0x1cb58a)return _0x2270d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cb58a[_0x2270d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x289517=_0x241db9(_0x1cb58a[_0x2270d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cb58a[_0x2270d9([0x6a,0x74,0x69])])),await _0x2e5a0c()?_0x5bab72()?_0x1f30fa()?_0x2270d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x76ab56()?(_0x1cb58a[_0x2270d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2270d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59774f=_0x966e9a(_0x2270d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cb58a[_0x2270d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2270d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x59774f=_0x966e9a(_0x2270d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34a631()):_0x2270d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2270d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2270d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x30aea1){return _0x2270d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f30fa(){const _0x6705d0=[_0x2270d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2270d9([0x74,0x72,0x69,0x61,0x6c])][_0x2270d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb58a[_0x2270d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fa3bf/0x3e8:0xe10*_0x340945;return _0x1cb58a[_0x2270d9([0x65,0x78,0x70])]<_0x6705d0;}function _0x5bab72(){const _0xfd82ec=_0x1cb58a[_0x2270d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xfd82ec&&(!!_0xfd82ec[_0x2270d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2270d9([0x2a]))||!!_0xfd82ec[_0x2270d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2270d9([0x55,0x50,0x4c,0x43])));}function _0x76ab56(){const _0x55b274=_0x1ea8,_0x25e3c3=_0x1cb58a[_0x2270d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25e3c3||0x0==_0x25e3c3[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x473f83}=new URL(window[_0x2270d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x55b274(0x97)]);if(_0x25e3c3[_0x2270d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x473f83))return!0x0;const _0x4805ea=_0x473f83[_0x2270d9([0x73,0x70,0x6c,0x69,0x74])](_0x2270d9([0x2e]));return _0x25e3c3[_0x2270d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x207cf3=>_0x207cf3[_0x2270d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2270d9([0x2a])))[_0x2270d9([0x6d,0x61,0x70])](_0x84af45=>_0x84af45[_0x2270d9([0x73,0x70,0x6c,0x69,0x74])](_0x2270d9([0x2e])))[_0x2270d9([0x73,0x6f,0x6d,0x65])](_0x119ac2=>_0x4805ea[_0x2270d9([0x65,0x76,0x65,0x72,0x79])]((_0xd14277,_0xc3b953)=>_0x119ac2[_0xc3b953]===_0xd14277||_0x119ac2[_0xc3b953]===_0x2270d9([0x2a])));}function _0x34a631(){return _0x59774f&&_0x289517?new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d4f37,_0x169f41)=>{_0x59774f[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x1d4f37,_0x169f41),_0x289517[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x170cff=>{_0x170cff!=_0x2270d9([0x56,0x61,0x6c,0x69,0x64])&&_0x1d4f37(_0x170cff);},_0x169f41);}):_0x59774f||_0x289517||_0x2270d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x241db9(_0x10225d,_0x5559f9){return new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8ccb27=>{if(_0x2405b7())return _0x8ccb27(_0x2270d9([0x56,0x61,0x6c,0x69,0x64]));_0x5b836d(),_0x3ebbc6[_0x2270d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2270d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x596f1a=!0x1;const _0xdace0e=_0x25c6f6();function _0x3b3e9b(_0x9e9e6c){return!!_0x9e9e6c&&(typeof _0x9e9e6c===_0x2270d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9e9e6c===_0x2270d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9e9e6c[_0x2270d9([0x74,0x68,0x65,0x6e])]===_0x2270d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9e9e6c[_0x2270d9([0x63,0x61,0x74,0x63,0x68])]===_0x2270d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ea2f1(_0xbe9850){_0x2140df(_0xbe9850)[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x4a093b=>{if(!_0x4a093b||_0x4a093b[_0x2270d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2270d9([0x6f,0x6b]))return _0x2270d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28778f(_0x2568c2(_0xdace0e+_0x5559f9))!=_0x4a093b[_0x2270d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2270d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2270d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x395c93=>(_0x49c9c7(),_0x395c93),()=>{const _0x48994f=_0x314965();return null==_0x48994f?(_0x49c9c7(),_0x2270d9([0x56,0x61,0x6c,0x69,0x64])):_0x2270d9(_0x1fa3bf-_0x48994f>(0x7015c9c0^_0xe5ed90)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x8ccb27)[_0x2270d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8ccb27(_0x2270d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a6c32=0x542fa340^_0xe5ed90;function _0x49c9c7(){const _0x3e21b8=_0x2270d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x28778f(_0x2568c2(_0x10225d)),_0x33ebe3=_0x542fdf(_0x28778f(window[_0x2270d9([0x4d,0x61,0x74,0x68])][_0x2270d9([0x63,0x65,0x69,0x6c])](_0x1fa3bf/_0x3a6c32)));window[_0x2270d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2270d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e21b8,_0x33ebe3);}function _0x314965(){const _0x314b45=_0x2270d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x28778f(_0x2568c2(_0x10225d)),_0x2e220c=window[_0x2270d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2270d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x314b45);return _0x2e220c?window[_0x2270d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x542fdf(_0x2e220c),0x10)*_0x3a6c32:null;}function _0x2140df(_0x429813){return new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x573e25,_0x397cf9)=>{_0x429813[_0x2270d9([0x74,0x68,0x65,0x6e])](_0x573e25,_0x397cf9),window[_0x2270d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x397cf9,0x54189900^_0xe5ed90);});}}_0x3ebbc6[_0x2270d9([0x6f,0x6e])](_0x2270d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19fe17,_0x5585c5)=>{if(_0x5585c5[0x0]!=_0x10225d)return _0x8ccb27(_0x2270d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5585c5[0x1]={..._0x5585c5[0x1],[_0x2270d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xdace0e};},{[_0x2270d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2270d9([0x68,0x69,0x67,0x68])}),_0x3ebbc6[_0x2270d9([0x6f,0x6e])](_0x2270d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x6f7068=>{_0x3b3e9b(_0x6f7068[_0x2270d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x596f1a=!0x0,_0x3ea2f1(_0x6f7068[_0x2270d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2270d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2270d9([0x6c,0x6f,0x77])}),_0x1fcfe0[_0x2270d9([0x74,0x68,0x65,0x6e])](()=>{_0x596f1a||_0x8ccb27(_0x2270d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2405b7(){return _0x3ebbc6[_0x2270d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2270d9([0x76,0x69,0x65,0x77])][_0x2270d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2270d9([0x61,0x75,0x74,0x6f]);}function _0x5b836d(){_0x3ebbc6[_0x2270d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2270d9([0x76,0x69,0x65,0x77])][_0x2270d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2270d9([0x61,0x75,0x74,0x6f]);}}function _0x966e9a(_0x56dcba){const _0x77818=[new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41c276=>setTimeout(_0x41c276,0x5410730c^_0xe5ed90)),_0x1fcfe0[_0x2270d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5546dd=>{let _0x3a1907=0x0;_0x3ebbc6[_0x2270d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2270d9([0x6f,0x6e])](_0x2270d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24e005,_0x4fb00c)=>{_0x4fb00c[0x0][_0x2270d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a1907++,_0x3a1907==(0x54194c38^_0xe5ed90)&&(_0x5546dd(),_0x24e005[_0x2270d9([0x6f,0x66,0x66])]());});}))];return window[_0x2270d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2270d9([0x72,0x61,0x63,0x65])](_0x77818)[_0x2270d9([0x74,0x68,0x65,0x6e])](()=>_0x56dcba);}async function _0x17bc88(){await _0x1fcfe0,_0x3ebbc6[_0x2270d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2270d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10ec23,_0x3ebbc6[_0x2270d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2270d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10ec23,_0x3ebbc6[_0x2270d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2270d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2355de(_0x1e1975){const _0x5e3a5c=_0x3e9724();_0x3ebbc6[_0x5e3a5c]=_0x2270d9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e1975,_0x1e1975!=_0x2270d9([0x56,0x61,0x6c,0x69,0x64])&&_0x17bc88();}function _0x3e9724(){const _0x4e087c=window[_0x2270d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2270d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2270d9([0x6e,0x6f,0x77])]())[_0x2270d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2270d9([0x2e]),'');let _0x2eef5c=_0x2270d9([0x5a]);for(let _0x3c3680=0x0;_0x3c3680<_0x4e087c[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c3680+=0x2){let _0x1100c0=window[_0x2270d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e087c[_0x2270d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c3680,_0x3c3680+0x2));_0x1100c0>=_0x555c19[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1100c0-=_0x555c19[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2eef5c+=_0x555c19[_0x1100c0];}return _0x2eef5c;}function _0x55836b(){const _0x192ec4=_0x337cd9[_0x2270d9([0x73,0x70,0x6c,0x69,0x74])](_0x2270d9([0x2e]));if(0x3!=_0x192ec4[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34561b(_0x192ec4[0x1]);function _0x34561b(_0x48f306){const _0x3acba1=_0x56ba97(_0x48f306);return _0x3acba1&&_0x20cd88()?_0x3acba1:null;function _0x20cd88(){const _0xb46a82=_0x3acba1[_0x2270d9([0x6a,0x74,0x69])],_0x36f9b2=window[_0x2270d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb46a82[_0x2270d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb46a82[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c3aa0={..._0x3acba1,[_0x2270d9([0x6a,0x74,0x69])]:_0xb46a82[_0x2270d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb46a82[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c3aa0[_0x2270d9([0x76,0x63])],_0x2568c2(_0x3c3aa0)==_0x36f9b2;}}}async function _0x2e5a0c(){let _0x512301=!0x0;try{const _0x2881fa=_0x337cd9[_0x2270d9([0x73,0x70,0x6c,0x69,0x74])](_0x2270d9([0x2e])),[_0xe93a19,_0x492c79,_0x326c56]=_0x2881fa;return _0x5c8a56(_0xe93a19),await _0x3f33f3(_0xe93a19,_0x492c79,_0x326c56),_0x512301;}catch(_0x5dd6a4){return!0x1;}function _0x5c8a56(_0x3bce31){const _0x4f8662=_0x56ba97(_0x3bce31);_0x4f8662&&_0x4f8662[_0x2270d9([0x61,0x6c,0x67])]==_0x2270d9([0x45,0x53,0x32,0x35,0x36])||(_0x512301=!0x1);}async function _0x3f33f3(_0x1a689d,_0x2e68b8,_0x1d449d){const _0x5ae129=window[_0x2270d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2270d9([0x66,0x72,0x6f,0x6d])](_0x484951(_0x1d449d),_0x3b5202=>_0x3b5202[_0x2270d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dace5=new window[(_0x2270d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2270d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a689d+_0x2270d9([0x2e])+_0x2e68b8),_0x265b5d=window[_0x2270d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2270d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x265b5d)return;const _0x1abd4f=await _0x265b5d[_0x2270d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2270d9([0x6a,0x77,0x6b]),_0x149c2e,{[_0x2270d9([0x6e,0x61,0x6d,0x65])]:_0x2270d9([0x45,0x43,0x44,0x53,0x41]),[_0x2270d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2270d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2270d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x265b5d[_0x2270d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2270d9([0x6e,0x61,0x6d,0x65])]:_0x2270d9([0x45,0x43,0x44,0x53,0x41]),[_0x2270d9([0x68,0x61,0x73,0x68])]:{[_0x2270d9([0x6e,0x61,0x6d,0x65])]:_0x2270d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1abd4f,_0x5ae129,_0x4dace5)||(_0x512301=!0x1);}}function _0x56ba97(_0x4738c8){return _0x4738c8[_0x2270d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2270d9([0x65,0x79]))?JSON[_0x2270d9([0x70,0x61,0x72,0x73,0x65])](_0x484951(_0x4738c8)):null;}function _0x484951(_0x46685e){return window[_0x2270d9([0x61,0x74,0x6f,0x62])](_0x46685e[_0x2270d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2270d9([0x2b]))[_0x2270d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2270d9([0x2f])));}function _0x2568c2(_0x37bed6){let _0x76578a=0x1505;function _0x407542(_0x4a128e){for(let _0x5f4b20=0x0;_0x5f4b20<_0x4a128e[_0x2270d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f4b20++){const _0xd37064=_0x4a128e[_0x2270d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f4b20);_0x76578a=(_0x76578a<<0x5)+_0x76578a+_0xd37064,_0x76578a&=_0x76578a;}}function _0x4164d8(_0xfc9f3){Array[_0x2270d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfc9f3)?_0xfc9f3[_0x2270d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4164d8):_0xfc9f3&&typeof _0xfc9f3==_0x2270d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2270d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfc9f3)[_0x2270d9([0x73,0x6f,0x72,0x74])]()[_0x2270d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16d651,_0x5f4b1b])=>{_0x407542(_0x16d651),_0x4164d8(_0x5f4b1b);}):_0x407542(window[_0x2270d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfc9f3));}return _0x4164d8(_0x37bed6),_0x76578a>>>0x0;}function _0x28778f(_0x356d01){return _0x356d01[_0x2270d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2270d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2270d9([0x30]));}function _0x542fdf(_0x1ca2fc){return _0x1ca2fc[_0x2270d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2270d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2270d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x10ec23(){}function _0x2270d9(_0x36b7dd){const _0x46d36b=_0x1ea8;return _0x36b7dd[_0x46d36b(0xb4)](_0x70637c=>String[_0x46d36b(0xaa)](_0x70637c))[_0x46d36b(0xc2)]('');}_0x2355de(await _0x99eae8());}(this);}[_0x3dafe3(0xa3)](){const _0x289b5d=_0x3dafe3,_0x12c401=this[_0x289b5d(0xa9)][_0x289b5d(0x9b)][_0x289b5d(0xc3)];_0x12c401[_0x289b5d(0xd0)](_0x289b5d(0xb9))&&_0x12c401[_0x289b5d(0xa0)](_0x289b5d(0xb9),{'allowAttributes':[_0x289b5d(0xc5)]}),_0x12c401[_0x289b5d(0xd0)](_0x289b5d(0xcf))&&_0x12c401[_0x289b5d(0xa0)](_0x289b5d(0xcf),{'allowAttributes':[_0x289b5d(0xc5)]});}[_0x3dafe3(0xd1)](){const _0x200c9c=_0x3dafe3,_0x26a1ab=this[_0x200c9c(0xa9)];_0x26a1ab[_0x200c9c(0xe9)][_0x200c9c(0xbb)](_0x200c9c(0xa7))[_0x200c9c(0xe0)]({'model':_0x200c9c(0xc5),'view':_0x200c9c(0xb8)}),_0x26a1ab[_0x200c9c(0xe9)][_0x200c9c(0xbb)](_0x200c9c(0xbd))[_0x200c9c(0xbc)]({'model':{'key':_0x200c9c(0xc5),'value':_0x121c1b=>_0x121c1b[_0x200c9c(0xba)](_0x200c9c(0xb8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5370c1=_0x26a1ab[_0x200c9c(0xd9)][_0x200c9c(0xe4)](_0x200c9c(0xc9));_0x5370c1&&this[_0x200c9c(0x9a)](_0x5370c1,_0x200c9c(0xce),(_0x3d8f5d,[_0x338a8a,_0x35a89e])=>{const _0x22e7d5=_0x200c9c;_0x338a8a[_0x22e7d5(0xac)](_0x22e7d5(0xc5),_0x35a89e);});}[_0x3dafe3(0xcb)](){const _0x1e6946=_0x3dafe3,_0x3c7487=this[_0x1e6946(0xa9)][_0x1e6946(0xd6)][_0x1e6946(0xe4)](_0x1e6946(0xb5))||{},_0x49579d=this[_0x1e6946(0xa9)][_0x1e6946(0xd6)][_0x1e6946(0xe4)](_0x1e6946(0x99))||'';this[_0x1e6946(0xae)]=_0x3b3e5c(_0x3d29f5[_0x1e6946(0xc6)],_0x1e6946(0xdf),{..._0x3c7487,'pubkey':_0x49579d,'ctx-name':_0x1e6946(0xb1),'sourceList':'','imgOnly':_0x1e6946(0xd8),'removeCopyright':_0x1e6946(0xd8),'localeName':this[_0x1e6946(0xa9)][_0x1e6946(0xca)][_0x1e6946(0xc8)],'externalSourcesEmbedCss':_0x1e6946(0xa5)}),this[_0x1e6946(0xae)][_0x1e6946(0x98)]=_0x48d0b9=>{const _0x79a6bc=_0x1e6946;if(_0x79a6bc(0xe3)==_0x48d0b9)return _0x79a6bc(0xb6);},_0x3d29f5[_0x1e6946(0xc6)][_0x1e6946(0xe2)][_0x1e6946(0xde)](this[_0x1e6946(0xae)]);}[_0x3dafe3(0xa6)](){const _0x50b992=_0x3dafe3;this[_0x50b992(0xa4)]=_0x3b3e5c(_0x3d29f5[_0x50b992(0xc6)],_0x50b992(0xd3),{'ctx-name':_0x50b992(0xb1)}),_0x3d29f5[_0x50b992(0xc6)][_0x50b992(0xe2)][_0x50b992(0xde)](this[_0x50b992(0xa4)]);}[_0x3dafe3(0xb3)](){const _0x216dad=_0x3dafe3,_0x5e8d74=this[_0x216dad(0xa9)][_0x216dad(0xd9)][_0x216dad(0xe4)](_0x216dad(0xdc));_0x5e8d74&&this[_0x216dad(0x9a)](_0x5e8d74,_0x216dad(0xc4),()=>{const _0x5b7a43=_0x216dad,_0x3b7b18=this[_0x5b7a43(0xa9)][_0x5b7a43(0x9b)][_0x5b7a43(0xc6)][_0x5b7a43(0xcd)][_0x5b7a43(0xd2)]();_0x3b7b18&&_0x3b7b18[_0x5b7a43(0xba)](_0x5b7a43(0xc5))&&this[_0x5b7a43(0xa9)][_0x5b7a43(0xe7)][_0x5b7a43(0xab)][_0x5b7a43(0xd7)](_0x5b7a43(0xb2),()=>{const _0x101c41=_0x5b7a43;_0x2b50d9(this[_0x101c41(0xa9)],_0x3b7b18);});});const _0xf8990b=this[_0x216dad(0xa9)][_0x216dad(0xd9)][_0x216dad(0xe4)](_0x216dad(0xbf));_0xf8990b&&this[_0x216dad(0x9a)](_0xf8990b,_0x216dad(0xc4),()=>{const _0x58ebbf=_0x216dad,_0x2a78f8=this[_0x58ebbf(0xa9)][_0x58ebbf(0x9b)][_0x58ebbf(0xc6)][_0x58ebbf(0xcd)][_0x58ebbf(0xd2)]();_0x2a78f8&&_0x2a78f8[_0x58ebbf(0xba)](_0x58ebbf(0xc5))&&this[_0x58ebbf(0xa9)][_0x58ebbf(0xe7)][_0x58ebbf(0xab)][_0x58ebbf(0xd7)](_0x58ebbf(0xb2),()=>{const _0x2a1d24=_0x58ebbf;_0x2b50d9(this[_0x2a1d24(0xa9)],_0x2a78f8);});});}}