@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.2 → 45.2.1-alpha.4

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 _0x521371,Command as _0x25f6f5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5617b1,IconGooglePhotos as _0x5de06c,IconGoogleDrive as _0x385103,IconFacebook as _0x4c2f1a,IconDropbox as _0x3eed63,IconUploadcareLink as _0x46e006,IconUploadcareImageUpload as _0x437ae3,IconError as et,IconUploadcareImageEdit as _0x1d7907}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xf4b58f,MenuBarMenuListItemButtonView as _0xc46d11,View as _0x170a73,FocusCycler as _0xd76bba,Dialog as _0x362d6a,DialogViewPosition as _0x43a803,SpinnerView as _0x3972cb,IconView as at,Notification as _0x34fbb2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x529866,DomEmitterMixin as _0x4f6d11,global as _0x4c88b9,getAncestors as _0x318d00,ObservableMixin as _0x55bf39,createElement as _0x22cfba,uid as _0x3f52ee}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2b9e6d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x557afa,info as _0x3ed1a0}from'@uploadcare/upload-client';import*as _0x31ad4f from'@uploadcare/file-uploader';var o=function(_0x30fe8e){return _0x30fe8e['Local']='local',_0x30fe8e['URL']='url',_0x30fe8e['Dropbox']='dropbox',_0x30fe8e['GDrive']='gdrive',_0x30fe8e['Facebook']='facebook',_0x30fe8e['GPhotos']='gphotos',_0x30fe8e['OneDrive']='onedrive',_0x30fe8e;}({});function _(_0x144f8c,_0x1514e0,_0x302a0f){const t=_0x144f8c['t'],_0x5c4fcd=_0x144f8c['t'];switch(_0x1514e0){case o['Local']:return{'text':_0x5c4fcd('Insert'===_0x302a0f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5c4fcd('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x302a0f?_0x5c4fcd('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5c4fcd('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x302a0f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1514e0;}}class e extends _0x521371{['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 _0x536944=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x662106;for(const _0x45dc2d in _0x536944){const _0xd7674e=_0x45dc2d,_0x182593=_0x536944[_0xd7674e];if('uploadcareLicenseKeyValid'==_0x182593||'uploadcareLicenseKeyInvalid'==_0x182593||'uploadcareLicenseKeyExpired'==_0x182593||'uploadcareLicenseKeyDomainLimit'==_0x182593||'uploadcareLicenseKeyNotAllowed'==_0x182593||'uploadcareLicenseKeyEvaluationLimit'==_0x182593||'uploadcareLicenseKeyTrialLimit'==_0x182593||'uploadcareLicenseKeyUsageLimit'==_0x182593){delete _0x536944[_0xd7674e],_0x662106=_0x182593,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x662106&&_0x536944['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x662106&&_0x536944['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x662106&&_0x536944['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x662106&&_0x536944['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x662106&&_0x536944['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x662106&&_0x536944['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x662106&&_0x536944['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1df000}=this,_0x2c5b70=_0x1df000['commands']['get']('uploadcare');if(!_0x2c5b70)return;const _0x251da9=this['_normalizeConfigSourceList'](_0x1df000['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x237715,_0x487b00)=>{const _0x3e7617=this['_getIntegrationKey'](_0x487b00['type']);return _0x237715[_0x3e7617]||(_0x237715[_0x3e7617]=[]),_0x237715[_0x3e7617]['push'](_0x487b00),_0x237715;},{});_0x1df000['plugins']['has']('ImageInsertUI')&&_0x1df000['commands']['get']('uploadcare')&&Object['entries'](_0x251da9)['forEach'](([_0x1321dc,_0x5464ef])=>{_0x1df000['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1321dc,'observable':()=>_0x2c5b70,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5464ef),'formViewCreator':()=>this['_createDropdownButtons'](_0x5464ef),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5464ef),'override':'assetManager'!==_0x1321dc});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x13d9b1){const {locale:_0x4d26ce}=this['editor'];return _0x13d9b1['map'](_0x380bc1=>{const _0x534f27=_(_0x4d26ce,_0x380bc1,'Insert');switch(_0x380bc1){case o['Local']:return{'icon':_0x437ae3,'type':o['Local'],..._0x534f27};case o['URL']:return{'icon':_0x46e006,'type':o['URL'],..._0x534f27};case o['Dropbox']:return{'icon':_0x3eed63,'type':o['Dropbox'],..._0x534f27};case o['Facebook']:return{'icon':_0x4c2f1a,'type':o['Facebook'],..._0x534f27};case o['GDrive']:return{'icon':_0x385103,'type':o['GDrive'],..._0x534f27};case o['GPhotos']:return{'icon':_0x5de06c,'type':o['GPhotos'],..._0x534f27};case o['OneDrive']:return{'icon':_0x5617b1,'type':o['OneDrive'],..._0x534f27};}});}['_getIntegrationKey'](_0x368886){switch(_0x368886){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3aeabe,_0x5e0f24){const _0x1df351=this['editor'],_0x3e4d1d=new _0x3aeabe(_0x1df351['locale']),_0xdd9447=_0x1df351['commands']['get']('uploadcare');return _0x3e4d1d['bind']('isEnabled')['to'](_0xdd9447),_0x3e4d1d['on']('execute',()=>{_0xdd9447['execute'](_0x5e0f24);}),_0x3e4d1d;}['_createToolbarButton'](_0x1d8621){const {locale:_0x4cdbad}=this['editor'],_0x596cc8=this['editor']['plugins']['get']('ImageInsertUI'),_0x6f3e30=_0x1d8621[0x0],_0x3497b1=this['_createButton'](_0xf4b58f,_0x6f3e30['type']);return _0x3497b1['icon']=_0x6f3e30['icon'],_0x3497b1['bind']('label')['to'](_0x596cc8,'isImageSelected',_0xf26aef=>_(_0x4cdbad,_0x6f3e30['type'],_0xf26aef?'Replace':'Insert')['text']),_0x3497b1['tooltip']=!0x0,_0x3497b1;}['_createDropdownButtons'](_0x206d3e){const {locale:_0x43a08e}=this['editor'],_0x4faed7=this['editor']['plugins']['get']('ImageInsertUI');return _0x206d3e['map'](_0x176e67=>{const _0x587ab4=this['_createButton'](_0xf4b58f,_0x176e67['type']);return _0x587ab4['withText']=!0x0,_0x587ab4['icon']=_0x176e67['icon'],_0x587ab4['bind']('label')['to'](_0x4faed7,'isImageSelected',_0x5986ab=>_(_0x43a08e,_0x176e67['type'],_0x5986ab?'Replace':'Insert')['text']),_0x587ab4;});}['_createMenuBarButtons'](_0x475e18){return _0x475e18['map'](_0x4c5411=>{const _0x71683c=this['_createButton'](_0xc46d11,_0x4c5411['type']);return _0x71683c['icon']=_0x4c5411['icon'],_0x71683c['label']=_0x4c5411['shortText'],_0x71683c;});}}class q extends _0x170a73{['focusTracker'];['focusCycler'];constructor(_0xd42640){super(_0xd42640),this['focusTracker']=new _0x529866(),this['focusCycler']=new _0xd76bba({'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(_0x2c75b4){super(_0x2c75b4),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(_0x45c3e6,_0x20f867){const _0x40d6a9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x24ccd3=>_0x24ccd3<=_0x20f867)['map'](_0x5b25c1=>_0x45c3e6['replace'](/\/$/,'')+'/-/resize/'+_0x5b25c1+'x/\x20'+_0x5b25c1+'w');return{'imageFallbackUrl':_0x45c3e6,'imageSources':[{'srcset':_0x40d6a9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x20f867+'px)\x20100vw,\x20'+_0x20f867+'px','type':'image/webp'}]};}function A(_0x26ff0,_0xb870c9,_0x391265){const _0x16a3df=_0x26ff0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16a3df?parseInt(_0x16a3df[0x1],0xa):_0xb870c9,'height':_0x16a3df?parseInt(_0x16a3df[0x2],0xa):_0x391265};}function m(_0x24bb3a,_0x133695){const _0x3a233d=Object['create'](_0x4f6d11),_0x423d8f=_0x24bb3a['plugins']['get']('ImageUtils'),_0x48ea6f=_0x24bb3a['editing']['mapper']['toViewElement'](_0x133695),_0x3fec7c=_0x423d8f['findViewImgElement'](_0x48ea6f),_0x249f0c=_0x24bb3a['editing']['view']['domConverter']['viewToDom'](_0x3fec7c),_0x5116f7=_0x133695['getAttribute']('width'),_0x333111=_0x133695['getAttribute']('height'),_0x5c0cc0='image-processing';_0x24bb3a['editing']['view']['change'](_0xff7f56=>{_0xff7f56['addClass'](_0x5c0cc0,_0x48ea6f),_0xff7f56['setStyle']('aspect-ratio',_0x5116f7+'/'+_0x333111,_0x3fec7c);}),_0x3a233d['listenTo'](_0x249f0c,'load',()=>{_0x3a233d['stopListening'](_0x249f0c,'load'),_0x24bb3a['editing']['view']['change'](_0x481263=>{_0x481263['removeClass'](_0x5c0cc0,_0x48ea6f),_0x481263['removeStyle']('aspect-ratio',_0x3fec7c);});});}function V(_0x5ce80f){if(Array['isArray'](_0x5ce80f)){const _0x3e9fda=_0x5ce80f['map'](V);return _0x2633f3=>_0x3e9fda['some'](_0x3ac0b8=>_0x3ac0b8(_0x2633f3));}if('origin'==_0x5ce80f){const _0x19f807=_0x4c88b9['window']['location']['origin'];return _0x947a0e=>new URL(_0x947a0e,_0x4c88b9['document']['baseURI'])['origin']==_0x19f807;}return'function'==typeof _0x5ce80f?_0x5ce80f:_0x5ce80f instanceof RegExp?_0x1c3208=>!(!_0x1c3208['match'](_0x5ce80f)&&!_0x1c3208['replace'](/^https?:\/\//,'')['match'](_0x5ce80f)):()=>!0x1;}function F(_0x46b17d,_0x3758cf){return _0x318d00(_0x46b17d['target'])['includes'](_0x3758cf);}class l extends/* #__PURE__ -- @preserve */
24
- _0x55bf39(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x13de15,_0xa45bf7,_0x3b6b9a){super(),this['_editor']=_0x13de15,this['_editing']=_0xa45bf7,this['_dialog']=_0x13de15['plugins']['get'](_0x362d6a),this['_api']=_0xa45bf7['ctxElement']['getAPI'](),this['_type']=_0x3b6b9a,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:_0x2bf002,model:_0xe0bd3f}=this['_editor'],_0x19b7a4=_0xe0bd3f['document']['selection']['getSelectedElement'](),_0x3008d6=_0x19b7a4&&(_0x19b7a4['is']('element','imageBlock')||_0x19b7a4['is']('element','imageInline'));this['_formView']=new S(_0x2bf002),this['_dialog']['show']({'id':'uploadCare','icon':_0x437ae3,'title':_(_0x2bf002,this['_type'],_0x3008d6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x43a803['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x130829=>!F(_0x130829,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x536185}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x16e636=>{const _0x2b1ad4=_0x536185['length'];for(const _0x213e41 of _0x536185){const _0xbf7f9=_0x213e41===_0x536185[_0x2b1ad4-0x1],{cdnUrl:_0x4fa4e0,fileInfo:_0x4103bf}=_0x213e41;if(!_0x4fa4e0||!_0x4103bf)continue;const {width:_0x35478d,height:_0x110ab4}=_0x4103bf['imageInfo'],_0x130473=A(_0x4fa4e0,_0x35478d,_0x110ab4),_0x437092=E(_0x4fa4e0,_0x130473['width']),_0x2c96c3={'id':_0x4103bf['uuid'],'type':'image','attributes':{'imageDimension':_0x130473,..._0x437092}};this['_insertAsset'](_0x2c96c3,_0xbf7f9,_0x16e636);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x34125f=>{'idle'===_0x34125f['detail']['status']&&!_0x34125f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4d2738,_0x498b1b,_0x192a94){const _0x440965=this['_editor']['model']['document']['selection'],_0x14f98f=_0x440965['getSelectedElement'](),_0x32029e=!(!_0x14f98f||!_0x14f98f['is']('element','imageInline'));_0x192a94['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4d2738,_0x32029e),_0x498b1b||_0x192a94['setSelection'](_0x440965['getLastPosition']());}['_insertImage'](_0x13b1b0,_0xa4c49b){const _0x16d87e=this['_editor'],{imageDimension:_0x502838,imageFallbackUrl:_0x515b2f,imageSources:_0x4872f1}=_0x13b1b0['attributes'];_0x16d87e['execute']('insertImage',{'imageType':_0xa4c49b?'imageInline':null,'source':{'uploadcareImageId':_0x13b1b0['id'],'src':_0x515b2f,'sources':_0x4872f1,..._0x502838}});}}class n extends _0x25f6f5{['_editing'];['_controller']=null;static get['requires'](){return[_0x362d6a,i];}constructor(_0x1d9d30){super(_0x1d9d30),this['_editing']=_0x1d9d30['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5e211a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5e211a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1c6b00,publicKey:_0xcf2115,signal:_0x14bbea,onProgress:_0x1ba072}){return _0x557afa(_0x1c6b00,{'publicKey':_0xcf2115,'store':'auto','signal':_0x14bbea,'onProgress':_0x1ba072});}static['getInfo'](_0x7bb442,_0x1eef9f){return _0x3ed1a0(_0x7bb442,_0x1eef9f);}}class p extends _0x521371{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2b9e6d,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2646bc=this['editor'];if(!!!_0x2646bc['config']['get']('uploadcare'))return;_0x2646bc['plugins']['get'](_0x2b9e6d)['createUploadAdapter']=_0x219619=>new x(_0x219619,_0x2646bc),_0x2646bc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1f3036,{imageElement:_0x40bdc2,data:_0x1d6bc4})=>{_0x2646bc['model']['change'](_0x5581f8=>{_0x5581f8['setAttribute']('uploadcareImageId',_0x1d6bc4['uploadcareImageId'],_0x40bdc2);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x55762f,_0x4fa48c){this['loader']=_0x55762f,this['editor']=_0x4fa48c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x17e4fe=this['editor']['config']['get']('uploadcare.pubkey'),_0x484a82=await this['loader']['file'];return C['upload']({'file':_0x484a82,'publicKey':_0x17e4fe,'signal':this['controller']['signal'],'onProgress':_0x7fad65=>{_0x7fad65&&_0x7fad65['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x7fad65['value']);}})['then'](async _0x31a29c=>{const {imageFallbackUrl:_0x30b9bd,imageSources:_0x5db87d}=E(_0x31a29c['cdnUrl'],_0x31a29c['imageInfo']['width']);return{'uploadcareImageId':_0x31a29c['uuid'],'default':_0x30b9bd,'sources':_0x5db87d};})['catch'](()=>{const _0x166da5=t('Cannot\x20upload\x20file:')+('\x20'+_0x484a82['name']+'.');return Promise['reject'](_0x166da5);});}['abort'](){this['controller']['abort']();}}class i extends _0x521371{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x362d6a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4e95e8=this['editor'];_0x4e95e8['commands']['add']('uploadcare',new n(_0x4e95e8));}['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 _0x4b4392=_0x4c88b9['document']['querySelector']('input[uploadcare-file-input]');_0x4b4392&&_0x4b4392['remove']();}),async function(_0x56796e){const _0x1fc6bf=_0x49847c([0x36,0x48,0x47,0x6c,0x35,0x65,0x50,0x78,0x6e,0x46,0x72,0x75,0x70,0x76,0x73,0x49,0x61,0x64,0x42,0x4a,0x79,0x74,0x71,0x6a,0x39,0x6b,0x5a,0x6f,0x62,0x57,0x43,0x69,0x58,0x7a,0x38,0x54,0x55,0x4c,0x45,0x32,0x33,0x52,0x4b,0x56,0x31,0x4f,0x44,0x4d,0x6d,0x63,0x68,0x4e,0x59,0x30,0x67,0x77,0x53,0x41,0x37,0x51,0x34,0x66]),_0x475f1e=0x6b3e0328,_0x10be3a=0x6b3969f8^_0x475f1e,_0x102ac8=window[_0x49847c([0x44,0x61,0x74,0x65])][_0x49847c([0x6e,0x6f,0x77])](),_0x5d9093=_0x56796e[_0x49847c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20a4f8=new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x537ef3=>{_0x5d9093[_0x49847c([0x6f,0x6e,0x63,0x65])](_0x49847c([0x72,0x65,0x61,0x64,0x79]),_0x537ef3);}),_0x4716cc={[_0x49847c([0x6b,0x74,0x79])]:_0x49847c([0x45,0x43]),[_0x49847c([0x75,0x73,0x65])]:_0x49847c([0x73,0x69,0x67]),[_0x49847c([0x63,0x72,0x76])]:_0x49847c([0x50,0x2d,0x32,0x35,0x36]),[_0x49847c([0x78])]:_0x49847c([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]),[_0x49847c([0x79])]:_0x49847c([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]),[_0x49847c([0x61,0x6c,0x67])]:_0x49847c([0x45,0x53,0x32,0x35,0x36])},_0x20db0a=_0x5d9093[_0x49847c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49847c([0x67,0x65,0x74])](_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37e674(){let _0x61a567,_0x36be7e=null,_0x2694fd=null;try{if(_0x20db0a==_0x49847c([0x47,0x50,0x4c]))return _0x49847c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x61a567=_0x54d373(),!_0x61a567)return _0x49847c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x61a567[_0x49847c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2694fd=_0x5e2b04(_0x61a567[_0x49847c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x61a567[_0x49847c([0x6a,0x74,0x69])])),await _0x2fb4d9()?_0x433885()?_0x1c5c4b()?_0x49847c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33327a()?(_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49847c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36be7e=_0x5711e5(_0x49847c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49847c([0x74,0x72,0x69,0x61,0x6c])&&(_0x36be7e=_0x5711e5(_0x49847c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21cfa3()):_0x49847c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49847c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49847c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49847c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c5c4b(){const _0x12fc3d=[_0x49847c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49847c([0x74,0x72,0x69,0x61,0x6c])][_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x102ac8/0x3e8:0xe10*_0x10be3a;return _0x61a567[_0x49847c([0x65,0x78,0x70])]<_0x12fc3d;}function _0x433885(){const _0x4e831d=_0x61a567[_0x49847c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e831d&&(!!_0x4e831d[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49847c([0x2a]))||!!_0x4e831d[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49847c([0x55,0x50,0x4c,0x43])));}function _0x33327a(){const _0x58b363=_0x61a567[_0x49847c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58b363||0x0==_0x58b363[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46bbec}=new URL(window[_0x49847c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58b363[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46bbec))return!0x0;const _0x1cb151=_0x46bbec[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e]));return _0x58b363[_0x49847c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x578877=>_0x578877[_0x49847c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49847c([0x2a])))[_0x49847c([0x6d,0x61,0x70])](_0x5c9072=>_0x5c9072[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e])))[_0x49847c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c6e2f=>_0x1c6e2f[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1cb151[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49847c([0x6d,0x61,0x70])](_0x595dc7=>Array(_0x1cb151[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x595dc7[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49847c([0x66,0x69,0x6c,0x6c])](_0x595dc7[0x0]===_0x49847c([0x2a])?_0x49847c([0x2a]):'')[_0x49847c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x595dc7))[_0x49847c([0x73,0x6f,0x6d,0x65])](_0x3481ab=>_0x1cb151[_0x49847c([0x65,0x76,0x65,0x72,0x79])]((_0x49ec22,_0x3ebdb9)=>_0x3481ab[_0x3ebdb9]===_0x49ec22||_0x3481ab[_0x3ebdb9]===_0x49847c([0x2a])));}function _0x21cfa3(){return _0x36be7e&&_0x2694fd?new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xeb7ea4,_0x440ac2)=>{_0x36be7e[_0x49847c([0x74,0x68,0x65,0x6e])](_0xeb7ea4,_0x440ac2),_0x2694fd[_0x49847c([0x74,0x68,0x65,0x6e])](_0x3a318b=>{_0x3a318b!=_0x49847c([0x56,0x61,0x6c,0x69,0x64])&&_0xeb7ea4(_0x3a318b);},_0x440ac2);}):_0x36be7e||_0x2694fd||_0x49847c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e2b04(_0x260e52,_0x53cd5b){return new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19a086=>{if(_0x4dfbe5())return _0x19a086(_0x49847c([0x56,0x61,0x6c,0x69,0x64]));_0x673aab(),_0x5d9093[_0x49847c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49847c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x471a36=!0x1;const _0x5975d9=_0x3f52ee();function _0x4922e9(_0x194f78){return!!_0x194f78&&(typeof _0x194f78===_0x49847c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x194f78===_0x49847c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x194f78[_0x49847c([0x74,0x68,0x65,0x6e])]===_0x49847c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x194f78[_0x49847c([0x63,0x61,0x74,0x63,0x68])]===_0x49847c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x499d26(_0x3c5a0e){_0xb32761(_0x3c5a0e)[_0x49847c([0x74,0x68,0x65,0x6e])](_0x589149=>{if(!_0x589149||_0x589149[_0x49847c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49847c([0x6f,0x6b]))return _0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ca7f3(_0x36aa8e(_0x5975d9+_0x53cd5b))!=_0x589149[_0x49847c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49847c([0x56,0x61,0x6c,0x69,0x64]);})[_0x49847c([0x74,0x68,0x65,0x6e])](_0x3beb43=>(_0x5ec476(),_0x3beb43),()=>{const _0x2b97f7=_0x324c2f();return null==_0x2b97f7?(_0x5ec476(),_0x49847c([0x56,0x61,0x6c,0x69,0x64])):_0x49847c(_0x102ac8-_0x2b97f7>(0x4f328728^_0x475f1e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49847c([0x74,0x68,0x65,0x6e])](_0x19a086)[_0x49847c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19a086(_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ab61f=0x6b08eda8^_0x475f1e;function _0x5ec476(){const _0x28a7d0=_0x49847c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ca7f3(_0x36aa8e(_0x260e52)),_0x1ca1b6=_0x4e2f43(_0x2ca7f3(window[_0x49847c([0x4d,0x61,0x74,0x68])][_0x49847c([0x63,0x65,0x69,0x6c])](_0x102ac8/_0x3ab61f)));window[_0x49847c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49847c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28a7d0,_0x1ca1b6);}function _0x324c2f(){const _0x427e8e=_0x49847c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ca7f3(_0x36aa8e(_0x260e52)),_0x6aa77d=window[_0x49847c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49847c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x427e8e);return _0x6aa77d?window[_0x49847c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e2f43(_0x6aa77d),0x10)*_0x3ab61f:null;}function _0xb32761(_0x5f3c3f){return new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e6b35,_0x5f51b0)=>{_0x5f3c3f[_0x49847c([0x74,0x68,0x65,0x6e])](_0x5e6b35,_0x5f51b0),window[_0x49847c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f51b0,0x6b3fd7e8^_0x475f1e);});}}_0x5d9093[_0x49847c([0x6f,0x6e])](_0x49847c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x112e70,_0xd644df)=>{if(_0xd644df[0x0]!=_0x260e52)return _0x19a086(_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd644df[0x1]={..._0xd644df[0x1],[_0x49847c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5975d9};},{[_0x49847c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49847c([0x68,0x69,0x67,0x68])}),_0x5d9093[_0x49847c([0x6f,0x6e])](_0x49847c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2974c9=>{_0x4922e9(_0x2974c9[_0x49847c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x471a36=!0x0,_0x499d26(_0x2974c9[_0x49847c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49847c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49847c([0x6c,0x6f,0x77])}),_0x20a4f8[_0x49847c([0x74,0x68,0x65,0x6e])](()=>{_0x471a36||_0x19a086(_0x49847c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4dfbe5(){return _0x5d9093[_0x49847c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49847c([0x76,0x69,0x65,0x77])][_0x49847c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49847c([0x61,0x75,0x74,0x6f]);}function _0x673aab(){_0x5d9093[_0x49847c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49847c([0x76,0x69,0x65,0x77])][_0x49847c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49847c([0x61,0x75,0x74,0x6f]);}}function _0x5711e5(_0x5d7821){const _0x50916a=[new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38b195=>setTimeout(_0x38b195,0x6b373de4^_0x475f1e)),_0x20a4f8[_0x49847c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b84ab=>{let _0xf71529=0x0;_0x5d9093[_0x49847c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49847c([0x6f,0x6e])](_0x49847c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b0071,_0x5e5ec4)=>{_0x5e5ec4[0x0][_0x49847c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf71529++,_0xf71529==(0x6b3e02d0^_0x475f1e)&&(_0x4b84ab(),_0x2b0071[_0x49847c([0x6f,0x66,0x66])]());});}))];return window[_0x49847c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49847c([0x72,0x61,0x63,0x65])](_0x50916a)[_0x49847c([0x74,0x68,0x65,0x6e])](()=>_0x5d7821);}async function _0x2d4643(){await _0x20a4f8,_0x5d9093[_0x49847c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49847c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3db9ab,_0x5d9093[_0x49847c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49847c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3db9ab,_0x5d9093[_0x49847c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49847c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ebba8(_0x200f17){const _0x1ef7ec=_0x36799b();_0x5d9093[_0x1ef7ec]=_0x49847c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x200f17,_0x200f17!=_0x49847c([0x56,0x61,0x6c,0x69,0x64])&&_0x2d4643();}function _0x36799b(){const _0x2bcf4d=window[_0x49847c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49847c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49847c([0x6e,0x6f,0x77])]())[_0x49847c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49847c([0x2e]),'');let _0x168fb6=_0x49847c([0x48]);for(let _0x322603=0x0;_0x322603<_0x2bcf4d[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x322603+=0x2){let _0x55129c=window[_0x49847c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bcf4d[_0x49847c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x322603,_0x322603+0x2));_0x55129c>=_0x1fc6bf[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55129c-=_0x1fc6bf[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x168fb6+=_0x1fc6bf[_0x55129c];}return _0x168fb6;}function _0x54d373(){const _0x20b597=_0x20db0a[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e]));if(0x3!=_0x20b597[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x546fb9(_0x20b597[0x1]);function _0x546fb9(_0xcc5c97){const _0x301f18=_0x400d0a(_0xcc5c97);return _0x301f18&&_0x329f34()?_0x301f18:null;function _0x329f34(){const _0x4ef19a=_0x301f18[_0x49847c([0x6a,0x74,0x69])],_0x4cc02c=window[_0x49847c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ef19a[_0x49847c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ef19a[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x54280e={..._0x301f18,[_0x49847c([0x6a,0x74,0x69])]:_0x4ef19a[_0x49847c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ef19a[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x54280e[_0x49847c([0x76,0x63])],_0x36aa8e(_0x54280e)==_0x4cc02c;}}}async function _0x2fb4d9(){let _0x23b6ee=!0x0;try{const _0x4d6fda=_0x20db0a[_0x49847c([0x73,0x70,0x6c,0x69,0x74])](_0x49847c([0x2e])),[_0x3cc315,_0x49b4b5,_0x254715]=_0x4d6fda;return _0x37fc71(_0x3cc315),await _0x4caf7f(_0x3cc315,_0x49b4b5,_0x254715),_0x23b6ee;}catch{return!0x1;}function _0x37fc71(_0x12fc3f){const _0x5be9d8=_0x400d0a(_0x12fc3f);_0x5be9d8&&_0x5be9d8[_0x49847c([0x61,0x6c,0x67])]==_0x49847c([0x45,0x53,0x32,0x35,0x36])||(_0x23b6ee=!0x1);}async function _0x4caf7f(_0x46dd08,_0x525f4d,_0x1dfc29){const _0x31eb00=window[_0x49847c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49847c([0x66,0x72,0x6f,0x6d])](_0x5dfb82(_0x1dfc29),_0x4083c4=>_0x4083c4[_0x49847c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8fbc5d=new window[(_0x49847c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49847c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46dd08+_0x49847c([0x2e])+_0x525f4d),_0x27a935=window[_0x49847c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49847c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27a935)return;const _0x2fc811=await _0x27a935[_0x49847c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49847c([0x6a,0x77,0x6b]),_0x4716cc,{[_0x49847c([0x6e,0x61,0x6d,0x65])]:_0x49847c([0x45,0x43,0x44,0x53,0x41]),[_0x49847c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49847c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49847c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27a935[_0x49847c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49847c([0x6e,0x61,0x6d,0x65])]:_0x49847c([0x45,0x43,0x44,0x53,0x41]),[_0x49847c([0x68,0x61,0x73,0x68])]:{[_0x49847c([0x6e,0x61,0x6d,0x65])]:_0x49847c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fc811,_0x31eb00,_0x8fbc5d)||(_0x23b6ee=!0x1);}}function _0x400d0a(_0xbcd9c7){return _0xbcd9c7[_0x49847c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49847c([0x65,0x79]))?JSON[_0x49847c([0x70,0x61,0x72,0x73,0x65])](_0x5dfb82(_0xbcd9c7)):null;}function _0x5dfb82(_0x5ae797){return window[_0x49847c([0x61,0x74,0x6f,0x62])](_0x5ae797[_0x49847c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49847c([0x2b]))[_0x49847c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49847c([0x2f])));}function _0x36aa8e(_0x4d1722){let _0x2e973f=0x1505;function _0xd60536(_0x5e72a2){for(let _0x8bb8cf=0x0;_0x8bb8cf<_0x5e72a2[_0x49847c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8bb8cf++){const _0x5a4696=_0x5e72a2[_0x49847c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8bb8cf);_0x2e973f=(_0x2e973f<<0x5)+_0x2e973f+_0x5a4696,_0x2e973f&=_0x2e973f;}}function _0x2aec90(_0x1876ac){Array[_0x49847c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1876ac)?_0x1876ac[_0x49847c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2aec90):_0x1876ac&&typeof _0x1876ac==_0x49847c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49847c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1876ac)[_0x49847c([0x73,0x6f,0x72,0x74])]()[_0x49847c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2afd6f,_0x371467])=>{_0xd60536(_0x2afd6f),_0x2aec90(_0x371467);}):_0xd60536(window[_0x49847c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1876ac));}return _0x2aec90(_0x4d1722),_0x2e973f>>>0x0;}function _0x2ca7f3(_0x4c9996){return _0x4c9996[_0x49847c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49847c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49847c([0x30]));}function _0x4e2f43(_0x3e49e6){return _0x3e49e6[_0x49847c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49847c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49847c([0x6a,0x6f,0x69,0x6e])]('');}function _0x3db9ab(){}function _0x49847c(_0x1b7acb){return _0x1b7acb['map'](_0x420350=>String['fromCharCode'](_0x420350))['join']('');}_0x3ebba8(await _0x37e674());}(this);}['_initSchema'](){const _0x6f0f68=this['editor']['model']['schema'];_0x6f0f68['isRegistered']('imageBlock')&&_0x6f0f68['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x6f0f68['isRegistered']('imageInline')&&_0x6f0f68['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3c6cf6=this['editor'];_0x3c6cf6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3c6cf6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1c7573=>_0x1c7573['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x58c1ec=_0x3c6cf6['commands']['get']('replaceImageSource');_0x58c1ec&&this['listenTo'](_0x58c1ec,'cleanupImage',(_0x132b50,[_0x4fdbb0,_0x5725b7])=>{_0x4fdbb0['removeAttribute']('uploadcareImageId',_0x5725b7);});}['_initConfig'](){const _0x214454=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e6b82=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x22cfba(_0x4c88b9['document'],'uc-config',{..._0x214454,'pubkey':_0x1e6b82,'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']=_0x197a9e=>{if('closeMax'==_0x197a9e)return'#uc-icon-arrow-down';},_0x4c88b9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x22cfba(_0x4c88b9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4c88b9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x479cae=this['editor']['commands']['get']('insertImage');_0x479cae&&this['listenTo'](_0x479cae,'execute',()=>{const _0x27e171=this['editor']['model']['document']['selection']['getSelectedElement']();_0x27e171&&_0x27e171['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x27e171);});});const _0x5adfa0=this['editor']['commands']['get']('uploadcareImageReplace');_0x5adfa0&&this['listenTo'](_0x5adfa0,'execute',()=>{const _0x40017a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40017a&&_0x40017a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x40017a);});});}}class u extends _0x521371{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22d069){super(_0x22d069),_0x22d069['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x31ad4f['defineComponents'](_0x31ad4f);}}class ta extends _0x170a73{constructor(_0x115c23){super(_0x115c23);const t=_0x115c23['t'],_0xbe8b46=this['bindTemplate'],_0x27e36d=new _0x3972cb();_0x27e36d['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':[_0x27e36d,{'text':_0xbe8b46['to']('imageUploadProgress',_0x4bd558=>t('Loading\x20image...')+'\x20('+(_0x4bd558||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 _0x170a73{constructor(_0x4954f7){super(_0x4954f7);const t=_0x4954f7['t'];this['set']('errorType',null);const _0x311a64=new _0xf4b58f(_0x4954f7);_0x311a64['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x311a64['withText']=!0x0,_0x311a64['class']='ck-button-action',_0x311a64['on']('execute',()=>{this['fire']('retry');}),_0x311a64['bind']('isVisible')['to'](this,'errorType',_0x26da1f=>'NotFound'!==_0x26da1f);const _0x480a24=new at();_0x480a24['content']=et,_0x480a24['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x110154=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':[_0x480a24,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x110154['to']('errorType',_0x2f284b=>t('NotFound'!==_0x2f284b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x311a64]},{'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 _0x170a73{constructor(_0x40d1e4,_0x1bdfc4){super(_0x40d1e4);const _0x4e2677=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1bdfc4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4e2677['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x315a2c,_0x8e5ae9,_0x2c4044){super(_0x315a2c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x315a2c),this['_errorView']=new rt(_0x315a2c),this['_editingView']=new tt(_0x315a2c,_0x2c4044),this['_focusableView']=new _0x170a73(_0x315a2c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x8e5ae9),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'],_0x3b2083=>{this['_addUploadcareImageEditorListeners'](_0x3b2083);});}),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'](_0x4f4644,_0x35d624){const _0x298367='uc-cloud-image-editor',_0x2ca4c5=_0x4f4644['querySelector'](_0x298367);if(_0x2ca4c5)return _0x35d624(_0x2ca4c5);const _0x30de63=new MutationObserver(_0xf59710=>{const _0xbcf4b=_0xf59710['filter'](_0x4fd2c7=>_0x4fd2c7['target']===_0x4f4644&&_0x4fd2c7['addedNodes']['length']>0x0&&_0x4fd2c7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x298367);_0xbcf4b['length']&&(_0x30de63['disconnect'](),_0x35d624(_0xbcf4b[0x0]['addedNodes'][0x0]));});_0x30de63['observe'](_0x4f4644,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x419491){_0x419491['addEventListener']('apply',_0xe38f69=>{this['fire']('apply',{'imageSrc':_0xe38f69['detail']['cdnUrl']});}),_0x419491['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x55bf39(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5e526b,_0x161daf,_0x43f2a4){super(),this['_editor']=_0x5e526b,this['_dialog']=_0x161daf,this['_imageElement']=_0x43f2a4,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 _0xc96e3e=this['_imageElement'],_0x284d8b=_0xc96e3e['getAttribute']('uploadcareImageId'),_0x439839=_0xc96e3e['getAttribute']('src');if(_0x284d8b)await this['_loadImageInfo'](_0x284d8b,_0x439839);else{if(this['_imageCache']['has'](_0x439839)){const _0x325bfe=this['_imageCache']['get'](_0x439839);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x325bfe['url'],this['imageDimension']=_0x325bfe['dimension'],this['imageId']=_0x325bfe['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x492a79}=this['_editor'],t=_0x492a79['t'],_0x47a5a3=new Z(_0x492a79,this['imageStatus'],this['_attributes']);_0x47a5a3['bind']('status')['to'](this,'imageStatus'),_0x47a5a3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x47a5a3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x47a5a3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x47a5a3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1d7907,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x47a5a3,'position':_0x43a803['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x47a5a3['focus']();},'onHide':()=>{_0x47a5a3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19687b=>!F(_0x19687b,_0x47a5a3['element'])}});}['_loadImageInfo'](_0x48b237,_0x46b41c){return C['getInfo'](_0x48b237,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3dd600=>{const {width:_0x23ce0a,height:_0x50e065}=_0x3dd600['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x46b41c,this['imageDimension']={'width':_0x23ce0a,'height':_0x50e065},this['imageId']=_0x48b237;})['catch'](_0x5ce4f1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5ce4f1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1f99b1,_0x45a70d){return this['_getImageAsFile'](_0x1f99b1)['then'](_0x5cbc05=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x45a70d['signal'],'file':_0x5cbc05,'onProgress':_0x57cb77=>{_0x57cb77&&_0x57cb77['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x57cb77['value']));}}))['then'](_0x24677d=>{const {width:_0x2e3284,height:_0x45e33b}=_0x24677d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24677d['cdnUrl'],this['imageDimension']={'width':_0x2e3284,'height':_0x45e33b},this['imageId']=_0x24677d['uuid'],this['imageUploadProgress']=null;const _0x3a6402=_0x1f99b1['getAttribute']('src');this['_imageCache']['set'](_0x3a6402,{'id':_0x24677d['uuid'],'url':_0x24677d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2ed9fb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ed9fb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4b8461,_0x247c14){_0x4b8461['on']('apply',(_0x193f77,_0x2c7e62)=>{this['_replaceImage'](_0x247c14,_0x2c7e62['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4b8461['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4b8461['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x24826f,_0xd36177,_0x523e25){const _0x591311=this['_editor'],{width:_0x3f2dc0,height:_0x4f114b}=A(_0xd36177,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1b7049,imageSources:_0x18d4b7}=E(_0xd36177,_0x3f2dc0);_0x591311['model']['change'](_0x3379e9=>{if('$graveyard'===_0x24826f['root']['rootName']){_0x591311['execute']('insertImage',{'imageType':_0x24826f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x24826f['getAttributes']()),'uploadcareImageId':_0x523e25,'src':_0x1b7049,'sources':_0x18d4b7,'width':_0x3f2dc0,'height':_0x4f114b}});const _0x378503=_0x24826f['getChildren']();_0x24826f=_0x591311['model']['document']['selection']['getSelectedElement']();for(const _0x183ca8 of _0x378503)_0x3379e9['append'](_0x3379e9['cloneElement'](_0x183ca8),_0x24826f);}else _0x3379e9['setSelection'](_0x24826f,'on'),_0x591311['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x24826f['getAttributes']()),'uploadcareImageId':_0x523e25,'src':_0x1b7049,'sources':_0x18d4b7,'width':_0x3f2dc0,'height':_0x4f114b},_0x24826f);_0x3379e9['setSelection'](_0x24826f,'on');});}async['_getImageAsFile'](_0x22cc44){const _0x5e82d4=_0x4c88b9['window'],_0x399505=_0x4c88b9['document']['location']['href'],_0x47f47f=new _0x5e82d4['URL'](_0x22cc44['getAttribute']('src'),_0x399505);if('data:'===_0x47f47f['protocol']){const _0x38155f=_0x47f47f['href']['split'](','),_0x1b9744=_0x38155f[0x0]['match'](/:(.*?);/)[0x1],_0x786728=_0x1b9744['split']('/')[0x1],_0x5231aa=_0x5e82d4['atob'](_0x38155f[_0x38155f['length']-0x1]);let _0x31ad11=_0x5231aa['length'];const _0x380aae=new _0x5e82d4['Uint8Array'](_0x31ad11);for(;_0x31ad11--;)_0x380aae[_0x31ad11]=_0x5231aa['charCodeAt'](_0x31ad11);return new _0x5e82d4['File']([_0x380aae],'image.'+_0x786728,{'type':_0x1b9744});}const _0x5cb8eb=_0x47f47f['href']['split']('/'),_0x29fbd3=_0x5cb8eb[_0x5cb8eb['length']-0x1],_0x316f46=_0x29fbd3['split']('.')[0x1];return _0x5e82d4['fetch'](_0x47f47f['href'])['then'](_0x438bb6=>_0x438bb6['clone']()['blob']())['then'](_0x2310a8=>new _0x5e82d4['File']([_0x2310a8],_0x29fbd3,{'type':'image/'+_0x316f46}));}}class J extends _0x25f6f5{['imageEditController'];static get['requires'](){return[_0x362d6a];}['_isEditable'];constructor(_0x498ddc){super(_0x498ddc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3a097e){const _0x2bb6c0=V(_0x3a097e);return _0x5bd794=>!(!_0x5bd794||!_0x5bd794['is']('element','imageBlock')&&!_0x5bd794['is']('element','imageInline'))&&(!!_0x5bd794['hasAttribute']('uploadcareImageId')||!!_0x5bd794['hasAttribute']('src')&&_0x2bb6c0(_0x5bd794['getAttribute']('src')));}(_0x498ddc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x56d7fd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x56d7fd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x22fa98=this['editor']['model']['document']['selection']['getSelectedElement']();_0x22fa98&&(_0x22fa98['is']('element','imageBlock')||_0x22fa98['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x362d6a),_0x22fa98),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x25f6f5{['refresh'](){const _0x61c033=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x61c033&&(_0x61c033['is']('element','imageBlock')||_0x61c033['is']('element','imageInline')));}['execute'](_0x45b282){const _0x3066c1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x54dca2=>{_0x54dca2['setAttributes'](_0x45b282,_0x3066c1),_0x54dca2['removeAttribute']('srcset',_0x3066c1),_0x54dca2['removeAttribute']('sizes',_0x3066c1);});}}class g extends _0x521371{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x34fbb2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xf00371}=this;_0xf00371['commands']['add']('uploadcareImageEdit',new J(_0xf00371)),_0xf00371['commands']['add']('uploadcareImageReplace',new O(_0xf00371));}}class j extends _0x521371{['_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 _0x35a9e6=this['editor'];_0x35a9e6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5a193d=>{const _0x2275bc=_0x35a9e6['commands']['get']('uploadcareImageEdit'),_0x2dd023=new _0xf4b58f(_0x5a193d),t=_0x5a193d['t'];return _0x2dd023['set']({'icon':_0x1d7907,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2dd023['bind']('isEnabled')['to'](_0x2275bc),_0x2dd023['bind']('isOn')['to'](_0x2275bc,'isActive'),this['listenTo'](_0x2dd023,'execute',()=>{_0x35a9e6['execute']('uploadcareImageEdit'),_0x35a9e6['editing']['view']['focus']();}),_0x2dd023;}),this['_initConfig']();}['_initConfig'](){const _0x8842ea=_0x22cfba(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x8842ea),this['listenTo'](this['editor'],'destroy',()=>{_0x8842ea['remove']();});}}class P extends _0x521371{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 _0x83f380,Command as _0x284ce4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x24ebb6,IconGooglePhotos as _0x4a803e,IconGoogleDrive as _0x45bf31,IconFacebook as _0x46f917,IconDropbox as _0x1a6a2,IconUploadcareLink as _0x766550,IconUploadcareImageUpload as _0x567a2a,IconError as et,IconUploadcareImageEdit as _0x4fbabd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x9b1d43,MenuBarMenuListItemButtonView as _0x3517e8,View as _0x33a16c,FocusCycler as _0x1255d5,Dialog as _0x3085c1,DialogViewPosition as _0x3b5578,SpinnerView as _0x431700,IconView as at,Notification as _0x3e8221}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x142e2c,DomEmitterMixin as _0x1f5d80,global as _0x320a56,getAncestors as _0x39cfb9,ObservableMixin as _0x31e656,createElement as _0x40596b,uid as _0x12184a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x41a768}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3c5c7f,info as _0x395983}from'@uploadcare/upload-client';import*as _0x1ea6bb from'@uploadcare/file-uploader';var o=function(_0xf0acca){return _0xf0acca['Local']='local',_0xf0acca['URL']='url',_0xf0acca['Dropbox']='dropbox',_0xf0acca['GDrive']='gdrive',_0xf0acca['Facebook']='facebook',_0xf0acca['GPhotos']='gphotos',_0xf0acca['OneDrive']='onedrive',_0xf0acca;}({});function _(_0x249523,_0x701a29,_0x3a4b6f){const t=_0x249523['t'],_0x375656=_0x249523['t'];switch(_0x701a29){case o['Local']:return{'text':_0x375656('Insert'===_0x3a4b6f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x375656('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3a4b6f?_0x375656('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x375656('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3a4b6f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3a4b6f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3a4b6f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3a4b6f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3a4b6f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x701a29;}}class e extends _0x83f380{['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 _0x59cbc6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ec0df;for(const _0x100b75 in _0x59cbc6){const _0xbe1e2e=_0x100b75,_0x5d19c8=_0x59cbc6[_0xbe1e2e];if('uploadcareLicenseKeyValid'==_0x5d19c8||'uploadcareLicenseKeyInvalid'==_0x5d19c8||'uploadcareLicenseKeyExpired'==_0x5d19c8||'uploadcareLicenseKeyDomainLimit'==_0x5d19c8||'uploadcareLicenseKeyNotAllowed'==_0x5d19c8||'uploadcareLicenseKeyEvaluationLimit'==_0x5d19c8||'uploadcareLicenseKeyTrialLimit'==_0x5d19c8||'uploadcareLicenseKeyUsageLimit'==_0x5d19c8){delete _0x59cbc6[_0xbe1e2e],_0x1ec0df=_0x5d19c8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1ec0df&&_0x59cbc6['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1edab7}=this,_0x2539d9=_0x1edab7['commands']['get']('uploadcare');if(!_0x2539d9)return;const _0x5b219c=this['_normalizeConfigSourceList'](_0x1edab7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x34a0c2,_0x3088bf)=>{const _0x48bda9=this['_getIntegrationKey'](_0x3088bf['type']);return _0x34a0c2[_0x48bda9]||(_0x34a0c2[_0x48bda9]=[]),_0x34a0c2[_0x48bda9]['push'](_0x3088bf),_0x34a0c2;},{});_0x1edab7['plugins']['has']('ImageInsertUI')&&_0x1edab7['commands']['get']('uploadcare')&&Object['entries'](_0x5b219c)['forEach'](([_0x793460,_0x330a69])=>{_0x1edab7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x793460,'observable':()=>_0x2539d9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x330a69),'formViewCreator':()=>this['_createDropdownButtons'](_0x330a69),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x330a69),'override':'assetManager'!==_0x793460});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x293ca0){const {locale:_0xcdda4}=this['editor'];return _0x293ca0['map'](_0x3c4de7=>{const _0x41c3c9=_(_0xcdda4,_0x3c4de7,'Insert');switch(_0x3c4de7){case o['Local']:return{'icon':_0x567a2a,'type':o['Local'],..._0x41c3c9};case o['URL']:return{'icon':_0x766550,'type':o['URL'],..._0x41c3c9};case o['Dropbox']:return{'icon':_0x1a6a2,'type':o['Dropbox'],..._0x41c3c9};case o['Facebook']:return{'icon':_0x46f917,'type':o['Facebook'],..._0x41c3c9};case o['GDrive']:return{'icon':_0x45bf31,'type':o['GDrive'],..._0x41c3c9};case o['GPhotos']:return{'icon':_0x4a803e,'type':o['GPhotos'],..._0x41c3c9};case o['OneDrive']:return{'icon':_0x24ebb6,'type':o['OneDrive'],..._0x41c3c9};}});}['_getIntegrationKey'](_0x5e029e){switch(_0x5e029e){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x26c433,_0x5d1145){const _0x4c856c=this['editor'],_0x14e656=new _0x26c433(_0x4c856c['locale']),_0x2f1fb3=_0x4c856c['commands']['get']('uploadcare');return _0x14e656['bind']('isEnabled')['to'](_0x2f1fb3),_0x14e656['on']('execute',()=>{_0x2f1fb3['execute'](_0x5d1145);}),_0x14e656;}['_createToolbarButton'](_0x447011){const {locale:_0x5c53be}=this['editor'],_0x56fcb9=this['editor']['plugins']['get']('ImageInsertUI'),_0x5d0472=_0x447011[0x0],_0x2ea636=this['_createButton'](_0x9b1d43,_0x5d0472['type']);return _0x2ea636['icon']=_0x5d0472['icon'],_0x2ea636['bind']('label')['to'](_0x56fcb9,'isImageSelected',_0x832fa0=>_(_0x5c53be,_0x5d0472['type'],_0x832fa0?'Replace':'Insert')['text']),_0x2ea636['tooltip']=!0x0,_0x2ea636;}['_createDropdownButtons'](_0x53efe7){const {locale:_0x3ed98e}=this['editor'],_0x5a17d3=this['editor']['plugins']['get']('ImageInsertUI');return _0x53efe7['map'](_0x32cfa6=>{const _0x373f94=this['_createButton'](_0x9b1d43,_0x32cfa6['type']);return _0x373f94['withText']=!0x0,_0x373f94['icon']=_0x32cfa6['icon'],_0x373f94['bind']('label')['to'](_0x5a17d3,'isImageSelected',_0x137218=>_(_0x3ed98e,_0x32cfa6['type'],_0x137218?'Replace':'Insert')['text']),_0x373f94;});}['_createMenuBarButtons'](_0x1e8725){return _0x1e8725['map'](_0x1d1667=>{const _0x4ec332=this['_createButton'](_0x3517e8,_0x1d1667['type']);return _0x4ec332['icon']=_0x1d1667['icon'],_0x4ec332['label']=_0x1d1667['shortText'],_0x4ec332;});}}class q extends _0x33a16c{['focusTracker'];['focusCycler'];constructor(_0x4a6e93){super(_0x4a6e93),this['focusTracker']=new _0x142e2c(),this['focusCycler']=new _0x1255d5({'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(_0x17dc7b){super(_0x17dc7b),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(_0x50414d,_0x10f784){const _0x43fe90=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x12659b=>_0x12659b<=_0x10f784)['map'](_0x1d55f3=>_0x50414d['replace'](/\/$/,'')+'/-/resize/'+_0x1d55f3+'x/\x20'+_0x1d55f3+'w');return{'imageFallbackUrl':_0x50414d,'imageSources':[{'srcset':_0x43fe90['join'](',\x20'),'sizes':'(max-width:\x20'+_0x10f784+'px)\x20100vw,\x20'+_0x10f784+'px','type':'image/webp'}]};}function A(_0x16cb2e,_0x3222be,_0x11a009){const _0x5ac207=_0x16cb2e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5ac207?parseInt(_0x5ac207[0x1],0xa):_0x3222be,'height':_0x5ac207?parseInt(_0x5ac207[0x2],0xa):_0x11a009};}function m(_0x2d1ef9,_0xc15914){const _0x2f811a=Object['create'](_0x1f5d80),_0x190d8d=_0x2d1ef9['plugins']['get']('ImageUtils'),_0x3d4911=_0x2d1ef9['editing']['mapper']['toViewElement'](_0xc15914),_0xf7d9f=_0x190d8d['findViewImgElement'](_0x3d4911),_0x2eabfa=_0x2d1ef9['editing']['view']['domConverter']['viewToDom'](_0xf7d9f),_0xc5ad91=_0xc15914['getAttribute']('width'),_0x235eef=_0xc15914['getAttribute']('height'),_0x4bb4ce='image-processing';_0x2d1ef9['editing']['view']['change'](_0x4e6547=>{_0x4e6547['addClass'](_0x4bb4ce,_0x3d4911),_0x4e6547['setStyle']('aspect-ratio',_0xc5ad91+'/'+_0x235eef,_0xf7d9f);}),_0x2f811a['listenTo'](_0x2eabfa,'load',()=>{_0x2f811a['stopListening'](_0x2eabfa,'load'),_0x2d1ef9['editing']['view']['change'](_0x1e8e64=>{_0x1e8e64['removeClass'](_0x4bb4ce,_0x3d4911),_0x1e8e64['removeStyle']('aspect-ratio',_0xf7d9f);});});}function V(_0x2dd21b){if(Array['isArray'](_0x2dd21b)){const _0x13b675=_0x2dd21b['map'](V);return _0x458f19=>_0x13b675['some'](_0x200f01=>_0x200f01(_0x458f19));}if('origin'==_0x2dd21b){const _0x4c4ae5=_0x320a56['window']['location']['origin'];return _0x16cb64=>new URL(_0x16cb64,_0x320a56['document']['baseURI'])['origin']==_0x4c4ae5;}return'function'==typeof _0x2dd21b?_0x2dd21b:_0x2dd21b instanceof RegExp?_0x166e75=>!(!_0x166e75['match'](_0x2dd21b)&&!_0x166e75['replace'](/^https?:\/\//,'')['match'](_0x2dd21b)):()=>!0x1;}function F(_0x5a327e,_0x31dbe1){return _0x39cfb9(_0x5a327e['target'])['includes'](_0x31dbe1);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x31e656(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4c9898,_0x3574e1,_0x26a27d){super(),this['_editor']=_0x4c9898,this['_editing']=_0x3574e1,this['_dialog']=_0x4c9898['plugins']['get'](_0x3085c1),this['_api']=_0x3574e1['ctxElement']['getAPI'](),this['_type']=_0x26a27d,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:_0x207bfb,model:_0x1eda66}=this['_editor'],_0x7c440a=_0x1eda66['document']['selection']['getSelectedElement'](),_0x210ad2=_0x7c440a&&(_0x7c440a['is']('element','imageBlock')||_0x7c440a['is']('element','imageInline'));this['_formView']=new S(_0x207bfb),this['_dialog']['show']({'id':'uploadCare','icon':_0x567a2a,'title':_(_0x207bfb,this['_type'],_0x210ad2?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3b5578['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d08a1=>!F(_0x3d08a1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x57b8e4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x715040=>{const _0x396e70=_0x57b8e4['length'];for(const _0x4fabe4 of _0x57b8e4){const _0x4ef295=_0x4fabe4===_0x57b8e4[_0x396e70-0x1],{cdnUrl:_0x3f3f57,fileInfo:_0x4407af}=_0x4fabe4;if(!_0x3f3f57||!_0x4407af)continue;const {width:_0x2917a1,height:_0x2bb5ef}=_0x4407af['imageInfo'],_0x3f4efc=A(_0x3f3f57,_0x2917a1,_0x2bb5ef),_0x276847=E(_0x3f3f57,_0x3f4efc['width']),_0x18bb78={'id':_0x4407af['uuid'],'type':'image','attributes':{'imageDimension':_0x3f4efc,..._0x276847}};this['_insertAsset'](_0x18bb78,_0x4ef295,_0x715040);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xe88d88=>{'idle'===_0xe88d88['detail']['status']&&!_0xe88d88['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1eba2f,_0x4b150f,_0x3b9b0b){const _0x1692a5=this['_editor']['model']['document']['selection'],_0x2605bc=_0x1692a5['getSelectedElement'](),_0x2a200b=!(!_0x2605bc||!_0x2605bc['is']('element','imageInline'));_0x3b9b0b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1eba2f,_0x2a200b),_0x4b150f||_0x3b9b0b['setSelection'](_0x1692a5['getLastPosition']());}['_insertImage'](_0x19deb3,_0x32c099){const _0x5933b1=this['_editor'],{imageDimension:_0x83ee92,imageFallbackUrl:_0xf9a021,imageSources:_0x39b1ce}=_0x19deb3['attributes'];_0x5933b1['execute']('insertImage',{'imageType':_0x32c099?'imageInline':null,'source':{'uploadcareImageId':_0x19deb3['id'],'src':_0xf9a021,'sources':_0x39b1ce,..._0x83ee92}});}}class n extends _0x284ce4{['_editing'];['_controller']=null;static get['requires'](){return[_0x3085c1,i];}constructor(_0x522b56){super(_0x522b56),this['_editing']=_0x522b56['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1ca6e9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1ca6e9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5b08bd,publicKey:_0x1c1cd3,signal:_0x44f0a8,onProgress:_0x3878f8}){return _0x3c5c7f(_0x5b08bd,{'publicKey':_0x1c1cd3,'store':'auto','signal':_0x44f0a8,'onProgress':_0x3878f8});}static['getInfo'](_0x1fd471,_0x66b0f6){return _0x395983(_0x1fd471,_0x66b0f6);}}class p extends _0x83f380{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x41a768,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1e1e3b=this['editor'];if(!!!_0x1e1e3b['config']['get']('uploadcare'))return;_0x1e1e3b['plugins']['get'](_0x41a768)['createUploadAdapter']=_0x3dd037=>new x(_0x3dd037,_0x1e1e3b),_0x1e1e3b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5b0a9e,{imageElement:_0x3f12ea,data:_0x5942b9})=>{_0x1e1e3b['model']['change'](_0x376ed0=>{_0x376ed0['setAttribute']('uploadcareImageId',_0x5942b9['uploadcareImageId'],_0x3f12ea);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5af5cc,_0x3ea5c1){this['loader']=_0x5af5cc,this['editor']=_0x3ea5c1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x187368=this['editor']['config']['get']('uploadcare.pubkey'),_0x23c34d=await this['loader']['file'];return C['upload']({'file':_0x23c34d,'publicKey':_0x187368,'signal':this['controller']['signal'],'onProgress':_0x16b820=>{_0x16b820&&_0x16b820['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x16b820['value']);}})['then'](async _0x57b347=>{const {imageFallbackUrl:_0x17febd,imageSources:_0x27796a}=E(_0x57b347['cdnUrl'],_0x57b347['imageInfo']['width']);return{'uploadcareImageId':_0x57b347['uuid'],'default':_0x17febd,'sources':_0x27796a};})['catch'](()=>{const _0x19d1e0=t('Cannot\x20upload\x20file:')+('\x20'+_0x23c34d['name']+'.');return Promise['reject'](_0x19d1e0);});}['abort'](){this['controller']['abort']();}}class i extends _0x83f380{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3085c1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x131b58=this['editor'];_0x131b58['commands']['add']('uploadcare',new n(_0x131b58));}['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 _0x1def09=_0x320a56['document']['querySelector']('input[uploadcare-file-input]');_0x1def09&&_0x1def09['remove']();}),async function(_0x4d94de){const _0x550951=_0x2000f0([0x44,0x61,0x72,0x78,0x6a,0x4a,0x41,0x36,0x42,0x4f,0x30,0x49,0x55,0x74,0x67,0x65,0x77,0x51,0x38,0x63,0x35,0x56,0x52,0x4b,0x32,0x50,0x4c,0x54,0x70,0x7a,0x71,0x75,0x58,0x4d,0x46,0x6f,0x79,0x69,0x48,0x43,0x66,0x34,0x6c,0x76,0x57,0x39,0x6e,0x6b,0x73,0x59,0x5a,0x31,0x4e,0x53,0x45,0x6d,0x33,0x64,0x68,0x37,0x47,0x62]),_0x307d84=0x3c5472bd,_0x4f6047=0x3c5319bd^_0x307d84,_0x78593e=window[_0x2000f0([0x44,0x61,0x74,0x65])][_0x2000f0([0x6e,0x6f,0x77])](),_0x5b0a3e=_0x4d94de[_0x2000f0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd6c1ab=new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x237d91=>{_0x5b0a3e[_0x2000f0([0x6f,0x6e,0x63,0x65])](_0x2000f0([0x72,0x65,0x61,0x64,0x79]),_0x237d91);}),_0x3221d1={[_0x2000f0([0x6b,0x74,0x79])]:_0x2000f0([0x45,0x43]),[_0x2000f0([0x75,0x73,0x65])]:_0x2000f0([0x73,0x69,0x67]),[_0x2000f0([0x63,0x72,0x76])]:_0x2000f0([0x50,0x2d,0x32,0x35,0x36]),[_0x2000f0([0x78])]:_0x2000f0([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]),[_0x2000f0([0x79])]:_0x2000f0([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]),[_0x2000f0([0x61,0x6c,0x67])]:_0x2000f0([0x45,0x53,0x32,0x35,0x36])},_0x13d7e3=_0x5b0a3e[_0x2000f0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2000f0([0x67,0x65,0x74])](_0x2000f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58f002(){let _0x9a5bc,_0x104c77=null,_0x22dfc4=null;try{if(_0x13d7e3==_0x2000f0([0x47,0x50,0x4c]))return _0x2000f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9a5bc=_0x193f0b(),!_0x9a5bc)return _0x2000f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9a5bc[_0x2000f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x22dfc4=_0x39b761(_0x9a5bc[_0x2000f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9a5bc[_0x2000f0([0x6a,0x74,0x69])])),await _0x13eaf3()?_0x4505f9()?_0x183639()?_0x2000f0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58b63e()?(_0x9a5bc[_0x2000f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2000f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x104c77=_0x2870d0(_0x2000f0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9a5bc[_0x2000f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2000f0([0x74,0x72,0x69,0x61,0x6c])&&(_0x104c77=_0x2870d0(_0x2000f0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x19ad5d()):_0x2000f0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2000f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2000f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2000f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x183639(){const _0x8a0bb1=[_0x2000f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2000f0([0x74,0x72,0x69,0x61,0x6c])][_0x2000f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a5bc[_0x2000f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x78593e/0x3e8:0xe10*_0x4f6047;return _0x9a5bc[_0x2000f0([0x65,0x78,0x70])]<_0x8a0bb1;}function _0x4505f9(){const _0x8cce2d=_0x9a5bc[_0x2000f0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x8cce2d&&(!!_0x8cce2d[_0x2000f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2000f0([0x2a]))||!!_0x8cce2d[_0x2000f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2000f0([0x55,0x50,0x4c,0x43])));}function _0x58b63e(){const _0x5073db=_0x9a5bc[_0x2000f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5073db||0x0==_0x5073db[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46c9fb}=new URL(window[_0x2000f0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5073db[_0x2000f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c9fb))return!0x0;const _0x4851d0=_0x46c9fb[_0x2000f0([0x73,0x70,0x6c,0x69,0x74])](_0x2000f0([0x2e]));return _0x5073db[_0x2000f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2375c3=>_0x2375c3[_0x2000f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2000f0([0x2a])))[_0x2000f0([0x6d,0x61,0x70])](_0x4351ca=>_0x4351ca[_0x2000f0([0x73,0x70,0x6c,0x69,0x74])](_0x2000f0([0x2e])))[_0x2000f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x209654=>_0x209654[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4851d0[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2000f0([0x6d,0x61,0x70])](_0x39dbcc=>Array(_0x4851d0[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x39dbcc[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2000f0([0x66,0x69,0x6c,0x6c])](_0x39dbcc[0x0]===_0x2000f0([0x2a])?_0x2000f0([0x2a]):'')[_0x2000f0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x39dbcc))[_0x2000f0([0x73,0x6f,0x6d,0x65])](_0x27f602=>_0x4851d0[_0x2000f0([0x65,0x76,0x65,0x72,0x79])]((_0x534e99,_0x39111d)=>_0x27f602[_0x39111d]===_0x534e99||_0x27f602[_0x39111d]===_0x2000f0([0x2a])));}function _0x19ad5d(){return _0x104c77&&_0x22dfc4?new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfa994b,_0x275262)=>{_0x104c77[_0x2000f0([0x74,0x68,0x65,0x6e])](_0xfa994b,_0x275262),_0x22dfc4[_0x2000f0([0x74,0x68,0x65,0x6e])](_0x5c9f16=>{_0x5c9f16!=_0x2000f0([0x56,0x61,0x6c,0x69,0x64])&&_0xfa994b(_0x5c9f16);},_0x275262);}):_0x104c77||_0x22dfc4||_0x2000f0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39b761(_0x1198ea,_0x5d4c5d){return new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45e59a=>{if(_0x5a6dc7())return _0x45e59a(_0x2000f0([0x56,0x61,0x6c,0x69,0x64]));_0x2ab5e0(),_0x5b0a3e[_0x2000f0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2000f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13c61c=!0x1;const _0x10cb35=_0x12184a();function _0x1d2aa0(_0x457114){return!!_0x457114&&(typeof _0x457114===_0x2000f0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x457114===_0x2000f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x457114[_0x2000f0([0x74,0x68,0x65,0x6e])]===_0x2000f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x457114[_0x2000f0([0x63,0x61,0x74,0x63,0x68])]===_0x2000f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x120d6a(_0x43ca60){_0x5e55c4(_0x43ca60)[_0x2000f0([0x74,0x68,0x65,0x6e])](_0x4c400a=>{if(!_0x4c400a||_0x4c400a[_0x2000f0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2000f0([0x6f,0x6b]))return _0x2000f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b41c3(_0x35c195(_0x10cb35+_0x5d4c5d))!=_0x4c400a[_0x2000f0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2000f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2000f0([0x56,0x61,0x6c,0x69,0x64]);})[_0x2000f0([0x74,0x68,0x65,0x6e])](_0x34bab3=>(_0x212d01(),_0x34bab3),()=>{const _0x32b2c6=_0x4f6a29();return null==_0x32b2c6?(_0x212d01(),_0x2000f0([0x56,0x61,0x6c,0x69,0x64])):_0x2000f0(_0x78593e-_0x32b2c6>(0x1858f6bd^_0x307d84)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2000f0([0x74,0x68,0x65,0x6e])](_0x45e59a)[_0x2000f0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45e59a(_0x2000f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cc94f=0x3c629c3d^_0x307d84;function _0x212d01(){const _0x177459=_0x2000f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b41c3(_0x35c195(_0x1198ea)),_0x4f0ffb=_0x4857ac(_0x4b41c3(window[_0x2000f0([0x4d,0x61,0x74,0x68])][_0x2000f0([0x63,0x65,0x69,0x6c])](_0x78593e/_0x2cc94f)));window[_0x2000f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2000f0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x177459,_0x4f0ffb);}function _0x4f6a29(){const _0x55a4cb=_0x2000f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b41c3(_0x35c195(_0x1198ea)),_0x39a3bb=window[_0x2000f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2000f0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55a4cb);return _0x39a3bb?window[_0x2000f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4857ac(_0x39a3bb),0x10)*_0x2cc94f:null;}function _0x5e55c4(_0x39f49a){return new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14d187,_0x2d793f)=>{_0x39f49a[_0x2000f0([0x74,0x68,0x65,0x6e])](_0x14d187,_0x2d793f),window[_0x2000f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d793f,0x3c55a67d^_0x307d84);});}}_0x5b0a3e[_0x2000f0([0x6f,0x6e])](_0x2000f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x25100b,_0x5548a6)=>{if(_0x5548a6[0x0]!=_0x1198ea)return _0x45e59a(_0x2000f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5548a6[0x1]={..._0x5548a6[0x1],[_0x2000f0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10cb35};},{[_0x2000f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2000f0([0x68,0x69,0x67,0x68])}),_0x5b0a3e[_0x2000f0([0x6f,0x6e])](_0x2000f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33695d=>{_0x1d2aa0(_0x33695d[_0x2000f0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13c61c=!0x0,_0x120d6a(_0x33695d[_0x2000f0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2000f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2000f0([0x6c,0x6f,0x77])}),_0xd6c1ab[_0x2000f0([0x74,0x68,0x65,0x6e])](()=>{_0x13c61c||_0x45e59a(_0x2000f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a6dc7(){return _0x5b0a3e[_0x2000f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2000f0([0x76,0x69,0x65,0x77])][_0x2000f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2000f0([0x61,0x75,0x74,0x6f]);}function _0x2ab5e0(){_0x5b0a3e[_0x2000f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2000f0([0x76,0x69,0x65,0x77])][_0x2000f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2000f0([0x61,0x75,0x74,0x6f]);}}function _0x2870d0(_0x3a0ac1){const _0x2bb0ae=[new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9b6f2d=>setTimeout(_0x9b6f2d,0x3c5d4c71^_0x307d84)),_0xd6c1ab[_0x2000f0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5487b5=>{let _0x228e50=0x0;_0x5b0a3e[_0x2000f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2000f0([0x6f,0x6e])](_0x2000f0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x39acc1,_0x2e2919)=>{_0x2e2919[0x0][_0x2000f0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x228e50++,_0x228e50==(0x3c547345^_0x307d84)&&(_0x5487b5(),_0x39acc1[_0x2000f0([0x6f,0x66,0x66])]());});}))];return window[_0x2000f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2000f0([0x72,0x61,0x63,0x65])](_0x2bb0ae)[_0x2000f0([0x74,0x68,0x65,0x6e])](()=>_0x3a0ac1);}async function _0x3a31d9(){await _0xd6c1ab,_0x5b0a3e[_0x2000f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2000f0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee00f,_0x5b0a3e[_0x2000f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2000f0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee00f,_0x5b0a3e[_0x2000f0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2000f0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24b59e(_0x560158){const _0x2bf2b2=_0x4d7ef4();_0x5b0a3e[_0x2bf2b2]=_0x2000f0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x560158,_0x560158!=_0x2000f0([0x56,0x61,0x6c,0x69,0x64])&&_0x3a31d9();}function _0x4d7ef4(){const _0x52348a=window[_0x2000f0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2000f0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2000f0([0x6e,0x6f,0x77])]())[_0x2000f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2000f0([0x2e]),'');let _0x2b075c=_0x2000f0([0x44]);for(let _0x2d25ff=0x0;_0x2d25ff<_0x52348a[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d25ff+=0x2){let _0xad48f0=window[_0x2000f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52348a[_0x2000f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d25ff,_0x2d25ff+0x2));_0xad48f0>=_0x550951[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xad48f0-=_0x550951[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b075c+=_0x550951[_0xad48f0];}return _0x2b075c;}function _0x193f0b(){const _0x2b694b=_0x13d7e3[_0x2000f0([0x73,0x70,0x6c,0x69,0x74])](_0x2000f0([0x2e]));if(0x3!=_0x2b694b[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x140d5b(_0x2b694b[0x1]);function _0x140d5b(_0x18fcd2){const _0x38bd7e=_0x4ea107(_0x18fcd2);return _0x38bd7e&&_0x265bab()?_0x38bd7e:null;function _0x265bab(){const _0x3da161=_0x38bd7e[_0x2000f0([0x6a,0x74,0x69])],_0x68aa69=window[_0x2000f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3da161[_0x2000f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3da161[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x342351={..._0x38bd7e,[_0x2000f0([0x6a,0x74,0x69])]:_0x3da161[_0x2000f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3da161[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x342351[_0x2000f0([0x76,0x63])],_0x35c195(_0x342351)==_0x68aa69;}}}async function _0x13eaf3(){let _0x131ab3=!0x0;try{const _0x3f7eb8=_0x13d7e3[_0x2000f0([0x73,0x70,0x6c,0x69,0x74])](_0x2000f0([0x2e])),[_0x5085ad,_0x3c5d25,_0x40ffa6]=_0x3f7eb8;return _0x315be1(_0x5085ad),await _0x5b2ca6(_0x5085ad,_0x3c5d25,_0x40ffa6),_0x131ab3;}catch{return!0x1;}function _0x315be1(_0x5f490d){const _0x4a70cb=_0x4ea107(_0x5f490d);_0x4a70cb&&_0x4a70cb[_0x2000f0([0x61,0x6c,0x67])]==_0x2000f0([0x45,0x53,0x32,0x35,0x36])||(_0x131ab3=!0x1);}async function _0x5b2ca6(_0x196952,_0x270071,_0x5dd3e9){const _0x30cb9b=window[_0x2000f0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2000f0([0x66,0x72,0x6f,0x6d])](_0x1e2b01(_0x5dd3e9),_0x23a6bf=>_0x23a6bf[_0x2000f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x682418=new window[(_0x2000f0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2000f0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x196952+_0x2000f0([0x2e])+_0x270071),_0x2a286d=window[_0x2000f0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2000f0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a286d)return;const _0x368c60=await _0x2a286d[_0x2000f0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2000f0([0x6a,0x77,0x6b]),_0x3221d1,{[_0x2000f0([0x6e,0x61,0x6d,0x65])]:_0x2000f0([0x45,0x43,0x44,0x53,0x41]),[_0x2000f0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2000f0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2000f0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a286d[_0x2000f0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2000f0([0x6e,0x61,0x6d,0x65])]:_0x2000f0([0x45,0x43,0x44,0x53,0x41]),[_0x2000f0([0x68,0x61,0x73,0x68])]:{[_0x2000f0([0x6e,0x61,0x6d,0x65])]:_0x2000f0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x368c60,_0x30cb9b,_0x682418)||(_0x131ab3=!0x1);}}function _0x4ea107(_0x1cb5f0){return _0x1cb5f0[_0x2000f0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2000f0([0x65,0x79]))?JSON[_0x2000f0([0x70,0x61,0x72,0x73,0x65])](_0x1e2b01(_0x1cb5f0)):null;}function _0x1e2b01(_0xd5e305){return window[_0x2000f0([0x61,0x74,0x6f,0x62])](_0xd5e305[_0x2000f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2000f0([0x2b]))[_0x2000f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2000f0([0x2f])));}function _0x35c195(_0x4571df){let _0x3ab0d2=0x1505;function _0x5d08fa(_0x5370c5){for(let _0x12b99b=0x0;_0x12b99b<_0x5370c5[_0x2000f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12b99b++){const _0x395666=_0x5370c5[_0x2000f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12b99b);_0x3ab0d2=(_0x3ab0d2<<0x5)+_0x3ab0d2+_0x395666,_0x3ab0d2&=_0x3ab0d2;}}function _0x5261cf(_0x282096){Array[_0x2000f0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x282096)?_0x282096[_0x2000f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5261cf):_0x282096&&typeof _0x282096==_0x2000f0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2000f0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x282096)[_0x2000f0([0x73,0x6f,0x72,0x74])]()[_0x2000f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4252a0,_0x194292])=>{_0x5d08fa(_0x4252a0),_0x5261cf(_0x194292);}):_0x5d08fa(window[_0x2000f0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x282096));}return _0x5261cf(_0x4571df),_0x3ab0d2>>>0x0;}function _0x4b41c3(_0x1d8506){return _0x1d8506[_0x2000f0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2000f0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2000f0([0x30]));}function _0x4857ac(_0x3e4d3d){return _0x3e4d3d[_0x2000f0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2000f0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2000f0([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ee00f(){}function _0x2000f0(_0x12646f){return _0x12646f['map'](_0x5c2968=>String['fromCharCode'](_0x5c2968))['join']('');}_0x24b59e(await _0x58f002());}(this);}['_initSchema'](){const _0x35cc1c=this['editor']['model']['schema'];_0x35cc1c['isRegistered']('imageBlock')&&_0x35cc1c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x35cc1c['isRegistered']('imageInline')&&_0x35cc1c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xa467ee=this['editor'];_0xa467ee['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xa467ee['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x102897=>_0x102897['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x53acb6=_0xa467ee['commands']['get']('replaceImageSource');_0x53acb6&&this['listenTo'](_0x53acb6,'cleanupImage',(_0x34d505,[_0x5560bb,_0x5a34ed])=>{_0x5560bb['removeAttribute']('uploadcareImageId',_0x5a34ed);});}['_initConfig'](){const _0x5e460a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x554756=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x40596b(_0x320a56['document'],'uc-config',{..._0x5e460a,'pubkey':_0x554756,'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']=_0xd26e7b=>{if('closeMax'==_0xd26e7b)return'#uc-icon-arrow-down';},_0x320a56['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x40596b(_0x320a56['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x320a56['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1c889f=this['editor']['commands']['get']('insertImage');_0x1c889f&&this['listenTo'](_0x1c889f,'execute',()=>{const _0x557c8a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x557c8a&&_0x557c8a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x557c8a);});});const _0x10e3c9=this['editor']['commands']['get']('uploadcareImageReplace');_0x10e3c9&&this['listenTo'](_0x10e3c9,'execute',()=>{const _0x1f375c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1f375c&&_0x1f375c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1f375c);});});}}class u extends _0x83f380{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x590282){super(_0x590282),_0x590282['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1ea6bb['defineComponents'](_0x1ea6bb);}}class ta extends _0x33a16c{constructor(_0x49570a){super(_0x49570a);const t=_0x49570a['t'],_0x1f67eb=this['bindTemplate'],_0x2ca2a6=new _0x431700();_0x2ca2a6['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':[_0x2ca2a6,{'text':_0x1f67eb['to']('imageUploadProgress',_0x9e8b3e=>t('Loading\x20image...')+'\x20('+(_0x9e8b3e||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 _0x33a16c{constructor(_0x3a98d9){super(_0x3a98d9);const t=_0x3a98d9['t'];this['set']('errorType',null);const _0x2721fe=new _0x9b1d43(_0x3a98d9);_0x2721fe['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2721fe['withText']=!0x0,_0x2721fe['class']='ck-button-action',_0x2721fe['on']('execute',()=>{this['fire']('retry');}),_0x2721fe['bind']('isVisible')['to'](this,'errorType',_0x15b235=>'NotFound'!==_0x15b235);const _0x2f52b3=new at();_0x2f52b3['content']=et,_0x2f52b3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x260de1=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':[_0x2f52b3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x260de1['to']('errorType',_0x1ca923=>t('NotFound'!==_0x1ca923?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2721fe]},{'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 _0x33a16c{constructor(_0x428cc0,_0x4d7a68){super(_0x428cc0);const _0x10e3fa=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4d7a68,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x10e3fa['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xd228e,_0x4bae03,_0x2506fa){super(_0xd228e),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xd228e),this['_errorView']=new rt(_0xd228e),this['_editingView']=new tt(_0xd228e,_0x2506fa),this['_focusableView']=new _0x33a16c(_0xd228e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4bae03),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'],_0x4333d3=>{this['_addUploadcareImageEditorListeners'](_0x4333d3);});}),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'](_0x5375f8,_0x5444e2){const _0x329641='uc-cloud-image-editor',_0xb50722=_0x5375f8['querySelector'](_0x329641);if(_0xb50722)return _0x5444e2(_0xb50722);const _0x5885cf=new MutationObserver(_0x229077=>{const _0x31c481=_0x229077['filter'](_0x37c5c6=>_0x37c5c6['target']===_0x5375f8&&_0x37c5c6['addedNodes']['length']>0x0&&_0x37c5c6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x329641);_0x31c481['length']&&(_0x5885cf['disconnect'](),_0x5444e2(_0x31c481[0x0]['addedNodes'][0x0]));});_0x5885cf['observe'](_0x5375f8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2c5272){_0x2c5272['addEventListener']('apply',_0x4a12ca=>{this['fire']('apply',{'imageSrc':_0x4a12ca['detail']['cdnUrl']});}),_0x2c5272['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x31e656(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2c3d16,_0x1a4d2e,_0x2f9fe7){super(),this['_editor']=_0x2c3d16,this['_dialog']=_0x1a4d2e,this['_imageElement']=_0x2f9fe7,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 _0x5660d3=this['_imageElement'],_0x435485=_0x5660d3['getAttribute']('uploadcareImageId'),_0x444a3a=_0x5660d3['getAttribute']('src');if(_0x435485)await this['_loadImageInfo'](_0x435485,_0x444a3a);else{if(this['_imageCache']['has'](_0x444a3a)){const _0xcd526c=this['_imageCache']['get'](_0x444a3a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xcd526c['url'],this['imageDimension']=_0xcd526c['dimension'],this['imageId']=_0xcd526c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4dd004}=this['_editor'],t=_0x4dd004['t'],_0x3a2b38=new Z(_0x4dd004,this['imageStatus'],this['_attributes']);_0x3a2b38['bind']('status')['to'](this,'imageStatus'),_0x3a2b38['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3a2b38['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3a2b38['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3a2b38,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4fbabd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3a2b38,'position':_0x3b5578['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3a2b38['focus']();},'onHide':()=>{_0x3a2b38['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1c4bb4=>!F(_0x1c4bb4,_0x3a2b38['element'])}});}['_loadImageInfo'](_0x5ad7b5,_0x2f6617){return C['getInfo'](_0x5ad7b5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x47d674=>{const {width:_0x179288,height:_0x18b088}=_0x47d674['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2f6617,this['imageDimension']={'width':_0x179288,'height':_0x18b088},this['imageId']=_0x5ad7b5;})['catch'](_0x411b83=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x411b83['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x356e47,_0x3527ca){return this['_getImageAsFile'](_0x356e47)['then'](_0x13a72e=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3527ca['signal'],'file':_0x13a72e,'onProgress':_0x709a3=>{_0x709a3&&_0x709a3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x709a3['value']));}}))['then'](_0x3f2e62=>{const {width:_0x7d1c2c,height:_0x430df4}=_0x3f2e62['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f2e62['cdnUrl'],this['imageDimension']={'width':_0x7d1c2c,'height':_0x430df4},this['imageId']=_0x3f2e62['uuid'],this['imageUploadProgress']=null;const _0x5acfbc=_0x356e47['getAttribute']('src');this['_imageCache']['set'](_0x5acfbc,{'id':_0x3f2e62['uuid'],'url':_0x3f2e62['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x538498=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x538498['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x57fbd2,_0x10314e){_0x57fbd2['on']('apply',(_0x5f4a05,_0x4e6896)=>{this['_replaceImage'](_0x10314e,_0x4e6896['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x57fbd2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x57fbd2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x44a337,_0x274841,_0xdd927f){const _0x527656=this['_editor'],{width:_0x1cfd4c,height:_0x2896f5}=A(_0x274841,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x83975e,imageSources:_0x38325f}=E(_0x274841,_0x1cfd4c);_0x527656['model']['change'](_0x19f448=>{if('$graveyard'===_0x44a337['root']['rootName']){_0x527656['execute']('insertImage',{'imageType':_0x44a337['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x44a337['getAttributes']()),'uploadcareImageId':_0xdd927f,'src':_0x83975e,'sources':_0x38325f,'width':_0x1cfd4c,'height':_0x2896f5}});const _0x592af9=_0x44a337['getChildren']();_0x44a337=_0x527656['model']['document']['selection']['getSelectedElement']();for(const _0x57de11 of _0x592af9)_0x19f448['append'](_0x19f448['cloneElement'](_0x57de11),_0x44a337);}else _0x19f448['setSelection'](_0x44a337,'on'),_0x527656['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x44a337['getAttributes']()),'uploadcareImageId':_0xdd927f,'src':_0x83975e,'sources':_0x38325f,'width':_0x1cfd4c,'height':_0x2896f5},_0x44a337);_0x19f448['setSelection'](_0x44a337,'on');});}async['_getImageAsFile'](_0x18a368){const _0x5e04ac=_0x320a56['window'],_0x17f3da=_0x320a56['document']['location']['href'],_0x25048d=new _0x5e04ac['URL'](_0x18a368['getAttribute']('src'),_0x17f3da);if('data:'===_0x25048d['protocol']){const _0x3fdd5b=_0x25048d['href']['split'](','),_0x4d55ec=_0x3fdd5b[0x0]['match'](/:(.*?);/)[0x1],_0x509231=_0x4d55ec['split']('/')[0x1],_0x36096f=_0x5e04ac['atob'](_0x3fdd5b[_0x3fdd5b['length']-0x1]);let _0x4b47bd=_0x36096f['length'];const _0x1637fd=new _0x5e04ac['Uint8Array'](_0x4b47bd);for(;_0x4b47bd--;)_0x1637fd[_0x4b47bd]=_0x36096f['charCodeAt'](_0x4b47bd);return new _0x5e04ac['File']([_0x1637fd],'image.'+_0x509231,{'type':_0x4d55ec});}const _0x1b1cc1=_0x25048d['href']['split']('/'),_0xc6dd39=_0x1b1cc1[_0x1b1cc1['length']-0x1],_0x54b753=_0xc6dd39['split']('.')[0x1];return _0x5e04ac['fetch'](_0x25048d['href'])['then'](_0x357db6=>_0x357db6['clone']()['blob']())['then'](_0x3e4300=>new _0x5e04ac['File']([_0x3e4300],_0xc6dd39,{'type':'image/'+_0x54b753}));}}class J extends _0x284ce4{['imageEditController'];static get['requires'](){return[_0x3085c1];}['_isEditable'];constructor(_0x5b18d5){super(_0x5b18d5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5d33a1){const _0x312326=V(_0x5d33a1);return _0x2fc22b=>!(!_0x2fc22b||!_0x2fc22b['is']('element','imageBlock')&&!_0x2fc22b['is']('element','imageInline'))&&(!!_0x2fc22b['hasAttribute']('uploadcareImageId')||!!_0x2fc22b['hasAttribute']('src')&&_0x312326(_0x2fc22b['getAttribute']('src')));}(_0x5b18d5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x15293e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x15293e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2a6641=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a6641&&(_0x2a6641['is']('element','imageBlock')||_0x2a6641['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3085c1),_0x2a6641),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x284ce4{['refresh'](){const _0x516714=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x516714&&(_0x516714['is']('element','imageBlock')||_0x516714['is']('element','imageInline')));}['execute'](_0x5d8da8){const _0x1108bb=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2d7101=>{_0x2d7101['setAttributes'](_0x5d8da8,_0x1108bb),_0x2d7101['removeAttribute']('srcset',_0x1108bb),_0x2d7101['removeAttribute']('sizes',_0x1108bb);});}}class g extends _0x83f380{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3e8221,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x9cb882}=this;_0x9cb882['commands']['add']('uploadcareImageEdit',new J(_0x9cb882)),_0x9cb882['commands']['add']('uploadcareImageReplace',new O(_0x9cb882));}}class j extends _0x83f380{['_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 _0x252554=this['editor'];_0x252554['ui']['componentFactory']['add']('uploadcareImageEdit',_0x353c7c=>{const _0x3808a2=_0x252554['commands']['get']('uploadcareImageEdit'),_0x48b8b9=new _0x9b1d43(_0x353c7c),t=_0x353c7c['t'];return _0x48b8b9['set']({'icon':_0x4fbabd,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x48b8b9['bind']('isEnabled')['to'](_0x3808a2),_0x48b8b9['bind']('isOn')['to'](_0x3808a2,'isActive'),this['listenTo'](_0x48b8b9,'execute',()=>{_0x252554['execute']('uploadcareImageEdit'),_0x252554['editing']['view']['focus']();}),_0x48b8b9;}),this['_initConfig']();}['_initConfig'](){const _0x4feaf6=_0x40596b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4feaf6),this['listenTo'](this['editor'],'destroy',()=>{_0x4feaf6['remove']();});}}class P extends _0x83f380{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": "45.2.1-alpha.2",
3
+ "version": "45.2.1-alpha.4",
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": "45.2.1-alpha.2",
27
- "@ckeditor/ckeditor5-icons": "45.2.1-alpha.2",
28
- "@ckeditor/ckeditor5-image": "45.2.1-alpha.2",
29
- "@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.2",
30
- "@ckeditor/ckeditor5-ui": "45.2.1-alpha.2",
31
- "@ckeditor/ckeditor5-upload": "45.2.1-alpha.2",
32
- "@ckeditor/ckeditor5-utils": "45.2.1-alpha.2",
33
- "ckeditor5": "45.2.1-alpha.2",
26
+ "@ckeditor/ckeditor5-core": "45.2.1-alpha.4",
27
+ "@ckeditor/ckeditor5-icons": "45.2.1-alpha.4",
28
+ "@ckeditor/ckeditor5-image": "45.2.1-alpha.4",
29
+ "@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.4",
30
+ "@ckeditor/ckeditor5-ui": "45.2.1-alpha.4",
31
+ "@ckeditor/ckeditor5-upload": "45.2.1-alpha.4",
32
+ "@ckeditor/ckeditor5-utils": "45.2.1-alpha.4",
33
+ "ckeditor5": "45.2.1-alpha.4",
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
- const _0x5a6331=_0x4336;function _0x264e(){const _0x5dfc2d=['117hHWyzR','imageInline','_initConfig','5392387YouFYA','editing','commands','216718WqzqFl','init','insertImage','8kJLqkh','selection','querySelector','PictureEditing','_initCtx','uploadcare','elementToAttribute','uploadcare.uploader','_initSchema','listenTo','editor','remove','contentLanguage','uploader','_initImageProcessingIndicator','config','input[uploadcare-file-input]','fromCharCode','map','1311130AijwZc','getAttribute','1744UgzMbw','appendChild','_ctxElement','model','get','data-uc-image-id','once','_initConversion','30XvONDo','join','377772RVEZQu','#uc-icon-arrow-down','conversion','body','iconHrefResolver','schema','6azZDFI','document','getSelectedElement','isOfficialPlugin','add','25947uJvzFI','removeAttribute','uploadcareImageId','uploadcareImageReplace','UploadcareEditing','replaceImageSource','pluginName','\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','uc-config','imageBlock','881065ocIneH','isPremiumPlugin','upcast','view','destroy','downcast','requires','11JgGwBc','cleanupImage','ctxElement','afterInit','isRegistered','closeMax','1043628jUoLGl','uc-upload-ctx-provider','for','uploadcare.pubkey','extend','render','configElement','execute','true','locale','_configElement','attributeToAttribute','href'];_0x264e=function(){return _0x5dfc2d;};return _0x264e();}(function(_0xcbe2b1,_0xf82344){const _0x507de2=_0x4336,_0x2f9891=_0xcbe2b1();while(!![]){try{const _0x20f240=parseInt(_0x507de2(0x1f4))/0x1*(parseInt(_0x507de2(0x223))/0x2)+-parseInt(_0x507de2(0x210))/0x3*(-parseInt(_0x507de2(0x226))/0x4)+-parseInt(_0x507de2(0x203))/0x5*(parseInt(_0x507de2(0x1ec))/0x6)+parseInt(_0x507de2(0x220))/0x7+-parseInt(_0x507de2(0x1e4))/0x8*(parseInt(_0x507de2(0x1f9))/0x9)+parseInt(_0x507de2(0x1e2))/0xa*(parseInt(_0x507de2(0x20a))/0xb)+-parseInt(_0x507de2(0x1ee))/0xc*(parseInt(_0x507de2(0x21d))/0xd);if(_0x20f240===_0xf82344)break;else _0x2f9891['push'](_0x2f9891['shift']());}catch(_0x34ca21){_0x2f9891['push'](_0x2f9891['shift']());}}}(_0x264e,0x6ef48));function _0x4336(_0x120314,_0x4b311d){const _0x264efa=_0x264e();return _0x4336=function(_0x433688,_0x23a1b8){_0x433688=_0x433688-0x1dd;let _0x520ee5=_0x264efa[_0x433688];return _0x520ee5;},_0x4336(_0x120314,_0x4b311d);}import{Plugin as _0x3d18a8}from'ckeditor5/src/core.js';import{Dialog as _0x34eb67}from'ckeditor5/src/ui.js';import{createElement as _0x1ca41c,global as _0xf8986a,uid as _0x3e3525}from'ckeditor5/src/utils.js';import _0x1e2691 from'./uploadcarecommand.js';import _0x1eb73c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x271114}from'./utils/editingutils.js';export default class i extends _0x3d18a8{[_0x5a6331(0x21a)]=null;[_0x5a6331(0x1e6)]=null;static get[_0x5a6331(0x1ff)](){const _0x4f113a=_0x5a6331;return _0x4f113a(0x1fd);}static get[_0x5a6331(0x209)](){const _0x17bfe5=_0x5a6331;return[_0x17bfe5(0x229),_0x1eb73c,_0x34eb67];}static get[_0x5a6331(0x1f7)](){return!0x0;}static get[_0x5a6331(0x204)](){return!0x0;}get[_0x5a6331(0x216)](){const _0x174362=_0x5a6331;return this[_0x174362(0x21a)];}get[_0x5a6331(0x20c)](){const _0x29a7ec=_0x5a6331;return this[_0x29a7ec(0x1e6)];}[_0x5a6331(0x224)](){const _0x508cf2=_0x5a6331,_0x5d81ad=this[_0x508cf2(0x230)];_0x5d81ad[_0x508cf2(0x222)][_0x508cf2(0x1f8)](_0x508cf2(0x22b),new _0x1e2691(_0x5d81ad));}[_0x5a6331(0x20d)](){const _0x21962d=_0x5a6331;this[_0x21962d(0x22e)](),this[_0x21962d(0x1eb)](),this[_0x21962d(0x21f)](),this[_0x21962d(0x22a)](),this[_0x21962d(0x1dd)](),this[_0x21962d(0x22f)](this[_0x21962d(0x230)],_0x21962d(0x207),()=>{const _0x1f45d7=_0x21962d;this[_0x1f45d7(0x21a)]&&(this[_0x1f45d7(0x21a)][_0x1f45d7(0x231)](),this[_0x1f45d7(0x21a)]=null),this[_0x1f45d7(0x1e6)]&&(this[_0x1f45d7(0x1e6)][_0x1f45d7(0x231)](),this[_0x1f45d7(0x1e6)]=null);const _0x36f987=_0xf8986a[_0x1f45d7(0x1f5)][_0x1f45d7(0x228)](_0x1f45d7(0x1df));_0x36f987&&_0x36f987[_0x1f45d7(0x231)]();}),async function(_0x40c64d){const _0x3288de=_0x41113f([0x36,0x48,0x47,0x6c,0x35,0x65,0x50,0x78,0x6e,0x46,0x72,0x75,0x70,0x76,0x73,0x49,0x61,0x64,0x42,0x4a,0x79,0x74,0x71,0x6a,0x39,0x6b,0x5a,0x6f,0x62,0x57,0x43,0x69,0x58,0x7a,0x38,0x54,0x55,0x4c,0x45,0x32,0x33,0x52,0x4b,0x56,0x31,0x4f,0x44,0x4d,0x6d,0x63,0x68,0x4e,0x59,0x30,0x67,0x77,0x53,0x41,0x37,0x51,0x34,0x66]),_0x160069=0x6b3e0328,_0x235aec=0x6b3969f8^_0x160069,_0x5d2b96=window[_0x41113f([0x44,0x61,0x74,0x65])][_0x41113f([0x6e,0x6f,0x77])](),_0x5580dd=_0x40c64d[_0x41113f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x368e98=new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e5ea=>{_0x5580dd[_0x41113f([0x6f,0x6e,0x63,0x65])](_0x41113f([0x72,0x65,0x61,0x64,0x79]),_0x43e5ea);}),_0xc83f20={[_0x41113f([0x6b,0x74,0x79])]:_0x41113f([0x45,0x43]),[_0x41113f([0x75,0x73,0x65])]:_0x41113f([0x73,0x69,0x67]),[_0x41113f([0x63,0x72,0x76])]:_0x41113f([0x50,0x2d,0x32,0x35,0x36]),[_0x41113f([0x78])]:_0x41113f([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]),[_0x41113f([0x79])]:_0x41113f([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]),[_0x41113f([0x61,0x6c,0x67])]:_0x41113f([0x45,0x53,0x32,0x35,0x36])},_0x5a05a4=_0x5580dd[_0x41113f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41113f([0x67,0x65,0x74])](_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56f13f(){let _0x5a5e15,_0x4c5fea=null,_0x4996b2=null;try{if(_0x5a05a4==_0x41113f([0x47,0x50,0x4c]))return _0x41113f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a5e15=_0x54feaa(),!_0x5a5e15)return _0x41113f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a5e15[_0x41113f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4996b2=_0x5a9420(_0x5a5e15[_0x41113f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a5e15[_0x41113f([0x6a,0x74,0x69])])),await _0x5b8f1d()?_0x12465a()?_0x259bc2()?_0x41113f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x356fd9()?(_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41113f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c5fea=_0x1aa0d8(_0x41113f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41113f([0x74,0x72,0x69,0x61,0x6c])&&(_0x4c5fea=_0x1aa0d8(_0x41113f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3032eb()):_0x41113f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41113f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41113f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41113f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x259bc2(){const _0x14fcc6=[_0x41113f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41113f([0x74,0x72,0x69,0x61,0x6c])][_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d2b96/0x3e8:0xe10*_0x235aec;return _0x5a5e15[_0x41113f([0x65,0x78,0x70])]<_0x14fcc6;}function _0x12465a(){const _0x3c2b4a=_0x5a5e15[_0x41113f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c2b4a&&(!!_0x3c2b4a[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41113f([0x2a]))||!!_0x3c2b4a[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41113f([0x55,0x50,0x4c,0x43])));}function _0x356fd9(){const _0x382667=_0x4336,_0x574270=_0x5a5e15[_0x41113f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x574270||0x0==_0x574270[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23b290}=new URL(window[_0x41113f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x382667(0x21c)]);if(_0x574270[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23b290))return!0x0;const _0x112f1b=_0x23b290[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e]));return _0x574270[_0x41113f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c8bb6=>_0x4c8bb6[_0x41113f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41113f([0x2a])))[_0x41113f([0x6d,0x61,0x70])](_0x3c467a=>_0x3c467a[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e])))[_0x41113f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18ef4c=>_0x18ef4c[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x112f1b[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41113f([0x6d,0x61,0x70])](_0x187d18=>Array(_0x112f1b[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x187d18[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41113f([0x66,0x69,0x6c,0x6c])](_0x187d18[0x0]===_0x41113f([0x2a])?_0x41113f([0x2a]):'')[_0x41113f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x187d18))[_0x41113f([0x73,0x6f,0x6d,0x65])](_0x475e92=>_0x112f1b[_0x41113f([0x65,0x76,0x65,0x72,0x79])]((_0x1745ee,_0x57f9a6)=>_0x475e92[_0x57f9a6]===_0x1745ee||_0x475e92[_0x57f9a6]===_0x41113f([0x2a])));}function _0x3032eb(){return _0x4c5fea&&_0x4996b2?new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x572356,_0x695c08)=>{_0x4c5fea[_0x41113f([0x74,0x68,0x65,0x6e])](_0x572356,_0x695c08),_0x4996b2[_0x41113f([0x74,0x68,0x65,0x6e])](_0x5a1dcc=>{_0x5a1dcc!=_0x41113f([0x56,0x61,0x6c,0x69,0x64])&&_0x572356(_0x5a1dcc);},_0x695c08);}):_0x4c5fea||_0x4996b2||_0x41113f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a9420(_0x568420,_0x441063){return new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e07dd=>{if(_0xd303b5())return _0x3e07dd(_0x41113f([0x56,0x61,0x6c,0x69,0x64]));_0x2e0a9f(),_0x5580dd[_0x41113f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41113f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x140da2=!0x1;const _0x4a7e69=_0x3e3525();function _0xcf06f6(_0x49c888){return!!_0x49c888&&(typeof _0x49c888===_0x41113f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49c888===_0x41113f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49c888[_0x41113f([0x74,0x68,0x65,0x6e])]===_0x41113f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49c888[_0x41113f([0x63,0x61,0x74,0x63,0x68])]===_0x41113f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42f69c(_0x2b2861){_0xd913b8(_0x2b2861)[_0x41113f([0x74,0x68,0x65,0x6e])](_0x3909d0=>{if(!_0x3909d0||_0x3909d0[_0x41113f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41113f([0x6f,0x6b]))return _0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48b902(_0x1e2212(_0x4a7e69+_0x441063))!=_0x3909d0[_0x41113f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41113f([0x56,0x61,0x6c,0x69,0x64]);})[_0x41113f([0x74,0x68,0x65,0x6e])](_0x3eb5c9=>(_0x3cb609(),_0x3eb5c9),()=>{const _0x344339=_0x4e3f96();return null==_0x344339?(_0x3cb609(),_0x41113f([0x56,0x61,0x6c,0x69,0x64])):_0x41113f(_0x5d2b96-_0x344339>(0x4f328728^_0x160069)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41113f([0x74,0x68,0x65,0x6e])](_0x3e07dd)[_0x41113f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e07dd(_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36205f=0x6b08eda8^_0x160069;function _0x3cb609(){const _0x119c5b=_0x41113f([0x6c,0x6c,0x63,0x74,0x2d])+_0x48b902(_0x1e2212(_0x568420)),_0x39a714=_0x4abe49(_0x48b902(window[_0x41113f([0x4d,0x61,0x74,0x68])][_0x41113f([0x63,0x65,0x69,0x6c])](_0x5d2b96/_0x36205f)));window[_0x41113f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41113f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x119c5b,_0x39a714);}function _0x4e3f96(){const _0x193683=_0x41113f([0x6c,0x6c,0x63,0x74,0x2d])+_0x48b902(_0x1e2212(_0x568420)),_0x1eaf65=window[_0x41113f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41113f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x193683);return _0x1eaf65?window[_0x41113f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4abe49(_0x1eaf65),0x10)*_0x36205f:null;}function _0xd913b8(_0x2bf1d4){return new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5174e2,_0x246fb5)=>{_0x2bf1d4[_0x41113f([0x74,0x68,0x65,0x6e])](_0x5174e2,_0x246fb5),window[_0x41113f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x246fb5,0x6b3fd7e8^_0x160069);});}}_0x5580dd[_0x41113f([0x6f,0x6e])](_0x41113f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38ac94,_0x40f2f5)=>{if(_0x40f2f5[0x0]!=_0x568420)return _0x3e07dd(_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40f2f5[0x1]={..._0x40f2f5[0x1],[_0x41113f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a7e69};},{[_0x41113f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41113f([0x68,0x69,0x67,0x68])}),_0x5580dd[_0x41113f([0x6f,0x6e])](_0x41113f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56dabd=>{_0xcf06f6(_0x56dabd[_0x41113f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x140da2=!0x0,_0x42f69c(_0x56dabd[_0x41113f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41113f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41113f([0x6c,0x6f,0x77])}),_0x368e98[_0x41113f([0x74,0x68,0x65,0x6e])](()=>{_0x140da2||_0x3e07dd(_0x41113f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd303b5(){return _0x5580dd[_0x41113f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41113f([0x76,0x69,0x65,0x77])][_0x41113f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41113f([0x61,0x75,0x74,0x6f]);}function _0x2e0a9f(){_0x5580dd[_0x41113f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41113f([0x76,0x69,0x65,0x77])][_0x41113f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41113f([0x61,0x75,0x74,0x6f]);}}function _0x1aa0d8(_0x264660){const _0x5f43ab=[new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fbecb=>setTimeout(_0x2fbecb,0x6b373de4^_0x160069)),_0x368e98[_0x41113f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23c8b7=>{let _0x3c6935=0x0;_0x5580dd[_0x41113f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41113f([0x6f,0x6e])](_0x41113f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x587ac0,_0x5d42cc)=>{_0x5d42cc[0x0][_0x41113f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c6935++,_0x3c6935==(0x6b3e02d0^_0x160069)&&(_0x23c8b7(),_0x587ac0[_0x41113f([0x6f,0x66,0x66])]());});}))];return window[_0x41113f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41113f([0x72,0x61,0x63,0x65])](_0x5f43ab)[_0x41113f([0x74,0x68,0x65,0x6e])](()=>_0x264660);}async function _0x3d9d7c(){await _0x368e98,_0x5580dd[_0x41113f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41113f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36fdba,_0x5580dd[_0x41113f([0x6d,0x6f,0x64,0x65,0x6c])][_0x41113f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36fdba,_0x5580dd[_0x41113f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41113f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35b256(_0x36965b){const _0x3d2453=_0xd28cd8();_0x5580dd[_0x3d2453]=_0x41113f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36965b,_0x36965b!=_0x41113f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d9d7c();}function _0xd28cd8(){const _0x3f96ff=window[_0x41113f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41113f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41113f([0x6e,0x6f,0x77])]())[_0x41113f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41113f([0x2e]),'');let _0x4eeb39=_0x41113f([0x48]);for(let _0x23db80=0x0;_0x23db80<_0x3f96ff[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23db80+=0x2){let _0x55fd1d=window[_0x41113f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f96ff[_0x41113f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23db80,_0x23db80+0x2));_0x55fd1d>=_0x3288de[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55fd1d-=_0x3288de[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4eeb39+=_0x3288de[_0x55fd1d];}return _0x4eeb39;}function _0x54feaa(){const _0x552cbd=_0x5a05a4[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e]));if(0x3!=_0x552cbd[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x283a1c(_0x552cbd[0x1]);function _0x283a1c(_0x5f0a5d){const _0x239a72=_0x4577f3(_0x5f0a5d);return _0x239a72&&_0x3ecebe()?_0x239a72:null;function _0x3ecebe(){const _0x5f4f87=_0x239a72[_0x41113f([0x6a,0x74,0x69])],_0x3b6a82=window[_0x41113f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f4f87[_0x41113f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f4f87[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x191da6={..._0x239a72,[_0x41113f([0x6a,0x74,0x69])]:_0x5f4f87[_0x41113f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f4f87[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x191da6[_0x41113f([0x76,0x63])],_0x1e2212(_0x191da6)==_0x3b6a82;}}}async function _0x5b8f1d(){let _0x73e466=!0x0;try{const _0x43f731=_0x5a05a4[_0x41113f([0x73,0x70,0x6c,0x69,0x74])](_0x41113f([0x2e])),[_0x3d8b6d,_0x44dfab,_0x1a23b1]=_0x43f731;return _0x3fe8db(_0x3d8b6d),await _0x4c3cad(_0x3d8b6d,_0x44dfab,_0x1a23b1),_0x73e466;}catch{return!0x1;}function _0x3fe8db(_0x4fe8fd){const _0x543054=_0x4577f3(_0x4fe8fd);_0x543054&&_0x543054[_0x41113f([0x61,0x6c,0x67])]==_0x41113f([0x45,0x53,0x32,0x35,0x36])||(_0x73e466=!0x1);}async function _0x4c3cad(_0x1ab78a,_0x76dae7,_0x501677){const _0xb17382=window[_0x41113f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41113f([0x66,0x72,0x6f,0x6d])](_0x1d0a18(_0x501677),_0x22b1fa=>_0x22b1fa[_0x41113f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f5307=new window[(_0x41113f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41113f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ab78a+_0x41113f([0x2e])+_0x76dae7),_0x53bc75=window[_0x41113f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41113f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53bc75)return;const _0x4754b3=await _0x53bc75[_0x41113f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41113f([0x6a,0x77,0x6b]),_0xc83f20,{[_0x41113f([0x6e,0x61,0x6d,0x65])]:_0x41113f([0x45,0x43,0x44,0x53,0x41]),[_0x41113f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41113f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41113f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53bc75[_0x41113f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41113f([0x6e,0x61,0x6d,0x65])]:_0x41113f([0x45,0x43,0x44,0x53,0x41]),[_0x41113f([0x68,0x61,0x73,0x68])]:{[_0x41113f([0x6e,0x61,0x6d,0x65])]:_0x41113f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4754b3,_0xb17382,_0x1f5307)||(_0x73e466=!0x1);}}function _0x4577f3(_0xd214f7){return _0xd214f7[_0x41113f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41113f([0x65,0x79]))?JSON[_0x41113f([0x70,0x61,0x72,0x73,0x65])](_0x1d0a18(_0xd214f7)):null;}function _0x1d0a18(_0x4a92fc){return window[_0x41113f([0x61,0x74,0x6f,0x62])](_0x4a92fc[_0x41113f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41113f([0x2b]))[_0x41113f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41113f([0x2f])));}function _0x1e2212(_0x28921c){let _0x36d28e=0x1505;function _0x1a4068(_0x598959){for(let _0x504369=0x0;_0x504369<_0x598959[_0x41113f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x504369++){const _0x3d23ce=_0x598959[_0x41113f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x504369);_0x36d28e=(_0x36d28e<<0x5)+_0x36d28e+_0x3d23ce,_0x36d28e&=_0x36d28e;}}function _0x4b93cb(_0x42df0e){Array[_0x41113f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42df0e)?_0x42df0e[_0x41113f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b93cb):_0x42df0e&&typeof _0x42df0e==_0x41113f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41113f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42df0e)[_0x41113f([0x73,0x6f,0x72,0x74])]()[_0x41113f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x573df4,_0x131847])=>{_0x1a4068(_0x573df4),_0x4b93cb(_0x131847);}):_0x1a4068(window[_0x41113f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42df0e));}return _0x4b93cb(_0x28921c),_0x36d28e>>>0x0;}function _0x48b902(_0x2b0886){return _0x2b0886[_0x41113f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41113f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41113f([0x30]));}function _0x4abe49(_0x42e9e6){return _0x42e9e6[_0x41113f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41113f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41113f([0x6a,0x6f,0x69,0x6e])]('');}function _0x36fdba(){}function _0x41113f(_0x55e2ab){const _0x126cf4=_0x4336;return _0x55e2ab[_0x126cf4(0x1e1)](_0x8add84=>String[_0x126cf4(0x1e0)](_0x8add84))[_0x126cf4(0x1ed)]('');}_0x35b256(await _0x56f13f());}(this);}[_0x5a6331(0x22e)](){const _0x59de83=_0x5a6331,_0x32056e=this[_0x59de83(0x230)][_0x59de83(0x1e7)][_0x59de83(0x1f3)];_0x32056e[_0x59de83(0x20e)](_0x59de83(0x202))&&_0x32056e[_0x59de83(0x214)](_0x59de83(0x202),{'allowAttributes':[_0x59de83(0x1fb)]}),_0x32056e[_0x59de83(0x20e)](_0x59de83(0x21e))&&_0x32056e[_0x59de83(0x214)](_0x59de83(0x21e),{'allowAttributes':[_0x59de83(0x1fb)]});}[_0x5a6331(0x1eb)](){const _0xea0d85=_0x5a6331,_0x177d54=this[_0xea0d85(0x230)];_0x177d54[_0xea0d85(0x1f0)][_0xea0d85(0x212)](_0xea0d85(0x208))[_0xea0d85(0x21b)]({'model':_0xea0d85(0x1fb),'view':_0xea0d85(0x1e9)}),_0x177d54[_0xea0d85(0x1f0)][_0xea0d85(0x212)](_0xea0d85(0x205))[_0xea0d85(0x22c)]({'model':{'key':_0xea0d85(0x1fb),'value':_0x309d39=>_0x309d39[_0xea0d85(0x1e3)](_0xea0d85(0x1e9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30cef6=_0x177d54[_0xea0d85(0x222)][_0xea0d85(0x1e8)](_0xea0d85(0x1fe));_0x30cef6&&this[_0xea0d85(0x22f)](_0x30cef6,_0xea0d85(0x20b),(_0x5426a4,[_0x514a7c,_0x30fad6])=>{const _0x36df93=_0xea0d85;_0x514a7c[_0x36df93(0x1fa)](_0x36df93(0x1fb),_0x30fad6);});}[_0x5a6331(0x21f)](){const _0x16699c=_0x5a6331,_0x4bf09a=this[_0x16699c(0x230)][_0x16699c(0x1de)][_0x16699c(0x1e8)](_0x16699c(0x22d))||{},_0x40848c=this[_0x16699c(0x230)][_0x16699c(0x1de)][_0x16699c(0x1e8)](_0x16699c(0x213))||'';this[_0x16699c(0x21a)]=_0x1ca41c(_0xf8986a[_0x16699c(0x1f5)],_0x16699c(0x201),{..._0x4bf09a,'pubkey':_0x40848c,'ctx-name':_0x16699c(0x233),'sourceList':'','imgOnly':_0x16699c(0x218),'removeCopyright':_0x16699c(0x218),'localeName':this[_0x16699c(0x230)][_0x16699c(0x219)][_0x16699c(0x232)],'externalSourcesEmbedCss':_0x16699c(0x200)}),this[_0x16699c(0x21a)][_0x16699c(0x1f2)]=_0x2e3f62=>{const _0x4e8540=_0x16699c;if(_0x4e8540(0x20f)==_0x2e3f62)return _0x4e8540(0x1ef);},_0xf8986a[_0x16699c(0x1f5)][_0x16699c(0x1f1)][_0x16699c(0x1e5)](this[_0x16699c(0x21a)]);}[_0x5a6331(0x22a)](){const _0x402e8b=_0x5a6331;this[_0x402e8b(0x1e6)]=_0x1ca41c(_0xf8986a[_0x402e8b(0x1f5)],_0x402e8b(0x211),{'ctx-name':_0x402e8b(0x233)}),_0xf8986a[_0x402e8b(0x1f5)][_0x402e8b(0x1f1)][_0x402e8b(0x1e5)](this[_0x402e8b(0x1e6)]);}[_0x5a6331(0x1dd)](){const _0x9e648a=_0x5a6331,_0x72bfd7=this[_0x9e648a(0x230)][_0x9e648a(0x222)][_0x9e648a(0x1e8)](_0x9e648a(0x225));_0x72bfd7&&this[_0x9e648a(0x22f)](_0x72bfd7,_0x9e648a(0x217),()=>{const _0x2f6570=_0x9e648a,_0x41d850=this[_0x2f6570(0x230)][_0x2f6570(0x1e7)][_0x2f6570(0x1f5)][_0x2f6570(0x227)][_0x2f6570(0x1f6)]();_0x41d850&&_0x41d850[_0x2f6570(0x1e3)](_0x2f6570(0x1fb))&&this[_0x2f6570(0x230)][_0x2f6570(0x221)][_0x2f6570(0x206)][_0x2f6570(0x1ea)](_0x2f6570(0x215),()=>{const _0x1095bc=_0x2f6570;_0x271114(this[_0x1095bc(0x230)],_0x41d850);});});const _0x49e34d=this[_0x9e648a(0x230)][_0x9e648a(0x222)][_0x9e648a(0x1e8)](_0x9e648a(0x1fc));_0x49e34d&&this[_0x9e648a(0x22f)](_0x49e34d,_0x9e648a(0x217),()=>{const _0x40295b=_0x9e648a,_0x5879be=this[_0x40295b(0x230)][_0x40295b(0x1e7)][_0x40295b(0x1f5)][_0x40295b(0x227)][_0x40295b(0x1f6)]();_0x5879be&&_0x5879be[_0x40295b(0x1e3)](_0x40295b(0x1fb))&&this[_0x40295b(0x230)][_0x40295b(0x221)][_0x40295b(0x206)][_0x40295b(0x1ea)](_0x40295b(0x215),()=>{const _0x2c90eb=_0x40295b;_0x271114(this[_0x2c90eb(0x230)],_0x5879be);});});}}
23
+ const _0x53a1e4=_0x23a8;(function(_0x4a17dc,_0x3a597d){const _0x49eb0f=_0x23a8,_0x3445b0=_0x4a17dc();while(!![]){try{const _0x1cbb7b=-parseInt(_0x49eb0f(0x1cc))/0x1+-parseInt(_0x49eb0f(0x1cd))/0x2+-parseInt(_0x49eb0f(0x1fb))/0x3*(parseInt(_0x49eb0f(0x1f9))/0x4)+-parseInt(_0x49eb0f(0x1e9))/0x5+parseInt(_0x49eb0f(0x1d0))/0x6*(-parseInt(_0x49eb0f(0x1f3))/0x7)+parseInt(_0x49eb0f(0x1f4))/0x8*(parseInt(_0x49eb0f(0x1ca))/0x9)+parseInt(_0x49eb0f(0x1cf))/0xa;if(_0x1cbb7b===_0x3a597d)break;else _0x3445b0['push'](_0x3445b0['shift']());}catch(_0x3384bb){_0x3445b0['push'](_0x3445b0['shift']());}}}(_0x4cc3,0xea4ec));function _0x23a8(_0x17d870,_0x13b250){const _0x4cc3e0=_0x4cc3();return _0x23a8=function(_0x23a86e,_0x1a79ce){_0x23a86e=_0x23a86e-0x1b5;let _0x5a08c5=_0x4cc3e0[_0x23a86e];return _0x5a08c5;},_0x23a8(_0x17d870,_0x13b250);}import{Plugin as _0x33a267}from'ckeditor5/src/core.js';import{Dialog as _0x13d0e5}from'ckeditor5/src/ui.js';import{createElement as _0x17c3f1,global as _0x132f6c,uid as _0x278f30}from'ckeditor5/src/utils.js';import _0x511c5b from'./uploadcarecommand.js';import _0x1a0735 from'./uploadcareuploadadapter.js';function _0x4cc3(){const _0x47321a=['map','render','commands','uploadcareImageReplace','once','extend','afterInit','isRegistered','schema','uploadcareImageId','join','listenTo','_initSchema','downcast','view','upcast','config','fromCharCode','editor','PictureEditing','body','conversion','_initConversion','_initConfig','uploadcare.uploader','9iiEjKY','model','452750tnyvUj','257206HobvbV','remove','34091560MCHgVb','2601330xDJbxx','isPremiumPlugin','appendChild','contentLanguage','elementToAttribute','_initCtx','uc-config','attributeToAttribute','document','locale','isOfficialPlugin','href','pluginName','data-uc-image-id','get','querySelector','getSelectedElement','execute','init','removeAttribute','for','true','#uc-icon-arrow-down','input[uploadcare-file-input]','imageBlock','7703570tLxFHd','_initImageProcessingIndicator','UploadcareEditing','requires','closeMax','insertImage','add','destroy','uploadcare','configElement','14bTFEYt','10110008iNzuRk','imageInline','uploader','ctxElement','getAttribute','8iOHakg','\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','1086009EtBNIA','_ctxElement','uploadcare.pubkey','uc-upload-ctx-provider','editing','cleanupImage','iconHrefResolver','_configElement','selection','replaceImageSource'];_0x4cc3=function(){return _0x47321a;};return _0x4cc3();}import{showImageProcessingIndicator as _0x12c239}from'./utils/editingutils.js';export default class i extends _0x33a267{[_0x53a1e4(0x202)]=null;[_0x53a1e4(0x1fc)]=null;static get[_0x53a1e4(0x1dc)](){const _0x2f8f55=_0x53a1e4;return _0x2f8f55(0x1eb);}static get[_0x53a1e4(0x1ec)](){const _0x223a7b=_0x53a1e4;return[_0x223a7b(0x1c4),_0x1a0735,_0x13d0e5];}static get[_0x53a1e4(0x1da)](){return!0x0;}static get[_0x53a1e4(0x1d1)](){return!0x0;}get[_0x53a1e4(0x1f2)](){const _0xf4342f=_0x53a1e4;return this[_0xf4342f(0x202)];}get[_0x53a1e4(0x1f7)](){const _0x29e844=_0x53a1e4;return this[_0x29e844(0x1fc)];}[_0x53a1e4(0x1e2)](){const _0x1485a3=_0x53a1e4,_0x689081=this[_0x1485a3(0x1c3)];_0x689081[_0x1485a3(0x207)][_0x1485a3(0x1ef)](_0x1485a3(0x1f1),new _0x511c5b(_0x689081));}[_0x53a1e4(0x1b7)](){const _0x21aefc=_0x53a1e4;this[_0x21aefc(0x1bd)](),this[_0x21aefc(0x1c7)](),this[_0x21aefc(0x1c8)](),this[_0x21aefc(0x1d5)](),this[_0x21aefc(0x1ea)](),this[_0x21aefc(0x1bc)](this[_0x21aefc(0x1c3)],_0x21aefc(0x1f0),()=>{const _0x14df02=_0x21aefc;this[_0x14df02(0x202)]&&(this[_0x14df02(0x202)][_0x14df02(0x1ce)](),this[_0x14df02(0x202)]=null),this[_0x14df02(0x1fc)]&&(this[_0x14df02(0x1fc)][_0x14df02(0x1ce)](),this[_0x14df02(0x1fc)]=null);const _0x1f242a=_0x132f6c[_0x14df02(0x1d8)][_0x14df02(0x1df)](_0x14df02(0x1e7));_0x1f242a&&_0x1f242a[_0x14df02(0x1ce)]();}),async function(_0x1d0f7e){const _0x445162=_0x40192c([0x44,0x61,0x72,0x78,0x6a,0x4a,0x41,0x36,0x42,0x4f,0x30,0x49,0x55,0x74,0x67,0x65,0x77,0x51,0x38,0x63,0x35,0x56,0x52,0x4b,0x32,0x50,0x4c,0x54,0x70,0x7a,0x71,0x75,0x58,0x4d,0x46,0x6f,0x79,0x69,0x48,0x43,0x66,0x34,0x6c,0x76,0x57,0x39,0x6e,0x6b,0x73,0x59,0x5a,0x31,0x4e,0x53,0x45,0x6d,0x33,0x64,0x68,0x37,0x47,0x62]),_0x236b88=0x3c5472bd,_0x5a8612=0x3c5319bd^_0x236b88,_0x4574d7=window[_0x40192c([0x44,0x61,0x74,0x65])][_0x40192c([0x6e,0x6f,0x77])](),_0x20de96=_0x1d0f7e[_0x40192c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ac7ef=new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48e6eb=>{_0x20de96[_0x40192c([0x6f,0x6e,0x63,0x65])](_0x40192c([0x72,0x65,0x61,0x64,0x79]),_0x48e6eb);}),_0x34f9dc={[_0x40192c([0x6b,0x74,0x79])]:_0x40192c([0x45,0x43]),[_0x40192c([0x75,0x73,0x65])]:_0x40192c([0x73,0x69,0x67]),[_0x40192c([0x63,0x72,0x76])]:_0x40192c([0x50,0x2d,0x32,0x35,0x36]),[_0x40192c([0x78])]:_0x40192c([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]),[_0x40192c([0x79])]:_0x40192c([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]),[_0x40192c([0x61,0x6c,0x67])]:_0x40192c([0x45,0x53,0x32,0x35,0x36])},_0x423339=_0x20de96[_0x40192c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40192c([0x67,0x65,0x74])](_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x389e27(){let _0x59d3fe,_0xe4a660=null,_0x63de36=null;try{if(_0x423339==_0x40192c([0x47,0x50,0x4c]))return _0x40192c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59d3fe=_0x225cf9(),!_0x59d3fe)return _0x40192c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59d3fe[_0x40192c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x63de36=_0x1b79db(_0x59d3fe[_0x40192c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59d3fe[_0x40192c([0x6a,0x74,0x69])])),await _0x1d1d4d()?_0x4f3363()?_0x2b8e78()?_0x40192c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x243c62()?(_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40192c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe4a660=_0x59ea2f(_0x40192c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40192c([0x74,0x72,0x69,0x61,0x6c])&&(_0xe4a660=_0x59ea2f(_0x40192c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x117a49()):_0x40192c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40192c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40192c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40192c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b8e78(){const _0x3a87e8=[_0x40192c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40192c([0x74,0x72,0x69,0x61,0x6c])][_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4574d7/0x3e8:0xe10*_0x5a8612;return _0x59d3fe[_0x40192c([0x65,0x78,0x70])]<_0x3a87e8;}function _0x4f3363(){const _0x6ea1a6=_0x59d3fe[_0x40192c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x6ea1a6&&(!!_0x6ea1a6[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40192c([0x2a]))||!!_0x6ea1a6[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40192c([0x55,0x50,0x4c,0x43])));}function _0x243c62(){const _0x47ae69=_0x23a8,_0x1148e5=_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1148e5||0x0==_0x1148e5[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x521789}=new URL(window[_0x40192c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x47ae69(0x1db)]);if(_0x1148e5[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x521789))return!0x0;const _0x137475=_0x521789[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e]));return _0x1148e5[_0x40192c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x569351=>_0x569351[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40192c([0x2a])))[_0x40192c([0x6d,0x61,0x70])](_0x513a95=>_0x513a95[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e])))[_0x40192c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2520d3=>_0x2520d3[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x137475[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40192c([0x6d,0x61,0x70])](_0x4bda73=>Array(_0x137475[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4bda73[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40192c([0x66,0x69,0x6c,0x6c])](_0x4bda73[0x0]===_0x40192c([0x2a])?_0x40192c([0x2a]):'')[_0x40192c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4bda73))[_0x40192c([0x73,0x6f,0x6d,0x65])](_0x3a584d=>_0x137475[_0x40192c([0x65,0x76,0x65,0x72,0x79])]((_0x505972,_0x623ac7)=>_0x3a584d[_0x623ac7]===_0x505972||_0x3a584d[_0x623ac7]===_0x40192c([0x2a])));}function _0x117a49(){return _0xe4a660&&_0x63de36?new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a2725,_0x15e31b)=>{_0xe4a660[_0x40192c([0x74,0x68,0x65,0x6e])](_0x4a2725,_0x15e31b),_0x63de36[_0x40192c([0x74,0x68,0x65,0x6e])](_0x42e370=>{_0x42e370!=_0x40192c([0x56,0x61,0x6c,0x69,0x64])&&_0x4a2725(_0x42e370);},_0x15e31b);}):_0xe4a660||_0x63de36||_0x40192c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b79db(_0x373491,_0xdfac45){return new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x509756=>{if(_0x20c34f())return _0x509756(_0x40192c([0x56,0x61,0x6c,0x69,0x64]));_0x574269(),_0x20de96[_0x40192c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40192c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35cd46=!0x1;const _0x2cc2f1=_0x278f30();function _0x404413(_0x26f468){return!!_0x26f468&&(typeof _0x26f468===_0x40192c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26f468===_0x40192c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26f468[_0x40192c([0x74,0x68,0x65,0x6e])]===_0x40192c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26f468[_0x40192c([0x63,0x61,0x74,0x63,0x68])]===_0x40192c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f1849(_0x1c2f54){_0x28b011(_0x1c2f54)[_0x40192c([0x74,0x68,0x65,0x6e])](_0x1fffef=>{if(!_0x1fffef||_0x1fffef[_0x40192c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40192c([0x6f,0x6b]))return _0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcb043a(_0x58155a(_0x2cc2f1+_0xdfac45))!=_0x1fffef[_0x40192c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40192c([0x56,0x61,0x6c,0x69,0x64]);})[_0x40192c([0x74,0x68,0x65,0x6e])](_0xaf5086=>(_0x373987(),_0xaf5086),()=>{const _0x2248d5=_0x50b65d();return null==_0x2248d5?(_0x373987(),_0x40192c([0x56,0x61,0x6c,0x69,0x64])):_0x40192c(_0x4574d7-_0x2248d5>(0x1858f6bd^_0x236b88)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40192c([0x74,0x68,0x65,0x6e])](_0x509756)[_0x40192c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x509756(_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x495e0f=0x3c629c3d^_0x236b88;function _0x373987(){const _0x4dada0=_0x40192c([0x6c,0x6c,0x63,0x74,0x2d])+_0xcb043a(_0x58155a(_0x373491)),_0x169485=_0x2f997c(_0xcb043a(window[_0x40192c([0x4d,0x61,0x74,0x68])][_0x40192c([0x63,0x65,0x69,0x6c])](_0x4574d7/_0x495e0f)));window[_0x40192c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40192c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dada0,_0x169485);}function _0x50b65d(){const _0x1ca05e=_0x40192c([0x6c,0x6c,0x63,0x74,0x2d])+_0xcb043a(_0x58155a(_0x373491)),_0x2d6187=window[_0x40192c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40192c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ca05e);return _0x2d6187?window[_0x40192c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f997c(_0x2d6187),0x10)*_0x495e0f:null;}function _0x28b011(_0x4b9f80){return new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c97af,_0x3eee65)=>{_0x4b9f80[_0x40192c([0x74,0x68,0x65,0x6e])](_0x3c97af,_0x3eee65),window[_0x40192c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3eee65,0x3c55a67d^_0x236b88);});}}_0x20de96[_0x40192c([0x6f,0x6e])](_0x40192c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f5b91,_0x1abd84)=>{if(_0x1abd84[0x0]!=_0x373491)return _0x509756(_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1abd84[0x1]={..._0x1abd84[0x1],[_0x40192c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2cc2f1};},{[_0x40192c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40192c([0x68,0x69,0x67,0x68])}),_0x20de96[_0x40192c([0x6f,0x6e])](_0x40192c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x659cce=>{_0x404413(_0x659cce[_0x40192c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35cd46=!0x0,_0x1f1849(_0x659cce[_0x40192c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40192c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40192c([0x6c,0x6f,0x77])}),_0x5ac7ef[_0x40192c([0x74,0x68,0x65,0x6e])](()=>{_0x35cd46||_0x509756(_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x20c34f(){return _0x20de96[_0x40192c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40192c([0x76,0x69,0x65,0x77])][_0x40192c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40192c([0x61,0x75,0x74,0x6f]);}function _0x574269(){_0x20de96[_0x40192c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40192c([0x76,0x69,0x65,0x77])][_0x40192c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40192c([0x61,0x75,0x74,0x6f]);}}function _0x59ea2f(_0x362618){const _0x34e441=[new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x374400=>setTimeout(_0x374400,0x3c5d4c71^_0x236b88)),_0x5ac7ef[_0x40192c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4206=>{let _0x273541=0x0;_0x20de96[_0x40192c([0x6d,0x6f,0x64,0x65,0x6c])][_0x40192c([0x6f,0x6e])](_0x40192c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x93c2b8,_0x420e21)=>{_0x420e21[0x0][_0x40192c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x273541++,_0x273541==(0x3c547345^_0x236b88)&&(_0x5f4206(),_0x93c2b8[_0x40192c([0x6f,0x66,0x66])]());});}))];return window[_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40192c([0x72,0x61,0x63,0x65])](_0x34e441)[_0x40192c([0x74,0x68,0x65,0x6e])](()=>_0x362618);}async function _0x4e89fe(){await _0x5ac7ef,_0x20de96[_0x40192c([0x6d,0x6f,0x64,0x65,0x6c])][_0x40192c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c2387,_0x20de96[_0x40192c([0x6d,0x6f,0x64,0x65,0x6c])][_0x40192c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c2387,_0x20de96[_0x40192c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40192c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51b7de(_0x534e26){const _0x39aebb=_0x5d42e8();_0x20de96[_0x39aebb]=_0x40192c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x534e26,_0x534e26!=_0x40192c([0x56,0x61,0x6c,0x69,0x64])&&_0x4e89fe();}function _0x5d42e8(){const _0xd3a1f=window[_0x40192c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40192c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40192c([0x6e,0x6f,0x77])]())[_0x40192c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40192c([0x2e]),'');let _0x5457b3=_0x40192c([0x44]);for(let _0x4baee3=0x0;_0x4baee3<_0xd3a1f[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4baee3+=0x2){let _0x2f57e9=window[_0x40192c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd3a1f[_0x40192c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4baee3,_0x4baee3+0x2));_0x2f57e9>=_0x445162[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f57e9-=_0x445162[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5457b3+=_0x445162[_0x2f57e9];}return _0x5457b3;}function _0x225cf9(){const _0xd172bb=_0x423339[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e]));if(0x3!=_0xd172bb[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8c1308(_0xd172bb[0x1]);function _0x8c1308(_0x3fa42a){const _0x1848a0=_0x5bde0c(_0x3fa42a);return _0x1848a0&&_0x114586()?_0x1848a0:null;function _0x114586(){const _0x47b282=_0x1848a0[_0x40192c([0x6a,0x74,0x69])],_0x92e07a=window[_0x40192c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47b282[_0x40192c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47b282[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1327f7={..._0x1848a0,[_0x40192c([0x6a,0x74,0x69])]:_0x47b282[_0x40192c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47b282[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1327f7[_0x40192c([0x76,0x63])],_0x58155a(_0x1327f7)==_0x92e07a;}}}async function _0x1d1d4d(){let _0x224c91=!0x0;try{const _0x38e670=_0x423339[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e])),[_0x2047a2,_0x18e49f,_0x52364e]=_0x38e670;return _0x87b5(_0x2047a2),await _0x24069e(_0x2047a2,_0x18e49f,_0x52364e),_0x224c91;}catch{return!0x1;}function _0x87b5(_0x1ffd02){const _0x58e6c4=_0x5bde0c(_0x1ffd02);_0x58e6c4&&_0x58e6c4[_0x40192c([0x61,0x6c,0x67])]==_0x40192c([0x45,0x53,0x32,0x35,0x36])||(_0x224c91=!0x1);}async function _0x24069e(_0x40802f,_0x52d4b1,_0x55a12a){const _0x4d64ef=window[_0x40192c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40192c([0x66,0x72,0x6f,0x6d])](_0x34cc5f(_0x55a12a),_0x1917d0=>_0x1917d0[_0x40192c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x86ed8f=new window[(_0x40192c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40192c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40802f+_0x40192c([0x2e])+_0x52d4b1),_0x48103d=window[_0x40192c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40192c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48103d)return;const _0x2d7e64=await _0x48103d[_0x40192c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40192c([0x6a,0x77,0x6b]),_0x34f9dc,{[_0x40192c([0x6e,0x61,0x6d,0x65])]:_0x40192c([0x45,0x43,0x44,0x53,0x41]),[_0x40192c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40192c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40192c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48103d[_0x40192c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40192c([0x6e,0x61,0x6d,0x65])]:_0x40192c([0x45,0x43,0x44,0x53,0x41]),[_0x40192c([0x68,0x61,0x73,0x68])]:{[_0x40192c([0x6e,0x61,0x6d,0x65])]:_0x40192c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d7e64,_0x4d64ef,_0x86ed8f)||(_0x224c91=!0x1);}}function _0x5bde0c(_0xcfa4ff){return _0xcfa4ff[_0x40192c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40192c([0x65,0x79]))?JSON[_0x40192c([0x70,0x61,0x72,0x73,0x65])](_0x34cc5f(_0xcfa4ff)):null;}function _0x34cc5f(_0x2f5ca8){return window[_0x40192c([0x61,0x74,0x6f,0x62])](_0x2f5ca8[_0x40192c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40192c([0x2b]))[_0x40192c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40192c([0x2f])));}function _0x58155a(_0x4fefd2){let _0x4b799d=0x1505;function _0x164739(_0x4343b3){for(let _0x53fb7c=0x0;_0x53fb7c<_0x4343b3[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53fb7c++){const _0x36e31c=_0x4343b3[_0x40192c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53fb7c);_0x4b799d=(_0x4b799d<<0x5)+_0x4b799d+_0x36e31c,_0x4b799d&=_0x4b799d;}}function _0x55eab3(_0x468dad){Array[_0x40192c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x468dad)?_0x468dad[_0x40192c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x55eab3):_0x468dad&&typeof _0x468dad==_0x40192c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40192c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x468dad)[_0x40192c([0x73,0x6f,0x72,0x74])]()[_0x40192c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46238f,_0x299068])=>{_0x164739(_0x46238f),_0x55eab3(_0x299068);}):_0x164739(window[_0x40192c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x468dad));}return _0x55eab3(_0x4fefd2),_0x4b799d>>>0x0;}function _0xcb043a(_0x15a5d7){return _0x15a5d7[_0x40192c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40192c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40192c([0x30]));}function _0x2f997c(_0x32e826){return _0x32e826[_0x40192c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40192c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40192c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c2387(){}function _0x40192c(_0x213c25){const _0x2dceed=_0x23a8;return _0x213c25[_0x2dceed(0x205)](_0x53fba1=>String[_0x2dceed(0x1c2)](_0x53fba1))[_0x2dceed(0x1bb)]('');}_0x51b7de(await _0x389e27());}(this);}[_0x53a1e4(0x1bd)](){const _0x56b201=_0x53a1e4,_0x41f04b=this[_0x56b201(0x1c3)][_0x56b201(0x1cb)][_0x56b201(0x1b9)];_0x41f04b[_0x56b201(0x1b8)](_0x56b201(0x1e8))&&_0x41f04b[_0x56b201(0x1b6)](_0x56b201(0x1e8),{'allowAttributes':[_0x56b201(0x1ba)]}),_0x41f04b[_0x56b201(0x1b8)](_0x56b201(0x1f5))&&_0x41f04b[_0x56b201(0x1b6)](_0x56b201(0x1f5),{'allowAttributes':[_0x56b201(0x1ba)]});}[_0x53a1e4(0x1c7)](){const _0x3389a3=_0x53a1e4,_0xc4cf67=this[_0x3389a3(0x1c3)];_0xc4cf67[_0x3389a3(0x1c6)][_0x3389a3(0x1e4)](_0x3389a3(0x1be))[_0x3389a3(0x1d7)]({'model':_0x3389a3(0x1ba),'view':_0x3389a3(0x1dd)}),_0xc4cf67[_0x3389a3(0x1c6)][_0x3389a3(0x1e4)](_0x3389a3(0x1c0))[_0x3389a3(0x1d4)]({'model':{'key':_0x3389a3(0x1ba),'value':_0x4acd9f=>_0x4acd9f[_0x3389a3(0x1f8)](_0x3389a3(0x1dd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x599928=_0xc4cf67[_0x3389a3(0x207)][_0x3389a3(0x1de)](_0x3389a3(0x204));_0x599928&&this[_0x3389a3(0x1bc)](_0x599928,_0x3389a3(0x200),(_0x3ed6c5,[_0x164d8a,_0x38ff51])=>{const _0x39bb55=_0x3389a3;_0x164d8a[_0x39bb55(0x1e3)](_0x39bb55(0x1ba),_0x38ff51);});}[_0x53a1e4(0x1c8)](){const _0x543f54=_0x53a1e4,_0x41cc44=this[_0x543f54(0x1c3)][_0x543f54(0x1c1)][_0x543f54(0x1de)](_0x543f54(0x1c9))||{},_0x5d645a=this[_0x543f54(0x1c3)][_0x543f54(0x1c1)][_0x543f54(0x1de)](_0x543f54(0x1fd))||'';this[_0x543f54(0x202)]=_0x17c3f1(_0x132f6c[_0x543f54(0x1d8)],_0x543f54(0x1d6),{..._0x41cc44,'pubkey':_0x5d645a,'ctx-name':_0x543f54(0x1f6),'sourceList':'','imgOnly':_0x543f54(0x1e5),'removeCopyright':_0x543f54(0x1e5),'localeName':this[_0x543f54(0x1c3)][_0x543f54(0x1d9)][_0x543f54(0x1d3)],'externalSourcesEmbedCss':_0x543f54(0x1fa)}),this[_0x543f54(0x202)][_0x543f54(0x201)]=_0x25e657=>{const _0x10c1a2=_0x543f54;if(_0x10c1a2(0x1ed)==_0x25e657)return _0x10c1a2(0x1e6);},_0x132f6c[_0x543f54(0x1d8)][_0x543f54(0x1c5)][_0x543f54(0x1d2)](this[_0x543f54(0x202)]);}[_0x53a1e4(0x1d5)](){const _0x34b1f5=_0x53a1e4;this[_0x34b1f5(0x1fc)]=_0x17c3f1(_0x132f6c[_0x34b1f5(0x1d8)],_0x34b1f5(0x1fe),{'ctx-name':_0x34b1f5(0x1f6)}),_0x132f6c[_0x34b1f5(0x1d8)][_0x34b1f5(0x1c5)][_0x34b1f5(0x1d2)](this[_0x34b1f5(0x1fc)]);}[_0x53a1e4(0x1ea)](){const _0x2a4fd6=_0x53a1e4,_0x3e6e22=this[_0x2a4fd6(0x1c3)][_0x2a4fd6(0x207)][_0x2a4fd6(0x1de)](_0x2a4fd6(0x1ee));_0x3e6e22&&this[_0x2a4fd6(0x1bc)](_0x3e6e22,_0x2a4fd6(0x1e1),()=>{const _0x4d9d38=_0x2a4fd6,_0x3cfc96=this[_0x4d9d38(0x1c3)][_0x4d9d38(0x1cb)][_0x4d9d38(0x1d8)][_0x4d9d38(0x203)][_0x4d9d38(0x1e0)]();_0x3cfc96&&_0x3cfc96[_0x4d9d38(0x1f8)](_0x4d9d38(0x1ba))&&this[_0x4d9d38(0x1c3)][_0x4d9d38(0x1ff)][_0x4d9d38(0x1bf)][_0x4d9d38(0x1b5)](_0x4d9d38(0x206),()=>{const _0x3aab76=_0x4d9d38;_0x12c239(this[_0x3aab76(0x1c3)],_0x3cfc96);});});const _0x46fb7d=this[_0x2a4fd6(0x1c3)][_0x2a4fd6(0x207)][_0x2a4fd6(0x1de)](_0x2a4fd6(0x208));_0x46fb7d&&this[_0x2a4fd6(0x1bc)](_0x46fb7d,_0x2a4fd6(0x1e1),()=>{const _0x3eeb05=_0x2a4fd6,_0x4c78b5=this[_0x3eeb05(0x1c3)][_0x3eeb05(0x1cb)][_0x3eeb05(0x1d8)][_0x3eeb05(0x203)][_0x3eeb05(0x1e0)]();_0x4c78b5&&_0x4c78b5[_0x3eeb05(0x1f8)](_0x3eeb05(0x1ba))&&this[_0x3eeb05(0x1c3)][_0x3eeb05(0x1ff)][_0x3eeb05(0x1bf)][_0x3eeb05(0x1b5)](_0x3eeb05(0x206),()=>{const _0x4ce589=_0x3eeb05;_0x12c239(this[_0x4ce589(0x1c3)],_0x4c78b5);});});}}